From rbb@apache.org Fri Jan 5 21:22:21 2001 Return-Path: Mailing-List: contact cvs-help@apr.apache.org; run by ezmlm Delivered-To: mailing list cvs@apr.apache.org Received: (qmail 11923 invoked by uid 1092); 5 Jan 2001 21:22:21 -0000 Date: 5 Jan 2001 21:22:21 -0000 Message-ID: <20010105212221.11922.qmail@apache.org> From: rbb@apache.org To: apr-cvs@apache.org Subject: cvs commit: apr configure.in rbb 01/01/05 13:22:20 Modified: . configure.in Log: Simplify the logic for TCP cork on Linux. Basically, instead of grepping through the system header files, trying to find TCP_CORK, we just check if sendfile was found. If so, but we couldn't find TCP_CORK, we define it ourselves. This is the same logic that the C files used to use, so it should be much more stable. Submitted by: Jeff Trawick Revision Changes Path 1.204 +4 -4 apr/configure.in Index: configure.in =================================================================== RCS file: /home/cvs/apr/configure.in,v retrieving revision 1.203 retrieving revision 1.204 diff -u -r1.203 -r1.204 --- configure.in 2001/01/05 19:11:11 1.203 +++ configure.in 2001/01/05 21:22:19 1.204 @@ -799,10 +799,10 @@ else case $OS in *linux*) - AC_EGREP_HEADER(TCP_CORK, linux/socket.h, [ - apr_tcp_nopush_flag="3" - have_corkable_tcp="1" - ]) + if test "x$sendfile" = "x1"; then + apr_tcp_nopush_flag="3" + have_corkable_tcp="1" + fi ;; *) ;;