Allow ROUTERADVERT to be an up reason.
[dhcpcd-ui] / configure
index 9d92c09b8b38c054ce21f2e825899ff198c77a1b..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%%-*}
@@ -142,6 +150,7 @@ for x in PREFIX SYSCONFDIR BINDIR ICONDIR; do
        [ $l -gt 2 ] && t="     "
        echo "#define $x$t      \"$v\"" >>$CONFIG_H
 done
+echo "MANDIR=          ${MANDIR}" >>$CONFIG_MK
 
 if [ -z "$CC" ]; then
        printf "Looking for compiler ... "
@@ -292,6 +301,7 @@ echo "   SYSCONFDIR =               $SYSCONFDIR"
 echo "   BINDIR =              $BINDIR"
 echo "   LIBDIR =              $LIBDIR"
 echo "   ICONDIR =             $ICONDIR"
+echo "   MANDIR =              $MANDIR"
 echo "   UI =                  $UI"
 echo