~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/md5/plugin.ac

  • Committer: Monty Taylor
  • Date: 2009-12-21 04:32:56 UTC
  • mto: (1253.2.3 out-of-tree)
  • mto: This revision was merged to the branch mainline in revision 1250.
  • Revision ID: mordred@inaugust.com-20091221043256-n7ii7ynwsebr1r47
Removed things from server_includes.h.

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
  ])
 
25
])
 
26
AC_SUBST(LTMD5PLUGINDEP)