libftdi: add a --without-examples configure flag
[libftdi] / configure.in
index addf696..f3dad4d 100644 (file)
@@ -47,6 +47,10 @@ AC_ARG_WITH(async-mode,
 ])
 AC_SUBST(ENABLE_ASYNC_MODE)
 
+AC_ARG_WITH(examples,
+  AS_HELP_STRING([--without-examples], [disable example programs]))
+AM_CONDITIONAL(BUILD_EXAMPLES, [test "x$with_examples" != "xno"])
+
 LIBFTDI_MODULES=
 LIBFTDI_MODULES_PKGCONFIG=