configure.in 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. # -*- Autoconf -*-
  2. # Process this file with autoconf to produce a configure script.
  3. #
  4. AC_PREREQ(2.59)
  5. AC_INIT(aria2c, 0.2.1-dev, tujikawa@rednoah.com)
  6. AM_INIT_AUTOMAKE()
  7. AM_PATH_CPPUNIT(1.10.2)
  8. AC_CONFIG_SRCDIR([src/Socket.h])
  9. AC_CONFIG_HEADERS([config.h])
  10. AC_PROG_RANLIB
  11. # Checks for arguments.
  12. AC_ARG_ENABLE([ssl], [ --enable-ssl enalbe SSL support if libssl is installed. Default: yes], [enable_ssl=$enableval], [enable_ssl=yes])
  13. # Checks for programs.
  14. AC_PROG_CXX
  15. AC_PROG_CC
  16. AC_CHECK_TOOL(AR, [ar], [:], $PATH:/usr/ccs/bin)
  17. # Checks for libraries.
  18. if test "x$enable_ssl" = "xyes"; then
  19. AC_CHECK_LIB([ssl], [SSL_library_init])
  20. fi
  21. # Checks for header files.
  22. AC_HEADER_STDC
  23. AC_CHECK_HEADERS([arpa/inet.h fcntl.h netdb.h netinet/in.h string.h sys/socket.h sys/time.h unistd.h limits.h])
  24. # Checks for typedefs, structures, and compiler characteristics.
  25. AC_HEADER_STDBOOL
  26. AC_C_CONST
  27. AC_TYPE_SIZE_T
  28. AC_HEADER_TIME
  29. # Checks for library functions.
  30. AC_FUNC_ERROR_AT_LINE
  31. AC_FUNC_SELECT_ARGTYPES
  32. AC_FUNC_STAT
  33. AC_FUNC_VPRINTF
  34. AC_CHECK_FUNCS([getpagesize gettimeofday inet_ntoa memset mkdir rmdir select socket strcasecmp strerror strstr strtol])
  35. AC_CONFIG_FILES([Makefile src/Makefile test/Makefile])
  36. AC_OUTPUT