2004-03-01 14:00:04 -06:00
|
|
|
|
2004-09-29 11:00:49 -05:00
|
|
|
# Copyright (C) Igor Sysoev
|
|
|
|
|
|
|
|
|
2004-11-20 13:52:20 -06:00
|
|
|
case "$NGX_CC_NAME" in
|
2004-03-09 13:47:07 -06:00
|
|
|
|
2004-11-20 13:52:20 -06:00
|
|
|
msvc*)
|
|
|
|
ngx_makefile=makefile.msvc
|
2005-03-22 10:02:46 -06:00
|
|
|
ngx_opt="CPU_OPT=\"$CPU_OPT\" LIBC=$LIBC"
|
2009-05-12 08:15:43 -05:00
|
|
|
ngx_zlib="ZLIB=\"$ZLIB\""
|
2004-03-29 11:43:58 -06:00
|
|
|
|
2004-03-09 13:47:07 -06:00
|
|
|
;;
|
|
|
|
|
2004-11-20 13:52:20 -06:00
|
|
|
owc*)
|
|
|
|
ngx_makefile=makefile.owc
|
2005-03-22 10:02:46 -06:00
|
|
|
ngx_opt="CPU_OPT=\"$CPU_OPT\""
|
2009-05-12 08:15:43 -05:00
|
|
|
ngx_zlib=`echo ZLIB=\"$ZLIB\" | sed -e "s/\//$ngx_regex_dirsep/g"`
|
2004-03-29 11:43:58 -06:00
|
|
|
;;
|
|
|
|
|
2004-11-20 13:52:20 -06:00
|
|
|
bcc)
|
|
|
|
ngx_makefile=makefile.bcc
|
2005-03-22 10:02:46 -06:00
|
|
|
ngx_opt="-DCPU_OPT=\"$CPU_OPT\""
|
2009-05-12 08:15:43 -05:00
|
|
|
ngx_zlib=`echo \-DZLIB=\"$ZLIB\" | sed -e "s/\//$ngx_regex_dirsep/g"`
|
2004-03-09 13:47:07 -06:00
|
|
|
;;
|
|
|
|
|
|
|
|
esac
|
|
|
|
|
|
|
|
|
2004-03-11 15:34:52 -06:00
|
|
|
done=NO
|
|
|
|
|
|
|
|
|
2005-02-22 08:40:13 -06:00
|
|
|
case "$NGX_PLATFORM" in
|
2004-03-09 13:47:07 -06:00
|
|
|
|
|
|
|
win32)
|
2004-11-20 13:52:20 -06:00
|
|
|
cat << END >> $NGX_MAKEFILE
|
2004-03-09 13:47:07 -06:00
|
|
|
|
2004-11-20 13:52:20 -06:00
|
|
|
`echo "$ZLIB/zlib.lib: $NGX_MAKEFILE" | sed -e "s/\//$ngx_regex_dirsep/g"`
|
2009-05-12 08:15:43 -05:00
|
|
|
\$(MAKE) -f auto/lib/zlib/$ngx_makefile $ngx_opt $ngx_zlib
|
2004-11-20 13:52:20 -06:00
|
|
|
|
|
|
|
END
|
2004-03-11 15:34:52 -06:00
|
|
|
|
|
|
|
done=YES
|
2004-03-09 13:47:07 -06:00
|
|
|
;;
|
|
|
|
|
2004-03-12 10:57:08 -06:00
|
|
|
# FreeBSD: i386
|
|
|
|
# Linux: i686
|
2004-03-09 13:47:07 -06:00
|
|
|
|
2004-03-10 11:55:19 -06:00
|
|
|
*:i386 | *:i686)
|
2004-03-12 10:57:08 -06:00
|
|
|
case $ZLIB_ASM in
|
|
|
|
pentium)
|
2004-11-20 13:52:20 -06:00
|
|
|
|
|
|
|
cat << END >> $NGX_MAKEFILE
|
|
|
|
|
|
|
|
$ZLIB/libz.a: $NGX_MAKEFILE
|
|
|
|
cd $ZLIB \\
|
nginx-0.1.14-RELEASE import
*) Feature: the autoconfiguration directives:
--http-client-body-temp-path=PATH, --http-proxy-temp-path=PATH, and
--http-fastcgi-temp-path=PATH
*) Change: the directory name for the temporary files with the client
request body is specified by directive client_body_temp_path, by
default it is <prefix>/client_body_temp.
*) Feature: the ngx_http_fastcgi_module and the directives:
fastcgi_pass, fastcgi_root, fastcgi_index, fastcgi_params,
fastcgi_connect_timeout, fastcgi_send_timeout, fastcgi_read_timeout,
fastcgi_send_lowat, fastcgi_header_buffer_size, fastcgi_buffers,
fastcgi_busy_buffers_size, fastcgi_temp_path,
fastcgi_max_temp_file_size, fastcgi_temp_file_write_size,
fastcgi_next_upstream, and fastcgi_x_powered_by.
*) Bugfix: the "[alert] zero size buf" error; the bug had appeared in
0.1.3.
*) Change: the URI must be specified after the host name in the
proxy_pass directive.
*) Change: the %3F symbol in the URI was considered as the argument
string start.
*) Feature: the unix domain sockets support in the
ngx_http_proxy_module.
*) Feature: the ssl_engine and ssl_ciphers directives.
Thanks to Sergey Skvortsov for SSL-accelerator.
2005-01-18 07:03:58 -06:00
|
|
|
&& \$(MAKE) clean \\
|
2004-11-20 13:52:20 -06:00
|
|
|
&& cp contrib/asm586/match.S . \\
|
|
|
|
&& CFLAGS="$ZLIB_OPT -DASMV" CC="\$(CC)" \\
|
|
|
|
./configure \\
|
|
|
|
&& \$(MAKE) OBJA=match.o libz.a
|
|
|
|
|
|
|
|
END
|
2004-03-12 10:57:08 -06:00
|
|
|
|
|
|
|
done=YES
|
|
|
|
;;
|
|
|
|
|
|
|
|
pentiumpro)
|
2004-11-20 13:52:20 -06:00
|
|
|
|
|
|
|
cat << END >> $NGX_MAKEFILE
|
|
|
|
|
|
|
|
$ZLIB/libz.a: $NGX_MAKEFILE
|
|
|
|
cd $ZLIB \\
|
nginx-0.1.14-RELEASE import
*) Feature: the autoconfiguration directives:
--http-client-body-temp-path=PATH, --http-proxy-temp-path=PATH, and
--http-fastcgi-temp-path=PATH
*) Change: the directory name for the temporary files with the client
request body is specified by directive client_body_temp_path, by
default it is <prefix>/client_body_temp.
*) Feature: the ngx_http_fastcgi_module and the directives:
fastcgi_pass, fastcgi_root, fastcgi_index, fastcgi_params,
fastcgi_connect_timeout, fastcgi_send_timeout, fastcgi_read_timeout,
fastcgi_send_lowat, fastcgi_header_buffer_size, fastcgi_buffers,
fastcgi_busy_buffers_size, fastcgi_temp_path,
fastcgi_max_temp_file_size, fastcgi_temp_file_write_size,
fastcgi_next_upstream, and fastcgi_x_powered_by.
*) Bugfix: the "[alert] zero size buf" error; the bug had appeared in
0.1.3.
*) Change: the URI must be specified after the host name in the
proxy_pass directive.
*) Change: the %3F symbol in the URI was considered as the argument
string start.
*) Feature: the unix domain sockets support in the
ngx_http_proxy_module.
*) Feature: the ssl_engine and ssl_ciphers directives.
Thanks to Sergey Skvortsov for SSL-accelerator.
2005-01-18 07:03:58 -06:00
|
|
|
&& \$(MAKE) clean \\
|
2004-11-20 13:52:20 -06:00
|
|
|
&& cp contrib/asm686/match.S . \\
|
|
|
|
&& CFLAGS="$ZLIB_OPT -DASMV" CC="\$(CC)" \\
|
|
|
|
./configure \\
|
|
|
|
&& \$(MAKE) OBJA=match.o libz.a
|
|
|
|
|
|
|
|
END
|
2004-03-12 10:57:08 -06:00
|
|
|
|
|
|
|
done=YES
|
|
|
|
;;
|
2004-04-12 11:38:09 -05:00
|
|
|
|
2004-04-18 14:06:02 -05:00
|
|
|
NO)
|
|
|
|
;;
|
|
|
|
|
2004-04-12 11:38:09 -05:00
|
|
|
*)
|
2004-04-18 14:06:02 -05:00
|
|
|
echo "$0: error: invalid --with-zlib-asm=$ZLIB_ASM option."
|
2004-04-12 11:38:09 -05:00
|
|
|
echo "The valid values are \"pentium\" and \"pentiumpro\" only".
|
|
|
|
echo
|
|
|
|
|
|
|
|
exit 1;
|
|
|
|
;;
|
2004-03-12 10:57:08 -06:00
|
|
|
esac
|
2004-03-01 14:00:04 -06:00
|
|
|
;;
|
|
|
|
|
|
|
|
esac
|
|
|
|
|
2004-03-11 15:34:52 -06:00
|
|
|
|
|
|
|
if [ $done = NO ]; then
|
|
|
|
|
2004-11-20 13:52:20 -06:00
|
|
|
cat << END >> $NGX_MAKEFILE
|
|
|
|
|
|
|
|
$ZLIB/libz.a: $NGX_MAKEFILE
|
|
|
|
cd $ZLIB \\
|
nginx-0.1.14-RELEASE import
*) Feature: the autoconfiguration directives:
--http-client-body-temp-path=PATH, --http-proxy-temp-path=PATH, and
--http-fastcgi-temp-path=PATH
*) Change: the directory name for the temporary files with the client
request body is specified by directive client_body_temp_path, by
default it is <prefix>/client_body_temp.
*) Feature: the ngx_http_fastcgi_module and the directives:
fastcgi_pass, fastcgi_root, fastcgi_index, fastcgi_params,
fastcgi_connect_timeout, fastcgi_send_timeout, fastcgi_read_timeout,
fastcgi_send_lowat, fastcgi_header_buffer_size, fastcgi_buffers,
fastcgi_busy_buffers_size, fastcgi_temp_path,
fastcgi_max_temp_file_size, fastcgi_temp_file_write_size,
fastcgi_next_upstream, and fastcgi_x_powered_by.
*) Bugfix: the "[alert] zero size buf" error; the bug had appeared in
0.1.3.
*) Change: the URI must be specified after the host name in the
proxy_pass directive.
*) Change: the %3F symbol in the URI was considered as the argument
string start.
*) Feature: the unix domain sockets support in the
ngx_http_proxy_module.
*) Feature: the ssl_engine and ssl_ciphers directives.
Thanks to Sergey Skvortsov for SSL-accelerator.
2005-01-18 07:03:58 -06:00
|
|
|
&& \$(MAKE) clean \\
|
2004-11-20 13:52:20 -06:00
|
|
|
&& CFLAGS="$ZLIB_OPT" CC="\$(CC)" \\
|
|
|
|
./configure \\
|
|
|
|
&& \$(MAKE) libz.a
|
2004-03-11 15:34:52 -06:00
|
|
|
|
2004-11-20 13:52:20 -06:00
|
|
|
END
|
|
|
|
|
|
|
|
fi
|