f03f28a18a
This checks that autoreconf is actually the one we expect and not some unrelated script.
32 lines
675 B
Bash
Executable File
32 lines
675 B
Bash
Executable File
#! /bin/sh
|
|
|
|
if glibtoolize --version > /dev/null 2>&1; then
|
|
LIBTOOLIZE='glibtoolize'
|
|
else
|
|
LIBTOOLIZE='libtoolize'
|
|
fi
|
|
|
|
if [ ! -x "`which $LIBTOOLIZE 2>/dev/null`" ] ; then
|
|
echo "libtool is required, but wasn't found on this system"
|
|
exit 1
|
|
fi
|
|
|
|
if [ ! -x "`which autoconf 2>/dev/null`" ] ; then
|
|
echo "autoconf is required, but wasn't found on this system"
|
|
exit 1
|
|
fi
|
|
|
|
if [ ! -x "`which automake 2>/dev/null`" ] ; then
|
|
echo "automake is required, but wasn't found on this system"
|
|
exit 1
|
|
fi
|
|
|
|
if autoreconf --version > /dev/null 2>&1 ; then
|
|
exec autoreconf -ivf
|
|
fi
|
|
|
|
$LIBTOOLIZE && \
|
|
aclocal && \
|
|
automake --add-missing --force-missing --include-deps && \
|
|
autoconf
|