configure.ac 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. # -*- Autoconf -*-
  2. # Process this file with autoconf to produce a configure script.
  3. AC_PREREQ([2.69])
  4. AC_INIT([zlog], [1.0], [BUG-REPORT-ADDRESS])
  5. AM_INIT_AUTOMAKE([foreign -Wall])
  6. AC_CONFIG_MACRO_DIR([m4])
  7. LT_INIT
  8. # Checks for programs.
  9. AC_PROG_CXX
  10. AC_PROG_CC
  11. AC_CHECK_LIB([boost_regex], [main])
  12. AC_CHECK_LIB([rt], [main])
  13. AC_CHECK_HEADERS([memory.h stdint.h stdlib.h string.h sys/time.h unistd.h])
  14. # Checks for typedefs, structures, and compiler characteristics.
  15. AC_CHECK_HEADER_STDBOOL
  16. AC_C_INLINE
  17. AC_TYPE_INT32_T
  18. AC_TYPE_INT64_T
  19. AC_TYPE_SIZE_T
  20. AC_TYPE_UINT32_T
  21. AC_TYPE_UINT64_T
  22. AC_TYPE_UINT8_T
  23. # Checks for library functions.
  24. AC_FUNC_ALLOCA
  25. AC_CHECK_FUNCS([clock_gettime gettimeofday localtime_r strerror])
  26. # Checks for libraries.
  27. # Checks for header files.
  28. # Checks for typedefs, structures, and compiler characteristics.
  29. AC_CHECK_HEADER_STDBOOL
  30. AC_C_INLINE
  31. AC_TYPE_SIZE_T
  32. # Checks for library functions.
  33. AC_FUNC_ALLOCA
  34. AC_FUNC_ERROR_AT_LINE
  35. AC_FUNC_MALLOC
  36. AC_CHECK_FUNCS([getcwd gettimeofday localtime_r memset])
  37. AC_CONFIG_FILES([Makefile])
  38. AC_OUTPUT