1 From 01108f66fd20dcdbb9fde0dd00924ee4e8c28a7c Mon Sep 17 00:00:00 2001
2 From: John Crispin <blogic@openwrt.org>
3 Date: Sat, 28 Jan 2012 21:41:18 +0100
4 Subject: [PATCH 1/3] configure fixup
7 pjproject-1.12/aconfigure.ac | 13 +++++++++++--
8 pjproject-1.12/pjmedia/build/os-auto.mak.in | 9 ++++++++-
9 2 files changed, 19 insertions(+), 3 deletions(-)
11 diff --git a/aconfigure.ac b/aconfigure.ac
12 index 84295b5..e34fd32 100644
15 @@ -48,9 +48,9 @@ if test -z "$CROSS_COMPILE"; then
16 CROSS_COMPILE=`echo ${CC} | sed 's/gcc//'`
19 -if test "$AR" = ""; then AR="${CROSS_COMPILE}ar rv"; fi
20 +AR="${CROSS_COMPILE}ar rv"
22 -if test "$LD" = ""; then LD="$CC"; fi
23 +LD="${CROSS_COMPILE}gcc"
25 if test "$LDOUT" = ""; then LDOUT="-o "; fi
27 @@ -604,6 +604,15 @@ AC_ARG_ENABLE(ext_sound,
31 +AC_ARG_ENABLE(ltq_tapi,
32 + AC_HELP_STRING([--enable-ltq-tapi],
33 + [PJMEDIA will use ltq tapi backend]),
34 + [if test "$enable_ltq_tapi" = "yes"; then
35 + [ac_pjmedia_snd=ltqtapi]
36 + AC_MSG_RESULT([Checking if external sound is set... yes])
40 dnl # Include resampling small filter
41 AC_SUBST(ac_no_small_filter)
42 AC_ARG_ENABLE(small-filter,
43 diff --git a/pjmedia/build/os-auto.mak.in b/pjmedia/build/os-auto.mak.in
44 index 145f1d5..be38aeb 100644
45 --- a/pjmedia/build/os-auto.mak.in
46 +++ b/pjmedia/build/os-auto.mak.in
47 @@ -125,4 +125,11 @@ ifeq ($(AC_PJMEDIA_SND),external)
48 export CFLAGS += -DPJMEDIA_AUDIO_DEV_HAS_PORTAUDIO=0 -DPJMEDIA_AUDIO_DEV_HAS_WMME=0
53 +# Lantiq tapi backend
55 +ifeq ($(AC_PJMEDIA_SND),ltqtapi)
56 +export CFLAGS += -DPJMEDIA_AUDIO_DEV_HAS_PORTAUDIO=0 -DPJMEDIA_AUDIO_DEV_HAS_WMME=0
57 +export PJMEDIA_AUDIODEV_OBJS += tapi_dev.o
58 +export CFLAGS += -DPJMEDIA_AUDIO_DEV_HAS_TAPI_DEVICE=1