~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/md5/plugin.ac

  • Committer: Brian Aker
  • Date: 2009-05-23 17:13:03 UTC
  • mfrom: (1034.1.8 merge)
  • Revision ID: brian@gaz-20090523171303-d28xhutqic0xe2b4
Merge Brian

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
AC_LIB_HAVE_LINKFLAGS(gcrypt,,[
2
 
    #include <gcrypt.h>
3
 
  ],[
4
 
    void *digest, *source;
5
 
    gcry_md_hash_buffer(GCRY_MD_MD5, digest, source, 0);
6
 
  ])
7
 
AS_IF([test "x$ac_cv_libgcrypt" = "xno"],[
8
 
    AC_MSG_WARN([MD5 not found in libgcrypt: not building md5 plugin. On Debian this is found in libgcrypt11-dev. On RedHat it is in libgcrypt-devel.])
9
 
])
 
1
AC_LIB_HAVE_LINKFLAGS(gnutls-openssl,,
 
2
  [#include <gnutls/openssl.h>],
 
3
  [
 
4
    MD5_CTX context;
 
5
    MD5_Init (&context);
 
6
  ])
 
7
AS_IF([test "x$ac_cv_libgnutls" = "xno"],
 
8
  [
 
9
    AC_LIB_HAVE_LINKFLAGS(crypto,,
 
10
      [#include <openssl/md5.h>],
 
11
      [
 
12
        MD5_CTX context;
 
13
        MD5_Init (&context);
 
14
       ])
 
15
    AS_IF([test "x$ac_cv_libcrypto" = "xno"],
 
16
    AC_MSG_WARN([MD5 not found in either gnutls or crypto lib not building md5 plugin. On Debian this is found in libgnutls-dev. On RedHat it is in gnutls-devel.]))
 
17
  ])