diff options
Diffstat (limited to 'ConfigureChecks.cmake')
-rw-r--r-- | ConfigureChecks.cmake | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake index 4d5ad07a..dba12e86 100644 --- a/ConfigureChecks.cmake +++ b/ConfigureChecks.cmake @@ -46,5 +46,20 @@ if( WITH_SLP ) endif( ) endif( ) +if( BUILD_KOPETE AND BUILD_KOPETE_PROTOCOL_SMS AND WITH_GSM ) + check_include_file_cxx( gsmlib/gsm_util.h HAVE_GSMLIB_GSM_UTIL_H ) + + if( HAVE_GSMLIB_GSM_UTIL_H ) + find_library( GSM_LIBRARY gsmme ) + endif( ) + + if( HAVE_GSMLIB_GSM_UTIL_H AND GSM_LIBRARY ) + set( HAVE_GSMLIB 1 ) + else( ) + tde_message_fatal( "gsmlib is required, but was not found on your system" ) + endif( ) +endif( ) + + check_symbol_exists( strlcat "string.h" HAVE_STRLCAT_PROTO ) check_symbol_exists( strlcpy "string.h" HAVE_STRLCPY_PROTO ) |