CMakeLists.txt
changeset 8090 0098d4459b7a
parent 8089 de8b6fdf6544
child 8094 9efaae827924
equal deleted inserted replaced
8089:de8b6fdf6544 8090:0098d4459b7a
   501     check_symbol_exists(M_PI math.h HAVE_M_PI)
   501     check_symbol_exists(M_PI math.h HAVE_M_PI)
   502     # TODO: refine the mprotect check
   502     # TODO: refine the mprotect check
   503     check_c_source_compiles("#include <sys/types.h>
   503     check_c_source_compiles("#include <sys/types.h>
   504                              #include <sys/mman.h>
   504                              #include <sys/mman.h>
   505                              int main() { }" HAVE_MPROTECT)
   505                              int main() { }" HAVE_MPROTECT)
   506     # FIXME: we don't care if you have snprintf, etc, any more. We only care if you have vsnprintf. Clean this up.
       
   507     foreach(_FN
   506     foreach(_FN
   508             strtod malloc calloc realloc free getenv setenv putenv unsetenv
   507             strtod malloc calloc realloc free getenv setenv putenv unsetenv
   509             qsort abs bcopy memset memcpy memmove memcmp strlen strlcpy strlcat
   508             qsort abs bcopy memset memcpy memmove memcmp strlen strlcpy strlcat
   510             strdup _strrev _strupr _strlwr strchr strrchr strstr itoa _ltoa
   509             strdup _strrev _strupr _strlwr strchr strrchr strstr itoa _ltoa
   511             _uitoa _ultoa strtol strtoul _i64toa _ui64toa strtoll strtoull
   510             _uitoa _ultoa strtol strtoul _i64toa _ui64toa strtoll strtoull
   512             atoi atof strcmp strncmp _stricmp strcasecmp _strnicmp strncasecmp
   511             atoi atof strcmp strncmp _stricmp strcasecmp _strnicmp strncasecmp
   513             vsscanf snprintf vsnprintf fseeko fseeko64 sigaction setjmp
   512             vsscanf vsnprintf fseeko fseeko64 sigaction setjmp
   514             nanosleep sysconf sysctlbyname
   513             nanosleep sysconf sysctlbyname
   515             )
   514             )
   516       string(TOUPPER ${_FN} _UPPER)
   515       string(TOUPPER ${_FN} _UPPER)
   517       set(_HAVEVAR "HAVE_${_UPPER}")
   516       set(_HAVEVAR "HAVE_${_UPPER}")
   518       check_function_exists("${_FN}" ${_HAVEVAR})
   517       check_function_exists("${_FN}" ${_HAVEVAR})