[gegl/openmp: 1/4] configure: add check for openmp



commit 15d87ee87a67f90eb9080f0f1253c5cd752cc8a4
Author: Øyvind Kolås <pippin gimp org>
Date:   Tue Jun 3 22:44:49 2014 +0200

    configure: add check for openmp

 configure.ac |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 82fa9b8..9421d51 100644
--- a/configure.ac
+++ b/configure.ac
@@ -237,6 +237,12 @@ else
   AC_MSG_RESULT([no])
 fi
 
+$as_echo "#define HAVE_OPENMP 1" >> confdefs.h
+
+AC_OPENMP(AC_DEFINE(HAVE_OPENMP, 1, [Define to 1 if there is a valid OpenMP flag and the compiler supports 
it.]))
+
+CFLAGS="$CFLAGS $OPENMP_CFLAGS"
+
 AC_C_RESTRICT
 
 dnl disable docs generation.


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]