Blame gnulib/m4/netinet_in_h.m4
|
Packit Service |
a2ae7a |
# netinet_in_h.m4 serial 5
|
|
Packit Service |
a2ae7a |
dnl Copyright (C) 2006-2019 Free Software Foundation, Inc.
|
|
Packit Service |
a2ae7a |
dnl This file is free software; the Free Software Foundation
|
|
Packit Service |
a2ae7a |
dnl gives unlimited permission to copy and/or distribute it,
|
|
Packit Service |
a2ae7a |
dnl with or without modifications, as long as this notice is preserved.
|
|
Packit Service |
a2ae7a |
|
|
Packit Service |
a2ae7a |
AC_DEFUN([gl_HEADER_NETINET_IN],
|
|
Packit Service |
a2ae7a |
[
|
|
Packit Service |
a2ae7a |
AC_CACHE_CHECK([whether <netinet/in.h> is self-contained],
|
|
Packit Service |
a2ae7a |
[gl_cv_header_netinet_in_h_selfcontained],
|
|
Packit Service |
a2ae7a |
[
|
|
Packit Service |
a2ae7a |
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <netinet/in.h>]], [[]])],
|
|
Packit Service |
a2ae7a |
[gl_cv_header_netinet_in_h_selfcontained=yes],
|
|
Packit Service |
a2ae7a |
[gl_cv_header_netinet_in_h_selfcontained=no])
|
|
Packit Service |
a2ae7a |
])
|
|
Packit Service |
a2ae7a |
if test $gl_cv_header_netinet_in_h_selfcontained = yes; then
|
|
Packit Service |
a2ae7a |
NETINET_IN_H=''
|
|
Packit Service |
a2ae7a |
else
|
|
Packit Service |
a2ae7a |
NETINET_IN_H='netinet/in.h'
|
|
Packit Service |
a2ae7a |
AC_CHECK_HEADERS([netinet/in.h])
|
|
Packit Service |
a2ae7a |
gl_CHECK_NEXT_HEADERS([netinet/in.h])
|
|
Packit Service |
a2ae7a |
if test $ac_cv_header_netinet_in_h = yes; then
|
|
Packit Service |
a2ae7a |
HAVE_NETINET_IN_H=1
|
|
Packit Service |
a2ae7a |
else
|
|
Packit Service |
a2ae7a |
HAVE_NETINET_IN_H=0
|
|
Packit Service |
a2ae7a |
fi
|
|
Packit Service |
a2ae7a |
AC_SUBST([HAVE_NETINET_IN_H])
|
|
Packit Service |
a2ae7a |
fi
|
|
Packit Service |
a2ae7a |
AC_SUBST([NETINET_IN_H])
|
|
Packit Service |
a2ae7a |
AM_CONDITIONAL([GL_GENERATE_NETINET_IN_H], [test -n "$NETINET_IN_H"])
|
|
Packit Service |
a2ae7a |
])
|