1#!/bin/sh 2# Run this to generate all the initial makefiles, etc. 3# This was lifted from the Gimp, and adapted slightly by 4# Raph Levien <raph@acm.org>. 5 6DIE=0 7srcdir=`dirname $0` 8test -z "$srcdir" && srcdir=. 9 10PROJECT=LibArt_LGPL 11 12(autoconf --version) < /dev/null > /dev/null 2>&1 || { 13 echo 14 echo "You must have autoconf installed to compile $PROJECT." 15 echo "Download the appropriate package for your distribution," 16 echo "or get the source tarball at ftp://ftp.gnu.org/pub/gnu/" 17 DIE=1 18} 19 20# Do we really need libtool? 21(libtool --version) < /dev/null > /dev/null 2>&1 || { 22 echo 23 echo "You must have libtool installed to compile $PROJECT." 24 echo "Get ftp://ftp.gnu.org/pub/gnu/libtool-1.2.tar.gz" 25 echo "(or a newer version if it is available)" 26 DIE=1 27} 28 29(automake --version) < /dev/null > /dev/null 2>&1 || { 30 echo 31 echo "You must have automake installed to compile $PROJECT." 32 echo "Get ftp://ftp.gnu.org/pub/gnu/automake-1.3.tar.gz" 33 echo "(or a newer version if it is available)" 34 DIE=1 35} 36 37if test "$DIE" -eq 1; then 38 exit 1 39fi 40 41if test -z "$*"; then 42 echo "I am going to run ./configure with no arguments - if you wish " 43 echo "to pass any to it, please specify them on the $0 command line." 44fi 45 46case $CC in 47xlc ) 48 am_opt=--include-deps;; 49esac 50 51for dir in $srcdir 52do 53 echo processing $dir 54 (cd $dir; \ 55 aclocalinclude="$ACLOCAL_FLAGS"; \ 56 aclocal $aclocalinclude; \ 57 autoheader; automake --add-missing --gnu $am_opt; autoconf) 58done 59 60$srcdir/configure "$@" 61 62echo 63echo "Now type 'make' to compile $PROJECT." 64