summaryrefslogtreecommitdiffstats
path: root/tdeioslave/smb/ConfigureChecks.cmake
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-01-27 01:02:02 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-01-27 01:02:02 -0600
commitde7e5867a65e0a46f1388e3e50bc7eeddd1aecbf (patch)
treedbb3152c372f8620f9290137d461f3d9f9eba1cb /tdeioslave/smb/ConfigureChecks.cmake
parent936d3cec490c13f2c5f7dd14f5e364fddaa6da71 (diff)
downloadtdebase-de7e5867a65e0a46f1388e3e50bc7eeddd1aecbf.tar.gz
tdebase-de7e5867a65e0a46f1388e3e50bc7eeddd1aecbf.zip
Rename a number of libraries and executables to avoid conflicts with KDE4
Diffstat (limited to 'tdeioslave/smb/ConfigureChecks.cmake')
-rw-r--r--tdeioslave/smb/ConfigureChecks.cmake26
1 files changed, 26 insertions, 0 deletions
diff --git a/tdeioslave/smb/ConfigureChecks.cmake b/tdeioslave/smb/ConfigureChecks.cmake
new file mode 100644
index 000000000..da4d1a942
--- /dev/null
+++ b/tdeioslave/smb/ConfigureChecks.cmake
@@ -0,0 +1,26 @@
+#################################################
+#
+# (C) 2010-2011 Serghei Amelian
+# serghei (DOT) amelian (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+pkg_search_module ( SMBCLIENT smbclient )
+if( SMBCLIENT_FOUND )
+ set( HAVE_LIBSMBCLIENT_H 1 )
+else( )
+ check_include_file( libsmbclient.h HAVE_LIBSMBCLIENT_H )
+endif( )
+
+if( HAVE_LIBSMBCLIENT_H )
+ set( SMBCLIENT_LIBRARIES smbclient )
+ check_library_exists( ${SMBCLIENT_LIBRARIES} smbc_new_context "" HAVE_SMBCLIENT )
+endif( )
+
+if( NOT HAVE_LIBSMBCLIENT_H OR NOT HAVE_SMBCLIENT )
+ tde_message_fatal( "smbclient is requested, but was not found on your system." )
+endif( )