-
Notifications
You must be signed in to change notification settings - Fork 0
/
bootstrap
executable file
·51 lines (47 loc) · 1.48 KB
/
bootstrap
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#!/bin/sh
set -e
if [ ! -z "`which autoreconf`" ]; then
echo "Warning! It would probably be a better idea to just run \"autoreconf -fvi\" instead of running this script."
echo "Continuing anyway..."
fi
export WANT_AUTOMAKE='1.10'
export WANT_AUTOCONF_2_5=1
if [ ! -z "`which libtoolize`" ]; then
export LIBTOOLIZE=`which libtoolize`
elif [ ! -z "`which glibtoolize`" ]; then
export LIBTOOLIZE=`which glibtoolize`
else
echo "libtool not found; this is required in order to use this bootstrap script."
exit 0
fi
echo "Running libtool..."
$LIBTOOLIZE --force --no-warn --copy
if [ -z "`which aclocal`" ]; then
echo "aclocal not found; this is required in order to use this bootstrap script."
exit 0
fi
echo "Running aclocal..."
aclocal $ACLOCAL_FLAGS -I m4 --force
if [ -z "`which autoheader`" ]; then
echo "autoheader not found; this is required in order to use this bootstrap script."
exit 0
fi
echo "Running autoheader..."
autoheader --force
if [ -z "`which automake`" ]; then
echo "automake not found; this is required in order to use this bootstrap script."
exit 0
fi
echo "Running automake..."
automake --include-deps --add-missing --foreign --copy --force-missing
if [ -z "`which autoconf`" ]; then
echo "autoconf not found; this is required in order to use this bootstrap script."
exit 0
fi
echo "Running autoconf..."
autoconf --force
if [ -x ./configure ]; then
echo "Done! Type \"./configure\" next."
else
echo "Looks like this script failed to generate a proper configure script..."
fi