# Copyright (C) Nginx, Inc.
-echo $ngx_n "checking for system endianess ...$ngx_c"
+echo $ngx_n "checking for system byte ordering ...$ngx_c"
echo >> $NGX_ERR
-echo "checking for system endianess" >> $NGX_ERR
+echo "checking for system byte ordering" >> $NGX_ERR
cat << END > $NGX_AUTOTEST.c
if [ -x $NGX_AUTOTEST ]; then
if $NGX_AUTOTEST >/dev/null 2>&1; then
- echo " little endianess"
+ echo " little endian"
have=NGX_HAVE_LITTLE_ENDIAN . auto/have
else
- echo " big endianess"
+ echo " big endian"
fi
rm $NGX_AUTOTEST*
rm $NGX_AUTOTEST*
echo
- echo "$0: error: can not detect system endianess"
+ echo "$0: error: cannot detect system byte ordering"
exit 1
fi
fi
+if [ $ngx_found = no ]; then
+
+ # MacPorts
+
+ ngx_feature="Google perftools in /opt/local/"
+
+ if [ $NGX_RPATH = YES ]; then
+ ngx_feature_libs="-R/opt/local/lib -L/opt/local/lib -lprofiler"
+ else
+ ngx_feature_libs="-L/opt/local/lib -lprofiler"
+ fi
+
+ . auto/feature
+fi
+
+
if [ $ngx_found = yes ]; then
CORE_LIBS="$CORE_LIBS $ngx_feature_libs"
. auto/types/uintptr_t
-. auto/endianess
+. auto/endianness
ngx_type="size_t"; . auto/types/sizeof
ngx_param=NGX_MAX_SIZE_T_VALUE; ngx_value=$ngx_max_value; . auto/types/value
u_char GEORNG[6];
u_char version;
u_char ptr_size;
- uint32_t endianess;
+ uint32_t endianness;
uint32_t crc32;
} ngx_http_geo_header_t;
}
} else {
- len += sizeof("Connection: closed" CRLF) - 1;
+ len += sizeof("Connection: close" CRLF) - 1;
}
#if (NGX_HTTP_GZIP)
}
-ngx_uint_t
+ngx_int_t
ngx_strerror_init(void)
{
char *msg;
u_char *ngx_strerror(ngx_err_t err, u_char *errstr, size_t size);
-ngx_uint_t ngx_strerror_init(void);
+ngx_int_t ngx_strerror_init(void);
#endif /* _NGX_ERRNO_H_INCLUDED_ */
}
-ngx_uint_t
+ngx_int_t
ngx_strerror_init(void)
{
return NGX_OK;
u_char *ngx_strerror(ngx_err_t err, u_char *errstr, size_t size);
-ngx_uint_t ngx_strerror_init(void);
+ngx_int_t ngx_strerror_init(void);
#endif /* _NGX_ERRNO_H_INCLUDED_ */
if (ch == ':') {
goto invalid;
}
-
+
if (ch == '.' || ch == ' ') {
break;
}