1 |
#! /bin/sh |
#! /bin/sh |
2 |
|
|
3 |
# helps bootstrapping libtool, when checked out from CVS |
# helps bootstrapping libtool, when checked out from CVS |
4 |
# requires GNU autoconf and GNU automake |
# requires at least GNU autoconf 2.50 and GNU automake1.4-p4 |
|
|
|
|
file=Makefile.in |
|
5 |
|
|
6 |
: ${ACLOCAL=aclocal} |
: ${ACLOCAL=aclocal} |
7 |
: ${AUTOMAKE=automake} |
: ${AUTOMAKE=automake} |
8 |
: ${AUTOCONF=autoconf} |
: ${AUTOCONF=autoconf} |
9 |
: ${AUTOHEADER=autoheader} |
: ${AUTOHEADER=autoheader} |
10 |
|
|
|
rm -f acinclude.m4 |
|
|
ln -s libtool.m4 acinclude.m4 |
|
11 |
# fake the libtool scripts |
# fake the libtool scripts |
12 |
touch ltmain.sh |
touch ltmain.sh |
|
touch ltconfig |
|
13 |
touch libtoolize |
touch libtoolize |
|
$ACLOCAL |
|
|
$AUTOMAKE --gnu --add-missing --copy |
|
|
$AUTOCONF |
|
14 |
|
|
15 |
for sub in libltdl demo depdemo mdemo cdemo tagdemo pdemo; do |
for sub in . libltdl demo depdemo mdemo cdemo tagdemo pdemo; do |
16 |
|
case $sub in |
17 |
|
.) |
18 |
|
top_srcdir=. |
19 |
|
acfiles="$top_srcdir/libtool.m4" |
20 |
|
AUTOMAKE_FLAGS="--gnu --add-missing --copy" |
21 |
|
;; |
22 |
|
libltdl) |
23 |
|
top_srcdir=.. |
24 |
|
acfiles="$top_srcdir/libtool.m4 $top_srcdir/ltdl.m4" |
25 |
|
AUTOMAKE_FLAGS="--gnits --add-missing" |
26 |
|
;; |
27 |
|
*) |
28 |
|
top_srcdir=.. |
29 |
|
acfiles="$top_srcdir/libtool.m4" |
30 |
|
AUTOMAKE_FLAGS="--gnits --add-missing" |
31 |
|
;; |
32 |
|
esac |
33 |
|
|
34 |
cd $sub |
cd $sub |
35 |
rm -f acinclude.m4 Makefile |
rm -f acinclude.m4 Makefile |
36 |
cat ../libtool.m4 > acinclude.m4 |
for file in $acfiles; do |
37 |
test "$sub" = libltdl && cat ../ltdl.m4 >> acinclude.m4 |
cat $file >> ./acinclude.m4 |
38 |
|
done |
39 |
|
|
40 |
$ACLOCAL |
$ACLOCAL |
41 |
test "$sub" = libltdl && $AUTOHEADER |
test $sub = libltdl && $AUTOHEADER |
42 |
$AUTOMAKE --gnits --add-missing |
eval $AUTOMAKE $AUTOMAKE_FLAGS |
43 |
$AUTOCONF |
$AUTOCONF |
44 |
cd .. |
cd $top_srcdir |
45 |
done |
done |
46 |
|
|
47 |
rm -f ltmain.sh ltconfig libtoolize Makefile |
rm -f ltmain.sh libtoolize |
48 |
|
|
49 |
exit 0 |
exit 0 |