Search
lxdream.org :: lxdream/configure.in :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename configure.in
changeset 657:c4143facbfcb
prev656:031d23fa6d0b
next658:f5926310bfbe
author nkeynes
date Wed Apr 16 10:12:12 2008 +0000 (11 years ago)
permissions -rw-r--r--
last change Add support for the pulseaudio sound system
file annotate diff log raw
1.1 --- a/configure.in Wed Apr 02 01:46:58 2008 +0000
1.2 +++ b/configure.in Wed Apr 16 10:12:12 2008 +0000
1.3 @@ -91,25 +91,34 @@
1.4 AM_CONDITIONAL(BUILD_X86_64, [test "$SH4_TRANSLATOR" = "x86_64"])
1.5
1.6 dnl ------------------ Optional driver support -------------------
1.7 +dnl Check for pulseaudio
1.8 +PKG_CHECK_MODULES(PULSE, [libpulse-simple], [
1.9 + HAVE_PULSE='yes'
1.10 + AC_DEFINE([HAVE_PULSE],1,[Have pulseaudio support]) ], [true])
1.11 +AM_CONDITIONAL( AUDIO_PULSE, [test "$HAVE_PULSE" = 'yes'] )
1.12 +
1.13 dnl Check for esound
1.14 PKG_CHECK_MODULES(ESOUND, [esound], [
1.15 HAVE_ESOUND='yes'
1.16 - AC_DEFINE([HAVE_ESOUND],1,[Have esound support]) ],
1.17 - [ echo "Warning: esound not found - building without esd audio support" ])
1.18 + AC_DEFINE([HAVE_ESOUND],1,[Have esound support]) ], [true])
1.19 AM_CONDITIONAL( AUDIO_ESOUND, [test "$HAVE_ESOUND" = 'yes'] )
1.20
1.21 dnl Check for alsa support
1.22 PKG_CHECK_MODULES(ALSA, [alsa], [
1.23 HAVE_ALSA='yes'
1.24 - AC_DEFINE([HAVE_ALSA],1,[Have alsa support]) ],
1.25 - [ echo "Warning: alsa not found - building without alsa audio support" ])
1.26 + AC_DEFINE([HAVE_ALSA],1,[Have alsa support]) ], [true])
1.27 AM_CONDITIONAL( AUDIO_ALSA, [test "$HAVE_ALSA" = 'yes'] )
1.28
1.29 +if test "x$HAVE_ESOUND" = "x" -a "x$HAVE_ALSA" = "x" -a "x$HAVE_PULSE" = "x"; then
1.30 + echo "Warning: Building without audio support"
1.31 +fi
1.32 +
1.33 dnl Check for linux cdrom device support
1.34 AC_CHECK_HEADER([linux/cdrom.h], [HAVE_LINUX_CDROM_H=yes], [
1.35 echo "Linux CDROM support not found, building without it."] )
1.36 AM_CONDITIONAL(CDROM_LINUX, [test "$HAVE_LINUX_CDROM_H" = "yes"])
1.37
1.38 +
1.39 AC_CHECK_HEADER([linux/joystick.h], [
1.40 HAVE_LINUX_JOYSTICK_H=yes
1.41 AC_DEFINE([HAVE_LINUX_JOYSTICK], 1, [Have linux joystick support]) ],
.