aboutsummaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure10
1 files changed, 7 insertions, 3 deletions
diff --git a/configure b/configure
index 9f9023e..679da39 100755
--- a/configure
+++ b/configure
@@ -12736,6 +12736,7 @@ if test "x$with_openssl" = "xno"; then
$as_echo "$as_me: WARNING: Building without OpenSSL; disabling iperf_auth functionality. " >&2;}
else
# Check for OPENSSL support
+ havs_ssl=false
found=false
@@ -12923,6 +12924,7 @@ $as_echo "yes" >&6; }
$as_echo "#define HAVE_SSL 1" >>confdefs.h
+ have_ssl=true
else
@@ -12947,9 +12949,11 @@ rm -f core conftest.err conftest.$ac_objext \
- LDFLAGS="$LDFLAGS $OPENSSL_LDFLAGS"
- LIBS="$OPENSSL_LIBS $LIBS"
- CPPFLAGS="$OPENSSL_INCLUDES $CPPFLAGS"
+ if $have_ssl; then
+ LDFLAGS="$LDFLAGS $OPENSSL_LDFLAGS"
+ LIBS="$OPENSSL_LIBS $LIBS"
+ CPPFLAGS="$OPENSSL_INCLUDES $CPPFLAGS"
+ fi
fi
# Check for TCP_CONGESTION sockopt (believed to be Linux and FreeBSD only)