Sophie

Sophie

distrib > Mageia > 1 > x86_64 > by-pkgid > b9dbdb4ee09403bed7f3b4efbda0463a > files > 8

audacity-1.3.12-3.mga1.src.rpm

diff -p -up audacity-src-1.3.6/m4/audacity_checklib_libresample.m4.system-libs audacity-src-1.3.6/m4/audacity_checklib_libresample.m4
--- audacity-src-1.3.6/m4/audacity_checklib_libresample.m4.system-libs	2008-10-24 08:56:31.000000000 +0200
+++ audacity-src-1.3.6/m4/audacity_checklib_libresample.m4	2008-10-25 10:42:44.000000000 +0200
@@ -17,7 +17,22 @@ AC_DEFUN([AUDACITY_CHECKLIB_LIBRESAMPLE]
 
    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