1# Copyright 2011 The FLWOR Foundation. 2# 3# Licensed under the Apache License, Version 2.0 (the "License"); 4# you may not use this file except in compliance with the License. 5# You may obtain a copy of the License at 6# 7# http://www.apache.org/licenses/LICENSE-2.0 8# 9# Unless required by applicable law or agreed to in writing, software 10# distributed under the License is distributed on an "AS IS" BASIS, 11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12# See the License for the specific language governing permissions and 13# limitations under the License. 14# 15# - Try to find the libedit library 16# 17# Once done this will define 18# 19# LIBEDIT_FOUND - True if libedit library is found 20# LIBEDIT_INCLUDE_DIRS - Directory to include to get libedit headers 21# LIBEDIT_LIBRARIES - Libraries to link against for the libedit library 22# 23 24FIND_PATH ( 25 LIBEDIT_INCLUDE 26 editline/readline.h 27 PATHS ${LIBEDIT_INCLUDE_DIR} /usr/include /usr/local/include 28) 29MESSAGE(STATUS ${LIBEDIT_INCLUDE}) 30 31FIND_LIBRARY ( 32 LIBEDIT_LIBRARY 33 NAMES edit 34 PATHS ${LIBEDIT_LIBRARY_DIR} /usr/lib /usr/local/lib /usr/lib64 /usr/local/lib64 35) 36MESSAGE(STATUS ${LIBEDIT_LIBRARY}) 37 38SET (LIBEDIT_INCLUDE_DIRS ${LIBEDIT_INCLUDE}) 39SET (LIBEDIT_LIBRARIES ${LIBEDIT_LIBRARY}) 40 41FIND_PACKAGE_HANDLE_STANDARD_ARGS ( 42 Libedit 43 DEFAULT_MSG 44 LIBEDIT_INCLUDE LIBEDIT_LIBRARY 45) 46 47