introduce AS_IF to replace `if test' #1

This commit is contained in:
Francesco Lannutti 2012-11-17 09:50:06 +01:00 committed by rlar
parent 45b0828182
commit 8b25094231
1 changed files with 2 additions and 5 deletions

View File

@ -179,11 +179,8 @@ AC_ARG_WITH([tcl],
[AS_HELP_STRING([--with-tcl=tcldir], [Compiles the tcl module instead, experimental, see README.tcl])])
# readline and editline cannot both be enabled
if test "x$with_editline" = xyes; then
if test "x$with_readline" = xyes; then
AC_MSG_ERROR([Readline and editline cannot both be enabled])
fi
fi
AS_IF([test "x$with_editline" = xyes],
[AS_IF([test "x$with_readline" = xyes], [AC_MSG_ERROR([Readline and editline cannot both be enabled])])])
# Enable maintainer commands only if requested