Received: (from majordom@localhost) by hyperreal.com (8.8.5/8.8.4) id IAA10031; Sat, 26 Apr 1997 08:16:13 -0700 (PDT) Received: from gate-isdn.ukweb.com (gate-isdn.ukweb.com [194.152.65.149]) by hyperreal.com (8.8.5/8.8.4) with SMTP id IAA10017 for ; Sat, 26 Apr 1997 08:16:05 -0700 (PDT) Received: from aardvark.ukweb.com [192.168.2.4] by gate-isdn.ukweb.com with smtp (Exim 1.61 #1) id 0wL9E9-0000rq-00; Sat, 26 Apr 1997 16:17:29 +0100 Date: Sat, 26 Apr 1997 16:15:58 +0100 (BST) From: Paul Sutton To: new-httpd@apache.org Subject: Re: [PATCH] properly clean up linux compilation troubles In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: new-httpd-owner@apache.org Precedence: bulk Reply-To: new-httpd@apache.org On Sat, 26 Apr 1997, Dean Gaudet wrote: > This reverts my LINUX_TWEAK patch, which I am regretting submitting. It > detects linux 1.x and 2.x systems. For 1.x systems it leaves their conf.h > defines the same as 1.2b7 and earlier. For 2.x systems it defines the > HAVE_SHMGET, and HAVE_SYS_RESOURCE_H. In both cases it leaves > USE_FCNTL_SERIALIZED_ACCEPT defined since I don't want to introduce the > multiple Listen bug into Linux. I agree in principle with this patch (and particularly getting rid of LINUX_TWEAK). However didn't PR#336 have the problem that SHMGET did not exists on Alpha hardware, although they were using a v2 kernel? Perhaps the check in the Configure script should be for i?86-*-linux2 instead? Also if 1.2 might be out there for a long time, isn't it possible there'll be a Linux 3 in the future? To make it a bit more future-proof, why not check for Linux:[2-9].* instead of just Linux:2.* Incidently, I don't seem to have any problems with SHMGET on my Linux 1.2.13 system (from a RedHat distribution). If many or most 1.2 and higher users are ok with shared memory, but Apache defaults to a file, many people will get less than optimum performance. Isn't there any other more portable way to check if a _particular_ system has shared memory (e.g. look for an include file, try and compile a program with shmget() in it and see if it fails)? I think autoconf would be very useful here. Also one little typo: Configure: > ! *-linux2) > DEF_WANTHSREGEX=yes > OS='Linux' > ! CFLAGS="$CFLAGS -DLINUX=2" > ! ;; > ! *-linux1) > ! DEF_WANTHSREGEX=yes > ! OS='Linux' > ! CFLAGS="$CFLAGS -DLINUX=1" GuessOS: > ! Linux:2.*) > ! echo "${MACHINE}-whatever-linux2"; exit 0 > ! ;; > ! > ! Linux:1.*) > echo "${MACHINE}-whatever-linux"; exit 0 > ;; ^^^^^^ linux1 //pcs