From ab3003756e92f2f16e0ca13acf305d515dca3b42 Mon Sep 17 00:00:00 2001 From: Robert Lipe Date: Mon, 21 Sep 1998 10:34:28 +0000 Subject: Makefile.in (distclean, [...]): Add multilib support. * Makefile.in (distclean, clean, uninstall, install, all): Add multilib support. configure.in: Likewise. configure: Regenerate. * libF77/Makefile.in, libU77/Makefile.in, libI77/Makefile.in (clean): Explictly remove stamp in parent's directory. From-SVN: r22519 --- libf2c/configure.in | 31 +++++++++++++++++++++++++++++-- 1 file changed, 29 insertions(+), 2 deletions(-) (limited to 'libf2c/configure.in') diff --git a/libf2c/configure.in b/libf2c/configure.in index 4ede477..0ae338e 100644 --- a/libf2c/configure.in +++ b/libf2c/configure.in @@ -21,6 +21,16 @@ AC_INIT(libF77/Version.c) +if test "${srcdir}" = "." ; then + if test "${with_target_subdir}" != "." ; then + topsrcdir=${with_multisrctop}../.. + else + topsrcdir=${with_multisrctop}.. + fi +else + topsrcdir=${srcdir}/.. +fi + dnl Checks for programs. # For g77 we'll set CC to point at the built gcc, but this will get it into # the makefiles @@ -163,9 +173,26 @@ AC_SUBST(gcc_version) AC_SUBST(gcc_version_trigger) AC_CANONICAL_SYSTEM AC_SUBST(target_alias) - AC_CONFIG_SUBDIRS(libU77 libI77 libF77) -AC_OUTPUT(Makefile g2c.h:g2c.hin) +AC_OUTPUT(g2c.h:g2c.hin Makefile, + [test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h +if test -n "$CONFIG_FILES"; then + if test -n "${with_target_subdir}"; then + # FIXME: We shouldn't need to set ac_file + ac_file=Makefile + . ${topsrcdir}/config-ml.in + fi +fi], +srcdir=${srcdir} +host=${host} +target=${target} +with_target_subdir=${with_target_subdir} +with_multisubdir=${with_multisubdir} +ac_configure_args="--enable-multilib ${ac_configure_args}" +CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} +topsrcdir=${topsrcdir} +) + dnl Local Variables: dnl comment-start: "dnl " -- cgit v1.1