forked from facebook/watchman
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathautogen.sh
executable file
·30 lines (26 loc) · 968 Bytes
/
autogen.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/bin/bash -e
# vim:ts=2:sw=2:et:
if test -d autom4te.cache ; then
rm -rf autom4te.cache
fi
if test -d config.status ; then
rm -f config.status
fi
for p in libtoolize glibtoolize FAIL; do
test "$p" = FAIL && { echo "your system lacks libtoolize" 1>&2; exit 1; } || :
( $p --version ) > /dev/null 2>&1 && { eval "libtoolize() { env $p; }"; break; } || :
done
libtoolize --no-warn -i -f
aclocal
autoheader
automake --add-missing --foreign
# This checks to make sure PKG_CHECK_MODULES is available to autoconf. This
# should be the case provided pkg-config is installed AND the above commands
# have been run to prep the source tree with local set-up.
CHECK_PKG_CONFIG_M4='m4_ifdef([PKG_CHECK_MODULES], [errprint([ok])])'
if [ "x$(autoconf <(echo "$CHECK_PKG_CONFIG_M4") 2>&1)" != "xok" ] ; then
echo 'pkg-config appears to be missing (not available to autoconf tools)'
echo 'please install the pkg-config package for your system.'
exit 1
fi
autoconf