1#!/bin/sh 2 3# Run this to generate all the initial makefiles, etc. 4 5srcdir=`dirname $0` 6test -z "$srcdir" && srcdir=. 7 8THEDIR=`pwd` 9cd $srcdir 10 11DIE=0 12 13(autoconf --version) < /dev/null > /dev/null 2>&1 || { 14 echo 15 echo "You must have autoconf installed to compile perdition." 16 echo "Download the appropriate package for your distribution," 17 echo "or get the source tarball at ftp://ftp.gnu.org/pub/gnu/" 18 DIE=1 19} 20 21(automake --version) < /dev/null > /dev/null 2>&1 || { 22 echo 23 echo "You must have automake installed to compile perdition." 24 echo "Get ftp://ftp.cygnus.com/pub/home/tromey/automake-1.2d.tar.gz" 25 echo "(or a newer version if it is available)" 26 DIE=1 27} 28 29if test "$DIE" -eq 1; then 30 exit 1 31fi 32 33if test -z "$*"; then 34 echo "I am going to run ./configure with no arguments - if you wish " 35 echo "to pass any to it, please specify them on the $0 command line." 36fi 37 38case $CC in 39xlc ) 40 am_opt=--include-deps;; 41esac 42 43libtoolize --force --copy 44aclocal $ACLOCAL_FLAGS 45(autoheader --version) < /dev/null > /dev/null 2>&1 && autoheader 46automake --add-missing $am_opt 47autoconf 48cd $THEDIR 49 50$srcdir/configure "$@" || exit $? 51 52echo 53echo "Now type 'make' to compile perdition." 54