From: Akim Demaille Date: Thu, 18 Jan 2001 09:16:25 +0000 (+0000) Subject: * acgeneral.m4 (AC_INCLUDES_DEFAULT): Force the newline to avoid X-Git-Tag: autoconf-2.50~250 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a7010bd78c9d5fa9d421cf7d2dd8cab231910a7f;p=thirdparty%2Fautoconf.git * acgeneral.m4 (AC_INCLUDES_DEFAULT): Force the newline to avoid bad surprises. Reported by Jim. --- diff --git a/ChangeLog b/ChangeLog index 7bc65b879..13a27de99 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2001-01-18 Akim Demaille + + * acgeneral.m4 (AC_INCLUDES_DEFAULT): Force the newline to avoid + bad surprises. + Reported by Jim. + 2001-01-18 Akim Demaille Require a perfect divert push/pop balance. diff --git a/acgeneral.m4 b/acgeneral.m4 index 35348ba9e..dc2cebf5c 100644 --- a/acgeneral.m4 +++ b/acgeneral.m4 @@ -2306,8 +2306,15 @@ AC_CHECK_HEADERS(stdlib.h string.h memory.h strings.h inttypes.h unistd.h) # ------------------------------- # If INCLUDES is empty, expand in default includes, otherwise in # INCLUDES. +# In most cases INCLUDES is not double quoted as it should, and if +# for instance INCLUDES = `#include ' then unless we force +# a newline, the hash will swallow the closing paren etc. etc. +# The usual failure. +# Take no risk: for the newline. AC_DEFUN([AC_INCLUDES_DEFAULT], -[m4_default([$1], [AC_REQUIRE([_AC_INCLUDES_DEFAULT_REQUIREMENTS])dnl +[m4_ifval([$1], [$1 +], + [AC_REQUIRE([_AC_INCLUDES_DEFAULT_REQUIREMENTS])dnl $ac_includes_default])]) diff --git a/lib/autoconf/general.m4 b/lib/autoconf/general.m4 index 35348ba9e..dc2cebf5c 100644 --- a/lib/autoconf/general.m4 +++ b/lib/autoconf/general.m4 @@ -2306,8 +2306,15 @@ AC_CHECK_HEADERS(stdlib.h string.h memory.h strings.h inttypes.h unistd.h) # ------------------------------- # If INCLUDES is empty, expand in default includes, otherwise in # INCLUDES. +# In most cases INCLUDES is not double quoted as it should, and if +# for instance INCLUDES = `#include ' then unless we force +# a newline, the hash will swallow the closing paren etc. etc. +# The usual failure. +# Take no risk: for the newline. AC_DEFUN([AC_INCLUDES_DEFAULT], -[m4_default([$1], [AC_REQUIRE([_AC_INCLUDES_DEFAULT_REQUIREMENTS])dnl +[m4_ifval([$1], [$1 +], + [AC_REQUIRE([_AC_INCLUDES_DEFAULT_REQUIREMENTS])dnl $ac_includes_default])])