Daniel Veillard | 01791d5 | 1998-07-24 19:24:09 +0000 | [diff] [blame] | 1 | #!/bin/sh |
| 2 | # Run this to generate all the initial makefiles, etc. |
| 3 | |
Elliot Lee | 8f8b4c8 | 1998-12-23 00:37:26 +0000 | [diff] [blame] | 4 | srcdir=`dirname $0` |
| 5 | test -z "$srcdir" && srcdir=. |
| 6 | |
| 7 | THEDIR=`pwd` |
| 8 | cd $srcdir |
Daniel Veillard | 01791d5 | 1998-07-24 19:24:09 +0000 | [diff] [blame] | 9 | DIE=0 |
| 10 | |
| 11 | (autoconf --version) < /dev/null > /dev/null 2>&1 || { |
| 12 | echo |
Daniel Veillard | 361d845 | 2000-04-03 19:48:13 +0000 | [diff] [blame] | 13 | echo "You must have autoconf installed to compile libxml." |
Daniel Veillard | 01791d5 | 1998-07-24 19:24:09 +0000 | [diff] [blame] | 14 | echo "Download the appropriate package for your distribution," |
William M. Brack | 476cd96 | 2003-08-13 11:09:42 +0000 | [diff] [blame] | 15 | echo "or see http://www.gnu.org/software/autoconf" |
Daniel Veillard | 01791d5 | 1998-07-24 19:24:09 +0000 | [diff] [blame] | 16 | DIE=1 |
| 17 | } |
| 18 | |
| 19 | (libtool --version) < /dev/null > /dev/null 2>&1 || { |
| 20 | echo |
Daniel Veillard | 361d845 | 2000-04-03 19:48:13 +0000 | [diff] [blame] | 21 | echo "You must have libtool installed to compile libxml." |
William M. Brack | 476cd96 | 2003-08-13 11:09:42 +0000 | [diff] [blame] | 22 | echo "Download the appropriate package for your distribution," |
| 23 | echo "or see http://www.gnu.org/software/libtool" |
Daniel Veillard | 01791d5 | 1998-07-24 19:24:09 +0000 | [diff] [blame] | 24 | DIE=1 |
| 25 | } |
| 26 | |
William M. Brack | 476cd96 | 2003-08-13 11:09:42 +0000 | [diff] [blame] | 27 | (automake --version) < /dev/null > /dev/null 2>&1 || { |
Daniel Veillard | 01791d5 | 1998-07-24 19:24:09 +0000 | [diff] [blame] | 28 | echo |
Daniel Veillard | 01791d5 | 1998-07-24 19:24:09 +0000 | [diff] [blame] | 29 | DIE=1 |
William M. Brack | 476cd96 | 2003-08-13 11:09:42 +0000 | [diff] [blame] | 30 | 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 Veillard | 01791d5 | 1998-07-24 19:24:09 +0000 | [diff] [blame] | 33 | } |
| 34 | |
| 35 | if test "$DIE" -eq 1; then |
| 36 | exit 1 |
| 37 | fi |
| 38 | |
Daniel Veillard | cd1d944 | 2001-06-23 18:53:44 +0000 | [diff] [blame] | 39 | test -f entities.c || { |
Daniel Veillard | 361d845 | 2000-04-03 19:48:13 +0000 | [diff] [blame] | 40 | echo "You must run this script in the top-level libxml directory" |
Daniel Veillard | 01791d5 | 1998-07-24 19:24:09 +0000 | [diff] [blame] | 41 | exit 1 |
| 42 | } |
| 43 | |
| 44 | if 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." |
| 47 | fi |
| 48 | |
Daniel Veillard | 19b858c | 1999-02-06 18:12:01 +0000 | [diff] [blame] | 49 | libtoolize --copy --force |
William M. Brack | 476cd96 | 2003-08-13 11:09:42 +0000 | [diff] [blame] | 50 | aclocal $ACLOCAL_FLAGS |
| 51 | automake --add-missing |
Daniel Veillard | 01791d5 | 1998-07-24 19:24:09 +0000 | [diff] [blame] | 52 | autoconf |
Elliot Lee | 8f8b4c8 | 1998-12-23 00:37:26 +0000 | [diff] [blame] | 53 | |
| 54 | cd $THEDIR |
Arturo Espinosa | cd69df9 | 1998-12-28 23:49:02 +0000 | [diff] [blame] | 55 | |
| 56 | if test x$OBJ_DIR != x; then |
| 57 | mkdir -p "$OBJ_DIR" |
| 58 | cd "$OBJ_DIR" |
| 59 | fi |
| 60 | |
Elliot Lee | 8f8b4c8 | 1998-12-23 00:37:26 +0000 | [diff] [blame] | 61 | $srcdir/configure "$@" |
Daniel Veillard | 01791d5 | 1998-07-24 19:24:09 +0000 | [diff] [blame] | 62 | |
| 63 | echo |
Daniel Veillard | 361d845 | 2000-04-03 19:48:13 +0000 | [diff] [blame] | 64 | echo "Now type 'make' to compile libxml." |