--- audacity-src-1.3.2-beta/m4/audacity_checklib_libresample.m4.orig 2006-12-29 17:01:36.794372000 +0100 +++ audacity-src-1.3.2-beta/m4/audacity_checklib_libresample.m4 2006-12-29 17:23:30.465234287 +0100 @@ -133,7 +151,22 @@ dnl ... but libresample isn't generally installed as a system library... - LIBRESAMPLE_SYSTEM_AVAILABLE="no" + AC_CHECK_LIB(resample, resample_open, + libresample_found="yes", + libresample_found="no") + + AC_CHECK_HEADER(libresample.h, + libresample_h_found="yes", + libresample_h_found="no") + + if test "x$libresample_found" = "xyes" && test "x$libresample_h_found" = "xyes" ; then + LIBRESAMPLE_SYSTEM_AVAILABLE="yes" + LIBRESAMPLE_SYSTEM_LIBS=-lresample + AC_MSG_NOTICE([Libresample libraries are available as system libraries]) + else + LIBRESAMPLE_SYSTEM_AVAILABLE="no" + AC_MSG_NOTICE([Libresample libraries are NOT available as system libraries]) + fi dnl see if libresample is available locally