aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xconfigure5
1 files changed, 3 insertions, 2 deletions
diff --git a/configure b/configure
index eeadcb85..cd492b98 100755
--- a/configure
+++ b/configure
@@ -128,8 +128,9 @@ LFLAGS=
EFLAGS=
EOF
-srcdir="$(dirname $0)"
-if [ "$srcdir" != "." ]; then
+srcdir=$(cd $(dirname $0);pwd)
+currdir=$(pwd)
+if [ "$srcdir" != "$currdir" ]; then
echo
echo "configure script run from a different directory. Will create some symlinks..."
if [ ! -e Makefile -o -L Makefile ]; then