configure.ac 764 B

1234567891011121314151617181920212223242526
  1. AC_INIT([libenet], [1.3.12])
  2. AC_CONFIG_SRCDIR([include/enet/enet.h])
  3. AM_INIT_AUTOMAKE([foreign])
  4. AC_CONFIG_MACRO_DIR([m4])
  5. AC_PROG_CC
  6. AC_PROG_LIBTOOL
  7. AC_CHECK_FUNC(gethostbyaddr_r, [AC_DEFINE(HAS_GETHOSTBYADDR_R)])
  8. AC_CHECK_FUNC(gethostbyname_r, [AC_DEFINE(HAS_GETHOSTBYNAME_R)])
  9. AC_CHECK_FUNC(poll, [AC_DEFINE(HAS_POLL)])
  10. AC_CHECK_FUNC(fcntl, [AC_DEFINE(HAS_FCNTL)])
  11. AC_CHECK_FUNC(inet_pton, [AC_DEFINE(HAS_INET_PTON)])
  12. AC_CHECK_FUNC(inet_ntop, [AC_DEFINE(HAS_INET_NTOP)])
  13. AC_CHECK_MEMBER(struct msghdr.msg_flags, [AC_DEFINE(HAS_MSGHDR_FLAGS)], , [#include <sys/socket.h>])
  14. AC_CHECK_TYPE(socklen_t, [AC_DEFINE(HAS_SOCKLEN_T)], ,
  15. #include <sys/types.h>
  16. #include <sys/socket.h>
  17. )
  18. AC_CONFIG_FILES([Makefile
  19. libenet.pc])
  20. AC_OUTPUT