comparison auto/cc/conf @ 3362:b57a4a704f3c

GCC 4.1 builtin atomic operations
author Igor Sysoev <igor@sysoev.ru>
date Wed, 25 Nov 2009 17:34:35 +0000
parents 7af8276b1c2f
children b44a7159c5fb
comparison
equal deleted inserted replaced
3361:79884a49e46f 3362:b57a4a704f3c
103 103
104 fi 104 fi
105 105
106 CFLAGS="$CFLAGS $NGX_CC_OPT" 106 CFLAGS="$CFLAGS $NGX_CC_OPT"
107 107
108
109 if [ "$NGX_PLATFORM" != win32 ]; then 108 if [ "$NGX_PLATFORM" != win32 ]; then
110 109
111 if test -n "$NGX_LD_OPT"; then 110 if test -n "$NGX_LD_OPT"; then
112 ngx_feature=--with-ld-opt=\"$NGX_LD_OPT\" 111 ngx_feature=--with-ld-opt=\"$NGX_LD_OPT\"
113 ngx_feature_name= 112 ngx_feature_name=
122 echo $0: error: the invalid value in --with-ld-opt=\"$NGX_LD_OPT\" 121 echo $0: error: the invalid value in --with-ld-opt=\"$NGX_LD_OPT\"
123 echo 122 echo
124 exit 1 123 exit 1
125 fi 124 fi
126 fi 125 fi
126
127
128 ngx_feature="gcc builtin atomic operations"
129 ngx_feature_name=NGX_HAVE_GCC_ATOMIC
130 ngx_feature_run=no
131 ngx_feature_incs=
132 ngx_feature_path=
133 ngx_feature_libs=
134 ngx_feature_test="long n;
135 __sync_bool_compare_and_swap(&n, 0, 1);
136 __sync_fetch_and_add(&n, 1);"
137 . auto/feature
138
127 139
128 ngx_feature="gcc variadic macros" 140 ngx_feature="gcc variadic macros"
129 ngx_feature_name="NGX_HAVE_GCC_VARIADIC_MACROS" 141 ngx_feature_name="NGX_HAVE_GCC_VARIADIC_MACROS"
130 ngx_feature_run=yes 142 ngx_feature_run=yes
131 ngx_feature_incs="#include <stdio.h> 143 ngx_feature_incs="#include <stdio.h>