~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/md5/plugin.ac

  • Committer: Brian Aker
  • Date: 2010-03-24 19:45:37 UTC
  • mfrom: (1377.3.20 pandora-build)
  • Revision ID: brian@gaz-20100324194537-hf3tpibznhozvwl1
Merge monty

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
AC_LIB_HAVE_LINKFLAGS(gnutls-openssl,,[
2
 
    #include <string.h>
3
 
    #include <gnutls/openssl.h>
4
 
  ],[
5
 
    MD5_CTX context;
6
 
    MD5_Init (&context);
7
 
  ])
8
 
AS_IF([test "x$ac_cv_libgnutls_openssl" = "xyes"],[
9
 
  ac_cv_build_md5=yes
10
 
  LTMD5PLUGINDEP=${LTLIBGNUTLS_OPENSSL}
11
 
],[
12
 
  AC_LIB_HAVE_LINKFLAGS(crypto,,[
13
 
    #include <string.h>
14
 
    #include <openssl/md5.h>
15
 
  ],[
16
 
    MD5_CTX context;
17
 
    MD5_Init (&context);
18
 
  ])
19
 
  AS_IF([test "x$ac_cv_libcrypto" = "xyes"],[
20
 
    ac_cv_build_md5=yes
21
 
    LTMD5PLUGINDEP=${LTLIBCRYPTO}
22
 
  ],[
23
 
    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.])
24
 
  ])
 
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.])
25
9
])
26
 
AC_SUBST(LTMD5PLUGINDEP)