# HG changeset patch # User Igor Sysoev # Date 1238679999 0 # Node ID 2ca36a62c8a15b520ed3fba2801733cb625b8bab # Parent a3bcaabf2ec873eeb5b3fd8979b6acb5f84d7ff6 autoconfigure crypt_r(): uclibc has no crypt_r() diff -r a3bcaabf2ec8 -r 2ca36a62c8a1 auto/os/linux --- a/auto/os/linux Thu Apr 02 13:44:32 2009 +0000 +++ b/auto/os/linux Thu Apr 02 13:46:39 2009 +0000 @@ -124,6 +124,19 @@ . auto/feature +# crypt_r() + +ngx_feature="crypt_r()" +ngx_feature_name="NGX_HAVE_GNU_CRYPT_R" +ngx_feature_run=no +ngx_feature_incs="#include " +ngx_feature_path= +ngx_feature_libs=-lcrypt +ngx_feature_test="struct crypt_data cd; + crypt_r(NULL, NULL, &cd);" +. auto/feature + + ngx_include="sys/vfs.h"; . auto/include diff -r a3bcaabf2ec8 -r 2ca36a62c8a1 src/os/unix/ngx_linux_config.h --- a/src/os/unix/ngx_linux_config.h Thu Apr 02 13:44:32 2009 +0000 +++ b/src/os/unix/ngx_linux_config.h Thu Apr 02 13:46:39 2009 +0000 @@ -95,11 +95,6 @@ #endif -#ifndef NGX_HAVE_GNU_CRYPT_R -#define NGX_HAVE_GNU_CRYPT_R 1 -#endif - - #ifndef NGX_HAVE_INHERITED_NONBLOCK #define NGX_HAVE_INHERITED_NONBLOCK 0 #endif