Fix build for slackware.
authorRoy Marples <roy@marples.name>
Sun, 11 Jul 2010 13:35:18 +0000 (13:35 +0000)
committerRoy Marples <roy@marples.name>
Sun, 11 Jul 2010 13:35:18 +0000 (13:35 +0000)
configure

index 0e85ec729a6c8e6537ae0e685c135ab91aafbc46..ba6a7b1eb2595f755696c4afa933517f46be168b 100755 (executable)
--- a/configure
+++ b/configure
@@ -97,6 +97,14 @@ if [ -z "$TARGET" ]; then
        TARGET=$HOST
 fi
 
+# Debian and Slackware have linux in different places when dealing with
+# autoconf, so we deal with that here.
+if [ -z "$OS" ]; then
+       case "$TARGET" in
+       *-linux-*|linux-*|*-linux|linux) OS=linux;;
+       esac
+fi
+
 if [ -z "$OS" ]; then
        # Derive OS from cpu-manufacturer-os-kernel
        CPU=${TARGET%%-*}