]> mj.ucw.cz Git - pciutils.git/commitdiff
configure: Add support for GNU/Hurd
authorDamien Zammit <damien@zamaudio.com>
Wed, 16 Sep 2020 01:13:17 +0000 (03:13 +0200)
committerGuillem Jover <guillem@hadrons.org>
Wed, 16 Sep 2020 01:15:43 +0000 (03:15 +0200)
This handles the case when the HOST has not been specified by the user.

Signed-off-by: Guillem Jover <guillem@hadrons.org>
lib/configure

index 6fa8fcf75fe65d8dedda6e553c9812acf31c8f1a..e181b7fda13ef9632f3dda10a30b11255979e475 100755 (executable)
@@ -25,7 +25,7 @@ if [ -z "$HOST" ] ; then
                proc=`/usr/sbin/lsdev -C -c processor -S available -F name | head -1`
                cpu=`/usr/sbin/lsattr -F value -l $proc -a type | sed 's/_.*//'`
        else
-               cpu=`uname -m | sed 's/^i.86$/i386/;s/^sun4u$/sparc64/;s/^i86pc$/i386/;s/^BePC$/i386/;s/^BeMac$/powerpc/;s/^BeBox$/powerpc/'`
+               cpu=`uname -m | sed 's/^i.86-AT386/i386/;s/^i.86$/i386/;s/^sun4u$/sparc64/;s/^i86pc$/i386/;s/^BePC$/i386/;s/^BeMac$/powerpc/;s/^BeBox$/powerpc/'`
        fi
        if [ "$sys" = "DragonFly" ]
        then
@@ -35,6 +35,10 @@ if [ -z "$HOST" ] ; then
        then
                sys=kfreebsd
        fi
+       if [ "$sys" = "GNU" ]
+       then
+               sys=gnu
+       fi
        if [ "$sys" = "CYGWIN_NT-5.1" -o "$sys" = "CYGWIN_NT-6.0" ]
        then
                sys=cygwin