Skip to content

Commit d9a94b7

Browse files
committed
Merge pull request #6244
a5a81f7 configure: Detect (and reject) LibreSSL (Luke Dashjr)
2 parents 643114f + a5a81f7 commit d9a94b7

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

configure.ac

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -679,6 +679,14 @@ else
679679
fi
680680
fi
681681

682+
AC_CHECK_LIB([crypto],[RAND_egd],[],[
683+
AC_ARG_WITH([libressl],
684+
[AS_HELP_STRING([--with-libressl],[Build with system LibreSSL (default is no; DANGEROUS; NOT SUPPORTED)])],
685+
[AC_MSG_WARN([Detected LibreSSL: This is NOT supported, and may break consensus compatibility!])],
686+
[AC_MSG_ERROR([Detected LibreSSL: This is NOT supported, and may break consensus compatibility!])]
687+
)
688+
])
689+
682690
CFLAGS_TEMP="$CFLAGS"
683691
LIBS_TEMP="$LIBS"
684692
CFLAGS="$CFLAGS $SSL_CFLAGS $CRYPTO_CFLAGS"

0 commit comments

Comments
 (0)