mirror of
https://github.com/nginx/nginx.git
synced 2026-08-30 06:58:42 +00:00
nginx-0.1.0-2004-09-29-20:00:49 import; remove years from copyright
This commit is contained in:
parent
55168f6b6b
commit
ff8da91784
250 changed files with 406 additions and 273 deletions
9
auto/cc
9
auto/cc
|
|
@ -1,4 +1,7 @@
|
|||
|
||||
# Copyright (C) Igor Sysoev
|
||||
|
||||
|
||||
CFLAGS="$CFLAGS $CC_OPT"
|
||||
|
||||
case $CC in
|
||||
|
|
@ -25,6 +28,12 @@ case $CC in
|
|||
# optimize for Pentium 4, gcc 3.x
|
||||
CPU_OPT="-march=pentium4"
|
||||
;;
|
||||
|
||||
sparc64)
|
||||
# build 64-bit binary, sparcv9 only
|
||||
CPU_OPT="-m64"
|
||||
;;
|
||||
|
||||
esac
|
||||
|
||||
# STUB for batch builds
|
||||
|
|
|
|||
7
auto/configure
vendored
7
auto/configure
vendored
|
|
@ -1,5 +1,8 @@
|
|||
#!/bin/sh
|
||||
|
||||
# Copyright (C) Igor Sysoev
|
||||
|
||||
|
||||
. auto/options
|
||||
. auto/init
|
||||
. auto/sources
|
||||
|
|
@ -43,7 +46,9 @@ have=NGX_PREFIX value="\"$PREFIX/\"" . auto/define
|
|||
have=NGX_SBIN_PATH value="\"$SBIN_PATH\"" . auto/define
|
||||
have=NGX_CONF_PATH value="\"$CONF_PATH\"" . auto/define
|
||||
have=NGX_PID_PATH value="\"$PID_PATH\"" . auto/define
|
||||
have=NGX_ERROR_LOG_PATH value="\"$ERROR_LOG_PATH\"" . auto/define
|
||||
if [ ".$NGX_ERROR_LOG_PATH" != "." ]; then
|
||||
have=NGX_ERROR_LOG_PATH value="\"$ERROR_LOG_PATH\"" . auto/define
|
||||
fi
|
||||
have=NGX_HTTP_LOG_PATH value="\"$HTTP_LOG_PATH\"" . auto/define
|
||||
|
||||
. auto/summary
|
||||
|
|
|
|||
|
|
@ -1,4 +1,7 @@
|
|||
|
||||
# Copyright (C) Igor Sysoev
|
||||
|
||||
|
||||
cat << END >> $NGX_AUTO_CONFIG_H
|
||||
|
||||
#ifndef $have
|
||||
|
|
|
|||
|
|
@ -1,4 +1,7 @@
|
|||
|
||||
# Copyright (C) Igor Sysoev
|
||||
|
||||
|
||||
echo $ngx_n "checking for system endianess ..." $ngx_c
|
||||
echo >> $NGX_ERR
|
||||
echo "checking for system endianess" >> $NGX_ERR
|
||||
|
|
|
|||
|
|
@ -1,4 +1,7 @@
|
|||
|
||||
# Copyright (C) Igor Sysoev
|
||||
|
||||
|
||||
echo $ngx_n "checking for $ngx_feature ..." $ngx_c
|
||||
echo >> $NGX_ERR
|
||||
echo "checking for $ngx_feature" >> $NGX_ERR
|
||||
|
|
|
|||
|
|
@ -1,4 +1,7 @@
|
|||
|
||||
# Copyright (C) Igor Sysoev
|
||||
|
||||
|
||||
echo $ngx_n "checking for $ngx_type printf() format ..." $ngx_c
|
||||
echo >> $NGX_ERR
|
||||
echo "checking for $ngx_type printf() format" >> $NGX_ERR
|
||||
|
|
|
|||
|
|
@ -1,4 +1,7 @@
|
|||
|
||||
# Copyright (C) Igor Sysoev
|
||||
|
||||
|
||||
echo $ngx_n "checking for $ngx_type printf() format ..." $ngx_c
|
||||
echo >> $NGX_ERR
|
||||
echo "checking for $ngx_type printf() format" >> $NGX_ERR
|
||||
|
|
|
|||
|
|
@ -1,4 +1,7 @@
|
|||
|
||||
# Copyright (C) Igor Sysoev
|
||||
|
||||
|
||||
cat << END | sed -e 's/d"$/x"/' >> $NGX_AUTO_CONFIG_H
|
||||
|
||||
#ifndef $ngx_fmt_name
|
||||
|
|
|
|||
|
|
@ -1,4 +1,7 @@
|
|||
|
||||
# Copyright (C) Igor Sysoev
|
||||
|
||||
|
||||
echo $ngx_n "checking for $ngx_func ..." $ngx_c
|
||||
echo >> $NGX_ERR
|
||||
echo "checking for $ngx_func" >> $NGX_ERR
|
||||
|
|
|
|||
|
|
@ -1,4 +1,7 @@
|
|||
|
||||
# Copyright (C) Igor Sysoev
|
||||
|
||||
|
||||
cat << END >> $NGX_AUTO_CONFIG_H
|
||||
|
||||
#ifndef $have
|
||||
|
|
|
|||
|
|
@ -1,3 +1,6 @@
|
|||
|
||||
# Copyright (C) Igor Sysoev
|
||||
|
||||
|
||||
ngx_inc="unistd.h"; . auto/inc
|
||||
ngx_inc="inttypes.h"; . auto/inc
|
||||
|
|
|
|||
3
auto/inc
3
auto/inc
|
|
@ -1,4 +1,7 @@
|
|||
|
||||
# Copyright (C) Igor Sysoev
|
||||
|
||||
|
||||
echo $ngx_n "checking for $ngx_inc ..." $ngx_c
|
||||
echo >> $NGX_ERR
|
||||
echo "checking for $ngx_inc" >> $NGX_ERR
|
||||
|
|
|
|||
|
|
@ -1,4 +1,7 @@
|
|||
|
||||
# Copyright (C) Igor Sysoev
|
||||
|
||||
|
||||
MAKEFILE=$OBJS/Makefile
|
||||
|
||||
NGX_AUTO_CONFIG_H=$OBJS/ngx_auto_config.h
|
||||
|
|
|
|||
14
auto/install
14
auto/install
|
|
@ -1,4 +1,7 @@
|
|||
|
||||
# Copyright (C) Igor Sysoev
|
||||
|
||||
|
||||
cat << END >> $MAKEFILE
|
||||
install:
|
||||
test -d $PREFIX || mkdir -p $PREFIX
|
||||
|
|
@ -18,7 +21,7 @@ install:
|
|||
cp conf/nginx.conf `dirname $CONF_PATH`/nginx.conf.default
|
||||
|
||||
test -d `dirname $PID_PATH` || mkdir -p `dirname $PID_PATH`
|
||||
test -d `dirname $ERROR_LOG_PATH` || mkdir -p `dirname $ERROR_LOG_PATH`
|
||||
|
||||
test -d `dirname $HTTP_LOG_PATH` || mkdir -p `dirname $HTTP_LOG_PATH`
|
||||
|
||||
test -d $PREFIX/html || cp -r html $PREFIX
|
||||
|
|
@ -27,6 +30,15 @@ install:
|
|||
END
|
||||
|
||||
|
||||
if [ ".$ERROR_LOG_PATH" != "." ]; then
|
||||
cat << END >> $MAKEFILE
|
||||
|
||||
test -d `dirname $ERROR_LOG_PATH` || mkdir -p `dirname $ERROR_LOG_PATH`
|
||||
END
|
||||
|
||||
fi
|
||||
|
||||
|
||||
if test ! -f Makefile; then
|
||||
|
||||
cat << END > Makefile
|
||||
|
|
|
|||
|
|
@ -1,4 +1,7 @@
|
|||
|
||||
# Copyright (C) Igor Sysoev
|
||||
|
||||
|
||||
if [ $USE_PCRE = YES ]; then
|
||||
. auto/lib/pcre/conf
|
||||
fi
|
||||
|
|
|
|||
|
|
@ -1,4 +1,7 @@
|
|||
|
||||
# Copyright (C) Igor Sysoev
|
||||
|
||||
|
||||
if [ $PCRE != NONE -a $PCRE != NO -a $PCRE != YES ]; then
|
||||
. auto/lib/pcre/make
|
||||
fi
|
||||
|
|
|
|||
|
|
@ -1,4 +1,7 @@
|
|||
|
||||
# Copyright (C) Igor Sysoev
|
||||
|
||||
|
||||
if [ $MD5 != NONE ]; then
|
||||
|
||||
if grep MD5_Init $MD5/md5.h >/dev/null; then
|
||||
|
|
|
|||
|
|
@ -1,4 +1,7 @@
|
|||
|
||||
# Copyright (C) Igor Sysoev
|
||||
|
||||
|
||||
case "$CC" in
|
||||
|
||||
cl)
|
||||
|
|
|
|||
|
|
@ -1,4 +1,7 @@
|
|||
|
||||
# Copyright (C) Igor Sysoev
|
||||
|
||||
|
||||
CFLAGS = -q -O2 -tWM $(CPU_OPT) -DL_ENDIAN
|
||||
|
||||
!if "$(MD5_ASM)" == "YES"
|
||||
|
|
|
|||
|
|
@ -1,4 +1,7 @@
|
|||
|
||||
# Copyright (C) Igor Sysoev
|
||||
|
||||
|
||||
CFLAGS = -nologo -MT -O2 -Ob1 -Oi -Gs $(LIBC) $(CPU_OPT) -D L_ENDIAN
|
||||
|
||||
!if "$(MD5_ASM)" == "YES"
|
||||
|
|
|
|||
|
|
@ -1,4 +1,7 @@
|
|||
|
||||
# Copyright (C) Igor Sysoev
|
||||
|
||||
|
||||
CFLAGS = -zq -bt=nt -bm -ot -op -oi -oe -s $(CPU_OPT)
|
||||
|
||||
md5.lib:
|
||||
|
|
|
|||
|
|
@ -1,4 +1,7 @@
|
|||
|
||||
# Copyright (C) Igor Sysoev
|
||||
|
||||
|
||||
if [ $OPENSSL != NONE ]; then
|
||||
CORE_INCS="$CORE_INCS $OPENSSL/include"
|
||||
CORE_DEPS="$CORE_DEPS $OPENSSL_DEPS"
|
||||
|
|
|
|||
|
|
@ -1,4 +1,7 @@
|
|||
|
||||
# Copyright (C) Igor Sysoev
|
||||
|
||||
|
||||
case $PLATFORM in
|
||||
*)
|
||||
echo "$OPENSSL/libssl.a:" >> $MAKEFILE
|
||||
|
|
|
|||
|
|
@ -1,4 +1,7 @@
|
|||
|
||||
# Copyright (C) Igor Sysoev
|
||||
|
||||
|
||||
if [ $PCRE != NONE ]; then
|
||||
CORE_INCS="$CORE_INCS $PCRE"
|
||||
CORE_DEPS="$CORE_DEPS $REGEX_DEPS"
|
||||
|
|
|
|||
|
|
@ -1,4 +1,7 @@
|
|||
|
||||
# Copyright (C) Igor Sysoev
|
||||
|
||||
|
||||
case "$CC" in
|
||||
|
||||
cl)
|
||||
|
|
|
|||
|
|
@ -1,4 +1,7 @@
|
|||
|
||||
# Copyright (C) Igor Sysoev
|
||||
|
||||
|
||||
CFLAGS = -q -O2 -tWM $(CPU_OPT)
|
||||
PCREFLAGS = -DPCRE_STATIC -DPOSIX_MALLOC_THRESHOLD=10
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,7 @@
|
|||
|
||||
# Copyright (C) Igor Sysoev
|
||||
|
||||
|
||||
CFLAGS = -O2 -Ob1 -Oi -Gs $(LIBC) $(CPU_OPT)
|
||||
PCREFLAGS = -DPCRE_STATIC -DPOSIX_MALLOC_THRESHOLD=10
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,7 @@
|
|||
|
||||
# Copyright (C) Igor Sysoev
|
||||
|
||||
|
||||
CFLAGS = -c -zq -bt=nt -ot -op -oi -oe -s -bm $(CPU_OPT)
|
||||
PCREFLAGS = -DPCRE_STATIC -DPOSIX_MALLOC_THRESHOLD=10
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,7 @@
|
|||
|
||||
# Copyright (C) Igor Sysoev
|
||||
|
||||
|
||||
echo $ngx_n "checking for $ngx_lib ..." $ngx_c
|
||||
echo >> $NGX_ERR
|
||||
echo "checking for $ngx_lib library" >> $NGX_ERR
|
||||
|
|
|
|||
|
|
@ -1,4 +1,7 @@
|
|||
|
||||
# Copyright (C) Igor Sysoev
|
||||
|
||||
|
||||
if [ $ZLIB != NONE ]; then
|
||||
CORE_INCS="$CORE_INCS $ZLIB"
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,7 @@
|
|||
|
||||
# Copyright (C) Igor Sysoev
|
||||
|
||||
|
||||
case "$CC" in
|
||||
|
||||
cl)
|
||||
|
|
|
|||
|
|
@ -1,4 +1,7 @@
|
|||
|
||||
# Copyright (C) Igor Sysoev
|
||||
|
||||
|
||||
CFLAGS = -q -O2 -tWM $(CPU_OPT)
|
||||
|
||||
zlib.lib:
|
||||
|
|
|
|||
|
|
@ -1,4 +1,7 @@
|
|||
|
||||
# Copyright (C) Igor Sysoev
|
||||
|
||||
|
||||
CFLAGS = -nologo -O2 -Ob1 -Oi -Gs $(LIBC) $(CPU_OPT)
|
||||
|
||||
zlib.lib:
|
||||
|
|
|
|||
|
|
@ -1,4 +1,7 @@
|
|||
|
||||
# Copyright (C) Igor Sysoev
|
||||
|
||||
|
||||
CFLAGS = -zq -bt=nt -ot -op -oi -oe -s -bm $(CPU_OPT)
|
||||
|
||||
zlib.lib:
|
||||
|
|
|
|||
|
|
@ -1,4 +1,7 @@
|
|||
|
||||
# Copyright (C) Igor Sysoev
|
||||
|
||||
|
||||
mkdir -p $OBJS/src/core $OBJS/src/event $OBJS/src/event/modules \
|
||||
$OBJS/src/os/unix $OBJS/src/os/win32 \
|
||||
$OBJS/src/http $OBJS/src/http/modules $OBJS/src/http/modules/proxy \
|
||||
|
|
|
|||
|
|
@ -1,4 +1,7 @@
|
|||
|
||||
# Copyright (C) Igor Sysoev
|
||||
|
||||
|
||||
if [ $EVENT_SELECT = NO -a $EVENT_FOUND = NO ]; then
|
||||
EVENT_SELECT=YES
|
||||
fi
|
||||
|
|
|
|||
|
|
@ -1,4 +1,7 @@
|
|||
|
||||
# Copyright (C) Igor Sysoev
|
||||
|
||||
|
||||
cat << END >> $NGX_AUTO_CONFIG_H
|
||||
|
||||
#ifndef $have
|
||||
|
|
|
|||
|
|
@ -1,4 +1,6 @@
|
|||
|
||||
# Copyright (C) Igor Sysoev
|
||||
|
||||
help=no
|
||||
|
||||
PREFIX=
|
||||
|
|
@ -234,6 +236,10 @@ case ".$ERROR_LOG_PATH" in
|
|||
ERROR_LOG_PATH=$PREFIX/logs/error.log
|
||||
;;
|
||||
|
||||
.stderr)
|
||||
ERROR_LOG_PATH=
|
||||
;;
|
||||
|
||||
*)
|
||||
ERROR_LOG_PATH=$PREFIX/$ERROR_LOG_PATH
|
||||
;;
|
||||
|
|
|
|||
|
|
@ -1,4 +1,7 @@
|
|||
|
||||
# Copyright (C) Igor Sysoev
|
||||
|
||||
|
||||
if [ ".$PLATFORM" = "." ]; then
|
||||
echo "checking for OS"
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,7 @@
|
|||
|
||||
# Copyright (C) Igor Sysoev
|
||||
|
||||
|
||||
CORE_INCS="$UNIX_INCS"
|
||||
CORE_DEPS="$UNIX_DEPS $FREEBSD_DEPS"
|
||||
CORE_SRCS="$UNIX_SRCS $FREEBSD_SRCS"
|
||||
|
|
@ -62,18 +65,18 @@ if [ $USE_THREADS = "rfork" ]; then
|
|||
|
||||
echo " + using rfork()"
|
||||
|
||||
# kqueue's EVFILT_SIGNAL is safe
|
||||
|
||||
if [ $version -gt 460101 ]; then
|
||||
echo " + kqueue's EVFILT_SIGNAL is safe"
|
||||
have=HAVE_SAFE_EVFILT_SIGNAL . auto/have
|
||||
else
|
||||
echo "$0: error: the kqueue's EVFILT_SIGNAL is unsafe on this"
|
||||
echo "FreeBSD version, so --with-threads=rfork could not be used"
|
||||
echo
|
||||
|
||||
exit 1
|
||||
fi
|
||||
# # kqueue's EVFILT_SIGNAL is safe
|
||||
#
|
||||
# if [ $version -gt 460101 ]; then
|
||||
# echo " + kqueue's EVFILT_SIGNAL is safe"
|
||||
# have=HAVE_SAFE_EVFILT_SIGNAL . auto/have
|
||||
# else
|
||||
# echo "$0: error: the kqueue's EVFILT_SIGNAL is unsafe on this"
|
||||
# echo "FreeBSD version, so --with-threads=rfork could not be used"
|
||||
# echo
|
||||
#
|
||||
# exit 1
|
||||
# fi
|
||||
fi
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,7 @@
|
|||
|
||||
# Copyright (C) Igor Sysoev
|
||||
|
||||
|
||||
CORE_INCS="$UNIX_INCS"
|
||||
CORE_DEPS="$UNIX_DEPS $LINUX_DEPS"
|
||||
CORE_SRCS="$UNIX_SRCS $LINUX_SRCS"
|
||||
|
|
@ -15,7 +18,7 @@ version=`grep "#define LINUX_VERSION_CODE" /usr/include/linux/version.h \
|
|||
| sed -e 's/^.* \(.*\)$/\1/'`
|
||||
|
||||
|
||||
# enable rt signals on Linux 2.2.19 and onward
|
||||
# enable the rt signals on Linux 2.2.19 and onward
|
||||
|
||||
if [ $version -ge 131609 -o $EVENT_RTSIG = YES ]; then
|
||||
echo " + using rt signals"
|
||||
|
|
|
|||
|
|
@ -1,4 +1,7 @@
|
|||
|
||||
# Copyright (C) Igor Sysoev
|
||||
|
||||
|
||||
CORE_INCS="$UNIX_INCS"
|
||||
CORE_DEPS="$UNIX_DEPS $SOLARIS_DEPS"
|
||||
CORE_SRCS="$UNIX_SRCS $SOLARIS_SRCS "
|
||||
|
|
|
|||
|
|
@ -1,4 +1,7 @@
|
|||
|
||||
# Copyright (C) Igor Sysoev
|
||||
|
||||
|
||||
CORE_MODULES="ngx_core_module ngx_errlog_module ngx_conf_module"
|
||||
|
||||
CORE_INCS="src/core"
|
||||
|
|
|
|||
|
|
@ -1,4 +1,7 @@
|
|||
|
||||
# Copyright (C) Igor Sysoev
|
||||
|
||||
|
||||
echo
|
||||
echo "Configuration summary"
|
||||
|
||||
|
|
@ -69,6 +72,10 @@ echo " nginx path prefix: $PREFIX"
|
|||
echo " nginx binary file: $SBIN_PATH"
|
||||
echo " nginx configuration file: $CONF_PATH"
|
||||
echo " nginx pid file: $PID_PATH"
|
||||
echo " nginx error log file: $ERROR_LOG_PATH"
|
||||
if [ ".$ERROR_LOG_PATH" != "." ]; then
|
||||
echo " nginx error log file: $ERROR_LOG_PATH"
|
||||
else
|
||||
echo " nginx logs errors to stderr"
|
||||
fi
|
||||
echo " nginx http access log file: $HTTP_LOG_PATH"
|
||||
echo
|
||||
|
|
|
|||
|
|
@ -1,4 +1,7 @@
|
|||
|
||||
# Copyright (C) Igor Sysoev
|
||||
|
||||
|
||||
case $USE_THREADS in
|
||||
rfork)
|
||||
have=NGX_THREADS . auto/have
|
||||
|
|
|
|||
|
|
@ -1,4 +1,7 @@
|
|||
|
||||
# Copyright (C) Igor Sysoev
|
||||
|
||||
|
||||
echo $ngx_n "checking for $ngx_type size ..." $ngx_c
|
||||
echo >> $NGX_ERR
|
||||
echo "checking for $ngx_type size" >> $NGX_ERR
|
||||
|
|
|
|||
|
|
@ -1,4 +1,7 @@
|
|||
|
||||
# Copyright (C) Igor Sysoev
|
||||
|
||||
|
||||
echo $ngx_n "checking for $ngx_type ..." $ngx_c
|
||||
echo >> $NGX_ERR
|
||||
echo "checking for $ngx_type" >> $NGX_ERR
|
||||
|
|
|
|||
|
|
@ -1,4 +1,7 @@
|
|||
|
||||
# Copyright (C) Igor Sysoev
|
||||
|
||||
|
||||
echo $ngx_n "checking for uintptr_t ... " $ngx_c
|
||||
echo >> $NGX_ERR
|
||||
echo "checking for uintptr_t" >> $NGX_ERR
|
||||
|
|
|
|||
|
|
@ -1,4 +1,7 @@
|
|||
|
||||
# Copyright (C) Igor Sysoev
|
||||
|
||||
|
||||
cat << END >> $NGX_AUTO_CONFIG_H
|
||||
|
||||
#ifndef $ngx_param
|
||||
|
|
|
|||
|
|
@ -1,4 +1,7 @@
|
|||
|
||||
# Copyright (C) Igor Sysoev
|
||||
|
||||
|
||||
CC_WARN=$CC
|
||||
ngx_fmt_collect=yes
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue