bump version
[mod_mono.git] / autogen.sh
blob86847e63a4dc997d045d0753f9bd1c586cc86f73
1 #!/bin/sh
3 srcdir=`dirname $0`
4 test -z "$srcdir" && srcdir=.
6 ORIGDIR=`pwd`
7 cd $srcdir
8 PROJECT=mod_mono
9 TEST_TYPE=-f
10 FILE=src/mod_mono.c
12 DIE=0
14 (autoconf --version) < /dev/null > /dev/null 2>&1 || {
15 echo
16 echo "You must have autoconf installed to compile $PROJECT."
17 echo "Download the appropriate package for your distribution,"
18 echo "or get the source tarball at ftp://ftp.gnu.org/pub/gnu/"
19 DIE=1
22 if [ -z "$LIBTOOL" ]; then
23 LIBTOOL=`which glibtool 2>/dev/null`
24 if [ ! -x "$LIBTOOL" ]; then
25 LIBTOOL=`which libtool`
29 (grep "^AM_PROG_LIBTOOL" $srcdir/configure.in >/dev/null) && {
30 ($LIBTOOL --version) < /dev/null > /dev/null 2>&1 || {
31 echo
32 echo "**Error**: You must have \`libtool' installed to compile mod_mono."
33 echo "Get ftp://ftp.gnu.org/pub/gnu/libtool-1.2d.tar.gz"
34 echo "(or a newer version if it is available)"
35 DIE=1
39 (automake --version) < /dev/null > /dev/null 2>&1 || {
40 echo
41 echo "You must have automake installed to compile $PROJECT."
42 echo "Get ftp://sourceware.cygnus.com/pub/automake/automake-1.4.tar.gz"
43 echo "(or a newer version if it is available)"
44 DIE=1
47 if test "$DIE" -eq 1; then
48 exit 1
51 test $TEST_TYPE $FILE || {
52 echo "You must run this script in the top-level $PROJECT directory"
53 exit 1
56 if test -z "$*"; then
57 echo "I am going to run ./configure with no arguments - if you wish "
58 echo "to pass any to it, please specify them on the $0 command line."
61 case $CC in
62 *xlc | *xlc\ * | *lcc | *lcc\ *) am_opt=--include-deps;;
63 esac
64 aclocal
66 (autoheader --version) < /dev/null > /dev/null 2>&1 && autoheader || exit 1
68 if grep "^AM_PROG_LIBTOOL" configure.in >/dev/null; then
69 if test -z "$NO_LIBTOOLIZE" ; then
70 ${LIBTOOL}ize --force --copy
74 automake -a $am_opt
75 autoconf
76 cd $ORIGDIR
78 $srcdir/configure "$@"
80 if [ $? -eq 0 ] ; then
81 echo "Now type 'make' to compile $PROJECT."