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
35 #set the FULL_VERSION file
36 config/set_full_version
39 aclocal $includes || die "aclocal failed"
41 echo "...aclocal patches"
42 # See http://bugzilla.gnome.org/show_bug.cgi?id=418778
44 # The Glib developers are a bit over-eager in their version requirements, requiring
45 # an unnecessarily high verison of pkg-config at configure time, when they really
46 # only need it at autogen time. This patch resets the version number in the file
47 # just generated by aclocal to the version we've been requiring all along.
49 's/PKG_PROG_PKG_CONFIG(\[0\.16\])/PKG_PROG_PKG_CONFIG([0.7])/g' \
50 aclocal.m4 > aclocal.m4~ && mv aclocal.m4~ aclocal.m4
53 autoconf || die "autoconf failed"
56 autoheader || die "autoheader failed"
57 touch config/config.h.in
60 automake --force --copy --warnings=none || die "automake failed"