From 9b56a520709489c0645b4cc5219e465bc2678271 Mon Sep 17 00:00:00 2001 From: Sebastian Spaeth Date: Fri, 10 Dec 2010 13:51:28 +0100 Subject: [PATCH] Simplify --disable-strip-solver 1) AC_MSG_RESULT something (we did not before) 2) Assume 'yes' if we have a value and it is not 'no' Signed-off-by: Sebastian Spaeth --- configure.in | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/configure.in b/configure.in index a78495248a81..42ebaf43b9db 100755 --- a/configure.in +++ b/configure.in @@ -1671,20 +1671,16 @@ AC_SUBST(ENABLE_SYMBOLS) dnl Determine if the solver is to be stripped or not. dnl =================================================================== AC_MSG_CHECKING([whether to strip the solver or not.]) -if test -n "$enable_strip_solver"; then - if test "$enable_strip_solver" = "yes"; then - DISABLE_STRIP= - else if test "$enable_strip_solver" = "no"; then - DISABLE_STRIP="TRUE" - else - AC_MSG_ERROR([--disable-strip-solver only accepts yes or no as parameter.]) - fi - fi +if test "z$enable_strip_solver" = "zno"; then + DISABLE_STRIP="TRUE" + AC_MSG_RESULT([no]) else if test -n "$ENABLE_SYMBOLS"; then DISABLE_STRIP="TRUE" + AC_MSG_RESULT([no]) else DISABLE_STRIP= + AC_MSG_RESULT([yes]) fi fi AC_SUBST(DISABLE_STRIP)