/[inetutils]/inetutils/configure.ac
ViewVC logotype

Diff of /inetutils/configure.ac

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.23 by ams, Sat Jan 22 14:58:26 2005 UTC revision 1.24 by ams, Mon Jun 20 08:19:22 2005 UTC
# Line 69  IU_ENABLE_SERVER(uucpd) Line 69  IU_ENABLE_SERVER(uucpd)
69    
70  IU_ENABLE_CLIENT(ftp)  IU_ENABLE_CLIENT(ftp)
71  IU_ENABLE_CLIENT(ping)  IU_ENABLE_CLIENT(ping)
72    IU_ENABLE_CLIENT(ping6)
73  IU_ENABLE_CLIENT(rcp)  IU_ENABLE_CLIENT(rcp)
74  IU_ENABLE_CLIENT(rlogin)  IU_ENABLE_CLIENT(rlogin)
75  IU_ENABLE_CLIENT(rsh)  IU_ENABLE_CLIENT(rsh)
# Line 251  if test ".$LIBAUTH" != .; then Line 252  if test ".$LIBAUTH" != .; then
252                     [Define to one if you want encryption.])                     [Define to one if you want encryption.])
253  fi  fi
254    
255    dnl Checks for IPv6 support.
256    
257    AC_ARG_ENABLE(ipv6,
258      AS_HELP_STRING([--disable-ipv6], [disable IPv6 support]),
259      [case "${enable_ipv6}" in
260      no)
261        AC_MSG_NOTICE([Disabling IPv6 at user request])
262        ipv6=no
263        ;;
264      *)
265        ipv6=yes
266        ;;
267      esac],
268      [ipv6=auto]
269    )
270    
271    working_ipv6=yes
272    if test ! "X$ipv6" = "Xno" -a "X$working_ipv6" = "Xyes"; then
273      IU_CHECK_MACRO(AF_INET6, [#include <sys/socket.h>], , , working_ipv6=no)
274    fi
275    
276    if test ! "X$ipv6" = "Xno" -a "X$working_ipv6" = "Xyes"; then
277      IU_CHECK_MACRO(IPV6_V6ONLY, [#include <netinet/in.h>], , , working_ipv6=no)
278    fi
279    
280    if test ! "X$ipv6" = "Xno" -a "X$working_ipv6" = "Xyes"; then
281      AC_CHECK_TYPE(struct sockaddr_storage, , working_ipv6=no, [#include <sys/socket.h>])
282    fi
283    
284    if test ! "X$ipv6" = "Xno" -a "X$working_ipv6" = "Xyes"; then
285      AC_CHECK_TYPE(struct sockaddr_in6, , working_ipv6=no, [#include <netinet/in.h>])
286    fi
287    
288    if test ! "X$ipv6" = "Xno" -a "X$working_ipv6" = "Xyes"; then
289      AC_CHECK_TYPE(struct addrinfo, , working_ipv6=no, [#include <netdb.h>])
290    fi
291    
292    if test ! "X$ipv6" = "Xno" -a "X$working_ipv6" = "Xyes"; then
293      AC_CHECK_FUNC(getaddrinfo, ,working_ipv6=no, [#include <netdb.h>])
294    fi
295    
296    if test ! "X$ipv6" = "Xno" -a "X$working_ipv6" = "Xyes"; then
297      AC_CHECK_FUNC(getnameinfo, ,working_ipv6=no, [#include <netdb.h>])
298    fi
299    
300    if test ! "X$ipv6" = "Xno" -a "X$working_ipv6" = "Xyes"; then
301      AC_DEFINE(IPV6, 1, [Define to one if you want IPv6.])
302    else
303      if test "X$ipv6" = "Xyes"; then
304        AC_MSG_FAILURE([IPv6 support not available])
305      else
306        if test "X$ipv6" = "Xauto"; then
307          AC_MSG_WARN([IPv6 support not available, disabling IPv6])
308        fi
309      fi
310    fi
311    
312    if test "X$ipv6" = "Xno" -o "X$working_ipv6" = "Xno";then
313      ping6_BUILD=''
314    else
315      working_icmp6=yes
316    
317      AC_CHECK_HEADER(netinet/icmp6.h, , working_icmp6=no)
318    
319      if test "X$working_icmp6" = "Xyes"; then
320        AC_CHECK_HEADER(netinet/ip6.h, , working_icmp6=no)
321      fi
322    
323      if test "X$working_icmp6" = "Xyes"; then
324        AC_CHECK_TYPE(struct icmp6_filter, , working_icmp6=no, [#include <netinet/icmp6.h>])
325      fi
326    
327      if test "X$working_icmp6" = "Xyes"; then
328        AC_CHECK_TYPE(struct icmp6_hdr, , working_icmp6=no, [#include <netinet/icmp6.h>])
329      fi
330    
331      if test "X$working_icmp6" = "Xyes"; then
332        IU_CHECK_MACRO(IPV6_RECVHOPLIMIT, [#include <netinet/in.h>], ,
333                       [have_recvhoplimt=yes], [have_recvhoplimt=no])
334        if test "X$have_recvhoplimt" = "Xno"; then
335          IU_CHECK_MACRO(IPV6_HOPLIMIT, [#include <netinet/in.h>], , [
336            AC_DEFINE(IPV6_RECVHOPLIMIT, IPV6_HOPLIMIT,
337                      [Define to IPV6_HOPLIMIT if not available])
338          ], [working_icmp6=no])
339        fi
340      fi
341    
342      if test "X$working_icmp6" = "Xyes"; then
343        IU_CHECK_MACRO(ICMP6_DST_UNREACH_BEYONDSCOPE, [#include <netinet/icmp6.h>], ,
344                       [have_beyondscope=yes], [have_beyondscope=no])
345        if test "X$have_beyondscope" = "Xno"; then
346          IU_CHECK_MACRO(ICMP6_DST_UNREACH_NOTNEIGHBOR, [#include <netinet/icmp6.h>], , [
347            AC_DEFINE(ICMP6_DST_UNREACH_BEYONDSCOPE, ICMP6_DST_UNREACH_NOTNEIGHBOR,
348                      [Define to ICMP6_DST_UNREACH_NOTNEIGHBOR if not available])
349          ], [working_icmp6=no])
350        fi
351      fi
352    
353      if test "X$working_icmp6" = "Xno"; then
354        AC_MSG_WARN([ICMPv6 support not available, disabling ping6])
355        ping6_BUILD=''
356      fi
357    fi
358    
359    
360  dnl Check if they want support for Wrap.  Certain daemons like  dnl Check if they want support for Wrap.  Certain daemons like
361  dnl ftpd have support for it.  dnl ftpd have support for it.
362    

Legend:
Removed from v.1.23  
changed lines
  Added in v.1.24

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26