2011-06-30 17:46:53 +02:00
|
|
|
# Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved.
|
2010-12-28 19:57:23 +01:00
|
|
|
#
|
|
|
|
# This program is free software; you can redistribute it and/or
|
|
|
|
# modify it under the terms of the GNU Library General Public
|
|
|
|
# License as published by the Free Software Foundation; version 2
|
|
|
|
# of the License.
|
|
|
|
#
|
|
|
|
# This program is distributed in the hope that it will be useful,
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
# Library General Public License for more details.
|
|
|
|
#
|
|
|
|
# You should have received a copy of the GNU Library General Public
|
|
|
|
# License along with this library; if not, write to the Free
|
2011-06-30 17:31:31 +02:00
|
|
|
# Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
|
|
|
|
# MA 02110-1301, USA
|
2018-01-13 15:38:43 +01:00
|
|
|
|
2009-12-06 18:34:54 +01:00
|
|
|
cflags="$c_warnings $extra_flags $EXTRA_FLAGS $EXTRA_CFLAGS"
|
|
|
|
cxxflags="$cxx_warnings $base_cxxflags $extra_flags $EXTRA_FLAGS $EXTRA_CXXFLAGS"
|
|
|
|
extra_configs="$extra_configs $local_infile_configs $EXTRA_CONFIGS"
|
2011-11-21 18:13:14 +01:00
|
|
|
|
2000-12-18 22:24:19 +01:00
|
|
|
configure="./configure $base_configs $extra_configs"
|
2000-12-18 22:55:47 +01:00
|
|
|
|
2012-09-18 14:14:19 +02:00
|
|
|
if test "$just_print" = "1" -a "$just_configure" = "1"
|
|
|
|
then
|
|
|
|
just_print=""
|
|
|
|
configure="$configure --print"
|
|
|
|
fi
|
|
|
|
|
2013-01-11 01:03:43 +01:00
|
|
|
if test "$AM_EXTRA_MAKEFLAGS" = "VERBOSE=1" -o "$verbose_make" = "1"
|
|
|
|
then
|
|
|
|
configure="$configure --verbose"
|
|
|
|
fi
|
|
|
|
|
2018-01-10 18:36:38 +01:00
|
|
|
commands=""
|
2017-01-03 14:47:17 +01:00
|
|
|
# git clean -fdX removes all ignored (build) files
|
2018-01-10 18:36:38 +01:00
|
|
|
if test -d .git
|
|
|
|
then
|
|
|
|
commands="\
|
2017-01-03 14:47:17 +01:00
|
|
|
git clean -fdX
|
2017-06-30 17:06:21 +02:00
|
|
|
cd ./libmariadb
|
|
|
|
git submodule update
|
|
|
|
cd ../storage/rocksdb/rocksdb
|
|
|
|
git submodule update
|
2018-01-10 18:36:38 +01:00
|
|
|
cd ../../.."
|
|
|
|
fi
|
|
|
|
commands="$commands
|
2005-05-18 13:23:29 +02:00
|
|
|
path=`dirname $0`
|
|
|
|
. \"$path/autorun.sh\""
|
2000-12-18 22:24:19 +01:00
|
|
|
|
2003-08-27 21:30:50 +02:00
|
|
|
if [ -z "$just_clean" ]
|
|
|
|
then
|
|
|
|
commands="$commands
|
2017-05-29 15:40:24 +02:00
|
|
|
git submodule update
|
2013-05-05 20:39:31 +02:00
|
|
|
CC=\"$CC\" CFLAGS=\"$cflags\" CXX=\"$CXX\" CXXFLAGS=\"$cxxflags\" CXXLDFLAGS=\"$CXXLDFLAGS\" $configure"
|
2003-08-27 21:30:50 +02:00
|
|
|
fi
|
2001-01-31 02:43:16 +01:00
|
|
|
|
2003-08-27 21:30:50 +02:00
|
|
|
if [ -z "$just_configure" -a -z "$just_clean" ]
|
2001-01-31 02:43:16 +01:00
|
|
|
then
|
|
|
|
commands="$commands
|
2000-12-20 08:11:49 +01:00
|
|
|
|
2013-01-11 01:03:43 +01:00
|
|
|
$make $AM_MAKEFLAGS $AM_EXTRA_MAKEFLAGS"
|
2001-03-04 22:34:26 +01:00
|
|
|
|
|
|
|
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
|
|
|
|
2003-10-08 20:50:05 +02:00
|
|
|
if test -z "$just_print"
|
2001-01-31 02:43:16 +01:00
|
|
|
then
|
|
|
|
eval "set -x; $commands"
|
|
|
|
else
|
|
|
|
echo "$commands"
|
|
|
|
fi
|