From 19934c8916d85c7a841d36c564fcb969bf4ab947 Mon Sep 17 00:00:00 2001 From: "Matthew D. Langston" Date: Mon, 19 Apr 1999 17:58:21 +0000 Subject: [PATCH] Add support for Fortran 77. --- ChangeLog | 4 ++++ acgeneral.m4 | 3 ++- lib/autoconf/general.m4 | 3 ++- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index d2b1cc8f..e75ed804 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +1999-04-19 Matthew D. Langston + + * acgeneral.m4 (AC_TRY_LINK_FUNC): Add support for Fortran 77. + 1999-04-11 Philipp Thomas * config.sub: Set basic_machine to i586 when target_alias = k6-*. diff --git a/acgeneral.m4 b/acgeneral.m4 index 196c4cbf..d51d26a1 100644 --- a/acgeneral.m4 +++ b/acgeneral.m4 @@ -1514,6 +1514,7 @@ dnl ACTION-IF-NOT-FOUND. AC_DEFUN(AC_TRY_LINK_FUNC, AC_TRY_LINK(dnl +ifelse(AC_LANG, [FORTRAN77], , ifelse([$1], [main], , dnl Avoid conflicting decl of main. [/* Override any gcc2 internal prototype to avoid an error. */ ]ifelse(AC_LANG, CPLUSPLUS, [#ifdef __cplusplus @@ -1523,7 +1524,7 @@ extern "C" [/* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char $1(); -]), +])), [$1()], [$2], [$3])) diff --git a/lib/autoconf/general.m4 b/lib/autoconf/general.m4 index 196c4cbf..d51d26a1 100644 --- a/lib/autoconf/general.m4 +++ b/lib/autoconf/general.m4 @@ -1514,6 +1514,7 @@ dnl ACTION-IF-NOT-FOUND. AC_DEFUN(AC_TRY_LINK_FUNC, AC_TRY_LINK(dnl +ifelse(AC_LANG, [FORTRAN77], , ifelse([$1], [main], , dnl Avoid conflicting decl of main. [/* Override any gcc2 internal prototype to avoid an error. */ ]ifelse(AC_LANG, CPLUSPLUS, [#ifdef __cplusplus @@ -1523,7 +1524,7 @@ extern "C" [/* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char $1(); -]), +])), [$1()], [$2], [$3]))