From: Roy Marples Date: Thu, 31 Dec 2015 17:46:05 +0000 (+0000) Subject: Detect kFreeBSD correctly. X-Git-Tag: v6.10.0~19 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e143d0c58aaae9cd4cb98bd94fdf7b13b3b0a4e4;p=thirdparty%2Fdhcpcd.git Detect kFreeBSD correctly. Thanks to Christoph Egger for providing a temporary build host. Partial fix for [1987e7b3a3]. --- diff --git a/configure b/configure index 6a03f61f..b6ebd5f8 100755 --- a/configure +++ b/configure @@ -221,6 +221,9 @@ if [ -z "$OS" ]; then case "$VENDOR" in linux*|kfreebsd*) OS=$VENDOR; VENDOR= ;; esac + case "$REST" in + gnu/kfreebsd*) OS="kfreebsd"; VENDOR= ;; + esac # Special case case "$OS" in gnu*) OS=hurd;; # No HURD support as yet @@ -304,7 +307,7 @@ else ALLOW_USR_LIBS=true fi case "$OS" in -linux*|sunos*) ;; +linux*|sunos*|kfreebsd*) ;; *) if ! [ -x "$LDELF" -o -x /libexec/ld-elf.so.[0-9]* ] && \ [ -z "$PREFIX" -o "$PREFIX" = "/" ] @@ -375,6 +378,9 @@ freebsd*|kfreebsd*) esac echo "DHCPCD_SRCS+= if-bsd.c" >>$CONFIG_MK # Whacky includes needed to buck the trend + case "$OS" in + kfreebsd*) echo "#include " >>$CONFIG_H; + esac echo "#include " >>$CONFIG_H echo "#include " >>$CONFIG_H ;;