# HG changeset patch # User Igor Sysoev # Date 1184510751 0 # Node ID 56af40ef3a08cac204f9dd1698fea8351c123b6b # Parent 1476d32c66a7dc5c9fdc129548f885b5ecb08781 Solaris compatibility diff --git a/auto/lib/pcre/conf b/auto/lib/pcre/conf --- 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/'`