libpsl/autogen.sh

45 lines
1.1 KiB
Bash
Raw Normal View History

#!/bin/sh
2014-03-20 17:17:24 +01:00
AUTORECONF=$(which autoreconf 2>/dev/null)
2015-01-22 16:40:13 +01:00
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
GIT=$(which git 2>/dev/null)
if test $? -ne 0; then
echo "No 'git' found. You must install the git package."
exit 1
fi
# create m4 before gtkdocize
mkdir -p m4 2>/dev/null
2014-04-02 11:23:38 +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."
# 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
$GTKDOCIZE
2014-04-02 10:27:13 +02:00
fi
$GIT submodule init
$GIT submodule update
$AUTORECONF --install --force --symlink
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