From 4ab6c5e0f6d27b3e800b9910a2aef956d8996738 Mon Sep 17 00:00:00 2001 From: "P.Montanus" Date: Sun, 27 Sep 2015 07:16:25 +0000 Subject: [PATCH 1/3] refactor: fix indentation and quoting Preparing for following commits. --- configure.ac | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/configure.ac b/configure.ac index 726b888adf..c50d555d8f 100644 --- a/configure.ac +++ b/configure.ac @@ -564,12 +564,13 @@ AC_MSG_NOTICE(checking for new missing prototypes) AC_DEFUN([CHECK_PROTO], [ AC_EGREP_HEADER([[^A-Za-z0-9_]$1([ ]+[A-Za-z0-9_]*)?[ ]*\(], - $2, - , + [$2], + [], [ AC_MSG_NOTICE([adding prototype for $1]) AC_DEFINE(patsubst([NEED_PROTO_NAME], [NAME], translit([$1], [[a-z]], [[A-Z]]))) - ])]) + ]) +]) if test "$have_remove" = yes ; then CHECK_PROTO(remove, stdio.h) From 9d1a87358de754c6e8ad02c920cfbfe09f265696 Mon Sep 17 00:00:00 2001 From: "P.Montanus" Date: Sun, 27 Sep 2015 07:19:42 +0000 Subject: [PATCH 2/3] configure.ac: Replace m4 builtin macros with 'm4_'-prefixed alias macros autoconf provides 'm4_'-prefixed alias macros for m4 builtin macros, and original non 'm4_'-prefixed macros are not recommended. --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index c50d555d8f..9a8332cc4e 100644 --- a/configure.ac +++ b/configure.ac @@ -568,7 +568,7 @@ AC_DEFUN([CHECK_PROTO], [ [], [ AC_MSG_NOTICE([adding prototype for $1]) - AC_DEFINE(patsubst([NEED_PROTO_NAME], [NAME], translit([$1], [[a-z]], [[A-Z]]))) + AC_DEFINE(m4_bpatsubst([NEED_PROTO_NAME], [NAME], m4_translit([$1], [[a-z]], [[A-Z]]))) ]) ]) From f5d817787cad6e276de89d412b709829d4e7566d Mon Sep 17 00:00:00 2001 From: "P.Montanus" Date: Sun, 27 Sep 2015 07:24:50 +0000 Subject: [PATCH 3/3] configure.ac: Replace complex 'm4_' macros with equivalent AS_TR_CPP AS_TR_CPP first appeared in autoconf-2.50a (2001-06-26). --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 9a8332cc4e..b42e7643ce 100644 --- a/configure.ac +++ b/configure.ac @@ -568,7 +568,7 @@ AC_DEFUN([CHECK_PROTO], [ [], [ AC_MSG_NOTICE([adding prototype for $1]) - AC_DEFINE(m4_bpatsubst([NEED_PROTO_NAME], [NAME], m4_translit([$1], [[a-z]], [[A-Z]]))) + AC_DEFINE(AS_TR_CPP([NEED_PROTO_$1])) ]) ])