diff options
Diffstat (limited to 'ConfigureChecks.cmake')
-rw-r--r-- | ConfigureChecks.cmake | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake index 13dfa5327..23b631ee1 100644 --- a/ConfigureChecks.cmake +++ b/ConfigureChecks.cmake @@ -32,6 +32,31 @@ if( BUILD_INDEXLIB OR BUILD_KMAIL ) endif( ) +if( BUILD_KMOBILE ) + # FIXME not checked because Gentoo don't provide baudboy.h + check_include_file( "baudboy.h" HAVE_BAUDBOY_H ) +endif( ) + + +if( BUILD_KANDY OR (BUILD_KMOBILE AND NOT HAVE_BAUDBOY_H) ) + check_include_file( "lockdev.h" HAVE_LOCKDEV_H ) + if( HAVE_LOCKDEV_H ) + check_library_exists( lockdev dev_unlock "" HAVE_LOCKDEV ) + if( HAVE_LOCKDEV ) + set( LOCKDEV_LIBRARY lockdev CACHE INTERNAL "" FORCE ) + endif( ) + endif( ) +endif( ) + + +if( WITH_GNOKII AND (BUILD_KADDRESSBOOK OR BUILD_KMOBILE) ) + pkg_search_module( GNOKII gnokii ) + if( NOT GNOKII_FOUND ) + tde_message_fatal( "gnokii are requested, but was not found on your system" ) + endif( ) +endif( ) + + if( BUILD_LIBKDENETWORK OR BUILD_CERTMANAGER OR BUILD_KMAIL OR BUILD_KADDRESSBOOK ) if( NOT HAVE_GPGME_0_4_BRANCH ) |