]> Savannah Git Hosting - gnulib.git/commitdiff
havelib: Fix m4 underquoting bug in AC_LIB_FROMPACKAGE.
authorBruno Haible <bruno@clisp.org>
Sun, 4 May 2025 06:19:44 +0000 (08:19 +0200)
committerBruno Haible <bruno@clisp.org>
Sun, 4 May 2025 06:20:27 +0000 (08:20 +0200)
Reported for GNU clisp by Adam Sampson <ats@offog.org> at
<https://gitlab.com/gnu-clisp/clisp/-/issues/60>.

* m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Protect the comma in the
expansion of [acl_libsinpackage_]PACKUP by one more level of quotes.

ChangeLog
m4/lib-link.m4

index c0abffa5bcd22fd1a37f058817765b8fbd670bab..97b495337260586271a2160290d053843df148ac 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2025-05-04  Bruno Haible  <bruno@clisp.org>
+
+       havelib: Fix m4 underquoting bug in AC_LIB_FROMPACKAGE.
+       Reported for GNU clisp by Adam Sampson <ats@offog.org> at
+       <https://gitlab.com/gnu-clisp/clisp/-/issues/60>.
+       * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Protect the comma in the
+       expansion of [acl_libsinpackage_]PACKUP by one more level of quotes.
+
 2025-05-03  Bruno Haible  <bruno@clisp.org>
 
        tests: Avoid compilation errors on GNU/kFreeBSD.
index d6de4fe2fe4aa824601c61eb5877fb609dbb8950..1863f4e168833d34ad6c45dc6769dd00f04e7827 100644 (file)
@@ -1,5 +1,5 @@
 # lib-link.m4
-# serial 34
+# serial 35
 dnl Copyright (C) 2001-2025 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -170,7 +170,7 @@ AC_DEFUN([AC_LIB_FROMPACKAGE],
   pushdef([PACKUP],[m4_translit(PACK,[abcdefghijklmnopqrstuvwxyz./+-],
                                      [ABCDEFGHIJKLMNOPQRSTUVWXYZ____])])
   define([acl_libsinpackage_]PACKUP,
-    m4_ifdef([acl_libsinpackage_]PACKUP, [m4_defn([acl_libsinpackage_]PACKUP)[]],)[lib$1])
+    m4_ifdef([acl_libsinpackage_]PACKUP, [m4_defn([acl_libsinpackage_]PACKUP)[[, ]]],)[lib$1])
   popdef([PACKUP])
   popdef([PACK])
 ])