~ubuntu-branches/ubuntu/lucid/graphviz/lucid-security

« back to all changes in this revision

Viewing changes to autogen.sh

  • Committer: Bazaar Package Importer
  • Author(s): Stephen M Moraco
  • Date: 2002-02-05 18:52:12 UTC
  • Revision ID: james.westby@ubuntu.com-20020205185212-8i04c70te00rc40y
Tags: upstream-1.7.16
ImportĀ upstreamĀ versionĀ 1.7.16

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
# Run this to generate all the initial makefiles, etc.
 
3
 
 
4
srcdir=`dirname $0`
 
5
test -z "$srcdir" && srcdir=.
 
6
 
 
7
ORIGDIR=`pwd`
 
8
cd $srcdir
 
9
PROJECT=graphviz
 
10
TEST_TYPE=-f
 
11
FILE=graph/graph.h
 
12
 
 
13
DIE=0
 
14
 
 
15
(libtool --version) < /dev/null > /dev/null 2>&1 || {
 
16
        echo
 
17
        echo "You must have libtool installed to compile $PROJECT."
 
18
        echo "Get ftp://alpha.gnu.org/gnu/libtool-1.2d.tar.gz"
 
19
        echo "(or a newer version if it is available)"
 
20
        DIE=1
 
21
}
 
22
 
 
23
(automake --version) < /dev/null > /dev/null 2>&1 || {
 
24
        echo
 
25
        echo "You must have automake installed to compile $PROJECT."
 
26
        echo "Get ftp://sourceware.cygnus.com/pub/automake/automake-1.4.tar.gz"
 
27
        echo "(or a newer version if it is available)"
 
28
        DIE=1
 
29
}
 
30
 
 
31
(autoconf --version) < /dev/null > /dev/null 2>&1 || {
 
32
        echo
 
33
        echo "You must have autoconf installed to compile $PROJECT."
 
34
        echo "Download the appropriate package for your distribution,"
 
35
        echo "or get the source tarball at ftp://ftp.gnu.org/pub/gnu/"
 
36
        DIE=1
 
37
}
 
38
 
 
39
if test "$DIE" -eq 1; then
 
40
        exit 1
 
41
fi
 
42
 
 
43
test $TEST_TYPE $FILE || {
 
44
        echo "You must run this script in the top-level $PROJECT directory"
 
45
        exit 1
 
46
}
 
47
 
 
48
if test -z "$*"; then
 
49
        echo "I am going to run ./configure with no arguments - if you wish "
 
50
        echo "to pass any to it, please specify them on the $0 command line."
 
51
fi
 
52
 
 
53
case $CC in
 
54
*xlc | *xlc\ * | *lcc | *lcc\ *) am_opt=--include-deps;;
 
55
esac
 
56
 
 
57
libtoolize --force
 
58
 
 
59
aclocal $ACLOCAL_FLAGS
 
60
 
 
61
# optionally feature autoheader
 
62
(autoheader --version)  < /dev/null > /dev/null 2>&1 && autoheader
 
63
 
 
64
automake --add-missing $am_opt
 
65
autoconf
 
66
cd $ORIGDIR
 
67
 
 
68
$srcdir/configure --enable-maintainer-mode "$@"
 
69
 
 
70
echo 
 
71
echo "Now type 'make' to compile $PROJECT."