configure.ac 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525
  1. # -*- Autoconf -*-
  2. # Process this file with autoconf to produce a configure script.
  3. #
  4. AC_PREREQ([2.67])
  5. AC_INIT([aria2],[1.10.9],[t-tujikawa@users.sourceforge.net],[aria2],[http://aria2.sourceforge.net/])
  6. AC_CANONICAL_HOST
  7. AC_CANONICAL_TARGET
  8. AM_INIT_AUTOMAKE()
  9. AM_PATH_CPPUNIT(1.10.2)
  10. AC_CONFIG_SRCDIR([src/a2io.h])
  11. AC_CONFIG_HEADERS([config.h])
  12. case "$target" in
  13. *mingw*|*cygwin*)
  14. LIBS="-lws2_32 -lcrypto -lwsock32 -lgdi32 -lwinmm $LIBS"
  15. ;;
  16. esac
  17. AC_DEFINE_UNQUOTED([TARGET], ["$target"], [Define target-type])
  18. # Checks for arguments.
  19. ARIA2_ARG_WITH([gnutls])
  20. ARIA2_ARG_WITH([openssl])
  21. ARIA2_ARG_WITH([sqlite3])
  22. ARIA2_ARG_WITH([libxml2])
  23. ARIA2_ARG_WITH([libexpat])
  24. ARIA2_ARG_WITH([libcares])
  25. ARIA2_ARG_WITH([libz])
  26. ARIA2_ARG_ENABLE([bittorrent])
  27. ARIA2_ARG_ENABLE([metalink])
  28. ARIA2_ARG_ENABLE([epoll])
  29. AC_ARG_WITH([ca-bundle],
  30. AS_HELP_STRING([--with-ca-bundle=FILE],[Use FILE as default CA bundle.]),
  31. [ca_bundle=$withval], [ca_bundle=""])
  32. # Checks for programs.
  33. AC_PROG_CXX
  34. AC_PROG_CC
  35. AC_PROG_INSTALL
  36. AC_PROG_MKDIR_P
  37. AC_PROG_RANLIB
  38. AC_PROG_YACC
  39. AC_CHECK_TOOL([AR], [ar], [:])
  40. if test "x$AR" = "x:"; then
  41. AC_MSG_FAILURE([ar is not found in the system.])
  42. fi
  43. AC_SUBST([AR])
  44. AC_PATH_PROG([A2X], [a2x])
  45. AC_SUBST([A2X])
  46. AM_CONDITIONAL([HAVE_A2X], [ test "x$A2X" != "x" ])
  47. AC_PATH_PROG([ASCIIDOC], [asciidoc])
  48. AC_SUBST([ASCIIDOC])
  49. AM_CONDITIONAL([HAVE_ASCIIDOC], [ test "x$ASCIIDOC" != "x" ])
  50. # Setting language choice
  51. AC_LANG([C++])
  52. # Enable system extensions
  53. AC_USE_SYSTEM_EXTENSIONS
  54. # Check pkg-config is available
  55. PKG_PROG_PKG_CONFIG([0.20])
  56. # Checks for libraries.
  57. if test "x$with_libxml2" = "xyes"; then
  58. AM_PATH_XML2([2.6.24], [have_libxml2=yes])
  59. if test "x$have_libxml2" = "xyes"; then
  60. AC_DEFINE([HAVE_LIBXML2], [1], [Define to 1 if you have libxml2.])
  61. LIBS="$XML_LIBS $LIBS"
  62. CPPFLAGS="$XML_CPPFLAGS $CPPFLAGS"
  63. elif test "x$with_libxml2_requested" = "xyes"; then
  64. ARIA2_DEP_NOT_MET([libxml2])
  65. fi
  66. fi
  67. if test "x$with_libexpat" = "xyes" && test "x$have_libxml2" != "xyes"; then
  68. AM_PATH_LIBEXPAT
  69. if test "x$have_libexpat" = "xyes"; then
  70. LIBS="$LIBEXPAT_LIBS $LIBS"
  71. CPPFLAGS="$LIBEXPAT_CPPFLAGS $CPPFLAGS"
  72. elif test "x$with_libexpat_requested" = "xyes"; then
  73. ARIA2_DEP_NOT_MET([libexpat])
  74. fi
  75. fi
  76. if test "x$with_sqlite3" = "xyes"; then
  77. AM_PATH_SQLITE3
  78. if test "x$have_sqlite3" = "xyes"; then
  79. LIBS="$SQLITE3_LIBS $LIBS"
  80. CPPFLAGS="$SQLITE3_CFLAGS $CPPFLAGS"
  81. elif test "x$with_sqlite3_requested" = "xyes"; then
  82. ARIA2_DEP_NOT_MET([sqlite3])
  83. fi
  84. fi
  85. if test "x$with_gnutls" = "xyes"; then
  86. # gnutls >= 2.8 doesn't have libgnutls-config anymore.
  87. PKG_CHECK_MODULES([LIBGNUTLS], [gnutls >= 1.2.9],
  88. [have_libgnutls=yes], [have_libgnutls=no])
  89. if test "x$have_libgnutls" = "xyes"; then
  90. AC_DEFINE([HAVE_LIBGNUTLS], [1], [Define to 1 if you have libgnutls.])
  91. LIBS="$LIBGNUTLS_LIBS $LIBS"
  92. CPPFLAGS="$LIBGNUTLS_CFLAGS $CPPFLAGS"
  93. elif test "x$with_gnutls_requested" = "xyes"; then
  94. ARIA2_DEP_NOT_MET([gnutls])
  95. fi
  96. fi
  97. if test "x$have_libgnutls" = "xyes"; then
  98. AM_PATH_LIBGCRYPT([1.2.2], [have_libgcrypt=yes])
  99. if test "x$have_libgcrypt" = "xyes"; then
  100. AC_DEFINE([HAVE_LIBGCRYPT], [1], [Define to 1 if you have libgcrypt.])
  101. LIBS="$LIBGCRYPT_LIBS $LIBS"
  102. CPPFLAGS="$LIBGCRYPT_CFLAGS $CPPFLAGS"
  103. fi
  104. fi
  105. if test "x$with_openssl" = "xyes" && test "x$have_libgnutls" != "xyes"; then
  106. AM_PATH_OPENSSL
  107. if test "x$have_openssl" = "xyes"; then
  108. LIBS="$OPENSSL_LIBS $LIBS"
  109. CPPFLAGS="$OPENSSL_CFLAGS $CPPFLAGS"
  110. elif test "x$with_openssl_requested" = "xyes"; then
  111. ARIA2_DEP_NOT_MET([openssl])
  112. fi
  113. fi
  114. if test "x$with_libcares" = "xyes"; then
  115. AM_PATH_LIBCARES
  116. if test "x$have_libcares" = "xyes"; then
  117. LIBS="$LIBCARES_LIBS $LIBS"
  118. CPPFLAGS="$LIBCARES_CPPFLAGS $CPPFLAGS"
  119. elif test "x$with_libcares_requested" = "xyes"; then
  120. ARIA2_DEP_NOT_MET([libcares])
  121. fi
  122. fi
  123. # Check availability of libz
  124. if test "x$with_libz" = "xyes"; then
  125. AM_PATH_LIBZ
  126. if test "x$have_libz" = "xyes"; then
  127. LIBS="$LIBZ_LIBS $LIBS"
  128. CPPFLAGS="$LIBZ_CPPFLAGS $CPPFLAGS"
  129. elif test "x$with_libz_requested" = "xyes"; then
  130. ARIA2_DEP_NOT_MET([libz])
  131. fi
  132. fi
  133. # Define variables based on the result of the checks for libraries.
  134. if test "x$have_libgnutls" = "xyes" || test "x$have_openssl" = "xyes"; then
  135. AC_DEFINE([ENABLE_SSL], [1], [Define to 1 if ssl support is enabled.])
  136. AM_CONDITIONAL([ENABLE_SSL], true)
  137. AC_SUBST([ca_bundle])
  138. else
  139. AM_CONDITIONAL([ENABLE_SSL], false)
  140. fi
  141. AM_CONDITIONAL([HAVE_LIBGNUTLS], [ test "x$have_libgnutls" = "xyes" ])
  142. AM_CONDITIONAL([HAVE_LIBSSL], [ test "x$have_openssl" = "xyes" ])
  143. if test "x$have_libgcrypt" = "xyes" || test "x$have_openssl" = "xyes"; then
  144. AC_DEFINE([ENABLE_MESSAGE_DIGEST], [1],
  145. [Define to 1 if message digest support is enabled.])
  146. AM_CONDITIONAL([ENABLE_MESSAGE_DIGEST], true)
  147. enable_message_digest=yes
  148. else
  149. AM_CONDITIONAL([ENABLE_MESSAGE_DIGEST], false)
  150. fi
  151. if test "x$enable_bittorrent" = "xyes" &&
  152. test "x$enable_message_digest" = "xyes"; then
  153. AC_DEFINE([ENABLE_BITTORRENT], [1],
  154. [Define to 1 if BitTorrent support is enabled.])
  155. AM_CONDITIONAL([ENABLE_BITTORRENT], true)
  156. else
  157. if test "x$enable_bittorrent_requested" = "xyes"; then
  158. ARIA2_FET_NOT_SUPPORTED([bittorrent])
  159. fi
  160. enable_bittorrent=no
  161. AM_CONDITIONAL([ENABLE_BITTORRENT], false)
  162. fi
  163. if (test "x$have_libxml2" = "xyes" || test "x$have_libexpat" = "xyes") &&
  164. test "x$enable_metalink" = "xyes"; then
  165. AC_DEFINE([ENABLE_METALINK], [1],
  166. [Define to 1 if Metalink support is enabled.])
  167. AM_CONDITIONAL([ENABLE_METALINK], true)
  168. else
  169. if test "x$enable_metalink_requested" = "xyes"; then
  170. ARIA2_FET_NOT_SUPPORTED([metalink])
  171. fi
  172. enable_metalink=no
  173. AM_CONDITIONAL([ENABLE_METALINK], false)
  174. fi
  175. AM_CONDITIONAL([ENABLE_METALINK_LIBXML2],
  176. [test "x$enable_metalink" = "xyes" && test "x$have_libxml2" = "xyes"])
  177. AM_CONDITIONAL([ENABLE_METALINK_LIBEXPAT],
  178. [test "x$enable_metalink" = "xyes" && test "x$have_libexpat" = "xyes"])
  179. if test "x$have_libxml2" = "xyes" || test "x$have_libexpat" = "xyes"; then
  180. enable_xml_rpc=yes
  181. fi
  182. if test "x$enable_xml_rpc" = "xyes"; then
  183. AC_DEFINE([ENABLE_XML_RPC], [1],
  184. [Define to 1 if XML-RPC support is enabled.])
  185. fi
  186. AM_CONDITIONAL([ENABLE_XML_RPC], [test "x$enable_xml_rpc" = "xyes"])
  187. AM_CONDITIONAL([HAVE_LIBXML2], [test "x$have_libxml2" = "xyes"])
  188. AM_CONDITIONAL([HAVE_LIBEXPAT], [test "x$have_libexpat" = "xyes"])
  189. if test "x$have_libcares" = "xyes"; then
  190. AC_DEFINE([ENABLE_ASYNC_DNS], [1],
  191. [Define to 1 if asynchronous DNS support is enabled.])
  192. AM_CONDITIONAL([ENABLE_ASYNC_DNS], true)
  193. else
  194. AM_CONDITIONAL([ENABLE_ASYNC_DNS], false)
  195. fi
  196. # Set conditional for libz
  197. AM_CONDITIONAL([HAVE_LIBZ], [test "x$have_libz" = "xyes"])
  198. # Set conditional for sqlite3
  199. AM_CONDITIONAL([HAVE_SQLITE3], [test "x$have_sqlite3" = "xyes"])
  200. AC_SEARCH_LIBS([clock_gettime], [rt])
  201. case "$target" in
  202. *solaris*)
  203. AC_SEARCH_LIBS([getaddrinfo], [nsl socket])
  204. AC_SEARCH_LIBS([inet_aton], [nsl socket])
  205. ;;
  206. esac
  207. # Checks for header files.
  208. AC_FUNC_ALLOCA
  209. AC_HEADER_STDC
  210. case "$target" in
  211. *mingw*)
  212. AC_CHECK_HEADERS([windows.h \
  213. winsock2.h \
  214. ws2tcpip.h \
  215. mmsystem.h], [], [],
  216. [[#ifdef HAVE_WINDOWS_H
  217. # include <windows.h>
  218. #endif
  219. ]])
  220. ;;
  221. esac
  222. AC_CHECK_HEADERS([argz.h \
  223. arpa/inet.h \
  224. fcntl.h \
  225. float.h \
  226. inttypes.h \
  227. io.h \
  228. langinfo.h \
  229. libintl.h \
  230. limits.h \
  231. locale.h \
  232. malloc.h \
  233. netdb.h \
  234. netinet/in.h \
  235. poll.h \
  236. port.h \
  237. stddef.h \
  238. stdint.h \
  239. stdio_ext.h \
  240. stdlib.h \
  241. string.h \
  242. strings.h \
  243. sys/ioctl.h \
  244. sys/param.h \
  245. sys/socket.h \
  246. sys/time.h \
  247. termios.h \
  248. unistd.h \
  249. utime.h \
  250. wchar.h \
  251. ifaddrs.h])
  252. # Checks for typedefs, structures, and compiler characteristics.
  253. AC_HEADER_STDBOOL
  254. AC_C_CONST
  255. AC_C_INLINE
  256. AC_TYPE_INT16_T
  257. AC_TYPE_INT32_T
  258. AC_TYPE_INT64_T
  259. AC_TYPE_INT8_T
  260. AC_TYPE_MODE_T
  261. AC_TYPE_OFF_T
  262. AC_TYPE_SIZE_T
  263. AC_TYPE_SSIZE_T
  264. AC_HEADER_TIME
  265. AC_STRUCT_TM
  266. AC_TYPE_UINT16_T
  267. AC_TYPE_UINT32_T
  268. AC_TYPE_UINT64_T
  269. AC_TYPE_UINT8_T
  270. AC_TYPE_PID_T
  271. AC_C_VOLATILE
  272. AC_CHECK_TYPES([ptrdiff_t, struct timespec])
  273. AC_C_BIGENDIAN
  274. AC_SYS_LARGEFILE
  275. # Checks for library functions.
  276. AM_GNU_GETTEXT
  277. AM_GNU_GETTEXT_VERSION([0.17])
  278. AC_FUNC_ERROR_AT_LINE
  279. AC_PROG_GCC_TRADITIONAL
  280. AC_FUNC_MEMCMP
  281. AC_FUNC_MKTIME
  282. AC_FUNC_MMAP
  283. AC_FUNC_SELECT_ARGTYPES
  284. AC_FUNC_STAT
  285. AC_FUNC_STRFTIME
  286. AC_FUNC_VPRINTF
  287. AC_FUNC_FORK
  288. AC_FUNC_STRTOD
  289. AC_CHECK_FUNCS([__argz_count \
  290. __argz_next \
  291. __argz_stringify \
  292. atexit \
  293. ftruncate \
  294. getcwd \
  295. gethostbyaddr \
  296. gethostbyname \
  297. getifaddrs \
  298. getpagesize \
  299. inet_ntoa \
  300. inet_ntop \
  301. memchr \
  302. memmove \
  303. mempcpy \
  304. memset \
  305. mkdir \
  306. munmap \
  307. nl_langinfo \
  308. posix_memalign \
  309. pow \
  310. putenv \
  311. rmdir \
  312. select \
  313. setlocale \
  314. sleep \
  315. socket \
  316. stpcpy \
  317. strcasecmp \
  318. strchr \
  319. strcspn \
  320. strdup \
  321. strerror \
  322. strncasecmp \
  323. strstr \
  324. strtol \
  325. strtoul \
  326. strtoull \
  327. tzset \
  328. unsetenv \
  329. usleep \
  330. utime])
  331. if test "x$enable_epoll" = "xyes"; then
  332. AC_CHECK_FUNCS([epoll_create], [have_epoll=yes])
  333. if test "x$have_epoll" = "xyes"; then
  334. AC_DEFINE([HAVE_EPOLL], [1], [Define to 1 if epoll is available.])
  335. fi
  336. fi
  337. AM_CONDITIONAL([HAVE_EPOLL], [test "x$have_epoll" = "xyes"])
  338. AC_CHECK_FUNCS([posix_fallocate],[have_posix_fallocate=yes])
  339. ARIA2_CHECK_FALLOCATE
  340. if test "x$have_posix_fallocate" = "xyes" ||
  341. test "x$have_fallocate" = "xyes"; then
  342. AC_DEFINE([HAVE_SOME_FALLOCATE], [1],
  343. [Define to 1 if *_fallocate is available.])
  344. fi
  345. AM_CONDITIONAL([HAVE_SOME_FALLOCATE],
  346. [test "x$have_posix_fallocate" = "xyes" || test "x$have_fallocate" = "xyes"])
  347. AC_CHECK_FUNCS([asctime_r],
  348. [AM_CONDITIONAL([HAVE_ASCTIME_R], true)],
  349. [AM_CONDITIONAL([HAVE_ASCTIME_R], false)])
  350. AC_CHECK_FUNCS([basename],
  351. [AM_CONDITIONAL([HAVE_BASENAME], true)],
  352. [AM_CONDITIONAL([HAVE_BASENAME], false)])
  353. AC_CHECK_FUNCS([gai_strerror],
  354. [AM_CONDITIONAL([HAVE_GAI_STRERROR], true)],
  355. [AM_CONDITIONAL([HAVE_GAI_STRERROR], false)])
  356. AC_CHECK_FUNCS([getaddrinfo],
  357. [AM_CONDITIONAL([HAVE_GETADDRINFO], true)],
  358. [AM_CONDITIONAL([HAVE_GETADDRINFO], false)])
  359. AC_CHECK_FUNCS([gettimeofday],
  360. [AM_CONDITIONAL([HAVE_GETTIMEOFDAY], true)],
  361. [AM_CONDITIONAL([HAVE_GETTIMEOFDAY], false)])
  362. AC_CHECK_FUNCS([inet_aton],
  363. [AM_CONDITIONAL([HAVE_INET_ATON], true)],
  364. [AM_CONDITIONAL([HAVE_INET_ATON], false)])
  365. AC_CHECK_FUNCS([localtime_r],
  366. [AM_CONDITIONAL([HAVE_LOCALTIME_R], true)],
  367. [AM_CONDITIONAL([HAVE_LOCALTIME_R], false)])
  368. AC_CHECK_FUNCS([strptime],
  369. [AM_CONDITIONAL([HAVE_STRPTIME], true)],
  370. [AM_CONDITIONAL([HAVE_STRPTIME], false)])
  371. AC_CHECK_FUNCS([timegm],
  372. [AM_CONDITIONAL([HAVE_TIMEGM], true)],
  373. [AM_CONDITIONAL([HAVE_TIMEGM], false)])
  374. AC_CHECK_FUNCS([daemon], [have_daemon=yes])
  375. AM_CONDITIONAL([HAVE_DAEMON], [test "x$have_daemon" = "xyes"])
  376. AC_CHECK_FUNCS([clock_gettime], [have_clock_gettime=yes])
  377. if test "x$have_clock_gettime" != "xyes"; then
  378. AC_CHECK_FUNCS([mach_absolute_time], [have_mach_absolute_time=yes])
  379. fi
  380. AM_CONDITIONAL([HAVE_MACH_ABSOLUTE_TIME],
  381. [test "x$have_mach_absolute_time" = "xyes"])
  382. AC_CHECK_FUNCS([poll], [have_poll=yes])
  383. AM_CONDITIONAL([HAVE_POLL], [test "x$have_poll" = "xyes"])
  384. case "$target" in
  385. *mingw*)
  386. dnl defined in ws2tcpip.h, but only if _WIN32_WINNT >= 0x0501
  387. AM_CONDITIONAL([HAVE_GETADDRINFO], true)
  388. dnl defined in ws2tcpip.h, but missing in C:\mingw\lib\libws2_32.a
  389. AM_CONDITIONAL([HAVE_GAI_STRERROR], false)
  390. if test "x$have_clock_gettime" != "xyes"; then
  391. AM_CONDITIONAL([HAVE_TIMEGETTIME], true)
  392. fi
  393. ;;
  394. *)
  395. AM_CONDITIONAL([HAVE_TIMEGETTIME], false)
  396. ;;
  397. esac
  398. AC_CHECK_FUNCS([port_associate], [have_port_associate=yes])
  399. AM_CONDITIONAL([HAVE_PORT_ASSOCIATE], [test "x$have_port_associate" = "xyes"])
  400. AC_CHECK_FUNCS([kqueue], [have_kqueue=yes])
  401. AM_CONDITIONAL([HAVE_KQUEUE], [test "x$have_kqueue" = "xyes"])
  402. if test "x$have_kqueue" = "xyes"; then
  403. AC_MSG_CHECKING([whether struct kevent.udata is intptr_t])
  404. AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
  405. #include <sys/types.h>
  406. #include <sys/event.h>
  407. #include <sys/time.h>
  408. ]],
  409. [[
  410. struct kevent event;
  411. event.udata = reinterpret_cast<intptr_t>(&event);
  412. ]])],
  413. [kevent_udata_intptr_t=yes], [kevent_udata_intptr_t=no])
  414. AC_MSG_RESULT([$kevent_udata_intptr_t])
  415. if test "x$kevent_udata_intptr_t" = "xyes"; then
  416. AC_DEFINE([KEVENT_UDATA_INTPTR_T], [1], [Define to 1 if struct kevent.udata is intptr_t])
  417. fi
  418. fi
  419. AC_CHECK_MEMBER([struct sockaddr_in.sin_len],
  420. [AC_DEFINE([HAVE_SOCKADDR_IN_SIN_LEN],[1],
  421. [Define to 1 if struct sockaddr_in has sin_len member.])],
  422. [],
  423. [[#include <netinet/in.h>]])
  424. # Check struct option.name is assignable from const char*. struct
  425. # option.name in opensolaris is of type char*. In Linux, it is const
  426. # char*
  427. AC_MSG_CHECKING([whether struct option.name is assignable from const char*])
  428. AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
  429. #include <unistd.h>
  430. #include <getopt.h>
  431. ]],
  432. [[
  433. const char* s = "const char";
  434. option op;
  435. op.name = s;
  436. ]])],
  437. [have_option_const_name=yes], [have_option_const_name=no])
  438. AC_MSG_RESULT([$have_option_const_name])
  439. if test "x$have_option_const_name" = "xyes"; then
  440. AC_DEFINE([HAVE_OPTION_CONST_NAME], [1], [Define 1 if struct option.name is const char*])
  441. fi
  442. AC_CONFIG_FILES([Makefile
  443. src/Makefile
  444. test/Makefile
  445. po/Makefile.in
  446. intl/Makefile
  447. lib/Makefile
  448. doc/Makefile])
  449. AC_OUTPUT
  450. echo " "
  451. echo "Build: $build"
  452. echo "Target: $target"
  453. echo "Install prefix: $prefix"
  454. echo "CXXFLAGS: $CXXFLAGS"
  455. echo "CFLAGS: $CFLAGS"
  456. echo "CPPFLAGS: $CPPFLAGS"
  457. echo "LDFLAGS: $LDFLAGS"
  458. echo "LIBS: $LIBS"
  459. echo "DEFS: $DEFS"
  460. echo "SQLite3: $have_sqlite3"
  461. echo "GnuTLS: $have_libgnutls"
  462. echo "OpenSSL: $have_openssl"
  463. echo "CA Bundle: $ca_bundle"
  464. echo "LibXML2: $have_libxml2"
  465. echo "LibExpat: $have_libexpat"
  466. echo "LibCares: $have_libcares"
  467. echo "Libz: $have_libz"
  468. echo "Epoll: $have_epoll"
  469. echo "Bittorrent: $enable_bittorrent"
  470. echo "Metalink: $enable_metalink"
  471. echo "XML-RPC: $enable_xml_rpc"