1
|
1 |
#!/bin/sh |
|
2 |
|
|
3 |
PACKAGE="loudmouth" |
|
4 |
|
|
5 |
have_libtool=false |
|
6 |
have_autoconf=false |
|
7 |
have_automake=false |
|
8 |
need_configure_in=false |
|
9 |
|
|
10 |
if libtool --version < /dev/null > /dev/null 2>&1 ; then |
|
11 |
libtool_version=`libtoolize --version | sed 's/^[^0-9]*\([0-9.][0-9.]*\).*/\1/'` |
|
12 |
have_libtool=true |
|
13 |
case $libtool_version in |
|
14 |
1.3*) |
|
15 |
need_configure_in=true |
|
16 |
;; |
|
17 |
esac |
|
18 |
fi |
|
19 |
|
|
20 |
if autoconf --version < /dev/null > /dev/null 2>&1 ; then |
|
21 |
autoconf_version=`autoconf --version | sed 's/^[^0-9]*\([0-9.][0-9.]*\).*/\1/'` |
|
22 |
have_autoconf=true |
|
23 |
case $autoconf_version in |
|
24 |
2.13) |
|
25 |
need_configure_in=true |
|
26 |
;; |
|
27 |
esac |
|
28 |
fi |
|
29 |
|
|
30 |
if $have_libtool ; then : ; else |
|
31 |
echo; |
|
32 |
echo "You must have libtool >= 1.3 installed to compile $PACKAGE"; |
|
33 |
echo; |
|
34 |
exit; |
|
35 |
fi |
|
36 |
|
|
37 |
(automake --version) < /dev/null > /dev/null 2>&1 || { |
|
38 |
echo; |
|
39 |
echo "You must have automake installed to compile $PACKAGE"; |
|
40 |
echo; |
|
41 |
exit; |
|
42 |
} |
|
43 |
|
|
44 |
echo "Generating configuration files for $PACKAGE, please wait...." |
|
45 |
echo; |
|
46 |
|
|
47 |
if $need_configure_in ; then |
|
48 |
if test ! -f configure.in ; then |
|
49 |
echo "Creating symlink from configure.in to configure.ac..." |
|
50 |
echo |
|
51 |
ln -s configure.ac configure.in |
|
52 |
fi |
|
53 |
fi |
|
54 |
|
|
55 |
aclocal $ACLOCAL_FLAGS |
|
56 |
libtoolize --force |
|
57 |
autoheader |
|
58 |
automake --add-missing |
|
59 |
autoconf |
|
60 |
|
|
61 |
./configure $@ --enable-maintainer-mode --enable-compile-warnings |
|
62 |
|