comparison auto/feature @ 875:7af8276b1c2f

test PCRE in FreeBSD, Linux, and NetBSD
author Igor Sysoev <igor@sysoev.ru>
date Mon, 27 Nov 2006 11:07:09 +0000
parents 5bb10018ae14
children 756e8a5b1f78
comparison
equal deleted inserted replaced
874:98afa13ea7e5 875:7af8276b1c2f
16 if test -n "$ngx_feature_name"; then 16 if test -n "$ngx_feature_name"; then
17 ngx_have_feature=`echo $ngx_feature_name \ 17 ngx_have_feature=`echo $ngx_feature_name \
18 | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ` 18 | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`
19 fi 19 fi
20 20
21 if test -n "$ngx_feature_path"; then
22 ngx_feature_inc_path="-I $ngx_feature_path"
23 fi
24
21 cat << END > $NGX_AUTOTEST.c 25 cat << END > $NGX_AUTOTEST.c
22 26
23 #include <sys/types.h> 27 #include <sys/types.h>
24 $NGX_INCLUDE_UNISTD_H 28 $NGX_INCLUDE_UNISTD_H
25 $ngx_feature_incs 29 $ngx_feature_incs
30 } 34 }
31 35
32 END 36 END
33 37
34 38
35 ngx_test="$CC $CC_TEST_FLAGS $CC_AUX_FLAGS \ 39 ngx_test="$CC $CC_TEST_FLAGS $CC_AUX_FLAGS $ngx_feature_inc_path \
36 -o $NGX_AUTOTEST $NGX_AUTOTEST.c $NGX_LD_OPT $ngx_feature_libs" 40 -o $NGX_AUTOTEST $NGX_AUTOTEST.c $NGX_LD_OPT $ngx_feature_libs"
41
42 ngx_feature_inc_path=
37 43
38 eval "$ngx_test >> $NGX_AUTOCONF_ERR 2>&1" 44 eval "$ngx_test >> $NGX_AUTOCONF_ERR 2>&1"
39 45
40 46
41 if [ -x $NGX_AUTOTEST ]; then 47 if [ -x $NGX_AUTOTEST ]; then