2014-05-16 18:38:59 -04:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
set -ex
|
|
|
|
rm -rf autom4te.cache Makefile.in aclocal.m4
|
|
|
|
aclocal --force
|
|
|
|
|
|
|
|
# GNU libtool is named differently on some systems. This code tries several
|
|
|
|
# variants like glibtoolize (MacOSX) and libtoolize1x (FreeBSD)
|
|
|
|
|
|
|
|
set +ex
|
|
|
|
echo "Looking for a version of libtoolize (which can have different names)..."
|
|
|
|
libtoolize=""
|
|
|
|
for l in glibtoolize libtoolize15 libtoolize14 libtoolize ; do
|
|
|
|
$l --version > /dev/null 2>&1
|
|
|
|
if [ $? = 0 ]; then
|
|
|
|
libtoolize=$l
|
|
|
|
echo "Found $l"
|
|
|
|
break
|
|
|
|
fi
|
|
|
|
echo "Did not find $l"
|
|
|
|
done
|
|
|
|
|
|
|
|
if [ "x$libtoolize" == "x" ]; then
|
|
|
|
echo "Can't find libtoolize on your system"
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
set -ex
|
|
|
|
$libtoolize -c -f
|
|
|
|
autoconf -f -W all,no-obsolete
|
|
|
|
autoheader -f -W all
|
2014-05-16 18:57:03 -04:00
|
|
|
# automake -a -c -f -W all
|
2014-05-17 04:00:28 -04:00
|
|
|
automake --add-missing --foreign --copy -c -W all
|
2014-05-16 18:38:59 -04:00
|
|
|
|
|
|
|
rm -rf autom4te.cache
|
|
|
|
exit 0
|
|
|
|
|
|
|
|
# end autogen.sh
|