From: Damien Zammit Date: Wed, 16 Sep 2020 01:13:17 +0000 (+0200) Subject: configure: Add support for GNU/Hurd X-Git-Tag: v3.8.0~105^2~1 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=70279d518de75017c5408f4d0b35ee6cd4de8d9f;p=pciutils.git configure: Add support for GNU/Hurd This handles the case when the HOST has not been specified by the user. Signed-off-by: Guillem Jover --- diff --git a/lib/configure b/lib/configure index 6fa8fcf..e181b7f 100755 --- a/lib/configure +++ b/lib/configure @@ -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