2 # Copyright (C) Igor Sysoev
5 echo $ngx_n "checking for uintptr_t ...$ngx_c"
7 echo "checking for uintptr_t" >> $NGX_ERR
11 cat << END > $NGX_AUTOTEST.c
13 #include <sys/types.h>
23 eval "$CC -o $NGX_AUTOTEST $NGX_AUTOTEST.c >> $NGX_ERR 2>&1"
25 if [ -x $NGX_AUTOTEST ]; then
26 echo " uintptr_t found"
29 echo $ngx_n " uintptr_t not found" $ngx_c
35 if [ $found = no ]; then
36 found="uint`expr 8 \* $ngx_ptr_size`_t"
39 echo "typedef $found uintptr_t;" >> $NGX_AUTO_CONFIG_H
40 echo "typedef $found intptr_t;" | sed -e 's/u//g' >> $NGX_AUTO_CONFIG_H