Update of m4 openmp macro

Newer versions of Intel compiler want "-qopenmp" NOT "-openmp"
parent 4a5c481e
...@@ -69,6 +69,7 @@ AC_DEFUN([AX_ELPA_OPENMP], ...@@ -69,6 +69,7 @@ AC_DEFUN([AX_ELPA_OPENMP],
dnl GCC >= 4.2 -fopenmp dnl GCC >= 4.2 -fopenmp
dnl SunPRO C -xopenmp dnl SunPRO C -xopenmp
dnl Intel C -openmp dnl Intel C -openmp
dnl Intel > 14.0 -qopenmp
dnl SGI C, PGI C -mp dnl SGI C, PGI C -mp
dnl Tru64 Compaq C -omp dnl Tru64 Compaq C -omp
dnl IBM C (AIX, Linux) -qsmp=omp dnl IBM C (AIX, Linux) -qsmp=omp
...@@ -77,7 +78,7 @@ AC_DEFUN([AX_ELPA_OPENMP], ...@@ -77,7 +78,7 @@ AC_DEFUN([AX_ELPA_OPENMP],
dnl will fail (since we know that it failed without the option), dnl will fail (since we know that it failed without the option),
dnl therefore the loop will continue searching for an option, and dnl therefore the loop will continue searching for an option, and
dnl no output file called 'penmp' or 'mp' is created. dnl no output file called 'penmp' or 'mp' is created.
for ac_option in -openmp -fopenmp -xopenmp -mp -omp -qsmp=omp; do for ac_option in -qopenmp -openmp -fopenmp -xopenmp -mp -omp -qsmp=omp; do
ac_save_[]_AC_LANG_PREFIX[]FLAGS=$[]_AC_LANG_PREFIX[]FLAGS ac_save_[]_AC_LANG_PREFIX[]FLAGS=$[]_AC_LANG_PREFIX[]FLAGS
_AC_LANG_PREFIX[]FLAGS="$[]_AC_LANG_PREFIX[]FLAGS $ac_option" _AC_LANG_PREFIX[]FLAGS="$[]_AC_LANG_PREFIX[]FLAGS $ac_option"
AC_LINK_IFELSE([AC_LANG_SOURCE([_AX_ELPA_LANG_OPENMP])], AC_LINK_IFELSE([AC_LANG_SOURCE([_AX_ELPA_LANG_OPENMP])],
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment