aboutsummaryrefslogtreecommitdiff
path: root/autogen.sh
diff options
context:
space:
mode:
authorMateusz Loskot <mateusz@loskot.net>2006-10-13 18:40:06 +0000
committerMateusz Loskot <mateusz@loskot.net>2006-10-13 18:40:06 +0000
commit854433f066e16a2506ed2aebf4e5c649bc1b002e (patch)
tree682261913fcf1fc4d423b138ecb92b6ee7628a15 /autogen.sh
parentb1c99c06177eb67df0b5a70034fb61dd0853ecd6 (diff)
downloadPROJ-854433f066e16a2506ed2aebf4e5c649bc1b002e.tar.gz
PROJ-854433f066e16a2506ed2aebf4e5c649bc1b002e.zip
Added autogen.sh script.
git-svn-id: http://svn.osgeo.org/metacrs/proj/trunk@1354 4e78687f-474d-0410-85f9-8d5e500ac6b2
Diffstat (limited to 'autogen.sh')
-rwxr-xr-xautogen.sh39
1 files changed, 39 insertions, 0 deletions
diff --git a/autogen.sh b/autogen.sh
new file mode 100755
index 00000000..fb70cc71
--- /dev/null
+++ b/autogen.sh
@@ -0,0 +1,39 @@
+#!/bin/sh
+#
+# Run this to generate all the initial makefiles, etc.
+#
+
+PROJECT="PROJ.4"
+
+(autoconf --version) < /dev/null > /dev/null 2>&1 || {
+ echo "*** ERROR: GNU Autoconf is required to build $PROJECT."
+ exit 1
+}
+
+(libtool --version) < /dev/null > /dev/null 2>&1 || {
+ echo "*** ERROR: GNU Libtool is required to build $PROJECT."
+ exit 1
+}
+
+(automake --version) < /dev/null > /dev/null 2>&1 || {
+ echo "*** ERROR: GNU Automake is required to build $PROJECT."
+ exit 1
+}
+
+(aclocal --version) < /dev/null > /dev/null 2>&1 || {
+ echo "*** ERROR: aclocal program from GNU Automake package is required to build $PROJECT."
+ exit 1
+}
+
+echo "Running aclocal..."
+aclocal
+echo "Running libtoolize..."
+libtoolize --force --copy
+echo "Running automake..."
+automake --add-missing --copy
+echo "Running autoconf..."
+autoconf
+
+echo
+echo "Type './configure' to generate Makefile files for $PROJECT."
+echo "or './configure --help' to list possible options."