2020-12-14 08:55:57 -06:00
|
|
|
#! /usr/bin/env bash
|
2016-04-12 03:09:29 -05:00
|
|
|
|
2018-04-12 14:43:19 -05:00
|
|
|
srcdir=`dirname $0`
|
|
|
|
test -n "$srcdir" || srcdir=.
|
|
|
|
|
|
|
|
olddir=`pwd`
|
|
|
|
cd "$srcdir"
|
|
|
|
|
2016-04-12 03:09:29 -05:00
|
|
|
function failed {
|
|
|
|
cat << EOF 1>&2
|
|
|
|
|
|
|
|
Result: $1 failed
|
|
|
|
|
|
|
|
Please try running the commands from autogen.sh manually, and fix errors.
|
|
|
|
EOF
|
|
|
|
exit 1
|
|
|
|
}
|
|
|
|
|
2020-10-24 07:33:28 -05:00
|
|
|
if test `uname -s` = Linux -o `uname -s` = FreeBSD; then
|
2019-05-27 02:09:49 -05:00
|
|
|
libtoolize || failed "libtool"
|
|
|
|
elif test `uname -s` = Darwin; then
|
2020-05-20 15:31:19 -05:00
|
|
|
libtoolize || glibtoolize || failed "Can't find libtoolize or glibtoolize. Use lode or install it yourself."
|
2019-05-27 02:09:49 -05:00
|
|
|
fi
|
2016-04-12 03:09:29 -05:00
|
|
|
|
2019-03-15 11:28:14 -05:00
|
|
|
aclocal || failed "aclocal"
|
2016-04-12 03:09:29 -05:00
|
|
|
|
|
|
|
autoheader || failed "autoheader"
|
|
|
|
|
|
|
|
automake --add-missing || failed "automake"
|
|
|
|
|
|
|
|
autoreconf || failed "autoreconf"
|
|
|
|
|
2020-10-07 04:59:20 -05:00
|
|
|
scripts/refresh-git-hooks || failed "refresh-git-hooks"
|
|
|
|
|
2016-04-12 03:09:29 -05:00
|
|
|
cat << EOF
|
|
|
|
|
2018-04-12 14:43:19 -05:00
|
|
|
Result: All went OK, please run $srcdir/configure (with the appropriate parameters) now.
|
2016-04-12 03:09:29 -05:00
|
|
|
|
|
|
|
EOF
|
2018-04-12 14:43:19 -05:00
|
|
|
|
|
|
|
cd "$olddir"
|