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=""