[Top][All Lists]

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

Re: Update known compiler switches for Fortran and OpenMP macros.

From: Ralf Wildenhues
Subject: Re: Update known compiler switches for Fortran and OpenMP macros.
Date: Sat, 5 Mar 2011 08:42:01 +0100
User-agent: Mutt/1.5.20 (2010-08-04)

[ moving from autoconf-patches ]

* Ralf Wildenhues wrote on Fri, Mar 04, 2011 at 09:46:00PM CET:
> This patch is my current known set of updates for existing Fortran
> macros.  [...]

I'm syncing the part below to gnulib.


    Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
    * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.

diff --git a/m4/openmp.m4 b/m4/openmp.m4
index cedfb4c..7930c07 100644
--- a/m4/openmp.m4
+++ b/m4/openmp.m4
@@ -1,4 +1,4 @@
-# openmp.m4 serial 8
+# openmp.m4 serial 9
 dnl Copyright (C) 2006-2011 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -79,12 +79,14 @@ AC_DEFUN([AC_OPENMP],
           dnl   IBM C (AIX, Linux)   -qsmp=omp
           dnl   Cray CCE             -homp
           dnl   NEC SX               -Popenmp
+          dnl   Lahey Fortran (Linux)  --openmp
           dnl If in this loop a compiler is passed an option that it doesn't
           dnl understand or that it misinterprets, the AC_LINK_IFELSE test
           dnl will fail (since we know that it failed without the option),
           dnl therefore the loop will continue searching for an option, and
           dnl no output file called 'penmp' or 'mp' is created.
-          for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp -homp 
-Popenmp; do
+          for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp -homp \
+                           -Popenmp --openmp; do
             _AC_LANG_PREFIX[]FLAGS="$[]_AC_LANG_PREFIX[]FLAGS $ac_option"

reply via email to

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