Sat, 17 Dec 2005 04:39:31 +0000
[gaim-migrate @ 14826]
Looks like it's time to NEWS.
| 12023 | 1 | AC_DEFUN([LP_CHECK_SPEEX],[ |
| 2 | dnl only accept speex>=1.1.6 or 1.0.5 (the versions that have speex_encode_int ) | |
| 3 | AC_ARG_WITH( speex, | |
| 4 | [ --with-speex Set prefix where speex lib can be found (ex:/usr, /usr/local) [default=/usr] ], | |
| 5 | [ speex_prefix=${withval}],[ speex_prefix="/usr" ]) | |
| 6 | ||
| 7 | SPEEX_CFLAGS=" -I${speex_prefix}/include -I${speex_prefix}/include/speex" | |
| 8 | SPEEX_LIBS="-L${speex_prefix}/lib -lspeex -lm" | |
| 9 | CPPFLAGS_save=$CPPFLAGS | |
| 10 | CPPFLAGS=$SPEEX_CFLAGS | |
| 11 | LDFLAGS_save=$LDFLAGS | |
| 12 | LDFLAGS=$SPEEX_LIBS | |
| 13 | AC_CHECK_HEADERS(speex.h,[AC_CHECK_LIB(speex,speex_encode_int,speex_found=yes,speex_found=no) | |
| 14 | ],speex_found=no) | |
| 15 | ||
| 16 | if test "$speex_found" = "no" ; then | |
| 17 | AC_MSG_ERROR([Could not find a libspeex version that have the speex_encode_int() function. Please install libspeex=1.0.5 or libspeex>=1.1.6]) | |
| 18 | fi | |
| 19 | ||
| 20 | AC_SUBST(SPEEX_CFLAGS) | |
| 21 | AC_SUBST(SPEEX_LIBS) | |
| 22 | CPPFLAGS=$CPPFLAGS_save | |
| 23 | LDFLAGS=$LDFLAGS_save | |
| 24 | ]) |