1998-11-02 16:34:05 +08:00
|
|
|
#! /bin/sh
|
|
|
|
|
|
|
|
# helps bootstrapping libtool, when checked out from CVS
|
2001-06-29 06:49:20 +08:00
|
|
|
# requires at least GNU autoconf 2.50 and GNU automake1.4-p4
|
2000-09-16 08:33:37 +08:00
|
|
|
|
2001-04-23 07:28:01 +08:00
|
|
|
: ${ACLOCAL=aclocal}
|
|
|
|
: ${AUTOMAKE=automake}
|
|
|
|
: ${AUTOCONF=autoconf}
|
|
|
|
: ${AUTOHEADER=autoheader}
|
|
|
|
|
1999-01-14 17:33:48 +08:00
|
|
|
# fake the libtool scripts
|
|
|
|
touch ltmain.sh
|
|
|
|
touch libtoolize
|
1998-12-20 18:26:52 +08:00
|
|
|
|
2001-07-31 10:30:31 +08:00
|
|
|
for sub in . libltdl cdemo demo depdemo mdemo ltdldemo pdemo tagdemo; do
|
2001-06-29 06:49:20 +08:00
|
|
|
case $sub in
|
|
|
|
.)
|
|
|
|
top_srcdir=.
|
|
|
|
acfiles="$top_srcdir/libtool.m4"
|
|
|
|
AUTOMAKE_FLAGS="--gnu --add-missing --copy"
|
|
|
|
;;
|
|
|
|
libltdl)
|
|
|
|
top_srcdir=..
|
|
|
|
acfiles="$top_srcdir/libtool.m4 $top_srcdir/ltdl.m4"
|
|
|
|
AUTOMAKE_FLAGS="--gnits --add-missing"
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
top_srcdir=..
|
|
|
|
acfiles="$top_srcdir/libtool.m4"
|
|
|
|
AUTOMAKE_FLAGS="--gnits --add-missing"
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
1998-12-20 18:26:52 +08:00
|
|
|
cd $sub
|
2001-07-31 10:30:31 +08:00
|
|
|
rm -f acinclude.m4 aclocal.m4 Makefile configure
|
2001-06-29 06:49:20 +08:00
|
|
|
for file in $acfiles; do
|
|
|
|
cat $file >> ./acinclude.m4
|
|
|
|
done
|
|
|
|
|
2001-04-23 07:28:01 +08:00
|
|
|
$ACLOCAL
|
2001-06-29 06:49:20 +08:00
|
|
|
test $sub = libltdl && $AUTOHEADER
|
|
|
|
eval $AUTOMAKE $AUTOMAKE_FLAGS
|
2001-04-23 07:28:01 +08:00
|
|
|
$AUTOCONF
|
2001-06-29 06:49:20 +08:00
|
|
|
cd $top_srcdir
|
1998-12-20 18:26:52 +08:00
|
|
|
done
|
1999-05-21 01:54:09 +08:00
|
|
|
|
2001-06-29 06:49:20 +08:00
|
|
|
rm -f ltmain.sh libtoolize
|
1998-12-20 18:26:52 +08:00
|
|
|
|
1998-11-02 16:34:05 +08:00
|
|
|
exit 0
|