comparison auto/lib/pcre/conf @ 1306:56af40ef3a08

Solaris compatibility
author Igor Sysoev <igor@sysoev.ru>
date Sun, 15 Jul 2007 14:45:51 +0000
parents 1476d32c66a7
children 811fb97b9bf7
comparison
equal deleted inserted replaced
1305:1476d32c66a7 1306:56af40ef3a08
23 23
24 LINK_DEPS="$LINK_DEPS $PCRE/.libs/libpcre.a" 24 LINK_DEPS="$LINK_DEPS $PCRE/.libs/libpcre.a"
25 25
26 echo $ngx_n "checking for PCRE library ...$ngx_c" 26 echo $ngx_n "checking for PCRE library ...$ngx_c"
27 27
28 if [ -e $PCRE/pcre.h ]; then 28 if [ -f $PCRE/pcre.h ]; then
29 ngx_pcre_ver=`grep PCRE_MAJOR $PCRE/pcre.h \ 29 ngx_pcre_ver=`grep PCRE_MAJOR $PCRE/pcre.h \
30 | sed -e 's/^.*PCRE_MAJOR.* \(.*\)$/\1/'` 30 | sed -e 's/^.*PCRE_MAJOR.* \(.*\)$/\1/'`
31 31
32 else if [ -e $PCRE/configure.in.h ]; then 32 else if [ -f $PCRE/configure.in.h ]; then
33 ngx_pcre_ver=`grep PCRE_MAJOR= $PCRE/configure.in \ 33 ngx_pcre_ver=`grep PCRE_MAJOR= $PCRE/configure.in \
34 | sed -e 's/^.*=\(.*\)$/\1/'` 34 | sed -e 's/^.*=\(.*\)$/\1/'`
35 35
36 else 36 else
37 ngx_pcre_ver=`grep pcre_major, $PCRE/configure.ac \ 37 ngx_pcre_ver=`grep pcre_major, $PCRE/configure.ac \