From: Igor Sysoev Date: Sun, 15 Jul 2007 14:45:51 +0000 (+0000) Subject: Solaris compatibility X-Git-Tag: release-0.6.4~5 X-Git-Url: http://git.kaiwu.me/sitemap.xml?a=commitdiff_plain;h=d3f7b53c45dc09fb8b5831635edd0ff24ffca318;p=nginx.git Solaris compatibility --- diff --git a/auto/lib/pcre/conf b/auto/lib/pcre/conf index f0666ae71..667a16a1d 100644 --- a/auto/lib/pcre/conf +++ b/auto/lib/pcre/conf @@ -25,11 +25,11 @@ if [ $PCRE != NONE ]; then echo $ngx_n "checking for PCRE library ...$ngx_c" - if [ -e $PCRE/pcre.h ]; then + if [ -f $PCRE/pcre.h ]; then ngx_pcre_ver=`grep PCRE_MAJOR $PCRE/pcre.h \ | sed -e 's/^.*PCRE_MAJOR.* \(.*\)$/\1/'` - else if [ -e $PCRE/configure.in.h ]; then + else if [ -f $PCRE/configure.in.h ]; then ngx_pcre_ver=`grep PCRE_MAJOR= $PCRE/configure.in \ | sed -e 's/^.*=\(.*\)$/\1/'`