@@ -254,9 +254,9 @@ include(PHP/CheckAVX512)
254
254
# Check functions.
255
255
################################################################################
256
256
257
- check_symbol_exists (alphasort " dirent.h" HAVE_ALPHASORT )
258
- check_symbol_exists (explicit_memset " string.h" HAVE_EXPLICIT_MEMSET )
259
- check_symbol_exists (fdatasync " unistd.h" HAVE_FDATASYNC )
257
+ check_symbol_exists (alphasort dirent.h HAVE_ALPHASORT )
258
+ check_symbol_exists (explicit_memset string .h HAVE_EXPLICIT_MEMSET )
259
+ check_symbol_exists (fdatasync unistd.h HAVE_FDATASYNC )
260
260
# The fdatasync declaration on macOS is missing in headers, yet is in C library.
261
261
if (NOT HAVE_FDATASYNC )
262
262
unset (HAVE_FDATASYNC CACHE )
@@ -275,9 +275,9 @@ block()
275
275
check_symbol_exists (flock "${headers} " HAVE_FLOCK )
276
276
endblock ()
277
277
278
- check_symbol_exists (ftok " sys/ipc.h" HAVE_FTOK )
279
- check_symbol_exists (funopen " stdio.h" HAVE_FUNOPEN )
280
- check_symbol_exists (getcwd " unistd.h" HAVE_GETCWD )
278
+ check_symbol_exists (ftok sys/ipc.h HAVE_FTOK )
279
+ check_symbol_exists (funopen stdio.h HAVE_FUNOPEN )
280
+ check_symbol_exists (getcwd unistd.h HAVE_GETCWD )
281
281
282
282
block ()
283
283
set (headers stdlib.h )
@@ -295,41 +295,41 @@ block()
295
295
check_symbol_exists (getloadavg "${headers} " HAVE_GETLOADAVG )
296
296
endblock ()
297
297
298
- check_symbol_exists (getlogin " unistd.h" HAVE_GETLOGIN )
299
- check_symbol_exists (getrusage " sys/resource.h" HAVE_GETRUSAGE )
300
- check_symbol_exists (gettimeofday " sys/time.h" HAVE_GETTIMEOFDAY )
301
- check_symbol_exists (getpwnam_r " pwd.h" HAVE_GETPWNAM_R )
302
- check_symbol_exists (getgrnam_r " grp.h" HAVE_GETGRNAM_R )
303
- check_symbol_exists (getpwuid_r " pwd.h" HAVE_GETPWUID_R )
304
- check_symbol_exists (getwd " unistd.h" HAVE_GETWD )
305
- check_symbol_exists (glob " glob.h" HAVE_GLOB )
306
- check_symbol_exists (issetugid " unistd.h" HAVE_ISSETUGID )
307
- check_symbol_exists (lchown " unistd.h" HAVE_LCHOWN )
308
- check_symbol_exists (memcntl " sys/mman.h" HAVE_MEMCNTL )
298
+ check_symbol_exists (getlogin unistd.h HAVE_GETLOGIN )
299
+ check_symbol_exists (getrusage sys/resource.h HAVE_GETRUSAGE )
300
+ check_symbol_exists (gettimeofday sys/time.h HAVE_GETTIMEOFDAY )
301
+ check_symbol_exists (getpwnam_r pwd.h HAVE_GETPWNAM_R )
302
+ check_symbol_exists (getgrnam_r grp.h HAVE_GETGRNAM_R )
303
+ check_symbol_exists (getpwuid_r pwd.h HAVE_GETPWUID_R )
304
+ check_symbol_exists (getwd unistd.h HAVE_GETWD )
305
+ check_symbol_exists (glob glob.h HAVE_GLOB )
306
+ check_symbol_exists (issetugid unistd.h HAVE_ISSETUGID )
307
+ check_symbol_exists (lchown unistd.h HAVE_LCHOWN )
308
+ check_symbol_exists (memcntl sys/mman.h HAVE_MEMCNTL )
309
309
310
310
cmake_push_check_state (RESET )
311
311
set (CMAKE_REQUIRED_DEFINITIONS -D_GNU_SOURCE )
312
- check_symbol_exists (memfd_create " sys/mman.h" HAVE_MEMFD_CREATE )
312
+ check_symbol_exists (memfd_create sys/mman.h HAVE_MEMFD_CREATE )
313
313
cmake_pop_check_state ()
314
314
315
- check_symbol_exists (mkstemp " stdlib.h" HAVE_MKSTEMP )
316
- check_symbol_exists (mmap " sys/mman.h" HAVE_MMAP )
317
- check_symbol_exists (nice " unistd.h" HAVE_NICE )
318
- check_symbol_exists (nl_langinfo " langinfo.h" HAVE_NL_LANGINFO )
319
- check_symbol_exists (prctl " sys/prctl.h" HAVE_PRCTL )
320
- check_symbol_exists (procctl " sys/procctl.h" HAVE_PROCCTL )
321
- check_symbol_exists (poll " poll.h" HAVE_POLL )
315
+ check_symbol_exists (mkstemp stdlib.h HAVE_MKSTEMP )
316
+ check_symbol_exists (mmap sys/mman.h HAVE_MMAP )
317
+ check_symbol_exists (nice unistd.h HAVE_NICE )
318
+ check_symbol_exists (nl_langinfo langinfo.h HAVE_NL_LANGINFO )
319
+ check_symbol_exists (prctl sys/prctl.h HAVE_PRCTL )
320
+ check_symbol_exists (procctl sys/procctl.h HAVE_PROCCTL )
321
+ check_symbol_exists (poll poll.h HAVE_POLL )
322
322
check_symbol_exists (
323
323
pthread_jit_write_protect_np
324
- " pthread.h"
324
+ pthread.h
325
325
HAVE_PTHREAD_JIT_WRITE_PROTECT_NP
326
326
)
327
- check_symbol_exists (putenv " stdlib.h" HAVE_PUTENV )
328
- check_symbol_exists (reallocarray " stdlib.h" HAVE_REALLOCARRAY )
329
- check_symbol_exists (scandir " dirent.h" HAVE_SCANDIR )
330
- check_symbol_exists (setitimer " sys/time.h" HAVE_SETITIMER )
331
- check_symbol_exists (setenv " stdlib.h" HAVE_SETENV )
332
- check_symbol_exists (sigprocmask " signal.h" HAVE_SIGPROCMASK )
327
+ check_symbol_exists (putenv stdlib.h HAVE_PUTENV )
328
+ check_symbol_exists (reallocarray stdlib.h HAVE_REALLOCARRAY )
329
+ check_symbol_exists (scandir dirent.h HAVE_SCANDIR )
330
+ check_symbol_exists (setitimer sys/time.h HAVE_SETITIMER )
331
+ check_symbol_exists (setenv stdlib.h HAVE_SETENV )
332
+ check_symbol_exists (sigprocmask signal.h HAVE_SIGPROCMASK )
333
333
334
334
# Check for statfs().
335
335
block ()
@@ -347,39 +347,39 @@ block()
347
347
check_symbol_exists (statfs "${headers} " HAVE_STATFS )
348
348
endblock ()
349
349
350
- check_symbol_exists (statvfs " sys/statvfs.h" HAVE_STATVFS )
351
- check_symbol_exists (std_syslog " sys/syslog.h" HAVE_STD_SYSLOG )
352
- check_symbol_exists (strcasecmp " strings.h" HAVE_STRCASECMP )
353
- check_symbol_exists (strnlen " string.h" HAVE_STRNLEN )
354
- check_symbol_exists (symlink " unistd.h" HAVE_SYMLINK )
355
- check_symbol_exists (tzset " time.h" HAVE_TZSET )
356
- check_symbol_exists (unsetenv " stdlib.h" HAVE_UNSETENV )
357
- check_symbol_exists (usleep " unistd.h" HAVE_USLEEP )
358
- check_symbol_exists (utime " utime.h" HAVE_UTIME )
350
+ check_symbol_exists (statvfs sys/statvfs.h HAVE_STATVFS )
351
+ check_symbol_exists (std_syslog sys/syslog.h HAVE_STD_SYSLOG )
352
+ check_symbol_exists (strcasecmp strings .h HAVE_STRCASECMP )
353
+ check_symbol_exists (strnlen string .h HAVE_STRNLEN )
354
+ check_symbol_exists (symlink unistd.h HAVE_SYMLINK )
355
+ check_symbol_exists (tzset time.h HAVE_TZSET )
356
+ check_symbol_exists (unsetenv stdlib.h HAVE_UNSETENV )
357
+ check_symbol_exists (usleep unistd.h HAVE_USLEEP )
358
+ check_symbol_exists (utime utime.h HAVE_UTIME )
359
359
360
360
cmake_push_check_state (RESET )
361
361
set (CMAKE_REQUIRED_DEFINITIONS -D_GNU_SOURCE )
362
- check_symbol_exists (vasprintf " stdio.h" HAVE_VASPRINTF )
362
+ check_symbol_exists (vasprintf stdio.h HAVE_VASPRINTF )
363
363
cmake_pop_check_state ()
364
364
365
365
cmake_push_check_state (RESET )
366
366
set (CMAKE_REQUIRED_DEFINITIONS -D_GNU_SOURCE )
367
- check_symbol_exists (asprintf " stdio.h" HAVE_ASPRINTF )
367
+ check_symbol_exists (asprintf stdio.h HAVE_ASPRINTF )
368
368
cmake_pop_check_state ()
369
369
370
370
cmake_push_check_state (RESET )
371
371
set (CMAKE_REQUIRED_DEFINITIONS -D_GNU_SOURCE )
372
- check_symbol_exists (memmem " string.h" HAVE_MEMMEM )
372
+ check_symbol_exists (memmem string .h HAVE_MEMMEM )
373
373
cmake_pop_check_state ()
374
374
375
375
cmake_push_check_state (RESET )
376
376
set (CMAKE_REQUIRED_DEFINITIONS -D_GNU_SOURCE )
377
- check_symbol_exists (memrchr " string.h" HAVE_MEMRCHR )
377
+ check_symbol_exists (memrchr string .h HAVE_MEMRCHR )
378
378
cmake_pop_check_state ()
379
379
380
- check_symbol_exists (strlcat " string.h" HAVE_STRLCAT )
381
- check_symbol_exists (strlcpy " string.h" HAVE_STRLCPY )
382
- check_symbol_exists (explicit_bzero " string.h" HAVE_EXPLICIT_BZERO )
380
+ check_symbol_exists (strlcat string .h HAVE_STRLCAT )
381
+ check_symbol_exists (strlcpy string .h HAVE_STRLCPY )
382
+ check_symbol_exists (explicit_bzero string .h HAVE_EXPLICIT_BZERO )
383
383
384
384
# Check reentrant functions.
385
385
include (PHP/CheckReentrantFunctions )
@@ -446,12 +446,12 @@ include(PHP/CheckFlushIo)
446
446
447
447
if (HAVE_ALLOCA_H )
448
448
# Most *.nix systems.
449
- check_symbol_exists (alloca " alloca.h" HAVE_ALLOCA )
449
+ check_symbol_exists (alloca alloca.h HAVE_ALLOCA )
450
450
elseif (CMAKE_SYSTEM_NAME STREQUAL "Windows" )
451
- check_symbol_exists (alloca " malloc.h" HAVE_ALLOCA )
451
+ check_symbol_exists (alloca malloc.h HAVE_ALLOCA )
452
452
else ()
453
453
# BSD-based systems.
454
- check_symbol_exists (alloca " stdlib.h" HAVE_ALLOCA )
454
+ check_symbol_exists (alloca stdlib.h HAVE_ALLOCA )
455
455
endif ()
456
456
457
457
message (CHECK_START "Checking whether the compiler supports __alignof__" )
0 commit comments