diff options
author | Lubos Lunak <l.lunak@suse.cz> | 2012-10-19 17:23:17 +0200 |
---|---|---|
committer | Luboš Luňák <l.lunak@suse.cz> | 2012-10-22 14:56:20 +0200 |
commit | 07f67f3ed79913afc6614357e95d1b263064b2b5 (patch) | |
tree | 36d1d0fe6e83ba95070ec7d216caf02ac8fdbbc3 /configure.ac | |
parent | disable gb_COMPILEROPTFLAGS in debug mode (diff) | |
download | core-07f67f3ed79913afc6614357e95d1b263064b2b5.tar.gz core-07f67f3ed79913afc6614357e95d1b263064b2b5.zip |
fail on configure debug options that no longer make sense
Change-Id: I4d01e0e00bd06e219fdc0208292ddcd5631fa235
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 6 |
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 |