From 5fa961fd3b5b8cf5ba1a0cf49b10ebf79e273e96 Mon Sep 17 00:00:00 2001 From: Pino Toscano Date: Mon, 8 May 2023 18:39:36 +0200 Subject: configure.ac: add --enable-examples option Allow the user to not build the examples through --disable-examples (enabled by default); this can be useful: - when cross-compiling, as the examples are not useful - in distribution builds, not building stuff that is not used in any way --- Makefile.am | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'Makefile.am') diff --git a/Makefile.am b/Makefile.am index deb25268..2e8fede7 100644 --- a/Makefile.am +++ b/Makefile.am @@ -4,11 +4,14 @@ AUTOMAKE_OPTIONS = 1.9 gnu dist-xz no-dist-gzip check-news -SUBDIRS = libpam tests libpamc libpam_misc modules po conf examples xtests +SUBDIRS = libpam tests libpamc libpam_misc modules po conf xtests if HAVE_DOC SUBDIRS += doc endif +if HAVE_EXAMPLES +SUBDIRS += examples +endif CLEANFILES = *~ -- cgit v1.2.1