]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
* lib/autoconf/general.m4 (AC_SITE_LOAD): Do not overwrite "$@"
authorRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Tue, 21 Aug 2007 20:23:16 +0000 (20:23 +0000)
committerRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Tue, 21 Aug 2007 20:23:16 +0000 (20:23 +0000)
here, this macro is expanded by AC_INIT.  Fixes 2.60 regression.
* tests/base.at (configure arguments): New test.
* THANKS: Update.
Report by Olaf Lenz.

ChangeLog
THANKS
lib/autoconf/general.m4
tests/base.at

index 0629a0f24c8819db8c510438a7b5863f40acf3e5..c1e9320ea0dbc74daf0c0db5669294bb560ff4bf 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
 2007-08-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
 
+       * lib/autoconf/general.m4 (AC_SITE_LOAD): Do not overwrite "$@"
+       here, this macro is expanded by AC_INIT.  Fixes 2.60 regression.
+       * tests/base.at (configure arguments): New test.
+       * THANKS: Update.
+       Report by Olaf Lenz.
+
        * lib/autoconf/general.m4 (_AC_ENABLE_IF): Expand macro
        arguments in comment.
        Report by Vincent Torri <vtorri at univ minus evry dot fr>.
diff --git a/THANKS b/THANKS
index 8d284f98a1d23e2a3916cb29fc2b3095ec6b58e9..25d393afb2bf24b21fc823c8b1c60b4065501689 100644 (file)
--- a/THANKS
+++ b/THANKS
@@ -159,6 +159,7 @@ Nishio Futoshi              fut_nis@d3.dion.ne.jp
 Noah Elliott                elliott@hera.llnl.gov
 Noah Friedman               friedman@gnu.ai.mit.edu
 Noah Misch                  noah@cs.caltech.edu
+Olaf Lenz                   olenz@fias.uni-frankfurt.de
 Oliver Kiddle               opk@zsh.org
 Olly Betts                  olly@survex.com
 Ossama Othman               ossama@debian.org
index 5c66f1e9d5db573bdbc38056e4e2e86789921ec0..6350a56d2fda888bee707d790bcf91e55aa7f869 100644 (file)
@@ -1805,20 +1805,23 @@ AU_DEFUN([AC_VALIDATE_CACHED_SYSTEM_TUPLE], [])
 
 # AC_SITE_LOAD
 # ------------
-# Look for site or system specific initialization scripts.
+# Look for site- or system-specific initialization scripts.
 m4_define([AC_SITE_LOAD],
-[# Prefer explicitly selected file to automatically selected ones.
+[# Prefer an explicitly selected file to automatically selected ones.
+ac_site_file1=NONE
+ac_site_file2=NONE
 if test -n "$CONFIG_SITE"; then
-  set x "$CONFIG_SITE"
+  ac_site_file1=$CONFIG_SITE
 elif test "x$prefix" != xNONE; then
-  set x "$prefix/share/config.site" "$prefix/etc/config.site"
+  ac_site_file1=$prefix/share/config.site
+  ac_site_file2=$prefix/etc/config.site
 else
-  set x "$ac_default_prefix/share/config.site" \
-       "$ac_default_prefix/etc/config.site"
+  ac_site_file1=$ac_default_prefix/share/config.site
+  ac_site_file2=$ac_default_prefix/etc/config.site
 fi
-shift
-for ac_site_file
+for ac_site_file in "$ac_site_file1" "$ac_site_file2"
 do
+  test "$ac_site_file" = NONE && continue
   if test -r "$ac_site_file"; then
     AC_MSG_NOTICE([loading site script $ac_site_file])
     sed 's/^/| /' "$ac_site_file" >&AS_MESSAGE_LOG_FD
index e5e6a60550c158b3b137bacd22ab9f37d105d897..0acabe7d75e69311cbfd018a1d4bcdf0a0f89cbe 100644 (file)
@@ -289,3 +289,21 @@ AT_CHECK([echo Hello | top_srcdir=$abs_top_srcdir ./configure | grep -v 'configu
 AT_CHECK([echo Hello | top_srcdir=$abs_top_srcdir ./configure --silent])
 
 AT_CLEANUP
+
+
+## ------------------- ##
+## configure arguments ##
+## ------------------- ##
+
+AT_SETUP([configure arguments])
+
+AT_DATA([configure.ac],
+[[AC_INIT
+echo "$@"
+]])
+
+AT_CHECK_AUTOCONF
+AT_CHECK_CONFIGURE([FOO=bar --enable-baz --without-zork --silent], [0], [stdout], [ignore])
+AT_CHECK([grep 'FOO=bar --enable-baz --without-zork --silent' stdout], [0], [ignore], [ignore])
+
+AT_CLEANUP