From ebb37f6a47f64314a81b40e3befbe3fc9ced8f4a Mon Sep 17 00:00:00 2001 From: "Anthony G. Basile" Date: Sat, 30 May 2015 08:50:28 -0400 Subject: [PATCH] configure.ac: add --enable-hwdb option. Address issue #111. Signed-off-by: Anthony G. Basile --- Makefile.am | 7 ++++++- configure.ac | 5 +++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/Makefile.am b/Makefile.am index 46c376b5d..e0fe7fc81 100644 --- a/Makefile.am +++ b/Makefile.am @@ -4,7 +4,6 @@ DISTCHECK_CONFIGURE_FLAGS=--enable-gtk-doc SUBDIRS = \ src \ rules \ - hwdb \ docs \ test @@ -12,3 +11,9 @@ if ENABLE_MANPAGES SUBDIRS += \ man endif + +if ENABLE_HWDB +SUBDIRS += \ + hwdb +endif + diff --git a/configure.ac b/configure.ac index 10e5e2109..fccb18137 100644 --- a/configure.ac +++ b/configure.ac @@ -281,6 +281,11 @@ AM_CONDITIONAL(HAVE_KMOD, [test "$have_kmod" = "yes"]) # ------------------------------------------------------------------------------ +AC_ARG_ENABLE([hwdb], AS_HELP_STRING([--enable-hwdb],[install hwdb.d files]),[],[enable_hwdb=yes]) +AM_CONDITIONAL(ENABLE_HWDB, [test "x$enable_hwdb" = "xyes"]) + +# ------------------------------------------------------------------------------ + AC_CONFIG_FILES([Makefile docs/Makefile docs/gudev/Makefile