=== modified file 'configure.ac' --- configure.ac 2012-04-14 20:28:04 +0000 +++ configure.ac 2012-04-18 04:44:56 +0000 @@ -193,7 +193,11 @@ dnl Check for OpenMP dnl Replace this with AC_OPENMP once Autoconf 2.62 is widespread dnl ****************************** -AX_OPENMP([openmp_ok=yes],[openmp_ok=no]) +openmp_ok=no +m4_ifdef([AC_OPENMP], [AC_OPENMP], [AX_OPENMP([openmp_ok=yes],[openmp_ok=no])]) +if test "x$ac_cv_prog_cxx_openmp" != "xunsupported" && test "x$ac_cv_prog_cxx_openmp" != "x"; then + openmp_ok=yes +fi if test "x$openmp_ok" = "xyes"; then dnl We have it, now set up the flags CXXFLAGS="$CXXFLAGS $OPENMP_CXXFLAGS"