Debian Codegraph @

m4/netinet_in_h.m4

raw
1 # netinet_in_h.m4
2 # serial 6
3 dnl Copyright (C) 2006-2024 Free Software Foundation, Inc.
4 dnl This file is free software; the Free Software Foundation
5 dnl gives unlimited permission to copy and/or distribute it,
6 dnl with or without modifications, as long as this notice is preserved.
7 dnl This file is offered as-is, without any warranty.
8
9 AC_DEFUN([gl_HEADER_NETINET_IN],
10 [
11 AC_CACHE_CHECK([whether <netinet/in.h> is self-contained],
12 [gl_cv_header_netinet_in_h_selfcontained],
13 [
14 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <netinet/in.h>]], [[]])],
15 [gl_cv_header_netinet_in_h_selfcontained=yes],
16 [gl_cv_header_netinet_in_h_selfcontained=no])
17 ])
18 if test $gl_cv_header_netinet_in_h_selfcontained = yes; then
19 GL_GENERATE_NETINET_IN_H=false
20 else
21 GL_GENERATE_NETINET_IN_H=true
22 AC_CHECK_HEADERS([netinet/in.h])
23 gl_CHECK_NEXT_HEADERS([netinet/in.h])
24 if test $ac_cv_header_netinet_in_h = yes; then
25 HAVE_NETINET_IN_H=1
26 else
27 HAVE_NETINET_IN_H=0
28 fi
29 AC_SUBST([HAVE_NETINET_IN_H])
30 fi
31 ])