On Sat, 31 Mar 2007, Andreas Schwab wrote:
Vincent Torri <vtorri@xxxxxxxxxxxx> writes:
if test "x$2" = "xno" ; then
AC_ARG_ENABLE(ecore-[]DOWN,
AS_HELP_STRING(
[--enable-ecore-[]DOWN],
[enable the ecore_[]DOWN module. [[default=disabled]]]
),
[ want_ecore_[]DOWN=$enableval ],
[ want_ecore_[]DOWN=no ])
else
AC_ARG_ENABLE(ecore-[]DOWN,
AS_HELP_STRING(
[--disable-ecore-[]DOWN],
[disable the ecore_[]DOWN module. [[default=enabled]]]
),
[ want_ecore_[]DOWN=$enableval ],
[ want_ecore_[]DOWN=yes ])
fi
You cannot influence the generation of the configure script at runtime for
obvious reasons. The expansion of the right AC_ARG_ENABLE must be
selected by m4 conditionals.
Indeed, it works well with ifelse.
Thank you
Vincent
_______________________________________________
Autoconf mailing list
Autoconf@xxxxxxx
http://lists.gnu.org/mailman/listinfo/autoconf