summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2019-08-28 22:57:11 +0100
committerRoy Marples <roy@marples.name>2019-08-28 22:57:11 +0100
commite6c4b18bfb8a41b262b0f2c82d3af0da7772ca0f (patch)
treea932fd16c26054174ce5636dc6b9f25232b63bbb /configure
parent933e0df9ee7ae54807608555e1d41286d4253e25 (diff)
downloaddhcpcd-e6c4b18bfb8a41b262b0f2c82d3af0da7772ca0f.tar.xz
OpenBSD: Fix compile
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure27
1 files changed, 15 insertions, 12 deletions
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