~ubuntu-branches/ubuntu/trusty/libopensync-plugin-file/trusty

« back to all changes in this revision

Viewing changes to cmake/modules/FindLibGSSAPIV2.cmake

  • Committer: Bazaar Package Importer
  • Author(s): Michael Banck
  • Date: 2010-02-06 22:18:21 UTC
  • mfrom: (1.1.3 upstream) (4.1.1 experimental)
  • Revision ID: james.westby@ubuntu.com-20100206221821-kvbuxtp4n8r8ko6z
Tags: 0.39-1
* New upstream development release.
* debian/control (Build-Depends): Updated libopensync-dev build
  dependency to libopensync1exp7-dev.
* Upload to unstable.
* debian/rules (configure-stamp): Pass $(CFLAGS) to cmake instead of a
  hardcoded list.
* debian/control (Build-Depends): Bump required debhelper version to 7.0.0.
* debian/compat: Set to 7.
* debian/control (Standards-Version): Bumped to 3.8.3.
* debian/rules (install): Replace call to dh_clean -k with dh_prep.
* debian/rules (binary-arch): Removed call to dh_makeshlibs.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# Try and find libgssapiv2.
 
2
# As soon as libgssapiv2 has been found, the following variables will be defined:
 
3
#
 
4
# LIBGSSAPIV2_FOUND
 
5
# GSSAPIV2_LIBRARY:FILEPATH
 
6
#
 
7
# Copyright (c) 2009 Juergen Leising <jleising@users.sourceforge.net>
 
8
#
 
9
# Redistribution and use is allowed according to the terms of the New
 
10
# BSD license.
 
11
# For details see the accompanying COPYING-CMAKE-SCRIPTS file.
 
12
#
 
13
 
 
14
 
 
15
MESSAGE(STATUS "checking for libgssapiv2...")
 
16
 
 
17
# No header files required for the ldap plugin.
 
18
 
 
19
FIND_LIBRARY(GSSAPIV2_LIBRARY NAMES gssapiv2 
 
20
                              PATHS /usr/lib /lib /usr/local/lib /usr/share/lib /opt/lib /opt/share/lib /var/lib /usr/lib/sasl2 /lib/sasl2 /usr/local/lib/sasl2 /usr/share/lib/sasl2 /opt/lib/sasl2 /opt/share/lib/sasl2 /var/lib/sasl2 /usr/lib64 /lib64 /usr/local/lib64 /usr/share/lib64 /opt/lib64 /opt/share/lib64 /var/lib64 /usr/lib64/sasl2 /lib64/sasl2 /usr/local/lib64/sasl2 /usr/share/lib64/sasl2 /opt/lib64/sasl2 /opt/share/lib64/sasl2 /var/lib64/sasl2
 
21
                              DOC "Try and find libgssapiv2")
 
22
 
 
23
IF (GSSAPIV2_LIBRARY)
 
24
        SET (LIBGSSAPIV2_FOUND 1)
 
25
  get_filename_component(GSSAPIV2_LIBRARY_DIRS ${GSSAPIV2_LIBRARY} PATH)
 
26
  MESSAGE(STATUS "  Found ${GSSAPIV2_LIBRARY}")
 
27
ELSE (GSSAPIV2_LIBRARY)
 
28
        IF ( LibGSSAPIV2_FIND_REQUIRED )        
 
29
                MESSAGE( FATAL_ERROR "  Could NOT find libgssapiv2. The ldap plugin needs this library.")
 
30
        ELSE ( LibGSSAPIV2_FIND_REQUIRED )
 
31
          MESSAGE( STATUS "  Could NOT find libgssapiv2. The SASL authentication mechanism GSSAPI (and KERBEROS V5) won't work, therefore. Not a fatal error, however. The ldap plugin itself does NOT need it.")
 
32
        ENDIF ( LibGSSAPIV2_FIND_REQUIRED )
 
33
ENDIF (GSSAPIV2_LIBRARY)
 
34