summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--configure.ac31
1 files changed, 30 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 80387e72c..28fee852c 100644
--- a/configure.ac
+++ b/configure.ac
@@ -670,7 +670,36 @@ inputdir=${moduledir}/input
AC_SUBST(inputdir)
dnl driver optional builds
-AC_ARG_ENABLE(input-void, AC_HELP_STRING([--enable-input-void], [Build void input driver (default: auto)]), [INPUT_VOID=$enableval], [INPUT_VOID=yes])
+AC_ARG_WITH([drivers],
+ [AS_HELP_STRING([--with-drivers@<:@=drivers...@:>@],
+ [comma-delimited driver list, e.g.
+ "void,foo,bar" @<:@default=auto@:>@])],
+ [with_drivers="$withval"],
+ [with_drivers="yes"])
+
+case "$with_drivers" in
+ no)
+ DRIVERS=""
+ ;;
+ yes)
+ INPUT_VOID="yes"
+ ;;
+ *)
+ drivers=""
+ _drivers=`IFS=', '; echo $with_drivers`
+ for driver in $_drivers; do
+ case "$driver" in
+ void)
+ INPUT_VOID="yes"
+ ;;
+ *)
+ AC_MSG_ERROR([invalid driver '$driver'])
+ ;;
+ esac
+ done
+
+ ;;
+esac
dnl chown/chmod to be setuid root as part of build
dnl Replaces InstallXserverSetUID in imake