adjusted autogen.sh to work on Solaris

This commit is contained in:
Tim Rühsen 2015-01-22 16:40:13 +01:00
parent d22c4b1483
commit c485ed9edd
1 changed files with 6 additions and 4 deletions

View File

@ -1,6 +1,7 @@
# !/bin/sh -e
if test -z `which autoreconf`; then
AUTORECONF=`which autoreconf 2>/dev/null`
if test $? -ne 0; then
echo "No 'autoreconf' found. You must install the autoconf package."
exit 1
fi
@ -9,15 +10,16 @@ fi
mkdir m4 2>/dev/null
GTKDOCIZE=`which gtkdocize 2>/dev/null`
if test -z $GTKDOCIZE; then
if test $? -ne 0; then
echo "No gtk-doc support found. You can't build the docs."
echo "EXTRA_DIST =" >gtk-doc.make
echo "CLEANFILES =" >>gtk-doc.make
GTKDOCIZE=""
else
gtkdocize || exit $?
$GTKDOCIZE || exit $?
fi
autoreconf --install --force --symlink || exit $?
$AUTORECONF --install --force --symlink || exit $?
echo
echo "----------------------------------------------------------------"