summaryrefslogtreecommitdiff
blob: 5ccfea691a8feca0caceb44162a05db835f9a8a1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
--- m4/ax_openmp.m4.orig	2008-07-01 00:14:48.814076874 +0100
+++ m4/ax_openmp.m4	2008-06-30 23:42:30.534809664 +0100
@@ -59,6 +59,9 @@
 else
   if test "x$ax_cv_[]_AC_LANG_ABBREV[]_openmp" != "xnone"; then
     OPENMP_[]_AC_LANG_PREFIX[]FLAGS=$ax_cv_[]_AC_LANG_ABBREV[]_openmp
+    if test "x$ax_cv_[]_AC_LANG_ABBREV[]_openmp" = "x-fopenmp"; then
+        OPENMP_LIBS="-lgomp"
+    fi
   fi
   m4_default([$1], [AC_DEFINE(HAVE_OPENMP,1,[Define if OpenMP is enabled])])
 fi