From: Ole Streicher <olebole@debian.org>
Date: Mon, 26 Mar 2018 17:13:33 +0200
Subject: [Pow] Extend the known operating systems by Gnu HURD and kfreeBSD.

---
 tcltk/pow/configure.in | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tcltk/pow/configure.in b/tcltk/pow/configure.in
index ee65dea..46f8d4c 100644
--- a/tcltk/pow/configure.in
+++ b/tcltk/pow/configure.in
@@ -38,7 +38,7 @@ if test "x$BINDIR" = x; then
     AC_MSG_ERROR(HEAsoft: Unable to guess system type. Please set it using --with-bindir option)
   fi
   changequote(,)
-  BINDIR=`$UNAME -s 2> /dev/null`_`$UNAME -r 2> /dev/null | sed 's:[^0-9]*\([0-9][0-9]*\.[0-9]*\).*:\1:'`
+  BINDIR=`$UNAME -s 2> /dev/null | sed 's:.*/::'`_`$UNAME -r 2> /dev/null | sed 's:[^0-9]*\([0-9][0-9]*\.[0-9]*\).*:\1:'`
   changequote([,])
   lhea_machine=`$UNAME -m 2> /dev/null`
   BIN_EXT=
@@ -58,7 +58,7 @@ if test "x$BINDIR" = x; then
       EXT=hpu
       lhea_machine=`$UNAME -m 2> /dev/null | tr '/' ' ' | awk '{ print $2 }'`
       ;;
-    Linux*)
+    Linux*|kFreeBSD*|GNU*)
       EXT=lnx
       ;;
     OSF1*)
