configure.ac: when checking for ALSA, look for snd_pcm_recover() instead of snd_pcm_hw_params_get_access() (try 2)

Austin English austinenglish at gmail.com
Sun Jun 6 14:55:29 CDT 2010


-- 
-Austin
-------------- next part --------------
diff --git a/configure.ac b/configure.ac
index 21c0203..46ac100 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1386,12 +1386,12 @@ dnl **** Check for ALSA 1.x ****
 AC_SUBST(ALSALIBS,"")
 if test "$ac_cv_header_sys_asoundlib_h" = "yes" -o "$ac_cv_header_alsa_asoundlib_h" = "yes"
 then
-    AC_CHECK_LIB(asound,snd_pcm_hw_params_get_access,
+    AC_CHECK_LIB(asound,snd_pcm_recover,
         [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#ifdef HAVE_ALSA_ASOUNDLIB_H
 #include <alsa/asoundlib.h>
 #elif defined(HAVE_SYS_ASOUNDLIB_H)
 #include <sys/asoundlib.h>
-#endif]], [[int ret = snd_pcm_hw_params_get_access(NULL, NULL)]])],
+#endif]], [[int ret = snd_pcm_recover(NULL, NULL, NULL)]])],
                         [AC_DEFINE(HAVE_ALSA,1,[Define if you have ALSA 1.x including devel headers])
                          ALSALIBS="-lasound"],[])])
 fi


More information about the wine-patches mailing list