summaryrefslogtreecommitdiffstats
path: root/ConfigureChecks.cmake
diff options
context:
space:
mode:
authorAlexander Golubev <fatzer2@gmail.com>2025-08-18 14:43:00 +0300
committerAlexander Golubev <fatzer2@gmail.com>2025-08-21 13:03:19 +0300
commitd865714df6b485a2551aa85a3c9ba4771b85d213 (patch)
tree3b714cae0c0f666e6e62250359a263b65321434c /ConfigureChecks.cmake
parent9e16e0eb0365f8bc19afdee2cfab42530e080843 (diff)
downloadtdenetwork-d865714d.tar.gz
tdenetwork-d865714d.zip
kopete/sms: overhaul build/configure process with gsmlib
* Build cpp files conditionally rather than #ifdef their content * Rename {INCLUDE_SMSGSM -> HAVE_GSMLIB} for consistency * Merge gsmlib's configuration check to the ConfigureChecks.cmake in the root directory. (cherry picked from commit 4dca9b8265b84c09d7156ccf1d70f3f5c401c896)
Diffstat (limited to 'ConfigureChecks.cmake')
-rw-r--r--ConfigureChecks.cmake15
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 )