-
Notifications
You must be signed in to change notification settings - Fork 109
/
Copy pathautogen
executable file
·60 lines (47 loc) · 1.8 KB
/
autogen
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
#! /bin/sh
# cd to the directory we're run from
cd `dirname $0`
# if you change this, please also change it in the root Makefile.am
includes="-I . -I config -I config/gettext-macros -I config/gnulib -I config/amanda -I config/macro-archive -I /usr/share/aclocal"
# clean up
rm -f aclocal.m4
rm -rf autom4te*.cache
rm -f configure
die() {
echo x"${@}" | sed 's/^x//'
exit 1
}
echo "See DEVELOPING for instructions on updating:"
echo " * gettext macros"
echo " * gnulib"
echo " * libtool files"
echo "..creating file lists"
( cd config
for m4dir in amanda gettext-macros gnulib macro-archive; do
echo "## this file is automatically generated by autogen" > "$m4dir/file-list"
for f in $m4dir/*.m4; do echo "EXTRA_DIST += $f" >> "$m4dir/file-list"; done
done
echo "## this file is automatically generated by autogen" > "automake/file-list"
for f in automake/*.am; do echo "EXTRA_DIST += $f" >> "automake/file-list"; done
)
#set the FULL_VERSION file
config/set_full_version
echo "..aclocal"
aclocal $includes || die "aclocal failed"
echo "...aclocal patches"
# See http://bugzilla.gnome.org/show_bug.cgi?id=418778
#
# The Glib developers are a bit over-eager in their version requirements, requiring
# an unnecessarily high verison of pkg-config at configure time, when they really
# only need it at autogen time. This patch resets the version number in the file
# just generated by aclocal to the version we've been requiring all along.
sed -e \
's/PKG_PROG_PKG_CONFIG(\[0\.16\])/PKG_PROG_PKG_CONFIG([0.7])/g' \
aclocal.m4 > aclocal.m4~ && mv aclocal.m4~ aclocal.m4
echo "..autoconf"
autoconf || die "autoconf failed"
echo "..autoheader"
autoheader || die "autoheader failed"
touch config/config.h.in
echo "..automake"
automake --add-missing --force --copy --warnings=none || die "automake failed"