Igor Sysoev | dc867cd | 2003-12-14 20:10:27 +0000 | [diff] [blame] | 1 | |
Igor Sysoev | ff8da91 | 2004-09-29 16:00:49 +0000 | [diff] [blame] | 2 | # Copyright (C) Igor Sysoev |
| 3 | |
| 4 | |
Igor Sysoev | c0edbcc | 2004-10-21 15:34:38 +0000 | [diff] [blame] | 5 | echo $ngx_n "checking for $ngx_lib ...$ngx_c" |
| 6 | |
| 7 | cat << END >> $NGX_AUTOCONF_ERR |
| 8 | |
| 9 | ---------------------------------------- |
| 10 | checking for $ngx_lib |
| 11 | |
| 12 | END |
Igor Sysoev | dc867cd | 2003-12-14 20:10:27 +0000 | [diff] [blame] | 13 | |
| 14 | ngx_found=no |
| 15 | |
Igor Sysoev | c0edbcc | 2004-10-21 15:34:38 +0000 | [diff] [blame] | 16 | cat << END > $NGX_AUTOTEST.c |
| 17 | |
| 18 | $ngx_lib_incs |
| 19 | |
| 20 | int main() { |
| 21 | $ngx_lib_test; |
| 22 | return 0; |
| 23 | } |
| 24 | |
Igor Sysoev | dc867cd | 2003-12-14 20:10:27 +0000 | [diff] [blame] | 25 | |
Igor Sysoev | fff3232 | 2004-04-08 15:58:25 +0000 | [diff] [blame] | 26 | eval "$CC $cc_test_flags $ngx_lib_cflags \ |
| 27 | -o $NGX_AUTOTEST $NGX_AUTOTEST.c $ngx_libs \ |
Igor Sysoev | dc867cd | 2003-12-14 20:10:27 +0000 | [diff] [blame] | 28 | >> $NGX_ERR 2>&1" |
| 29 | |
| 30 | if [ -x $NGX_AUTOTEST ]; then |
Igor Sysoev | 0ee5d3c | 2004-02-20 16:48:59 +0000 | [diff] [blame] | 31 | echo " found" |
Igor Sysoev | dc867cd | 2003-12-14 20:10:27 +0000 | [diff] [blame] | 32 | |
| 33 | ngx_found=yes |
| 34 | |
| 35 | else |
Igor Sysoev | 0ee5d3c | 2004-02-20 16:48:59 +0000 | [diff] [blame] | 36 | echo " not found" |
Igor Sysoev | dc867cd | 2003-12-14 20:10:27 +0000 | [diff] [blame] | 37 | fi |
| 38 | |
| 39 | rm $NGX_AUTOTEST* |