You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by jo...@apache.org on 2002/11/14 17:43:56 UTC
cvs commit: apr configure.in
jorton 2002/11/14 08:43:56
Modified: . configure.in
Log:
Cleanup: use AC_CACHE_CHECK and AC_DEFINE in check for netinet/tcp.h.
Revision Changes Path
1.497 +8 -8 apr/configure.in
Index: configure.in
===================================================================
RCS file: /home/cvs/apr/configure.in,v
retrieving revision 1.496
retrieving revision 1.497
diff -u -r1.496 -r1.497
--- configure.in 5 Nov 2002 16:01:51 -0000 1.496
+++ configure.in 14 Nov 2002 16:43:56 -0000 1.497
@@ -953,18 +953,18 @@
# IRIX 6.5 has a problem in <netinet/tcp.h> which prevents it from
# being included by itself. Check for <netinet/tcp.h> manually,
# including another header file first.
-AC_MSG_CHECKING(for netinet/tcp.h)
-AC_TRY_CPP([
-#ifdef HAVE_NETINET_IN_H
+AC_CACHE_CHECK([for netinet/tcp.h], [apr_cv_hdr_netinet_tcp_h],
+[AC_TRY_CPP(
+[#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif
#include <netinet/tcp.h>
-], netinet_tcph="1", netinet_tcph="0")
-if test $netinet_tcph = 1; then
- AC_MSG_RESULT(yes)
- echo "#define HAVE_NETINET_TCP_H 1" >> confdefs.h
+], [apr_cv_hdr_netinet_tcp_h=yes], [apr_cv_hdr_netinet_tcp_h=no])])
+if test "$apr_cv_hdr_netinet_tcp_h" = "yes"; then
+ netinet_tcph=1
+ AC_DEFINE([HAVE_NETINET_TCP_H], 1, [Defined if netinet/tcp.h is present])
else
- AC_MSG_RESULT(no)
+ netinet_tcph=0
fi
AC_SUBST(arpa_ineth)