From a7433209786c748d53a2f82d6f192061504e46c8 Mon Sep 17 00:00:00 2001 From: Alex Valavanis Date: Thu, 28 Feb 2013 00:17:14 +0000 Subject: Use AC_OPENMP macro for OpenMP detection Fixed bugs: - https://launchpad.net/bugs/984836 (bzr r12157) --- configure.ac | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/configure.ac b/configure.ac index bf69cb6d6..e6c929603 100644 --- a/configure.ac +++ b/configure.ac @@ -216,13 +216,12 @@ AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT) dnl ****************************** 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]) -if test "x$openmp_ok" = "xyes"; then +AC_OPENMP +if test "x$ac_cv_prog_cxx_openmp" != "xunsupported"; then dnl We have it, now set up the flags + AC_MSG_RESULT([Using OpenMP support]) CXXFLAGS="$CXXFLAGS $OPENMP_CXXFLAGS" - AC_CHECK_HEADER(omp.h) AC_DEFINE(HAVE_OPENMP, 1, [Use OpenMP]) fi -- cgit v1.2.3