Changeset 1027 for trunk/rtorrent/scripts/checks.m4
- Timestamp:
- 01/12/08 13:39:19 (4 years ago)
- Files:
-
- 1 modified
-
trunk/rtorrent/scripts/checks.m4 (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/rtorrent/scripts/checks.m4
r987 r1027 292 292 ]) 293 293 294 AC_DEFUN([TORRENT_CHECK_TR1], [ 295 AC_LANG_PUSH(C++) 296 AC_MSG_CHECKING(for TR1 support) 297 298 AC_COMPILE_IFELSE( 299 [[#include <tr1/unordered_map> 300 class Foo; 301 typedef std::tr1::unordered_map<Foo*, int> Bar; 302 ]], 303 [ 304 AC_MSG_RESULT(yes) 305 AC_DEFINE(HAVE_TR1, 1, Define to 1 if your C++ library supports the extensions from Technical Report 1) 306 ], 307 [ 308 AC_MSG_RESULT(no) 309 ] 310 ) 311 312 AC_LANG_POP(C++) 313 ]) 294 314 295 315 AC_DEFUN([TORRENT_WITH_FASTCGI], [ … … 350 370 351 371 else 352 if eval xmlrpc-c-config --version 2>/dev/null >/dev/null; then 353 CXXFLAGS="$CXXFLAGS `xmlrpc-c-config --cflags server-util`" 354 LIBS="$LIBS `xmlrpc-c-config server-util --libs`" 372 if test "$withval" = "yes"; then 373 xmlrpc_cc_prg="xmlrpc-c-config" 374 else 375 xmlrpc_cc_prg="$withval" 376 fi 377 378 if eval $xmlrpc_cc_prg --version 2>/dev/null >/dev/null; then 379 CXXFLAGS="$CXXFLAGS `$xmlrpc_cc_prg --cflags server-util`" 380 LIBS="$LIBS `$xmlrpc_cc_prg server-util --libs`" 355 381 356 382 AC_TRY_LINK(
