blob: 039918511b864037956dca7ce59a4af42da02b8a [file] [log] [blame]
Daniel Veillard01791d51998-07-24 19:24:09 +00001#!/bin/sh
2# Run this to generate all the initial makefiles, etc.
3
Elliot Lee8f8b4c81998-12-23 00:37:26 +00004srcdir=`dirname $0`
5test -z "$srcdir" && srcdir=.
6
7THEDIR=`pwd`
8cd $srcdir
Daniel Veillard01791d51998-07-24 19:24:09 +00009DIE=0
10
11(autoconf --version) < /dev/null > /dev/null 2>&1 || {
12 echo
Daniel Veillard260a68f1998-08-13 03:39:55 +000013 echo "You must have autoconf installed to compile gnome-xml."
Daniel Veillard01791d51998-07-24 19:24:09 +000014 echo "Download the appropriate package for your distribution,"
15 echo "or get the source tarball at ftp://ftp.gnu.org/pub/gnu/"
16 DIE=1
17}
18
19(libtool --version) < /dev/null > /dev/null 2>&1 || {
20 echo
Daniel Veillard260a68f1998-08-13 03:39:55 +000021 echo "You must have libtool installed to compile gnome-xml."
Daniel Veillard01791d51998-07-24 19:24:09 +000022 echo "Get ftp://alpha.gnu.org/gnu/libtool-1.0h.tar.gz"
23 echo "(or a newer version if it is available)"
24 DIE=1
25}
26
27(automake --version) < /dev/null > /dev/null 2>&1 || {
28 echo
Daniel Veillard260a68f1998-08-13 03:39:55 +000029 echo "You must have automake installed to compile gnome-xml."
Daniel Veillard01791d51998-07-24 19:24:09 +000030 echo "Get ftp://ftp.cygnus.com/pub/home/tromey/automake-1.2d.tar.gz"
31 echo "(or a newer version if it is available)"
32 DIE=1
33}
34
35if test "$DIE" -eq 1; then
36 exit 1
37fi
38
Daniel Veillard260a68f1998-08-13 03:39:55 +000039test -f entities.h || {
40 echo "You must run this script in the top-level gnome-xml directory"
Daniel Veillard01791d51998-07-24 19:24:09 +000041 exit 1
42}
43
44if test -z "$*"; then
45 echo "I am going to run ./configure with no arguments - if you wish "
46 echo "to pass any to it, please specify them on the $0 command line."
47fi
48
Daniel Veillard19b858c1999-02-06 18:12:01 +000049libtoolize --copy --force
50aclocal $ACLOCAL_FLAGS
Daniel Veillard7066a791998-10-01 20:28:28 +000051automake --add-missing
Daniel Veillard01791d51998-07-24 19:24:09 +000052autoconf
Elliot Lee8f8b4c81998-12-23 00:37:26 +000053
54cd $THEDIR
Arturo Espinosacd69df91998-12-28 23:49:02 +000055
56if test x$OBJ_DIR != x; then
57 mkdir -p "$OBJ_DIR"
58 cd "$OBJ_DIR"
59fi
60
Elliot Lee8f8b4c81998-12-23 00:37:26 +000061$srcdir/configure "$@"
Daniel Veillard01791d51998-07-24 19:24:09 +000062
63echo
Christopher Blizzardb7e2bad1998-07-24 20:09:58 +000064echo "Now type 'make' to compile gnome-xml."