summaryrefslogtreecommitdiff
path: root/build/apr_common.m4
diff options
context:
space:
mode:
Diffstat (limited to 'build/apr_common.m4')
-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.