~stewart/pandora-build/tbb

« back to all changes in this revision

Viewing changes to m4/pandora_have_libboost_filesystem.m4

  • Committer: Monty Taylor
  • Date: 2011-03-26 17:07:34 UTC
  • Revision ID: mordred@inaugust.com-20110326170734-wq52n1fgj3mo0je6
Add PANDORA_MSG_ERROR for configurable erroring conditions.

Show diffs side-by-side

added added

removed removed

Lines of Context:
11
11
  dnl --------------------------------------------------------------------
12
12
 
13
13
  AC_LANG_PUSH(C++)
 
14
  AC_DEFINE([BOOST_FILESYSTEM_DEPRECATED], [1],
 
15
            [Use the v2 interface until we can stop using old versions])
 
16
 
14
17
  AC_LIB_HAVE_LINKFLAGS(boost_filesystem-mt,boost_system-mt,[
15
18
    #include <boost/filesystem.hpp>
16
19
  ],[
28
31
  AM_CONDITIONAL(HAVE_BOOST_FILESYSTEM,
29
32
    [test "x${ac_cv_libboost_filesystem}" = "xyes" -o "x${ac_cv_libboost_filesystem_mt}" = "xyes"])
30
33
  BOOST_LIBS="${BOOST_LIBS} ${LTLIBBOOST_FILESYSTEM_MT} ${LTLIBBOOST_FILESYSTEM}"
31
 
  AC_DEFINE([BOOST_FILESYSTEM_DEPRECATED], [1],
32
 
            [Use the v2 interface until we can stop using old versions])
33
34
  AC_SUBST(BOOST_LIBS) 
34
35
])
35
36
 
42
43
  PANDORA_REQUIRE_BOOST($1)
43
44
  _PANDORA_SEARCH_BOOST_FILESYSTEM($1)
44
45
  AS_IF([test "x${ac_cv_libboost_filesystem}" = "xno" -a "x${ac_cv_libboost_filesystem_mt}" = "xno"],
45
 
      AC_MSG_ERROR([Boost.Filesystem is required for ${PACKAGE}]))
 
46
      PANDORA_MSG_ERROR([Boost.Filesystem is required for ${PACKAGE}]))
46
47
])
47
48