libreoffice-online/autogen.sh
Tor Lillqvist 14e998723f Make glibtoolize optional, as presumably was the thought
Change-Id: I85b7247451d74182906e96a8a9aa0d7cdcbe1970
2019-02-19 16:30:43 +02:00

42 lines
925 B
Bash
Executable file

#! /bin/bash
srcdir=`dirname $0`
test -n "$srcdir" || srcdir=.
olddir=`pwd`
cd "$srcdir"
function failed {
cat << EOF 1>&2
Result: $1 failed
Please try running the commands from autogen.sh manually, and fix errors.
EOF
exit 1
}
if test `uname -s` = Linux; then
libtoolize || failed "libtool"
elif test `uname -s` = Darwin; then
echo 'Having glibtoolize is mandatory only if you intend to use the alternative "brew" method. See ios/README.' >&2
echo 'So unless you plan to do that, it does not matter if glibtoolize is not be found below:' >&2
glibtoolize
echo 'There. The script now continues. Errors below are fatal.' >&2
fi
aclocal || failed "aclocal"
autoheader || failed "autoheader"
automake --add-missing || failed "automake"
autoreconf || failed "autoreconf"
cat << EOF
Result: All went OK, please run $srcdir/configure (with the appropriate parameters) now.
EOF
cd "$olddir"