From 258ac2d4da1f7a3beecbeb257e85e19965f4fd58 Mon Sep 17 00:00:00 2001
From: Bastien Nocera <hadess@hadess.net>
Date: Sat, 1 Dec 2012 15:10:13 +0100
Subject: [PATCH] build: Build all the drivers by default

---
 Makefile.am  | 2 +-
 configure.ac | 4 ++++
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/Makefile.am b/Makefile.am
index f14189d..7084de8 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -11,7 +11,7 @@ endif
 
 DIST_SUBDIRS = libfprint doc examples
 
-DISTCHECK_CONFIGURE_FLAGS = --with-drivers=upekts,upeke2,upeksonly,uru4000,vcom5s,aes2501,aes1610,aes4000,vfs101 --enable-examples-build --enable-x11-examples-build --with-udev-rules-dir='$${libdir}/udev/rules.d-distcheck'
+DISTCHECK_CONFIGURE_FLAGS = --with-drivers=all --enable-examples-build --enable-x11-examples-build --with-udev-rules-dir='$${libdir}/udev/rules.d-distcheck'
 
 pkgconfigdir=$(libdir)/pkgconfig
 pkgconfig_DATA=libfprint.pc
diff --git a/configure.ac b/configure.ac
index fdea8b6..36553e4 100644
--- a/configure.ac
+++ b/configure.ac
@@ -49,6 +49,10 @@ AC_ARG_WITH([drivers],[AS_HELP_STRING([--with-drivers],
 	[drivers="$withval"],
 	[drivers="$all_drivers"])
 
+if test x$drivers = xall ; then
+	drivers=$all_drivers
+fi
+
 for driver in `echo ${drivers} | sed -e 's/,/ /g' -e 's/,$//g'`; do
 	case ${driver} in
 		upekts)