From 010c60e1f9ad20b42863cfe7bed49593b4cccb1f Mon Sep 17 00:00:00 2001 From: Martijn van Beurden Date: Sat, 13 Aug 2022 15:20:42 +0200 Subject: Add configure option to not build programs --- configure.ac | 5 +++++ 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 \ -- cgit v1.2.1