Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nginx/nginx.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2009-05-26 18:28:49 +0400
committerIgor Sysoev <igor@sysoev.ru>2009-05-26 18:28:49 +0400
commitda85fe6d5f190db3e8dfabcc3c0906dda57aab1d (patch)
tree413304e5b290a7c0c74ae81d72874940b45d4924 /auto/lib/conf
parent03ab5fcdb8d3363269c17970486913c2b0c8a609 (diff)
stop ./configure at once on library failure
Diffstat (limited to 'auto/lib/conf')
-rw-r--r--auto/lib/conf14
1 files changed, 14 insertions, 0 deletions
diff --git a/auto/lib/conf b/auto/lib/conf
index 7da80e792..f52c90492 100644
--- a/auto/lib/conf
+++ b/auto/lib/conf
@@ -4,8 +4,22 @@
if [ $USE_PCRE = YES -o $PCRE != NONE ]; then
. auto/lib/pcre/conf
+
+else
+ if [ $USE_PCRE = DISABLED -a $HTTP_REWRITE = YES ]; then
+
+cat << END
+
+$0: error: the HTTP rewrite module requires the PCRE library.
+You can either disable the module by using --without-http_rewrite_module
+option or you have to enable the PCRE support.
+
+END
+ exit 1
+ fi
fi
+
if [ $USE_OPENSSL = YES ]; then
. auto/lib/openssl/conf
fi