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
65
66
67
|
#!/bin/sh
# arch-tag: script to rerun autotools
# Run this to generate all the initial makefiles, etc.
srcdir=`dirname $0`
test -z "$srcdir" && srcdir=.
PKG_NAME="pqm"
(test -f $srcdir/configure.ac \
&& test -f $srcdir/sample-pqm.conf \
&& test -f $srcdir/bin/pqm) || {
echo -n "**Error**: Directory "\`$srcdir\'" does not look like the"
echo " top-level $PKG_NAME directory"
exit 1
}
DIE=0
have_autoconf=false
if autoconf --version < /dev/null > /dev/null 2>&1 ; then
autoconf_version=`autoconf --version | sed 's/^[^0-9]*\([0-9.][0-9.]*\).*/\1/'`
case $autoconf_version in
2.5*|2.6*)
have_autoconf=true
;;
esac
fi
if $have_autoconf ; then : ; else
echo
echo "You must have autoconf installed to compile $PKG_NAME."
echo "install the appropriate package for your distribution,"
echo "or get the source tarball at ftp://ftp.gnu.org/pub/gnu/"
DIE=1
fi
AUTOMAKE=no
ACLOCAL=no
for VERSION in 1.7 1.8 1.9 1.10
do
if automake-$VERSION --version < /dev/null > /dev/null 2>&1; then
AUTOMAKE=automake-$VERSION
ACLOCAL=aclocal-$VERSION
fi
done
if test $AUTOMAKE = no; then
echo
echo "You must have automake >= 1.7 installed to compile $PROJECT."
echo "Get ftp://ftp.gnu.org/pub/gnu/automake/automake-1.7.2.tar.gz"
echo "(or a newer version if it is available)"
DIE=1
fi
if test "$DIE" -eq 1; then
exit 1
fi
$ACLOCAL
$AUTOMAKE -a --foreign
autoconf
if test -z "$AUTOGEN_SUBDIR_MODE"; then
$srcdir/configure --enable-maintainer-mode --enable-debug "$@"
echo
echo "Now type 'make' to compile $PKG_NAME."
fi
|