Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/ipv6/src/external/enet/configure.ac @ 7381

Last change on this file since 7381 was 7328, checked in by adrfried, 14 years ago

original enet source included

File size: 961 bytes
Line 
1AC_INIT([libenet], [1.3.0])
2AC_CONFIG_SRCDIR([include/enet/enet.h])
3AM_INIT_AUTOMAKE([foreign])
4
5AC_CONFIG_MACRO_DIR([m4])
6
7AC_PROG_CC
8AC_PROG_LIBTOOL
9
10AC_CHECK_FUNC(gethostbyaddr_r, [AC_DEFINE(HAS_GETHOSTBYADDR_R)])
11AC_CHECK_FUNC(gethostbyname_r, [AC_DEFINE(HAS_GETHOSTBYNAME_R)])
12AC_CHECK_FUNC(poll, [AC_DEFINE(HAS_POLL)])
13AC_CHECK_FUNC(fcntl, [AC_DEFINE(HAS_FCNTL)])
14AC_CHECK_FUNC(inet_pton, [AC_DEFINE(HAS_INET_PTON)])
15AC_CHECK_FUNC(inet_ntop, [AC_DEFINE(HAS_INET_NTOP)])
16
17AC_CHECK_MEMBER(struct msghdr.msg_flags, [AC_DEFINE(HAS_MSGHDR_FLAGS)], , [#include <sys/socket.h>])
18
19AC_CHECK_TYPE(socklen_t, [AC_DEFINE(HAS_SOCKLEN_T)], ,
20              #include <sys/types.h>
21              #include <sys/socket.h>
22)
23
24AC_EGREP_HEADER(MSG_MAXIOVLEN, /usr/include/sys/socket.h, AC_DEFINE(ENET_BUFFER_MAXIMUM, [MSG_MAXIOVLEN]))
25AC_EGREP_HEADER(MSG_MAXIOVLEN, socket.h, AC_DEFINE(ENET_BUFFER_MAXIMUM, [MSG_MAXIOVLEN]))
26
27AC_CONFIG_FILES([Makefile
28        libenet.pc])
29AC_OUTPUT
Note: See TracBrowser for help on using the repository browser.