diff options
author | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
---|---|---|
committer | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
commit | e2de64d6f1beb9e492daf5b886e19933c1fa41dd (patch) | |
tree | 9047cf9e6b5c43878d5bf82660adae77ceee097a /kscd/libwm/configure.in.in | |
download | tdemultimedia-e2de64d6f1beb9e492daf5b886e19933c1fa41dd.tar.gz tdemultimedia-e2de64d6f1beb9e492daf5b886e19933c1fa41dd.zip |
Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features.
BUG:215923
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdemultimedia@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kscd/libwm/configure.in.in')
-rw-r--r-- | kscd/libwm/configure.in.in | 72 |
1 files changed, 72 insertions, 0 deletions
diff --git a/kscd/libwm/configure.in.in b/kscd/libwm/configure.in.in new file mode 100644 index 00000000..a0ce3ab7 --- /dev/null +++ b/kscd/libwm/configure.in.in @@ -0,0 +1,72 @@ +dnl +-------------------------------+ +dnl | Checks for LIBWORKMAN | +dnl +-------------------------------+ +AC_MSG_CHECKING(for CDDA) + +AC_ARG_WITH(kscd-cdda, [ --with-kscd-cdda build CDDA support in kscd [default=yes]], +[ + if test $withval = yes; then + libwm_with_cdda=yes + else + libwm_with_cdda=no + fi +],libwm_with_cdda=yes) + +if test "$libwm_with_cdda" = "yes"; then +case $host in + *-*-linux*) + AC_CHECK_HEADERS(pthread.h) + AC_TRY_COMPILE( + [ +#ifndef __GNUC__ +#define __GNUC__ 1 +#endif +/* needed for vanilla kernel headers, which do provide __u64 only + for ansi */ +#undef __STRICT_ANSI__ +/* needed for non-ansi kernel headers */ +#define asm __asm__ +#define inline __inline__ +#include <linux/types.h> +#include <linux/cdrom.h> +#undef asm +#undef inline + ],[ +#if defined(__linux__) +ioctl(1, CDROMREADAUDIO, 0); +#else + #error platform? +#endif + ],, libwm_with_cdda=no) + ;; + *-*-sunos*) + AC_CHECK_HEADERS(pthread.h) + AC_TRY_COMPILE( + [ +#include <sys/types.h> +#include <sys/cdio.h> + ],[ +#if defined(__sun) || defined(sun) +ioctl(1, CDROMCDDA, 0); +#else + #error platform? +#endif + ],, libwm_with_cdda=no) + ;; + *) + libwm_with_cdda=no + ;; +esac +fi + +if test "$libwm_with_cdda" = "yes"; then + AC_DEFINE(BUILD_CDDA, 1, [Define if you will CDDA support in kscd]) +fi +AM_CONDITIONAL(libwm_with_cdda, test "$libwm_with_cdda" = "yes") + +AC_MSG_RESULT($libwm_with_cdda) + + +dnl +-------------------------------+ +dnl | End LIBWORKMAN checks | +dnl +-------------------------------+ |