From ffb5acf592233e1827e415ba9f436e826e38a480 Mon Sep 17 00:00:00 2001 From: "Yichun Zhang (agentzh)" Date: Tue, 23 Jun 2015 22:34:02 +0800 Subject: [PATCH] ./configure: fixed the --without-http_rewrite_module option by disabling NDK automatically; also automatically disable the ngx_encrypted_session module when NDK is disabled. --- util/configure | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/util/configure b/util/configure index 12b6cc0..db5ef13 100755 --- a/util/configure +++ b/util/configure @@ -163,6 +163,12 @@ for my $opt (@ARGV) { } elsif ($opt =~ /^--with-lua51=(.*)/) { $resty_opts{lua_path} = $1; + } elsif ($opt eq '--without-http_rewrite_module') { + warn "WARNING: ngx_devel_kit is automatically disabled ", + "because ngx_http_rewrite_module is disabled.\n"; + $resty_opts{no_ndk} = 1; + push @ngx_opts, $opt; + } elsif ($opt eq '--without-lua_cjson') { $resty_opts{no_lua_cjson} = 1; @@ -402,7 +408,7 @@ Type the following commands to build and install: _END_ if ($opts->{no_ndk}) { - for my $name (qw(lua set_misc iconv lz_session form_input array_var)) { + for my $name (qw(set_misc iconv lz_session form_input array_var encrypted_session)) { if (! $opts->{"no_http_$name"}) { warn "WARNING: ngx_http_${name}_module is automatically disabled ", "because ngx_devel_kit_module is disabled.\n";