configure.ac 776 B

1234567891011121314151617181920212223242526272829303132
  1. # -*- Autoconf -*-
  2. # Process this file with autoconf to produce a configure script.
  3. AC_PREREQ(2.59)
  4. AC_INIT(libmodbus, 1.9, stephane.raimbault@gmail.com)
  5. AM_INIT_AUTOMAKE(libmodbus, 1.9.0)
  6. # Checks for programs.
  7. AC_PROG_CC
  8. AC_PROG_MAKE_SET
  9. AC_PROG_LIBTOOL
  10. # Checks for header files.
  11. AC_HEADER_STDC
  12. AC_CHECK_HEADERS([arpa/inet.h fcntl.h netinet/in.h stdlib.h string.h sys/ioctl.h sys/socket.h sys/time.h termio.h termios.h unistd.h])
  13. # Checks for typedefs, structures, and compiler characteristics.
  14. AC_C_CONST
  15. AC_TYPE_SIZE_T
  16. AC_HEADER_TIME
  17. # Checks for library functions.
  18. AC_FUNC_MALLOC
  19. AC_FUNC_SELECT_ARGTYPES
  20. AC_CHECK_FUNCS([inet_ntoa memset select socket])
  21. AC_OUTPUT([
  22. Makefile
  23. modbus/Makefile
  24. tests/Makefile
  25. modbus.pc
  26. ])