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

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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. if( BUILD_TRANSLATIONS AND NOT DEFINED MSGFMT_EXECUTABLE )
  12. find_program( MSGFMT_EXECUTABLE msgfmt )
  13. if( NOT MSGFMT_EXECUTABLE )
  14. tde_message_fatal( "msgfmt program is required, but was not found on your system" )
  15. endif( )
  16. endif( )
  17. check_type_size( "int" SIZEOF_INT BUILTIN_TYPES_ONLY )
  18. check_type_size( "long" SIZEOF_LONG BUILTIN_TYPES_ONLY )
  19. check_include_file( stdint.h HAVE_STDINT_H )
  20. check_include_file( systems.h HAVE_SYSTEMS_H )
  21. check_include_file( linux/inotify.h HAVE_INOTIFY )
  22. check_function_exists( statvfs HAVE_STATVFS )
  23. check_function_exists( getpeereid HAVE_GETPEEREID )
  24. if ( BUILD_KGTK_GTK2 )
  25. # Check if we have dlvsym...
  26. find_library(LIBDLVSYM_LIBRARY
  27. NAMES dl
  28. PATHS /lib /usr/lib /usr/X11R6/lib /usr/local/lib)
  29. if(LIBDLVSYM_LIBRARY)
  30. set(HAVE_DLVSYM 1)
  31. # Determine version of dlsym...
  32. find_library(LIBDL_LIBRARY
  33. NAMES dl
  34. PATHS /lib /usr/lib /usr/X11R6/lib /usr/local/lib)
  35. if(LIBDL_LIBRARY)
  36. execute_process(COMMAND objdump --dynamic-syms ${LIBDL_LIBRARY}
  37. COMMAND grep dlsym
  38. OUTPUT_VARIABLE DLSYM_DATA)
  39. separate_arguments(DLSYM_DATA)
  40. if (${CMAKE_MAJOR_VERSION} GREATER 2 OR ${CMAKE_MINOR_VERSION} GREATER 4)
  41. cmake_policy(SET CMP0007 OLD)
  42. endif (${CMAKE_MAJOR_VERSION} GREATER 2 OR ${CMAKE_MINOR_VERSION} GREATER 4)
  43. list(GET DLSYM_DATA 4 KGTK_DLSYM_VERSION)
  44. endif(LIBDL_LIBRARY)
  45. else(LIBDLVSYM_LIBRARY)
  46. message("** INFORMATION: You're libdl does not contain dlvsym - SWT apps will not be supported")
  47. endif(LIBDLVSYM_LIBRARY)
  48. endif ()
  49. # common required stuff
  50. find_package( TQt )
  51. find_package( TDE )