2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>

Added missing AM_CONDITIONAL
	* configure.ac
pull/1/head
Tatsuhiro Tsujikawa 2009-05-08 08:03:36 +00:00
parent b57b75f98d
commit 3e4c549c01
3 changed files with 93 additions and 20 deletions

View File

@ -1,3 +1,8 @@
2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Added missing AM_CONDITIONAL
* configure.ac
2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net> 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Added xml-rpc functionality. Currently only addURI commad is Added xml-rpc functionality. Currently only addURI commad is

94
configure vendored
View File

@ -717,10 +717,16 @@ HAVE_LIBZ_FALSE
HAVE_LIBZ_TRUE HAVE_LIBZ_TRUE
ENABLE_ASYNC_DNS_FALSE ENABLE_ASYNC_DNS_FALSE
ENABLE_ASYNC_DNS_TRUE ENABLE_ASYNC_DNS_TRUE
ENABLE_LIBEXPAT_FALSE HAVE_LIBEXPAT_FALSE
ENABLE_LIBEXPAT_TRUE HAVE_LIBEXPAT_TRUE
ENABLE_LIBXML2_FALSE HAVE_LIBXML2_FALSE
ENABLE_LIBXML2_TRUE HAVE_LIBXML2_TRUE
ENABLE_XML_RPC_FALSE
ENABLE_XML_RPC_TRUE
ENABLE_METALINK_LIBEXPAT_FALSE
ENABLE_METALINK_LIBEXPAT_TRUE
ENABLE_METALINK_LIBXML2_FALSE
ENABLE_METALINK_LIBXML2_TRUE
ENABLE_METALINK_FALSE ENABLE_METALINK_FALSE
ENABLE_METALINK_TRUE ENABLE_METALINK_TRUE
ENABLE_BITTORRENT_FALSE ENABLE_BITTORRENT_FALSE
@ -7656,19 +7662,49 @@ fi
fi fi
if test "x$enable_metalink" = "xyes" && test "x$have_libxml2" = "xyes"; then if test "x$enable_metalink" = "xyes" && test "x$have_libxml2" = "xyes"; then
ENABLE_LIBXML2_TRUE= ENABLE_METALINK_LIBXML2_TRUE=
ENABLE_LIBXML2_FALSE='#' ENABLE_METALINK_LIBXML2_FALSE='#'
else else
ENABLE_LIBXML2_TRUE='#' ENABLE_METALINK_LIBXML2_TRUE='#'
ENABLE_LIBXML2_FALSE= ENABLE_METALINK_LIBXML2_FALSE=
fi fi
if test "x$enable_metalink" = "xyes" && test "x$have_libexpat" = "xyes"; then if test "x$enable_metalink" = "xyes" && test "x$have_libexpat" = "xyes"; then
ENABLE_LIBEXPAT_TRUE= ENABLE_METALINK_LIBEXPAT_TRUE=
ENABLE_LIBEXPAT_FALSE='#' ENABLE_METALINK_LIBEXPAT_FALSE='#'
else else
ENABLE_LIBEXPAT_TRUE='#' ENABLE_METALINK_LIBEXPAT_TRUE='#'
ENABLE_LIBEXPAT_FALSE= ENABLE_METALINK_LIBEXPAT_FALSE=
fi
if test "x$have_libxml2" = "xyes" || test "x$have_libexpat" = "xyes"; then
enable_xml_rpc=yes
fi
if test "x$enable_xml_rpc" = "xyes"; then
ENABLE_XML_RPC_TRUE=
ENABLE_XML_RPC_FALSE='#'
else
ENABLE_XML_RPC_TRUE='#'
ENABLE_XML_RPC_FALSE=
fi
if test "x$have_libxml2" = "xyes"; then
HAVE_LIBXML2_TRUE=
HAVE_LIBXML2_FALSE='#'
else
HAVE_LIBXML2_TRUE='#'
HAVE_LIBXML2_FALSE=
fi
if test "x$have_libexpat" = "xyes"; then
HAVE_LIBEXPAT_TRUE=
HAVE_LIBEXPAT_FALSE='#'
else
HAVE_LIBEXPAT_TRUE='#'
HAVE_LIBEXPAT_FALSE=
fi fi
@ -23022,17 +23058,38 @@ $as_echo "$as_me: error: conditional \"ENABLE_METALINK\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;} Usually this means the macro was only invoked conditionally." >&2;}
{ (exit 1); exit 1; }; } { (exit 1); exit 1; }; }
fi fi
if test -z "${ENABLE_LIBXML2_TRUE}" && test -z "${ENABLE_LIBXML2_FALSE}"; then if test -z "${ENABLE_METALINK_LIBXML2_TRUE}" && test -z "${ENABLE_METALINK_LIBXML2_FALSE}"; then
{ { $as_echo "$as_me:$LINENO: error: conditional \"ENABLE_LIBXML2\" was never defined. { { $as_echo "$as_me:$LINENO: error: conditional \"ENABLE_METALINK_LIBXML2\" was never defined.
Usually this means the macro was only invoked conditionally." >&5 Usually this means the macro was only invoked conditionally." >&5
$as_echo "$as_me: error: conditional \"ENABLE_LIBXML2\" was never defined. $as_echo "$as_me: error: conditional \"ENABLE_METALINK_LIBXML2\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;} Usually this means the macro was only invoked conditionally." >&2;}
{ (exit 1); exit 1; }; } { (exit 1); exit 1; }; }
fi fi
if test -z "${ENABLE_LIBEXPAT_TRUE}" && test -z "${ENABLE_LIBEXPAT_FALSE}"; then if test -z "${ENABLE_METALINK_LIBEXPAT_TRUE}" && test -z "${ENABLE_METALINK_LIBEXPAT_FALSE}"; then
{ { $as_echo "$as_me:$LINENO: error: conditional \"ENABLE_LIBEXPAT\" was never defined. { { $as_echo "$as_me:$LINENO: error: conditional \"ENABLE_METALINK_LIBEXPAT\" was never defined.
Usually this means the macro was only invoked conditionally." >&5 Usually this means the macro was only invoked conditionally." >&5
$as_echo "$as_me: error: conditional \"ENABLE_LIBEXPAT\" was never defined. $as_echo "$as_me: error: conditional \"ENABLE_METALINK_LIBEXPAT\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
{ (exit 1); exit 1; }; }
fi
if test -z "${ENABLE_XML_RPC_TRUE}" && test -z "${ENABLE_XML_RPC_FALSE}"; then
{ { $as_echo "$as_me:$LINENO: error: conditional \"ENABLE_XML_RPC\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
$as_echo "$as_me: error: conditional \"ENABLE_XML_RPC\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
{ (exit 1); exit 1; }; }
fi
if test -z "${HAVE_LIBXML2_TRUE}" && test -z "${HAVE_LIBXML2_FALSE}"; then
{ { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_LIBXML2\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
$as_echo "$as_me: error: conditional \"HAVE_LIBXML2\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
{ (exit 1); exit 1; }; }
fi
if test -z "${HAVE_LIBEXPAT_TRUE}" && test -z "${HAVE_LIBEXPAT_FALSE}"; then
{ { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_LIBEXPAT\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
$as_echo "$as_me: error: conditional \"HAVE_LIBEXPAT\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;} Usually this means the macro was only invoked conditionally." >&2;}
{ (exit 1); exit 1; }; } { (exit 1); exit 1; }; }
fi fi
@ -24706,3 +24763,4 @@ echo "Libz: $have_libz"
echo "Epoll: $have_epoll" echo "Epoll: $have_epoll"
echo "Bittorrent: $enable_bittorrent" echo "Bittorrent: $enable_bittorrent"
echo "Metalink: $enable_metalink" echo "Metalink: $enable_metalink"
echo "XML-RPC: $enable_xml_rpc"

View File

@ -138,11 +138,20 @@ else
AM_CONDITIONAL([ENABLE_METALINK], false) AM_CONDITIONAL([ENABLE_METALINK], false)
fi fi
AM_CONDITIONAL([ENABLE_LIBXML2], AM_CONDITIONAL([ENABLE_METALINK_LIBXML2],
[test "x$enable_metalink" = "xyes" && test "x$have_libxml2" = "xyes"]) [test "x$enable_metalink" = "xyes" && test "x$have_libxml2" = "xyes"])
AM_CONDITIONAL([ENABLE_LIBEXPAT], AM_CONDITIONAL([ENABLE_METALINK_LIBEXPAT],
[test "x$enable_metalink" = "xyes" && test "x$have_libexpat" = "xyes"]) [test "x$enable_metalink" = "xyes" && test "x$have_libexpat" = "xyes"])
if test "x$have_libxml2" = "xyes" || test "x$have_libexpat" = "xyes"; then
enable_xml_rpc=yes
fi
AM_CONDITIONAL([ENABLE_XML_RPC], [test "x$enable_xml_rpc" = "xyes"])
AM_CONDITIONAL([HAVE_LIBXML2], [test "x$have_libxml2" = "xyes"])
AM_CONDITIONAL([HAVE_LIBEXPAT], [test "x$have_libexpat" = "xyes"])
if test "x$have_libcares" = "xyes"; then if test "x$have_libcares" = "xyes"; then
AC_DEFINE([ENABLE_ASYNC_DNS], [1], AC_DEFINE([ENABLE_ASYNC_DNS], [1],
[Define to 1 if asynchronous DNS support is enabled.]) [Define to 1 if asynchronous DNS support is enabled.])
@ -355,3 +364,4 @@ echo "Libz: $have_libz"
echo "Epoll: $have_epoll" echo "Epoll: $have_epoll"
echo "Bittorrent: $enable_bittorrent" echo "Bittorrent: $enable_bittorrent"
echo "Metalink: $enable_metalink" echo "Metalink: $enable_metalink"
echo "XML-RPC: $enable_xml_rpc"