s4:tls: fix the build on Solaris
authorBrian Lu <brian.lu@sun.com>
Tue, 15 Dec 2009 11:56:23 +0000 (12:56 +0100)
committerStefan Metzmacher <metze@samba.org>
Tue, 15 Dec 2009 11:56:50 +0000 (12:56 +0100)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
source4/lib/tls/config.m4

index 709a0959088d0a43585c0a9717cba73f88e0fcf7..8a5b9966381818169161880ee08f5a0b1665abca 100644 (file)
@@ -41,5 +41,8 @@ if test x$use_gnutls = xyes; then
        AC_DEFINE(ENABLE_GNUTLS,1,[Whether we have gnutls support (SSL)])
        AC_CHECK_HEADERS(gcrypt.h)
        AC_CHECK_LIB_EXT(gcrypt, GCRYPT_LIBS, gcry_control)
+       # On Solaris libgcrypt.so has a bug and seems to be not linked
+       # to libgpg-error.so, so we need to manually add them...
+       AC_CHECK_LIB_EXT(gpg-error, GCRYPT_LIBS, gpg_err_code_from_errno)
        SMB_EXT_LIB(GCRYPT, $GCRYPT_LIBS)
 fi