1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62
|
#! /bin/sh
# reconfigure CVS source code
automake_version=`automake --version | grep 'automake' | sed -e 's/^[^0-9]*\([0-9.][0-9.]*\).*$/\1/'`
libtool_version=`libtoolize --version | grep 'libtoolize' | sed -e 's/^[^0-9]*\([0-9.][0-9.]*\).*$/\1/'`
autoconf_version=`env WANT_AUTOCONF_2_5=1 autoconf --version | grep 'autoconf' | sed -e 's/^[^0-9]*\([0-9.][0-9.]*\).*$/\1/'`
echo "found automake version: $automake_version (1.7.x or better required) "
echo "found libtool version: $libtool_version (1.4.x or better required)"
echo "found autoconf version: $autoconf_version (2.57 or better required)"
bad_libtool=true
case $libtool_version in
1.4*|1.5*|1.6*)
bad_libtool=false
;;
esac
bad_automake=true
case $automake_version in
1.7*|1.8*|1.9*)
bad_automake=false
;;
esac
bad_autoconf=true
case $autoconf_version in
2.5*)
bad_autoconf=false
;;
esac
do_abort=false
if $bad_automake ; then
echo "automake version 1.7 or better is required"
do_abort=true
fi
if $bad_libtool ; then
echo "libtool version 1.4 or better is required"
do_abort=true
fi
if $bad_autoconf ; then
echo "autoconf version 2.57 or better is required"
do_abort=true
fi
if $do_abort ; then
echo "...aborting"
exit 1
fi
set -x
libtoolize --automake --debug || exit 1
aclocal || exit 2
autoheader || exit 3
automake --add-missing || exit 4
autoconf || exit 5
#autoreconf || exit 5
|