comparison auto/types/typedef @ 193:dd66383796a5

nginx-0.0.1-2003-11-20-20:36:43 import
author Igor Sysoev <igor@sysoev.ru>
date Thu, 20 Nov 2003 17:36:43 +0000
parents
children 8dee38ea9117
comparison
equal deleted inserted replaced
192:31824be1fc66 193:dd66383796a5
1
2 echo "Checking for $NGX_TYPE definition"
3
4 echo "#include <sys/types.h>" > autotest.c
5 TYPE=`${CPP} autotest.c | \
6 awk "/^typedef.*$NGX_TYPE/ { for (i = 1; i< NF; i++) print $i}"`
7 #rm autotest.c
8
9 echo $TYPE
10
11 case $TYPE in
12 "long long")
13 echo ' + defined as long long'
14 NGX_FMT=$NGX_LONG_LONG_FMT
15 ;;
16
17 long)
18 echo ' + defined as long'
19 NGX_FMT=$NGX_LONG_FMT
20 ;;
21
22 int)
23 echo ' + defined as int'
24 NGX_FMT=$NGX_INT_FMT
25 ;;
26
27 *)
28 echo "$0: error: unknown $NGX_TYPE definition: \"$TYPE\""
29 exit 1
30 ;;
31
32 esac