Commit b019f2cc authored by Thomas Vander Stichele's avatar Thomas Vander Stichele
Browse files

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)
parent b1516de5
...@@ -263,6 +263,35 @@ AC_ARG_ENABLE(alsasink, ...@@ -263,6 +263,35 @@ AC_ARG_ENABLE(alsasink,
esac], esac],
[HAVE_LIBASOUND=$HAVE_LIBASOUND]) [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 dnl Check for libgdk-pixbuf
AC_PATH_PROG(GDK_PIXBUF_CONFIG, gdk-pixbuf-config, no) AC_PATH_PROG(GDK_PIXBUF_CONFIG, gdk-pixbuf-config, no)
if test x$GDK_PIXBUF_CONFIG = xno; then if test x$GDK_PIXBUF_CONFIG = xno; then
...@@ -770,6 +799,10 @@ if test "x$HAVE_MPEG2DEC" = xyes; then ...@@ -770,6 +799,10 @@ if test "x$HAVE_MPEG2DEC" = xyes; then
AC_DEFINE(HAVE_MPEG2DEC) AC_DEFINE(HAVE_MPEG2DEC)
fi fi
if test "x$HAVE_LIBAUDIOFILE" = xyes; then
AC_DEFINE(HAVE_LIBAUDIOFILE)
fi
dnl ############################# dnl #############################
dnl # Set automake conditionals # dnl # Set automake conditionals #
dnl ############################# dnl #############################
...@@ -783,6 +816,7 @@ AM_CONDITIONAL(HAVE_CPU_ARM, test "x$HAVE_CPU_ARM" = "xyes") ...@@ -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_CPU_SPARC, test "x$HAVE_CPU_SPARC" = "xyes")
AM_CONDITIONAL(HAVE_GDK_PIXBUF, test "x$USE_GDK_PIXBUF" = "xyes") AM_CONDITIONAL(HAVE_GDK_PIXBUF, test "x$USE_GDK_PIXBUF" = "xyes")
AM_CONDITIONAL(HAVE_LIBGHTTP, test "x$USE_LIBGHTTP" = "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_LIBMMX, test "x$USE_LIBMMX" = "xyes")
AM_CONDITIONAL(HAVE_ATOMIC_H, test "x$USE_ATOMIC_H" = "xyes") AM_CONDITIONAL(HAVE_ATOMIC_H, test "x$USE_ATOMIC_H" = "xyes")
AM_CONDITIONAL(HAVE_OSS, test "x$HAVE_OSS" = "xyes") AM_CONDITIONAL(HAVE_OSS, test "x$HAVE_OSS" = "xyes")
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment