summaryrefslogtreecommitdiff
blob: f4ab60057ed4c4d4ee3bf7e8bff812a1f100d85b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
diff -Nru squid-3.1.6.orig/configure.in squid-3.1.6/configure.in
--- squid-3.1.6.orig/configure.in	2010-08-07 07:29:18.000000000 +0200
+++ squid-3.1.6/configure.in	2010-08-07 07:32:16.000000000 +0200
@@ -2728,7 +2728,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