]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Third attempt to get the OpenMP configure test right.
authorBart Van Assche <bvanassche@acm.org>
Tue, 11 Mar 2008 18:15:49 +0000 (18:15 +0000)
committerBart Van Assche <bvanassche@acm.org>
Tue, 11 Mar 2008 18:15:49 +0000 (18:15 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7637

configure.in

index 0629e297a5fb75e56aaf47b7d81dab4c0e7a1f3b..dd6c953c9bec68700dc5ad3a2dcf746c59c604f0 100644 (file)
@@ -552,15 +552,11 @@ fi
 
 # 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])