summaryrefslogtreecommitdiffstats
path: root/common/autobloat
blob: 0a69ef1aca91ff0d368745e5cfb66e1d95a720d2 (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
#!/bin/sh

LC_ALL=C
export LC_ALL

doit() {

	if test ! -f configure.in
	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.in
	then
		libtoolize --force --copy `if grep -q LIBLTDL configure.in ; then echo --ltdl; fi`
	else
	    if grep -q PROG_LIBTOOL configure.in
	    then
		libtoolize --force --copy `if grep -q LIBLTDL configure.in ; then echo --ltdl; fi`
	    fi
	fi
	aclocal || exit 1
	if grep -q AM_CONFIG_HEADER configure.in
	then
		autoheader || exit 1
	fi
	if grep -q AC_PROG_SYSCONFTOOL configure.in
	then
		sysconftoolize || exit 1
	fi
	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.in"
	    then
		( cd $d >/dev/null 2>&1 || continue; doit ) || exit 1
	    fi
	done
}

doit