2014-03-20 17:17:24 +01:00
|
|
|
# !/bin/sh -e
|
|
|
|
|
2015-01-22 16:40:13 +01:00
|
|
|
AUTORECONF=`which autoreconf 2>/dev/null`
|
|
|
|
if test $? -ne 0; then
|
2014-03-24 15:53:33 +01:00
|
|
|
echo "No 'autoreconf' found. You must install the autoconf package."
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
2014-04-02 11:23:38 +02:00
|
|
|
# create m4 before gtkdocize
|
|
|
|
mkdir m4 2>/dev/null
|
|
|
|
|
2014-04-02 10:27:13 +02:00
|
|
|
GTKDOCIZE=`which gtkdocize 2>/dev/null`
|
2015-01-22 16:40:13 +01:00
|
|
|
if test $? -ne 0; then
|
2014-04-02 10:27:13 +02:00
|
|
|
echo "No gtk-doc support found. You can't build the docs."
|
2015-01-23 12:19:50 +01:00
|
|
|
# rm because gtk-doc.make might be a link to a protected file
|
|
|
|
rm -f gtk-doc.make 2>/dev/null
|
2014-04-02 10:27:13 +02:00
|
|
|
echo "EXTRA_DIST =" >gtk-doc.make
|
|
|
|
echo "CLEANFILES =" >>gtk-doc.make
|
2015-01-22 16:40:13 +01:00
|
|
|
GTKDOCIZE=""
|
2014-04-02 10:27:13 +02:00
|
|
|
else
|
2015-01-22 16:40:13 +01:00
|
|
|
$GTKDOCIZE || exit $?
|
2014-04-02 10:27:13 +02:00
|
|
|
fi
|
|
|
|
|
2015-01-22 16:40:13 +01:00
|
|
|
$AUTORECONF --install --force --symlink || exit $?
|
2014-03-20 17:17:24 +01:00
|
|
|
|
|
|
|
echo
|
|
|
|
echo "----------------------------------------------------------------"
|
|
|
|
echo "Initialized build system. For a common configuration please run:"
|
|
|
|
echo "----------------------------------------------------------------"
|
|
|
|
echo
|
2014-04-02 10:27:13 +02:00
|
|
|
if test -z $GTKDOCIZE; then
|
|
|
|
echo "./configure"
|
|
|
|
else
|
|
|
|
echo "./configure --enable-gtk-doc"
|
|
|
|
fi
|
2014-03-20 17:17:24 +01:00
|
|
|
echo
|