]> git.kaiwu.me - njs.git/commitdiff
Style unification of configure feature tests.
authorIgor Sysoev <igor@sysoev.ru>
Mon, 24 Oct 2016 14:29:27 +0000 (17:29 +0300)
committerIgor Sysoev <igor@sysoev.ru>
Mon, 24 Oct 2016 14:29:27 +0000 (17:29 +0300)
nxt/auto/clang
nxt/auto/getrandom
nxt/auto/time

index d14e9ecf728ab6792d10e454cae745773bd23f5f..50da1b02c431f822d16dfc701608456f7eaaab11 100644 (file)
@@ -205,20 +205,20 @@ nxt_feature_test="int main(void) {
 
 nxt_feature="GCC __attribute__ visibility"
 nxt_feature_name=NXT_HAVE_GCC_ATTRIBUTE_VISIBILITY
-nxt_feature_run=
+nxt_feature_run=no
 nxt_feature_path=
 nxt_feature_libs=
 nxt_feature_test="int n __attribute__ ((visibility(\"default\")));
 
                   int main(void) {
-                      return 1;
+                      return 0;
                   }"
 . ${NXT_AUTO}feature
 
 
 nxt_feature="GCC __attribute__ malloc"
 nxt_feature_name=NXT_HAVE_GCC_ATTRIBUTE_MALLOC
-nxt_feature_run=
+nxt_feature_run=no
 nxt_feature_path=
 nxt_feature_libs=
 nxt_feature_test="#include <stdlib.h>
@@ -251,13 +251,13 @@ else
 
     nxt_feature="GCC __attribute__ aligned"
     nxt_feature_name=NXT_HAVE_GCC_ATTRIBUTE_ALIGNED
-    nxt_feature_run=
+    nxt_feature_run=no
     nxt_feature_path=
     nxt_feature_libs=
     nxt_feature_test="int n __attribute__ ((aligned(64)));
 
                       int main(void) {
-                          return 1;
+                          return 0;
                       }"
     . ${NXT_AUTO}feature
 
index d54110b17c4b0351f78d28433f4b28a1dd22b2da..00e85daf47dcaca19deaee1f6f6950bed08c2c13 100644 (file)
@@ -7,7 +7,7 @@
 
 nxt_feature="getrandom()"
 nxt_feature_name=NXT_HAVE_GETRANDOM
-nxt_feature_run=
+nxt_feature_run=no
 nxt_feature_incs=
 nxt_feature_libs=
 nxt_feature_test="#include <unistd.h>
index 2ba4e0056043a173147a5eb287e09d0eaa612ac8..4894b63781a8a04a36826fc5a8b7cac7d1d90d20 100644 (file)
@@ -7,7 +7,7 @@
 
 nxt_feature="struct tm.tm_gmtoff"
 nxt_feature_name=NXT_HAVE_TM_GMTOFF
-nxt_feature_run=
+nxt_feature_run=no
 nxt_feature_incs=
 nxt_feature_libs=
 nxt_feature_test="#include <time.h>
@@ -27,7 +27,7 @@ nxt_feature_test="#include <time.h>
 
 nxt_feature="altzone"
 nxt_feature_name=NXT_HAVE_ALTZONE
-nxt_feature_run=
+nxt_feature_run=no
 nxt_feature_incs=
 nxt_feature_libs=
 nxt_feature_test="#include <time.h>