From: Yann E. MORIN" Date: Tue, 14 Feb 2012 22:00:32 +0000 (+0100) Subject: configure enable/disable frontends by list X-Git-Tag: v3.3.0-0~24 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=f10edb64056ef0a8770b7792ba9f5d18658fbbfb;p=kconfig-frontends configure enable/disable frontends by list Add a configure --{en,dis}able-frontends=(list) option, to enable or disable all or the specified list of frontends. Signed-off-by: "Yann E. MORIN" --- diff --git a/configure.ac b/configure.ac index 30c3908..903487a 100644 --- a/configure.ac +++ b/configure.ac @@ -92,6 +92,24 @@ AC_ARG_ENABLE( [qconf, the QT-based frontend (default=auto)])]) AC_SUBST([enable_qconf], [${enable_qconf:-auto}]) +AC_ARG_ENABLE( + [frontends], + [AS_HELP_STRING( + [--enable-frontends=list], + [enables only the set of frontends in comma-separated 'list' + (default: auto selection), takes precedence over all + --enable-*conf, above])], + [for f in conf mconf nconf gconf qconf; do + AS_CASE( + ["$enableval"], + ["$f"], [eval enable_$f=yes], + ["$f",*], [eval enable_$f=yes], + [*,"$f"], [eval enable_$f=yes], + [*,"$f",*], [eval enable_$f=yes], + [eval enable_$f=no]) + done]) +AC_SUBST([enable_frontends]) + #---------------------------------------- # Some program checks AC_PROG_LEX