]>
git.wh0rd.org - fontconfig.git/blob - autogen.sh
2 # Run this to generate all the initial makefiles, etc.
5 test -z "$srcdir" && srcdir
=.
11 FILE
=fontconfig
/fontconfig.h
12 ACLOCAL
=${ACLOCAL-aclocal}
13 LIBTOOLIZE
=${LIBTOOLIZE-libtoolize}
14 AUTOMAKE
=${AUTOMAKE-automake}
15 AUTOHEADER
=${AUTOHEADER-autoheader}
16 AUTOCONF
=${AUTOCONF-autoconf}
17 LIBTOOLIZE_FLAGS
="--copy --force"
22 if $LIBTOOLIZE --version < /dev
/null
> /dev
/null
2>&1 ; then
23 libtool_version
=`$LIBTOOLIZE --version | sed 's/^[^0-9]*\([0-9].[0-9.]*\).*/\1/'`
24 case $libtool_version in
25 1.4*|
1.5*|
1.6*|
1.7*|
2*)
30 if $have_libtool ; then : ; else
32 echo "You must have libtool 1.4 installed to compile $PROJECT."
33 echo "Install the appropriate package for your distribution,"
34 echo "or get the source tarball at ftp://ftp.gnu.org/pub/gnu/"
38 ($AUTOCONF --version) < /dev
/null
> /dev
/null
2>&1 ||
{
40 echo "You must have autoconf installed to compile $PROJECT."
41 echo "libtool the appropriate package for your distribution,"
42 echo "or get the source tarball at ftp://ftp.gnu.org/pub/gnu/"
48 if $AUTOMAKE --version < /dev
/null
> /dev
/null
2>&1 ; then
49 automake_version
=`$AUTOMAKE --version | grep 'automake (GNU automake)' | sed 's/^[^0-9]*\(.*\)/\1/'`
50 case $automake_version in
62 if $have_automake ; then : ; else
64 echo "You must have automake 1.4-p1 installed to compile $PROJECT."
65 echo "Get ftp://ftp.gnu.org/pub/gnu/automake/automake-1.4-p1.tar.gz"
66 echo "(or a newer version if it is available)"
70 if test "$DIE" -eq 1; then
74 test $TEST_TYPE $FILE ||
{
75 echo "You must run this script in the top-level $PROJECT directory"
79 if test -z "$AUTOGEN_SUBDIR_MODE"; then
81 echo "I am going to run ./configure with no arguments - if you wish "
82 echo "to pass any to it, please specify them on the $0 command line."
86 echo Running
$ACLOCAL $ACLOCAL_FLAGS
87 $ACLOCAL $ACLOCAL_FLAGS
89 # optionally run autoheader
90 if $AUTOHEADER --version < /dev
/null
> /dev
/null
2>&1; then
91 echo Running
$AUTOHEADER
95 case $need_libtoolize in
97 echo Running
$LIBTOOLIZE $LIBTOOLIZE_FLAGS
98 $LIBTOOLIZE $LIBTOOLIZE_FLAGS
102 echo Running
$AUTOMAKE -a $am_opt
104 echo Running
$AUTOCONF
108 if test -z "$AUTOGEN_SUBDIR_MODE"; then
109 echo Running
$srcdir/configure
110 $srcdir/configure
--enable-maintainer-mode "$@"
113 echo "Now type 'make' to compile $PROJECT."