Lines Matching +full:- +full:- +full:without +full:- +full:gssapi
18 # This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
21 # SPDX-License-Identifier: curl
24 # - Try to find the GSS Kerberos library
27 # GSS_ROOT_DIR - Set this variable to the root installation of GSS
29 # Read-Only variables:
30 # GSS_FOUND - system has the Heimdal library
31 # GSS_FLAVOUR - "MIT" or "Heimdal" if anything found.
32 # GSS_INCLUDE_DIR - the Heimdal include directory
33 # GSS_LIBRARIES - The libraries needed to use GSS
34 # GSS_LINK_DIRECTORIES - Directories to add to linker search path
35 # GSS_LINKER_FLAGS - Additional linker flags
36 # GSS_COMPILER_FLAGS - Additional compiler flags
37 # GSS_VERSION - This is set to version advertised by pkg-config or read from manifest.
40 set(_MIT_MODNAME mit-krb5-gssapi)
41 set(_HEIMDAL_MODNAME heimdal-gssapi)
52 # try to find library using system pkg-config if user didn't specify root dir
63 if(NOT _GSS_FOUND) #not found by pkg-config. Let's take more traditional approach.
66 "krb5-config"
75 # if not found in user-supplied directories, maybe system knows better
78 "krb5-config"
85 COMMAND ${_GSS_CONFIGURE_SCRIPT} "--cflags" "gssapi"
94 string(REGEX REPLACE " +-I" ";" _GSS_CFLAGS "${_GSS_CFLAGS}")
95 string(REGEX REPLACE " +-([^I][^ \\t;]*)" ";-\\1" _GSS_CFLAGS "${_GSS_CFLAGS}")
98 if(_flag MATCHES "^-I.*")
99 string(REGEX REPLACE "^-I" "" _val "${_flag}")
108 COMMAND ${_GSS_CONFIGURE_SCRIPT} "--libs" "gssapi"
118 string(REGEX REPLACE " +-(L|l)" ";-\\1" _GSS_LIB_FLAGS "${_GSS_LIB_FLAGS}")
119 string(REGEX REPLACE " +-([^Ll][^ \\t;]*)" ";-\\1" _GSS_LIB_FLAGS "${_GSS_LIB_FLAGS}")
122 if(_flag MATCHES "^-l.*")
123 string(REGEX REPLACE "^-l" "" _val "${_flag}")
125 elseif(_flag MATCHES "^-L.*")
126 string(REGEX REPLACE "^-L" "" _val "${_flag}")
135 COMMAND ${_GSS_CONFIGURE_SCRIPT} "--version"
141 # older versions may not have the "--version" parameter. In this case we just don't care.
147 COMMAND ${_GSS_CONFIGURE_SCRIPT} "--vendor"
153 # older versions may not have the "--vendor" parameter. In this case we just don't care.
168 "gssapi/gssapi.h"
178 check_include_files( "gssapi/gssapi_generic.h;gssapi/gssapi_krb5.h" _GSS_HAVE_MIT_HEADERS)
183 # prevent compiling the header - just check if we can include it
184 list(APPEND CMAKE_REQUIRED_DEFINITIONS -D__ROKEN_H__)
191 list(REMOVE_ITEM CMAKE_REQUIRED_DEFINITIONS -D__ROKEN_H__)
197 "gssapi.h"
238 set(_GSS_LIBNAME "gssapi")
280 REGEX "^.*version=\"[0-9]\\.[^\"]+\".*$")
282 string(REGEX MATCH "[0-9]\\.[^\"]+"