Back to home page

Nginx displayed by LXR

Source navigation ]
Diff markup ]
Identifier search ]
general search ]
 
 
Version: nginx-1.13.12 ]​[ nginx-1.12.2 ]​

0001 
0002 # Copyright (C) Igor Sysoev
0003 # Copyright (C) Nginx, Inc.
0004 
0005 
0006 echo $ngx_n "checking for $ngx_include ...$ngx_c"
0007 
0008 cat << END >> $NGX_AUTOCONF_ERR
0009 
0010 ----------------------------------------
0011 checking for $ngx_include
0012 
0013 END
0014 
0015 
0016 ngx_found=no
0017 
0018 cat << END > $NGX_AUTOTEST.c
0019 
0020 $NGX_INCLUDE_SYS_PARAM_H
0021 #include <$ngx_include>
0022 
0023 int main(void) {
0024     return 0;
0025 }
0026 
0027 END
0028 
0029 
0030 ngx_test="$CC -o $NGX_AUTOTEST $NGX_AUTOTEST.c"
0031 
0032 eval "$ngx_test >> $NGX_AUTOCONF_ERR 2>&1"
0033 
0034 if [ -x $NGX_AUTOTEST ]; then
0035 
0036     ngx_found=yes
0037 
0038     echo " found"
0039 
0040     ngx_name=`echo $ngx_include \
0041               | tr abcdefghijklmnopqrstuvwxyz/. ABCDEFGHIJKLMNOPQRSTUVWXYZ__`
0042 
0043 
0044     have=NGX_HAVE_$ngx_name . auto/have_headers
0045 
0046     eval "NGX_INCLUDE_$ngx_name='#include <$ngx_include>'"
0047 
0048 else
0049     echo " not found"
0050 
0051     echo "----------"    >> $NGX_AUTOCONF_ERR
0052     cat $NGX_AUTOTEST.c  >> $NGX_AUTOCONF_ERR
0053     echo "----------"    >> $NGX_AUTOCONF_ERR
0054     echo $ngx_test       >> $NGX_AUTOCONF_ERR
0055     echo "----------"    >> $NGX_AUTOCONF_ERR
0056 fi
0057 
0058 rm -rf $NGX_AUTOTEST*