2 AM_INIT_AUTOMAKE(liece, 1.4.3)
12 AC_CHECK_HEADERS(sys/select.h libgen.h socks.h netinet6/in6.h)
14 AC_CHECK_LIB(nsl, gethostbyname)
15 AC_CHECK_LIB(socket, socket)
17 AC_CHECK_FUNCS(strtoul memmove basename getaddrinfo)
19 AC_CHECK_TYPE(fd_set, int)
21 dnl checking if the system supports ipv6 address space or not
22 AC_CACHE_CHECK([for struct in6_addr], ac_cv_struct_in6_addr,
23 [AC_TRY_COMPILE([#include <sys/types.h>
24 #include <sys/socket.h>
25 #include <netinet/in.h>
26 #include <netinet6/in6.h>], [struct in6_addr v6; v6.s6_addr32[3];],
27 ac_cv_struct_in6_addr=yes, ac_cv_struct_in6_addr=no)])
28 test "x$ac_cv_struct_in6_addr" = "xyes" && AC_DEFINE(HAVE_IN6_ADDR)
30 dnl checking if the system supports tcp over ipv6 support or not
31 AC_CACHE_CHECK([for struct sockaddr_in6], ac_cv_struct_sockaddr_in6,
32 [AC_TRY_COMPILE([#include <sys/types.h>
33 #include <sys/socket.h>
34 #include <netinet/in.h>
35 #include <netinet6/in6.h>], [struct sockaddr_in6 v6; v6.sin6_addr;],
36 ac_cv_struct_sockaddr_in6=yes, ac_cv_struct_sockaddr_in6=no)])
37 test "x$ac_cv_struct_sockaddr_in6" = "xyes" && AC_DEFINE(HAVE_SOCKADDR_IN6)
39 # Check compile with IPv6 support
40 AC_MSG_CHECKING(whether we compile with IPv6)
42 [ --enable-ipv6 compile with IPv6 [default=no]],, \
44 test "x$enable_ipv6" = "xyes" && AC_DEFINE(INET6)
45 AC_MSG_RESULT($enable_ipv6)
47 # Check whether to retrieve APEL/FLIM distribution.
48 AC_MSG_CHECKING(whether we retrieve APEL/FLIM distribution via CVS)
50 [ --enable-tm retrieve APEL/FLIM distribution via CVS [default=no]],, \
52 if test "x$enable_tm" = "xyes"; then
57 AM_CONDITIONAL(USE_TM, test x$enable_tm = xyes)