From d3a6d7805f9f869f3a786080a9e0586b4844034f Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Sat, 26 Aug 2017 13:37:44 +0300 Subject: Added configure options --prefix=PATH and --log=FILE. A prefix is prepended to all relative names at configure stage. There is no prefix by default. A log file name can be relative. The default log file name is "nginext.log". --- auto/options | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'auto') diff --git a/auto/options b/auto/options index 57d8038f..7bd4606a 100644 --- a/auto/options +++ b/auto/options @@ -12,6 +12,9 @@ NXT_CFLAGS= NXT_CC_OPT= NXT_LD_OPT= +NXT_PREFIX= +NXT_LOG="nginext.log" + NXT_DEBUG=NO NXT_INET6=YES @@ -54,6 +57,9 @@ do --build-dir=*) NXT_BUILD_DIR="$value" ;; + --prefix=*) NXT_PREFIX="$value" ;; + --log=*) NXT_LOG="$value" ;; + --debug) NXT_DEBUG=YES ;; --no-ipv6) NXT_INET6=NO ;; @@ -94,3 +100,14 @@ do NXT_CONFIGURE_OPTIONS="$NXT_CONFIGURE_OPTIONS $nxt_opt" done + + +case "$NXT_PREFIX" in + ""|*/) ;; + *) NXT_PREFIX="$NXT_PREFIX/" ;; +esac + +case "$NXT_LOG" in + /*) ;; + *) NXT_LOG="$NXT_PREFIX$NXT_LOG" ;; +esac -- cgit