2004-12-31 12:46:18 +01:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
|
|
|
# This script's purpose is to update the automake/autoconf helper scripts and
|
|
|
|
# to run a plain "configure" without any special compile flags. Only features
|
|
|
|
# that affect the content of the source distribution are enabled. The resulting
|
|
|
|
# tree can then be picked up by "make dist" to create the "pristine source
|
|
|
|
# package" that is used as the basis for all other binary builds.
|
|
|
|
#
|
|
|
|
make distclean
|
|
|
|
aclocal
|
|
|
|
autoheader
|
|
|
|
libtoolize --automake --force --copy
|
|
|
|
automake --force --add-missing --copy
|
|
|
|
autoconf
|
2005-04-27 22:46:20 +02:00
|
|
|
(cd storage/bdb/dist && sh s_all)
|
|
|
|
(cd storage/innobase && aclocal && autoheader && aclocal && automake && autoconf)
|
2004-12-31 12:46:18 +01:00
|
|
|
|
|
|
|
# Default to gcc for CC and CXX
|
|
|
|
if test -z "$CXX" ; then
|
|
|
|
export CXX=gcc
|
|
|
|
fi
|
|
|
|
|
|
|
|
if test -z "$CC" ; then
|
|
|
|
export CC=gcc
|
|
|
|
fi
|
|
|
|
|
|
|
|
# Use ccache, if available
|
|
|
|
if ccache -V > /dev/null 2>&1
|
|
|
|
then
|
|
|
|
if ! (echo "$CC" | grep "ccache" > /dev/null)
|
|
|
|
then
|
|
|
|
export CC="ccache $CC"
|
|
|
|
fi
|
|
|
|
if ! (echo "$CXX" | grep "ccache" > /dev/null)
|
|
|
|
then
|
|
|
|
export CXX="ccache $CXX"
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
# Make sure to enable all features that affect "make dist"
|
|
|
|
./configure \
|
|
|
|
--with-embedded-server \
|
|
|
|
--with-berkeley-db \
|
|
|
|
--with-innodb \
|
2004-12-31 13:12:36 +01:00
|
|
|
--enable-thread-safe-client \
|
2005-01-06 15:32:42 +01:00
|
|
|
--with-extra-charsets=complex \
|
2004-12-31 13:12:36 +01:00
|
|
|
--with-ndbcluster
|
2004-12-31 12:46:18 +01:00
|
|
|
make
|