78
78
AC_DEFUN([TORRENT_WITH_KQUEUE], [
79
79
AC_ARG_WITH(kqueue,
80
[ --with-kqueue enable kqueue. [[default=no]]],
80
[ --with-kqueue enable kqueue. [[default=no]]],
82
82
if test "$withval" = "yes"; then
83
83
AC_DEFINE(USE_KQUEUE, 1, Enable kqueue.)
293
AC_DEFUN([TORRENT_WITH_FASTCGI], [
295
[ --with-fastcgi=PATH Enable FastCGI RPC support. (DO NOT USE)],
297
AC_MSG_CHECKING([for FastCGI (DO NOT USE)])
299
if test "$withval" = "no"; then
302
elif test "$withval" = "yes"; then
307
[ #include <fcgiapp.h>
313
AC_MSG_RESULT(not found)
314
AC_MSG_ERROR(Could not compile FastCGI test.)
317
AC_DEFINE(HAVE_FASTCGI, 1, Support for FastCGI.)
320
CXXFLAGS="$CXXFLAGS -I$withval/include"
321
LIBS="$LIBS -lfcgi -L$withval/lib"
324
[ #include <fcgiapp.h>
330
AC_MSG_RESULT(not found)
331
AC_MSG_ERROR(Could not compile FastCGI test.)
334
AC_DEFINE(HAVE_FASTCGI, 1, Support for FastCGI.)
340
AC_DEFUN([TORRENT_WITH_XMLRPC_C], [
341
AC_MSG_CHECKING(for XMLRPC-C)
343
AC_ARG_WITH(xmlrpc-c,
344
[ --with-xmlrpc-c=PATH Enable XMLRPC-C support.],
346
if test "$withval" = "no"; then
350
if eval xmlrpc-c-config --version 2>/dev/null >/dev/null; then
351
CXXFLAGS="$CXXFLAGS `xmlrpc-c-config --cflags server-util`"
352
LIBS="$LIBS `xmlrpc-c-config server-util --libs`"
355
[ #include <xmlrpc-c/server.h>
356
],[ xmlrpc_registry_new(NULL); ],
360
AC_MSG_RESULT(failed)
361
AC_MSG_ERROR(Could not compile XMLRPC-C test.)
364
AC_DEFINE(HAVE_XMLRPC_C, 1, Support for XMLRPC-C.)
367
AC_MSG_RESULT(failed)
368
AC_MSG_ERROR(Could not compile XMLRPC-C test.)
373
AC_MSG_RESULT(ignored)