Don't set {GLPK,CPLEX}_{CFLAGS,LIBS} if the check fails.
1 AC_DEFUN([LX_ENABLE_DOCS],
4 AS_HELP_STRING([--enable-docs@<:@=yes|no|full@:>@], [build the documentation (full enables internal documentation too) @<:@default=yes@:>@])
5 AS_HELP_STRING([--disable-docs], [do not build the documentation]),
8 AC_MSG_CHECKING([whether to build the documention])
11 DOXYGEN_INTERNAL_DOCS=NO
15 DOXYGEN_INTERNAL_DOCS=YES
19 DOXYGEN_INTERNAL_DOCS=NO
23 AC_MSG_ERROR([bad value $enable_docs for option --enable-docs])
26 AC_SUBST(DOXYGEN_INTERNAL_DOCS)
27 AM_CONDITIONAL([WANT_DOCS], [test x"$enable_docs" != x"no"])