blob: db6ece28296e07df96b2746f41b4b0f4d56bd005 [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 Veillard361d8452000-04-03 19:48:13 +000013 echo "You must have autoconf installed to compile libxml."
Daniel Veillard01791d51998-07-24 19:24:09 +000014 echo "Download the appropriate package for your distribution,"
William M. Brack476cd962003-08-13 11:09:42 +000015 echo "or see http://www.gnu.org/software/autoconf"
Daniel Veillard01791d51998-07-24 19:24:09 +000016 DIE=1
17}
18
19(libtool --version) < /dev/null > /dev/null 2>&1 || {
20 echo
Daniel Veillard361d8452000-04-03 19:48:13 +000021 echo "You must have libtool installed to compile libxml."
William M. Brack476cd962003-08-13 11:09:42 +000022 echo "Download the appropriate package for your distribution,"
23 echo "or see http://www.gnu.org/software/libtool"
Daniel Veillard01791d51998-07-24 19:24:09 +000024 DIE=1
25}
26
William M. Brack476cd962003-08-13 11:09:42 +000027(automake --version) < /dev/null > /dev/null 2>&1 || {
Daniel Veillard01791d51998-07-24 19:24:09 +000028 echo
Daniel Veillard01791d51998-07-24 19:24:09 +000029 DIE=1
William M. Brack476cd962003-08-13 11:09:42 +000030 echo "You must have automake installed to compile libxml."
31 echo "Download the appropriate package for your distribution,"
32 echo "or see http://www.gnu.org/software/automake"
Daniel Veillard01791d51998-07-24 19:24:09 +000033}
34
35if test "$DIE" -eq 1; then
36 exit 1
37fi
38
Daniel Veillardcd1d9442001-06-23 18:53:44 +000039test -f entities.c || {
Daniel Veillard361d8452000-04-03 19:48:13 +000040 echo "You must run this script in the top-level libxml 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
William M. Brack476cd962003-08-13 11:09:42 +000050aclocal $ACLOCAL_FLAGS
51automake --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
Daniel Veillard361d8452000-04-03 19:48:13 +000064echo "Now type 'make' to compile libxml."