Author: bart
Date: 2008-03-10 17:57:41 +0000 (Mon, 10 Mar 2008)
New Revision: 7626
Log:
Made test for OpenMP more complete.
Modified:
trunk/configure.in
Modified: trunk/configure.in
===================================================================
--- trunk/configure.in 2008-03-09 21:09:05 UTC (rev 7625)
+++ trunk/configure.in 2008-03-10 17:57:41 UTC (rev 7626)
@@ -550,14 +550,16 @@
fi
-# does this compiler support -fopenmp ?
-AC_MSG_CHECKING([if gcc accepts -fopenmp])
+# does this compiler support -fopenmp, does it have the include file
+# <omp.h> and does it have libgomp ?
+AC_MSG_CHECKING([if gcc supports OpenMP])
safe_CFLAGS=$CFLAGS
CFLAGS="-fopenmp"
AC_TRY_COMPILE(, [
-int main () { return 0 ; }
+#include <omp.h>
+int main () { omp_set_dynamic(0); return 0; }
],
[
ac_have_gcc_fopenmp=yes
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Valgrind-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/valgrind-developers