php-src/build
Arnaud Le Blanc 11accb5cdf
Preferably include from build dir (#13516)
* Include from build dir first

This fixes out of tree builds by ensuring that configure artifacts are included
from the build dir.

Before, out of tree builds would preferably include files from the src dir, as
the include path was defined as follows (ignoring includes from ext/ and sapi/) :

    -I$(top_builddir)/main
    -I$(top_srcdir)
    -I$(top_builddir)/TSRM
    -I$(top_builddir)/Zend
    -I$(top_srcdir)/main
    -I$(top_srcdir)/Zend
    -I$(top_srcdir)/TSRM
    -I$(top_builddir)/

As a result, an out of tree build would include configure artifacts such as
`main/php_config.h` from the src dir.

After this change, the include path is defined as follows:

    -I$(top_builddir)/main
    -I$(top_builddir)
    -I$(top_srcdir)/main
    -I$(top_srcdir)
    -I$(top_builddir)/TSRM
    -I$(top_builddir)/Zend
    -I$(top_srcdir)/Zend
    -I$(top_srcdir)/TSRM

* Fix extension include path for out of tree builds

* Include config.h with the brackets form

`#include "config.h"` searches in the directory containing the including-file
before any other include path. This can include the wrong config.h when building
out of tree and a config.h exists in the source tree.

Using `#include <config.h>` uses exclusively the include path, and gives
priority to the build dir.
2024-06-26 00:26:43 +02:00
..
ax_check_compile_flag.m4 Update AX_CHECK_COMPILE_FLAG to serial 7 (#14217) 2024-05-13 21:15:20 +02:00
ax_func_which_gethostbyname_r.m4 Move Autoconf Archive macros to a common m4 dir 2019-04-23 20:37:31 +02:00
ax_gcc_func_attribute.m4 Fix AX_GCC_FUNC_ATTRIBUTE failure 2024-03-22 11:29:45 +01:00
config-stubs Remove unused Git attributes ident 2018-07-25 00:53:25 +02:00
config.guess [skip ci] Sync file permissions in Git repository 2024-02-20 17:58:47 +01:00
config.sub [skip ci] Sync file permissions in Git repository 2024-02-20 17:58:47 +01:00
gen_stub.php gen_stub: Intern the parameter name string for named arguments in internal attributes (#14595) 2024-06-19 08:06:50 +02:00
genif.sh Refactor genif.sh 2019-07-08 14:58:26 +02:00
libtool.m4 Fix GH-13727: Building with -Werror=strict-prototypes (#14029) 2024-04-22 21:21:40 +02:00
ltmain.sh Fix GH-13727: macro generating invalid call test prototypes fixes. 2024-03-18 06:53:39 +00:00
Makefile.gcov Remove unused gcov artifacts (#12786) 2023-11-27 02:07:05 +00:00
Makefile.global Preferably include from build dir (#13516) 2024-06-26 00:26:43 +02:00
order_by_dep.awk Fix PHP_ADD_EXTENSION_DEP without indentation 2021-06-10 11:48:25 +02:00
php.m4 Bump minimum libpq version to 10.0 (#14628) 2024-06-25 20:50:04 +02:00
php_cxx_compile_stdcxx.m4 Fix erroneous dnl appended in configure (#14013) 2024-04-21 17:23:22 +02:00
pkg.m4 Fix FSF address & update year to 2022 2022-03-19 18:25:29 +01:00
print_include.awk
shtool Fix FSF address & update year to 2022 2022-03-19 18:25:29 +01:00