3 # cd to the directory we're run from
6 # if you change this, please also change it in the root Makefile.am
7 includes="-I . -I config -I config/gettext-macros -I config/gnulib -I config/amanda -I config/macro-archive"
11 rm -rf autom4te*.cache
15 echo x"${@}" | sed 's/^x//'
19 echo "See DEVELOPING for instructions on updating:"
20 echo " * gettext macros"
22 echo " * libtool files"
24 echo "..creating file lists"
26 for m4dir in amanda gettext-macros gnulib macro-archive; do
27 echo "## this file is automatically generated by autogen" > "$m4dir/file-list"
28 for f in $m4dir/*.m4; do echo "EXTRA_DIST += $f" >> "$m4dir/file-list"; done
31 echo "## this file is automatically generated by autogen" > "automake/file-list"
32 for f in automake/*.am; do echo "EXTRA_DIST += $f" >> "automake/file-list"; done
36 aclocal $includes || die "aclocal failed"
38 echo "...aclocal patches"
39 # See http://bugzilla.gnome.org/show_bug.cgi?id=418778
41 # The Glib developers are a bit over-eager in their version requirements, requiring
42 # an unnecessarily high verison of pkg-config at configure time, when they really
43 # only need it at autogen time. This patch resets the version number in the file
44 # just generated by aclocal to the version we've been requiring all along.
46 's/PKG_PROG_PKG_CONFIG(\[0\.16\])/PKG_PROG_PKG_CONFIG([0.7])/g' \
50 autoconf || die "autoconf failed"
53 autoheader || die "autoheader failed"
54 touch config/config.h.in
57 automake --force --copy --warnings=none || die "automake failed"