47 lines
1009 B
Bash
Executable File
47 lines
1009 B
Bash
Executable File
#! /bin/sh
|
|
|
|
# autoconf-2.57 is required
|
|
|
|
: ${AUTOHEADER="autoheader${AC_VER}"}
|
|
: ${AUTOCONF="autoconf${AC_VER}"}
|
|
|
|
# automake-1.7.x is required
|
|
|
|
: ${ACLOCAL="aclocal${AM_VER}"}
|
|
: ${AUTOMAKE="automake${AM_VER}"}
|
|
|
|
# Verify autoconf version
|
|
|
|
AUTOCONF_VER=`(${AUTOCONF} --version 2>/dev/null | head -n 1 | \
|
|
cut -d ' ' -f 4) 2>/dev/null`
|
|
if [ "$AUTOCONF_VER" != "2.57" ]
|
|
then
|
|
echo "You need to use autoconf version 2.57."
|
|
echo "You are using `${AUTOCONF} --version | head -n 1`."
|
|
exit 1
|
|
fi
|
|
|
|
# Verify automake version
|
|
|
|
AUTOMAKE_VER=`(${AUTOMAKE} --version | head -n 1 | \
|
|
cut -d ' ' -f 4 | cut -d '.' -f -2) 2>/dev/null`
|
|
if [ "$AUTOMAKE_VER" != "1.7" ]
|
|
then
|
|
echo "You need to use automake version 1.7 (preferrably 1.7.3)."
|
|
echo "You are using `${AUTOMAKE} --version | head -n 1`."
|
|
exit 1
|
|
fi
|
|
|
|
# automake doesn't find autoconf${AC_VER} unless this variable is
|
|
# exported:
|
|
export AUTOCONF
|
|
|
|
# Bootstrap the build system.
|
|
|
|
set -x
|
|
|
|
${ACLOCAL}
|
|
${AUTOHEADER}
|
|
${AUTOCONF}
|
|
${AUTOMAKE} -a -c
|