2003-07-02 23:23:14 -04:00
|
|
|
#!/bin/sh
|
|
|
|
|
#
|
|
|
|
|
# autogen.sh glue from CMU Cyrus IMAP
|
|
|
|
|
# $Id$
|
|
|
|
|
#
|
|
|
|
|
# Requires: automake, autoconf, dpkg-dev
|
|
|
|
|
# set -e
|
|
|
|
|
|
2003-07-03 11:00:16 -04:00
|
|
|
MAKE=`which gnumake`
|
|
|
|
|
if test ! -x "$MAKE" ; then MAKE=`which gmake` ; fi
|
|
|
|
|
if test ! -x "$MAKE" ; then MAKE=`which make` ; fi
|
|
|
|
|
HAVE_GNU_MAKE=`$MAKE --version|grep -c "Free Software Foundation"`
|
2003-07-02 23:23:14 -04:00
|
|
|
|
|
|
|
|
if test "$HAVE_GNU_MAKE" != "1"; then
|
|
|
|
|
echo Could not find GNU make on this system, can not proceed with build.
|
|
|
|
|
exit 1
|
|
|
|
|
else
|
|
|
|
|
echo Found GNU Make at $MAKE ... good.
|
|
|
|
|
fi
|
|
|
|
|
|
2003-07-29 01:03:49 -04:00
|
|
|
autopoint --force
|
2003-02-19 03:36:39 -05:00
|
|
|
aclocal -I lib
|
2003-02-09 13:59:53 -05:00
|
|
|
autoheader
|
2003-07-29 01:03:49 -04:00
|
|
|
automake --add-missing --force-missing
|
2003-07-02 23:23:14 -04:00
|
|
|
autoconf
|
2002-10-17 02:06:44 -04:00
|
|
|
|
2002-10-30 13:22:10 -05:00
|
|
|
if [ -f debian/rules ] ; then
|
|
|
|
|
chmod +x debian/rules
|
|
|
|
|
fi
|
2003-05-13 18:03:48 -04:00
|
|
|
|
2003-06-27 06:30:47 -04:00
|
|
|
# Lots of fiddling as Solaris' which command does give error if which fails
|
|
|
|
|
docbook=0
|
|
|
|
|
if [ `uname -s` = "SunOS" ] ; then
|
|
|
|
|
if [ "`which docbook2html`" = "/"* ] ; then
|
|
|
|
|
docbook=1
|
|
|
|
|
fi
|
|
|
|
|
else
|
|
|
|
|
if which docbook2html ; then
|
|
|
|
|
docbook=1
|
|
|
|
|
fi
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
if [ $docbook = 1 ] ; then
|
|
|
|
|
cd doc && make
|
|
|
|
|
fi
|