@@ -5,7 +5,6 @@ Project-wide configuration checks.
55include_guard (GLOBAL )
66
77include (CheckFunctionExists)
8- include (CheckIncludeFile)
98include (CheckIncludeFiles)
109include (CheckSourceCompiles)
1110include (CheckStructHasMember)
@@ -20,72 +19,72 @@ include(PHP/SearchLibraries)
2019# Check headers.
2120################################################################################
2221
23- check_include_file (alloca.h HAVE_ALLOCA_H)
24- check_include_file (arpa/inet.h HAVE_ARPA_INET_H)
25- check_include_file (sys/types.h HAVE_SYS_TYPES_H)
22+ check_include_files (alloca.h HAVE_ALLOCA_H)
23+ check_include_files (arpa/inet.h HAVE_ARPA_INET_H)
24+ check_include_files (sys/types.h HAVE_SYS_TYPES_H)
2625
2726if (HAVE_SYS_TYPES_H)
2827 # On Solaris/illumos arpa/nameser.h depends on sys/types.h.
2928 check_include_files("sys/types.h;arpa/nameser.h" HAVE_ARPA_NAMESER_H)
3029else ()
31- check_include_file (arpa/nameser.h HAVE_ARPA_NAMESER_H)
30+ check_include_files (arpa/nameser.h HAVE_ARPA_NAMESER_H)
3231endif ()
3332
34- check_include_file (dirent.h HAVE_DIRENT_H)
35- check_include_file (dlfcn.h HAVE_DLFCN_H)
36- check_include_file (dns.h HAVE_DNS_H)
37- check_include_file (fcntl.h HAVE_FCNTL_H)
38- check_include_file (grp.h HAVE_GRP_H)
39- check_include_file (ieeefp.h HAVE_IEEEFP_H)
40- check_include_file (langinfo.h HAVE_LANGINFO_H)
41- check_include_file (linux/sock_diag.h HAVE_LINUX_SOCK_DIAG_H)
42- check_include_file (netinet/in.h HAVE_NETINET_IN_H)
43- check_include_file (poll.h HAVE_POLL_H)
44- check_include_file (pty.h HAVE_PTY_H)
45- check_include_file (pwd.h HAVE_PWD_H)
33+ check_include_files (dirent.h HAVE_DIRENT_H)
34+ check_include_files (dlfcn.h HAVE_DLFCN_H)
35+ check_include_files (dns.h HAVE_DNS_H)
36+ check_include_files (fcntl.h HAVE_FCNTL_H)
37+ check_include_files (grp.h HAVE_GRP_H)
38+ check_include_files (ieeefp.h HAVE_IEEEFP_H)
39+ check_include_files (langinfo.h HAVE_LANGINFO_H)
40+ check_include_files (linux/sock_diag.h HAVE_LINUX_SOCK_DIAG_H)
41+ check_include_files (netinet/in.h HAVE_NETINET_IN_H)
42+ check_include_files (poll.h HAVE_POLL_H)
43+ check_include_files (pty.h HAVE_PTY_H)
44+ check_include_files (pwd.h HAVE_PWD_H)
4645
4746# BSD-based systems (FreeBSD<=13) need also netinet/in.h for resolv.h to work.
4847# https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=182466
4948if (HAVE_NETINET_IN_H)
5049 check_include_files("netinet/in.h;resolv.h" HAVE_RESOLV_H)
5150else ()
52- check_include_file (resolv.h HAVE_RESOLV_H)
51+ check_include_files (resolv.h HAVE_RESOLV_H)
5352endif ()
5453
55- check_include_file (strings .h HAVE_STRINGS_H)
56- check_include_file (sys/file.h HAVE_SYS_FILE_H)
57- check_include_file (sys/ioctl.h HAVE_SYS_IOCTL_H)
58- check_include_file (sys/ipc.h HAVE_SYS_IPC_H)
59- check_include_file (sys/loadavg.h HAVE_SYS_LOADAVG_H)
60- check_include_file (sys/mman.h HAVE_SYS_MMAN_H)
61- check_include_file (sys/mount.h HAVE_SYS_MOUNT_H)
62- check_include_file (sys/param.h HAVE_SYS_PARAM_H)
63- check_include_file (sys/poll.h HAVE_SYS_POLL_H)
64- check_include_file (sys/resource .h HAVE_SYS_RESOURCE_H)
65- check_include_file (sys/select.h HAVE_SYS_SELECT_H)
66- check_include_file (sys/socket.h HAVE_SYS_SOCKET_H)
67- check_include_file (sys/stat.h HAVE_SYS_STAT_H)
68- check_include_file (sys/statfs.h HAVE_SYS_STATFS_H)
69- check_include_file (sys/statvfs.h HAVE_SYS_STATVFS_H)
70- check_include_file (sys/sysexits.h HAVE_SYS_SYSEXITS_H)
71- check_include_file (sys/time.h HAVE_SYS_TIME_H)
72- check_include_file (sys/uio.h HAVE_SYS_UIO_H)
73- check_include_file (sys/utsname.h HAVE_SYS_UTSNAME_H)
54+ check_include_files (strings .h HAVE_STRINGS_H)
55+ check_include_files (sys/file.h HAVE_SYS_FILE_H)
56+ check_include_files (sys/ioctl.h HAVE_SYS_IOCTL_H)
57+ check_include_files (sys/ipc.h HAVE_SYS_IPC_H)
58+ check_include_files (sys/loadavg.h HAVE_SYS_LOADAVG_H)
59+ check_include_files (sys/mman.h HAVE_SYS_MMAN_H)
60+ check_include_files (sys/mount.h HAVE_SYS_MOUNT_H)
61+ check_include_files (sys/param.h HAVE_SYS_PARAM_H)
62+ check_include_files (sys/poll.h HAVE_SYS_POLL_H)
63+ check_include_files (sys/resource .h HAVE_SYS_RESOURCE_H)
64+ check_include_files (sys/select.h HAVE_SYS_SELECT_H)
65+ check_include_files (sys/socket.h HAVE_SYS_SOCKET_H)
66+ check_include_files (sys/stat.h HAVE_SYS_STAT_H)
67+ check_include_files (sys/statfs.h HAVE_SYS_STATFS_H)
68+ check_include_files (sys/statvfs.h HAVE_SYS_STATVFS_H)
69+ check_include_files (sys/sysexits.h HAVE_SYS_SYSEXITS_H)
70+ check_include_files (sys/time.h HAVE_SYS_TIME_H)
71+ check_include_files (sys/uio.h HAVE_SYS_UIO_H)
72+ check_include_files (sys/utsname.h HAVE_SYS_UTSNAME_H)
7473# Solaris <= 10, other systems have sys/statvfs.h.
75- check_include_file (sys/vfs.h HAVE_SYS_VFS_H)
76- check_include_file (sys/wait.h HAVE_SYS_WAIT_H)
77- check_include_file (sysexits.h HAVE_SYSEXITS_H)
78- check_include_file (syslog.h HAVE_SYSLOG_H)
79- check_include_file (unistd.h HAVE_UNISTD_H)
74+ check_include_files (sys/vfs.h HAVE_SYS_VFS_H)
75+ check_include_files (sys/wait.h HAVE_SYS_WAIT_H)
76+ check_include_files (sysexits.h HAVE_SYSEXITS_H)
77+ check_include_files (syslog.h HAVE_SYSLOG_H)
78+ check_include_files (unistd.h HAVE_UNISTD_H)
8079# QNX requires unix.h to allow functions in libunix to work properly.
81- check_include_file (unix .h HAVE_UNIX_H)
82- check_include_file (utime.h HAVE_UTIME_H)
80+ check_include_files (unix .h HAVE_UNIX_H)
81+ check_include_files (utime.h HAVE_UTIME_H)
8382
8483# Intel Intrinsics headers.
85- check_include_file (tmmintrin.h HAVE_TMMINTRIN_H)
86- check_include_file (nmmintrin.h HAVE_NMMINTRIN_H)
87- check_include_file (wmmintrin.h HAVE_WMMINTRIN_H)
88- check_include_file (immintrin.h HAVE_IMMINTRIN_H)
84+ check_include_files (tmmintrin.h HAVE_TMMINTRIN_H)
85+ check_include_files (nmmintrin.h HAVE_NMMINTRIN_H)
86+ check_include_files (wmmintrin.h HAVE_WMMINTRIN_H)
87+ check_include_files (immintrin.h HAVE_IMMINTRIN_H)
8988
9089################################################################################
9190# Check structs.
@@ -802,7 +801,7 @@ if(PHP_VALGRIND)
802801 if (TARGET Valgrind::Valgrind)
803802 cmake_push_check_state(RESET)
804803 set (CMAKE_REQUIRED_LIBRARIES Valgrind::Valgrind)
805- check_include_file (valgrind/cachegrind.h HAVE_VALGRIND_CACHEGRIND_H)
804+ check_include_files (valgrind/cachegrind.h HAVE_VALGRIND_CACHEGRIND_H)
806805 cmake_pop_check_state()
807806 endif ()
808807
0 commit comments