diff options
author | Georgi Kodinov <kgeorge@mysql.com> | 2008-11-06 16:18:25 +0200 |
---|---|---|
committer | Georgi Kodinov <kgeorge@mysql.com> | 2008-11-06 16:18:25 +0200 |
commit | 05dbb26dfcb577321f6a8134ffc0667d07b373ed (patch) | |
tree | 4b2bfe4af09c67b2c801460c16c33dd5773ea668 /BUILD | |
parent | ffed7fd66521b7b22fd3b2adabefd5547b81b59d (diff) | |
parent | f40fc60cf233fe3c82aeaf7da4d29fa83e600b00 (diff) | |
download | mariadb-git-05dbb26dfcb577321f6a8134ffc0667d07b373ed.tar.gz |
merged 5.1 main -> 5.1-bugteam
Diffstat (limited to 'BUILD')
-rwxr-xr-x | BUILD/compile-dist | 33 |
1 files changed, 25 insertions, 8 deletions
diff --git a/BUILD/compile-dist b/BUILD/compile-dist index 74690fb0c95..caee172f196 100755 --- a/BUILD/compile-dist +++ b/BUILD/compile-dist @@ -13,34 +13,51 @@ path=`dirname $0` # Default to gcc for CC and CXX if test -z "$CXX" ; then - export CXX=gcc + CXX=gcc # Set some required compile options if test -z "$CXXFLAGS" ; then - export CXXFLAGS="-felide-constructors -fno-exceptions -fno-rtti" + CXXFLAGS="-felide-constructors -fno-exceptions -fno-rtti" fi fi if test -z "$CC" ; then - export CC=gcc + CC=gcc fi # Use ccache, if available if ccache -V > /dev/null 2>&1 then - if ! (echo "$CC" | grep "ccache" > /dev/null) + if echo "$CC" | grep "ccache" > /dev/null then - export CC="ccache $CC" + : + else + CC="ccache $CC" fi - if ! (echo "$CXX" | grep "ccache" > /dev/null) + if echo "$CXX" | grep "ccache" > /dev/null then - export CXX="ccache $CXX" + : + else + CXX="ccache $CXX" fi fi +if test -z "$MAKE" +then + if gmake -v > /dev/null 2>&1 + then + MAKE="gmake" + else + MAKE="make" + fi +fi + +export CC CXX MAKE + # Make sure to enable all features that affect "make dist" # Remember that configure restricts the man pages to the configured features ! ./configure \ --with-embedded-server \ --with-ndbcluster -make +$MAKE + |