configure: Check for snd_pcm_hw_params_get_access_mask() when checking for ALSA.
This commit is contained in:
parent
35f3db4e24
commit
aeb78cba25
|
@ -10879,9 +10879,9 @@ ALSALIBS=""
|
||||||
|
|
||||||
if test "$ac_cv_header_sys_asoundlib_h" = "yes" -o "$ac_cv_header_alsa_asoundlib_h" = "yes"
|
if test "$ac_cv_header_sys_asoundlib_h" = "yes" -o "$ac_cv_header_alsa_asoundlib_h" = "yes"
|
||||||
then
|
then
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_pcm_hw_params_get_access in -lasound" >&5
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_pcm_hw_params_get_access_mask in -lasound" >&5
|
||||||
$as_echo_n "checking for snd_pcm_hw_params_get_access in -lasound... " >&6; }
|
$as_echo_n "checking for snd_pcm_hw_params_get_access_mask in -lasound... " >&6; }
|
||||||
if test "${ac_cv_lib_asound_snd_pcm_hw_params_get_access+set}" = set; then :
|
if test "${ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask+set}" = set; then :
|
||||||
$as_echo_n "(cached) " >&6
|
$as_echo_n "(cached) " >&6
|
||||||
else
|
else
|
||||||
ac_check_lib_save_LIBS=$LIBS
|
ac_check_lib_save_LIBS=$LIBS
|
||||||
|
@ -10895,27 +10895,27 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C"
|
extern "C"
|
||||||
#endif
|
#endif
|
||||||
char snd_pcm_hw_params_get_access ();
|
char snd_pcm_hw_params_get_access_mask ();
|
||||||
int
|
int
|
||||||
main ()
|
main ()
|
||||||
{
|
{
|
||||||
return snd_pcm_hw_params_get_access ();
|
return snd_pcm_hw_params_get_access_mask ();
|
||||||
;
|
;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
_ACEOF
|
_ACEOF
|
||||||
if ac_fn_c_try_link "$LINENO"; then :
|
if ac_fn_c_try_link "$LINENO"; then :
|
||||||
ac_cv_lib_asound_snd_pcm_hw_params_get_access=yes
|
ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask=yes
|
||||||
else
|
else
|
||||||
ac_cv_lib_asound_snd_pcm_hw_params_get_access=no
|
ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask=no
|
||||||
fi
|
fi
|
||||||
rm -f core conftest.err conftest.$ac_objext \
|
rm -f core conftest.err conftest.$ac_objext \
|
||||||
conftest$ac_exeext conftest.$ac_ext
|
conftest$ac_exeext conftest.$ac_ext
|
||||||
LIBS=$ac_check_lib_save_LIBS
|
LIBS=$ac_check_lib_save_LIBS
|
||||||
fi
|
fi
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_pcm_hw_params_get_access" >&5
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask" >&5
|
||||||
$as_echo "$ac_cv_lib_asound_snd_pcm_hw_params_get_access" >&6; }
|
$as_echo "$ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask" >&6; }
|
||||||
if test "x$ac_cv_lib_asound_snd_pcm_hw_params_get_access" = x""yes; then :
|
if test "x$ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask" = x""yes; then :
|
||||||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
||||||
/* end confdefs.h. */
|
/* end confdefs.h. */
|
||||||
#ifdef HAVE_ALSA_ASOUNDLIB_H
|
#ifdef HAVE_ALSA_ASOUNDLIB_H
|
||||||
|
@ -10926,7 +10926,7 @@ if test "x$ac_cv_lib_asound_snd_pcm_hw_params_get_access" = x""yes; then :
|
||||||
int
|
int
|
||||||
main ()
|
main ()
|
||||||
{
|
{
|
||||||
int ret = snd_pcm_hw_params_get_access(NULL, NULL)
|
int ret = snd_pcm_hw_params_get_access_mask(NULL, NULL)
|
||||||
;
|
;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1479,12 +1479,12 @@ dnl **** Check for ALSA 1.x ****
|
||||||
AC_SUBST(ALSALIBS,"")
|
AC_SUBST(ALSALIBS,"")
|
||||||
if test "$ac_cv_header_sys_asoundlib_h" = "yes" -o "$ac_cv_header_alsa_asoundlib_h" = "yes"
|
if test "$ac_cv_header_sys_asoundlib_h" = "yes" -o "$ac_cv_header_alsa_asoundlib_h" = "yes"
|
||||||
then
|
then
|
||||||
AC_CHECK_LIB(asound,snd_pcm_hw_params_get_access,
|
AC_CHECK_LIB(asound,snd_pcm_hw_params_get_access_mask,
|
||||||
[AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#ifdef HAVE_ALSA_ASOUNDLIB_H
|
[AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#ifdef HAVE_ALSA_ASOUNDLIB_H
|
||||||
#include <alsa/asoundlib.h>
|
#include <alsa/asoundlib.h>
|
||||||
#elif defined(HAVE_SYS_ASOUNDLIB_H)
|
#elif defined(HAVE_SYS_ASOUNDLIB_H)
|
||||||
#include <sys/asoundlib.h>
|
#include <sys/asoundlib.h>
|
||||||
#endif]], [[int ret = snd_pcm_hw_params_get_access(NULL, NULL)]])],
|
#endif]], [[int ret = snd_pcm_hw_params_get_access_mask(NULL, NULL)]])],
|
||||||
[AC_DEFINE(HAVE_ALSA,1,[Define if you have ALSA 1.x including devel headers])
|
[AC_DEFINE(HAVE_ALSA,1,[Define if you have ALSA 1.x including devel headers])
|
||||||
ALSALIBS="-lasound"],[])])
|
ALSALIBS="-lasound"],[])])
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue