2 # Run this to generate all the initial makefiles, etc.
5 test -z "$srcdir" && srcdir=.
9 (test -f $srcdir/configure.ac) || {
10 echo -n "**Error**: Directory "\`$srcdir\'" does not look like the"
11 echo " top-level package directory"
15 (autoconf --version) < /dev/null > /dev/null 2>&1 || {
17 echo "**Error**: You must have \`autoconf' installed."
18 echo "Download the appropriate package for your distribution,"
19 echo "or get the source tarball at ftp://ftp.gnu.org/pub/gnu/"
24 (grep "^IT_PROG_INTLTOOL" $srcdir/configure.ac >/dev/null) && {
25 (intltoolize --version) < /dev/null > /dev/null 2>&1 || {
27 echo "**Error**: You must have \`intltool' installed."
28 echo "You can get it from:"
29 echo " ftp://ftp.gnome.org/pub/GNOME/"
35 (grep "^LT_INIT" $srcdir/configure.ac >/dev/null) && {
36 (libtoolize --version) < /dev/null > /dev/null 2>&1 || {
38 echo "**Error**: You must have \`libtool' installed."
39 echo "You can get it from: ftp://ftp.gnu.org/pub/gnu/"
44 (automake --version) < /dev/null > /dev/null 2>&1 || {
46 echo "**Error**: You must have \`automake' installed."
47 echo "You can get it from: ftp://ftp.gnu.org/pub/gnu/"
53 # if no automake, don't bother testing for aclocal
54 test -n "$NO_AUTOMAKE" || (aclocal --version) < /dev/null > /dev/null 2>&1 || {
56 echo "**Error**: Missing \`aclocal'. The version of \`automake'"
57 echo "installed doesn't appear recent enough."
58 echo "You can get automake from ftp://ftp.gnu.org/pub/gnu/"
62 if test "$DIE" -eq 1; then
67 echo "**Warning**: I am going to run \`configure' with no arguments."
68 echo "If you wish to pass any to it, please specify them on the"
69 echo \`$0\'" command line."
75 am_opt=--include-deps;;
80 if test -f $dr/NO-AUTO-GEN; then
81 echo skipping $dr -- flagged as no auto-gen
86 aclocalinclude="$ACLOCAL_FLAGS"
88 if grep "^AM_GLIB_GNU_GETTEXT" configure.ac >/dev/null; then
89 echo "Creating $dr/aclocal.m4 ..."
90 test -r $dr/aclocal.m4 || touch $dr/aclocal.m4
92 echo "Making $dr/aclocal.m4 writable ..."
93 test -r $dr/aclocal.m4 && chmod u+w $dr/aclocal.m4
96 # if grep "^IT_PROG_INTLTOOL" configure.ac >/dev/null; then
97 # echo "Running intltoolize..."
98 #intltoolize --copy --force --automake
101 if grep "^LT_INIT" configure.ac >/dev/null; then
102 if test -z "$NO_LIBTOOLIZE" ; then
103 echo "Running libtoolize..."
104 libtoolize --force --copy
107 echo "Running aclocal $aclocalinclude ..."
108 aclocal $aclocalinclude
109 if grep "^A[CM]_CONFIG_HEADER" configure.ac >/dev/null; then
110 echo "Running autoheader..."
113 echo "Running automake $am_opt ..."
114 automake --add-missing --copy $am_opt
115 echo "Running autoconf ..."
121 if test x$NOCONFIGURE = x; then
122 echo Running $srcdir/configure "$@" ...
123 $srcdir/configure "$@" \
124 && echo Now type \`make\' to compile. || exit 1
126 echo Skipping configure process.