You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

274 lines
7.9 KiB

12 years ago
11 years ago
5 years ago
12 years ago
12 years ago
12 years ago
Asciidoc man page rework (#699) * Add 'tunnel_address' support for json config parser And allow ss-tunnel to use the newly introduced parser. Signed-off-by: Adam Anonymous <anonymous_temp_user@yahoo.co.jp> * Add "mode" support for jconf Now jconf supports "mode" setting, allowed values are "tcp_only", "tcp_and_udp" and "udp_only". Signed-off-by: Adam Anonymous <anonymous_temp_mail@yahoo.co.jp> * Use jconf "mode" for server/local/tunnel/manager Signed-off-by: Adam Anonymous <anonymous_temp_mail@yahoo.co.jp> * Add per-project vimrc to gitignore As the coding style differs from kernel and other projects, so such project vimrc should be helpful. Signed-off-by: Adam Anonymous <anonymous_temp_mail@yahoo.co.jp> * Doc: Introduce asciidoc based documentation framework Use asciidoc for new documentation framework, which could not only output man pages, but also htmls. And asciidoc documentation is much more human-readable than roff man pages. Signed-off-by: Adam Anonymous <anonymous_temp_mail@yahoo.co.jp> * Doc: Convert shadowsocks-libev man page to asciidoc The port to asciidoc has some format change compared to old one. The most obvious one is the options listed in SYNOPSIS. Now the options list is not split into 2/3 columns, or we must use asciidoc tables and introduce table frames. Other small change includes the removal of AUTHOR sector, as it's not an expendable method to update AUTHOR sector every time it gets updated. Signed-off-by: Adam Anonymous <anonymous_temp_mail@yahoo.co.jp> * Doc: Convert ss-local man page to asciidoc Also modify gitignore, since it use too generic rules to ignore such documentation. Signed-off-by: Adam Anonymous <anonymous_temp_mail@yahoo.co.jp> * Doc: Convert ss-manager man page to asciidoc Signed-off-by: Adam Anonymous <anonymous_temp_mail@yahoo.co.jp> * Doc: Convert ss-nat man page to asciidoc Signed-off-by: Adam Anonymous <anonymous_temp_mail@yahoo.co.jp> * Doc: Convert ss-redir man page to asciidoc Signed-off-by: Adam Anonymous <anonymous_temp_mail@yahoo.co.jp> * Doc: Convert ss-server man page to asciidoc Signed-off-by: Adam Anonymous <anonymous_temp_mail@yahoo.co.jp> * Doc: Convert ss-tunnel man page to asciidoc Signed-off-by: Adam Anonymous <anonymous_temp_mail@yahoo.co.jp> * Doc: Remove old roff man pages Welcome to the new age of asciidoc. Signed-off-by: Adam Anonymous <anonymous_temp_mail@yahoo.co.jp> * Doc: Add equivalent tables for command line options and config file Now user can get a more clear view of config file and command line options. Signed-off-by: Adam Anonymous <anonymous_temp_mail@yahoo.co.jp>
8 years ago
Asciidoc man page rework (#699) * Add 'tunnel_address' support for json config parser And allow ss-tunnel to use the newly introduced parser. Signed-off-by: Adam Anonymous <anonymous_temp_user@yahoo.co.jp> * Add "mode" support for jconf Now jconf supports "mode" setting, allowed values are "tcp_only", "tcp_and_udp" and "udp_only". Signed-off-by: Adam Anonymous <anonymous_temp_mail@yahoo.co.jp> * Use jconf "mode" for server/local/tunnel/manager Signed-off-by: Adam Anonymous <anonymous_temp_mail@yahoo.co.jp> * Add per-project vimrc to gitignore As the coding style differs from kernel and other projects, so such project vimrc should be helpful. Signed-off-by: Adam Anonymous <anonymous_temp_mail@yahoo.co.jp> * Doc: Introduce asciidoc based documentation framework Use asciidoc for new documentation framework, which could not only output man pages, but also htmls. And asciidoc documentation is much more human-readable than roff man pages. Signed-off-by: Adam Anonymous <anonymous_temp_mail@yahoo.co.jp> * Doc: Convert shadowsocks-libev man page to asciidoc The port to asciidoc has some format change compared to old one. The most obvious one is the options listed in SYNOPSIS. Now the options list is not split into 2/3 columns, or we must use asciidoc tables and introduce table frames. Other small change includes the removal of AUTHOR sector, as it's not an expendable method to update AUTHOR sector every time it gets updated. Signed-off-by: Adam Anonymous <anonymous_temp_mail@yahoo.co.jp> * Doc: Convert ss-local man page to asciidoc Also modify gitignore, since it use too generic rules to ignore such documentation. Signed-off-by: Adam Anonymous <anonymous_temp_mail@yahoo.co.jp> * Doc: Convert ss-manager man page to asciidoc Signed-off-by: Adam Anonymous <anonymous_temp_mail@yahoo.co.jp> * Doc: Convert ss-nat man page to asciidoc Signed-off-by: Adam Anonymous <anonymous_temp_mail@yahoo.co.jp> * Doc: Convert ss-redir man page to asciidoc Signed-off-by: Adam Anonymous <anonymous_temp_mail@yahoo.co.jp> * Doc: Convert ss-server man page to asciidoc Signed-off-by: Adam Anonymous <anonymous_temp_mail@yahoo.co.jp> * Doc: Convert ss-tunnel man page to asciidoc Signed-off-by: Adam Anonymous <anonymous_temp_mail@yahoo.co.jp> * Doc: Remove old roff man pages Welcome to the new age of asciidoc. Signed-off-by: Adam Anonymous <anonymous_temp_mail@yahoo.co.jp> * Doc: Add equivalent tables for command line options and config file Now user can get a more clear view of config file and command line options. Signed-off-by: Adam Anonymous <anonymous_temp_mail@yahoo.co.jp>
8 years ago
Asciidoc man page rework (#699) * Add 'tunnel_address' support for json config parser And allow ss-tunnel to use the newly introduced parser. Signed-off-by: Adam Anonymous <anonymous_temp_user@yahoo.co.jp> * Add "mode" support for jconf Now jconf supports "mode" setting, allowed values are "tcp_only", "tcp_and_udp" and "udp_only". Signed-off-by: Adam Anonymous <anonymous_temp_mail@yahoo.co.jp> * Use jconf "mode" for server/local/tunnel/manager Signed-off-by: Adam Anonymous <anonymous_temp_mail@yahoo.co.jp> * Add per-project vimrc to gitignore As the coding style differs from kernel and other projects, so such project vimrc should be helpful. Signed-off-by: Adam Anonymous <anonymous_temp_mail@yahoo.co.jp> * Doc: Introduce asciidoc based documentation framework Use asciidoc for new documentation framework, which could not only output man pages, but also htmls. And asciidoc documentation is much more human-readable than roff man pages. Signed-off-by: Adam Anonymous <anonymous_temp_mail@yahoo.co.jp> * Doc: Convert shadowsocks-libev man page to asciidoc The port to asciidoc has some format change compared to old one. The most obvious one is the options listed in SYNOPSIS. Now the options list is not split into 2/3 columns, or we must use asciidoc tables and introduce table frames. Other small change includes the removal of AUTHOR sector, as it's not an expendable method to update AUTHOR sector every time it gets updated. Signed-off-by: Adam Anonymous <anonymous_temp_mail@yahoo.co.jp> * Doc: Convert ss-local man page to asciidoc Also modify gitignore, since it use too generic rules to ignore such documentation. Signed-off-by: Adam Anonymous <anonymous_temp_mail@yahoo.co.jp> * Doc: Convert ss-manager man page to asciidoc Signed-off-by: Adam Anonymous <anonymous_temp_mail@yahoo.co.jp> * Doc: Convert ss-nat man page to asciidoc Signed-off-by: Adam Anonymous <anonymous_temp_mail@yahoo.co.jp> * Doc: Convert ss-redir man page to asciidoc Signed-off-by: Adam Anonymous <anonymous_temp_mail@yahoo.co.jp> * Doc: Convert ss-server man page to asciidoc Signed-off-by: Adam Anonymous <anonymous_temp_mail@yahoo.co.jp> * Doc: Convert ss-tunnel man page to asciidoc Signed-off-by: Adam Anonymous <anonymous_temp_mail@yahoo.co.jp> * Doc: Remove old roff man pages Welcome to the new age of asciidoc. Signed-off-by: Adam Anonymous <anonymous_temp_mail@yahoo.co.jp> * Doc: Add equivalent tables for command line options and config file Now user can get a more clear view of config file and command line options. Signed-off-by: Adam Anonymous <anonymous_temp_mail@yahoo.co.jp>
8 years ago
Asciidoc man page rework (#699) * Add 'tunnel_address' support for json config parser And allow ss-tunnel to use the newly introduced parser. Signed-off-by: Adam Anonymous <anonymous_temp_user@yahoo.co.jp> * Add "mode" support for jconf Now jconf supports "mode" setting, allowed values are "tcp_only", "tcp_and_udp" and "udp_only". Signed-off-by: Adam Anonymous <anonymous_temp_mail@yahoo.co.jp> * Use jconf "mode" for server/local/tunnel/manager Signed-off-by: Adam Anonymous <anonymous_temp_mail@yahoo.co.jp> * Add per-project vimrc to gitignore As the coding style differs from kernel and other projects, so such project vimrc should be helpful. Signed-off-by: Adam Anonymous <anonymous_temp_mail@yahoo.co.jp> * Doc: Introduce asciidoc based documentation framework Use asciidoc for new documentation framework, which could not only output man pages, but also htmls. And asciidoc documentation is much more human-readable than roff man pages. Signed-off-by: Adam Anonymous <anonymous_temp_mail@yahoo.co.jp> * Doc: Convert shadowsocks-libev man page to asciidoc The port to asciidoc has some format change compared to old one. The most obvious one is the options listed in SYNOPSIS. Now the options list is not split into 2/3 columns, or we must use asciidoc tables and introduce table frames. Other small change includes the removal of AUTHOR sector, as it's not an expendable method to update AUTHOR sector every time it gets updated. Signed-off-by: Adam Anonymous <anonymous_temp_mail@yahoo.co.jp> * Doc: Convert ss-local man page to asciidoc Also modify gitignore, since it use too generic rules to ignore such documentation. Signed-off-by: Adam Anonymous <anonymous_temp_mail@yahoo.co.jp> * Doc: Convert ss-manager man page to asciidoc Signed-off-by: Adam Anonymous <anonymous_temp_mail@yahoo.co.jp> * Doc: Convert ss-nat man page to asciidoc Signed-off-by: Adam Anonymous <anonymous_temp_mail@yahoo.co.jp> * Doc: Convert ss-redir man page to asciidoc Signed-off-by: Adam Anonymous <anonymous_temp_mail@yahoo.co.jp> * Doc: Convert ss-server man page to asciidoc Signed-off-by: Adam Anonymous <anonymous_temp_mail@yahoo.co.jp> * Doc: Convert ss-tunnel man page to asciidoc Signed-off-by: Adam Anonymous <anonymous_temp_mail@yahoo.co.jp> * Doc: Remove old roff man pages Welcome to the new age of asciidoc. Signed-off-by: Adam Anonymous <anonymous_temp_mail@yahoo.co.jp> * Doc: Add equivalent tables for command line options and config file Now user can get a more clear view of config file and command line options. Signed-off-by: Adam Anonymous <anonymous_temp_mail@yahoo.co.jp>
8 years ago
Asciidoc man page rework (#699) * Add 'tunnel_address' support for json config parser And allow ss-tunnel to use the newly introduced parser. Signed-off-by: Adam Anonymous <anonymous_temp_user@yahoo.co.jp> * Add "mode" support for jconf Now jconf supports "mode" setting, allowed values are "tcp_only", "tcp_and_udp" and "udp_only". Signed-off-by: Adam Anonymous <anonymous_temp_mail@yahoo.co.jp> * Use jconf "mode" for server/local/tunnel/manager Signed-off-by: Adam Anonymous <anonymous_temp_mail@yahoo.co.jp> * Add per-project vimrc to gitignore As the coding style differs from kernel and other projects, so such project vimrc should be helpful. Signed-off-by: Adam Anonymous <anonymous_temp_mail@yahoo.co.jp> * Doc: Introduce asciidoc based documentation framework Use asciidoc for new documentation framework, which could not only output man pages, but also htmls. And asciidoc documentation is much more human-readable than roff man pages. Signed-off-by: Adam Anonymous <anonymous_temp_mail@yahoo.co.jp> * Doc: Convert shadowsocks-libev man page to asciidoc The port to asciidoc has some format change compared to old one. The most obvious one is the options listed in SYNOPSIS. Now the options list is not split into 2/3 columns, or we must use asciidoc tables and introduce table frames. Other small change includes the removal of AUTHOR sector, as it's not an expendable method to update AUTHOR sector every time it gets updated. Signed-off-by: Adam Anonymous <anonymous_temp_mail@yahoo.co.jp> * Doc: Convert ss-local man page to asciidoc Also modify gitignore, since it use too generic rules to ignore such documentation. Signed-off-by: Adam Anonymous <anonymous_temp_mail@yahoo.co.jp> * Doc: Convert ss-manager man page to asciidoc Signed-off-by: Adam Anonymous <anonymous_temp_mail@yahoo.co.jp> * Doc: Convert ss-nat man page to asciidoc Signed-off-by: Adam Anonymous <anonymous_temp_mail@yahoo.co.jp> * Doc: Convert ss-redir man page to asciidoc Signed-off-by: Adam Anonymous <anonymous_temp_mail@yahoo.co.jp> * Doc: Convert ss-server man page to asciidoc Signed-off-by: Adam Anonymous <anonymous_temp_mail@yahoo.co.jp> * Doc: Convert ss-tunnel man page to asciidoc Signed-off-by: Adam Anonymous <anonymous_temp_mail@yahoo.co.jp> * Doc: Remove old roff man pages Welcome to the new age of asciidoc. Signed-off-by: Adam Anonymous <anonymous_temp_mail@yahoo.co.jp> * Doc: Add equivalent tables for command line options and config file Now user can get a more clear view of config file and command line options. Signed-off-by: Adam Anonymous <anonymous_temp_mail@yahoo.co.jp>
8 years ago
12 years ago
11 years ago
11 years ago
12 years ago
7 years ago
11 years ago
11 years ago
11 years ago
8 years ago
12 years ago
8 years ago
8 years ago
8 years ago
11 years ago
12 years ago
7 years ago
11 years ago
7 years ago
7 years ago
7 years ago
7 years ago
12 years ago
  1. dnl -*- Autoconf -*-
  2. dnl Process this file with autoconf to produce a configure script.
  3. AC_PREREQ([2.67])
  4. AC_INIT([shadowsocks-libev], [3.2.5], [max.c.lv@gmail.com])
  5. AC_CONFIG_SRCDIR([src/crypto.c])
  6. AC_CONFIG_HEADERS([config.h])
  7. AC_CONFIG_AUX_DIR(auto)
  8. AC_CONFIG_MACRO_DIR([m4])
  9. AC_USE_SYSTEM_EXTENSIONS
  10. AM_INIT_AUTOMAKE([subdir-objects foreign -Wno-gnu -Werror])
  11. m4_ifdef([AM_PROG_AR], [AM_PROG_AR])
  12. m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
  13. AM_MAINTAINER_MODE
  14. AM_DEP_TRACK
  15. dnl Checks for lib
  16. AC_DISABLE_STATIC
  17. AC_DISABLE_SHARED
  18. LT_INIT([dlopen])
  19. dnl Check for pcre library
  20. TS_CHECK_PCRE
  21. if test "x${enable_pcre}" != "xyes"; then
  22. AC_MSG_ERROR([Cannot find pcre library. Configure --with-pcre=DIR])
  23. fi
  24. dnl Checks for using shared libraries from system
  25. AC_ARG_ENABLE(
  26. [system-shared-lib],
  27. AS_HELP_STRING([--enable-system-shared-lib], [build against shared libraries when possible]),
  28. [
  29. case "${enableval}" in
  30. yes) enable_system_shared_lib=true ;;
  31. no) enable_system_shared_lib=false ;;
  32. *) AC_MSG_ERROR([bad value ${enableval} for --enable-system-shared-lib]) ;;
  33. esac], [enable_system_shared_lib=false])
  34. AM_CONDITIONAL([USE_SYSTEM_SHARED_LIB], [test x$enable_system_shared_lib = xtrue])
  35. AC_ARG_ENABLE([documentation],
  36. AS_HELP_STRING([--disable-documentation], [do not build documentation]),
  37. [disable_documentation=true],
  38. [disable_documentation=false])
  39. AM_CONDITIONAL([ENABLE_DOCUMENTATION], [test x$disable_documentation = xfalse])
  40. AM_COND_IF([ENABLE_DOCUMENTATION], [
  41. AC_PATH_PROG([ASCIIDOC], [asciidoc])
  42. test x"${ASCIIDOC}" != x || AC_MSG_ERROR([Cannot find `asciidoc` in PATH.])
  43. AC_PATH_PROG([XMLTO], [xmlto])
  44. test x"$XMLTO" != x || AC_MSG_ERROR([Cannot find `xmlto` in PATH.])
  45. AC_PATH_PROG([GZIP], [gzip], [gzip])
  46. AC_PATH_PROG([MV], [mv], [mv])
  47. AC_PROG_SED
  48. ])
  49. dnl Checks for programs.
  50. AC_PROG_CC
  51. AM_PROG_CC_C_O
  52. AC_PROG_INSTALL
  53. AC_PROG_LN_S
  54. AC_PROG_MAKE_SET
  55. AC_LANG_SOURCE
  56. dnl Add library for mingw
  57. case $host in
  58. *-mingw*)
  59. CFLAGS="$CFLAGS -mno-ms-bitfields"
  60. LIBS="$LIBS -lws2_32"
  61. ;;
  62. *-cygwin*)
  63. CFLAGS="$CFLAGS -mno-ms-bitfields"
  64. ;;
  65. *)
  66. ;;
  67. esac
  68. dnl Checks for TLS
  69. AX_TLS([:], [:])
  70. dnl Checks for crypto libraries
  71. ss_MBEDTLS
  72. ss_SODIUM
  73. ss_CARES
  74. dnl Checks for inet_ntop
  75. ss_FUNC_INET_NTOP
  76. dnl Checks for host.
  77. AC_MSG_CHECKING(for what kind of host)
  78. case $host in
  79. *-linux*)
  80. os_support=linux
  81. AC_MSG_RESULT(Linux)
  82. ;;
  83. *-mingw*)
  84. os_support=mingw
  85. AC_MSG_RESULT(MinGW)
  86. ;;
  87. *)
  88. AC_MSG_RESULT(transparent proxy does not support for $host)
  89. ;;
  90. esac
  91. dnl Checks for pthread
  92. AX_PTHREAD([LIBS="$PTHREAD_LIBS $LIBS"
  93. CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
  94. CC="$PTHREAD_CC"], AC_MSG_ERROR(Can not find pthreads. This is required.))
  95. dnl Checks for stack protector
  96. GGL_CHECK_STACK_PROTECTOR([has_stack_protector=yes], [has_stack_protector=no])
  97. # XXX - disable -fstack-protector due to missing libssp_nonshared
  98. case "$host_os" in
  99. *aix*)
  100. AC_MSG_NOTICE([-fstack-protector disabled on AIX])
  101. has_stack_protector=no
  102. ;;
  103. *sunos*)
  104. AC_MSG_NOTICE([-fstack-protector disabled on SunOS])
  105. has_stack_protector=no
  106. ;;
  107. *solaris*)
  108. AC_MSG_NOTICE([-fstack-protector disabled on Solaris])
  109. has_stack_protector=no
  110. ;;
  111. esac
  112. AC_ARG_ENABLE(ssp,
  113. [AS_HELP_STRING(--disable-ssp,Do not compile with -fstack-protector)],
  114. [
  115. enable_ssp="no"
  116. ],
  117. [
  118. enable_ssp="yes"
  119. ])
  120. if test x$has_stack_protector = xyes && test x$enable_ssp = xyes; then
  121. CFLAGS="$CFLAGS -fstack-protector"
  122. AC_MSG_NOTICE([-fstack-protector enabled in CFLAGS])
  123. fi
  124. AM_CONDITIONAL(BUILD_REDIRECTOR, test "$os_support" = "linux")
  125. AM_CONDITIONAL(BUILD_WINCOMPAT, test "$os_support" = "mingw")
  126. dnl Checks for header files.
  127. AC_CHECK_HEADERS([limits.h stdint.h inttypes.h arpa/inet.h fcntl.h langinfo.h locale.h linux/tcp.h netinet/tcp.h netdb.h netinet/in.h stdlib.h string.h strings.h unistd.h sys/ioctl.h linux/random.h])
  128. dnl A special check required for <net/if.h> on Darwin. See
  129. dnl http://www.gnu.org/software/autoconf/manual/html_node/Header-Portability.html.
  130. AC_CHECK_HEADERS([sys/socket.h])
  131. AC_CHECK_HEADERS([net/if.h], [], [],
  132. [
  133. #include <stdio.h>
  134. #ifdef STDC_HEADERS
  135. # include <stdlib.h>
  136. # include <stddef.h>
  137. #else
  138. # ifdef HAVE_STDLIB_H
  139. # include <stdlib.h>
  140. # endif
  141. #endif
  142. #ifdef HAVE_SYS_SOCKET_H
  143. # include <sys/socket.h>
  144. #endif
  145. ])
  146. case $host in
  147. *-mingw*)
  148. AC_DEFINE([CONNECT_IN_PROGRESS], [WSAEWOULDBLOCK], [errno for incomplete non-blocking connect(2)])
  149. AC_CHECK_HEADERS([winsock2.h ws2tcpip.h mswsock.h], [], [AC_MSG_ERROR([Missing MinGW headers])], [])
  150. ;;
  151. *-linux*)
  152. AC_DEFINE([CONNECT_IN_PROGRESS], [EINPROGRESS], [errno for incomplete non-blocking connect(2)])
  153. dnl Checks for netfilter headers
  154. AC_CHECK_HEADERS([linux/if.h linux/netfilter_ipv4.h linux/netfilter_ipv6/ip6_tables.h],
  155. [], [AC_MSG_ERROR([Missing netfilter headers])],
  156. [[
  157. #if HAVE_LIMITS_H
  158. #include <limits.h>
  159. #endif
  160. /* Netfilter ip(6)tables v1.4.0 has broken headers */
  161. #if HAVE_NETINET_IN_H
  162. #include <netinet/in.h>
  163. #endif
  164. #if HAVE_LINUX_IF_H
  165. #include <linux/if.h>
  166. #endif
  167. #if HAVE_SYS_SOCKET_H
  168. #include <sys/socket.h>
  169. #endif
  170. ]])
  171. ;;
  172. *)
  173. # These are POSIX-like systems using BSD-like sockets API.
  174. AC_DEFINE([CONNECT_IN_PROGRESS], [EINPROGRESS], [errno for incomplete non-blocking connect(2)])
  175. ;;
  176. esac
  177. AC_C_BIGENDIAN
  178. dnl Checks for typedefs, structures, and compiler characteristics.
  179. AC_C_INLINE
  180. AC_TYPE_SSIZE_T
  181. dnl Checks for header files.
  182. AC_HEADER_ASSERT
  183. AC_HEADER_STDC
  184. AC_HEADER_SYS_WAIT
  185. dnl Checks for typedefs, structures, and compiler characteristics.
  186. AC_C_CONST
  187. AC_TYPE_PID_T
  188. AC_TYPE_SIZE_T
  189. AC_TYPE_SSIZE_T
  190. AC_TYPE_UINT16_T
  191. AC_TYPE_UINT8_T
  192. AC_HEADER_TIME
  193. dnl Checks for library functions.
  194. AC_FUNC_FORK
  195. AC_FUNC_SELECT_ARGTYPES
  196. AC_TYPE_SIGNAL
  197. AC_CHECK_FUNCS([memset select setresuid setreuid strerror get_current_dir_name getpwnam_r setrlimit])
  198. AC_CHECK_LIB(socket, connect)
  199. dnl Checks for library functions.
  200. AC_CHECK_FUNCS([malloc memset posix_memalign socket])
  201. AC_ARG_WITH(ev,
  202. AS_HELP_STRING([--with-ev=DIR], [use a specific libev library]),
  203. [CFLAGS="$CFLAGS -I$withval/include"
  204. CPPFLAGS="$CPPFLAGS -I$withval/include"
  205. LDFLAGS="$LDFLAGS -L$withval/lib"]
  206. )
  207. AC_CHECK_HEADERS([ev.h libev/ev.h], [], [])
  208. AC_CHECK_LIB([ev], [ev_loop_destroy], [LIBS="-lev $LIBS"], [AC_MSG_ERROR([Couldn't find libev. Try installing libev-dev@<:@el@:>@.])])
  209. AC_CONFIG_FILES([shadowsocks-libev.pc
  210. Makefile
  211. doc/Makefile
  212. src/Makefile])
  213. AM_COND_IF([USE_SYSTEM_SHARED_LIB],
  214. [AC_DEFINE([USE_SYSTEM_SHARED_LIB], [1], [Define if use system shared lib.])],
  215. [AC_CONFIG_FILES([libbloom/Makefile libcork/Makefile libipset/Makefile])])
  216. AC_ARG_ENABLE(connmarktos,
  217. [AS_HELP_STRING(--enable-connmarktos, Enable saved connmark to IP TOS QoS feature)],
  218. [ enable_connmarktos="$enableval" ])
  219. if test x"$enable_connmarktos" = "xyes" ; then
  220. AC_MSG_NOTICE([Linux Netfilter Conntrack support requested by --enable-connmarktos: ${enable_connmarktos}])
  221. if test "x$enable_connmarktos" != "xno"; then
  222. AC_SEARCH_LIBS([nfct_query], [netfilter_conntrack],,[
  223. if test x"$enable_connmarktos" = "xyes"; then
  224. AC_MSG_ERROR([--enable-connmarktos specified but libnetfilter-conntrack library not found])
  225. fi
  226. with_netfilter_conntrack=no], [-lnfnetlink])
  227. AC_CHECK_HEADERS([libnetfilter_conntrack/libnetfilter_conntrack.h \
  228. libnetfilter_conntrack/libnetfilter_conntrack_tcp.h],,[
  229. if test x"$enable_connmarktos" = "xyes"; then
  230. AC_MSG_ERROR([--enable-connmarktos specified but libnetfilter-conntrack headers not found])
  231. fi
  232. with_netfilter_conntrack=no])
  233. # If nothing is broken; enable the libraries usage.
  234. if test "x$with_netfilter_conntrack" != "xno"; then
  235. with_netfilter_conntrack=yes
  236. AC_DEFINE(USE_NFCONNTRACK_TOS, 1, [Enable support for QOS netfilter mark preservation])
  237. fi
  238. fi
  239. fi
  240. AC_OUTPUT