2003-02-14 20:34:03 +00:00
|
|
|
#! /bin/sh
|
|
|
|
|
2005-05-14 08:06:18 +00:00
|
|
|
# autoconf-2.59 is required
|
2003-02-14 20:34:03 +00:00
|
|
|
|
2003-03-06 04:45:30 +00:00
|
|
|
: ${AUTOHEADER="autoheader${AC_VER}"}
|
|
|
|
: ${AUTOCONF="autoconf${AC_VER}"}
|
2003-02-14 20:34:03 +00:00
|
|
|
|
2005-05-14 08:06:18 +00:00
|
|
|
# automake-1.9.x is required
|
2003-02-14 20:34:03 +00:00
|
|
|
|
2003-03-06 04:45:30 +00:00
|
|
|
: ${ACLOCAL="aclocal${AM_VER}"}
|
|
|
|
: ${AUTOMAKE="automake${AM_VER}"}
|
2003-02-14 20:34:03 +00:00
|
|
|
|
2003-03-06 04:45:30 +00:00
|
|
|
# Verify autoconf version
|
|
|
|
|
|
|
|
AUTOCONF_VER=`(${AUTOCONF} --version 2>/dev/null | head -n 1 | \
|
|
|
|
cut -d ' ' -f 4) 2>/dev/null`
|
2005-05-14 08:06:18 +00:00
|
|
|
if [ "$AUTOCONF_VER" != "2.59" ]
|
2003-03-06 04:45:30 +00:00
|
|
|
then
|
2005-05-14 08:06:18 +00:00
|
|
|
echo "You need to use autoconf version 2.59."
|
2003-03-06 04:45:30 +00:00
|
|
|
echo "You are using `${AUTOCONF} --version | head -n 1`."
|
|
|
|
exit 1
|
2003-02-14 20:34:03 +00:00
|
|
|
fi
|
|
|
|
|
2003-03-06 04:45:30 +00:00
|
|
|
# Verify automake version
|
|
|
|
|
|
|
|
AUTOMAKE_VER=`(${AUTOMAKE} --version | head -n 1 | \
|
|
|
|
cut -d ' ' -f 4 | cut -d '.' -f -2) 2>/dev/null`
|
2005-05-14 08:06:18 +00:00
|
|
|
if [ "$AUTOMAKE_VER" != "1.9" ]
|
2003-03-06 04:45:30 +00:00
|
|
|
then
|
2005-05-14 08:06:18 +00:00
|
|
|
echo "You need to use automake version 1.9."
|
2003-03-06 04:45:30 +00:00
|
|
|
echo "You are using `${AUTOMAKE} --version | head -n 1`."
|
|
|
|
exit 1
|
2003-02-14 20:34:03 +00:00
|
|
|
fi
|
|
|
|
|
2003-03-10 21:25:13 +00:00
|
|
|
export ACLOCAL AUTOHEADER AUTOCONF AUTOMAKE
|
2003-03-10 20:20:55 +00:00
|
|
|
|
2003-02-14 20:34:03 +00:00
|
|
|
# Bootstrap the build system.
|
|
|
|
|
|
|
|
set -x
|
|
|
|
|
2004-07-19 06:10:43 +00:00
|
|
|
rm -rf autom4te.cache
|
|
|
|
|
2003-02-14 20:34:03 +00:00
|
|
|
${ACLOCAL}
|
|
|
|
${AUTOHEADER}
|
|
|
|
${AUTOCONF}
|
|
|
|
${AUTOMAKE} -a -c
|