1 --- asterisk-1.6.1.12/codecs/codec_lpc10.c 2009-12-31 13:37:17.453275676 +0200
2 +++ asterisk-1.6.1.12/codecs/codec_lpc10.c 2009-12-31 13:18:26.630953709 +0200
8 + <depend>lpc10</depend>
14 #include "asterisk/module.h"
15 #include "asterisk/utils.h"
17 -#include "lpc10/lpc10.h"
20 /* Sample frame data */
21 #include "slin_lpc10_ex.h"
22 --- asterisk-1.6.1.12/build_tools/menuselect-deps.in~ 2009-12-31 13:39:17.000000000 +0200
23 +++ asterisk-1.6.1.12/build_tools/menuselect-deps.in 2009-12-31 14:19:55.440132344 +0200
32 --- asterisk-1.6.1.12/codecs/Makefile~ 2009-07-21 16:48:38.000000000 +0300
33 +++ asterisk-1.6.1.12/codecs/Makefile 2009-12-31 13:11:04.977664417 +0200
38 +ifneq ($(LPC10_INTERNAL),no)
39 $(if $(filter codec_lpc10,$(EMBEDDED_MODS)),modules.link,codec_lpc10.so): $(LIBLPC10)
43 @$(MAKE) -C ilbc all _ASTCFLAGS="$(filter-out -Wmissing-prototypes -Wmissing-declarations -Wshadow,$(_ASTCFLAGS)) $(AST_NO_STRICT_OVERFLOW)"
44 --- asterisk-1.8.0/makeopts.in.orig 2010-10-23 13:03:13.000000000 +0300
45 +++ asterisk-1.8.0/makeopts.in 2010-10-23 13:10:09.850817002 +0300
47 GSM_INCLUDE=@GSM_INCLUDE@
50 +LPC10_INTERNAL=@LPC10_INTERNAL@
51 +LPC10_INCLUDE=@LPC10_INCLUDE@
52 +LPC10_LIB=@LPC10_LIB@
54 GTK2_INCLUDE=@GTK2_INCLUDE@
57 --- asterisk-1.8.0/configure.ac.orig 2010-10-23 13:03:13.547483666 +0300
58 +++ asterisk-1.8.0/configure.ac 2010-10-23 13:07:06.384150337 +0300
60 AST_EXT_LIB_SETUP([BKTR], [Stack Backtrace], [execinfo])
61 AST_EXT_LIB_SETUP([GSM], [External GSM], [gsm], [, use 'internal' GSM otherwise])
62 AST_EXT_LIB_SETUP([GTK2], [gtk2], [gtk2])
63 +AST_EXT_LIB_SETUP([LPC10], [External lpc10 library], [lpc10], [, use 'internal' lpc10 otherwise])
64 AST_EXT_LIB_SETUP([GMIME], [GMime], [gmime])
65 AST_EXT_LIB_SETUP([OPENH323], [OpenH323], [h323])
66 AST_EXT_LIB_SETUP([HOARD], [Hoard Memory Allocator], [hoard])
67 @@ -1095,6 +1096,72 @@
72 +AC_SUBST(LPC10_INTERNAL)
74 +if test "${USE_LPC10}" != "no"; then
84 + if test "${LPC10_DIR}" = "internal"; then
86 + elif test "${LPC10_DIR}" != ""; then
89 + if test "${LPC10_SYSTEM}" = "yes"; then
91 + if test "x${LPC10_DIR}" != "x"; then
92 + if test -d ${LPC10_DIR}/${_lib}; then
93 + lpc10libdir="-L${LPC10_DIR}/${_lib}"
95 + lpc10libdir="-L${LPC10_DIR}"
98 + AC_CHECK_LIB([lpc10], [lpc10_encode], AC_DEFINE_UNQUOTED([HAVE_LPC10], 1,
99 + [Define to indicate the GSM library]), [], ${gsmlibdir})
100 + if test "${ac_cv_lib_lpc10_lpc10_encode}" = "yes"; then
101 + if test "x${LPC10_DIR}" != "x" ; then
102 + AC_CHECK_HEADER([${LPC10_DIR}/include/lpc10.h], [LPC10_HEADER_FOUND=1], [LPC10_HEADER_FOUND=0])
104 + AC_CHECK_HEADER([lpc10.h], [LPC10_HEADER_FOUND=1], [LPC10_HEADER_FOUND=0])
106 + if test "${LPC10_HEADER_FOUND}" = "0" ; then
107 + if test "x${LPC10_MANDATORY}" = "xyes" ; then
108 + AC_MSG_NOTICE([***])
109 + AC_MSG_NOTICE([*** It appears that you do not have the lpc10 development package installed.])
110 + AC_MSG_NOTICE([*** Please install it to include ${LPC10_DESCRIP} support, or re-run configure])
111 + AC_MSG_NOTICE([*** without explicitly specifying --with-${LPC10_OPTION}])
116 + if test "${LPC10_HEADER_FOUND}" = "1" ; then
117 + AC_DEFINE_UNQUOTED([HAVE_LPC10_HEADER], 1, [Define to indicate that lpc10.h has no prefix for its location])
120 + if test "${LPC10_OK}" = "1" ; then
121 + LPC10_LIB="-llpc10"
122 + if test "x${LPC10_DIR}" != "x"; then
123 + LPC10_LIB="${lpc10libdir} ${LPC10_LIB}"
124 + LPC10_INCLUDE="-I${LPC10_DIR}/include"
127 + LPC10_INTERNAL="no"
131 + if test "${LPC10_INTERNAL}" = "yes"; then
133 + AC_DEFINE_UNQUOTED([HAVE_LPC10_HEADER], 1, [Define to indicate that lpc10.h has no prefix for its location])
137 AST_EXT_LIB_CHECK([ICONV], [iconv], [iconv_open], [iconv.h])
138 # Some versions of Linux package iconv in glibc
139 AST_EXT_LIB_CHECK([ICONV], [c], [iconv_close], [iconv.h])