configure.ac 865 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. # -*- Autoconf -*-
  2. # Process this file with autoconf to produce a configure script.
  3. AC_PREREQ([2.69])
  4. AC_INIT([libthree_rates], [1.0], [zhuyunfei@zh3x.cn])
  5. AC_CONFIG_SRCDIR([common_data.cpp])
  6. AC_CONFIG_HEADERS([config.h])
  7. AM_INIT_AUTOMAKE
  8. # Checks for programs.
  9. AC_PROG_CXX
  10. AC_PROG_CC
  11. # Checks for libraries.
  12. # FIXME: Replace `main' with a function in `-lrt':
  13. AC_CHECK_LIB([rt], [main])
  14. # Checks for header files.
  15. AC_CHECK_HEADERS([float.h stdlib.h string.h sys/time.h unistd.h])
  16. # Checks for typedefs, structures, and compiler characteristics.
  17. AC_CHECK_HEADER_STDBOOL
  18. AC_C_INLINE
  19. AC_TYPE_INT32_T
  20. AC_TYPE_SIZE_T
  21. AC_TYPE_UINT32_T
  22. AC_TYPE_UINT64_T
  23. AC_TYPE_UINT8_T
  24. LT_INIT
  25. # Checks for library functions.
  26. AC_FUNC_MKTIME
  27. AC_CHECK_FUNCS([gettimeofday localtime_r memset sqrt])
  28. AC_CONFIG_FILES([Makefile])
  29. AC_OUTPUT