summaryrefslogtreecommitdiff
path: root/ext/phar/config.m4
diff options
context:
space:
mode:
authorGreg Beaver <cellog@php.net>2008-10-09 00:50:47 +0000
committerGreg Beaver <cellog@php.net>2008-10-09 00:50:47 +0000
commitfffdf661c95b15896d4c60060ca00e6adfb0da0e (patch)
treea8c173a6e1db39a6eb6ed8956752864835af4615 /ext/phar/config.m4
parent529105427e5af3d6b7366b22abf4660b8fb407a9 (diff)
downloadphp-git-fffdf661c95b15896d4c60060ca00e6adfb0da0e.tar.gz
fix bug #45907: undefined reference to PHP_SHA512Init
Diffstat (limited to 'ext/phar/config.m4')
-rw-r--r--ext/phar/config.m45
1 files changed, 5 insertions, 0 deletions
diff --git a/ext/phar/config.m4 b/ext/phar/config.m4
index 8fba62ff9a..5e32c5b6f2 100644
--- a/ext/phar/config.m4
+++ b/ext/phar/config.m4
@@ -7,6 +7,11 @@ PHP_ARG_ENABLE(phar, for phar archive support,
if test "$PHP_PHAR" != "no"; then
PHP_NEW_EXTENSION(phar, util.c tar.c zip.c stream.c func_interceptors.c dirstream.c phar.c phar_object.c phar_path_check.c, $ext_shared)
AC_MSG_CHECKING([for phar openssl support])
+ if test "$PHP_HASH_SHARED" != "yes"; then
+ AC_DEFINE(PHAR_HASH_OK,1,[ ])
+ else
+ AC_MSG_WARN([Phar: sha256/sha512 signature support disabled if ext/hash is built shared])
+ fi
if test "$PHP_OPENSSL_SHARED" = "yes"; then
AC_MSG_RESULT([no (shared openssl)])
else