-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathautogen.sh
executable file
·56 lines (50 loc) · 1.39 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
#!/bin/sh
# Deprecate the use of this script in favour of autoreconf.
echo
echo Use of this script is now deprecated -- use autoreconf instead.
echo
echo You will need to append the '-i' option to autoreconf on its first
echo use in a directory tree checked out or exported from the MOC SVN.
echo
echo If there is a reason why autoreconf does not work for you, please
echo post a message on the MOC forum so the problem can be rectified.
echo
echo " Press ENTER now to continue with this script, or"
echo " CTRL-C to abort and then use autoreconf instead."
echo
read
# Try to find where GNU libtool is hiding.
LIBTOOL_AKA="glibtoolize"
if test -z "$LIBTOOLIZE"; then
for LIBTOOL in $LIBTOOL_AKA libtoolize; do
LIBTOOLIZE=`which $LIBTOOL 2>/dev/null`
if test $? -eq 0; then
if $LIBTOOLIZE --version | grep -q "GNU libtool"; then
break
fi
LIBTOOLIZE=
fi
done
if test -z "$LIBTOOLIZE"; then
echo "No suitable libtoolize found (set LIBTOOLIZE if necessary)."
exit 1
fi
fi
set -x
if test -f Makefile; then
make distclean >/dev/null 2>/dev/null
fi
$LIBTOOLIZE -c -f
aclocal -I m4 && \
autoheader && \
automake -W all -a && \
autoconf -W syntax
if test "$?" != 0; then
cat <<EOF
If you see errors it might be necessary to install additional packages like
autoconf >= 2.60
automake >= 1.9
libltdl (libltdl3-dev debian package)
and all -devel packages mentioned in the README file
EOF
fi