1:
2: # Copyright (C) Igor Sysoev
3: # Copyright (C) Nginx, Inc.
4:
5:
6: echo $ngx_n "checking for $ngx_lib ...$ngx_c"
7:
8: cat << END >> $NGX_AUTOCONF_ERR
9:
10: ----------------------------------------
11: checking for $ngx_lib
12:
13: END
14:
15: ngx_found=no
16:
17: cat << END > $NGX_AUTOTEST.c
18:
19: $ngx_lib_incs
20:
21: int main() {
22: $ngx_lib_test;
23: return 0;
24: }
25:
26:
27: eval "$CC $cc_test_flags $ngx_lib_cflags \
28: -o $NGX_AUTOTEST $NGX_AUTOTEST.c $ngx_libs \
29: >> $NGX_ERR 2>&1"
30:
31: if [ -x $NGX_AUTOTEST ]; then
32: echo " found"
33:
34: ngx_found=yes
35:
36: else
37: echo " not found"
38: fi
39:
40: rm $NGX_AUTOTEST*
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>