mkvtoolnix/ac/boost.m4
2009-12-28 20:43:47 +01:00

41 lines
1.1 KiB
Plaintext

# boost's headers must be present.
AX_BOOST_BASE([1.34.0])
# boost::filesystem must be present.
AX_BOOST_FILESYSTEM()
if test x"$ax_cv_boost_filesystem" != "xyes"; then
AC_MSG_ERROR(The Boost Filesystem library was not found.)
fi
# boost::system must be present if boost::filesystem needs it.
AX_BOOST_FILESYSTEM_DEPENDENCIES()
if test x"$ax_cv_boost_dependencies_system" = "xyes"; then
AX_BOOST_SYSTEM()
if test x"$ax_cv_boost_system" != "xyes"; then
AC_MSG_ERROR(The Boost System library was not found.)
fi
fi
# boost::regex must be present.
AX_BOOST_REGEX()
if test x"$ax_cv_boost_regex" != "xyes"; then
AC_MSG_ERROR(The Boost regex library was not found.)
fi
# boost::foreach can be missing; the included version will be used in
# that case.
boost_foreach_dir=lib/boost/foreach
AX_BOOST_FOREACH($boost_foreach_dir)
if test x"$ax_cv_boost_foreach" = "xno"; then
AC_MSG_ERROR([The Boost foreach library was not found, and the included version does not work. Install Boost v1.34.0 or later.])
fi
if test x"$ax_cv_boost_foreach" = "xincluded"; then
EXTRA_CFLAGS="$EXTRA_CFLAGS -I$boost_foreach_dir"
fi