run_versioned() {
local P
- type -p "$1-$2" &> /dev/null && P="$1-$2" || local P="$1"
+ local V
+
+ V=$(echo "$2" | sed -e 's,\.,,g')
+
+ if [ -e "`which $1$V`" ] ; then
+ P="$1$V"
+ else
+ if [ -e "`which $1-$2`" ] ; then
+ P="$1-$2"
+ else
+ P="$1"
+ fi
+ fi
shift 2
"$P" "$@"
rm -rf autom4te.cache
rm -f config.cache
- libtoolize -c --force
+ test "x$LIBTOOLIZE" = "x" && LIBTOOLIZE=libtoolize
+
+ "$LIBTOOLIZE" -c --force
run_versioned aclocal "$VERSION" -I common
- autoconf -Wall
- autoheader
+ run_versioned autoconf 2.59 -Wall
+ run_versioned autoheader 2.59
run_versioned automake "$VERSION" -a -c --foreign
if test "x$NOCONFIGURE" = "x"; then