root/tags/release-0.5.1/bootstrap

Revision 534, 1.7 kB (checked in by andreas, 16 months ago)

add exec bit

  • Property svn:executable set to *
Line 
1#!/bin/sh
2# Run this to bootstrap the files
3
4PACKAGE=mapnik
5
6srcdir=`dirname $0`
7test -z "$srcdir" && srcdir=.
8
9DIE=0
10
11# check if configure.ac is there
12(test -f $srcdir/configure.ac) || {
13    echo -n "**Error**: Directory "\`$srcdir\'" does not look like the"
14    echo " top-level package directory"
15    exit 1
16}
17
18# check for autoconf
19(autoconf --version) < /dev/null > /dev/null 2>&1 || {
20  echo
21  echo "**Error**: You must have \`autoconf' installed."
22  echo "Download the appropriate package for your distribution,"
23  echo "or get the source tarball at ftp://ftp.gnu.org/pub/gnu/"
24  DIE=1
25}
26
27# check for libtool
28(libtool --version) < /dev/null > /dev/null 2>&1 || {
29  echo
30  echo "**Error**: You must have \`libtool' installed."
31  echo "You can get it from: ftp://ftp.gnu.org/pub/gnu/"
32  DIE=1
33}
34
35# check for automake
36(automake --version) < /dev/null > /dev/null 2>&1 || {
37  echo
38  echo "**Error**: You must have \`automake' installed."
39  echo "You can get it from: ftp://ftp.gnu.org/pub/gnu/"
40  DIE=1
41  NO_AUTOMAKE=yes
42}
43
44
45# if no automake, don't bother testing for aclocal
46test -n "$NO_AUTOMAKE" || (aclocal --version) < /dev/null > /dev/null 2>&1 || {
47  echo
48  echo "**Error**: Missing \`aclocal'.  The version of \`automake'"
49  echo "installed doesn't appear recent enough."
50  echo "You can get automake from ftp://ftp.gnu.org/pub/gnu/"
51  DIE=1
52}
53
54if test "$DIE" -eq 1; then
55  exit 1
56fi
57
58echo "Running libtoolize..."
59libtoolize --force --copy
60
61aclocalinclude="$ACLOCAL_FLAGS -I config"
62echo "Running aclocal $aclocalinclude ..."
63aclocal $aclocalinclude
64 
65echo "Running autoheader..."
66autoheader
67
68echo "Running automake..."
69automake --add-missing --foreign  $am_opt
70
71echo "Running autoconf ..."
72autoconf
73
74echo "You could now exec ./configure --help to see available options"
Note: See TracBrowser for help on using the browser.