view auto/func @ 461:a88a3e4e158f release-0.1.5

nginx-0.1.5-RELEASE import *) Bugfix: on Solaris and Linux there may be too many "recvmsg() returned not enough data" alerts. *) Bugfix: there were the "writev() failed (22: Invalid argument)" errors on Solaris in proxy mode without sendfile. On other platforms that do not support sendfile at all the process got caught in an endless loop. *) Bugfix: segmentation fault on Solaris in proxy mode and using sendfile. *) Bugfix: segmentation fault on Solaris. *) Bugfix: on-line upgrade did not work on Linux. *) Bugfix: the ngx_http_autoindex_module module did not escape the spaces, the quotes, and the percent signs in the directory listing. *) Change: the decrease of the copy operations. *) Feature: the userid_p3p directive.
author Igor Sysoev <igor@sysoev.ru>
date Thu, 11 Nov 2004 14:07:14 +0000
parents 42d11f017717
children
line wrap: on
line source


# Copyright (C) Igor Sysoev


echo $ngx_n "checking for $ngx_func ..." $ngx_c
echo >> $NGX_ERR
echo "checking for $ngx_func" >> $NGX_ERR

ngx_found=no

func=`echo $ngx_func | sed -e 's/()$//' | tr '[a-z]' '[A-Z]'`

cat << END > $NGX_AUTOTEST.c

#include <sys/types.h>
$NGX_UNISTD_H
$ngx_func_inc

int main() {
    $ngx_func_test;
    return 0;
}

END

test="$CC_WARN $CC_TEST_FLAGS -o $NGX_AUTOTEST $NGX_AUTOTEST.c $ngx_func_libs"
eval "$test >> $NGX_ERR 2>&1"

if [ -x $NGX_AUTOTEST ]; then
    echo " found"
    have=HAVE_$func . auto/have
    ngx_found=yes

else
    echo " not found"
    echo "---------" >> $NGX_ERR
    cat $NGX_AUTOTEST.c >> $NGX_ERR
    echo "---------" >> $NGX_ERR
    echo $test >> $NGX_ERR
    echo "---------" >> $NGX_ERR
fi

rm $NGX_AUTOTEST*