autoconf-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] general.m4: fix AC_INIT with unquoted bug-report field


From: Ross Burton
Subject: [PATCH] general.m4: fix AC_INIT with unquoted bug-report field
Date: Tue, 13 Oct 2020 20:54:49 +0100

From: Ross Burton <ross.burton@arm.com>

The bug report field is passed unquoted to m4_define which causes
problems if it contains values such as ',' (as seen in gmp).

Ensure that the value is correctly quoted to solve this.
---
 lib/autoconf/general.m4 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/autoconf/general.m4 b/lib/autoconf/general.m4
index 1488df4d..40464989 100644
--- a/lib/autoconf/general.m4
+++ b/lib/autoconf/general.m4
@@ -260,7 +260,7 @@ m4_ifndef([AC_PACKAGE_STRING],
          [m4_define([AC_PACKAGE_STRING],
                     m4_defn([_ac_init_NAME])[ ]m4_defn([_ac_init_VERSION]))])
 m4_ifndef([AC_PACKAGE_BUGREPORT],
-         [m4_define([AC_PACKAGE_BUGREPORT], _ac_init_BUGREPORT)])
+         [m4_define([AC_PACKAGE_BUGREPORT], m4_defn([_ac_init_BUGREPORT]))])
 m4_ifndef([AC_PACKAGE_TARNAME],
          [m4_define([AC_PACKAGE_TARNAME],
                     m4_default(m4_defn([_ac_init_TARNAME]),
-- 
2.28.0




reply via email to

[Prev in Thread] Current Thread [Next in Thread]