~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to m4/pandora_have_boost.m4

Merge Monty - Updates to pandora-build to support features of gcc 4.5.

Show diffs side-by-side

added added

removed removed

Lines of Context:
54
54
      ac_cv_boost=no
55
55
    ])
56
56
  ])
57
 
      
 
57
 
 
58
  AS_IF([test "x${ac_gcc_profile_mode}" = "xyes"],[
 
59
    AC_CACHE_CHECK([if boost is recent enough for GCC Profile Mode],
 
60
      [pandora_cv_boost_profile],[
 
61
      pandora_need_boost_version=104300
 
62
      AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
 
63
#include <boost/version.hpp>
 
64
 
 
65
#if BOOST_VERSION < ${pandora_need_boost_version}
 
66
# error boost too old!
 
67
#endif
 
68
          ]],[[]])
 
69
        ],[
 
70
        pandora_cv_boost_profile=yes
 
71
        ],[
 
72
        pandora_cv_boost_profile=no
 
73
        ])
 
74
    ])
 
75
    AS_IF([test "x${pandora_cv_boost_profile}" = "xyes"],[
 
76
      AC_DEFINE([BOOST_DETAIL_NO_CONTAINER_FWD],[1],[Disable forward decl of stl in boost])
 
77
    ])
 
78
  ])
58
79
 
59
80
  AM_CONDITIONAL(HAVE_BOOST, [test "x${ac_cv_boost}" = "xyes"])
60
81