summaryrefslogtreecommitdiff
path: root/codecs
diff options
context:
space:
mode:
Diffstat (limited to 'codecs')
-rw-r--r--codecs/Makefile.am4
-rw-r--r--codecs/Makefile.common3
2 files changed, 5 insertions, 2 deletions
diff --git a/codecs/Makefile.am b/codecs/Makefile.am
index fd93ba4eda..35d92d32a7 100644
--- a/codecs/Makefile.am
+++ b/codecs/Makefile.am
@@ -35,6 +35,10 @@ endif
libwscodecs_la_SOURCES = \
$(LIBWSCODECS_SRC)
+if !HAVE_SPEEXDSP
+libwscodecs_la_SOURCES += speex/resample.c
+endif
+
# http://www.gnu.org/software/libtool/manual/html_node/Updating-version-info.html
libwscodecs_la_LDFLAGS = -version-info 0:0:0 @LDFLAGS_SHAREDLIB@
diff --git a/codecs/Makefile.common b/codecs/Makefile.common
index b97e7f8dbc..1e8b158df2 100644
--- a/codecs/Makefile.common
+++ b/codecs/Makefile.common
@@ -26,5 +26,4 @@ LIBWSCODECS_SRC = \
G711a/G711adecode.c \
G711u/G711udecode.c \
G722/G722decode.c \
- G726/G726decode.c \
- speex/resample.c
+ G726/G726decode.c