Ticket #35140: patch-configure.in.2.diff
File patch-configure.in.2.diff, 2.6 KB (added by raphael-st (Raphael Straub), 12 years ago) |
---|
-
configure.in
old new 140 140 no_gpu_reason=", because it was disabled" 141 141 fi 142 142 143 AX_PTHREAD 144 143 145 # Memory allocation debug support 144 146 AC_MSG_CHECKING([if malloc debugging is wanted]) 145 147 AC_ARG_WITH(dmalloc, … … 149 151 AC_MSG_RESULT(yes) 150 152 AC_DEFINE(WITH_DMALLOC, 1, 151 153 [Define if using the dmalloc debugging malloc package]) 152 if test x$a cx_pthread_ok = xyes; then154 if test x$ax_pthread_ok = xyes; then 153 155 LIBS="$LIBS -ldmallocthcxx" 154 156 enable_dmalloc="yes (thread aware)" 155 157 else … … 214 216 [AC_MSG_NOTICE([forcing use of Boost "filesystem" library]) 215 217 AC_DEFINE(HAVE_BOOST_FILESYSTEM, 1, 216 218 [Define if you have boost/filesystem.hpp]) 217 EXTRA_LIBS="-lboost_filesystem ${EXTRA_LIBS}"],219 EXTRA_LIBS="-lboost_filesystem -lboost_system ${EXTRA_LIBS}"], 218 220 [AC_CHECK_HEADER(boost/filesystem.hpp, 219 221 [], 220 222 AC_MSG_NOTICE([Boost "filesystem" header is missing.])) 221 223 if test x$ac_cv_header_boost_filesystem_hpp = xyes; then 222 224 found_boost_filesystem_lib=no 223 225 candidates="-lboost_filesystem" 224 if test x$a cx_pthread_ok = xyes; then226 if test x$ax_pthread_ok = xyes; then 225 227 candidates="-lboost_filesystem-mt $candidates" 226 228 fi 227 229 if test "x$with_boost_filesystem" != xCHECK \ … … 231 233 fi 232 234 LIBS_ORIG=$LIBS 233 235 for x in $candidates; do 234 LIBS="$LIBS_ORIG $x" 236 y=`echo $x | sed s/boost_filesystem/boost_system/g` 237 LIBS="$LIBS_ORIG $x $y" 235 238 AC_LINK_IFELSE([AC_LANG_PROGRAM([[ 236 239 #include <string> 237 240 #include "boost/filesystem.hpp" 238 241 ]], 239 242 [[ 240 boost::filesystem:: basic_path<std::string, boost::filesystem::path_traits>p("foo/bar/baz.oo");243 boost::filesystem::path p("foo/bar/baz.oo"); 241 244 p.branch_path().string(); 242 245 p.leaf(); 243 246 basename(p); 244 247 extension(p); 245 248 ]] 246 249 )], 247 [EXTRA_LIBS="$x $ {EXTRA_LIBS}"250 [EXTRA_LIBS="$x $y ${EXTRA_LIBS}" 248 251 found_boost_filesystem_lib=yes 249 252 AC_MSG_NOTICE([compiling with Boost's generic filename parsing support.]) 250 253 break])