]> git.ipfire.org Git - thirdparty/pciutils.git/commitdiff
lib/configure: Also accept host tuples without vendor string
authorFelix Janda <felix.janda@posteo.de>
Sun, 12 Apr 2015 07:16:28 +0000 (09:16 +0200)
committerMartin Mares <mj@ucw.cz>
Mon, 14 Sep 2015 15:47:08 +0000 (17:47 +0200)
Based on patch from
https://bugs.gentoo.org/show_bug.cgi?id=425022

lib/configure

index 3783f57558279bc05ce2b910ededf5599d123d79..7d4cec85fd2ca8d8838ed2d1ba5f7c5a0a93c1af 100755 (executable)
@@ -44,7 +44,7 @@ if [ -z "$HOST" ] ; then
 fi
 [ -n "$RELEASE" ] && rel="${RELEASE}"
 # CAVEAT: tr on Solaris is a bit weird and the extra [] is otherwise harmless.
-host=`echo $HOST | sed -e 's/^\([^-]*\)-\([^-]*\)-\([^-]*\)-\([^-]*\)$/\1-\3/' -e 's/^\([^-]*\)-\([^-]*\)$/\1--\2/' | tr '[A-Z]' '[a-z]'`
+host=`echo $HOST | sed -e 's/^\([^-]*\)-\([^-]*\)-\([^-]*\)-\([^-]*\)$/\1-\3/' -e 's/^\([^-]*\)-\([^-]*\)-\([^-]*\)$/\1-\2/' -e 's/^\([^-]*\)-\([^-]*\)$/\1--\2/' | tr '[A-Z]' '[a-z]'`
 cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
 sys=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
 echo " $host $rel $cpu $sys"