aboutsummaryrefslogtreecommitdiffstats
path: root/package/pjsip/patches/0001-configure-fixup.patch
blob: 5fcf911c3b900c92033fc10cd03162f297d1f494 (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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
Index: pjproject-1.14.2/aconfigure.ac
===================================================================
--- pjproject-1.14.2.orig/aconfigure.ac	2012-04-27 03:22:15.000000000 +0200
+++ pjproject-1.14.2/aconfigure.ac	2012-08-13 14:42:33.204641678 +0200
@@ -48,9 +48,8 @@
     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)
@@ -584,13 +583,7 @@
 	;;
   *)
 	dnl # Check if ALSA is available
-	ac_pjmedia_snd=pa_unix
-	AC_CHECK_HEADER(alsa/version.h,
-			[AC_SUBST(ac_pa_use_alsa,1)
-			 LIBS="$LIBS -lasound"
-			],
-		        [AC_SUBST(ac_pa_use_alsa,0)])
-	AC_MSG_RESULT([Checking sound device backend... unix])
+        AC_SUBST(ac_pa_use_alsa,0)
 
 	dnl # Check if OSS is disabled
 	AC_SUBST(ac_pa_use_oss,1)
@@ -617,6 +610,15 @@
 	       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)
 AC_ARG_ENABLE(small-filter,
@@ -737,14 +739,6 @@
 	      AC_MSG_RESULT([Checking if iLBC codec is disabled...no]))
 
 dnl # Include libsamplerate
-AC_ARG_ENABLE(libsamplerate,
-	      AC_HELP_STRING([--enable-libsamplerate],
-			     [Link with libsamplerate when available. Note that PJMEDIA_RESAMPLE_IMP must also be configured]),
-	      [ AC_CHECK_LIB(samplerate,src_new) ],
-	      AC_MSG_RESULT([Skipping libsamplerate detection])
-	     )
-
-dnl # Include libsamplerate
 AC_SUBST(ac_resample_dll)
 AC_ARG_ENABLE(resample_dll,
 	      AC_HELP_STRING([--enable-resample-dll],
Index: pjproject-1.14.2/pjmedia/build/os-auto.mak.in
===================================================================
--- pjproject-1.14.2.orig/pjmedia/build/os-auto.mak.in	2011-10-14 06:15:15.000000000 +0200
+++ pjproject-1.14.2/pjmedia/build/os-auto.mak.in	2012-08-13 14:40:47.680637171 +0200
@@ -125,4 +125,11 @@
 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