You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Jeff Trawick <tr...@ibm.net> on 2000/02/28 04:07:23 UTC

2.0 - sysctl needs path in src/lib/apr/shmem/unix/mm/config.guess

There was a lovely "sysctl : command not found" (or similar) message
littering my configure on FreeBSD.  Normally, /sbin isn't in PATH
unless running as root.

This patch calls sysctl with the path as in the shtool logic.  
Interestingly, there is another copy of config.guess a couple of 
directories up which is more similar to the official autoconf copy.
Certain parts of this config.guess, such as the FreeBSD logic, are
more similar to the shtool in that directory.

--- src/lib/apr/shmem/unix/mm/config.guess-old  Mon Sep 27 03:42:01 1999
+++ src/lib/apr/shmem/unix/mm/config.guess      Sun Feb 27 14:45:36 2000
@@ -581,7 +581,7 @@
     *:FreeBSD:*:*)
        # echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
         VERS=`echo ${UNAME_RELEASE} | sed -e 's/[-(].*//'`
-        MACH=`sysctl -n hw.model`
+        MACH=`/sbin/sysctl -n hw.model`
         ARCH='unknown'
         case ${MACH} in
            *386*       ) MACH="i386" ;;
-- 
Jeff Trawick | trawick@ibm.net | PGP public key at web site:
     http://www.geocities.com/SiliconValley/Park/9289/
          Born in Roswell... married an alien...