]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3: fix #9037 even more - open and netbsd have the md5 symbols in libc
authorBjörn Jacke <bj@sernet.de>
Fri, 24 Aug 2012 19:13:45 +0000 (21:13 +0200)
committerKarolin Seeger <kseeger@samba.org>
Tue, 28 Aug 2012 07:26:56 +0000 (09:26 +0200)
source3/configure.in

index aae2be06fa34e3ae7d403c2e0840faf30ab7ead9..eef3d13481c44cbc080d36d0b7e23c73a1cf9ad5 100644 (file)
@@ -767,8 +767,15 @@ if test x"$ac_cv_header_md5_h" = x"yes" -a \
        AC_CHECK_LIB(md, MD5Update, [samba_cv_md5lib=md])
 fi
 
+if test x"$ac_cv_header_md5_h" = x"yes" -a \
+        x"$samba_cv_md5lib" = x"none" ; then
+       AC_CHECK_LIB(c, MD5Update, [samba_cv_md5lib=""])
+fi
+
 if test x"$samba_cv_md5lib" != x"none" ; then
-       LIBS="${LIBS} -l${samba_cv_md5lib}"
+       if test x"$samba_cv_md5lib" != x ; then
+               LIBS="${LIBS} -l${samba_cv_md5lib}"
+       fi
        CRYPTO_MD5_OBJ=
        AC_DEFINE(HAVE_LIBMD5, 1,
            [Whether libmd5 conformant to rfc1321 is available.])