* 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.


git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@1027 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
rakshasa
2008-01-12 18:39:19 +00:00
parent 87e02737ce
commit 9e8b4add9d
+29 -3
View File
@@ -291,6 +291,26 @@ AC_DEFUN([TORRENT_WITH_ADDRESS_SPACE], [
])
])
AC_DEFUN([TORRENT_CHECK_TR1], [
AC_LANG_PUSH(C++)
AC_MSG_CHECKING(for TR1 support)
AC_COMPILE_IFELSE(
[[#include <tr1/unordered_map>
class Foo;
typedef std::tr1::unordered_map<Foo*, int> Bar;
]],
[
AC_MSG_RESULT(yes)
AC_DEFINE(HAVE_TR1, 1, Define to 1 if your C++ library supports the extensions from Technical Report 1)
],
[
AC_MSG_RESULT(no)
]
)
AC_LANG_POP(C++)
])
AC_DEFUN([TORRENT_WITH_FASTCGI], [
AC_ARG_WITH(fastcgi,
@@ -349,9 +369,15 @@ AC_DEFUN([TORRENT_WITH_XMLRPC_C], [
AC_MSG_RESULT(no)
else
if eval xmlrpc-c-config --version 2>/dev/null >/dev/null; then
CXXFLAGS="$CXXFLAGS `xmlrpc-c-config --cflags server-util`"
LIBS="$LIBS `xmlrpc-c-config server-util --libs`"
if test "$withval" = "yes"; then
xmlrpc_cc_prg="xmlrpc-c-config"
else
xmlrpc_cc_prg="$withval"
fi
if eval $xmlrpc_cc_prg --version 2>/dev/null >/dev/null; then
CXXFLAGS="$CXXFLAGS `$xmlrpc_cc_prg --cflags server-util`"
LIBS="$LIBS `$xmlrpc_cc_prg server-util --libs`"
AC_TRY_LINK(
[ #include <xmlrpc-c/server.h>