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.

69 lines
1.5 KiB

12 years ago
11 years ago
11 years ago
11 years ago
12 years ago
11 years ago
12 years ago
11 years ago
12 years ago
11 years ago
12 years ago
12 years ago
11 years ago
12 years ago
12 years ago
11 years ago
11 years ago
11 years ago
12 years ago
11 years ago
11 years ago
12 years ago
  1. # -*- Autoconf -*-
  2. # Process this file with autoconf to produce a configure script.
  3. AC_PREREQ([2.67])
  4. AC_INIT([shadowsocks], [0.9], [max.c.lv@gmail.com])
  5. AC_CONFIG_SRCDIR([src/encrypt.c])
  6. AC_CONFIG_HEADERS([config.h])
  7. AM_INIT_AUTOMAKE([foreign -Wall -Werror])
  8. # Checks for programs.
  9. AC_PROG_CC
  10. AC_PROG_INSTALL
  11. AC_PROG_LIBTOOL
  12. AC_PROG_LN_S
  13. AC_PROG_MAKE_SET
  14. m4_include([libev/libev.m4])
  15. # Checks for libraries.
  16. # AC_SEARCH_LIBS([ev_io_start], [ev], [ ], AC_MSG_ERROR([libev not found.]))
  17. # Checks for header files.
  18. AC_CHECK_HEADERS([stdint.h inttypes.h arpa/inet.h fcntl.h langinfo.h locale.h netdb.h netinet/in.h stdlib.h string.h strings.h sys/socket.h unistd.h])
  19. AC_C_BIGENDIAN
  20. # Checks for typedefs, structures, and compiler characteristics.
  21. AC_C_INLINE
  22. AC_TYPE_SSIZE_T
  23. dnl Checks for header files.
  24. AC_HEADER_ASSERT
  25. AC_HEADER_STDC
  26. AC_HEADER_SYS_WAIT
  27. dnl Checks for typedefs, structures, and compiler characteristics.
  28. AC_C_CONST
  29. AC_TYPE_PID_T
  30. AC_TYPE_SIZE_T
  31. AC_TYPE_SSIZE_T
  32. AC_TYPE_UINT16_T
  33. AC_TYPE_UINT8_T
  34. AC_HEADER_TIME
  35. dnl Checks for library functions.
  36. AC_FUNC_FORK
  37. AC_FUNC_MALLOC
  38. AC_FUNC_SELECT_ARGTYPES
  39. AC_TYPE_SIGNAL
  40. AC_CHECK_FUNCS([memset select strndup setresuid setreuid strerror])
  41. AC_SYS_LARGEFILE
  42. AC_CHECK_LIB(nsl, gethostbyname)
  43. AC_CHECK_LIB(socket, connect)
  44. # Checks for library functions.
  45. AC_CHECK_FUNCS([malloc memset socket])
  46. ACX_PTHREAD
  47. AC_CONFIG_MACRO_DIR([m4])
  48. AC_CONFIG_FILES([Makefile
  49. libasyncns/Makefile
  50. libev/Makefile
  51. src/Makefile])
  52. AC_OUTPUT