Ticket #26539: patch-configure

File patch-configure, 1.2 KB (added by reg-macports.org@…, 14 years ago)
Line 
1--- a/configure.orig    2009-10-03 18:53:20.000000000 -0500
2+++ b/configure 2009-10-03 18:58:01.000000000 -0500
3@@ -1199,6 +1199,7 @@
4 
5 # Check that the precious variables saved in the cache have kept the same
6 # value.
7+ac_precious_variables=
8 ac_cache_corrupted=false
9 for ac_var in `(set) 2>&1 |
10               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
11@@ -1236,7 +1237,7 @@
12     esac
13     case " $ac_configure_args " in
14       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
15-      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
16+      *) ac_precious_variables="$ac_precious_variables '$ac_arg'" ;;
17     esac
18   fi
19 done
20@@ -3536,8 +3537,8 @@
21 _ACEOF
22 cat >>$CONFIG_STATUS <<_ACEOF
23 if \$ac_cs_recheck; then
24-  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
25-  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26+  echo "running $SHELL " $ac_precious_variables " $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
27+  exec $SHELL $ac_precious_variables $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
28 fi
29 
30 _ACEOF