summaryrefslogtreecommitdiff
blob: 38b08d6a9468173564f9d7e810a3c6d1cb5cc5f8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
diff -urN w3c-libwww-5.4.0.ORIG/configure.ac w3c-libwww-5.4.0/configure.ac
--- w3c-libwww-5.4.0.ORIG/configure.ac	2004-03-13 00:45:36.985124000 +0900
+++ w3c-libwww-5.4.0/configure.ac	2004-03-13 00:49:13.225250888 +0900
@@ -623,19 +623,16 @@
   ssllib="-L/usr/lib -lssl -lcrypto"
 fi
 dnl find the ssl include dir (empirical)
-if test -d '/usr/local/ssl/include'; then
-  sslinc="-I/usr/local/ssl/include"
-elif test -d '/usr/local/openssl/include'; then
-  sslinc="-I/usr/local/openssl/include"
-elif test -d '/usr/local/include/openssl'; then
-  sslinc="-I/usr/local/include/openssl"
-elif test -d '/usr/include/ssl'; then
-  sslinc="-I/usr/include/ssl"
-elif test -d '/usr/include/openssl'; then
-  sslinc="-I/usr/include/openssl"
-else
-  sslinc=""
-fi
+ssldir=""
+for ssldir in /usr/local/ssl/include \
+              /usr/local/openssl/include \
+              /usr/local/include/openssl \
+              /usr/include/ssl \
+              /usr/include/openssl ; do
+  if test -d $ssldir -a -f $ssldir/ssl.h ; then
+    sslinc="-I$ssldir"
+  fi
+done
 WWWSSL=""
 SSLINC=""
 LIBSSL=""