mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-10-29 05:40:23 -04:00
Give module-waveout a configure switch
- Also disable the scary DBus and udev warnings when building for win32 - and only install some dbus/x11 specific files when appropriate
This commit is contained in:
parent
110b14ec21
commit
f2a9fd779e
2 changed files with 48 additions and 5 deletions
44
configure.ac
44
configure.ac
|
|
@ -878,6 +878,39 @@ fi
|
|||
AC_SUBST(HAVE_SOLARIS)
|
||||
AM_CONDITIONAL([HAVE_SOLARIS], [test "x$HAVE_SOLARIS" = x1])
|
||||
|
||||
#### WaveOut audio support (optional) ####
|
||||
|
||||
AC_ARG_ENABLE([waveout],
|
||||
AS_HELP_STRING([--disable-waveout],[Disable optional WaveOut audio support]),
|
||||
[
|
||||
case "${enableval}" in
|
||||
yes) waveout=yes ;;
|
||||
no) waveout=no ;;
|
||||
*) AC_MSG_ERROR(bad value ${enableval} for --disable-waveout) ;;
|
||||
esac
|
||||
],
|
||||
[waveout=auto])
|
||||
|
||||
if test "x${waveout}" != xno ; then
|
||||
AC_CHECK_HEADERS([mmsystem.h],
|
||||
[
|
||||
HAVE_WAVEOUT=1
|
||||
AC_DEFINE([HAVE_WAVEOUT], 1, [Have WaveOut audio?])
|
||||
],
|
||||
[
|
||||
HAVE_WAVEOUT=0
|
||||
if test "x$waveout" = xyes ; then
|
||||
AC_MSG_ERROR([*** WaveOut audio support not found])
|
||||
fi
|
||||
],
|
||||
[#include <windows.h>])
|
||||
else
|
||||
HAVE_WAVEOUT=0
|
||||
fi
|
||||
|
||||
AC_SUBST(HAVE_WAVEOUT)
|
||||
AM_CONDITIONAL([HAVE_WAVEOUT], [test "x$HAVE_WAVEOUT" = x1])
|
||||
|
||||
#### GLib 2 support (optional) ####
|
||||
|
||||
AC_ARG_ENABLE([glib2],
|
||||
|
|
@ -1529,6 +1562,11 @@ if test "x$HAVE_SOLARIS" = "x1" ; then
|
|||
ENABLE_SOLARIS=yes
|
||||
fi
|
||||
|
||||
ENABLE_WAVEOUT=no
|
||||
if test "x$HAVE_WAVEOUT" = "x1" ; then
|
||||
ENABLE_WAVEOUT=yes
|
||||
fi
|
||||
|
||||
ENABLE_GTK20=no
|
||||
if test "x$HAVE_GTK20" = "x1" ; then
|
||||
ENABLE_GTK20=yes
|
||||
|
|
@ -1650,6 +1688,7 @@ echo "
|
|||
System Config Path: ${PA_SYSTEM_CONFIG_PATH}
|
||||
Compiler: ${CC}
|
||||
CFLAGS: ${CFLAGS}
|
||||
LIBS: ${LIBS}
|
||||
|
||||
Have X11: ${ENABLE_X11}
|
||||
Enable OSS Output: ${ENABLE_OSS_OUTPUT}
|
||||
|
|
@ -1657,6 +1696,7 @@ echo "
|
|||
Enable CoreAudio: ${ENABLE_COREAUDIO}
|
||||
Enable Alsa: ${ENABLE_ALSA}
|
||||
Enable Solaris: ${ENABLE_SOLARIS}
|
||||
Enable WaveOut: ${ENABLE_WAVEOUT}
|
||||
Enable GLib 2.0: ${ENABLE_GLIB20}
|
||||
Enable Gtk+ 2.0: ${ENABLE_GTK20}
|
||||
Enable GConf: ${ENABLE_GCONF}
|
||||
|
|
@ -1687,7 +1727,7 @@ echo "
|
|||
Preopened modules: ${PREOPEN_MODS}
|
||||
"
|
||||
|
||||
if test "${ENABLE_DBUS}" = "no" ; then
|
||||
if test "${ENABLE_DBUS}" = "no" && test "x$os_is_win32" != "x1" ; then
|
||||
echo "
|
||||
===== WARNING WARNING WARNING WARNING WARNING WARNING WARNING =====
|
||||
You do not have DBUS support enabled. It is strongly recommended
|
||||
|
|
@ -1700,7 +1740,7 @@ controling the PulseAudio daemon itself.
|
|||
"
|
||||
fi
|
||||
|
||||
if test "${ENABLE_UDEV}" = "no" ; then
|
||||
if test "${ENABLE_UDEV}" = "no" && test "x$os_is_win32" != "x1" ; then
|
||||
echo "
|
||||
===== WARNING WARNING WARNING WARNING WARNING WARNING WARNING =====
|
||||
You do not have udev support enabled. It is strongly recommended
|
||||
|
|
|
|||
|
|
@ -112,8 +112,10 @@ pulseconf_DATA = \
|
|||
daemon.conf \
|
||||
client.conf
|
||||
|
||||
if HAVE_DBUS
|
||||
dbuspolicy_DATA = \
|
||||
daemon/pulseaudio-system.conf
|
||||
endif
|
||||
|
||||
if HAVE_X11
|
||||
xdgautostart_in_files = \
|
||||
|
|
@ -175,6 +177,8 @@ endif
|
|||
# Utility programs #
|
||||
###################################
|
||||
|
||||
bin_SCRIPTS = esdcompat
|
||||
|
||||
bin_PROGRAMS += \
|
||||
pacat \
|
||||
pactl
|
||||
|
|
@ -189,14 +193,13 @@ endif
|
|||
|
||||
if HAVE_X11
|
||||
bin_PROGRAMS += pax11publish
|
||||
bin_SCRIPTS += start-pulseaudio-x11 start-pulseaudio-kde
|
||||
endif
|
||||
|
||||
if HAVE_AVAHI
|
||||
bin_PROGRAMS += pabrowse
|
||||
endif
|
||||
|
||||
bin_SCRIPTS = esdcompat start-pulseaudio-x11 start-pulseaudio-kde
|
||||
|
||||
pacat_SOURCES = utils/pacat.c
|
||||
pacat_LDADD = $(AM_LDADD) libpulse.la libpulsecommon-@PA_MAJORMINOR@.la $(LIBSNDFILE_LIBS)
|
||||
pacat_CFLAGS = $(AM_CFLAGS) $(LIBSNDFILE_CFLAGS)
|
||||
|
|
@ -1183,7 +1186,7 @@ pulselibexec_PROGRAMS += \
|
|||
gconf-helper
|
||||
endif
|
||||
|
||||
if OS_IS_WIN32
|
||||
if HAVE_WAVEOUT
|
||||
modlibexec_LTLIBRARIES += \
|
||||
module-waveout.la
|
||||
endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue