configure.ac 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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([rt], [main])
  12. AC_CHECK_HEADERS([memory.h stdint.h stdlib.h string.h sys/time.h unistd.h])
  13. # Checks for typedefs, structures, and compiler characteristics.
  14. AC_CHECK_HEADER_STDBOOL
  15. AC_C_INLINE
  16. AC_TYPE_INT32_T
  17. AC_TYPE_INT64_T
  18. AC_TYPE_SIZE_T
  19. AC_TYPE_UINT32_T
  20. AC_TYPE_UINT64_T
  21. AC_TYPE_UINT8_T
  22. # Checks for library functions.
  23. AC_FUNC_ALLOCA
  24. AC_CHECK_FUNCS([clock_gettime gettimeofday localtime_r strerror])
  25. # Checks for libraries.
  26. # Checks for header files.
  27. # Checks for typedefs, structures, and compiler characteristics.
  28. AC_CHECK_HEADER_STDBOOL
  29. AC_C_INLINE
  30. AC_TYPE_SIZE_T
  31. # Checks for library functions.
  32. AC_FUNC_ALLOCA
  33. AC_FUNC_ERROR_AT_LINE
  34. AC_FUNC_MALLOC
  35. AC_CHECK_FUNCS([getcwd gettimeofday localtime_r memset])
  36. AC_CONFIG_FILES([Makefile])
  37. AC_OUTPUT