2 # Run this to generate all the initial makefiles, etc.
5 test -z "$srcdir" && srcdir=.
11 (autoconf --version) < /dev/null > /dev/null 2>&1 || {
13 echo "You must have autoconf installed to compile libxslt."
14 echo "Download the appropriate package for your distribution,"
15 echo "or see http://www.gnu.org/software/autoconf"
19 (libtoolize --version) < /dev/null > /dev/null 2>&1 || {
21 echo "You must have libtool installed to compile libxslt."
22 echo "Download the appropriate package for your distribution,"
23 echo "or see http://www.gnu.org/software/libtool"
27 (automake --version) < /dev/null > /dev/null 2>&1 || {
30 echo "You must have automake installed to compile libxslt."
31 echo "Download the appropriate package for your distribution,"
32 echo "or see http://www.gnu.org/software/automake"
35 if test "$DIE" -eq 1; then
39 test -f libxslt/xslt.h || {
40 echo "You must run this script in the top-level libxslt directory"
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."
49 echo "Running libtoolize..."
50 libtoolize --copy --force
51 echo "Running aclocal..."
52 aclocal $ACLOCAL_FLAGS
53 echo "Running automake..."
54 automake --add-missing --warnings=all
55 echo "Running autoconf..."
56 autoconf --warnings=all
60 if test x$OBJ_DIR != x; then
66 if test "x$1" = "x--system"; then
72 if [ -d /usr/lib64 ]; then
75 EXTRA_ARGS="--prefix=$prefix --sysconfdir=$sysconfdir --localstatedir=$localstatedir --libdir=$libdir"
76 echo "Running ./configure with $EXTRA_ARGS $@"
78 echo "I am going to run ./configure with no arguments - if you wish "
79 echo "to pass any to it, please specify them on the $0 command line."
82 if test -z "$NOCONFIGURE"; then
83 echo Running configure $EXTRA_ARGS "$@" ...
84 $srcdir/configure $EXTRA_ARGS "$@"
86 echo "Now type 'make' to compile libxslt."