summaryrefslogtreecommitdiff
path: root/cmake/config-ix.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'cmake/config-ix.cmake')
-rwxr-xr-xcmake/config-ix.cmake19
1 files changed, 19 insertions, 0 deletions
diff --git a/cmake/config-ix.cmake b/cmake/config-ix.cmake
index 85c4d81255..0567820b33 100755
--- a/cmake/config-ix.cmake
+++ b/cmake/config-ix.cmake
@@ -74,6 +74,12 @@ check_symbol_exists(FE_INEXACT "fenv.h" HAVE_DECL_FE_INEXACT)
check_include_file(mach/mach.h HAVE_MACH_MACH_H)
check_include_file(mach-o/dyld.h HAVE_MACH_O_DYLD_H)
+check_include_file(curses.h HAVE_CURSES_H)
+check_include_file(ncurses.h HAVE_NCURSES_H)
+check_include_file(ncursesw.h HAVE_NCURSESW_H)
+check_include_file(ncurses/curses.h HAVE_NCURSES_CURSES_H)
+check_include_file(ncursesw/curses.h HAVE_NCURSESW_CURSES_H)
+
# library checks
if( NOT PURE_WINDOWS )
check_library_exists(pthread pthread_create "" HAVE_LIBPTHREAD)
@@ -97,6 +103,19 @@ if( NOT PURE_WINDOWS )
else()
set(HAVE_LIBZ 0)
endif()
+ if(LLVM_ENABLE_CURSES)
+ check_library_exists(curses has_colors "" HAVE_CURSES)
+ if(NOT HAVE_CURSES)
+ check_library_exists(ncurses has_colors "" HAVE_NCURSES)
+ set(HAVE_CURSES ${HAVE_NCURSES})
+ if(NOT HAVE_CURSES)
+ check_library_exists(ncursesw has_colors "" HAVE_NCURSESW)
+ set(HAVE_CURSES ${HAVE_NCURSESW})
+ endif()
+ endif()
+ else()
+ set(HAVE_CURSES 0)
+ endif()
endif()
# function checks