File tree Expand file tree Collapse file tree 10 files changed +15
-15
lines changed Expand file tree Collapse file tree 10 files changed +15
-15
lines changed Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ function(_acl_check result)
6363 endif ()
6464
6565 if (NOT ACL_USE_USER_GROUP)
66- check_symbol_exists(acl_free " sys/acl.h" _acl_successful)
66+ check_symbol_exists(acl_free sys/acl.h _acl_successful)
6767 else ()
6868 check_source_compiles(C [[
6969 #include <sys/acl.h>
Original file line number Diff line number Diff line change @@ -78,7 +78,7 @@ endif()
7878if (NOT DEFINED Crypt_IS_BUILT_IN)
7979 cmake_push_check_state(RESET)
8080 set (CMAKE_REQUIRED_QUIET TRUE )
81- check_symbol_exists(crypt " unistd.h" Crypt_IS_BUILT_IN)
81+ check_symbol_exists(crypt unistd.h Crypt_IS_BUILT_IN)
8282 cmake_pop_check_state()
8383endif ()
8484
@@ -122,7 +122,7 @@ else()
122122 set (CMAKE_REQUIRED_INCLUDES ${Crypt_INCLUDE_DIR} )
123123 set (CMAKE_REQUIRED_LIBRARIES ${Crypt_LIBRARY} )
124124 set (CMAKE_REQUIRED_QUIET TRUE )
125- check_symbol_exists(crypt " unistd.h" _Crypt_SANITY_CHECK)
125+ check_symbol_exists(crypt unistd.h _Crypt_SANITY_CHECK)
126126 cmake_pop_check_state()
127127
128128 mark_as_advanced (Crypt_INCLUDE_DIR Crypt_LIBRARY)
Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ endif()
5858if (NOT DEFINED Ndbm_IS_BUILT_IN)
5959 cmake_push_check_state(RESET)
6060 set (CMAKE_REQUIRED_QUIET TRUE )
61- check_symbol_exists(dbm_open " ndbm.h" Ndbm_IS_BUILT_IN)
61+ check_symbol_exists(dbm_open ndbm.h Ndbm_IS_BUILT_IN)
6262 cmake_pop_check_state()
6363endif ()
6464
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ include(CMakePushCheckState)
3737
3838cmake_push_check_state(RESET)
3939 set (CMAKE_REQUIRED_DEFINITIONS -D_GNU_SOURCE)
40- check_symbol_exists(fopencookie " stdio.h" _HAVE_FOPENCOOKIE)
40+ check_symbol_exists(fopencookie stdio.h _HAVE_FOPENCOOKIE)
4141cmake_pop_check_state()
4242
4343if (NOT _HAVE_FOPENCOOKIE)
Original file line number Diff line number Diff line change @@ -93,10 +93,10 @@ block()
9393 endif ()
9494
9595 if (HAVE_SYS_MKDEV_H)
96- check_symbol_exists(major " sys/mkdev.h" MAJOR_IN_MKDEV)
96+ check_symbol_exists(major sys/mkdev.h MAJOR_IN_MKDEV)
9797 list (APPEND headers "sys/mkdev.h" )
9898 elseif (HAVE_SYS_SYSMACROS_H)
99- check_symbol_exists(major " sys/sysmacros.h" MAJOR_IN_SYSMACROS)
99+ check_symbol_exists(major sys/sysmacros.h MAJOR_IN_SYSMACROS)
100100 list (APPEND headers "sys/sysmacros.h" )
101101 endif ()
102102
Original file line number Diff line number Diff line change @@ -94,11 +94,11 @@ if(TARGET Iconv::Iconv)
9494 # Sanity and library type checks.
9595 if (Iconv_IS_BUILT_IN)
9696 # When iconv is built into C library, first check if iconv function exists.
97- check_symbol_exists(iconv " iconv.h" _HAVE_ICONV)
97+ check_symbol_exists(iconv iconv.h _HAVE_ICONV)
9898
9999 # And if not, then check for libiconv function.
100100 if (NOT _HAVE_ICONV)
101- check_symbol_exists(libiconv " iconv.h" HAVE_LIBICONV)
101+ check_symbol_exists(libiconv iconv.h HAVE_LIBICONV)
102102 endif ()
103103 else ()
104104 check_library_exists(Iconv::Iconv libiconv "" HAVE_LIBICONV)
@@ -124,7 +124,7 @@ if(TARGET Iconv::Iconv)
124124 cmake_push_check_state(RESET)
125125 set (CMAKE_REQUIRED_LIBRARIES Iconv::Iconv)
126126 set (CMAKE_REQUIRED_QUIET TRUE )
127- check_symbol_exists(_libiconv_version " iconv.h" _have_gnu_libiconv)
127+ check_symbol_exists(_libiconv_version iconv.h _have_gnu_libiconv)
128128 cmake_pop_check_state()
129129 if (_have_gnu_libiconv)
130130 message (CHECK_PASS "GNU libiconv" )
Original file line number Diff line number Diff line change @@ -102,7 +102,7 @@ target_compile_definitions(
102102
103103# The libmbfl configuration header.
104104check_include_files(strings .h HAVE_STRINGS_H)
105- check_symbol_exists(strcasecmp " strings.h" HAVE_STRCASECMP)
105+ check_symbol_exists(strcasecmp strings .h HAVE_STRCASECMP)
106106
107107cmake_path(
108108 RELATIVE_PATH
Original file line number Diff line number Diff line change @@ -327,7 +327,7 @@ add_feature_info(
327327# Configuration checks.
328328################################################################################
329329
330- check_symbol_exists(mprotect " sys/mman.h" HAVE_MPROTECT)
330+ check_symbol_exists(mprotect sys/mman.h HAVE_MPROTECT)
331331
332332# For FreeBSD.
333333check_symbol_exists(shm_create_largepage "sys/mman.h" HAVE_SHM_CREATE_LARGEPAGE)
Original file line number Diff line number Diff line change @@ -176,7 +176,7 @@ target_link_libraries(php_ext_openssl PUBLIC OpenSSL::SSL)
176176if (TARGET OpenSSL::SSL)
177177 cmake_push_check_state(RESET)
178178 set (CMAKE_REQUIRED_LIBRARIES OpenSSL::SSL)
179- check_symbol_exists(RAND_egd " openssl/rand.h" HAVE_RAND_EGD)
179+ check_symbol_exists(RAND_egd openssl/rand.h HAVE_RAND_EGD)
180180 cmake_pop_check_state()
181181
182182 if (OPENSSL_VERSION VERSION_LESS 3 AND PHP_EXT_OPENSSL_LEGACY_PROVIDER)
Original file line number Diff line number Diff line change @@ -50,8 +50,8 @@ target_sources(
5050
5151target_compile_definitions (php_ext_random PRIVATE ZEND_ENABLE_STATIC_TSRMLS_CACHE)
5252
53- check_symbol_exists(arc4random_buf " stdlib.h" HAVE_ARC4RANDOM_BUF)
54- check_symbol_exists(getrandom " sys/random.h" HAVE_GETRANDOM)
53+ check_symbol_exists(arc4random_buf stdlib.h HAVE_ARC4RANDOM_BUF)
54+ check_symbol_exists(getrandom sys/random.h HAVE_GETRANDOM)
5555
5656# Check for CCRandomGenerateBytes. Header was absent in previous macOS releases.
5757block()
You can’t perform that action at this time.
0 commit comments