Show
Ignore:
Timestamp:
01/12/08 13:39:19 (4 years ago)
Author:
rakshasa
Message:

* Fixed a race condition in the handshake read/write code. Patch by
Josef Drexler.

* Fixed the --with-xmlrpc-c autoconf check so that you can pass an
alternative path to an xmlrpc-c-config script.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/rtorrent/scripts/checks.m4

    r987 r1027  
    292292]) 
    293293 
     294AC_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]) 
    294314 
    295315AC_DEFUN([TORRENT_WITH_FASTCGI], [ 
     
    350370 
    351371    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`" 
    355381 
    356382        AC_TRY_LINK(