@@ -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,39 +295,39 @@ 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 (lchown " unistd.h" HAVE_LCHOWN )
307
- 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 (lchown unistd.h HAVE_LCHOWN )
307
+ check_symbol_exists (memcntl sys/mman.h HAVE_MEMCNTL )
308
308
309
309
cmake_push_check_state (RESET )
310
310
set (CMAKE_REQUIRED_DEFINITIONS -D_GNU_SOURCE )
311
- check_symbol_exists (memfd_create " sys/mman.h" HAVE_MEMFD_CREATE )
311
+ check_symbol_exists (memfd_create sys/mman.h HAVE_MEMFD_CREATE )
312
312
cmake_pop_check_state ()
313
313
314
- check_symbol_exists (mkstemp " stdlib.h" HAVE_MKSTEMP )
315
- check_symbol_exists (mmap " sys/mman.h" HAVE_MMAP )
316
- check_symbol_exists (nice " unistd.h" HAVE_NICE )
317
- check_symbol_exists (nl_langinfo " langinfo.h" HAVE_NL_LANGINFO )
318
- check_symbol_exists (prctl " sys/prctl.h" HAVE_PRCTL )
319
- check_symbol_exists (procctl " sys/procctl.h" HAVE_PROCCTL )
320
- check_symbol_exists (poll " poll.h" HAVE_POLL )
314
+ check_symbol_exists (mkstemp stdlib.h HAVE_MKSTEMP )
315
+ check_symbol_exists (mmap sys/mman.h HAVE_MMAP )
316
+ check_symbol_exists (nice unistd.h HAVE_NICE )
317
+ check_symbol_exists (nl_langinfo langinfo.h HAVE_NL_LANGINFO )
318
+ check_symbol_exists (prctl sys/prctl.h HAVE_PRCTL )
319
+ check_symbol_exists (procctl sys/procctl.h HAVE_PROCCTL )
320
+ check_symbol_exists (poll poll.h HAVE_POLL )
321
321
check_symbol_exists (
322
322
pthread_jit_write_protect_np
323
- " pthread.h"
323
+ pthread.h
324
324
HAVE_PTHREAD_JIT_WRITE_PROTECT_NP
325
325
)
326
- check_symbol_exists (putenv " stdlib.h" HAVE_PUTENV )
327
- check_symbol_exists (scandir " dirent.h" HAVE_SCANDIR )
328
- check_symbol_exists (setitimer " sys/time.h" HAVE_SETITIMER )
329
- check_symbol_exists (setenv " stdlib.h" HAVE_SETENV )
330
- check_symbol_exists (sigprocmask " signal.h" HAVE_SIGPROCMASK )
326
+ check_symbol_exists (putenv stdlib.h HAVE_PUTENV )
327
+ check_symbol_exists (scandir dirent.h HAVE_SCANDIR )
328
+ check_symbol_exists (setitimer sys/time.h HAVE_SETITIMER )
329
+ check_symbol_exists (setenv stdlib.h HAVE_SETENV )
330
+ check_symbol_exists (sigprocmask signal.h HAVE_SIGPROCMASK )
331
331
332
332
# Check for statfs().
333
333
block ()
@@ -345,39 +345,39 @@ block()
345
345
check_symbol_exists (statfs "${headers} " HAVE_STATFS )
346
346
endblock ()
347
347
348
- check_symbol_exists (statvfs " sys/statvfs.h" HAVE_STATVFS )
349
- check_symbol_exists (std_syslog " sys/syslog.h" HAVE_STD_SYSLOG )
350
- check_symbol_exists (strcasecmp " strings.h" HAVE_STRCASECMP )
351
- check_symbol_exists (strnlen " string.h" HAVE_STRNLEN )
352
- check_symbol_exists (symlink " unistd.h" HAVE_SYMLINK )
353
- check_symbol_exists (tzset " time.h" HAVE_TZSET )
354
- check_symbol_exists (unsetenv " stdlib.h" HAVE_UNSETENV )
355
- check_symbol_exists (usleep " unistd.h" HAVE_USLEEP )
356
- check_symbol_exists (utime " utime.h" HAVE_UTIME )
348
+ check_symbol_exists (statvfs sys/statvfs.h HAVE_STATVFS )
349
+ check_symbol_exists (std_syslog sys/syslog.h HAVE_STD_SYSLOG )
350
+ check_symbol_exists (strcasecmp strings .h HAVE_STRCASECMP )
351
+ check_symbol_exists (strnlen string .h HAVE_STRNLEN )
352
+ check_symbol_exists (symlink unistd.h HAVE_SYMLINK )
353
+ check_symbol_exists (tzset time.h HAVE_TZSET )
354
+ check_symbol_exists (unsetenv stdlib.h HAVE_UNSETENV )
355
+ check_symbol_exists (usleep unistd.h HAVE_USLEEP )
356
+ check_symbol_exists (utime utime.h HAVE_UTIME )
357
357
358
358
cmake_push_check_state (RESET )
359
359
set (CMAKE_REQUIRED_DEFINITIONS -D_GNU_SOURCE )
360
- check_symbol_exists (vasprintf " stdio.h" HAVE_VASPRINTF )
360
+ check_symbol_exists (vasprintf stdio.h HAVE_VASPRINTF )
361
361
cmake_pop_check_state ()
362
362
363
363
cmake_push_check_state (RESET )
364
364
set (CMAKE_REQUIRED_DEFINITIONS -D_GNU_SOURCE )
365
- check_symbol_exists (asprintf " stdio.h" HAVE_ASPRINTF )
365
+ check_symbol_exists (asprintf stdio.h HAVE_ASPRINTF )
366
366
cmake_pop_check_state ()
367
367
368
368
cmake_push_check_state (RESET )
369
369
set (CMAKE_REQUIRED_DEFINITIONS -D_GNU_SOURCE )
370
- check_symbol_exists (memmem " string.h" HAVE_MEMMEM )
370
+ check_symbol_exists (memmem string .h HAVE_MEMMEM )
371
371
cmake_pop_check_state ()
372
372
373
373
cmake_push_check_state (RESET )
374
374
set (CMAKE_REQUIRED_DEFINITIONS -D_GNU_SOURCE )
375
- check_symbol_exists (memrchr " string.h" HAVE_MEMRCHR )
375
+ check_symbol_exists (memrchr string .h HAVE_MEMRCHR )
376
376
cmake_pop_check_state ()
377
377
378
- check_symbol_exists (strlcat " string.h" HAVE_STRLCAT )
379
- check_symbol_exists (strlcpy " string.h" HAVE_STRLCPY )
380
- check_symbol_exists (explicit_bzero " string.h" HAVE_EXPLICIT_BZERO )
378
+ check_symbol_exists (strlcat string .h HAVE_STRLCAT )
379
+ check_symbol_exists (strlcpy string .h HAVE_STRLCPY )
380
+ check_symbol_exists (explicit_bzero string .h HAVE_EXPLICIT_BZERO )
381
381
382
382
# Check reentrant functions.
383
383
include (PHP/CheckReentrantFunctions )
@@ -444,12 +444,12 @@ include(PHP/CheckFlushIo)
444
444
445
445
if (HAVE_ALLOCA_H )
446
446
# Most *.nix systems.
447
- check_symbol_exists (alloca " alloca.h" HAVE_ALLOCA )
447
+ check_symbol_exists (alloca alloca.h HAVE_ALLOCA )
448
448
elseif (CMAKE_SYSTEM_NAME STREQUAL "Windows" )
449
- check_symbol_exists (alloca " malloc.h" HAVE_ALLOCA )
449
+ check_symbol_exists (alloca malloc.h HAVE_ALLOCA )
450
450
else ()
451
451
# BSD-based systems.
452
- check_symbol_exists (alloca " stdlib.h" HAVE_ALLOCA )
452
+ check_symbol_exists (alloca stdlib.h HAVE_ALLOCA )
453
453
endif ()
454
454
455
455
message (CHECK_START "Checking whether the compiler supports __alignof__" )
0 commit comments