bugfix: when relative paths are used in --with-zlib=DIR, --with-libatomic=DIR, --with-md5=DIR, and --with-sha1=DIR, the build system could not find DIR at all. thanks LazyZhu for reporting it in github issue #21.

This commit is contained in:
agentzh (Yichun Zhang)
2013-01-02 11:53:38 -08:00
parent a820d40858
commit 1faf158381
2 changed files with 260 additions and 9 deletions

11
util/configure vendored
View File

@ -238,15 +238,10 @@ for my $opt (@ARGV) {
my $mod_path = File::Spec->rel2abs($1);
push @ngx_opts, "--add-module=$mod_path";
} elsif ($opt =~ /^--with-openssl=(.*)/) {
} elsif ($opt =~ /^--with-(openssl|pcre|zlib|libatomic|md5|sha1)=(.*)/) {
my $path = File::Spec->rel2abs($1);
push @ngx_opts, "--with-openssl=$path";
} elsif ($opt =~ /^--with-pcre=(.*)/) {
my $path = File::Spec->rel2abs($1);
push @ngx_opts, "--with-pcre=$path";
my $path = File::Spec->rel2abs($2);
push @ngx_opts, "--with-$1=$path";
} elsif ($opt =~ /^--\w.*/) {
push @ngx_opts, $opt;