2 # Run this to generate all the initial makefiles, etc.
7 test -z "$srcdir" && srcdir=.
13 FILE=fontconfig/fontconfig.h
14 ACLOCAL=${ACLOCAL-aclocal}
15 LIBTOOLIZE=${LIBTOOLIZE-libtoolize}
16 AUTOMAKE=${AUTOMAKE-automake}
17 AUTOHEADER=${AUTOHEADER-autoheader}
18 AUTOCONF=${AUTOCONF-autoconf}
19 LIBTOOLIZE_FLAGS="--copy --force"
24 if $LIBTOOLIZE --version < /dev/null > /dev/null 2>&1 ; then
25 libtool_version=`$LIBTOOLIZE --version | sed 's/^[^0-9]*\([0-9].[0-9.]*\).*/\1/'`
26 case $libtool_version in
27 1.4*|1.5*|1.6*|1.7*|2*)
32 if $have_libtool ; then : ; else
34 echo "You must have libtool 1.4 installed to compile $PROJECT."
35 echo "Install the appropriate package for your distribution,"
36 echo "or get the source tarball at ftp://ftp.gnu.org/pub/gnu/"
40 ($AUTOCONF --version) < /dev/null > /dev/null 2>&1 || {
42 echo "You must have autoconf installed to compile $PROJECT."
43 echo "libtool the appropriate package for your distribution,"
44 echo "or get the source tarball at ftp://ftp.gnu.org/pub/gnu/"
50 if $AUTOMAKE --version < /dev/null > /dev/null 2>&1 ; then
51 automake_version=`$AUTOMAKE --version | grep 'automake (GNU automake)' | sed 's/^[^0-9]*\(.*\)/\1/'`
52 case $automake_version in
64 if $have_automake ; then : ; else
66 echo "You must have automake 1.4-p1 installed to compile $PROJECT."
67 echo "Get ftp://ftp.gnu.org/pub/gnu/automake/automake-1.4-p1.tar.gz"
68 echo "(or a newer version if it is available)"
72 if test "$DIE" -eq 1; then
76 test $TEST_TYPE $FILE || {
77 echo "You must run this script in the top-level $PROJECT directory"
81 if test -z "$AUTOGEN_SUBDIR_MODE"; then
83 echo "I am going to run ./configure with no arguments - if you wish "
84 echo "to pass any to it, please specify them on the $0 command line."
88 echo Running $ACLOCAL $ACLOCAL_FLAGS
89 $ACLOCAL $ACLOCAL_FLAGS
91 # optionally run autoheader
92 if $AUTOHEADER --version < /dev/null > /dev/null 2>&1; then
93 echo Running $AUTOHEADER
97 case $need_libtoolize in
99 echo Running $LIBTOOLIZE $LIBTOOLIZE_FLAGS
100 $LIBTOOLIZE $LIBTOOLIZE_FLAGS
104 echo Running $AUTOMAKE -a $am_opt
106 echo Running $AUTOCONF
110 if test -z "$AUTOGEN_SUBDIR_MODE"; then
111 echo Running $srcdir/configure --enable-maintainer-mode "$@"
112 $srcdir/configure --enable-maintainer-mode "$@"
115 echo "Now type 'make' to compile $PROJECT."