Configuration for use of libcdio on cygwin. Thanks Rocky Bernstein.

This commit is contained in:
Thomas Schmitt 2012-10-02 13:49:26 +00:00
parent 72ae8e3b5a
commit fa2508bfd5
2 changed files with 25 additions and 8 deletions

View File

@ -1 +1 @@
#define Cdrskin_timestamP "2012.09.13.085623" #define Cdrskin_timestamP "2012.10.02.134821"

View File

@ -242,10 +242,24 @@ else
fi fi
CFLAGS="$LIBBURN_DVD_OBS_PAD $CFLAGS" CFLAGS="$LIBBURN_DVD_OBS_PAD $CFLAGS"
dnl ts A91218 dnl ts A91218 - B21002
case $host_os in
cygwin*|mingw*)
default_libcdio=yes
;;
*)
default_libcdio=no
;;
esac
# Check for proper library versions if this is desired.
# (It fails too often on too many systems.)
AC_ARG_ENABLE(pkg-check-modules,
[ --enable-pkg-check-modules Enable pkg-config check for libcdio , default=no],
, enable_pkg_check_modules=no)
AC_ARG_ENABLE(libcdio, AC_ARG_ENABLE(libcdio,
[ --enable-libcdio Enable EXPERIMENTAL use of libcdio as system adapter, default=no], [ --enable-libcdio Enable use of libcdio as system adapter, default=no (except on MSWindows)],
, enable_libcdio=no) , enable_libcdio=$default_libcdio)
PKG_PROG_PKG_CONFIG
if test x$enable_libcdio = xyes; then if test x$enable_libcdio = xyes; then
dnl Check whether there is libcdio-devel and libcdio-runtime. dnl Check whether there is libcdio-devel and libcdio-runtime.
dnl If not, erase this macro dnl If not, erase this macro
@ -262,12 +276,15 @@ then
echo "WARNING: could not enable use of libcdio as system adapter" echo "WARNING: could not enable use of libcdio as system adapter"
fi fi
else else
echo "enabled EXPERIMENTAL use of libcdio as system adapter" echo "enabled use of libcdio as system adapter"
CFLAGS="$LIBCDIO_DEF $CFLAGS" CFLAGS="$LIBCDIO_DEF $CFLAGS"
if test x$enable_pkg_check_modules = xyes; then
LIBCDIO_REQUIRED=0.83 LIBCDIO_REQUIRED=0.83
PKG_CHECK_MODULES(LIBCDIO, libcdio >= $LIBCDIO_REQUIRED) PKG_CHECK_MODULES(LIBCDIO, libcdio >= $LIBCDIO_REQUIRED)
else
echo "checking for LIBCDIO... skipped, no --enable-pkg-check-modules"
fi
fi fi
dnl ts B00704 dnl ts B00704