# Top level configure fragment for GNU FORTRAN.
-# Copyright (C) 1995-1997 Free Software Foundation, Inc.
+# Copyright (C) 1995, 1996, 1997, 2000 Free Software Foundation, Inc.
#This file is part of GNU Fortran.
# stagestuff - files to add to $(STAGESTUFF)
# diff_excludes - files to ignore when building diffs between two versions.
-#if grep DECL_STATIC_CONSTRUCTOR $srcdir/tree.h >/dev/null; then
-# if grep flag_move_all_movables $srcdir/toplev.c >/dev/null; then true
-# else
-# echo "You haven't applied the patches to the GCC 2.7.x distribution in"
-# echo "$srcdir as described in g77/README.g77 and gcc/f/gbe/README."
-# echo ""
-# exit 1
-# fi
-#else
-# if grep put_pending_sizes $srcdir/stor-layout.c >/dev/null; then true
-# else
-# echo "You haven't applied the patches to the GCC 2.6.x distribution in"
-# echo "$srcdir as described in g77/README.g77 and gcc/f/gbe/README."
-# echo ""
-# exit 1
-# fi
-#fi
-
language="f77"
compilers="f771\$(exeext)"
-case "$arguments" in
-# *--enable-f2c* | *-enable-f2c*)
-# echo "f77: enabling f2c."
-# stagestuff="g77 g77-cross f771 libf2c.a f2c fc" ;;
-# stagestuff="g77 g77-cross f771 libf2c.a f2c" ;;
-*)
- stagestuff="g77\$(exeext) g77-cross\$(exeext) f771\$(exeext) libf2c.a" ;;
-esac
-
-diff_excludes="-x \"f/g77.info*\""
-
-# Create the runtime library directory tree if necessary.
-test -d f || mkdir f
-test -d f/runtime || mkdir f/runtime
-test -d f/runtime/libF77 || mkdir f/runtime/libF77
-test -d f/runtime/libI77 || mkdir f/runtime/libI77
-test -d f/runtime/libU77 || mkdir f/runtime/libU77
-
-# Need to make top-level stageN directory trees, else if needed
-# later by gcc/Makefile, it'll make only the first levels and
-# the language subdirectory levels, not the runtime stuff.
-for stageN in stage1 stage2 stage3 stage4
-do
- test -d $stageN || mkdir $stageN
- test -d $stageN/f || mkdir $stageN/f
- test -d $stageN/f/runtime || mkdir $stageN/f/runtime
- test -d $stageN/f/runtime/libF77 || mkdir $stageN/f/runtime/libF77
- test -d $stageN/f/runtime/libI77 || mkdir $stageN/f/runtime/libI77
- test -d $stageN/f/runtime/libU77 || mkdir $stageN/f/runtime/libU77
-done
-
-# Make links into top-level stageN from target trees.
-for stageN in stage1 stage2 stage3 stage4 include
-do
- $remove -f f/$stageN f/runtime/$stageN f/runtime/libF77/$stageN \
- f/runtime/libI77/$stageN f/runtime/libU77/$stageN
- (cd f; $symbolic_link ../$stageN . 2>/dev/null)
- (cd f/runtime; $symbolic_link ../$stageN . 2>/dev/null)
- (cd f/runtime/libF77; $symbolic_link ../$stageN . 2>/dev/null)
- (cd f/runtime/libI77; $symbolic_link ../$stageN . 2>/dev/null)
- (cd f/runtime/libU77; $symbolic_link ../$stageN . 2>/dev/null)
-done
+stagestuff="g77\$(exeext) g77-cross\$(exeext) f771\$(exeext)"
-case "$srcdir" in
-.) ;;
-*) echo
- echo "Building f77 outside the source directory is likely to not work"
- echo "unless you are using GNU make or a compatible VPATH mechanism."
- echo ;;
-esac
+diff_excludes="-x f/BUGS -x f/NEWS -x f/INSTALL -x f/intdoc.texi"
-case "$host" in
-hppa*-*-hpux10)
- echo
- echo "The GCC \`fixincludes' step (which involves running a sed script)"
- echo "typically fails on HP-UX 10 because of a bug in the vendor's"
- echo "implementation of sed. Currently the only known workaround is to"
- echo "install GNU sed before building gcc. The file sed-2.05.bin.hpux10"
- echo "in mirrors of the GNU distribution is a suitable precompiled"
- echo "binary."
- echo ;;
-rs6000-ibm-aix4.1*)
- echo
- echo "G77 has been observed to not build on (at least) the configuration"
- echo "rs6000-ibm-aix4.1.4.0 with the native linker -- it crashes. There"
- echo "may be an IBM bug fix for this (we don't know) but the build should"
- echo "work if you add \`-mminimal-toc' to the compilation flags, i.e. add"
- echo "something like \`BOOT_CFLAGS=\"-O2 -mminimal-toc -g\"' to the \`make"
- echo "bootstrap' command line. Probably building with the GNU linker (from"
- echo "the binutils package) installed and configuring \`--with-gnu-ld' will work."
- echo ;;
-mips-sgi-irix6*)
- echo
- echo Consult
- echo "<URL:http://reality.sgi.com/knobi/gcc-2.7.2.x-on-irix-6.2-6.3>"
- echo "regarding building under IRIX-6.2/6.3/6.4. Note that you *must*"
- echo "have the SGI IDO bought and installed (sigh)."
- echo ;;
-*) ;;
-esac
+target_libs=target-libf2c