2000-12-18 22:24:19 +01:00
|
|
|
cflags="$c_warnings $extra_flags"
|
|
|
|
cxxflags="$cxx_warnings $base_cxxflags $extra_flags"
|
2002-03-02 20:45:44 +01:00
|
|
|
extra_configs="$extra_configs $local_infile_configs"
|
2000-12-18 22:24:19 +01:00
|
|
|
configure="./configure $base_configs $extra_configs"
|
2001-01-31 02:43:16 +01:00
|
|
|
for arg
|
|
|
|
do
|
|
|
|
# Escape special characters so they don't confuse eval
|
|
|
|
configure="$configure "`echo "$arg" | \
|
|
|
|
sed -e 's,\([^a-zA-Z0-9_.=-]\),\\\\\1,g'`
|
2000-12-18 22:55:47 +01:00
|
|
|
done
|
|
|
|
|
2001-01-31 02:43:16 +01:00
|
|
|
commands="\
|
|
|
|
$make -k clean || true
|
2003-02-20 10:20:26 +01:00
|
|
|
/bin/rm -rf */.deps/*.P config.cache innobase/config.cache bdb/build_unix/config.cache bdb/dist/autom4te.cache autom4te.cache innobase/autom4te.cache;
|
2000-12-18 22:24:19 +01:00
|
|
|
|
2003-02-12 13:08:55 +01:00
|
|
|
aclocal || (echo \"Can't execute aclocal\" && exit 1)
|
|
|
|
autoheader || (echo \"Can't execute autoheader\" && exit 1)
|
|
|
|
aclocal || (echo \"Can't execute aclocal\" && exit 1)
|
|
|
|
automake || (echo \"Can't execute automake\" && exit 1)
|
|
|
|
autoconf || (echo \"Can't execute autoconf\" && exit 1)
|
2001-03-05 02:59:13 +01:00
|
|
|
(cd bdb/dist && sh s_all)
|
|
|
|
(cd innobase && aclocal && autoheader && aclocal && automake && autoconf)
|
2001-05-29 15:29:08 +02:00
|
|
|
if [ -d gemini ]
|
|
|
|
then
|
|
|
|
(cd gemini && aclocal && autoheader && aclocal && automake && autoconf)
|
|
|
|
fi
|
2000-12-18 22:24:19 +01:00
|
|
|
|
2002-01-02 20:29:41 +01:00
|
|
|
CFLAGS=\"$cflags\" CXX=\"$CXX\" CXXFLAGS=\"$cxxflags\" CXXLDFLAGS=\"$CXXLDFLAGS\" \
|
|
|
|
$configure"
|
2001-01-31 02:43:16 +01:00
|
|
|
|
2001-03-04 22:34:26 +01:00
|
|
|
if [ -z "$just_configure" ]
|
2001-01-31 02:43:16 +01:00
|
|
|
then
|
|
|
|
commands="$commands
|
2000-12-20 08:11:49 +01:00
|
|
|
|
2001-03-04 22:34:26 +01:00
|
|
|
$make $AM_MAKEFLAGS"
|
|
|
|
|
|
|
|
if [ "x$strip" = "xyes" ]
|
|
|
|
then
|
|
|
|
commands="$commands
|
|
|
|
|
2001-02-03 17:00:29 +01:00
|
|
|
mkdir -p tmp
|
2001-01-31 02:43:16 +01:00
|
|
|
nm --numeric-sort sql/mysqld > tmp/mysqld.sym
|
|
|
|
objdump -d sql/mysqld > tmp/mysqld.S
|
|
|
|
strip sql/mysqld"
|
2001-03-04 22:34:26 +01:00
|
|
|
fi
|
|
|
|
fi
|
2001-01-31 02:43:16 +01:00
|
|
|
|
|
|
|
if test -z "$nonono"
|
|
|
|
then
|
|
|
|
eval "set -x; $commands"
|
|
|
|
else
|
|
|
|
echo "$commands"
|
|
|
|
fi
|