mirror of
git://git.savannah.gnu.org/libtool.git
synced 2025-01-18 14:16:00 +08:00
c466be90b3
Fortran support tag. (AC_LIBTOOL_PROG_CC_C_O, _LT_AC_TAGCONFIG): Support F77 tag. (AC_LIBTOOL_F77, _LT_AC_LANG_F77, AC_LIBTOOL_LANG_F77_CONFIG): New macros for F77 tag Fortran support. * configure.ac: Add support for creating the new F77 tag. * bootstrap: Add f77demo directory to the list to be processed. * Makefile.am: Add support for FFLAGS and FLIBS. * tests/Makefile.am: Add new Fortran tests. * tests/f77demo-*.test: New files. * f77demo/configure.ac, f77demo/cprogram.c, f77demo/fooc.c * f77demo/foof.f, f77demo/foo.h, f77demo/fprogram.f * f77demo/Makefile.am, f77demo/README: New files.
52 lines
1.1 KiB
Bash
Executable File
52 lines
1.1 KiB
Bash
Executable File
#! /bin/sh
|
|
|
|
# helps bootstrapping libtool, when checked out from CVS
|
|
# requires at least GNU autoconf 2.50 and GNU automake1.4-p5
|
|
|
|
find . \( -name autom4te.cache -o -name libtool \) -exec rm -r {} \;
|
|
|
|
: ${ACLOCAL=aclocal}
|
|
: ${AUTOMAKE=automake}
|
|
: ${AUTOCONF=autoconf}
|
|
: ${AUTOHEADER=autoheader}
|
|
|
|
# fake the libtool scripts
|
|
touch ltmain.sh
|
|
touch libtoolize
|
|
|
|
for sub in . libltdl cdemo demo depdemo mdemo pdemo tagdemo f77demo; do
|
|
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
|
|
|
|
cd $sub
|
|
rm -f acinclude.m4 aclocal.m4 Makefile configure
|
|
for file in $acfiles; do
|
|
cat $file >> ./acinclude.m4
|
|
done
|
|
|
|
$ACLOCAL
|
|
test $sub = libltdl && $AUTOHEADER
|
|
eval $AUTOMAKE $AUTOMAKE_FLAGS
|
|
$AUTOCONF
|
|
cd $top_srcdir
|
|
done
|
|
|
|
rm -f ltmain.sh libtoolize
|
|
|
|
exit 0
|