just tests (including a few new ones)
This commit is contained in:
parent
47c3f64eae
commit
cd41137cbc
@ -1,19 +1,9 @@
|
||||
include(CheckIncludeFile)
|
||||
include(CheckIncludeFileCXX)
|
||||
include(CheckLibraryExists)
|
||||
include(CheckSymbolExists)
|
||||
include(CheckFunctionExists)
|
||||
include(CheckTypeSize)
|
||||
include(CheckCXXSourceCompiles)
|
||||
include(TestBigEndian)
|
||||
|
||||
# Test signal handler return type (mimics AC_TYPE_SIGNAL)
|
||||
include(TestSignalType) #check if this is really needed as c89 defines this as void
|
||||
|
||||
# Test standard headers (mimics AC_HEADER_STDC)
|
||||
include(TestSTDC)
|
||||
|
||||
check_include_file( alloca.h HAVE_ALLOCA_H )
|
||||
check_include_file( arpa/inet.h HAVE_ARPA_INET_H )
|
||||
check_include_files(ctype.h HAVE_CTYPE_H)
|
||||
check_include_files(crypt.h HAVE_CRYPT_H)
|
||||
check_include_file( direct.h HAVE_DIRECT_H )
|
||||
check_include_file( dirent.h HAVE_DIRENT_H )
|
||||
check_include_file( dlfcn.h HAVE_DLFCN_H )
|
||||
@ -21,11 +11,11 @@ check_include_file( errno.h HAVE_ERRNO_H )
|
||||
check_include_file( execinfo.h HAVE_EXECINFO_H )
|
||||
check_include_file( fcntl.h HAVE_FCNTL_H )
|
||||
check_include_file( fenv.h HAVE_FENV_H )
|
||||
check_include_files(fmemopen.h HAVE_FMEMOPEN_H)
|
||||
check_include_file( fpu_control.h HAVE_FPU_CONTROL_H )
|
||||
check_include_file( ieeefp.h HAVE_IEEEFP_H )
|
||||
check_include_file( inttypes.h HAVE_INTTYPES_H )
|
||||
check_include_file( io.h HAVE_IO_H )
|
||||
check_include_file( Judy.h HAVE_JUDY_H)
|
||||
check_include_file( libgen.h HAVE_LIBGEN_H )
|
||||
check_include_file( LibLoaderAPI.h HAVE_LIBLOADERAPI_H )
|
||||
check_include_file( limits.h HAVE_LIMITS_H )
|
||||
@ -65,6 +55,7 @@ check_include_file( sys/select.h HAVE_SYS_SELECT_H )
|
||||
check_include_file( sys/shm.h HAVE_SYS_SHM_H )
|
||||
check_include_file( sys/socket.h HAVE_SYS_SOCKET_H )
|
||||
check_include_file( sys/stat.h HAVE_SYS_STAT_H )
|
||||
check_include_files(sys/time.h HAVE_SYS_TIME_H)
|
||||
check_include_file( sys/times.h HAVE_SYS_TIMES_H )
|
||||
check_include_file( sys/time.h HAVE_SYS_TIME_H )
|
||||
check_include_file( sys/types.h HAVE_SYS_TYPES_H )
|
||||
@ -110,7 +101,7 @@ endif (HAVE_LIBM)
|
||||
|
||||
check_library_exists( dl dlopen "" HAVE_LIBDL )
|
||||
if (HAVE_LIBDL)
|
||||
target_link_libraries(libYap dl)
|
||||
target_link_libraries(libYap dl)
|
||||
set( CMAKE_REQUIRED_LIBRARIES ${CMAKE_REQUIRED_LIBRARIES} dl )
|
||||
set(HAVE_DLOPEN 1)
|
||||
endif (HAVE_LIBDL)
|
||||
@ -141,10 +132,10 @@ if (WIN32)
|
||||
set(EXTRALIBS ${EXTRALIBS} ws2_32)
|
||||
endif (HAVE_LIBWS2_32)
|
||||
endif()
|
||||
|
||||
|
||||
check_library_exists( crypt crypt "" HAVE_LIBCRYPT )
|
||||
if (HAVE_LIBCRYPT)
|
||||
target_link_libraries(libYap crypt)
|
||||
target_link_libraries(libYap crypt)
|
||||
endif (HAVE_LIBCRYPT)
|
||||
|
||||
check_library_exists( judy Judy1Set "" HAVE_LIBJUDY )
|
||||
@ -157,12 +148,12 @@ endif (HAVE_LIBLOG)
|
||||
|
||||
# check_library_exists( nsl nis_add "" HAVE_LIBNSL )
|
||||
# if (HAVE_LIBNSL)
|
||||
# target_link_libraries(libYap nsl)
|
||||
# target_link_libraries(libYap nsl)
|
||||
# endif (HAVE_LIBNSL)
|
||||
|
||||
# check_library_exists( nss_dns main "" HAVE_LIBNSS_DNS )
|
||||
# if (HAVE_LIBNSS_DNS)
|
||||
# target_link_libraries(libYap nss_dns)
|
||||
# target_link_libraries(libYap nss_dns)
|
||||
# endif (HAVE_LIBNSS_DNS)
|
||||
|
||||
# check_library_exists( nss_files main "" HAVE_LIBNSS_FILES )
|
||||
@ -197,16 +188,19 @@ if (HAVE_LIBXNET)
|
||||
endif (HAVE_LIBXNET)
|
||||
|
||||
|
||||
check_function_exists(_NSGetEnviron HAVE__NSGETENVIRON)
|
||||
check_function_exists( access HAVE_ACCESS )
|
||||
check_function_exists( acosh HAVE_ACOSH )
|
||||
check_function_exists( asinh HAVE_ASINH )
|
||||
check_function_exists( atanh HAVE_ATANH )
|
||||
check_function_exists( basename HAVE_BASENAME )
|
||||
check_function_exists( chdir HAVE_CHDIR )
|
||||
check_function_exists(_chsize_s HAVE__CHSIZE_S)
|
||||
check_function_exists( clock HAVE_CLOCK )
|
||||
check_function_exists( clock_gettime HAVE_CLOCK_GETTIME )
|
||||
check_function_exists( crypt HAVE_CRYPT )
|
||||
check_function_exists( ctime HAVE_CTIME )
|
||||
check_function_exists(dlopen HAVE_DLOPEN)
|
||||
check_function_exists( dup2 HAVE_DUP2 )
|
||||
check_function_exists( dynarray HAVE_DYNARRAY )
|
||||
check_function_exists( environ HAVE_ENVIRON )
|
||||
@ -224,9 +218,11 @@ check_function_exists( fgetpos HAVE_FGETPOS )
|
||||
check_function_exists( finite HAVE_FINITE )
|
||||
check_symbol_exists( flsl <string.h> HAVE_FLSL )
|
||||
check_symbol_exists( flsll <string.h> HAVE_FLSLL )
|
||||
check_function_exists(fmemopen HAVE_FMEMOPEN)
|
||||
check_function_exists( fpclass HAVE_FPCLASS )
|
||||
check_function_exists( ftime HAVE_FTIME )
|
||||
check_function_exists( ftruncate HAVE_FTRUNCATE )
|
||||
check_function_exists(funopen HAVE_FUNOPEN)
|
||||
check_function_exists( gcc HAVE_GCC )
|
||||
check_function_exists( getcwd HAVE_GETCWD )
|
||||
check_function_exists( getenv HAVE_GETENV )
|
||||
@ -251,8 +247,22 @@ check_function_exists( isinf HAVE_ISINF )
|
||||
check_function_exists( isnan HAVE_ISNAN )
|
||||
check_function_exists( kill HAVE_KILL )
|
||||
check_function_exists( labs HAVE_LABS )
|
||||
check_function_exists( lgamma HAVE_LGAMMA )
|
||||
check_function_exists( drand48 HAVE_DRAND48 )
|
||||
check_function_exists( link HAVE_LINK)
|
||||
check_function_exists( localtime HAVE_LOCALTIME )
|
||||
check_function_exists( lstat HAVE_LSTAT )
|
||||
check_function_exists(mallinfo HAVE_MALLINFO)
|
||||
check_function_exists(mbscoll HAVE_MBSCOLL)
|
||||
check_function_exists(mbscasecoll HAVE_MBSCASECOLL)
|
||||
check_function_exists(mbsnrtowcs HAVE_MBSNRTOWCS)
|
||||
check_function_exists(memcpy HAVE_MEMCPY)
|
||||
check_function_exists(memmove HAVE_MEMMOVE)
|
||||
check_function_exists(mkstemp HAVE_MKSTEMP)
|
||||
check_function_exists(mktemp HAVE_MKTEMP)
|
||||
check_function_exists(nanosleep HAVE_NANOSLEEP)
|
||||
check_function_exists(mktime HAVE_MKTIME)
|
||||
check_function_exists(opendir HAVE_OPENDIR)
|
||||
check_function_exists(open_memstream HAVE_OPEN_MEMSTREAM)
|
||||
check_function_exists(putenv HAVE_PUTENV)
|
||||
check_function_exists( rand HAVE_RAND )
|
||||
check_function_exists( random HAVE_RANDOM )
|
||||
check_function_exists( readlink HAVE_READLINK )
|
||||
@ -321,4 +331,3 @@ check_function_exists( wordexp HAVE_WORDEXP )
|
||||
check_function_exists( _bool HAVE__BOOL )
|
||||
check_function_exists( _chsize_s HAVE__CHSIZE_S )
|
||||
check_function_exists( _NSGetEnviron HAVE__NSGETENVIRON )
|
||||
|
||||
|
Reference in New Issue
Block a user