diff options
author | Florin Coras <florin.coras@gmail.com> | 2020-04-29 17:00:20 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@fd.io> | 2020-04-29 17:00:20 +0000 |
commit | 1e75471aed27194fb8ee0b2c07c64fb8a8f55279 (patch) | |
tree | fdb69f1cbe2f3149254881c7bed298dcb283f832 /nginx/auto/lib/libatomic/conf | |
parent | 057728c66960a84e3a6a607f0ddf5deb0095c7be (diff) | |
parent | 6a5411729539fe21117f406699a69974b320eb7e (diff) |
Merge "remove nginx build directory"
Diffstat (limited to 'nginx/auto/lib/libatomic/conf')
-rw-r--r-- | nginx/auto/lib/libatomic/conf | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/nginx/auto/lib/libatomic/conf b/nginx/auto/lib/libatomic/conf deleted file mode 100644 index d1e484a..0000000 --- a/nginx/auto/lib/libatomic/conf +++ /dev/null @@ -1,43 +0,0 @@ - -# Copyright (C) Igor Sysoev -# Copyright (C) Nginx, Inc. - - -if [ $NGX_LIBATOMIC != YES ]; then - - have=NGX_HAVE_LIBATOMIC . auto/have - CORE_INCS="$CORE_INCS $NGX_LIBATOMIC/src" - LINK_DEPS="$LINK_DEPS $NGX_LIBATOMIC/src/libatomic_ops.a" - CORE_LIBS="$CORE_LIBS $NGX_LIBATOMIC/src/libatomic_ops.a" - -else - - ngx_feature="atomic_ops library" - ngx_feature_name=NGX_HAVE_LIBATOMIC - ngx_feature_run=yes - ngx_feature_incs="#define AO_REQUIRE_CAS - #include <atomic_ops.h>" - ngx_feature_path= - ngx_feature_libs="-latomic_ops" - ngx_feature_test="long n = 0; - if (!AO_compare_and_swap(&n, 0, 1)) - return 1; - if (AO_fetch_and_add(&n, 1) != 1) - return 1; - if (n != 2) - return 1; - AO_nop();" - . auto/feature - - if [ $ngx_found = yes ]; then - CORE_LIBS="$CORE_LIBS $ngx_feature_libs" - else - -cat << END - -$0: error: libatomic_ops library was not found. - -END - exit 1 - fi -fi |