summaryrefslogtreecommitdiffstats
path: root/tools/setup
diff options
context:
space:
mode:
Diffstat (limited to 'tools/setup')
-rwxr-xr-xtools/setup31
1 files changed, 29 insertions, 2 deletions
diff --git a/tools/setup b/tools/setup
index af5d1aac..904120f0 100755
--- a/tools/setup
+++ b/tools/setup
@@ -1,9 +1,36 @@
1#! /bin/sh 1#!/bin/sh
2#
3# autogen.sh glue from CMU Cyrus IMAP
4# $Id$
5#
6# Requires: automake, autoconf, dpkg-dev
7# set -e
8
9MAKE=$(which gnumake)
10if test ! -x "$MAKE" ; then MAKE=$(which gmake) ; fi
11if test ! -x "$MAKE" ; then MAKE=$(which make) ; fi
12HAVE_GNU_MAKE=$($MAKE --version|grep -c "Free Software Foundation")
13
14if test "$HAVE_GNU_MAKE" != "1"; then
15 echo Could not find GNU make on this system, can not proceed with build.
16 exit 1
17else
18 echo Found GNU Make at $MAKE ... good.
19fi
20
21# Refresh GNU autotools toolchain.
22for i in config.guess config.sub missing install-sh mkinstalldirs ; do
23 test -r /usr/share/automake/${i} && {
24 rm -f ${i}
25 cp /usr/share/automake/${i} .
26 }
27 chmod 755 ${i}
28done
2 29
3aclocal -I lib 30aclocal -I lib
4autoconf
5autoheader 31autoheader
6automake --add-missing --copy 32automake --add-missing --copy
33autoconf
7 34
8if [ -f debian/rules ] ; then 35if [ -f debian/rules ] ; then
9 chmod +x debian/rules 36 chmod +x debian/rules