2010-08-19 06:01:43 +00:00
|
|
|
dnl ==================================================================
|
|
|
|
dnl Checks for CD-ROM
|
|
|
|
dnl ==================================================================
|
|
|
|
|
|
|
|
dnl XMMS Checks
|
|
|
|
AC_ARG_ENABLE(xmms,
|
2021-12-20 05:48:02 +00:00
|
|
|
AS_HELP_STRING([--enable-xmms], [enable checking for XMMS])
|
2010-08-19 06:01:43 +00:00
|
|
|
)
|
2010-11-28 23:37:47 +00:00
|
|
|
if test "x$mingw" != xyes -a "x$enable_xmms" == xyes; then
|
2012-02-13 06:49:55 +00:00
|
|
|
AM_PATH_XMMS(0.9.5.1, HAVE_XMMS=yes, HAVE_XMMS=no)
|
2012-02-12 12:16:10 +00:00
|
|
|
fi
|
2011-05-30 20:57:14 +00:00
|
|
|
|
|
|
|
CDTYPE=""
|
2010-08-19 06:01:43 +00:00
|
|
|
if test "x$HAVE_VORBIS" = xyes; then
|
2011-06-04 08:19:18 +00:00
|
|
|
CDTYPE=" File"
|
2012-02-12 02:37:25 +00:00
|
|
|
QF_NEED(cd,[file])
|
2010-08-19 06:01:43 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
AC_MSG_CHECKING(for CD audio support)
|
|
|
|
|
|
|
|
dnl Linux
|
|
|
|
AC_EGREP_CPP([QF_maGiC_VALUE],
|
|
|
|
[
|
|
|
|
#include <linux/cdrom.h>
|
|
|
|
#ifdef CDROMREADTOCENTRY
|
|
|
|
QF_maGiC_VALUE
|
|
|
|
#endif
|
|
|
|
],
|
|
|
|
CDTYPE="$CDTYPE Linux"
|
2012-02-12 02:37:25 +00:00
|
|
|
QF_NEED(cd,[linux])
|
2010-08-19 06:01:43 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
dnl XMMS audio
|
|
|
|
if test "x$HAVE_XMMS" = "xyes"; then
|
|
|
|
CDTYPE="$CDTYPE XMMS"
|
2012-02-12 02:37:25 +00:00
|
|
|
QF_NEED(cd,[xmms])
|
2010-08-19 06:01:43 +00:00
|
|
|
AC_DEFINE(HAVE_XMMS, [1], [Define if you have XMMS])
|
|
|
|
fi
|
|
|
|
|
|
|
|
dnl SDL CD audio
|
|
|
|
if test "x$HAVE_SDL_CD" = "xyes"; then
|
|
|
|
CDTYPE="$CDTYPE SDL"
|
2012-02-12 02:37:25 +00:00
|
|
|
QF_NEED(cd,[sdl])
|
2010-08-19 06:01:43 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
dnl SGI
|
|
|
|
AC_EGREP_CPP([QF_maGiC_VALUE],
|
|
|
|
[
|
|
|
|
#include <dmedia/cdaudio.h>
|
|
|
|
#ifdef CD_READY
|
|
|
|
QF_maGiC_VALUE
|
|
|
|
#endif
|
|
|
|
],
|
|
|
|
CDTYPE="$CDTYPE SGI"
|
2012-02-12 02:37:25 +00:00
|
|
|
QF_NEED(cd,[sgi])
|
2010-08-19 06:01:43 +00:00
|
|
|
SGI_CD_LIBS="-lcdaudio -lmediad -lds"
|
|
|
|
)
|
|
|
|
AC_SUBST(SGI_CD_LIBS)
|
|
|
|
|
|
|
|
AC_EGREP_CPP([QF_maGiC_VALUE],
|
|
|
|
[
|
|
|
|
#include <windows.h>
|
|
|
|
#include <mmsystem.h>
|
|
|
|
#if defined(MCI_SET_DOOR_OPEN)
|
|
|
|
QF_maGiC_VALUE
|
|
|
|
#endif
|
|
|
|
],
|
|
|
|
CDTYPE="$CDTYPE WIN32"
|
2012-02-12 02:37:25 +00:00
|
|
|
QF_NEED(cd,[win])
|
2010-08-19 06:01:43 +00:00
|
|
|
)
|
2011-05-30 20:57:14 +00:00
|
|
|
if test "x$CDTYPE" != "x"; then
|
2010-08-19 06:01:43 +00:00
|
|
|
AC_MSG_RESULT([$CDTYPE])
|
|
|
|
else
|
|
|
|
AC_MSG_RESULT([no])
|
|
|
|
fi
|
|
|
|
|
|
|
|
AC_SUBST(CD_LIBS)
|
2011-06-04 08:19:18 +00:00
|
|
|
|
|
|
|
AC_ARG_WITH([cd-default],
|
|
|
|
AS_HELP_STRING([--with-cd-default=...],
|
2021-12-20 05:48:02 +00:00
|
|
|
[plugin to use for the default cd driver.]
|
|
|
|
[Defaults to file.]
|
2012-02-12 12:16:10 +00:00
|
|
|
[[file linux xmms sdl sgi win32]]),
|
|
|
|
[cd_default="$withval"]
|
2011-06-04 08:19:18 +00:00
|
|
|
)
|