2 # Run this to generate all the initial makefiles, etc.
7 test -z "$srcdir" && srcdir=.
11 AUTOGEN_SUBDIR_MODE="true"
20 FILE=fontconfig/fontconfig.h
21 ACLOCAL=${ACLOCAL-aclocal}
23 LIBTOOLIZE=${LIBTOOLIZE-libtoolize}
24 AUTOMAKE=${AUTOMAKE-automake}
25 AUTOHEADER=${AUTOHEADER-autoheader}
26 AUTOCONF=${AUTOCONF-autoconf}
27 LIBTOOLIZE_FLAGS="--copy --force"
32 if $LIBTOOLIZE --version < /dev/null > /dev/null 2>&1 ; then
33 libtool_version=`$LIBTOOLIZE --version | sed 's/^.* \([0-9][.][0-9.]*\)[^ ]*$/\1/'`
34 case $libtool_version in
35 1.4*|1.5*|1.6*|1.7*|2*)
40 if $have_libtool ; then : ; else
42 echo "You must have libtool 1.4 installed to compile $PROJECT."
43 echo "Install the appropriate package for your distribution,"
44 echo "or get the source tarball at ftp://ftp.gnu.org/pub/gnu/"
48 ($AUTOCONF --version) < /dev/null > /dev/null 2>&1 || {
50 echo "You must have autoconf installed to compile $PROJECT."
51 echo "libtool the appropriate package for your distribution,"
52 echo "or get the source tarball at ftp://ftp.gnu.org/pub/gnu/"
58 if $AUTOMAKE --version < /dev/null > /dev/null 2>&1 ; then
59 automake_version=`$AUTOMAKE --version | grep 'automake (GNU automake)' | sed 's/^[^0-9]*\(.*\)/\1/'`
60 case $automake_version in
72 if $have_automake ; then : ; else
74 echo "You must have automake 1.4-p1 installed to compile $PROJECT."
75 echo "Get ftp://ftp.gnu.org/pub/gnu/automake/automake-1.4-p1.tar.gz"
76 echo "(or a newer version if it is available)"
80 if test "$DIE" -eq 1; then
84 test $TEST_TYPE $FILE || {
85 echo "You must run this script in the top-level $PROJECT directory"
89 if test -z "$AUTOGEN_SUBDIR_MODE"; then
91 echo "I am going to run ./configure with no arguments - if you wish "
92 echo "to pass any to it, please specify them on the $0 command line."
96 echo Running $ACLOCAL $ACLOCAL_FLAGS
97 $ACLOCAL $ACLOCAL_FLAGS
99 # optionally run autoheader
100 if $AUTOHEADER --version < /dev/null > /dev/null 2>&1; then
101 echo Running $AUTOHEADER
105 case $need_libtoolize in
107 echo Running $LIBTOOLIZE $LIBTOOLIZE_FLAGS
108 $LIBTOOLIZE $LIBTOOLIZE_FLAGS
112 echo Running $AUTOMAKE -a $am_opt
114 echo Running $AUTOCONF
118 if test -z "$AUTOGEN_SUBDIR_MODE"; then
119 echo Running $srcdir/configure "$@"
120 $srcdir/configure "$@"
123 echo "Now type 'make' to compile $PROJECT."