+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"],
+ [yes], [eval enable_$f=yes],
+ ["$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])
+
+#----------------------------------------
+# What extra CFLAGS we will be using
+AC_SUBST([kf_CFLAGS], ["$wall_CFLAGS $werror_CFLAGS"])
+
+#----------------------------------------
+# Dependencies that will be needed, depending on the frontends
+AS_CASE(
+ ["$enable_mconf":"$enable_nconf"],
+ [*yes*], [need_curses=yes],
+ [*auto*], [need_curses=auto],
+ [need_curses=no])
+[need_panel_menu="$enable_nconf"]
+AS_CASE(
+ ["$enable_gconf":"$enable_qconf"],
+ [*yes*], [need_pkgconfig=yes],
+ [*auto*], [need_pkgconfig=yes],
+ [need_pkgconfig=no ])
+[need_gtk="$enable_gconf"]
+[need_qt="$enable_qconf"]
+
+#---------------------------------------------------------------------------
+# Now check we have the required stuff
+