diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2020-07-15 10:57:05 -0700 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2020-07-15 10:57:44 -0700 |
commit | 2d431ac35c4943a3655c07ba91870d2323321b43 (patch) | |
tree | 33fb17dec6728a86f66b290f23586c5b9e96dad7 /m4 | |
parent | d16529f705d7d31b5f28245f0940523fe883e936 (diff) | |
download | gnulib-2d431ac35c4943a3655c07ba91870d2323321b43.tar.gz |
md5, sha1, sha256, sha512: pacify Autoconf 2.70
* m4/gl-openssl.m4 (gl_CRYPTO_CHECK): Use m4_if rather than a
shell if, so that the argument to AC_CHECK_HEADERS is
a simple string that does not require shell evaluation.
This fixes a warning generated by Autoconf 2.69b.
Diffstat (limited to 'm4')
-rw-r--r-- | m4/gl-openssl.m4 | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/m4/gl-openssl.m4 b/m4/gl-openssl.m4 index 6abc025efc..e95090411b 100644 --- a/m4/gl-openssl.m4 +++ b/m4/gl-openssl.m4 @@ -1,4 +1,4 @@ -# gl-openssl.m4 serial 4 +# gl-openssl.m4 serial 5 dnl Copyright (C) 2013-2020 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -31,12 +31,6 @@ AC_DEFUN([gl_CRYPTO_CHECK], [], [with_openssl=$with_openssl_default]) - if test "x$1" = xMD5; then - ALG_header=md5.h - else - ALG_header=sha.h - fi - AC_SUBST([LIB_CRYPTO]) if test "x$with_openssl" != xno; then if test "x$with_openssl" = xauto-gpl-compat; then @@ -55,7 +49,8 @@ AC_DEFUN([gl_CRYPTO_CHECK], if test "x$with_openssl" != xauto-gpl-compat || test "x$gl_cv_openssl_gpl_compat" = xyes; then AC_CHECK_LIB([crypto], [$1], - [AC_CHECK_HEADERS([openssl/$ALG_header], + [AC_CHECK_HEADERS( + m4_if([$1], [MD5], [openssl/md5.h], [openssl/sha.h]), [LIB_CRYPTO=-lcrypto AC_DEFINE([HAVE_OPENSSL_$1], [1], [Define to 1 if libcrypto is used for $1.])])]) |