mariadb/storage/bdb/dist/s_config

35 lines
999 B
Text
Raw Normal View History

2001-03-04 19:42:05 -05:00
#!/bin/sh -
2005-12-05 10:27:46 -08:00
# $Id: s_config,v 12.1 2005/08/16 05:19:18 mjc Exp $
2001-03-04 19:42:05 -05:00
#
# Build the autoconfiguration files.
2002-10-30 15:57:05 +04:00
trap 'rm -f aclocal.m4 ; exit 0' 0 1 2 3 13 15
2001-03-04 19:42:05 -05:00
. ./RELEASE
2005-07-20 15:48:22 -07:00
echo "autoconf: building aclocal.m4..."
cat aclocal/*.ac aclocal_java/*.ac > aclocal.m4
echo "autoconf: running autoheader to build config.hin..."
2001-03-04 19:42:05 -05:00
rm -f config.hin
2002-10-30 15:57:05 +04:00
autoheader
2001-03-04 19:42:05 -05:00
chmod 444 config.hin
2005-07-20 15:48:22 -07:00
echo "autoconf: running autoconf to build configure"
2001-03-04 19:42:05 -05:00
rm -f configure
2002-10-30 15:57:05 +04:00
autoconf
# Edit version information we couldn't pre-compute.
2005-12-05 10:27:46 -08:00
sed -e "s/__EDIT_DB_VERSION_MAJOR__/$DB_VERSION_MAJOR/g" \
-e "s/__EDIT_DB_VERSION_MINOR__/$DB_VERSION_MINOR/g" \
-e "s/__EDIT_DB_VERSION_PATCH__/$DB_VERSION_PATCH/g" \
-e "s/__EDIT_DB_VERSION_STRING__/$DB_VERSION_STRING/g" \
-e "s/__EDIT_DB_VERSION_UNIQUE_NAME__/$DB_VERSION_UNIQUE_NAME/g" \
-e "s/__EDIT_DB_VERSION__/$DB_VERSION/g" configure > configure.version
mv configure.version configure
2002-10-30 15:57:05 +04:00
rm -rf autom4te.cache
chmod 555 configure
2001-03-04 19:42:05 -05:00
2002-10-30 15:57:05 +04:00
chmod 555 config.guess config.sub install-sh