diff options
| author | Howard Butler <howard@hobu.co> | 2009-03-10 17:12:43 +0000 |
|---|---|---|
| committer | Howard Butler <howard@hobu.co> | 2009-03-10 17:12:43 +0000 |
| commit | 28ed3fe6a83f763e8a5d25d4169599f25e83ad1f (patch) | |
| tree | 2cdb2ba8c693c5ad08b4450fb3664e17a274d7e3 /autogen.sh | |
| parent | 93a3d18b656823821c504799dc93c25e480f1977 (diff) | |
| download | PROJ-28ed3fe6a83f763e8a5d25d4169599f25e83ad1f.tar.gz PROJ-28ed3fe6a83f763e8a5d25d4169599f25e83ad1f.zip | |
add autogen.sh from libLAS
git-svn-id: http://svn.osgeo.org/metacrs/proj/trunk@1544 4e78687f-474d-0410-85f9-8d5e500ac6b2
Diffstat (limited to 'autogen.sh')
| -rwxr-xr-x | autogen.sh | 63 |
1 files changed, 33 insertions, 30 deletions
@@ -1,39 +1,42 @@ #!/bin/sh +# $Id$ # -# Run this to generate all the initial makefiles, etc. +# Autotools boostrapping script # - -PROJECT="PROJ.4" - -(autoconf --version) < /dev/null > /dev/null 2>&1 || { - echo "*** ERROR: GNU Autoconf is required to build $PROJECT." - exit 1 +giveup() +{ + echo + echo " Something went wrong, giving up!" + echo + exit 1 } -(libtool --version) < /dev/null > /dev/null 2>&1 || { - echo "*** ERROR: GNU Libtool is required to build $PROJECT." - exit 1 -} +OSTYPE=`uname -s` -(automake --version) < /dev/null > /dev/null 2>&1 || { - echo "*** ERROR: GNU Automake is required to build $PROJECT." - exit 1 -} +for libtoolize in glibtoolize libtoolize; do + LIBTOOLIZE=`which $libtoolize 2>/dev/null` + if test "$LIBTOOLIZE"; then + break; + fi +done -(aclocal --version) < /dev/null > /dev/null 2>&1 || { - echo "*** ERROR: aclocal program from GNU Automake package is required to build $PROJECT." - exit 1 -} +#AMFLAGS="--add-missing --copy --force-missing" +AMFLAGS="--add-missing --copy" +if test "$OSTYPE" = "IRIX" -o "$OSTYPE" = "IRIX64"; then + AMFLAGS=$AMFLAGS" --include-deps"; +fi -echo "Running aclocal..." -aclocal -echo "Running libtoolize..." -libtoolize --force --copy -echo "Running automake..." -automake --add-missing --copy -echo "Running autoconf..." -autoconf +echo "Running aclocal" +aclocal || giveup +#echo "Running autoheader" +#autoheader || giveup +echo "Running libtoolize" +$LIBTOOLIZE --force --copy || giveup +echo "Running automake" +automake $AMFLAGS # || giveup +echo "Running autoconf" +autoconf || giveup -echo -echo "Type './configure' to generate Makefile files for $PROJECT." -echo "or './configure --help' to list possible options." +echo "======================================" +echo "Now you are ready to run './configure'" +echo "======================================" |
