From 9af0c95f64d384b97c7ae9fd43f0ff0acf57831c Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Wed, 3 Jun 2009 04:53:01 +0000 Subject: librt must be tested before creating Makefile the bug has been introduced in r2817 --- auto/os/features | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'auto/os') diff --git a/auto/os/features b/auto/os/features index ae0590e09..140e26b89 100644 --- a/auto/os/features +++ b/auto/os/features @@ -252,3 +252,25 @@ if [ $ngx_found != yes ]; then NGX_LIBDL="-ldl" fi fi + + +ngx_feature="sched_yield()" +ngx_feature_name="NGX_HAVE_SCHED_YIELD" +ngx_feature_run=no +ngx_feature_incs="#include " +ngx_feature_path= +ngx_feature_libs= +ngx_feature_test="sched_yield()" +. auto/feature + + +if [ $ngx_found != yes ]; then + + ngx_feature="sched_yield() in librt" + ngx_feature_libs="-lrt" + . auto/feature + + if [ $ngx_found = yes ]; then + CORE_LIBS="$CORE_LIBS -lrt" + fi +fi -- cgit