diff options
author | Tristan Matthews <le.businessman@gmail.com> | 2014-10-12 05:38:08 +0400 |
---|---|---|
committer | Tristan Matthews <le.businessman@gmail.com> | 2014-10-12 05:38:08 +0400 |
commit | a6930dde69ed37c0d56f8fe5b4394bb3e9d31e87 (patch) | |
tree | f73972389c8162e1fd280d5e3c1e7bc786af9335 | |
parent | e09dd69be8eace01cc2b786331176227a34d7595 (diff) |
configure: add --disable-examples option
-rw-r--r-- | configure.ac | 7 | ||||
-rw-r--r-- | libspeexdsp/Makefile.am | 2 |
2 files changed, 9 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index a51e0c6..0c0b95d 100644 --- a/configure.ac +++ b/configure.ac @@ -198,6 +198,13 @@ AC_ARG_ENABLE(float-api, [ --disable-float-api Disable the floating-point A AC_DEFINE([DISABLE_FLOAT_API], , [Disable all parts of the API that are using floats]) fi]) +AC_ARG_ENABLE(examples, [ --disable-examples Do not build example programs, only the library]) +if test "$enableval" != no; then + AM_CONDITIONAL([BUILD_EXAMPLES], true), +else + AM_CONDITIONAL([BUILD_EXAMPLES], false) +fi + AC_ARG_ENABLE(arm4-asm, [ --enable-arm4-asm Make use of ARM4 assembly optimizations], [if test "$enableval" = yes; then AC_DEFINE([ARM4_ASM], , [Make use of ARM4 assembly optimizations]) diff --git a/libspeexdsp/Makefile.am b/libspeexdsp/Makefile.am index 32af817..7cfa616 100644 --- a/libspeexdsp/Makefile.am +++ b/libspeexdsp/Makefile.am @@ -31,6 +31,7 @@ noinst_HEADERS = arch.h bfin.h \ libspeexdsp_la_LDFLAGS = -no-undefined -version-info @SPEEXDSP_LT_CURRENT@:@SPEEXDSP_LT_REVISION@:@SPEEXDSP_LT_AGE@ libspeexdsp_la_LIBADD = $(LIBM) +if BUILD_EXAMPLES noinst_PROGRAMS = testdenoise testecho testjitter testresample testdenoise_SOURCES = testdenoise.c testdenoise_LDADD = libspeexdsp.la @FFT_LIBS@ @@ -40,3 +41,4 @@ testjitter_SOURCES = testjitter.c testjitter_LDADD = libspeexdsp.la @FFT_LIBS@ testresample_SOURCES = testresample.c testresample_LDADD = libspeexdsp.la @FFT_LIBS@ @LIBM@ +endif |