Define HAVE_SPEEXDSP when this is the case, disable SPEEX when that is not available

git-svn-id: svn+ssh://svn.savannah.nongnu.org/linphone/trunk@297 3f6dc0c8-ddfe-455d-9043-3cd528dc4637
This commit is contained in:
strk 2009-03-04 20:48:23 +00:00
parent d55430f351
commit ca70c14880
2 changed files with 5 additions and 0 deletions

View file

@ -318,6 +318,7 @@ PKG_CHECK_MODULES(SPEEX, speex >= 1.2beta3, build_speex=yes)
build_resample=false
PKG_CHECK_MODULES(SPEEXDSP, speexdsp >= 1.2beta3,
[SPEEX_LIBS="$SPEEX_LIBS $SPEEXDSP_LIBS"
AC_DEFINE(HAVE_SPEEXDSP,1,[have speexdsp library])
build_resample=yes] ,
[AC_MSG_NOTICE([No speexdsp library found.])
]

View file

@ -23,6 +23,10 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#define DISABLE_SPEEX
#endif
#ifndef HAVE_SPEEXDSP
#define DISABLE_SPEEX
#endif
#ifndef DISABLE_SPEEX
#include <speex/speex_preprocess.h>
#endif