LDAP client binding module for KControl
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

ConfigureChecks.cmake 1.5KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. ###########################################
  2. # #
  3. # Improvements and feedback are welcome #
  4. # #
  5. # This file is released under GPL >= 3 #
  6. # #
  7. ###########################################
  8. # required stuff
  9. tde_setup_architecture_flags( )
  10. include(TestBigEndian)
  11. test_big_endian(WORDS_BIGENDIAN)
  12. tde_setup_largefiles( )
  13. find_package( TQt )
  14. find_package( TDE )
  15. ##### check for gcc visibility support #########
  16. if( WITH_GCC_VISIBILITY )
  17. tde_setup_gcc_visibility( )
  18. endif( )
  19. ##### check for tdeldap
  20. find_library( HAVE_LIBTDELDAP tdeldap )
  21. if( HAVE_LIBTDELDAP )
  22. set( LIBTDELDAP_LIBRARIES "tdeldap" )
  23. else()
  24. tde_message_fatal( "libtdeldap is required, but was not found on your system" )
  25. endif( )
  26. ##### check for krb5
  27. pkg_search_module( KRB5 krb5 )
  28. if( NOT KRB5_FOUND)
  29. if( NOT DEFINED KRB5_CONFIG_EXECUTABLE )
  30. find_program( KRB5_CONFIG_EXECUTABLE NAMES krb5-config )
  31. if( NOT KRB5_CONFIG_EXECUTABLE )
  32. tde_message_fatal( "krb5 library is required but not found on your system" )
  33. endif( )
  34. endif( )
  35. execute_process(
  36. COMMAND ${KRB5_CONFIG_EXECUTABLE} --libs
  37. OUTPUT_VARIABLE KRB5_LIBRARIES
  38. ERROR_VARIABLE KRB5_LIBRARIES
  39. )
  40. execute_process(
  41. COMMAND ${KRB5_CONFIG_EXECUTABLE} --cflags
  42. OUTPUT_VARIABLE KRB5_INCLUDE_DIRS
  43. ERROR_VARIABLE KRB5_INCLUDE_DIRS
  44. )
  45. if( NOT "${KRB5_LIBRARIES}" STREQUAL "" )
  46. set( KRB5_FOUND 1 )
  47. endif( )
  48. endif( )