configure.in: Bail out if OpenSSL and mbedTLS are enabled at the same time
authorFabian Keil <fk@fabiankeil.de>
Tue, 12 Jan 2021 06:46:07 +0000 (07:46 +0100)
committerFabian Keil <fk@fabiankeil.de>
Wed, 13 Jan 2021 08:58:17 +0000 (09:58 +0100)
configure.in

index c21d9df..96adb9d 100644 (file)
@@ -1165,6 +1165,10 @@ AC_HELP_STRING([--without-openssl], [Disable OpenSSL/LibreSSL detection]),
   OPT_OPENSSL=$withval)
 
 if test X"$OPT_OPENSSL" != Xno; then
+   if test X"$OPT_MBEDTLS" != Xno; then
+      AC_MSG_ERROR([OpenSSL and mbedTLS support can't be enabled at the same time])
+   fi
+
   if test "$PORTNAME" != "win32"; then
      AC_CHECK_LIB(crypto, CRYPTO_new_ex_data, [], [AC_MSG_ERROR([library 'crypto' is required for OpenSSL])])
      FOUND_SSL_LIB="no"