From: Roy Marples Date: Sun, 11 Jul 2010 13:35:18 +0000 (+0000) Subject: Fix build for slackware. X-Git-Tag: dhcpcd-ui-0.5.2~5 X-Git-Url: https://roy.marples.name/git Fix build for slackware. --- diff --git a/configure b/configure index 0e85ec7..ba6a7b1 100755 --- 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%%-*}