2 # Run this to generate all the initial makefiles, etc.
4 # Stolen from the GNU Midnight Commander. Customized for giFTcurs. Stolen from
5 # giFTcurs. Customized for giFT. Stolen from giFT.
6 # Customized for $this_project.
8 # Make it possible to specify path in the environment
10 : ${AUTOHEADER=autoheader}
11 : ${AUTOMAKE=automake}
13 : ${LIBTOOLIZE=libtoolize}
16 test -z "$srcdir" && srcdir=.
21 # The autoconf cache (version after 2.52) is not reliable yet.
25 ACLOCAL_INCLUDES="-I m4"
27 # Some old version of GNU build tools fail to set error codes.
28 # Check that they generate some of the files they should.
30 echo "Running $ACLOCAL..."
31 $ACLOCAL $ACLOCAL_INCLUDES $ACLOCAL_FLAGS || exit 1
32 test -f aclocal.m4 || \
33 { echo "aclocal failed to generate aclocal.m4" 2>&1; exit 1; }
35 echo "Running $AUTOHEADER..."
37 test -f config.h.in || \
38 { echo "autoheader failed to generate config.h.in" 2>&1; exit 1; }
40 echo "Running $AUTOCONF..."
42 test -f configure || \
43 { echo "autoconf failed to generate configure" 2>&1; exit 1; }
45 # hack hack hack...i hate autotools.
46 echo "Running $LIBTOOLIZE --automake..."
47 $LIBTOOLIZE --automake || exit 1
48 test -f ltmain.sh || \
49 { echo "libtoolize failed to generate ltmain.sh" 2>&1; exit 1; }
51 # Workaround for Automake 1.5 to ensure that depcomp is distributed.
52 echo "Running $AUTOMAKE..."
53 $AUTOMAKE -c -a src/Makefile || exit 1
54 $AUTOMAKE -c -a || exit 1
55 test -f Makefile.in || \
56 { echo "automake failed to generate Makefile.in" 2>&1; exit 1; }
61 echo "Type './configure' to configure ruby-evas."