[llvm] r227522 - iOS doesn't have histedit.h available. We should gate use of libedit on whether or not this headers exists.
Chris Bieneman
beanz at apple.com
Thu Jan 29 16:10:43 PST 2015
Author: cbieneman
Date: Thu Jan 29 18:10:43 2015
New Revision: 227522
URL: http://llvm.org/viewvc/llvm-project?rev=227522&view=rev
Log:
iOS doesn't have histedit.h available. We should gate use of libedit on whether or not this headers exists.
Modified:
llvm/trunk/cmake/config-ix.cmake
Modified: llvm/trunk/cmake/config-ix.cmake
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/cmake/config-ix.cmake?rev=227522&r1=227521&r2=227522&view=diff
==============================================================================
--- llvm/trunk/cmake/config-ix.cmake (original)
+++ llvm/trunk/cmake/config-ix.cmake Thu Jan 29 18:10:43 2015
@@ -79,6 +79,7 @@ check_symbol_exists(FE_INEXACT "fenv.h"
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(histedit.h HAVE_HISTEDIT_H)
# size_t must be defined before including cxxabi.h on FreeBSD 10.0.
check_cxx_source_compiles("
@@ -110,7 +111,9 @@ if( NOT PURE_WINDOWS )
else()
set(HAVE_LIBZ 0)
endif()
- check_library_exists(edit el_init "" HAVE_LIBEDIT)
+ if (HAVE_HISTEDIT_H)
+ check_library_exists(edit el_init "" HAVE_LIBEDIT)
+ endif()
if(LLVM_ENABLE_TERMINFO)
set(HAVE_TERMINFO 0)
foreach(library tinfo terminfo curses ncurses ncursesw)
More information about the llvm-commits
mailing list