3 # autogen.sh glue from CMU Cyrus IMAP
5 # Requires: automake, autoconf, dpkg-dev
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.
17 echo Found GNU Make
at $MAKE ... good.
20 # This bit is to fix SF's compile server as libtool not installed by default
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
29 automake
--add-missing --force-missing --copy
32 if [ -f debian
/rules
] ; then
36 # Lots of fiddling as Solaris' which command does give error if which fails
38 if [ `uname -s` = "SunOS" ] ; then
39 if [ "`which docbook2html`" = "/"* ] ; then
43 if which docbook2html
>/dev
/null
2>&1; then
48 if [ $docbook = 1 ] ; then