summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLubos Lunak <l.lunak@suse.cz>2012-10-19 17:23:17 +0200
committerLuboš Luňák <l.lunak@suse.cz>2012-10-22 14:56:20 +0200
commit07f67f3ed79913afc6614357e95d1b263064b2b5 (patch)
tree36d1d0fe6e83ba95070ec7d216caf02ac8fdbbc3
parent40763e05acac832a274c194564ff1b182ee01d3f (diff)
fail on configure debug options that no longer make sense
Change-Id: I4d01e0e00bd06e219fdc0208292ddcd5631fa235
-rw-r--r--configure.ac6
1 files changed, 6 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index ac52b5958b16..c493a743f0d8 100644
--- a/configure.ac
+++ b/configure.ac
@@ -4208,7 +4208,13 @@ AC_SUBST(PROEXT)
dnl Set the ENABLE_DEBUG variable.
dnl ===================================================================
AC_MSG_CHECKING([whether to do a debug build])
+if test -n "$enable_debug" && test "$enable_debug" != "yes" && test "$enable_debug" != "no"; then
+ AC_MSG_ERROR([--enable-debug now accepts only yes or no, use --enable-selective-debuginfo])
+fi
if test -n "$ENABLE_DBGUTIL"; then
+ if test "$enable_debug" = "no"; then
+ AC_MSG_ERROR([--disable-debug cannot be used with --enable-dbgutil])
+ fi
ENABLE_DEBUG="TRUE"
AC_MSG_RESULT([yes (dbgutil)])
elif test -n "$enable_debug" && test "$enable_debug" != "no"; then