--- configure.ac	2014-04-16 15:41:24.000000000 +0300
+++ configure.ac.optwacom	2014-04-19 16:32:02.048948306 +0300
@@ -286,6 +286,13 @@
 fi
 AM_CONDITIONAL(BUILD_CHEESE, test x${have_cheese} = xyes)
 
+# Wacom panel
+AC_ARG_ENABLE(wacom,
+              AS_HELP_STRING([--disable-wacom], [disable WACOM support (default: disabled)]),,
+              enable_wacom=no)
+
+if test x"$enable_wacom" != x"no" ; then
+
 # wacom is disabled for s390/s390x and non Linux platforms (needs udev)
 case $host_os in
   linux*)
@@ -307,6 +314,7 @@
     have_wacom=no
     ;;
 esac
+fi
 AM_CONDITIONAL(BUILD_WACOM, [test x${have_wacom} = xyes])
 
 # Kerberos kerberos support
