autoconf-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AC_OPENMP / AC_LANG_FUNC_LINK_TRY: unknown language: Fortran


From: Ralf Wildenhues
Subject: Re: AC_OPENMP / AC_LANG_FUNC_LINK_TRY: unknown language: Fortran
Date: Sat, 31 Oct 2009 08:52:46 +0100
User-agent: Mutt/1.5.20 (2009-08-09)

* Ralf Wildenhues wrote on Fri, Oct 30, 2009 at 07:22:48PM CET:
>     Fix AC_OPENMP for Fortran (F77 and FC).
>     
>     * lib/autoconf/fortran.m4 (AC_LANG_FUNC_LINK_TRY(Fortran): New.
>     * tests/c.at (AC_C_RESTRICT and C++, AC_OPENMP and C)
>     (AC_OPENMP and C++): New tests.
>     * tests/fortran.at (AC_OPENMP and Fortran 77)
>     (AC_OPENMP and Fortran): New tests.
>     * THANKS: Update.
>     Report by Bart Oldeman.

Pushing this obvious followup to fix the test on some systems.
Only OpenMP related failures I'm still seeing are with the plain
`AC_OPENMP' test: Solaris 2.6 cc may dump core at some point during
configure, and IRIX cc may create a directory rii_files, both of which
upset the leftover file checks.  I'm not sure when it is suitable to
remove rii_files, though.

Cheers,
Ralf

    Do not fail OpenMP tests on systems without aclocal.
    
    * tests/c.at (AC_OPENMP and C, AC_OPENMP and C++): Override
    `ACLOCAL=true' for autoreconf, the tests don't need aclocal.
    * tests/fortran.at (AC_OPENMP and Fortran 77)
    (AC_OPENMP and Fortran): Likewise.

diff --git a/tests/c.at b/tests/c.at
index 78edf45..34f83ae 100644
--- a/tests/c.at
+++ b/tests/c.at
@@ -369,7 +369,7 @@ int main ()
 ]])
 
 : ${MAKE=make}
-AT_CHECK([autoreconf -vi], [], [ignore], [ignore])
+AT_CHECK([env ACLOCAL=true autoreconf -vi], [], [ignore], [ignore])
 AT_CHECK([./configure $configure_options], [], [ignore], [ignore])
 AT_CHECK([$MAKE], [], [ignore], [ignore])
 
@@ -412,7 +412,7 @@ AT_DATA([foo.cpp],
 ]])
 
 : ${MAKE=make}
-AT_CHECK([autoreconf -vi], [], [ignore], [ignore])
+AT_CHECK([env ACLOCAL=true autoreconf -vi], [], [ignore], [ignore])
 AT_CHECK([./configure $configure_options], [], [ignore], [ignore])
 AT_CHECK([$MAKE], [], [ignore], [ignore])
 
diff --git a/tests/fortran.at b/tests/fortran.at
index 151b13f..d511e3d 100644
--- a/tests/fortran.at
+++ b/tests/fortran.at
@@ -108,7 +108,7 @@ AT_DATA([foo.f],
 ]])
 
 : ${MAKE=make}
-AT_CHECK([autoreconf -vi], [], [ignore], [ignore])
+AT_CHECK([env ACLOCAL=true autoreconf -vi], [], [ignore], [ignore])
 AT_CHECK([./configure $configure_options], [], [ignore], [ignore])
 AT_CHECK([$MAKE], [], [ignore], [ignore])
 
@@ -148,7 +148,7 @@ AT_DATA([foo.f],
 ]])
 
 : ${MAKE=make}
-AT_CHECK([autoreconf -vi], [], [ignore], [ignore])
+AT_CHECK([env ACLOCAL=true autoreconf -vi], [], [ignore], [ignore])
 AT_CHECK([./configure $configure_options], [], [ignore], [ignore])
 AT_CHECK([$MAKE], [], [ignore], [ignore])
 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]