Index: server/buildpkgs/tls/build.sh ================================================================== --- server/buildpkgs/tls/build.sh +++ server/buildpkgs/tls/build.sh @@ -43,15 +43,17 @@ fi "${PATCH:-patch}" -p1 < "${patchfile}" done - for chkssldir in $(pkg-config openssl --cflags | sed 's@ *-I *@|@g' | tr '|' "\n" | grep '^/'); do - if [ -f "${chkssldir}/openssl/opensslv.h" -o -f "${chkssldir}/opensslv.h" ]; then - SSLDIR=$(echo "${chkssldir}" | sed 's@/[^/]*/*$@@') - fi - done + if [ -z "${SSLDIR}" ]; then + for chkssldir in $(pkg-config openssl --cflags | sed 's@ *-I *@|@g' | tr '|' "\n" | grep '^/'); do + if [ -f "${chkssldir}/openssl/opensslv.h" -o -f "${chkssldir}/opensslv.h" ]; then + SSLDIR=$(echo "${chkssldir}" | sed 's@/[^/]*/*$@@') + fi + done + fi if [ -z "${SSLDIR}" ]; then SSLDIR="/usr" fi bash ./configure --enable-shared --with-tcl="${TCLCONFIGDIR}" --with-ssl-dir="${SSLDIR}" ${CONFIGUREEXTRA}