From: Bart Van Assche Date: Mon, 10 Mar 2008 17:57:41 +0000 (+0000) Subject: Made test for OpenMP more complete. X-Git-Tag: svn/VALGRIND_3_4_0~921 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=03ea8b1f38bde7d90bdfe1b233d18e038f06bbff;p=thirdparty%2Fvalgrind.git Made test for OpenMP more complete. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7626 --- diff --git a/configure.in b/configure.in index 21c42f0f18..0629e297a5 100644 --- a/configure.in +++ b/configure.in @@ -550,14 +550,16 @@ if test "${no_x}" != 'yes' ; then fi -# does this compiler support -fopenmp ? -AC_MSG_CHECKING([if gcc accepts -fopenmp]) +# does this compiler support -fopenmp, does it have the include file +# 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 +int main () { omp_set_dynamic(0); return 0; } ], [ ac_have_gcc_fopenmp=yes