kgtk-qt3 – TDE dialogs in GTK 2.x applications
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 2.0KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. #################################################
  2. #
  3. # (C) 2010 Serghei Amelian
  4. # serghei (DOT) amelian (AT) gmail.com
  5. #
  6. # Improvements and feedback are welcome
  7. #
  8. # This file is released under GPL >= 2
  9. #
  10. #################################################
  11. # required stuff
  12. find_package( TQt )
  13. find_package( TDE )
  14. tde_setup_architecture_flags( )
  15. include(TestBigEndian)
  16. test_big_endian(WORDS_BIGENDIAN)
  17. tde_setup_largefiles( )
  18. ##### check for gcc visibility support #########
  19. if( WITH_GCC_VISIBILITY )
  20. tde_setup_gcc_visibility( )
  21. endif( )
  22. check_type_size( "int" SIZEOF_INT BUILTIN_TYPES_ONLY )
  23. check_type_size( "long" SIZEOF_LONG BUILTIN_TYPES_ONLY )
  24. check_include_file( stdint.h HAVE_STDINT_H )
  25. check_include_file( systems.h HAVE_SYSTEMS_H )
  26. check_include_file( linux/inotify.h HAVE_INOTIFY )
  27. check_function_exists( statvfs HAVE_STATVFS )
  28. check_function_exists( getpeereid HAVE_GETPEEREID )
  29. if ( BUILD_KGTK_GTK2 )
  30. # Check if we have dlvsym...
  31. find_library(LIBDLVSYM_LIBRARY
  32. NAMES dl
  33. PATHS /lib /usr/lib /usr/X11R6/lib /usr/local/lib)
  34. if(LIBDLVSYM_LIBRARY)
  35. set(HAVE_DLVSYM 1)
  36. # Determine version of dlsym...
  37. find_library(LIBDL_LIBRARY
  38. NAMES dl
  39. PATHS /lib /usr/lib /usr/X11R6/lib /usr/local/lib)
  40. if(LIBDL_LIBRARY)
  41. execute_process(COMMAND objdump --dynamic-syms ${LIBDL_LIBRARY}
  42. COMMAND grep dlsym
  43. OUTPUT_VARIABLE DLSYM_DATA)
  44. separate_arguments(DLSYM_DATA)
  45. if (${CMAKE_MAJOR_VERSION} GREATER 2 OR ${CMAKE_MINOR_VERSION} GREATER 4)
  46. cmake_policy(SET CMP0007 OLD)
  47. endif (${CMAKE_MAJOR_VERSION} GREATER 2 OR ${CMAKE_MINOR_VERSION} GREATER 4)
  48. list(GET DLSYM_DATA 4 KGTK_DLSYM_VERSION)
  49. endif(LIBDL_LIBRARY)
  50. else(LIBDLVSYM_LIBRARY)
  51. message("** INFORMATION: You're libdl does not contain dlvsym - SWT apps will not be supported")
  52. endif(LIBDLVSYM_LIBRARY)
  53. endif ()