blob: c30a15203d86765f342986dbbe8cb82c47b51720 (
plain)
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
|
#!/bin/sh
LC_ALL=C
export LC_ALL
doit() {
if test ! -f configure.ac
then
for d in */.
do
( cd $d >/dev/null 2>&1 || continue; doit ) || exit 1
done
exit 0
fi
echo `pwd`:
if test -f po/Makefile.in.in
then
if test ! -f po/Makefile
then
cp po/Makefile.in.in po/Makefile
fi
fi
if grep -q LT_INIT configure.ac
then
libtoolize --force --copy `if grep -q LIBLTDL configure.ac ; then echo --ltdl; fi`
else
if grep -q PROG_LIBTOOL configure.ac
then
libtoolize --force --copy `if grep -q LIBLTDL configure.ac ; then echo --ltdl; fi`
fi
fi
aclocal || exit 1
if grep -q [AM\|AC]_CONFIG_HEADER configure.ac
then
autoheader || exit 1
fi
if grep -q AC_PROG_SYSCONFTOOL configure.ac
then
sysconftoolize || exit 1
fi
for gitfile in $(find . -maxdepth 1 -name "*.in.git" -type f)
do
gitfile_dist=$(basename $gitfile ".git")
cp $gitfile $gitfile_dist
done
if test -f AUTHORS -a -f NEWS -a -f README
then
automake --add-missing || exit 1
else
automake --foreign --add-missing || exit 1
fi
autoconf || exit 1
grep '^subdirs=' <configure >configure.tmp
subdirs=
. ./configure.tmp
rm configure.tmp
subdirs="`echo $subdirs`"
if test "$subdirs" = ""
then
subdirs="`echo */.`"
fi
for d in $subdirs
do
if test -f "$d/configure.ac"
then
( cd $d >/dev/null 2>&1 || continue; doit ) || exit 1
fi
done
}
doit
|