configure.ac 954 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. # -*- Autoconf -*-
  2. # Process this file with autoconf to produce a configure script.
  3. AC_PREREQ([2.69])
  4. AC_INIT([yals], [1.0], [BUG-REPORT-ADDRESS])
  5. AC_CONFIG_SRCDIR([main.cpp])
  6. AM_INIT_AUTOMAKE([foreign -Wall])
  7. AC_CONFIG_MACRO_DIR([m4])
  8. # Checks for programs.
  9. AC_PROG_CXX
  10. AC_PROG_CC
  11. AC_PROG_RANLIB
  12. AC_CHECK_LIB([ev], [main])
  13. AC_CHECK_LIB([zlog], [main])
  14. # Checks for header files.
  15. AC_CHECK_HEADERS([arpa/inet.h fcntl.h netinet/in.h stdint.h string.h sys/socket.h unistd.h])
  16. # Checks for typedefs, structures, and compiler characteristics.
  17. AC_CHECK_HEADER_STDBOOL
  18. AC_C_INLINE
  19. AC_TYPE_INT16_T
  20. AC_TYPE_INT32_T
  21. AC_TYPE_INT64_T
  22. AC_TYPE_INT8_T
  23. AC_TYPE_SIZE_T
  24. AC_TYPE_UINT16_T
  25. AC_TYPE_UINT32_T
  26. AC_TYPE_UINT64_T
  27. AC_TYPE_UINT8_T
  28. # Checks for library functions.
  29. AC_FUNC_MALLOC
  30. AC_FUNC_REALLOC
  31. AC_CHECK_FUNCS([inet_ntoa memset socket])
  32. AC_CONFIG_FILES([
  33. db/Makefile
  34. websocket/Makefile
  35. Makefile
  36. ])
  37. AC_OUTPUT