-
Notifications
You must be signed in to change notification settings - Fork 37
/
autogen.sh
executable file
·31 lines (27 loc) · 713 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
31
#!/bin/sh
[ -f autogen.sh ] || {
echo "autogen.sh: run this command only at the top of the source tree."
exit 1
}
if test -z "$AUTOMAKE" ; then
for each in automake-1.10 automake-1.9 automake-1.8 automake-1.7 automake-1.6 automake ; do
AUTOMAKE=$each
if test -n "`which $each 2>/dev/null`" ; then break ; fi
done
fi
if [ `uname -s` = Darwin ] ; then
# libtoolize is glibtoolize on OSX
LIBTOOLIZE=glibtoolize
else
LIBTOOLIZE=libtoolize
fi
./aclocal.sh &&
echo $LIBTOOLIZE --copy --automake &&
$LIBTOOLIZE --copy --automake &&
echo autoheader &&
autoheader &&
echo autoconf &&
autoconf &&
echo $AUTOMAKE --copy --add-missing &&
$AUTOMAKE --copy --add-missing &&
echo Now run configure and make.