[Freeswitch-svn] [commit] r11981 - in freeswitch/trunk/libs/speex: . libspeex

FreeSWITCH SVN mikej at freeswitch.org
Thu Feb 12 22:54:26 PST 2009


Author: mikej
Date: Fri Feb 13 00:54:26 2009
New Revision: 11981

Log:
slim build to just lib and fix some build errors and autotools errors

Modified:
   freeswitch/trunk/libs/speex/Makefile.am
   freeswitch/trunk/libs/speex/configure.ac
   freeswitch/trunk/libs/speex/libspeex/Makefile.am
   freeswitch/trunk/libs/speex/libspeex/math_approx.c

Modified: freeswitch/trunk/libs/speex/Makefile.am
==============================================================================
--- freeswitch/trunk/libs/speex/Makefile.am	(original)
+++ freeswitch/trunk/libs/speex/Makefile.am	Fri Feb 13 00:54:26 2009
@@ -13,7 +13,7 @@
 EXTRA_DIST = Speex.spec Speex.spec.in Speex.kdevelop speex.m4 speex.pc.in README.blackfin README.symbian README.TI-DSP
 
 #Fools KDevelop into including all files
-SUBDIRS = libspeex include @src@ doc win32 symbian ti
+SUBDIRS = libspeex include
 
 DIST_SUBDIRS = libspeex include src doc win32 symbian ti
 

Modified: freeswitch/trunk/libs/speex/configure.ac
==============================================================================
--- freeswitch/trunk/libs/speex/configure.ac	(original)
+++ freeswitch/trunk/libs/speex/configure.ac	Fri Feb 13 00:54:26 2009
@@ -208,33 +208,18 @@
 )
 
 FFT_PKGCONFIG=
-AS_CASE([$FFT],
- [kiss], [
-  AC_DEFINE([USE_KISS_FFT], [], [Use KISS Fast Fourier Transform])
- ],
- [smallft], [
-  AC_DEFINE([USE_SMALLFT], [], [Use FFT from OggVorbis])
- ],
- [gpl-fftw3], [
-  AC_DEFINE([USE_GPL_FFTW3], [], [Use FFTW3 for FFT])
-  PKG_CHECK_MODULES(FFT, fftw3f)
- ],
- [proprietary-intel-mkl], [
-  AC_DEFINE([USE_INTEL_MKL], [], [Use Intel Math Kernel Library for FFT])
-  AC_MSG_CHECKING(for valid MKL)
-  AC_LINK_IFELSE([
-   AC_LANG_PROGRAM([[
-#include <mkl.h>
-void func() {
-  DFTI_DESCRIPTOR_HANDLE h;
-  MKL_LONG result=DftiCreateDescriptor(&h, DFTI_SINGLE, DFTI_REAL, 0);
-}]])],
-   [AC_MSG_RESULT(yes)],
-   [AC_MSG_FAILURE([Failed to compile MKL test program. Make sure you set CFLAGS to include the include directory and set LDFLAGS to include the library directory and all necesarry libraries.])]
-  )
- ],
- [AC_MSG_FAILURE([Unknown FFT $FFT specified for --with-fft])]
-)
+
+case $FFT in
+	kiss) 
+		AC_DEFINE([USE_KISS_FFT], [], [Use KISS Fast Fourier Transform]) ;;
+	smallft)
+		AC_DEFINE([USE_SMALLFT], [], [Use FFT from OggVorbis]) ;;
+	*)
+		AC_MSG_FAILURE([Unknown FFT $FFT specified for --with-fft]) ;;
+esac
+
+AC_SUBST(FFT_LIBS)
+AC_SUBST(FFT_CFLAGS)
 AM_CONDITIONAL(BUILD_KISS_FFT, [test "$FFT" = "kiss"])
 AM_CONDITIONAL(BUILD_SMALLFT, [test "$FFT" = "smallft"])
 AC_SUBST(FFT_PKGCONFIG)
@@ -273,7 +258,7 @@
 AC_SUBST(SIZE16)
 AC_SUBST(SIZE32)
 
-AC_OUTPUT([Makefile libspeex/Makefile src/Makefile doc/Makefile Speex.spec
+AC_OUTPUT([Makefile libspeex/Makefile src/Makefile  Speex.spec
            include/Makefile include/speex/Makefile speex.pc speexdsp.pc
            win32/Makefile win32/libspeex/Makefile win32/speexenc/Makefile
            win32/speexdec/Makefile symbian/Makefile 

Modified: freeswitch/trunk/libs/speex/libspeex/Makefile.am
==============================================================================
--- freeswitch/trunk/libs/speex/libspeex/Makefile.am	(original)
+++ freeswitch/trunk/libs/speex/libspeex/Makefile.am	Fri Feb 13 00:54:26 2009
@@ -40,16 +40,16 @@
 libspeex_la_LDFLAGS = -no-undefined -version-info @SPEEX_LT_CURRENT@:@SPEEX_LT_REVISION@:@SPEEX_LT_AGE@
 libspeexdsp_la_LDFLAGS = -no-undefined -version-info @SPEEX_LT_CURRENT@:@SPEEX_LT_REVISION@:@SPEEX_LT_AGE@
 
-noinst_PROGRAMS = testenc testenc_wb testenc_uwb testdenoise testecho testjitter
-testenc_SOURCES = testenc.c
-testenc_LDADD = libspeex.la
-testenc_wb_SOURCES = testenc_wb.c
-testenc_wb_LDADD = libspeex.la 
-testenc_uwb_SOURCES = testenc_uwb.c
-testenc_uwb_LDADD = libspeex.la
-testdenoise_SOURCES = testdenoise.c
-testdenoise_LDADD = libspeexdsp.la @FFT_LIBS@
-testecho_SOURCES = testecho.c
-testecho_LDADD = libspeexdsp.la @FFT_LIBS@
-testjitter_SOURCES = testjitter.c
-testjitter_LDADD = libspeexdsp.la @FFT_LIBS@
+#noinst_PROGRAMS = testenc testenc_uwb testdenoise testecho testjitter testenc_wb
+#testenc_SOURCES = testenc.c
+#testenc_LDADD = libspeex.la
+#testenc_wb_SOURCES = testenc_wb.c
+#testenc_wb_LDADD = libspeex.la 
+#testenc_uwb_SOURCES = testenc_uwb.c
+#testenc_uwb_LDADD = libspeex.la
+#testdenoise_SOURCES = testdenoise.c
+#testdenoise_LDADD = libspeexdsp.la @FFT_LIBS@
+#testecho_SOURCES = testecho.c
+#testecho_LDADD = libspeexdsp.la @FFT_LIBS@
+#testjitter_SOURCES = testjitter.c
+#testjitter_LDADD = libspeexdsp.la @FFT_LIBS@

Modified: freeswitch/trunk/libs/speex/libspeex/math_approx.c
==============================================================================
--- freeswitch/trunk/libs/speex/libspeex/math_approx.c	(original)
+++ freeswitch/trunk/libs/speex/libspeex/math_approx.c	Fri Feb 13 00:54:26 2009
@@ -136,6 +136,7 @@
 #define K3 340
 #define K4 -10
 
+#if 0
 spx_word16_t spx_cos(spx_word16_t x)
 {
    spx_word16_t x2;
@@ -150,7 +151,7 @@
       return SUB32(-K1, MULT16_16_P13(x2, ADD32(K2, MULT16_16_P13(x2, ADD32(K3, MULT16_16_P13(K4, x2))))));
    }
 }
-
+#endif
 #else
 
 #ifndef M_PI
@@ -164,6 +165,7 @@
 
 
 #define SPX_PI_2 1.5707963268
+#if 0
 spx_word16_t spx_cos(spx_word16_t x)
 {
    if (x<SPX_PI_2)
@@ -177,5 +179,5 @@
    }
 }
 
-
+#endif
 #endif



More information about the Freeswitch-svn mailing list