From c738cdc0f0bbe21dc5551cc5d5e7979682efa533 Mon Sep 17 00:00:00 2001 From: truelight Date: Tue, 27 Mar 2007 13:56:18 +0000 Subject: (svn r9504) [Config] -Fix r9340: somehow a -n got mixed up with a -z (tnx glx) --- configure | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'configure') diff --git a/configure b/configure index 3e96ae645..8ec90b75a 100755 --- a/configure +++ b/configure @@ -3,7 +3,10 @@ CONFIGURE_EXECUTABLE="$_" # On *nix systems those two are equal when ./configure is done if [ "$0" != "$CONFIGURE_EXECUTABLE" ]; then - if [ -z "`echo $CONFIGURE_EXECUTABLE | grep make`" ]; then + # On some systems, when ./configure is triggered from 'make' + # the $_ is filled with 'make'. So if that is true, skip 'make' + # and use $0 (and hope that is correct ;)) + if [ -n "`echo $CONFIGURE_EXECUTABLE | grep make`" ]; then CONFIGURE_EXECUTABLE="$0" else CONFIGURE_EXECUTABLE="$CONFIGURE_EXECUTABLE $0" -- cgit v1.2.3-70-g09d2