apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jor...@apache.org
Subject svn commit: r542464 - /apr/apr/branches/0.9.x/build/apr_common.m4
Date Tue, 29 May 2007 09:01:39 GMT
Author: jorton
Date: Tue May 29 02:01:39 2007
New Revision: 542464

URL: http://svn.apache.org/viewvc?view=rev&rev=542464
Log:
Merge r423435 from trunk:

* build/apr_common.m4 (APR_CONFIG_NICE, APR_PARSE_ARGUMENTS): Fix to
remove assumption that $@ is preserved forever - it never was in any
autoconf release; autoconf 2.60 happens to overwrite it earlier.

Modified:
    apr/apr/branches/0.9.x/build/apr_common.m4

Modified: apr/apr/branches/0.9.x/build/apr_common.m4
URL: http://svn.apache.org/viewvc/apr/apr/branches/0.9.x/build/apr_common.m4?view=diff&rev=542464&r1=542463&r2=542464
==============================================================================
--- apr/apr/branches/0.9.x/build/apr_common.m4 (original)
+++ apr/apr/branches/0.9.x/build/apr_common.m4 Tue May 29 02:01:39 2007
@@ -45,7 +45,12 @@
     echo "NOTEST_LIBS=\"$NOTEST_LIBS\"; export NOTEST_LIBS" >> $1
   fi
 
-  for arg in [$]0 "[$]@"; do
+  # Retrieve command-line arguments.
+  eval "set x $[0] $ac_configure_args"
+  shift
+
+  for arg
+  do
     APR_EXPAND_VAR(arg, $arg)
     echo "\"[$]arg\" \\" >> $1
   done
@@ -814,6 +819,10 @@
 dnl set ups.
 AC_DEFUN(APR_PARSE_ARGUMENTS,[
 ac_prev=
+# Retrieve the command-line arguments.  The eval is needed because
+# the arguments are quoted to preserve accuracy.
+eval "set x $ac_configure_args"
+shift
 for ac_option
 do
   # If the previous option needs an argument, assign it.



Mime
View raw message