From: Roy Marples Date: Wed, 28 Aug 2019 21:57:11 +0000 (+0100) Subject: OpenBSD: Fix compile X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e6c4b18bfb8a41b262b0f2c82d3af0da7772ca0f;p=thirdparty%2Fdhcpcd.git OpenBSD: Fix compile --- diff --git a/configure b/configure index fae17464..44be95ec 100755 --- a/configure +++ b/configure @@ -504,18 +504,6 @@ if [ -z "$AUTH" -o "$AUTH" = yes ]; then echo "Enabling Authentication" echo "CPPFLAGS+= -DAUTH" >>$CONFIG_MK echo "SRCS+= auth.c" >>$CONFIG_MK - if [ -n "$HMAC_SRC" ]; then - echo "CRYPT_SRCS+= \${HMAC_SRC}" >>$CONFIG_MK - fi -fi -if [ -z "$INET6" ] || [ "$INET6" = yes ] || \ - [ -z "$AUTH" ] || [ "$AUTH" = yes ]; then - if [ -n "$MD5_SRC" ]; then - echo "CRYPT_SRCS+= \${MD5_SRC}" >>$CONFIG_MK - fi - if [ -n "$SHA256_SRC" ]; then - echo "CRYPT_SRCS+= \${SHA256_SRC}" >>$CONFIG_MK - fi fi echo "Using compiler .. $CC" @@ -1413,6 +1401,21 @@ else echo "HMAC_SRC=" >>$CONFIG_MK fi +if [ -z "$AUTH" ] || [ "$AUTH" = yes ]; then + if [ "$HMAC" = no ]; then + echo "CRYPT_SRCS+= \${HMAC_SRC}" >>$CONFIG_MK + fi +fi +if [ -z "$INET6" ] || [ "$INET6" = yes ] || \ + [ -z "$AUTH" ] || [ "$AUTH" = yes ]; then + if [ "$MD5" = no ]; then + echo "CRYPT_SRCS+= \${MD5_SRC}" >>$CONFIG_MK + fi + if [ "$SHA2" = no ]; then + echo "CRYPT_SRCS+= \${SHA256_SRC}" >>$CONFIG_MK + fi +fi + if [ "$DEV" != no -a "$UDEV" != no ]; then printf "Checking for libudev ... " if type "$PKG_CONFIG" >/dev/null 2>&1; then