summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjorton <jorton@13f79535-47bb-0310-9956-ffa450edef68>2007-05-29 09:01:39 +0000
committerjorton <jorton@13f79535-47bb-0310-9956-ffa450edef68>2007-05-29 09:01:39 +0000
commit7b98d14e264f526ce36dbcdd4038760942b99d73 (patch)
treefc8e46e014efe4f5f6c214a98d8bae0f8758b15f
parentc16af75055c1816fc427716c9116dc2393e3ac3b (diff)
downloadlibapr-7b98d14e264f526ce36dbcdd4038760942b99d73.tar.gz
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. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/0.9.x@542464 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--build/apr_common.m411
1 files changed, 10 insertions, 1 deletions
diff --git a/build/apr_common.m4 b/build/apr_common.m4
index e65314efd..94e15e978 100644
--- a/build/apr_common.m4
+++ b/build/apr_common.m4
@@ -45,7 +45,12 @@ EOF
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 used here to allow us to co-exist layouts and argument based
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.