Return-Path: Delivered-To: apache-cvs-archive@hyperreal.org Received: (qmail 11128 invoked by uid 6000); 7 Dec 1999 12:19:53 -0000 Received: (qmail 11122 invoked by uid 2016); 7 Dec 1999 12:19:52 -0000 Delivered-To: apcore-apache-1.3-cvs@apache.org Received: (qmail 11120 invoked by uid 177); 7 Dec 1999 12:19:51 -0000 Date: 7 Dec 1999 12:19:51 -0000 Message-ID: <19991207121951.11119.qmail@hyperreal.org> From: martin@hyperreal.org To: apache-1.3-cvs@apache.org Subject: cvs commit: apache-1.3/src/include ap_config.h Sender: apache-cvs-owner@apache.org Precedence: bulk Reply-To: new-httpd@apache.org martin 99/12/07 04:19:50 Modified: src Configure PORTING src/include ap_config.h Log: Autodetect the presence of the header; use it if available. This change results in fewer OS dependencies than the old (hardcoded) "#if defined() &&..." list Submitted by: Ovies Brabson Reviewed by: Martin Kraemer Revision Changes Path 1.377 +1 -1 apache-1.3/src/Configure Index: Configure =================================================================== RCS file: /export/home/cvs/apache-1.3/src/Configure,v retrieving revision 1.376 retrieving revision 1.377 diff -u -r1.376 -r1.377 --- Configure 1999/11/30 15:52:00 1.376 +++ Configure 1999/12/07 12:19:48 1.377 @@ -920,7 +920,7 @@ echo "#define AP_CONFIG_AUTO_H" >>$AP_CONFIG_AUTO_H echo " + checking for system header files" -CHECK_FOR_HEADERS="dlfcn.h dl.h bstring.h crypt.h unistd.h sys/resource.h sys/select.h sys/processor.h" +CHECK_FOR_HEADERS="dlfcn.h dl.h bstring.h crypt.h unistd.h sys/resource.h sys/select.h sys/processor.h sys/param.h" for header in $CHECK_FOR_HEADERS; do echo "" >>$AP_CONFIG_AUTO_H echo "/* check: #include <$header> */" >>$AP_CONFIG_AUTO_H 1.34 +6 -0 apache-1.3/src/PORTING Index: PORTING =================================================================== RCS file: /export/home/cvs/apache-1.3/src/PORTING,v retrieving revision 1.33 retrieving revision 1.34 diff -u -r1.33 -r1.34 --- PORTING 1998/09/17 21:13:58 1.33 +++ PORTING 1999/12/07 12:19:48 1.34 @@ -200,6 +200,12 @@ functions are available as well. This is set automatically during the Configure process and stored in the src/include/ap_config_auto.h header file. + + HAVE_SYS_PARAM_H: + Defined if the OS has the header file. This is + set automatically during the Configure process and stored in the + src/include/ap_config_auto.h header file. + -- USE_*: 1.277 +4 -4 apache-1.3/src/include/ap_config.h Index: ap_config.h =================================================================== RCS file: /export/home/cvs/apache-1.3/src/include/ap_config.h,v retrieving revision 1.276 retrieving revision 1.277 diff -u -r1.276 -r1.277 --- ap_config.h 1999/12/06 22:16:59 1.276 +++ ap_config.h 1999/12/07 12:19:50 1.277 @@ -116,10 +116,6 @@ #include "os.h" #endif -#if !defined(QNX) && !defined(MPE) && !defined(WIN32) && !defined(TPF) && !defined(NETWARE) -#include -#endif - /* Define one of these according to your system. */ #if defined(MINT) typedef int rlim_t; @@ -964,6 +960,10 @@ /* NEED_STRDUP is set on stupid systems that don't have strdup. */ #undef NEED_STRDUP #endif + +#ifdef HAVE_SYS_PARAM_H +#include +#endif /* HAVE_SYS_PARAM_H */ /* stuff marked API_EXPORT is part of the API, and intended for use * by modules