Annotation of embedaddon/nginx/auto/include, revision 1.1.1.1

1.1       misho       1: 
                      2: # Copyright (C) Igor Sysoev
                      3: # Copyright (C) Nginx, Inc.
                      4: 
                      5: 
                      6: echo $ngx_n "checking for $ngx_include ...$ngx_c"
                      7: 
                      8: cat << END >> $NGX_AUTOCONF_ERR
                      9: 
                     10: ----------------------------------------
                     11: checking for $ngx_include
                     12: 
                     13: END
                     14: 
                     15: 
                     16: ngx_found=no
                     17: 
                     18: cat << END > $NGX_AUTOTEST.c
                     19: 
                     20: $NGX_INCLUDE_SYS_PARAM_H
                     21: #include <$ngx_include>
                     22: 
                     23: int main() {
                     24:     return 0;
                     25: }
                     26: 
                     27: END
                     28: 
                     29: 
                     30: ngx_test="$CC -o $NGX_AUTOTEST $NGX_AUTOTEST.c"
                     31: 
                     32: eval "$ngx_test >> $NGX_AUTOCONF_ERR 2>&1"
                     33: 
                     34: if [ -x $NGX_AUTOTEST ]; then
                     35: 
                     36:     ngx_found=yes
                     37: 
                     38:     echo " found"
                     39: 
                     40:     ngx_name=`echo $ngx_include \
                     41:               | tr abcdefghijklmnopqrstuvwxyz/. ABCDEFGHIJKLMNOPQRSTUVWXYZ__`
                     42: 
                     43: 
                     44:     have=NGX_HAVE_$ngx_name . auto/have_headers
                     45: 
                     46:     eval "NGX_INCLUDE_$ngx_name='#include <$ngx_include>'"
                     47: 
                     48:     #STUB
                     49:     eval "NGX_$ngx_name='#include <$ngx_include>'"
                     50: 
                     51: else
                     52:     echo " not found"
                     53: 
                     54:     echo "----------"    >> $NGX_AUTOCONF_ERR
                     55:     cat $NGX_AUTOTEST.c  >> $NGX_AUTOCONF_ERR
                     56:     echo "----------"    >> $NGX_AUTOCONF_ERR
                     57:     echo $ngx_test       >> $NGX_AUTOCONF_ERR
                     58:     echo "----------"    >> $NGX_AUTOCONF_ERR
                     59: fi
                     60: 
                     61: rm $NGX_AUTOTEST*

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>