summaryrefslogtreecommitdiffstats
path: root/gl/m4/gl-openssl.m4
diff options
context:
space:
mode:
Diffstat (limited to 'gl/m4/gl-openssl.m4')
-rw-r--r--gl/m4/gl-openssl.m417
1 files changed, 11 insertions, 6 deletions
diff --git a/gl/m4/gl-openssl.m4 b/gl/m4/gl-openssl.m4
index 3cfea50f..70f43a55 100644
--- a/gl/m4/gl-openssl.m4
+++ b/gl/m4/gl-openssl.m4
@@ -1,6 +1,6 @@
1# gl-openssl.m4 1# gl-openssl.m4
2# serial 7 2# serial 8
3dnl Copyright (C) 2013-2025 Free Software Foundation, Inc. 3dnl Copyright (C) 2013-2026 Free Software Foundation, Inc.
4dnl This file is free software; the Free Software Foundation 4dnl This file is free software; the Free Software Foundation
5dnl gives unlimited permission to copy and/or distribute it, 5dnl gives unlimited permission to copy and/or distribute it,
6dnl with or without modifications, as long as this notice is preserved. 6dnl with or without modifications, as long as this notice is preserved.
@@ -58,12 +58,17 @@ AC_DEFUN([gl_CRYPTO_CHECK],
58 fi 58 fi
59 if test "x$with_openssl" != xauto-gpl-compat || 59 if test "x$with_openssl" != xauto-gpl-compat ||
60 test "x$gl_cv_openssl_gpl_compat" = xyes; then 60 test "x$gl_cv_openssl_gpl_compat" = xyes; then
61 AC_CHECK_LIB([crypto], [$1], 61 m4_if([$1], [SHA3],
62 [AC_CHECK_HEADERS( 62 [AC_CHECK_LIB([crypto], [EVP_sha3_224],
63 m4_if([$1], [MD5], [openssl/md5.h], [openssl/sha.h]),
64 [LIB_CRYPTO=-lcrypto 63 [LIB_CRYPTO=-lcrypto
65 AC_DEFINE([HAVE_OPENSSL_$1], [1], 64 AC_DEFINE([HAVE_OPENSSL_$1], [1],
66 [Define to 1 if libcrypto is used for $1.])])]) 65 [Define to 1 if libcrypto is used for $1.])])],
66 [AC_CHECK_LIB([crypto], [$1],
67 [AC_CHECK_HEADERS(
68 m4_if([$1], [MD5], [openssl/md5.h], [openssl/sha.h]),
69 [LIB_CRYPTO=-lcrypto
70 AC_DEFINE([HAVE_OPENSSL_$1], [1],
71 [Define to 1 if libcrypto is used for $1.])])])])
67 fi 72 fi
68 if test "x$LIB_CRYPTO" = x; then 73 if test "x$LIB_CRYPTO" = x; then
69 message='openssl development library not found for $1. 74 message='openssl development library not found for $1.