xref: /PHP-5.4/ext/phar/config.m4 (revision f4ce5e7f)
1dnl $Id$
2dnl config.m4 for extension phar
3
4PHP_ARG_ENABLE(phar, for phar archive support,
5[  --disable-phar          Disable phar support], yes)
6
7if test "$PHP_PHAR" != "no"; then
8  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)
9  AC_MSG_CHECKING([for phar openssl support])
10  if test "$PHP_HASH_SHARED" != "yes"; then
11    if test "$PHP_HASH" != "no"; then
12      AC_DEFINE(PHAR_HASH_OK,1,[ ])
13    fi
14  else
15    AC_MSG_WARN([Phar: sha256/sha512 signature support disabled if ext/hash is built shared])
16  fi
17  if test "$PHP_OPENSSL_SHARED" = "yes"; then
18    AC_MSG_RESULT([no (shared openssl)])
19  else
20    if test "$PHP_OPENSSL" = "yes"; then
21      AC_MSG_RESULT([yes])
22      AC_DEFINE(PHAR_HAVE_OPENSSL,1,[ ])
23    else
24      AC_MSG_RESULT([no])
25    fi
26  fi
27  PHP_ADD_EXTENSION_DEP(phar, hash, true)
28  PHP_ADD_EXTENSION_DEP(phar, spl, true)
29  PHP_ADD_MAKEFILE_FRAGMENT
30
31  PHP_OUTPUT(ext/phar/phar.1 ext/phar/phar.phar.1)
32fi
33