From 70279d518de75017c5408f4d0b35ee6cd4de8d9f Mon Sep 17 00:00:00 2001 From: Damien Zammit Date: Wed, 16 Sep 2020 03:13:17 +0200 Subject: [PATCH] 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 --- lib/configure | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 -- 2.39.2