summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xconfigure2
1 files changed, 1 insertions, 1 deletions
diff --git a/configure b/configure
index e7900e82..b9119ea1 100755
--- a/configure
+++ b/configure
@@ -21,7 +21,7 @@ function quit {
PREFIX="/opt/bigcouch"
BIGCOUCH_USER=`whoami`
ABSPATH="$(cd "${0%/*}" 2>/dev/null; echo "$PWD"/"${0##*/}")"
-DIRPATH=`dirname "$ABSPATH"`
+if test ! -n "$DIRPATH"; then DIRPATH=`dirname "$ABSPATH"`; fi
while [ $# -gt 0 ]
do