Changeset 2079 for branches/0.5-stable/configure.ac
- Timestamp:
- Oct 14, 2009, 2:34:04 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/0.5-stable/configure.ac
r2042 r2079 267 267 fi 268 268 269 # some versions of boost uses long long - turn off compiler warnings 270 # with -Wno-long-long 271 yat_save_CXXFLAGS=$CXXFLAGS 272 # use -pedantic and friends in CXXFLAGS temporarily 273 CXXFLAGS="$AM_CXXFLAGS $CXXFLAGS" 274 # turn warnings into errors 275 YAT_CXX_ADD_FLAG([CXXFLAGS], [-Werror]) 276 AC_COMPILE_IFELSE([AC_LANG_PROGRAM( 277 [ 278 @%:@include <boost/iterator/transform_iterator.hpp> 279 @%:@include <cmath> 280 @%:@include <functional> 281 @%:@include <vector> 282 ],[ 283 using namespace boost; 284 typedef std::pointer_to_unary_function<double, double> F; 285 std::vector<double> vec; 286 transform_iterator<F, std::vector<double>::iterator> 287 i(vec.begin(), std::ptr_fun(fabs)); 288 ])], 289 [], 290 [YAT_CXX_ADD_FLAG([AM_CXXFLAGS], [-Wno-long-long])]) 291 # restore CXXFLAGS 292 CXXFLAGS=$yat_save_CXXFLAGS 293 269 294 AC_ARG_ENABLE([svn-support], 270 295 [AS_HELP_STRING([--enable-svn-support],
Note: See TracChangeset
for help on using the changeset viewer.