summaryrefslogtreecommitdiff
path: root/build/php.m4
Commit message (Collapse)AuthorAgeFilesLines
* Backport fix for bug #78750Peter Kokot2020-12-031-0/+6
| | | | | | | Cherry-picks fe2afef36fc78c267133ddd403f48e0ee799efbc and 86e2b7bb70131b48636cded57e5bc62b81b79865.
* Fix bug #80402: Don't strip -lpthreadNikita Popov2020-11-261-1/+1
| | | | | | | The current behavior has been introduced 20 years ago in f9e375f493a1aeacbbcc8f2f00880d05b4ba7aaf as part of a larger change. It's not clear to me why special treatement of -lpthread is necessary here.
* Merge branch 'PHP-7.3' into PHP-7.4Nikita Popov2020-11-091-0/+2
| | | | | * PHP-7.3: Fixed bug #80310: Support for icu4c 68.1.
* Merge branch 'PHP-7.3' into PHP-7.4Nikita Popov2020-10-051-13/+13
| | | | | * PHP-7.3: Fix -Wimplicit-function-declaration in configure
* Use standard types in fopencookie testNikita Popov2020-08-051-4/+4
| | | | | Instead of internal __size_t / __off64_t types use ssize_t and off64_t. This makes it work on musl as well.
* Merge branch 'PHP-7.3' into PHP-7.4Nikita Popov2020-07-291-2/+2
| | | | | * PHP-7.3: Fix #79895: support = in PHP_CHECK_GCC_ARG m4 macro
* Merge branch 'PHP-7.3' into PHP-7.4Nikita Popov2020-05-111-1/+1
| | | | | * PHP-7.3: Fix default sendmail path when not found during build
* Fix #79532: sizeof off_t can be wrongChristoph M. Becker2020-04-291-0/+1
| | | | | | | | | We have to actually determine the proper `SIZEOF_OFF_T`. Interestingly, it is `4` on Windows x64. We also have to prevent the redefinition in pg_config.h. The clean solution would likely be to not include pg_config.h at all, but that's out of scope for BC reasons for now.
* Fix bug #79112: IMAP can't find OpenSSL during configureNikita Popov2020-01-201-7/+1
| | | | | | | | | | | | | | | Remove the check of PHP_OPENSSL inside SETUP_OPENSSL. It's the responsibility of the caller to determine whether they want to enable openssl or not. This makes SSL detection in IMAP work, which uses a different option. Additionally also clarify that --with-openssl-dir cannot actually be used to specify an OpenSSL directory -- these options just serve as a way to enable OpenSSL in extensions without also enabling the OpenSSL extension. They need to be renamed to something clearer in master. Closes GH-5091.
* Revert "Remove configure checks for supported instruction sets"Nikita Popov2019-11-041-0/+24
| | | | | | | | This reverts commit edccf32f7f36a8bc759b9482737e0c3efcb3a005. This was reported to cause issues for as yet unknown reasons in bug #78769. As this was intended as code cleanup, revert this from 7.4 at least. May reapply it to master later.
* Remove configure checks for supported instruction setsNikita Popov2019-10-311-24/+0
| | | | | | | | | | | | | | These were checking whether the instruction set is supported by the host CPU, however they were only used to condition on whether this instruction set is targeted at all. It would still use dynamic dispatch (e.g. based on ifunc resolvers) to select the actual implementation. Whether the target is guaranteed to support the instruction set without dispatch is determined based on pre-defined macros like __SSE2__. This removes the configure-time builtin cpu checks to remove confusion. Additionally this allows targeting an architecture that is newer than the host architecture.
* Add "-pthread" to EXTRA_LDFLAGS_PROGRAM as wellNikita Popov2019-10-141-0/+2
|
* Revert "Don't buid static libaraies when only DSO required"Dmitry Stogov2019-10-101-1/+1
| | | | This reverts commit f633c347574c0d814050b4bf2493e0cac6a5988c.
* Fixed bug #78614 (Does not compile with DTRACE anymore)Dmitry Stogov2019-10-041-2/+2
|
* Don't buid static libaraies when only DSO requiredDmitry Stogov2019-09-191-1/+1
|
* Remove duplicate socklen_t checkPeter Kokot2019-07-181-20/+0
| | | | | | - Use Autoconf's default AC_CHECK_TYPES Closes GH-4418
* Refactor undefining PACKAGE_* symbolsPeter Kokot2019-07-111-0/+16
| | | | | | | | | | Instead of patching configuration headers template generated by the given tools - autoheader, this moves patching these symbols to the configure step before creating and invoking the config.status and before the configuration header file is generated from the patched template. Closes GH-4374
* Simplify PHP_CHECK_PDO_INCLUDES callsPeter Kokot2019-07-081-1/+0
| | | | | | | Conditional checks were once used for backwards compatibility with phpize from PHP versions that didn't have this macro call yet. Closes GH-4376
* Remove PHP_DEBUG_MACROPeter Kokot2019-07-071-31/+0
| | | | | The macro is no longer used. The warning at the end of the configure script therefore is also no longer used.
* Remove some more Apache 1 left oversPeter Kokot2019-07-071-1/+1
| | | | | - warning in configure.ac is relevant for the sapi/apache - errors output redirected to /dev/null when checking Apache version
* Remove PHP_CHECK_CONFIGURE_OPTIONSPeter Kokot2019-07-021-55/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Instead of building a custom macro for checking configure options, Autoconf 2.62+ already outputs a warning at the beginning and the end of the output of configure script. It automatically detects correct and wrong options better. This is related also to bug #55634. So now instead a better way is the default Autoconf approach: This outputs a warning at the beginning and end of the configure output: ./configure --with-non-existing This results in fatal error: ./configure --non-existing configure: error: unrecognized option: `--non-existing' Try `./configure --help' for more information The `--enable-option-checking=fatal` results in fatal error for all non existing options: ./configure --with-non-existing --enable-option-checking=fatal configure: error: unrecognized options: --with-non-existing Closes GH-4348
* Remove warnings for bison and re2c checksPeter Kokot2019-06-271-6/+2
| | | | | | | | | | This patch removes warnings when lexer and parser files are already generated. For example, when downloading a PHP release. Realistically, it is not so trivial to rebuild lexer and parser files without removing them first. And considering that tarballs don't have cleaning tools such as Git, this would require manual removali. Related also to https://bugs.gentoo.org/593278
* Use a common setup macro to detect the Expat libraryHugh McMaster2019-06-041-0/+14
| | | | Closes GH-4221.
* Normalize comments in *nix build system m4 filesPeter Kokot2019-05-121-239/+280
| | | | | | | | | Normalization include: - Use dnl for everything that can be ommitted when configure is built in favor of the shell comment character # which is visible in the output. - Line length normalized to 80 columns - Dots for most of the one line sentences - Macro definitions include similar pattern header comments now
* Move acinclude.m4 to build/php.m4Peter Kokot2019-04-231-0/+2753
The acinclude.m4 file is in a usual Autotools build processed with Automake's aclocal tool. Since PHP currently doesn't use Automake and aclocal this file can be moved into the build directory. PHP build system currently generates a combined aclocal.m4 file that Autoconf can processes automatically. However, a newer practice is writing all local macros in separate dedicated files prefixed with package name, in PHP's case PHP_MACRO_NAME and putting them in a common `m4` directory. PHP uses currently `build` directory for this purpose. Name `php.m4` probably most resembles such file for PHP's case. PHP manually created the aclocal.m4 file from acinclude.m4 and build/libtool.m4. Which is also not a particularly good practice [1], so this patch also removes the generated alocal.m4 usage and uses m4_include() calls manually in the configure.ac and phpize.m4 files manually. - sort order is not important but can be alphabetical - list of *.m4 files prerequisites for configure script generation updated - Moving m4_include() before AC_INIT also removes all comments starting with hash character (`#`) in the included files. [1] https://autotools.io/autoconf/macros.html