fixed broken AC_F77_DUMMY_MAIN

This commit is contained in:
Steven G. Johnson 2001-07-06 01:03:18 +00:00
parent 1abe1e9420
commit 4ad0ed7fc9
5 changed files with 14 additions and 4 deletions

View File

@ -1,3 +1,9 @@
2001-07-05 Steven G. Johnson <stevenj@alum.mit.edu>
* aclang.m4 (AC_F77_DUMMY_MAIN): Use AC_TRY_LINK, not
AC_TRY_LINK_FUNC, to check whether defining a dummy
main-like routine is needed for linking with F77 libs.
2001-07-05 Pavel Roskin <proski@gnu.org>
* aclocal.m4 (_AC_PROG_CXX_EXIT_DECLARATION): Remove conftest*

View File

@ -1967,7 +1967,8 @@ AC_CACHE_CHECK([for dummy main to link with Fortran 77 libraries],
if test $ac_cv_f77_dummy_main = unknown; then
for ac_func in MAIN__ MAIN_ __main MAIN _MAIN __MAIN main_ main__ _main; do
AC_TRY_LINK_FUNC($ac_func, [ac_cv_f77_dummy_main=$ac_func; break])
AC_TRY_LINK([#define F77_DUMMY_MAIN $ac_func],
[], [ac_cv_f77_dummy_main=$ac_func; break])
done
fi
rm -f conftest*

View File

@ -1967,7 +1967,8 @@ AC_CACHE_CHECK([for dummy main to link with Fortran 77 libraries],
if test $ac_cv_f77_dummy_main = unknown; then
for ac_func in MAIN__ MAIN_ __main MAIN _MAIN __MAIN main_ main__ _main; do
AC_TRY_LINK_FUNC($ac_func, [ac_cv_f77_dummy_main=$ac_func; break])
AC_TRY_LINK([#define F77_DUMMY_MAIN $ac_func],
[], [ac_cv_f77_dummy_main=$ac_func; break])
done
fi
rm -f conftest*

View File

@ -1967,7 +1967,8 @@ AC_CACHE_CHECK([for dummy main to link with Fortran 77 libraries],
if test $ac_cv_f77_dummy_main = unknown; then
for ac_func in MAIN__ MAIN_ __main MAIN _MAIN __MAIN main_ main__ _main; do
AC_TRY_LINK_FUNC($ac_func, [ac_cv_f77_dummy_main=$ac_func; break])
AC_TRY_LINK([#define F77_DUMMY_MAIN $ac_func],
[], [ac_cv_f77_dummy_main=$ac_func; break])
done
fi
rm -f conftest*

View File

@ -1967,7 +1967,8 @@ AC_CACHE_CHECK([for dummy main to link with Fortran 77 libraries],
if test $ac_cv_f77_dummy_main = unknown; then
for ac_func in MAIN__ MAIN_ __main MAIN _MAIN __MAIN main_ main__ _main; do
AC_TRY_LINK_FUNC($ac_func, [ac_cv_f77_dummy_main=$ac_func; break])
AC_TRY_LINK([#define F77_DUMMY_MAIN $ac_func],
[], [ac_cv_f77_dummy_main=$ac_func; break])
done
fi
rm -f conftest*