httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r..@locus.apache.org
Subject cvs commit: apache-2.0/src/lib/apr hints.m4
Date Mon, 13 Nov 2000 04:50:35 GMT
rbb         00/11/12 20:50:35

  Modified:    src      configure.in
               src/lib/apr hints.m4
  Log:
  Get the hints file working on Linux.  This also gets SINGLE_LISTEN....
  working on linux 2.2.
  
  Revision  Changes    Path
  1.87      +2 -2      apache-2.0/src/configure.in
  
  Index: configure.in
  ===================================================================
  RCS file: /home/cvs/apache-2.0/src/configure.in,v
  retrieving revision 1.86
  retrieving revision 1.87
  diff -u -r1.86 -r1.87
  --- configure.in	2000/11/13 03:42:02	1.86
  +++ configure.in	2000/11/13 04:50:34	1.87
  @@ -185,9 +185,9 @@
   AC_DEFINE(AP_USING_AUTOCONF, 1,
   		[Using autoconf to configure Apache])
   
  -echo "FOOBAR::::  $SINGLE_LISTEN_UNSERIALIZED_ACCEPT"
   if test "$SINGLE_LISTEN_UNSERIALIZED_ACCEPT" = "1"; then
  -    AC_DEFINE(SINGLE_LISTEN_UNSERIALIZED_ACCEPT, 1, [ ])
  +    AC_DEFINE(SINGLE_LISTEN_UNSERIALIZED_ACCEPT, 1, 
  +              [This platform doesn't suffer from the thundering herd problem])
   fi
   
   dnl check for endianness
  
  
  
  1.23      +14 -7     apache-2.0/src/lib/apr/hints.m4
  
  Index: hints.m4
  ===================================================================
  RCS file: /home/cvs/apache-2.0/src/lib/apr/hints.m4,v
  retrieving revision 1.22
  retrieving revision 1.23
  diff -u -r1.22 -r1.23
  --- hints.m4	2000/11/13 03:42:03	1.22
  +++ hints.m4	2000/11/13 04:50:35	1.23
  @@ -164,17 +164,24 @@
   	APR_SETIFNULL(CFLAGS, [-DHPUX])
   	APR_SETIFNULL(LIBS, [-lm])
   	;;
  -    *-linux2)
  -        ver=`uname -r`
  -	APR_SETIFNULL(CFLAGS, [-DLINUX=2])
  -	APR_SETIFNULL(LIBS, [-lm])
  +    *-linux-*)
  +        case `uname -r` in
  +	    2.2* ) APR_SETVAR(SINGLE_LISTEN_UNSERIALIZED_ACCEPT, [1])
  +	           APR_SETIFNULL(CFLAGS, [-DLINUX=2])
  +	           APR_SETIFNULL(LIBS, [-lm])
  +	           ;;
  +	    2.0* ) APR_SETIFNULL(CFLAGS, [-DLINUX=2])
  +	           APR_SETIFNULL(LIBS, [-lm])
  +	           ;;
  +	    1.* )  APR_SETIFNULL(CFLAGS, [-DLINUX=1])
  +	           ;;
  +	    * )
  +	           ;;
  +        esac
   	;;
       *-GNU*)
   	APR_SETIFNULL(CFLAGS, [-DHURD])
   	APR_SETIFNULL(LIBS, [-lm -lcrypt])
  -	;;
  -    *-linux1)
  -	APR_SETIFNULL(CFLAGS, [-DLINUX=1])
   	;;
       *-lynx-lynxos)
   	APR_SETIFNULL(CFLAGS, [-D__NO_INCLUDE_WARN__ -DLYNXOS])
  
  
  

Mime
View raw message