~drizzle-trunk/drizzle/development

1093.7.1 by Monty Taylor
Merged me and also fixed the md5 linking error.
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)