Mercurial > audlegacy
changeset 4482:1884c4a9d84f
We don't want libsamplerate check to add -lsamplerate global LIBS, fixed.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Mon, 21 Apr 2008 06:52:28 +0300 |
parents | 25730d90d916 |
children | 06e98465cffa |
files | configure.ac |
diffstat | 1 files changed, 5 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/configure.ac Mon Apr 21 06:51:08 2008 +0300 +++ b/configure.ac Mon Apr 21 06:52:28 2008 +0300 @@ -237,10 +237,13 @@ [ --enable-samplerate Enable libsamplerate support], [ AUD_CHECK_MODULE([SAMPLERATE], [samplerate],, [libsamplerate]) - AC_CHECK_LIB([samplerate], [src_process],, - [ + aud_save_LIBS="$LIBS" + AC_CHECK_LIB([samplerate], [src_process],[ + SAMPLERATE_LIBS="-lsamplerate" + ], [ AC_MSG_ERROR([*** Unable to link with libsamplerate!]) ]) + LIBS="$aud_save_LIBS" AC_DEFINE([USE_SAMPLERATE], 1, [Define if libsamplerate enabled]) AC_SUBST([USE_SAMPLERATE]) AC_SUBST([SAMPLERATE_CFLAGS])