 +	if test "$prefix" = NONE ; then
 +		prefix="`finddir B_COMMON_DIRECTORY`";
 +		AC_MSG_RESULT([On $host_os systems, prefix defaults to `finddir B_COMMON_DIRECTORY`])
-+		if test "$sbindir" = '${prefix}/sbin' ; then
++		if test "$sbindir" = '${exec_prefix}/sbin' ; then
 +			AC_MSG_RESULT([...and sbindir defaults to `finddir B_COMMON_DIRECTORY`/bin])
 +			mandir="`finddir B_COMMON_DIRECTORY`/bin"
 +		fi

+		prefix="`finddir B_COMMON_DIRECTORY`";
+		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, prefix defaults to \`finddir B_COMMON_DIRECTORY\`" >&5
+$as_echo "On $host_os systems, prefix defaults to \`finddir B_COMMON_DIRECTORY\`" >&6; }
+		if test "$sbindir" = '${prefix}/sbin' ; then
+			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ...and sbindir defaults to \`finddir B_COMMON_DIRECTORY\`/bin" >&5
+$as_echo "...and sbindir defaults to \`finddir B_COMMON_DIRECTORY\`/bin" >&6; }
+			mandir="`finddir B_COMMON_DIRECTORY`/bin"

   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
   CONFIG_SHELL='$SHELL'
diff --git a/configure.in b/configure.in
index 0b96b8d..cece319 100644
--- a/configure.in
+++ b/configure.in
@@ -96,7 +96,10 @@ AC_MSG_ERROR([--with-ldopts no longer supported; use LDFLAGS= instead]))
