8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-22 16:43:03 +01:00

Newer (appears 2.X) versions of libtoolize require switch --install

to create additional files (config.sub, config.guess). Added detection
of that switch - based on original patch from Bill Oliver.
This commit is contained in:
alexpeshkoff 2008-12-24 12:43:37 +00:00
parent c7eaa2d1d2
commit aa44a34bed

View File

@ -77,7 +77,18 @@ if test "x$LIBTOOL_M4" != "x"; then
rm -f aclocal.m4
cp $LIBTOOL_M4 aclocal.m4
fi
$LIBTOOLIZE --copy --force || exit 1
TEMPFILE="./lt.out"
$LIBTOOLIZE --install --dry-run >$TEMPFILE 2>&1
LIBTOOL_AUX_FILES=`grep 'unrecognized option' $TEMPFILE`
rm -f $TEMPFILE
if test "x$LIBTOOL_AUX_FILES" != "x"; then
$LIBTOOLIZE --copy --force || exit 1
else
# libtoolize no longer installs config.guess and config.sub by default.
# Use new --install option to get old behavior.
$LIBTOOLIZE --copy --force --install || exit 1
fi
echo "Running autoreconf ..."
autoreconf -if