diff options
author | Chris Robinson <[email protected]> | 2014-03-27 22:21:02 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2014-03-27 22:21:37 -0700 |
commit | 18620ab5e00fb4cba97f3aa2bfbc677dfe8376ef (patch) | |
tree | 0c0d5f465171413859a3b56e83d59b428511a16b | |
parent | d11d061b2c424f7b6a679a8461c274dbbfb8e077 (diff) |
Check for ftw and _wfindfirst
-rw-r--r-- | CMakeLists.txt | 8 | ||||
-rw-r--r-- | config.h.in | 16 |
2 files changed, 22 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 37aa57dd..cecb7e67 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -317,6 +317,8 @@ IF(NOT HAVE_C99_VLA) CHECK_INCLUDE_FILE(alloca.h HAVE_ALLOCA_H) ENDIF() CHECK_INCLUDE_FILE(malloc.h HAVE_MALLOC_H) +CHECK_INCLUDE_FILE(ftw.h HAVE_FTW_H) +CHECK_INCLUDE_FILE(io.h HAVE_IO_H) CHECK_INCLUDE_FILE(strings.h HAVE_STRINGS_H) CHECK_INCLUDE_FILE(cpuid.h HAVE_CPUID_H) CHECK_INCLUDE_FILE(sys/sysconf.h HAVE_SYS_SYSCONF_H) @@ -360,6 +362,12 @@ IF(HAVE_FLOAT_H) CHECK_SYMBOL_EXISTS(_controlfp float.h HAVE__CONTROLFP) CHECK_SYMBOL_EXISTS(__control87_2 float.h HAVE___CONTROL87_2) ENDIF() +IF(HAVE_FTW_H) + CHECK_SYMBOL_EXISTS(ftw ftw.h HAVE_FTW) +ENDIF() +IF(HAVE_IO_H) + CHECK_SYMBOL_EXISTS(_wfindfirst io.h HAVE__WFINDFIRST) +ENDIF() CHECK_FUNCTION_EXISTS(strtof HAVE_STRTOF) CHECK_FUNCTION_EXISTS(stat HAVE_STAT) diff --git a/config.h.in b/config.h.in index c80a7d56..b2faed9f 100644 --- a/config.h.in +++ b/config.h.in @@ -116,11 +116,17 @@ /* Define if we have arm_neon.h */ #cmakedefine HAVE_ARM_NEON_H +/* Define if we have alloca.h */ +#cmakedefine HAVE_ALLOCA_H + /* Define if we have malloc.h */ #cmakedefine HAVE_MALLOC_H -/* Define if we have alloca.h */ -#cmakedefine HAVE_ALLOCA_H +/* Define if we have ftw.h */ +#cmakedefine HAVE_FTW_H + +/* Define if we have io.h */ +#cmakedefine HAVE_IO_H /* Define if we have strings.h */ #cmakedefine HAVE_STRINGS_H @@ -152,6 +158,12 @@ /* Define if we have __control87_2() */ #cmakedefine HAVE___CONTROL87_2 +/* Define if we have ftw() */ +#cmakedefine HAVE_FTW + +/* Define if we have _wfindfirst() */ +#cmakedefine HAVE__WFINDFIRST + /* Define if we have pthread_setschedparam() */ #cmakedefine HAVE_PTHREAD_SETSCHEDPARAM |