git-notify: Make the state file group writable
[monitoring-plugins.git] / tools / setup
blob1afe4f15bd749d6df2e101655e208a90a07d5ea5
1 #!/bin/sh
3 # autogen.sh glue from CMU Cyrus IMAP
5 # Requires: automake, autoconf, dpkg-dev
6 # set -e
8 MAKE=`which gnumake`
9 if test ! -x "$MAKE" ; then MAKE=`which gmake` ; fi
10 if test ! -x "$MAKE" ; then MAKE=`which make` ; fi
11 HAVE_GNU_MAKE=`$MAKE --version|grep -c "Free Software Foundation"`
13 if test "$HAVE_GNU_MAKE" != "1"; then
14 echo Could not find GNU make on this system, can not proceed with build.
15 exit 1
16 else
17 echo Found GNU Make at $MAKE ... good.
20 # This bit is to fix SF's compile server as libtool not installed by default
21 extra=""
22 if test -d $HOME/share/aclocal ; then
23 extra="-I $HOME/share/aclocal"
26 aclocal -I gl/m4 -I m4 $extra
27 #libtoolize --force --copy
28 autoheader
29 automake --add-missing --force-missing --copy
30 autoconf
32 if [ -f debian/rules ] ; then
33 chmod +x debian/rules
36 # Lots of fiddling as Solaris' which command does give error if which fails
37 docbook=0
38 if [ `uname -s` = "SunOS" ] ; then
39 if [ "`which docbook2html`" = "/"* ] ; then
40 docbook=1
42 else
43 if which docbook2html >/dev/null 2>&1; then
44 docbook=1
48 if [ $docbook = 1 ] ; then
49 ( cd doc && make )