configure.scan 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. # -*- Autoconf -*-
  2. # Process this file with autoconf to produce a configure script.
  3. AC_PREREQ([2.69])
  4. AC_INIT([FULL-PACKAGE-NAME], [VERSION], [BUG-REPORT-ADDRESS])
  5. AC_CONFIG_SRCDIR([ant.cpp])
  6. AC_CONFIG_HEADERS([config.h])
  7. # Checks for programs.
  8. AC_PROG_CXX
  9. AC_PROG_CC
  10. AC_PROG_CPP
  11. # Checks for libraries.
  12. # FIXME: Replace `main' with a function in `-lboost_chrono':
  13. AC_CHECK_LIB([boost_chrono], [main])
  14. # FIXME: Replace `main' with a function in `-lboost_system':
  15. AC_CHECK_LIB([boost_system], [main])
  16. # FIXME: Replace `main' with a function in `-lboost_thread':
  17. AC_CHECK_LIB([boost_thread], [main])
  18. # FIXME: Replace `main' with a function in `-lmysqlclient':
  19. AC_CHECK_LIB([mysqlclient], [main])
  20. # FIXME: Replace `main' with a function in `-lrt':
  21. AC_CHECK_LIB([rt], [main])
  22. # FIXME: Replace `main' with a function in `-lzlog':
  23. AC_CHECK_LIB([zlog], [main])
  24. # Checks for header files.
  25. AC_CHECK_HEADERS([arpa/inet.h fcntl.h float.h limits.h memory.h netinet/in.h stdint.h stdlib.h string.h sys/socket.h sys/time.h sys/timeb.h unistd.h])
  26. # Checks for typedefs, structures, and compiler characteristics.
  27. AC_CHECK_HEADER_STDBOOL
  28. AC_C_INLINE
  29. AC_TYPE_INT16_T
  30. AC_TYPE_INT32_T
  31. AC_TYPE_INT64_T
  32. AC_TYPE_INT8_T
  33. AC_TYPE_SIZE_T
  34. AC_TYPE_UINT16_T
  35. AC_TYPE_UINT32_T
  36. AC_TYPE_UINT64_T
  37. AC_TYPE_UINT8_T
  38. # Checks for library functions.
  39. AC_FUNC_MALLOC
  40. AC_FUNC_MKTIME
  41. AC_FUNC_REALLOC
  42. AC_CHECK_FUNCS([alarm atexit clock_gettime floor ftime gettimeofday inet_ntoa localtime_r memmove memset pow realpath socket sqrt strchr strstr])
  43. AC_CONFIG_FILES([Makefile])
  44. AC_OUTPUT