Lines Matching +full:autotools +full:- +full:build +full:- +full:and +full:- +full:test
4 Subject: [PATCH] autotools: make example build optional
6 This patch makes example build optional for autotools build system.
8 In order to keep the former behavior, example build is enabled by default.
10 Signed-off-by: Samuel Martin <s.martin49@gmail.com>
11 [Retrieved (and slightly updated to remove CMakeLists.txt) from:
12 https://git.buildroot.net/buildroot/tree/package/libnfc/0001-build-systems-make-example-build-optio…
13 Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
15 https://github.com/nfc-tools/libnfc/commit/874d9605aa9cd028aed149c2dd1bb410856477fb]
16 ---
17 Makefile.am | 8 +++++++-
19 2 files changed, 18 insertions(+), 1 deletion(-)
21 diff --git a/Makefile.am b/Makefile.am
23 --- a/Makefile.am
25 @@ -2,7 +2,13 @@ ACLOCAL_AMFLAGS = -I m4
29 -SUBDIRS = libnfc utils examples include contrib cmake test
36 +SUBDIRS += include contrib cmake test
40 diff --git a/configure.ac b/configure.ac
42 --- a/configure.ac
44 @@ -157,6 +157,14 @@ then
46 AM_CONDITIONAL(DOC_ENABLED, [test x"$enable_doc" = xyes])
48 +# Example build (default: yes)
49 +AC_ARG_ENABLE([example],AS_HELP_STRING([--enable-example],[Enable example build.]),[enable_example…
51 +AC_MSG_CHECKING(for example build)
54 +AM_CONDITIONAL(EXAMPLE_ENABLED, [test x"$enable_example" = xyes])
59 @@ -175,7 +183,10 @@ if test x$ac_cv_with_cutter = xyes -a x$ac_cv_use_cutter = xno; then
61 AM_CONDITIONAL([WITH_CUTTER], [test "$ac_cv_use_cutter" != "no"])
63 +if test x"$enable_example" = "xyes"
68 # Help us to write great code ;-)
69 CFLAGS="$CFLAGS -Wall -pedantic -Wextra"