-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathautogen.sh
executable file
·65 lines (56 loc) · 1.37 KB
/
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
#!/bin/bash -e
error()
{
echo "error: $@"
exit 1
}
invoke()
{
echo "$@"
$@
}
echo -n "checking for aclocal... "
for ACLOCAL in aclocal nope; do
($ACLOCAL --version) < /dev/null > /dev/null 2>&1 && break
done
echo $ACLOCAL
if test x$ACLOCAL = xnope; then
error "aclocal must be installed"
fi
echo -n "checking for autoheader... "
for AUTOHEADER in autoheader nope; do
($AUTOHEADER --version) < /dev/null > /dev/null 2>&1 && break
done
echo $AUTOHEADER
if test x$AUTOHEADER = xnope; then
error "autoheader must be installed"
fi
echo -n "checking for autoconf... "
for AUTOCONF in autoconf nope; do
($AUTOCONF --version) < /dev/null > /dev/null 2>&1 && break
done
echo $AUTOCONF
if test x$AUTOCONF = xnope; then
error "autoconf must be installed"
fi
echo -n "checking for libtoolize... "
for LIBTOOLIZE in libtoolize glibtoolize nope; do
($LIBTOOLIZE --version) < /dev/null > /dev/null 2>&1 && break
done
echo $LIBTOOLIZE
if test x$LIBTOOLIZE = xnope; then
error "libtoolize must be installed"
fi
echo -n "checking for automake... "
for AUTOMAKE in automake nope; do
($AUTOMAKE --version) < /dev/null > /dev/null 2>&1 && break
done
echo $AUTOMAKE
if test x$AUTOMAKE = xnope; then
error "automake must be installed"
fi
invoke $ACLOCAL -I m4
invoke $AUTOHEADER
invoke $AUTOCONF --force
invoke $LIBTOOLIZE --automake --copy --force
invoke $AUTOMAKE --add-missing --copy