1# Check if $CC supports openmp.
2AC_DEFUN([AX_CHECK_OPENMP], [
3 AC_SUBST(HAVE_OPENMP)
4 HAVE_OPENMP=no
5 AC_MSG_CHECKING([for OpenMP support by $CC])
6 echo | $CC -x c - -fsyntax-only -fopenmp -Werror >/dev/null 2>/dev/null
7 if test $? -eq 0; then
8 HAVE_OPENMP=yes
9 fi
10])
11