(svn r9049) -Fix [Config]: when running 'bash configure', make sure automated reconfigures run 'bash configure' too.
authortruelight
Tue, 06 Mar 2007 23:42:30 +0000
changeset 6572 e35266003390
parent 6571 a0f5bf2afa6c
child 6573 7624f942237f
(svn r9049) -Fix [Config]: when running 'bash configure', make sure automated reconfigures run 'bash configure' too.
config.lib
configure
--- a/config.lib	Tue Mar 06 23:27:14 2007 +0000
+++ b/config.lib	Tue Mar 06 23:42:30 2007 +0000
@@ -275,7 +275,7 @@
 	echo "Running configure with following options:" >> $config_log
 	echo "" >> $config_log
 
-	configure="$0 --ignore-extra-parameters"
+	configure="$CONFIGURE_EXECUTABLE --ignore-extra-parameters"
 	for p in $save_params_array; do
 		eval "v=\"\$$p\""
 		p=`echo "$p" | sed 's/_/-/g;s/\n//g;'`
--- a/configure	Tue Mar 06 23:27:14 2007 +0000
+++ b/configure	Tue Mar 06 23:42:30 2007 +0000
@@ -1,5 +1,10 @@
 #!/bin/sh
 
+CONFIGURE_EXECUTABLE="$_"
+# On *nix systems those two are equal when ./configure is done
+if [ "$0" != "$CONFIGURE_EXECUTABLE" ]; then
+	CONFIGURE_EXECUTABLE="$CONFIGURE_EXECUTABLE $0"
+fi
 # Find out where configure is (in what dir)
 ROOT_DIR="`dirname $0`"
 ROOT_DIR="`cd $ROOT_DIR && pwd`"