|
From: <sv...@va...> - 2008-03-11 18:15:46
|
Author: bart
Date: 2008-03-11 18:15:49 +0000 (Tue, 11 Mar 2008)
New Revision: 7637
Log:
Third attempt to get the OpenMP configure test right.
Modified:
trunk/configure.in
Modified: trunk/configure.in
===================================================================
--- trunk/configure.in 2008-03-11 11:44:53 UTC (rev 7636)
+++ trunk/configure.in 2008-03-11 18:15:49 UTC (rev 7637)
@@ -552,15 +552,11 @@
# 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(, [
-#include <omp.h>
-int main () { omp_set_dynamic(0); return 0; }
-],
+AC_COMPILE_CHECK([OpenMP], [#include <omp.h>], [ omp_set_dynamic(0); ],
[
ac_have_gcc_fopenmp=yes
AC_MSG_RESULT([yes])
|