#
5a03ff4f |
| 07-Jun-2024 |
Peter Kokot |
Remove PHP_SETUP_OPENSSL inactive 3rd argument (#14323) If OpenSSL is not found, the PKG_CHECK_MODULES errors out already. To not introduce too big of a BC break with possible PECL exten
Remove PHP_SETUP_OPENSSL inactive 3rd argument (#14323) If OpenSSL is not found, the PKG_CHECK_MODULES errors out already. To not introduce too big of a BC break with possible PECL extensions using this macro, it is perhaps simpler to remove this non-working argument. Redundant macro arguments are ignored by Autoconf anyway.
show more ...
|
#
bf845d56 |
| 03-Jun-2024 |
Peter Kokot |
Use AC_SUBST for CONFIGURE_COMMAND and CONFIGURE_OPTIONS (#14445) Instead of the PHP_SUBST_OLD, which also adds redundant variables to the generated Makefile, these two can be done with
Use AC_SUBST for CONFIGURE_COMMAND and CONFIGURE_OPTIONS (#14445) Instead of the PHP_SUBST_OLD, which also adds redundant variables to the generated Makefile, these two can be done with AC_SUBST to be substituted in the generated main/build-defs.h header and scripts/php-config script.
show more ...
|
#
cba3891d |
| 30-May-2024 |
Peter Kokot |
Join SQLite library setup M4 macros to PHP_SETUP_SQLITE (#14372) Macro can simplify managing minimum version of SQLite library on less places.
|
#
471aa114 |
| 30-May-2024 |
Peter Kokot |
Refactor fopencookie check (#14346) - This checks for a type cookie_io_functions_t and defines the HAVE_FOPENCOOKIE based on type check result and the fopencookie() function pres
Refactor fopencookie check (#14346) - This checks for a type cookie_io_functions_t and defines the HAVE_FOPENCOOKIE based on type check result and the fopencookie() function presence. - Fixed -Wunused... warnings in config.log on stricter compiler configurations - The run check for off64_t is wrapped into AC_CACHE_CHECK for having the php_cv_type_cookie_off64_t cache variable available to customize possible cross-compilation edge cases - Comment about glibcs 2.1.2 removed because also some other earlier versions provided this type already
show more ...
|
#
de0415e7 |
| 29-May-2024 |
Peter Kokot |
Remove PROG_SENDMAIL from Makefile (#14355) PROG_SENDMAIL is not used in the generated Makefile. For the main/build-defs.h it is substituted automatically with AC_PATH_PROG.
|
#
9e226b28 |
| 24-May-2024 |
Peter Kokot |
Fix incompatible pointer type warnings This fixes the incompatible pointer type warnings when checking for reentrant functions declaractions (-Wincompatible-pointer-types) in config.
Fix incompatible pointer type warnings This fixes the incompatible pointer type warnings when checking for reentrant functions declaractions (-Wincompatible-pointer-types) in config.log. These were not declared on some obsolete systems if _REENTRANT was not defined. The check is for now left in the code base but can be transitioned to newer code without checking for missing declarations or using these otherwise in the future. Closes GH-14315.
show more ...
|
#
bc09cd2b |
| 19-May-2024 |
Peter Kokot |
Fix the aligned variable attribute check (#14211) By default compilers may not treat attribute warnings as errors when encountering an unknown __attribute__, unless some error option is
Fix the aligned variable attribute check (#14211) By default compilers may not treat attribute warnings as errors when encountering an unknown __attribute__, unless some error option is provided (-Werror=attributes, -Werror=unknown-attributes, -Werror...). This fixes the check and wraps it into a separate M4 macro to be extendable in the future if needed. It checks if conftest.err file was generated by the compilation check when warnings appear. Also, PHP check is a bit customized by using __alignof__ keyword, so it is left in there for now to not break existing checks.
show more ...
|
#
4e21a26d |
| 10-May-2024 |
Calvin Buckley |
Fix check for newer versions of ICU (#14186) * Fix check for newer versions of ICU The previous test would always trigger, even if the version of ICU installed didn't require C+
Fix check for newer versions of ICU (#14186) * Fix check for newer versions of ICU The previous test would always trigger, even if the version of ICU installed didn't require C++17. This was because it incorrectly used the `test` program, which broke the build on systems without a C++17 compiler. Tested with macOS 14 and i 7.2. * Fix broken ICU version check for definition Same as the previous fix for C++17. --------- Co-authored-by: Peter Kokot <peterkokot@gmail.com>
show more ...
|
#
ff76cb73 |
| 18-Apr-2024 |
Ørjan Malde |
rudimentary midipix port (#13896)
|
#
413f2cd4 |
| 27-Mar-2024 |
Peter Kokot |
Refactor root build directories (#13785) This adds all root build directories in one call. PEAR directory is created only when enabled and duplicated Zend directory creation is remov
Refactor root build directories (#13785) This adds all root build directories in one call. PEAR directory is created only when enabled and duplicated Zend directory creation is removed, because it was intended for the zend_config.h when building out-of-source or using the config.status manually before the PHP_ADD_BUILD_DIR was introduced in the build system.
show more ...
|
#
3de3e137 |
| 25-Feb-2024 |
Ayesh Karunaratne |
ext/openssl: Bump minimum required OpenSSL version to 1.1.1 Bumps the minimum required OpenSSL version from 1.0.2 to 1.1.1. OpenSSL 1.1.1 is an LTS release, but has reached[^1] EOL
ext/openssl: Bump minimum required OpenSSL version to 1.1.1 Bumps the minimum required OpenSSL version from 1.0.2 to 1.1.1. OpenSSL 1.1.1 is an LTS release, but has reached[^1] EOL from upstream. However, Linux distro/OS vendors continue to ship OpenSSL 1.1.1, so 1.1.1 was picked as the minimum. The current minimum 1.0.2 reached EOL in 2018. Bumping the minimum required OpenSSL version makes it possible for ext-openssl to remove a bunch of conditional code, and assume that TLS 1.3 (shipped with OpenSSL 1.1.1) will be supported everywhere. - Debian buster: 1.1.1[^2] - Ubuntu 20.04: 1.1.1[^3] - CentOS/RHEL 7: 1.0.2 - RHEL 8/Rocky 8/EL 8: 1.1.1 - Fedora 38: 3.0.9 (`openssl11` provides OpenSSL 1.1 as well) RHEL/CentOS 7 reaches EOL mid 2024, so for PHP 8.4 scheduled towards the end of this year, we can safely bump the minimum OpenSSL version. [^1]: https://www.openssl.org/blog/blog/2023/03/28/1.1.1-EOL/index.html [^2]: https://packages.debian.org/buster/libssl-dev [^3]: https://packages.ubuntu.com/focal/libssl-dev
show more ...
|
#
530e0d68 |
| 21-Mar-2024 |
Peter Kokot |
Create modules directory in a centralized location (#13411) Shared objects of extensions during the *nix build are copied to the `modules` directory. It is a practice established since t
Create modules directory in a centralized location (#13411) Shared objects of extensions during the *nix build are copied to the `modules` directory. It is a practice established since the early days of the PHP build system. Other build systems may have similar concept of "library destination directory". On Windows, they are put into the root build directory. Such directory simplifies collection of the shared extensions during testing, or when running the cli executable at the end of the build process. This change ensures that the directory is consistently created in a single location, for both the primary PHP build process and when utilizing `phpize` within community extensions. The AC_CONFIG_COMMANDS_PRE is executed at the end of the configuration phase, before creating the config.status script, where also build directories and global Makefile are created. The pwd is executed using the recommended $(...) instead of the obsolete backticks. Autoconf automatically locates the proper shell and re-executes the configure script if such case is found that $(...) is not supported (the initial /bin/sh on Solaris 10, for example).
show more ...
|
#
868257a3 |
| 16-Mar-2024 |
David Carlier |
Fix GH-13727: macro generating invalid call test prototypes fixes. autoconf/libtool generating code to test features missed `void` for C calls prototypes w/o arguments. Note that spe
Fix GH-13727: macro generating invalid call test prototypes fixes. autoconf/libtool generating code to test features missed `void` for C calls prototypes w/o arguments. Note that specific changes related to libtool have to be upstreamed. Co-authored-by: Peter Kokot <petk@php.net> close GH-13732
show more ...
|
#
8595bead |
| 10-Mar-2024 |
Peter Kokot |
Use default Autoconf's AC_LANG_PROGRAM (#13565) This adds default test program prologue and body of `int main(void) { return 0; }` where possible.
|
#
42a4e505 |
| 01-Mar-2024 |
Peter Kokot |
Sync logical operators in shell scripting code (#13560) This updates the obsolescent `-a` and `-o` binary primaries to `&&` and `||`. https://pubs.opengroup.org/onlinepubs/96999
Sync logical operators in shell scripting code (#13560) This updates the obsolescent `-a` and `-o` binary primaries to `&&` and `||`. https://pubs.opengroup.org/onlinepubs/9699919799/utilities/test.html
show more ...
|
#
2ca38d11 |
| 27-Feb-2024 |
Peter Kokot |
Remove PHP_CHECK_GCC_ARG (#13525) The PHP_CHECK_GCC_ARG has been already removed in PHP 8.0 and this also removes the error emitting wrapper. Patches for the solr and vld extens
Remove PHP_CHECK_GCC_ARG (#13525) The PHP_CHECK_GCC_ARG has been already removed in PHP 8.0 and this also removes the error emitting wrapper. Patches for the solr and vld extensions have been sent upstream.
show more ...
|
#
e72f0c88 |
| 21-Feb-2024 |
Peter Kokot |
Simplify prctl and procctl Autoconf checks (#13450) The AC_CHECK_FUNCS checks whether the linker sees the function in the usual libraries, in this case libc. This is a simple trick to al
Simplify prctl and procctl Autoconf checks (#13450) The AC_CHECK_FUNCS checks whether the linker sees the function in the usual libraries, in this case libc. This is a simple trick to also check existence of belonging headers, since the code uses HAVE_PRCTL and HAVE_PROCCTL to include headers and call functions.
show more ...
|
#
25923987 |
| 16-Feb-2024 |
Peter Kokot |
Refactor PHP_SOCKADDR_CHECKS (#13406) Instead of the project macro, the sockaddr_storage and sockaddr.sa_len can be checked with the AC_CHECK_TYPES and AC_CHECK_MEMBERS by including
Refactor PHP_SOCKADDR_CHECKS (#13406) Instead of the project macro, the sockaddr_storage and sockaddr.sa_len can be checked with the AC_CHECK_TYPES and AC_CHECK_MEMBERS by including the sys/socket.h. Some systems (~1988) didn't include the sys/types.h in the socket.h (obsolete on current systems). These macros by default define the HAVE_STRUCT_SOCKADDR_STORAGE and HAVE_STRUCT_SOCKADDR_SA_LEN.
show more ...
|
#
95887962 |
| 15-Feb-2024 |
Peter Kokot |
Use AC_CHECK_TYPES for checking struct flock (#13397) The struct flock is defined in fcntl.h, if system has it. This removes redundant PHP_STRUCT_FLOCK M4 macro in favor of the AC_CHECK_
Use AC_CHECK_TYPES for checking struct flock (#13397) The struct flock is defined in fcntl.h, if system has it. This removes redundant PHP_STRUCT_FLOCK M4 macro in favor of the AC_CHECK_TYPES, which by default defines symbol HAVE_STRUCT_FLOCK.
show more ...
|
#
68691665 |
| 13-Feb-2024 |
Peter Kokot |
Remove obsolete PHP_WITH_SHARED M4 macro (#13380) This macro is obsolete in favor of the PHP_ARG_WITH macro. It was once used in combination with the AC_ARG_WITH macro to determine, whet
Remove obsolete PHP_WITH_SHARED M4 macro (#13380) This macro is obsolete in favor of the PHP_ARG_WITH macro. It was once used in combination with the AC_ARG_WITH macro to determine, whether the extension has been configured as shared.
show more ...
|
#
eb76a830 |
| 11-Feb-2024 |
Peter Kokot |
Remove PHP atomic includes and PHP_DEFINE M4 macro (#13372) PHP_DEFINE was introduced with the PHP 5 build system 9d9d39a0de3bec962c343051011f5a2ed7d7b242 and then refactored via 350
Remove PHP atomic includes and PHP_DEFINE M4 macro (#13372) PHP_DEFINE was introduced with the PHP 5 build system 9d9d39a0de3bec962c343051011f5a2ed7d7b242 and then refactored via 350de12bc24472ccf20ff9a8b39a6da0185c070d. This was once used to put defined constants into a single file to have more fine-graned dependencies (atomic includes). Since no known PHP extension is using this and it makes very little sense to use this, this M4 macro can be removed in favor of the Autoconf native way using AC_DEFINE and the usual included files php_config.h and config.h. - Generated unused include directory removed - Remove include dir from DEFS - Remove also include dir from PDO checks
show more ...
|
#
41e3044f |
| 09-Feb-2024 |
Peter Kokot |
Remove obsolete check for missing fclose declaration (#13360) SunOS 4.1.4 from 1994 didn't have fclose declared in standard header stdio.h. This doesn't need to be checked anymore, as fc
Remove obsolete check for missing fclose declaration (#13360) SunOS 4.1.4 from 1994 didn't have fclose declared in standard header stdio.h. This doesn't need to be checked anymore, as fclose is part of the C89+ standard and declaration is present on Solaris 10 (SunOS 5.10) and later.
show more ...
|
#
16c1c49f |
| 10-Jan-2024 |
divinity76 |
Update re2c and bison version error message "or newer" (#13112) * nitpick re2c "or newer" * nitpick bison "or newer"
|
#
d57a7767 |
| 10-Jan-2024 |
Jan Palus |
Set libtool tag per command instead of global one Global --tag=CC defined in configure.ac is not correct in all cases. For example linking objects that were compiled from C++ sources nee
Set libtool tag per command instead of global one Global --tag=CC defined in configure.ac is not correct in all cases. For example linking objects that were compiled from C++ sources needs to be done with C++ compiler, however for link mode libtool will prefer compiler indicated with --tag. Fixes GH-12349
show more ...
|
#
fd7342f6 |
| 10-Jan-2024 |
Peter Kokot |
Fix _GNU_SOURCE redefined warnings in config.log _GNU_SOURCE is already defined when doing these checks and warnings are emitted otherwise in the configuration step.
|