diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2010-11-05 10:04:41 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2010-11-05 10:04:41 +1000 |
commit | 842bf6dd752c8467504f76bb06eb440a41486969 (patch) | |
tree | f465a290439473425c01227efe35e143740e417e | |
parent | 723be481ebc87c9c712a409587fbd37bb96d37ed (diff) |
configure: use --with-drivers instead of per-driver flag.driver-merge
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-rw-r--r-- | configure.ac | 31 |
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 |