mirror of
https://github.com/nginx/nginx.git
synced 2024-11-23 20:19:02 +08:00
Merge of r4474, r4493: configure/build fixes.
*) Fixed build with embedded perl and --with-openssl. *) Configure: moved icc detection before gcc. New versions of icc confuse auto/cc/name due to introduced handling of a "icc -v".
This commit is contained in:
parent
be909c35b0
commit
01f5961540
10
auto/cc/name
10
auto/cc/name
@ -63,16 +63,16 @@ if [ "$CC" = bcc32 ]; then
|
||||
NGX_CC_NAME=bcc
|
||||
echo " + using Borland C++ compiler"
|
||||
|
||||
else
|
||||
if `$CC -v 2>&1 | grep 'gcc version' >/dev/null 2>&1`; then
|
||||
NGX_CC_NAME=gcc
|
||||
echo " + using GNU C compiler"
|
||||
|
||||
else
|
||||
if `$CC -V 2>&1 | grep '^Intel(R) C' >/dev/null 2>&1`; then
|
||||
NGX_CC_NAME=icc
|
||||
echo " + using Intel C++ compiler"
|
||||
|
||||
else
|
||||
if `$CC -v 2>&1 | grep 'gcc version' >/dev/null 2>&1`; then
|
||||
NGX_CC_NAME=gcc
|
||||
echo " + using GNU C compiler"
|
||||
|
||||
else
|
||||
if `$CC -V 2>&1 | grep 'Sun C' >/dev/null 2>&1`; then
|
||||
NGX_CC_NAME=sunc
|
||||
|
@ -28,6 +28,7 @@ $NGX_OBJS/src/http/modules/perl/Makefile: \
|
||||
&& NGX_PM_CFLAGS="\$(NGX_PM_CFLAGS) -g $NGX_CC_OPT" \
|
||||
NGX_PCRE=$PCRE \
|
||||
NGX_OBJS=$NGX_OBJS \
|
||||
NGX_OPENSSL=$OPENSSL \
|
||||
$NGX_PERL Makefile.PL \
|
||||
LIB=$NGX_PERL_MODULES \
|
||||
INSTALLSITEMAN3DIR=$NGX_PERL_MODULES_MAN
|
||||
|
@ -25,7 +25,11 @@ WriteMakefile(
|
||||
"-I ../../../../../$ENV{NGX_OBJS} " .
|
||||
($ENV{NGX_PCRE} =~ /^(YES|NO)/ ? "" :
|
||||
($ENV{NGX_PCRE} =~ m#^/# ? "-I $ENV{NGX_PCRE} " :
|
||||
"-I ../../../../../$ENV{NGX_PCRE} ")),
|
||||
"-I ../../../../../$ENV{NGX_PCRE} ")) .
|
||||
($ENV{NGX_OPENSSL} =~ /^(YES|NO)/ ? "" :
|
||||
($ENV{NGX_OPENSSL} =~ m#^/# ?
|
||||
"-I $ENV{NGX_OPENSSL}/.openssl/include " :
|
||||
"-I ../../../../../$ENV{NGX_OPENSSL}/.openssl/include ")),
|
||||
|
||||
depend => {
|
||||
'nginx.c' =>
|
||||
|
Loading…
Reference in New Issue
Block a user