]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
Properly detect TBB when installed in the system (/usr)
authorbarate <barate>
Tue, 18 Dec 2012 10:04:46 +0000 (10:04 +0000)
committerbarate <barate>
Tue, 18 Dec 2012 10:04:46 +0000 (10:04 +0000)
salome_adm/unix/config_files/check_tbb.m4

index df1a8650588fe87fab39fcbeac754de3d1a0694f..f9e55aa939c4b0ef816c48981d8ee2e74f36849b 100644 (file)
@@ -80,9 +80,9 @@ if test "x$TBBHOME" != "xno"; then
 
 dnl check tbb header
 
-    CPPFLAGS="$CPPFLAGS $LOCAL_INCLUDES/tbb"
+    CPPFLAGS="$CPPFLAGS $LOCAL_INCLUDES"
 
-    AC_CHECK_HEADER(tbb.h,tbb_ok=yes ,tbb_ok=no)
+    AC_CHECK_HEADER(tbb/tbb.h,tbb_ok=yes ,tbb_ok=no)
 fi
 
 if  test "x$tbb_ok" = "xyes"
@@ -92,7 +92,7 @@ dnl check TBB library
 
   LIBS_old="$LIBS"
   LIBS="$LIBS $LOCAL_LIBS"
-  AC_TRY_LINK([#include <tbb.h>],
+  AC_TRY_LINK([#include <tbb/tbb.h>],
               [tbb::simple_partitioner()],
               tbb_ok=yes,tbb_ok=no)