Mercurial > hg > nginx-quic
diff auto/func @ 197:0b81c7a0b133
nginx-0.0.1-2003-11-27-10:45:22 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Thu, 27 Nov 2003 07:45:22 +0000 |
parents | 11fbd0fc041d |
children | 34995c5ec6c4 |
line wrap: on
line diff
--- a/auto/func +++ b/auto/func @@ -1,13 +1,15 @@ echo "checking for $NGX_FUNC" +NGX_FOUND=NO + func=`echo $NGX_FUNC | sed -e 's/()$//' | tr '[a-z]' '[A-Z]'` echo "$NGX_UNISTD_H" > autotest.c echo "$NGX_FUNC_INC" >> autotest.c echo "int main() { $NGX_FUNC_TEST; return 0; }" >> autotest.c -eval "$CC $CC_TEST_FLAGS -o autotest autotest.c > /dev/null 2>&1" +eval "$CC $CC_TEST_FLAGS -o autotest autotest.c > $NGX_ERR 2>&1" if [ -x autotest ]; then echo " + $NGX_FUNC found" @@ -16,6 +18,9 @@ if [ -x autotest ]; then echo "#define HAVE_$func 1" >> $NGX_AUTO_CONFIG_H echo "#endif" >> $NGX_AUTO_CONFIG_H echo >> $NGX_AUTO_CONFIG_H + + NGX_FOUND=YES + else echo " + $NGX_FUNC not found" fi