Dear all,

there are two AC_OPENMP related patches pending [1][2] (combined in the
attached ac-openmp.diff). [1] adds support for Intel's -qopenmp and [2]
adds support for Fujitsu's -Kopenmp. Would it be possible integrate
these changes into autoconf?

Thanks,
Christian

[1]
https://lists.gnu.org/archive/html/autoconf-patches/2014-11/msg00001.html
[2]
https://lists.gnu.org/archive/html/autoconf-patches/2013-11/msg00000.html
--
Dipl-Phys.
Christian Feld
Forschungszentrum Jülich GmbH
Jülich Supercomputing Centre
Telefon: +49 2461 61-1773
E-Mail: c.f...@fz-juelich.de
Internet: http://www.fz-juelich.de/jsc


------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------
Forschungszentrum Juelich GmbH
52425 Juelich
Sitz der Gesellschaft: Juelich
Eingetragen im Handelsregister des Amtsgerichts Dueren Nr. HR B 3498
Vorsitzender des Aufsichtsrats: MinDir Dr. Karl Eugen Huthmacher
Geschaeftsfuehrung: Prof. Dr.-Ing. Wolfgang Marquardt (Vorsitzender),
Karsten Beneke (stellv. Vorsitzender), Prof. Dr.-Ing. Harald Bolt,
Prof. Dr. Sebastian M. Schmidt
------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------

diff --git a/lib/autoconf/c.m4 b/lib/autoconf/c.m4
index 9c400f7..90f1857 100644
--- a/lib/autoconf/c.m4
+++ b/lib/autoconf/c.m4
@@ -2160,20 +2160,22 @@ AC_DEFUN([AC_OPENMP],
 	  dnl Try these flags:
 	  dnl   GCC >= 4.2           -fopenmp
 	  dnl   SunPRO C             -xopenmp
-	  dnl   Intel C              -openmp
+	  dnl   Intel C              -qopenmp|-openmp (note: -openmp deprecated
+	  dnl                        since version 15)
 	  dnl   SGI C, PGI C         -mp
 	  dnl   Tru64 Compaq C       -omp
 	  dnl   IBM XL C (AIX, Linux) -qsmp=omp
           dnl   Cray CCE             -homp
           dnl   NEC SX               -Popenmp
           dnl   Lahey Fortran (Linux)  --openmp
+          dnl   Fujitsu              -Kopenmp
 	  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 --openmp; do
+	  for ac_option in -fopenmp -xopenmp -qopenmp -openmp -mp -omp \
+                           -qsmp=omp -homp -Popenmp --openmp -Kopenmp; do
 	    ac_save_[]_AC_LANG_PREFIX[]FLAGS=$[]_AC_LANG_PREFIX[]FLAGS
 	    _AC_LANG_PREFIX[]FLAGS="$[]_AC_LANG_PREFIX[]FLAGS $ac_option"
 	    AC_LINK_IFELSE([_AC_LANG_OPENMP],

Reply via email to