Ticket #35140: patch-configure.in.diff
File patch-configure.in.diff, 1.6 KB (added by raphael-st (Raphael Straub), 12 years ago) |
---|
-
configure.in
old new 214 214 [AC_MSG_NOTICE([forcing use of Boost "filesystem" library]) 215 215 AC_DEFINE(HAVE_BOOST_FILESYSTEM, 1, 216 216 [Define if you have boost/filesystem.hpp]) 217 EXTRA_LIBS="-lboost_filesystem ${EXTRA_LIBS}"],217 EXTRA_LIBS="-lboost_filesystem -lboost_system ${EXTRA_LIBS}"], 218 218 [AC_CHECK_HEADER(boost/filesystem.hpp, 219 219 [], 220 220 AC_MSG_NOTICE([Boost "filesystem" header is missing.])) … … 231 231 fi 232 232 LIBS_ORIG=$LIBS 233 233 for x in $candidates; do 234 LIBS="$LIBS_ORIG $x" 234 y=`echo $x | sed s/boost_filesystem/boost_system/g` 235 LIBS="$LIBS_ORIG $x $y" 235 236 AC_LINK_IFELSE([AC_LANG_PROGRAM([[ 236 237 #include <string> 237 238 #include "boost/filesystem.hpp" 238 239 ]], 239 240 [[ 240 boost::filesystem:: basic_path<std::string, boost::filesystem::path_traits>p("foo/bar/baz.oo");241 boost::filesystem::path p("foo/bar/baz.oo"); 241 242 p.branch_path().string(); 242 243 p.leaf(); 243 244 basename(p); 244 245 extension(p); 245 246 ]] 246 247 )], 247 [EXTRA_LIBS="$x $ {EXTRA_LIBS}"248 [EXTRA_LIBS="$x $y ${EXTRA_LIBS}" 248 249 found_boost_filesystem_lib=yes 249 250 AC_MSG_NOTICE([compiling with Boost's generic filename parsing support.]) 250 251 break])