mirror of
https://github.com/nginx/nginx.git
synced 2025-06-30 03:00:38 +08:00
Solaris compatibility
This commit is contained in:
parent
ae004c0592
commit
d3f7b53c45
@ -25,11 +25,11 @@ if [ $PCRE != NONE ]; then
|
|||||||
|
|
||||||
echo $ngx_n "checking for PCRE library ...$ngx_c"
|
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 \
|
ngx_pcre_ver=`grep PCRE_MAJOR $PCRE/pcre.h \
|
||||||
| sed -e 's/^.*PCRE_MAJOR.* \(.*\)$/\1/'`
|
| 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 \
|
ngx_pcre_ver=`grep PCRE_MAJOR= $PCRE/configure.in \
|
||||||
| sed -e 's/^.*=\(.*\)$/\1/'`
|
| sed -e 's/^.*=\(.*\)$/\1/'`
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user