summaryrefslogtreecommitdiffstats
path: root/kopete/ConfigureChecks.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'kopete/ConfigureChecks.cmake')
-rw-r--r--kopete/ConfigureChecks.cmake15
1 files changed, 15 insertions, 0 deletions
diff --git a/kopete/ConfigureChecks.cmake b/kopete/ConfigureChecks.cmake
index c8e03e06..6581c08a 100644
--- a/kopete/ConfigureChecks.cmake
+++ b/kopete/ConfigureChecks.cmake
@@ -64,3 +64,18 @@ endif( )
### Check for tm_gmtoff in tm struct
check_struct_has_member( "struct tm" tm_gmtoff time.h HAVE_TM_GMTOFF )
+
+#### check for libotr
+
+if( BUILD_KOPETE_PLUGIN_OTR )
+ pkg_search_module( LIBOTR libotr )
+
+ if( LIBOTR_FOUND )
+ if( NOT LIBOTR_VERSION VERSION_LESS 4.0.0 )
+ set( HAVE_LIBOTR_0400 1 )
+ endif()
+ else()
+ tde_message_fatal( "Libotr is required but was not found on your system" )
+ endif()
+endif( BUILD_KOPETE_PLUGIN_OTR )
+