diff options
author | Igor Sysoev <igor@sysoev.ru> | 2004-02-03 23:27:11 +0300 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2004-02-03 23:27:11 +0300 |
commit | af57922780f9a851d467539de58c07b2663cafd6 (patch) | |
tree | 6691dc3886be2b41140db30122b435bad0bf57d1 /auto/init | |
parent | 25b36fedf72139617dc172dbca887888b258698d (diff) |
nginx-0.0.2-2004-02-03-23:27:11 import
Diffstat (limited to 'auto/init')
-rw-r--r-- | auto/init | 17 |
1 files changed, 17 insertions, 0 deletions
@@ -6,3 +6,20 @@ NGX_MODULES_C=$OBJS/ngx_modules.c NGX_AUTOTEST=$OBJS/autotest NGX_ERR=$OBJS/autoconf.err + + +# checking echo's "-n" option and "\c" capabilties + +if echo "test\c" | grep c >/dev/null; then + if echo -n test | grep n >/dev/null; then + ngx_n= + ngx_c= + else + ngx_n=-n + ngx_c= + fi + +else + ngx_n= + ngx_c='\c' +fi |