libexpat/expat/buildconf.sh
Karl Waclawek 06f392cb07 Changes to the build files:
- replaced the contents of buildconf.sh with instructions to run "autoreconf -fvi")
- some build files were removed, like config.guess, config.sub and install-sh,
  as autoreconf will re-create them.
- clean-up modified to remove files that autoreconf re-created
2012-03-03 18:35:54 +00:00

27 lines
813 B
Bash
Executable File

#! /bin/sh
#--------------------------------------------------------------------------
# autoconf 2.58 or newer
#
ac_version="`${AUTOCONF:-autoconf} --version 2> /dev/null | head -1 | sed -e 's/^[^0-9]*//' -e 's/[a-z]* *$//'`"
if test -z "$ac_version"; then
echo "ERROR: autoconf not found."
echo " You need autoconf version 2.58 or newer installed."
exit 1
fi
IFS=.; set $ac_version; IFS=' '
if test "$1" = "2" -a "$2" -lt "58" || test "$1" -lt "2"; then
echo "ERROR: autoconf version $ac_version found."
echo " You need autoconf version 2.58 or newer installed."
exit 1
fi
echo "Creating configure ..."
${AUTOCONF:-autoreconf} -fvi
# toss this; it gets created by autoconf on some systems
rm -rf autom4te*.cache
# exit with the right value, so any calling script can continue
exit 0