Commit 99446819 authored by Tristan Matthews's avatar Tristan Matthews

configure: add --disable-binaries option

This will skip building speexenc, speexdec and the test programs.
It will also be automatically enforced if ogg is not detected.
parent f1cd6279
......@@ -16,7 +16,7 @@ EXTRA_DIST = Speex.spec Speex.spec.in Speex.kdevelop speex.m4 speex.pc.in README
#Fools KDevelop into including all files
SUBDIRS = libspeex include doc win32 symbian ti
if HAVE_OGG
if BUILD_BINARIES
SUBDIRS += src
endif
......
......@@ -108,7 +108,6 @@ CFLAGS="$SAVE_CFLAGS"
AC_MSG_RESULT($has_visibility)
AC_CHECK_HEADERS(sys/soundcard.h sys/audioio.h)
PKG_HAVE_WITH_MODULES([OGG], [ogg])
LT_LIB_M
......@@ -167,6 +166,15 @@ 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(binaries, [ --disable-binaries Do not build the encoder and decoder programs, only the library])
if test "$enableval" != no; then
PKG_CHECK_MODULES([OGG], [ogg],
AM_CONDITIONAL([BUILD_BINARIES], true),
AM_CONDITIONAL([BUILD_BINARIES], false))
else
AM_CONDITIONAL([BUILD_BINARIES], false)
fi
AC_ARG_ENABLE(vbr, [ --disable-vbr Disable VBR and VAD from the codec],
[if test "$enableval" = no; then
AC_DEFINE([DISABLE_VBR], , [Disable VBR and VAD from the codec])
......
......@@ -42,6 +42,7 @@ noinst_HEADERS = arch.h bfin.h cb_search_arm4.h cb_search_bfin.h cb_search_s
libspeex_la_LDFLAGS = -no-undefined -version-info @SPEEX_LT_CURRENT@:@SPEEX_LT_REVISION@:@SPEEX_LT_AGE@
libspeex_la_LIBADD = $(LIBM)
if BUILD_BINARIES
noinst_PROGRAMS = testenc testenc_wb testenc_uwb
testenc_SOURCES = testenc.c
testenc_LDADD = libspeex.la $(LIBM)
......@@ -49,3 +50,4 @@ testenc_wb_SOURCES = testenc_wb.c
testenc_wb_LDADD = libspeex.la $(LIBM)
testenc_uwb_SOURCES = testenc_uwb.c
testenc_uwb_LDADD = libspeex.la $(LIBM)
endif
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment