mariadb/BUILD/choose_configure.sh
Joerg Bruehe 4b68b2d289 Merge the changes of the 5.5.3-m3 release build
back into the development branches.
2010-04-18 15:32:05 +02:00

20 lines
601 B
Bash

#!/bin/sh
# Choose whether to use autoconf created configure
# of perl script that calls cmake.
# # This is a temporary hack to build 5.5.3-m3:
# # The "cmake" way still shows issues in our release build environment.
# # Block it temporarily, but in a way that can easily be undone.
# HAVE_CMAKE=no
# 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