1# Modified from FindReadline.cmake (PH Feb 2012)
2
3if(EDITLINE_INCLUDE_DIR AND EDITLINE_LIBRARY AND NCURSES_LIBRARY)
4  set(EDITLINE_FOUND TRUE)
5else(EDITLINE_INCLUDE_DIR AND EDITLINE_LIBRARY AND NCURSES_LIBRARY)
6  FIND_PATH(EDITLINE_INCLUDE_DIR readline.h
7    /usr/include/editline
8    /usr/include/edit/readline
9    /usr/include/readline
10  )
11
12  FIND_LIBRARY(EDITLINE_LIBRARY NAMES edit)
13  include(FindPackageHandleStandardArgs)
14  FIND_PACKAGE_HANDLE_STANDARD_ARGS(Editline DEFAULT_MSG EDITLINE_INCLUDE_DIR EDITLINE_LIBRARY )
15
16  MARK_AS_ADVANCED(EDITLINE_INCLUDE_DIR EDITLINE_LIBRARY)
17endif(EDITLINE_INCLUDE_DIR AND EDITLINE_LIBRARY AND NCURSES_LIBRARY)
18