diff options
author | Martijn van Beurden <mvanb1@gmail.com> | 2022-08-13 15:20:42 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-13 15:20:42 +0200 |
commit | 010c60e1f9ad20b42863cfe7bed49593b4cccb1f (patch) | |
tree | 8cde771890f1a169bd6eee560ec402986837dc0b | |
parent | 9bc2cc4c3b4b6befa3cf09f364e4f6a0bdfc46e1 (diff) | |
download | flac-010c60e1f9ad20b42863cfe7bed49593b4cccb1f.tar.gz |
Add configure option to not build programs
-rw-r--r-- | configure.ac | 5 | ||||
-rw-r--r-- | src/Makefile.am | 7 |
2 files changed, 10 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac index df468e25..3a20cdb3 100644 --- a/configure.ac +++ b/configure.ac @@ -452,6 +452,11 @@ AC_DEFINE_UNQUOTED([FLAC__HAS_OGG],$FLAC__HAS_OGG,[define if you have the ogg li AC_SUBST(FLAC__HAS_OGG) AC_SUBST(OGG_PACKAGE) +dnl Build programs? +AC_ARG_ENABLE([programs], + AS_HELP_STRING([--disable-programs], [Don't build and install flac and metaflac])) +AM_CONDITIONAL(FLaC__WITH_PROGRAMS, [test "x$enable_programs" != "xno"]) + dnl Build examples? AC_ARG_ENABLE([examples], AS_HELP_STRING([--disable-examples], [Don't build and install examples])) diff --git a/src/Makefile.am b/src/Makefile.am index 988eff64..703cfa16 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -24,11 +24,14 @@ if FLaC__WITH_CPPLIBS CPPLIBS_DIRS = libFLAC++ test_libFLAC++ endif +if FLaC__WITH_PROGRAMS +PROGRAMS_DIRS = flac metaflac +endif + SUBDIRS = \ libFLAC \ share \ - flac \ - metaflac \ + $(PROGRAMS_DIRS) \ $(XMMS_DIRS) \ test_grabbag \ test_libs_common \ |