diff -Nru squid-3.1.8.orig/configure.in squid-3.1.8/configure.in --- squid-3.1.8.orig/configure.in 2010-09-23 23:34:49.000000000 +0200 +++ squid-3.1.8/configure.in 2010-09-23 23:36:41.000000000 +0200 @@ -2730,7 +2730,11 @@ dnl libcrypt (eg FreeBSD) AC_CHECK_LIB(crypt, crypt, [CRYPTLIB="-lcrypt"]) dnl Solaris10 provides MD5 natively through libmd5 -AC_CHECK_LIB(md5, MD5Init, [CRYPTLIB="$CRYPTLIB -lmd5"]) +case "$host" in + *-solaris*) + AC_CHECK_LIB(md5, MD5Init, [CRYPTLIB="$CRYPTLIB -lmd5"]) + ;; +esac AC_SUBST(CRYPTLIB) dnl Check for libdl, used by auth_modules/PAM