From: jfa Date: Fri, 16 Feb 2007 14:36:22 +0000 (+0000) Subject: Check presence of include file program_options.hpp, required for MEDSPLITTER compilation. X-Git-Tag: V4_0a2~2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=ad8114677f3a87507c44552603577b293854af44;p=modules%2Fkernel.git Check presence of include file program_options.hpp, required for MEDSPLITTER compilation. --- diff --git a/salome_adm/unix/config_files/check_boost.m4 b/salome_adm/unix/config_files/check_boost.m4 index 0298be6ee..d1b673c81 100644 --- a/salome_adm/unix/config_files/check_boost.m4 +++ b/salome_adm/unix/config_files/check_boost.m4 @@ -68,6 +68,14 @@ if test "x${BOOSTDIR}" != "x" ; then boost_include_dir_ok=no) fi +BOOST_PROGRAM_OPTIONS_LIB=no +if test "x${boost_include_dir_ok}" = "xyes" ; then + AC_CHECK_FILE(${BOOSTDIR}/include/boost/program_options.hpp, + BOOST_PROGRAM_OPTIONS_LIB=yes, + BOOST_PROGRAM_OPTIONS_LIB=no) +fi +AC_MSG_RESULT(for boost program_options tool: $BOOST_PROGRAM_OPTIONS_LIB) + if test "x${boost_include_dir_ok}" = "xyes" ; then AC_TRY_COMPILE([#include ], [boost::shared_ptr(new int)], @@ -137,6 +145,7 @@ AC_MSG_RESULT(for boost: $boost_ok) AC_SUBST(BOOST_CPPFLAGS) AC_SUBST(BOOST_LIBSUFFIX) AC_SUBST(BOOST_LIBS) +AC_SUBST(BOOST_PROGRAM_OPTIONS_LIB) AC_LANG_RESTORE