Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nginx/nginx.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/auto/func
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2003-11-27 10:45:22 +0300
committerIgor Sysoev <igor@sysoev.ru>2003-11-27 10:45:22 +0300
commit0e499db3ed63432cfacd08282cce1d42b568b567 (patch)
tree3dc7936e2083a5b72f82340973dd3dea55bb1ee8 /auto/func
parentc0f8d91bde06aeeb53ff16d6c26490f5961f5a31 (diff)
nginx-0.0.1-2003-11-27-10:45:22 import
Diffstat (limited to 'auto/func')
-rw-r--r--auto/func7
1 files changed, 6 insertions, 1 deletions
diff --git a/auto/func b/auto/func
index 553333dc0..5cde42826 100644
--- 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