Return-Path: Delivered-To: apache-cvs-archive@hyperreal.org Received: (qmail 28435 invoked by uid 6000); 8 Jun 1998 17:04:05 -0000 Received: (qmail 28428 invoked by alias); 8 Jun 1998 17:04:04 -0000 Delivered-To: apache-1.3-cvs@hyperreal.org Received: (qmail 28425 invoked by uid 24); 8 Jun 1998 17:04:04 -0000 Date: 8 Jun 1998 17:04:04 -0000 Message-ID: <19980608170404.28424.qmail@hyperreal.org> From: brian@hyperreal.org To: apache-1.3-cvs@hyperreal.org Subject: cvs commit: apache-1.3/src/helpers GuessOS Sender: apache-cvs-owner@apache.org Precedence: bulk Reply-To: new-httpd@apache.org brian 98/06/08 10:04:03 Modified: src/helpers GuessOS Log: Based on private mail with Bill.Houle@SanDiegoCA.NCR.COM (Bill Houle), where he said (quoting me) On Jun 7, 11:52am, Brian Behlendorf wrote: } >I can't see why you'd ever want $MACHINE to be variable since } >all NCR boxes are generic SVR4. I don't see why you couldn't } >just move the 'library' test to the list of i486-ncr-sysv4 } >above.... } } Hmm, true. Or at least move them next to each other so it's obvious. I } don't want to break something if there's a reason they're separate like that. } } >PS: Should I be anal-retentive and point out that most systems } >these days are Pentium based rather than 486, or is 'i486' simply } >a convention with no real CPU significance? 'intel' might be a } >better (more generic) designation, and I'm sure this applies to } >non-NCR systems as well. } } I don't think it has any significance in the code - what does "uname -m" } result in on your systems? You ready for a good laugh? On the machine I am on this moment, it returns '3435'. On the machine I compiled Apache on Fri night, it returned '5648'. NCR MP-RAS stupidly reports the *model number* of the machine it is running on; ditto for `arch`. Thus, `uname -m` is going to be all over the map depending on the class of box. That is why I said all NCR tests -- including the "library" test -- should probably result in "i486" rather than the machine 'type'(sic). Or, better yet, "intel" if there's no significance to 'i486' other than as a generic x86 label. Revision Changes Path 1.40 +2 -6 apache-1.3/src/helpers/GuessOS Index: GuessOS =================================================================== RCS file: /export/home/cvs/apache-1.3/src/helpers/GuessOS,v retrieving revision 1.39 retrieving revision 1.40 diff -u -r1.39 -r1.40 --- GuessOS 1998/06/07 18:44:22 1.39 +++ GuessOS 1998/06/08 17:04:02 1.40 @@ -189,12 +189,8 @@ echo "${MACHINE}-whatever-sysv4"; exit 0 ;; - *:4.0:3.0:[345][0-9]?? | *:4.0:3.0:3[34]??[/,]*) - echo "i486-ncr-sysv4"; exit 0 - ;; - - library:*) - echo "${MACHINE}-ncr-sysv4"; exit 0 + *:4.0:3.0:[345][0-9]?? | *:4.0:3.0:3[34]??[/,]* | library:*) + echo "intel-ncr-sysv4"; exit 0 ;; ULTRIX:*)