From d8cd6d7e369fe814cd441b190ae562190aaa65e8 Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Tue, 24 Feb 2004 19:34:46 +0000 Subject: [PATCH] nginx-0.0.2-2004-02-24-22:34:46 import --- auto/fmt/ptrfmt | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/auto/fmt/ptrfmt b/auto/fmt/ptrfmt index 8bbdcd10c..f913e23f9 100644 --- a/auto/fmt/ptrfmt +++ b/auto/fmt/ptrfmt @@ -48,11 +48,18 @@ if [ $ngx_fmt = no ]; then exit 1 fi -fmtX="%0`expr 2 \* ${ngx_ptr_bytes}`" + +if [ $ngx_ptr_bytes = 4 ]; then + fmtX="%0`expr 2 \* $ngx_ptr_bytes`" +else + fmtX="%$ngx_ptr_bytes' +fi + ngx_fmt=`echo $ngx_fmt | sed -e "s/d/X/" -e "s/^%/$fmtX/"` echo "$comma \"${ngx_fmt}\" used" + cat << END >> $NGX_AUTO_CONFIG_H #ifndef $ngx_fmt_name