- Made use of readline wordexp conditional upon the presence of wordexp.h,
  which is correct, but excludes certain BSDs.
This commit is contained in:
Paul Beckingham 2014-01-12 14:49:42 -05:00
parent b81891c78f
commit cdc0c0a01a
4 changed files with 31 additions and 3 deletions

View file

@ -1,6 +1,7 @@
cmake_minimum_required (VERSION 2.8)
set(CMAKE_LEGACY_CYGWIN_WIN32 0) # Remove when CMake >= 2.8.4 is required
include (CheckIncludeFiles)
include (CheckFunctionExists)
include (CheckStructHasMember)
@ -89,6 +90,8 @@ if (READLINE_FOUND)
set (TASK_LIBRARIES ${TASK_LIBRARIES} ${READLINE_LIBRARIES})
endif (READLINE_FOUND)
check_include_files (wordexp.h HAVE_WORDEXP_H)
check_function_exists (timegm HAVE_TIMEGM)
check_function_exists (get_current_dir_name HAVE_GET_CURRENT_DIR_NAME)