diff --git a/configure b/configure
index d95daf9936a8d7869ee9c0cf558fe2d1a1a246cb..134082e8b271415fa5863db9ff04bc23b63b1c1c 100755
--- a/configure
+++ b/configure
@@ -653,7 +653,7 @@ for opt do
   case "$opt" in
   --log)
   ;;
-  --log=*) log="${opt#*-}"
+  --log=*) log="${opt#*=}"
   ;;
   --prefix=*) prefix=`echo $opt | cut -d '=' -f 2`; force_prefix=yes
   ;;