diff options
author | truelight <truelight@openttd.org> | 2007-03-27 13:56:18 +0000 |
---|---|---|
committer | truelight <truelight@openttd.org> | 2007-03-27 13:56:18 +0000 |
commit | c738cdc0f0bbe21dc5551cc5d5e7979682efa533 (patch) | |
tree | 350e22bf52bdcbde6f76b3ba9dd82d89baaf227d /configure | |
parent | c25d539543dd1c83014223a1ab02d5c47b48b222 (diff) | |
download | openttd-c738cdc0f0bbe21dc5551cc5d5e7979682efa533.tar.xz |
(svn r9504) [Config] -Fix r9340: somehow a -n got mixed up with a -z (tnx glx)
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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" |