2 # Run this to generate all the initial makefiles, etc.
5 test -z "$srcdir" && srcdir=.
16 if libtoolize --version < /dev/null > /dev/null 2>&1 ; then
17 libtool_version=`libtoolize --version | sed 's/^[^0-9]*\([0-9.][0-9.]*\).*/\1/'`
18 case $libtool_version in
24 if $have_libtool ; then : ; else
26 echo "You must have libtool 1.4 installed to compile $PROJECT."
27 echo "Install the appropriate package for your distribution,"
28 echo "or get the source tarball at http://ftp.gnu.org/gnu/libtool/"
32 (gtkdocize --version) < /dev/null > /dev/null 2>&1 || {
34 echo "You must have gtk-doc installed to compile $PROJECT."
35 echo "Install the appropriate package for your distribution,"
36 echo "or get the source tarball at ftp://ftp.gnome.org/pub/GNOME/sources/gtk-doc/"
40 (autoconf --version) < /dev/null > /dev/null 2>&1 || {
42 echo "You must have autoconf installed to compile $PROJECT."
43 echo "Install the appropriate package for your distribution,"
44 echo "or get the source tarball at http://ftp.gnu.org/gnu/autoconf/"
48 if automake-1.11 --version < /dev/null > /dev/null 2>&1 ; then
49 AUTOMAKE=automake-1.11
51 else if automake-1.10 --version < /dev/null > /dev/null 2>&1 ; then
52 AUTOMAKE=automake-1.10
54 else if automake-1.9 --version < /dev/null > /dev/null 2>&1 ; then
59 echo "You must have automake 1.9.x, 1.10.x or 1.11.x installed to compile $PROJECT."
60 echo "Install the appropriate package for your distribution,"
61 echo "or get the source tarball at http://ftp.gnu.org/gnu/automake/"
67 if test "$DIE" -eq 1; then
71 test $TEST_TYPE $FILE || {
72 echo "You must run this script in the top-level $PROJECT directory"
76 if test -z "$AUTOGEN_SUBDIR_MODE"; then
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."
85 # README and INSTALL are required by automake, but may be deleted by clean
86 # up rules. to get automake to work, simply touch these here, they will be
87 # regenerated from their corresponding *.in files by ./configure anyway.
90 if [ ! -d build ]; then
91 if [ -x "`which svn`" ]; then
93 echo "=============================================================="
94 echo " your checkout doesn't contain build/."
95 echo " fetching it from http://svn.gnome.org/svn/build/trunk/"
96 echo "=============================================================="
99 svn checkout http://svn.gnome.org/svn/build/trunk/ build
102 echo 'warning: build/ directory is missing and no "svn" to fetch it!'
107 $ACLOCAL $ACLOCAL_FLAGS || exit $?
109 libtoolize --force || exit $?
112 autoheader || exit $?
114 $AUTOMAKE --add-missing || exit $?
116 cd $ORIGDIR || exit $?
118 if test -z "$AUTOGEN_SUBDIR_MODE"; then
119 $srcdir/configure --enable-maintainer-mode $AUTOGEN_CONFIGURE_ARGS "$@" || exit $?
122 echo "Now type 'make' to compile $PROJECT."