mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 04:01:08 +00:00
trying to add a check for libaudiofile (-> plugins/audiofile/afsink)
Original commit message from CVS: trying to add a check for libaudiofile (-> plugins/audiofile/afsink)
This commit is contained in:
parent
b1516de5f5
commit
b019f2cc91
1 changed files with 34 additions and 0 deletions
34
configure.in
34
configure.in
|
@ -263,6 +263,35 @@ AC_ARG_ENABLE(alsasink,
|
|||
esac],
|
||||
[HAVE_LIBASOUND=$HAVE_LIBASOUND])
|
||||
|
||||
|
||||
dnl Check for libaudiofile
|
||||
AC_PATH_PROG(AUDIOFILE_CONFIG, audiofile-config, no)
|
||||
if test x$AUDIOFILE_CONFIG = xno; then
|
||||
AC_MSG_WARN(Couldn't find audiofile-config: can't build afsink)
|
||||
AUDIOFILE_LIBS=
|
||||
HAVE_LIBAUDIOFILE=false
|
||||
else
|
||||
AC_MSG_WARN(did find audiofile-config: delete this msg)
|
||||
AUDIOFILE_LIBS=`audiofile-config --libs`
|
||||
HAVE_LIBAUDIOFILE=true
|
||||
fi
|
||||
AC_SUBST(AUDIOFILE_LIBS)
|
||||
AC_SUBST(HAVE_LIBAUDIOFILE)
|
||||
|
||||
alsa_save_LIBS=$LIBS
|
||||
alsa_save_CFLAGS=$CFLAGS
|
||||
AM_PATH_ALSA(0.5.0, HAVE_LIBASOUND=yes, HAVE_LIBASOUND=no)
|
||||
LIBS=$alsa_save_LIBS
|
||||
CFLAGS=$alsa_save_CFLAGS
|
||||
AC_ARG_ENABLE(alsasink,
|
||||
[ --enable-alsasink enable the building of the alsasink],
|
||||
[case "${enableval}" in
|
||||
yes) HAVE_LIBASOUND=$HAVE_LIBASOUND ;;
|
||||
no) HAVE_LIBASOUND=no ;;
|
||||
*) AC_MSG_ERROR(bad value ${enableval} for --enable-alsasink) ;;
|
||||
esac],
|
||||
[HAVE_LIBASOUND=$HAVE_LIBASOUND])
|
||||
|
||||
dnl Check for libgdk-pixbuf
|
||||
AC_PATH_PROG(GDK_PIXBUF_CONFIG, gdk-pixbuf-config, no)
|
||||
if test x$GDK_PIXBUF_CONFIG = xno; then
|
||||
|
@ -770,6 +799,10 @@ if test "x$HAVE_MPEG2DEC" = xyes; then
|
|||
AC_DEFINE(HAVE_MPEG2DEC)
|
||||
fi
|
||||
|
||||
if test "x$HAVE_LIBAUDIOFILE" = xyes; then
|
||||
AC_DEFINE(HAVE_LIBAUDIOFILE)
|
||||
fi
|
||||
|
||||
dnl #############################
|
||||
dnl # Set automake conditionals #
|
||||
dnl #############################
|
||||
|
@ -783,6 +816,7 @@ AM_CONDITIONAL(HAVE_CPU_ARM, test "x$HAVE_CPU_ARM" = "xyes")
|
|||
AM_CONDITIONAL(HAVE_CPU_SPARC, test "x$HAVE_CPU_SPARC" = "xyes")
|
||||
AM_CONDITIONAL(HAVE_GDK_PIXBUF, test "x$USE_GDK_PIXBUF" = "xyes")
|
||||
AM_CONDITIONAL(HAVE_LIBGHTTP, test "x$USE_LIBGHTTP" = "xyes")
|
||||
AM_CONDITIONAL(HAVE_LIBAUDIOFILE, test "x$HAVE_LIBAUDIOFILE" = "xyes")
|
||||
AM_CONDITIONAL(HAVE_LIBMMX, test "x$USE_LIBMMX" = "xyes")
|
||||
AM_CONDITIONAL(HAVE_ATOMIC_H, test "x$USE_ATOMIC_H" = "xyes")
|
||||
AM_CONDITIONAL(HAVE_OSS, test "x$HAVE_OSS" = "xyes")
|
||||
|
|
Loading…
Reference in a new issue