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 <Sebastian@SSpaeth.de>
This commit is contained in:
Sebastian Spaeth 2010-12-10 13:51:28 +01:00
parent cf831f63f2
commit 9b56a52070

View file

@ -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)