Skip to content

Commit

Permalink
expat 2017-12-12 (36f8db49)
Browse files Browse the repository at this point in the history
Code extracted from:

    https://gitlab.kitware.com/third-party/expat.git

at commit 36f8db49080af33d676ec6b2706573054cacc680 (for/vtk).
  • Loading branch information
kwrobot authored and bradking committed Dec 13, 2017
1 parent 45bb943 commit 2dd0d2c
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions ConfigureChecks.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ include(CheckCCompilerFlag)
include(CheckCSourceCompiles)
include(CheckIncludeFile)
include(CheckIncludeFiles)
include(CheckFunctionExists)
include(CheckSymbolExists)
include(TestBigEndian)

Expand All @@ -18,21 +17,19 @@ check_include_file("sys/stat.h" HAVE_SYS_STAT_H)
check_include_file("sys/types.h" HAVE_SYS_TYPES_H)
check_include_file("unistd.h" HAVE_UNISTD_H)

check_function_exists("getpagesize" HAVE_GETPAGESIZE)
check_function_exists("getrandom" HAVE_GETRANDOM)
check_function_exists("SYS_getrandom" HAVE_SYSCALL_GETRANDOM)
check_function_exists("arc4random_buf" HAVE_ARC4RANDOM_BUF)
check_function_exists("bcopy" HAVE_BCOPY)
check_symbol_exists("getpagesize" "unistd.h" HAVE_GETPAGESIZE)
check_symbol_exists("getrandom" "sys/random.h" HAVE_GETRANDOM)
check_symbol_exists("bcopy" "strings.h" HAVE_BCOPY)
check_symbol_exists("memmove" "string.h" HAVE_MEMMOVE)
check_function_exists("mmap" HAVE_MMAP)
check_function_exists("getrandom" HAVE_GETRANDOM)
check_symbol_exists("mmap" "sys/mman.h" HAVE_MMAP)
check_symbol_exists("getrandom" "sys/random.h" HAVE_GETRANDOM)

if(USE_libbsd)
set(CMAKE_REQUIRED_LIBRARIES "${LIB_BSD}")
endif()
check_function_exists("arc4random_buf" HAVE_ARC4RANDOM_BUF)
check_symbol_exists("arc4random_buf" "stdlib.h" HAVE_ARC4RANDOM_BUF)
if(NOT HAVE_ARC4RANDOM_BUF)
check_function_exists("arc4random" HAVE_ARC4RANDOM)
check_symbol_exists("arc4random" "stdlib.h" HAVE_ARC4RANDOM)
endif()
set(CMAKE_REQUIRED_LIBRARIES)

Expand Down

0 comments on commit 2dd0d2c

Please sign in to comment.