*** empty log message ***
authorJim Meyering <jim@meyering.net>
Sun, 17 Feb 2002 19:05:53 +0000 (19:05 +0000)
committerJim Meyering <jim@meyering.net>
Sun, 17 Feb 2002 19:05:53 +0000 (19:05 +0000)
config/ChangeLog [new file with mode: 0644]
config/config.guess

diff --git a/config/ChangeLog b/config/ChangeLog
new file mode 100644 (file)
index 0000000..9e60dd4
--- /dev/null
@@ -0,0 +1,4 @@
+2002-02-17  Jim Meyering  <meyering@lucent.com>
+
+       * config.guess (main): Don't use `head -1'; it's no longer portable.
+        Use `sed 1q' instead.
index 88eaf68..b03a3b5 100644 (file)
@@ -340,7 +340,7 @@ EOF
        echo m68k-sun-sunos${UNAME_RELEASE}
        exit 0 ;;
     sun*:*:4.2BSD:*)
-       UNAME_RELEASE=`(head -1 /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null`
+       UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null`
        test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3
        case "`/bin/arch`" in
            sun3)
@@ -509,7 +509,7 @@ EOF
        fi
        exit 0 ;;
     *:AIX:*:[45])
-       IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | head -1 | awk '{ print $1 }'`
+       IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
        if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
                IBM_ARCH=rs6000
        else