diff options
author | Davi Arnaut <davi.arnaut@oracle.com> | 2010-07-22 08:30:14 -0300 |
---|---|---|
committer | Davi Arnaut <davi.arnaut@oracle.com> | 2010-07-22 08:30:14 -0300 |
commit | 5f9de42e26f9a97eca87227ea5315ea7d20c51c3 (patch) | |
tree | f99f25db87bc3ef8c3092fb325bdaa12f5d9c476 /BUILD/cmake_configure.sh | |
parent | 2857a84985a2fa1aa994fd2e6473a2b191f10841 (diff) | |
download | mariadb-git-5f9de42e26f9a97eca87227ea5315ea7d20c51c3.tar.gz |
Do not generate autotools configuration scripts when cmake is to be used.
Diffstat (limited to 'BUILD/cmake_configure.sh')
-rw-r--r-- | BUILD/cmake_configure.sh | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/BUILD/cmake_configure.sh b/BUILD/cmake_configure.sh new file mode 100644 index 00000000000..80423205274 --- /dev/null +++ b/BUILD/cmake_configure.sh @@ -0,0 +1,15 @@ +#!/bin/sh +# Choose whether to use autoconf created configure +# of perl script that calls cmake. + +# Ensure cmake and perl are there +cmake -P cmake/check_minimal_version.cmake >/dev/null 2>&1 || HAVE_CMAKE=no +perl --version >/dev/null 2>&1 || HAVE_CMAKE=no +scriptdir=`dirname $0` +if test "$HAVE_CMAKE" = "no" +then + sh $scriptdir/configure.am "$@" +else + perl $scriptdir/cmake/configure.pl "$@" +fi + |