Changeset 2830


Ignore:
Timestamp:
Sep 12, 2012, 5:07:56 PM (9 years ago)
Author:
Peter
Message:

add link tests with boost. closes #719

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/0.9-stable/configure.ac

    r2787 r2830  
    198198  AX_BOOST_THREAD
    199199  AX_BOOST_SYSTEM
    200 ])
    201 YAT_CPP_ADD_FLAG([CPPFLAGS], [$BOOST_CPPFLAGS])
    202 YAT_LD_ADD_FLAG([LDFLAGS], [$BOOST_LDFLAGS])
     200  YAT_CPP_ADD_FLAG([CPPFLAGS], [$BOOST_CPPFLAGS])
     201  YAT_LD_ADD_FLAG([LDFLAGS], [$BOOST_LDFLAGS])
     202  # boost tests above only test compilation, so let's try link in the libs
     203  save_LIBS=$LIBS
     204  LIBS="$LIBS $BOOST_THREAD_LIB $BOOST_SYSTEM_LIB"
     205  AC_MSG_CHECKING([for thread_specific_ptr])
     206  AC_LINK_IFELSE([AC_LANG_PROGRAM([@%:@include <boost/thread/tss.hpp>],
     207                                  [boost::thread_specific_ptr<int> x;
     208                                   x.reset(new int(1));])],
     209                 [AC_MSG_RESULT([yes])],
     210                 [AC_MSG_RESULT([no])
     211                  boost_ok=no])
     212  LIBS=$save_LIBS
     213  sleep 10
     214])
    203215
    204216# see tickets #648 #687
Note: See TracChangeset for help on using the changeset viewer.