I've made the following changes, but for whatever reason
APR_HAVE_NETINET_IN_H isn't getting set.
% grep -i systm * */*
config.log:ac_cv_header_netinet_in_systm_h=yes
config.log:netinet_insystmh=''
config.log:#define HAVE_NETINET_IN_SYSTM_H 1
config.status:S["netinet_insystmh"]=""
config.status:D["HAVE_NETINET_IN_SYSTM_H"]=" 1"
configure:netinet_insystmh
configure: netinet/in_systm.h \
configure: netinet/in_systm.h \
configure:#ifdef HAVE_NETINET_IN_SYSTM_H
configure:#include<netinet/in_systm.h>
...
include/apr.h:#define APR_HAVE_NETINET_IN_SYSTM_H
...
%
These are the generated files. The modified repo files are below in the
diffs.
What did I miss here?
Not the last line has no right-hand side for the definition.
Why does netinet_insystmh not get set to 1?
Thanks.
-Philip
Index: include/apr.h.in
===================================================================
--- include/apr.h.in (revision 960404)
+++ include/apr.h.in (working copy)
@@ -82,6 +82,8 @@
#define APR_HAVE_MSWSOCK_H @mswsockh@
#define APR_HAVE_NETDB_H @netdbh@
#define APR_HAVE_NETINET_IN_H @netinet_inh@
+#define APR_HAVE_NETINET_IN_SYSTM_H @netinet_insystmh@
+#define APR_HAVE_NETINET_IP_H @netinet_iph@
#define APR_HAVE_NETINET_SCTP_H @netinet_sctph@
#define APR_HAVE_NETINET_SCTP_UIO_H @netinet_sctp_uioh@
#define APR_HAVE_NETINET_TCP_H @netinet_tcph@
Index: include/apr.hw
===================================================================
--- include/apr.hw (revision 960404)
+++ include/apr.hw (working copy)
@@ -127,8 +127,10 @@
#define APR_HAVE_MSWSOCK_H APR_NOT_IN_WCE
#define APR_HAVE_NETDB_H 0
#define APR_HAVE_NETINET_IN_H 0
+#define APR_HAVE_NETINET_IN_SYSTM_H 0
#define APR_HAVE_NETINET_SCTP_H 0
#define APR_HAVE_NETINET_SCTP_UIO_H 0
+#define APR_HAVE_NETINET_IP_H 0
#define APR_HAVE_NETINET_TCP_H 0
#define APR_HAVE_PTHREAD_H 0
#define APR_HAVE_SEMAPHORE_H 0
Index: configure.in
===================================================================
--- configure.in (revision 960404)
+++ configure.in (working copy)
@@ -1260,6 +1260,7 @@
kernel/OS.h \
net/errno.h \
netinet/in.h \
+ netinet/in_systm.h \
netinet/sctp.h \
netinet/sctp_uio.h \
sys/file.h \
@@ -1300,6 +1301,27 @@
netinet_tcph=0
fi
+# Debian has a similiar problem with <netinet/ip.h> wihich prevents it
+# from being included by itself. Check for <netinet/ip.h> manually,
+# including another header file first.
+AC_CACHE_CHECK([for netinet/ip.h], [apr_cv_hdr_netinet_ip_h],
+[AC_TRY_CPP(
+[#ifdef HAVE_NETINET_IN_H
+#include <netinet/in.h>
+#endif
+#ifdef HAVE_NETINET_IN_SYSTM_H
+#include <netinet/in_systm.h>
+#endif
+#include <netinet/ip.h>
+], [apr_cv_hdr_netinet_ip_h=yes], [apr_cv_hdr_netinet_ip_h=no])])
+cat conftest.c >> /dev/tty
+if test "$apr_cv_hdr_netinet_ip_h" = "yes"; then
+ netinet_iph=1
+ AC_DEFINE([HAVE_NETINET_IP_H], 1, [Defined if netinet/ip.h is present])
+else
+ netinet_iph=0
+fi
+
AC_SUBST(arpa_ineth)
AC_SUBST(conioh)
AC_SUBST(ctypeh)
@@ -1313,6 +1335,8 @@
AC_SUBST(mswsockh)
AC_SUBST(netdbh)
AC_SUBST(netinet_inh)
+AC_SUBST(netinet_insystmh)
+AC_SUBST(netinet_iph)
AC_SUBST(netinet_sctph)
AC_SUBST(netinet_sctp_uioh)
AC_SUBST(netinet_tcph)