blob: 1456b48507ebf0b565702497eee3d49eeaa0e57a [file] [log] [blame]
Daniel Veillard01791d51998-07-24 19:24:09 +00001#!/bin/sh
2# Run this to generate all the initial makefiles, etc.
3
4DIE=0
5
6(autoconf --version) < /dev/null > /dev/null 2>&1 || {
7 echo
Daniel Veillard260a68f1998-08-13 03:39:55 +00008 echo "You must have autoconf installed to compile gnome-xml."
Daniel Veillard01791d51998-07-24 19:24:09 +00009 echo "Download the appropriate package for your distribution,"
10 echo "or get the source tarball at ftp://ftp.gnu.org/pub/gnu/"
11 DIE=1
12}
13
14(libtool --version) < /dev/null > /dev/null 2>&1 || {
15 echo
Daniel Veillard260a68f1998-08-13 03:39:55 +000016 echo "You must have libtool installed to compile gnome-xml."
Daniel Veillard01791d51998-07-24 19:24:09 +000017 echo "Get ftp://alpha.gnu.org/gnu/libtool-1.0h.tar.gz"
18 echo "(or a newer version if it is available)"
19 DIE=1
20}
21
22(automake --version) < /dev/null > /dev/null 2>&1 || {
23 echo
Daniel Veillard260a68f1998-08-13 03:39:55 +000024 echo "You must have automake installed to compile gnome-xml."
Daniel Veillard01791d51998-07-24 19:24:09 +000025 echo "Get ftp://ftp.cygnus.com/pub/home/tromey/automake-1.2d.tar.gz"
26 echo "(or a newer version if it is available)"
27 DIE=1
28}
29
30if test "$DIE" -eq 1; then
31 exit 1
32fi
33
Daniel Veillard260a68f1998-08-13 03:39:55 +000034test -f entities.h || {
35 echo "You must run this script in the top-level gnome-xml directory"
Daniel Veillard01791d51998-07-24 19:24:09 +000036 exit 1
37}
38
39if test -z "$*"; then
40 echo "I am going to run ./configure with no arguments - if you wish "
41 echo "to pass any to it, please specify them on the $0 command line."
42fi
43
Daniel Veillard7066a791998-10-01 20:28:28 +000044libtoolize --copy --force
45aclocal
46automake --add-missing
Daniel Veillard01791d51998-07-24 19:24:09 +000047autoconf
48./configure "$@"
49
50echo
Christopher Blizzardb7e2bad1998-07-24 20:09:58 +000051echo "Now type 'make' to compile gnome-xml."