diff options
Diffstat (limited to 'auto/options')
-rw-r--r-- | auto/options | 31 |
1 files changed, 22 insertions, 9 deletions
diff --git a/auto/options b/auto/options index 19cd3dee..fe11f35f 100644 --- a/auto/options +++ b/auto/options @@ -55,9 +55,12 @@ do --build-dir=*) NXT_BUILD_DIR="$value" ;; --prefix=*) NXT_PREFIX="$value" ;; + --bindir=*) NXT_BINDIR="$value" ;; + --sbindir=*) NXT_SBINDIR="$value" ;; + --modules=*) NXT_MODULES="$value" ;; + --pid=*) NXT_PID="$value" ;; --log=*) NXT_LOG="$value" ;; - --modules=*) NXT_MODULES="$value" ;; --control=*) NXT_CONTROL="$value" ;; @@ -91,6 +94,11 @@ do --tests) NXT_TESTS=YES ;; + --help) + . auto/help + exit 0 + ;; + *) $echo $echo $0: error: invalid option \"$nxt_option\". @@ -112,24 +120,29 @@ case "$NXT_PREFIX" in *) NXT_PREFIX="$NXT_PREFIX/" ;; esac -case "$NXT_PID" in +case "$NXT_BINDIR" in /*) ;; - *) NXT_PID="$NXT_PREFIX$NXT_PID" ;; + *) NXT_BINDIR="$NXT_PREFIX$NXT_BINDIR" ;; esac -case "$NXT_LOG" in +case "$NXT_SBINDIR" in /*) ;; - *) NXT_LOG="$NXT_PREFIX$NXT_LOG" ;; + *) NXT_SBINDIR="$NXT_PREFIX$NXT_SBINDIR" ;; esac case "$NXT_MODULES" in - ""|*/) ;; - *) NXT_MODULES="$NXT_MODULES/" ;; + /*) ;; + *) NXT_MODULES="$NXT_PREFIX$NXT_MODULES" ;; esac -case "$NXT_MODULES" in +case "$NXT_PID" in /*) ;; - *) NXT_MODULES="$NXT_PREFIX$NXT_MODULES" ;; + *) NXT_PID="$NXT_PREFIX$NXT_PID" ;; +esac + +case "$NXT_LOG" in + /*) ;; + *) NXT_LOG="$NXT_PREFIX$NXT_LOG" ;; esac case "$NXT_CONTROL" in |