]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
AC_REPLACE_FUNCS: allow split lines again
authorEric Blake <eblake@redhat.com>
Wed, 22 Sep 2010 21:55:26 +0000 (15:55 -0600)
committerEric Blake <eblake@redhat.com>
Wed, 22 Sep 2010 22:02:27 +0000 (16:02 -0600)
More fallout from the same 2.66 regression that was partially fixed
yesterday, but until yesterday's AS_LITERAL_IF actually treated \ as a
non-literal, apparently no one noticed the latent bug of a spurious
call to AC_CHECK_FUNC([\]) during automake's libobj5.test.

* lib/autoconf/functions.m4 (AC_REPLACE_FUNCS): Flatten newlines
and move guts...
(_AC_REPLACE_FUNCS): ...to new helper.
* tests/semantics.at (AC_REPLACE_FUNCS): Enhance test.
Reported by Ralf Wildenhues.

Signed-off-by: Eric Blake <eblake@redhat.com>
ChangeLog
lib/autoconf/functions.m4
tests/semantics.at

index a1a451a5dab2debc41438db63bb0bdd7840075ec..0bcb10ebff852b75bfd59499098a64f34bc913d5 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2010-09-22  Eric Blake  <eblake@redhat.com>
+
+       AC_REPLACE_FUNCS: allow split lines again
+       * lib/autoconf/functions.m4 (AC_REPLACE_FUNCS): Flatten newlines
+       and move guts...
+       (_AC_REPLACE_FUNCS): ...to new helper.
+       * tests/semantics.at (AC_REPLACE_FUNCS): Enhance test.
+       Reported by Ralf Wildenhues.
+
 2010-09-21  Eric Blake  <eblake@redhat.com>
 
        AC_LIBOBJ: optimize internal use
index 70a7ddf31902d15817ce5ac59c507ec095ab2ab9..f2048bfeea76799aa0c915611aa979958bd87fa5 100644 (file)
@@ -131,6 +131,9 @@ m4_define([_AC_REPLACE_FUNC],
 # equivalent of AC_CHECK_FUNC, then call AC_LIBOBJ if the function
 # was not found.
 AC_DEFUN([AC_REPLACE_FUNCS],
+[_$0(m4_flatten([$1]))])
+
+m4_define([_AC_REPLACE_FUNCS],
 [AS_LITERAL_IF([$1],
 [m4_map_args_w([$1], [_AC_REPLACE_FUNC(], [)
 ])],
index 9fd08e047b34ac8a169ce475dbfe62d93b67f831..0e2873759195a15137a2b8bfe6d08448297e9f0d 100644 (file)
@@ -177,11 +177,13 @@ AT_DATA([config.in],
 
 AT_CONFIGURE_AC(
 [AC_CONFIG_FILES([config.libobjs:config.in])
-AC_REPLACE_FUNCS([printf autoconf_ftnirp])
+AC_REPLACE_FUNCS([printf \
+autoconf_ftnirp])
 funcs='fprintf autoconf_ftnirpf'
 AH_TEMPLATE([HAVE_FPRINTF], [])
 AH_TEMPLATE([HAVE_AUTOCONF_FTNIRPF], [])
-AC_REPLACE_FUNCS([$funcs])
+AC_REPLACE_FUNCS([\
+$funcs])
 AS_UNSET([funcs])])
 
 AT_CHECK_AUTOCONF([-W obsolete])