KNemo – network interfaces monitor for systray
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.

66 lines
1.8 KiB

  1. ###########################################
  2. # #
  3. # Improvements and feedback are welcome #
  4. # #
  5. # This file is released under GPL >= 3 #
  6. # #
  7. ###########################################
  8. # required stuff
  9. find_package( TQt )
  10. find_package( TDE )
  11. tde_setup_architecture_flags( )
  12. include(TestBigEndian)
  13. test_big_endian(WORDS_BIGENDIAN)
  14. tde_setup_largefiles( )
  15. ##### check for gcc visibility support
  16. if( WITH_GCC_VISIBILITY )
  17. tde_setup_gcc_visibility( )
  18. endif( WITH_GCC_VISIBILITY )
  19. ##### net-tools support
  20. if( WITH_NETTOOLS )
  21. find_program( PATH_IFCONFIG "ifconfig" DOC "Path for the ifconfig program" )
  22. find_program( PATH_ROUTE "route" DOC "Path for the route program" )
  23. find_program( PATH_IWCONFIG "iwconfig" DOC "Path for the iwconfig program" )
  24. if( PATH_IFCONFIG-NOTFOUND )
  25. tde_message_fatal( "Program ifconfig is required but was not found on your system." )
  26. endif()
  27. message( STATUS "Checking for ifconfig - found ${PATH_IFCONFIG}" )
  28. if( PATH_ROUTE-NOTFOUND )
  29. message( STATUS "Checking for route - not found" )
  30. else()
  31. message( STATUS "Checking for route - found ${PATH_ROUTE}" )
  32. endif()
  33. if( PATH_IWCONFIG-NOTFOUND )
  34. message( STATUS "Checking for iwconfig - not found" )
  35. else()
  36. message( STATUS "Checking for iwconfig - found ${PATH_IWCONFIG}" )
  37. endif()
  38. set( WITH_NETTOOLS 1 )
  39. endif( WITH_NETTOOLS )
  40. ##### support for libiw
  41. if( WITH_LIBIW )
  42. check_include_file( "iwlib.h" IW_HEADER )
  43. find_library( IW_LIBRARIES NAMES iw )
  44. if( IW_HEADER AND IW_LIBRARIES )
  45. set( HAVE_LIBIW 1 )
  46. else()
  47. tde_message_fatal( "libiw support is requested but was not found on your system" )
  48. endif( IW_HEADER AND IW_LIBRARIES )
  49. endif( WITH_LIBIW )