summaryrefslogtreecommitdiff
path: root/package/pjsip/patches/0001-configure-fixup.patch
blob: 1a941710f7a4bedfe716ee3ac49a8862a5e877ff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
--- a/aconfigure.ac
+++ b/aconfigure.ac
@@ -48,9 +48,8 @@ if test -z "$CROSS_COMPILE"; then
     CROSS_COMPILE=`echo ${CC} | sed 's/gcc//'`
 fi
 
-if test "$AR" = ""; then AR="${CROSS_COMPILE}ar rv"; fi
+AR="${AR} rv"
 AC_SUBST(AR)
-if test "$LD" = ""; then LD="$CC"; fi
 AC_SUBST(LD)
 if test "$LDOUT" = ""; then LDOUT="-o "; fi
 AC_SUBST(LDOUT)
@@ -616,6 +616,15 @@ AC_ARG_ENABLE(ext_sound,
 		AC_MSG_RESULT([Checking if external sound is set... yes])
 	       fi]
 	      )
+
+AC_ARG_ENABLE(ltq_tapi,
+	      AC_HELP_STRING([--enable-ltq-tapi],
+			     [PJMEDIA will use ltq tapi backend]),
+	      [if test "$enable_ltq_tapi" = "yes"; then
+		[ac_pjmedia_snd=ltqtapi]
+		AC_MSG_RESULT([Checking if external sound is set... yes])
+	       fi]
+	      )
 
 dnl # Include resampling small filter
 AC_SUBST(ac_no_small_filter)
--- a/pjmedia/build/os-auto.mak.in
+++ b/pjmedia/build/os-auto.mak.in
@@ -125,4 +125,11 @@ ifeq ($(AC_PJMEDIA_SND),external)
 export CFLAGS += -DPJMEDIA_AUDIO_DEV_HAS_PORTAUDIO=0 -DPJMEDIA_AUDIO_DEV_HAS_WMME=0
 endif
 
-
+#
+# Lantiq tapi backend
+#
+ifeq ($(AC_PJMEDIA_SND),ltqtapi)
+export CFLAGS += -DPJMEDIA_AUDIO_DEV_HAS_PORTAUDIO=0 -DPJMEDIA_AUDIO_DEV_HAS_WMME=0
+export PJMEDIA_AUDIODEV_OBJS += tapi_dev.o
+export CFLAGS += -DPJMEDIA_AUDIO_DEV_HAS_TAPI_DEVICE=1
+endif