summaryrefslogtreecommitdiffhomepage
path: root/auto
diff options
context:
space:
mode:
Diffstat (limited to 'auto')
-rw-r--r--auto/options17
1 files changed, 17 insertions, 0 deletions
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