aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--CMakeLists.txt9
1 files changed, 1 insertions, 8 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index ace3633c..d9296ed1 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -318,9 +318,6 @@ CHECK_C_SOURCE_COMPILES("int foo(const char *str, ...) __attribute__((format(pri
CHECK_INCLUDE_FILE(stdbool.h HAVE_STDBOOL_H)
CHECK_INCLUDE_FILE(stdalign.h HAVE_STDALIGN_H)
-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)
@@ -348,11 +345,7 @@ CHECK_SYMBOL_EXISTS(posix_memalign stdlib.h HAVE_POSIX_MEMALIGN)
CHECK_SYMBOL_EXISTS(_aligned_malloc malloc.h HAVE__ALIGNED_MALLOC)
CHECK_SYMBOL_EXISTS(lrintf math.h HAVE_LRINTF)
IF(NOT HAVE_C99_VLA)
- IF(HAVE_ALLOCA_H)
- CHECK_SYMBOL_EXISTS(alloca alloca.h HAVE_ALLOCA)
- ELSEIF(HAVE_MALLOC_H)
- CHECK_SYMBOL_EXISTS(alloca malloc.h HAVE_ALLOCA)
- ENDIF()
+ CHECK_SYMBOL_EXISTS(alloca malloc.h HAVE_ALLOCA)
IF(NOT HAVE_ALLOCA)
MESSAGE(FATAL_ERROR "No alloca function found, please report!")
ENDIF()