From d32d45b27305142c042fd03718b6c45961619b20 Mon Sep 17 00:00:00 2001 From: barate Date: Tue, 18 Dec 2012 10:04:46 +0000 Subject: [PATCH] Properly detect TBB when installed in the system (/usr) --- salome_adm/unix/config_files/check_tbb.m4 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/salome_adm/unix/config_files/check_tbb.m4 b/salome_adm/unix/config_files/check_tbb.m4 index df1a86505..f9e55aa93 100644 --- a/salome_adm/unix/config_files/check_tbb.m4 +++ b/salome_adm/unix/config_files/check_tbb.m4 @@ -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 ], + AC_TRY_LINK([#include ], [tbb::simple_partitioner()], tbb_ok=yes,tbb_ok=no) -- 2.39.2