]> SALOME platform Git repositories - modules/yacs.git/commitdiff
Salome HOME
Autotools: Add Boost include dirs to KERNEL includes. This is needed because an expor...
authorbarate <barate>
Fri, 13 Sep 2013 07:31:02 +0000 (07:31 +0000)
committerbarate <barate>
Fri, 13 Sep 2013 07:31:02 +0000 (07:31 +0000)
salome_adm/unix/config_files/check_Kernel.m4

index 428c9bdbccb95a16b8ce2f53f11c7049f64dcf2c..eb9c3174344bba2dddf28d34ca30382565bdfd58 100644 (file)
@@ -30,6 +30,13 @@ AC_REQUIRE([AC_LINKER_OPTIONS])dnl
 
 AC_CHECKING(for Kernel)
 
+# We check for Boost here because an exported header in Kernel depends on Boost shared
+# pointers
+if test "x$boost_ok" = "x" 
+then
+  CHECK_BOOST
+fi
+
 Kernel_ok=no
 
 KERNEL_LDFLAGS=""
@@ -73,7 +80,7 @@ if test -f ${KERNEL_DIR}/bin/salome/runSalome ; then
    AC_SUBST(KERNEL_SITE_DIR)
 
    KERNEL_LDFLAGS=-L${KERNEL_DIR}/lib${LIB_LOCATION_SUFFIX}/salome
-   KERNEL_CXXFLAGS=-I${KERNEL_DIR}/include/salome
+   KERNEL_CXXFLAGS="-I${KERNEL_DIR}/include/salome ${BOOST_CPPFLAGS}"
 
    AC_SUBST(KERNEL_LDFLAGS)
    AC_SUBST(KERNEL_CXXFLAGS)