From e1f26e22db4e26685efae8f2cddb0569d2420ff4 Mon Sep 17 00:00:00 2001 From: hniksic Date: Mon, 3 Nov 2003 15:51:56 -0800 Subject: [PATCH] [svn] Check whether #include works before deciding to use the Solaris system md5 library. --- ChangeLog | 5 +++++ configure.in | 11 ++++++++--- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 4c2f61c4..0fe07964 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2003-11-04 Hrvoje Niksic + + * configure.in: Also check whether #include works before + deciding to use Solaris libmd5. + 2003-11-03 Hrvoje Niksic * configure.in: Look for nanosleep in -lrt and -lposix4, which is diff --git a/configure.in b/configure.in index fa641009..21a4cebb 100644 --- a/configure.in +++ b/configure.in @@ -438,9 +438,14 @@ then dnl specific to the Solaris MD5 library. if test x"$found_md5" = xno; then AC_CHECK_LIB(md5, md5_calc, [ - AC_DEFINE(HAVE_SOLARIS_MD5) - LIBS="-lmd5 $LIBS" - found_md5=yes + dnl There are programs that insert bogus in the include + dnl path. That makes the system md5 library is useless to us. + AC_TRY_CPP([#include + ], [ + AC_DEFINE(HAVE_SOLARIS_MD5) + LIBS="-lmd5 $LIBS" + found_md5=yes + ]) ]) fi