Let autogen.sh work on Solaris and without gtkdocize
This commit is contained in:
parent
9f420e2d91
commit
f829668e0d
14
autogen.sh
14
autogen.sh
|
@ -1,21 +1,21 @@
|
||||||
#!/bin/sh -e
|
#!/bin/sh
|
||||||
|
|
||||||
AUTORECONF=$(which autoreconf 2>/dev/null || true)
|
AUTORECONF=$(which autoreconf 2>/dev/null)
|
||||||
if test $? -ne 0; then
|
if test $? -ne 0; then
|
||||||
echo "No 'autoreconf' found. You must install the autoconf package."
|
echo "No 'autoreconf' found. You must install the autoconf package."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
GIT=$(which git 2>/dev/null || true)
|
GIT=$(which git 2>/dev/null)
|
||||||
if test $? -ne 0; then
|
if test $? -ne 0; then
|
||||||
echo "No 'git' found. You must install the git package."
|
echo "No 'git' found. You must install the git package."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# create m4 before gtkdocize
|
# create m4 before gtkdocize
|
||||||
mkdir m4 2>/dev/null || true
|
mkdir -p m4 2>/dev/null
|
||||||
|
|
||||||
GTKDOCIZE=$(which gtkdocize 2>/dev/null || true)
|
GTKDOCIZE=$(which gtkdocize 2>/dev/null)
|
||||||
if test $? -ne 0; then
|
if test $? -ne 0; then
|
||||||
echo "No gtk-doc support found. You can't build the docs."
|
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 because gtk-doc.make might be a link to a protected file
|
||||||
|
@ -24,7 +24,7 @@ if test $? -ne 0; then
|
||||||
echo "CLEANFILES =" >>gtk-doc.make
|
echo "CLEANFILES =" >>gtk-doc.make
|
||||||
GTKDOCIZE=""
|
GTKDOCIZE=""
|
||||||
else
|
else
|
||||||
$GTKDOCIZE || exit $?
|
$GTKDOCIZE
|
||||||
fi
|
fi
|
||||||
|
|
||||||
$GIT submodule init
|
$GIT submodule init
|
||||||
|
|
Loading…
Reference in New Issue