diff options
| author | Alex Valavanis <valavanisalex@gmail.com> | 2013-02-28 00:17:14 +0000 |
|---|---|---|
| committer | Alex Valavanis <valavanisalex@gmail.com> | 2013-02-28 00:17:14 +0000 |
| commit | a7433209786c748d53a2f82d6f192061504e46c8 (patch) | |
| tree | 719a7e59fefef9fd50193f3475deb8579d1a259b | |
| parent | Fix missing language list (diff) | |
| download | inkscape-a7433209786c748d53a2f82d6f192061504e46c8.tar.gz inkscape-a7433209786c748d53a2f82d6f192061504e46c8.zip | |
Use AC_OPENMP macro for OpenMP detection
Fixed bugs:
- https://launchpad.net/bugs/984836
(bzr r12157)
| -rw-r--r-- | configure.ac | 7 |
1 files 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 |
