1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00
Files
archived-php-src/ext/phar/config.m4
Peter Kokot 4f07cdc584 Replace PHP_OUTPUT with AC_CONFIG_FILES (#15186)
This is a follow-up of GH-15177
(c96f08aa70)
and GH-15185
(9467ffb43c)

The PHP_OUTPUT macro was introduced in the very early phase of the build
system due to AC_OUTPUT handling issues in the old Autoconf versions
before the AC_CONFIG_FILES, AC_CONFIG_COMMANDS etc were introduced with
the AC_OUTPUT signature without arguments. The PHP_OUTPUT was also
helping Makefile.in back then being properly generated based on whether
all files were generated or only some (when using the obsolete
CONFIG_FILES=... ./config.status invocation instead of the new
./config.status --file=...). Another issue is that PHP_OUTPUT can't be
used by extensions when using phpize.

This replaces the PHP_OUTPUT invocations with default AC_CONFIG_FILES.

The obsolete "REDO_ALL" feature at the config.status invocation is also
removed with a simpler unconditional generation.

In phar extension the "ext/phar" is replaced with $ext_dir variable to
be able to use phpize.
2024-08-03 21:52:14 +02:00

43 lines
948 B
Plaintext

PHP_ARG_ENABLE([phar],
[for phar archive support],
[AS_HELP_STRING([--disable-phar],
[Disable phar support])],
[yes])
if test "$PHP_PHAR" != "no"; then
PHP_NEW_EXTENSION([phar], m4_normalize([
dirstream.c
func_interceptors.c
phar_object.c
phar_path_check.c
phar.c
stream.c
tar.c
util.c
zip.c
]),
[$ext_shared],,
[-DZEND_ENABLE_STATIC_TSRMLS_CACHE=1])
AC_MSG_CHECKING([for phar openssl support])
if test "$PHP_OPENSSL_SHARED" = "yes"; then
AC_MSG_RESULT([no (shared openssl)])
else
if test "$PHP_OPENSSL" = "yes"; then
AC_MSG_RESULT([yes])
AC_DEFINE(PHAR_HAVE_OPENSSL,1,[ ])
else
AC_MSG_RESULT([no])
fi
fi
PHP_ADD_EXTENSION_DEP(phar, hash)
PHP_ADD_EXTENSION_DEP(phar, spl)
PHP_ADD_MAKEFILE_FRAGMENT
PHP_INSTALL_HEADERS([ext/phar], [php_phar.h])
AC_CONFIG_FILES([
$ext_dir/phar.1
$ext_dir/phar.phar.1
])
fi