Remove support for specifying the port number using "-H example.com:80".
[monitoring-plugins.git] / tools / setup
blob7fdb980da6ba05d10c8680c275f89bd9d8fec4d7
1 #!/bin/sh
3 # autogen.sh glue from CMU Cyrus IMAP
4 # $Id$
6 # Requires: automake, autoconf, dpkg-dev
7 # set -e
9 MAKE=`which gnumake`
10 if test ! -x "$MAKE" ; then MAKE=`which gmake` ; fi
11 if test ! -x "$MAKE" ; then MAKE=`which make` ; fi
12 HAVE_GNU_MAKE=`$MAKE --version|grep -c "Free Software Foundation"`
14 if test "$HAVE_GNU_MAKE" != "1"; then
15 echo Could not find GNU make on this system, can not proceed with build.
16 exit 1
17 else
18 echo Found GNU Make at $MAKE ... good.
21 # This bit is to fix SF's compile server as libtool not installed by default
22 extra=""
23 if test -d $HOME/share/aclocal ; then
24 extra="-I $HOME/share/aclocal"
27 aclocal -I gl/m4 -I m4 $extra
28 #libtoolize --force --copy
29 autoheader
30 automake --add-missing --force-missing --copy
31 autoconf
33 if [ -f debian/rules ] ; then
34 chmod +x debian/rules
37 # Lots of fiddling as Solaris' which command does give error if which fails
38 docbook=0
39 if [ `uname -s` = "SunOS" ] ; then
40 if [ "`which docbook2html`" = "/"* ] ; then
41 docbook=1
43 else
44 if which docbook2html >/dev/null 2>&1; then
45 docbook=1
49 if [ $docbook = 1 ] ; then
50 cd doc && make