2004-01-30 12:19:45 -05:00
|
|
|
#!/bin/sh
|
|
|
|
|
2009-08-01 09:52:20 -04:00
|
|
|
PATH="/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/usr/pkg/bin:/usr/pkg/sbin"
|
|
|
|
|
2015-02-27 17:11:39 -05:00
|
|
|
_ac_version="2.69"
|
|
|
|
_am_version="1.14"
|
2004-01-30 12:19:45 -05:00
|
|
|
|
2017-07-07 10:43:08 -04:00
|
|
|
if [ ! -f "./$(basename $0)" ]; then
|
|
|
|
echo "Please chdir into $(basename $0)'s directory first."
|
2007-02-24 16:16:26 -05:00
|
|
|
exit 1
|
2004-01-30 12:19:45 -05:00
|
|
|
fi
|
|
|
|
|
2009-08-01 11:26:28 -04:00
|
|
|
USE_LIBTOOL="$(grep AC_PROG_LIBTOOL ./configure.* 2> /dev/null)"
|
|
|
|
|
2009-03-15 20:08:31 -04:00
|
|
|
EXTRA=
|
2009-08-01 09:52:20 -04:00
|
|
|
if [ -d m4 ]; then
|
|
|
|
EXTRA="-I m4"
|
|
|
|
fi
|
|
|
|
|
2009-03-15 20:08:31 -04:00
|
|
|
if [ -d /usr/local/share/aclocal ]; then
|
2009-08-01 09:52:20 -04:00
|
|
|
EXTRA="${EXTRA} -I /usr/local/share/aclocal"
|
2009-03-15 20:08:31 -04:00
|
|
|
fi
|
|
|
|
|
2009-08-01 09:52:20 -04:00
|
|
|
AUTOCONF_VERSION="${_ac_version}" AUTOMAKE_VERSION="${_am_version}" \
|
|
|
|
aclocal ${EXTRA} || exit 1
|
|
|
|
AUTOCONF_VERSION="${_ac_version}" AUTOMAKE_VERSION="${_am_version}" \
|
|
|
|
autoconf || exit 1
|
|
|
|
AUTOCONF_VERSION="${_ac_version}" AUTOMAKE_VERSION="${_am_version}" \
|
|
|
|
autoheader || exit 1
|
2009-08-01 11:26:28 -04:00
|
|
|
if [ -n "${USE_LIBTOOL}" ]; then
|
|
|
|
AUTOCONF_VERSION="${_ac_version}" AUTOMAKE_VERSION="${_am_version}" \
|
|
|
|
libtoolize --automake -c -f || exit 1
|
|
|
|
fi
|
2009-08-01 09:52:20 -04:00
|
|
|
AUTOCONF_VERSION="${_ac_version}" AUTOMAKE_VERSION="${_am_version}" \
|
|
|
|
automake -a -c || exit 1
|
|
|
|
|
2007-02-24 16:16:26 -05:00
|
|
|
rm -r autom4te.cache
|
2009-08-01 09:52:20 -04:00
|
|
|
|
|
|
|
exit 0
|