]> granicus.if.org Git - php/commitdiff
fix generating config.nice
authorMichael Wallner <mike@php.net>
Fri, 2 Aug 2013 11:09:06 +0000 (13:09 +0200)
committerMichael Wallner <mike@php.net>
Fri, 2 Aug 2013 11:15:55 +0000 (13:15 +0200)
Configure runs like:
$./configure -C CFLAGS="-ggdb" --enable-debug --prefix=$(pwd)/usr
did result in an empty config.nice

* allow single dash flags like -C, -s etc.
* allow passing evnironment variables as arguments

acinclude.m4

index 07b1f8eb57aee72239d4cb3ad128a93a6caeb48c..fb490594d41811fc9c452339567b634a49347e4b 100644 (file)
@@ -2686,14 +2686,14 @@ EOF
   fi
   for arg in $ac_configure_args; do
     if test `expr -- $arg : "'.*"` = 0; then
-      if test `expr -- $arg : "--.*"` = 0; then
-        break;
+      if test `expr -- $arg : "-.*"` = 0 && test `expr -- $arg : ".*=.*"` = 0; then
+        continue;
       fi
       echo "'[$]arg' \\" >> $1
       CONFIGURE_OPTIONS="$CONFIGURE_OPTIONS '[$]arg'"
     else
-      if test `expr -- $arg : "'--.*"` = 0; then
-        break;
+      if test `expr -- $arg : "'-.*"` = 0 && test `expr -- $arg : "'.*=.*"` = 0; then
+        continue;
       fi
       echo "[$]arg \\" >> $1
       CONFIGURE_OPTIONS="$CONFIGURE_OPTIONS [$]arg"