]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
OpenBSD: Fix compile
authorRoy Marples <roy@marples.name>
Wed, 28 Aug 2019 21:57:11 +0000 (22:57 +0100)
committerRoy Marples <roy@marples.name>
Wed, 28 Aug 2019 21:57:11 +0000 (22:57 +0100)
configure

index fae17464bca27201c0991afcdfd89cfc46d1baed..44be95ec9818e6e0e675c3920a789a80e2307f48 100755 (executable)
--- 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