• Home
  • Raw
  • Download

Lines Matching +full:dbus +full:- +full:x11

1 # -*- Autoconf -*-
6 # Copyright 2004-2008 Lennart Poettering
7 # Copyright 2006-2007 Pierre Ossman <ossman@cendio.se> for Cendio AB
24 AC_INIT([pulseaudio],[m4_esyscmd(./git-version-gen .tarball-version)],[pulseaudio-discuss (at) list…
28 AC_CONFIG_AUX_DIR([build-aux])
29 AM_INIT_AUTOMAKE([foreign 1.11 -Wall -Wno-portability subdir-objects silent-rules color-tests dist-
33 AS_IF([! test -n "$VERSION"], [
34 AC_MSG_ERROR([git-version-gen failed])
37 m4_define(pa_major, `echo $VERSION | cut -d. -f1 | cut -d- -f1`)
38 m4_define(pa_minor, `echo $VERSION | cut -d. -f2 | cut -d- -f1`)
51 # A simplified, synchronous, ABI-stable interface for client
55 # The ABI-stable GLib adapter for client applications, for the version
61 AS_IF([test "x$STOW" = "xyes" && test -d /usr/local/stow], [
62 …sr/local/stow: default install prefix set to /usr/local/stow/${PACKAGE_NAME}-${PACKAGE_VERSION} **…
63 ac_default_prefix="/usr/local/stow/${PACKAGE_NAME}-${PACKAGE_VERSION}"
71 # mkdir -p
75 # ln -s
83 # Only required if you want the WebRTC canceller -- no runtime dep on
95 # pkg-config
169 AX_CHECK_COMPILE_FLAG([-std=gnu11],
171 [AC_MSG_ERROR([*** Compiler does not support -std=gnu11])],
172 [-pedantic -Werror])
175-Wall -W -Wextra -pipe -Wno-long-long -Wno-overlength-strings -Wunsafe-loop-optimizations -Wundef
176 [], [-pedantic -Werror])
178 AS_CASE([" $CFLAGS "], [*" -O0 "*], [], [
181 AX_APPEND_FLAG([-DFASTPATH], [CPPFLAGS])
185 # if CPPFLAGS already contain -D_FORTIFY_SOURCE=2.
187 # Warnings to be aware of that appear with -D_FORTIFY_SOURCE=2 but without -U_FORTIFY_SOURCE:
188 …# On Fedora 20 with -O0: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp]
189 # On Gentoo with -O2: "_FORTIFY_SOURCE" redefined [enabled by default]
190 AS_VAR_APPEND([CPPFLAGS],[" -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2"])
195 # Check whether the linker supports the -version-script option.
198 AX_CHECK_LINK_FLAG(["-Wl,-version-script=${srcdir}/src/map-file"],
199 [VERSIONING_LDFLAGS='-Wl,-version-script=$(abs_top_srcdir)/src/map-file'])
202 # Use immediate (now) bindings; avoids the funky re-call in itself.
203 # The -z now syntax is lifted from Sun's linker and works with GNU's too, other linkers might be ad…
204 AX_APPEND_LINK_FLAGS([-Wl,-z,now], [IMMEDIATE_LDFLAGS])
206 AS_CASE([$IMMEDIATE_LDFLAGS],[*-z,now*],
213 AX_APPEND_LINK_FLAGS([-Wl,-z,nodelete], [NODELETE_LDFLAGS], [-shared])
220 *-freebsd* | *-openbsd*) ;;
222 for possible_flag in "-Wl,--no-undefined" "-Wl,-z,defs"; do
233 AC_ARG_ENABLE([atomic-arm-linux-helpers],
234 AS_HELP_STRING([--disable-atomic-arm-linux-helpers],[use inline asm or libatomic_ops instead]))
236 AC_ARG_ENABLE([atomic-arm-memory-barrier],
237 AS_HELP_STRING([--enable-atomic-arm-memory-barrier],[only really needed in SMP arm systems]))
273 *-netbsd*)
301 return (a==1 ? 0 : -1);
312 *-freebsd*)
329 [[volatile int a = -60000, b = 0xaaaabbbb, c = 0xccccdddd;
340 return (a == -128 && b == 0xaabbdddd) ? 0 : -1;
354 AC_ARG_ENABLE([neon-opt],
355 AS_HELP_STRING([--enable-neon-opt], [Enable NEON optimisations on ARM CPUs that support it]))
358 [save_CFLAGS="$CFLAGS"; CFLAGS="-mfpu=neon $CFLAGS"
363 NEON_CFLAGS="-mfpu=neon"
374 [AC_MSG_ERROR([*** Compiler does not support -mfpu=neon or CFLAGS override -mfpu])])
385 LT_INIT([dlopen win32-dll disable-static])
400 [AC_CHECK_LIB([ltdl], [lt_dladvise_init], [LIBLTDL=-lltdl], [LIBLTDL=])],
479 # This check covers x32-ABI
482 AS_IF([test $ac_cv_sizeof_voidp -ge 8], [fast_64bit_operations="yes"])
485 …ns" = "xyes"], AC_DEFINE([HAVE_FAST_64BIT_OPERATIONS], 1, [Have CPU with fast 64-bit operations?]))
533 [LIBS="$LIBS -framework CoreServices"],
580 # Non-standard
588 # Large File-Support (LFS)
607 AS_HELP_STRING([--disable-memfd], [Disable Linux memfd shared memory]))
624 #### X11 (optional) ####
626 AC_ARG_ENABLE([x11], optenable
627 AS_HELP_STRING([--disable-x11],[Disable optional X11 support]))
630 [PKG_CHECK_MODULES(X11, [ x11-xcb xcb >= 1.6 ice sm xtst ], HAVE_X11=1, HAVE_X11=0)],
634 [AC_MSG_ERROR([*** X11 not found])])
638 AS_IF([test "x$HAVE_X11" = "x1"], AC_DEFINE([HAVE_X11], 1, [Have X11?]))
645 AS_HELP_STRING([--without-caps],[Omit support for dropping capabilities.]))
653 …AC_MSG_ERROR([*** sys/capability.h not found. Use --without-caps to disable capabilities support.…
664 AS_HELP_STRING([--disable-tests],[Disable unit tests]))
679 #### atomic-ops ####
685 [CFLAGS="$CFLAGS -DAO_REQUIRE_CAS"],
686 [AC_MSG_ERROR([*** libatomic-ops headers not found])])
689 AS_IF([test "x$os_is_win32" != "x1"], [LIBS="$LIBS -latomic_ops"])
697 AS_HELP_STRING([--enable-samplerate],[Enable optional libsamplerate support (DEPRECATED)]))
714 …AS_HELP_STRING([--with-database=auto|tdb|gdbm|simple],[Choose database backend.]),[],[with_databas…
717 AS_IF([test "x$with_database" = "xauto" -o "x$with_database" = "xtdb"],
726 AS_IF([test "x$with_database" = "xauto" -o "x$with_database" = "xgdbm"],
737 GDBM_LIBS=-lgdbm
744 AS_IF([test "x$with_database" = "xauto" -o "x$with_database" = "xsimple"],
749 AS_IF([test "x$HAVE_TDB" != x1 -a "x$HAVE_GDBM" != x1 -a "x$HAVE_SIMPLEDB" != x1],
766 AC_ARG_ENABLE([oss-output],
767 AS_HELP_STRING([--disable-oss-output],[Disable optional OSS output support]))
769 AC_ARG_ENABLE([oss-wrapper],
770 AS_HELP_STRING([--disable-oss-wrapper],[Disable optional OSS wrapper support]))
772 AC_ARG_WITH([pulsedsp-location],
773 … AS_HELP_STRING([--with-pulsedsp-location],[Specify location where OSS wrapper will be installed]))
775 AS_IF([test "x$enable_oss_output" != "xno" -o "x$enable_oss_wrapper" != "xno"],
779 AS_IF([test "x$enable_oss_output" = "xyes" -o "x$enable_oss_wrapper" = "xyes" && test "x$HAVE_OSS" …
810 AC_ARG_ENABLE([coreaudio-output],
811 AS_HELP_STRING([--disable-coreaudio-output],[Disable optional CoreAudio output support]))
828 AS_HELP_STRING([--disable-alsa],[Disable optional ALSA support]))
840 AC_CHECK_HEADERS([alsa/use-case.h], HAVE_ALSA_UCM=1, HAVE_ALSA_UCM=0)
853 AS_HELP_STRING([--disable-esound],[Disable optional EsounD support]))
860 AS_HELP_STRING([--disable-solaris],[Disable optional Solaris audio support]))
875 AS_HELP_STRING([--disable-waveout],[Disable optional WaveOut audio support]))
891 AS_HELP_STRING([--disable-glib2],[Disable optional GLib 2 support]))
894 [PKG_CHECK_MODULES(GLIB20, [ glib-2.0 >= 2.4.0 ], HAVE_GLIB20=1, HAVE_GLIB20=0)],
907 AS_HELP_STRING([--disable-gtk3],[Disable optional Gtk+ 3 support]))
910 [PKG_CHECK_MODULES(GTK30, [ gtk+-3.0 ], HAVE_GTK30=1, HAVE_GTK30=0)],
922 AS_HELP_STRING([--disable-gsettings],[Disable optional GSettings support]))
925 AS_HELP_STRING([--disable-gconf],[Disable optional GConf support]))
928 [PKG_CHECK_MODULES(GSETTINGS, [ gio-2.0 >= 2.26.0 ], [HAVE_GSETTINGS=1], [HAVE_GSETTINGS=0])],
935 [PKG_CHECK_MODULES(GCONF, [ gconf-2.0 >= 2.4.0 gobject-2.0 ], HAVE_GCONF=1, HAVE_GCONF=0)],
943 # GSettings. This is done, because if module-gsettings and module-gconf are
964 AS_HELP_STRING([--disable-avahi],[Disable optional Avahi support]))
967 [PKG_CHECK_MODULES(AVAHI, [ avahi-client >= 0.6.0 ], HAVE_AVAHI=1, HAVE_AVAHI=0)],
979 AS_HELP_STRING([--disable-jack],[Disable optional JACK support]))
993 AS_HELP_STRING([--disable-asyncns],[Disable optional Async DNS support]))
1007 AC_ARG_ENABLE([running-from-build-tree],
1008 AS_HELP_STRING([--disable-running-from-build-tree],[Disable running from build tree]))
1018 AS_HELP_STRING([--disable-tcpwrap],[Disable optional TCP wrappers support]))
1035 AS_HELP_STRING([--disable-lirc],[Disable optional LIRC support]))
1044 AC_CHECK_LIB(lirc_client, lirc_init, [LIRC_LIBS=-llirc_client], [HAVE_LIRC=0])
1055 #### D-Bus support (optional) ####
1057 AC_ARG_ENABLE([dbus], optenable
1058 AS_HELP_STRING([--disable-dbus],[Disable optional D-Bus support]))
1061 [PKG_CHECK_MODULES(DBUS, [ dbus-1 >= 1.4.12 ], HAVE_DBUS=1, HAVE_DBUS=0)],
1065 [AC_MSG_ERROR([*** D-Bus not available or too old version])])
1069 AS_IF([test "x$HAVE_DBUS" = "x1"], AC_DEFINE([HAVE_DBUS], 1, [Have D-Bus.]))
1071 PA_MACHINE_ID="${sysconfdir}/machine-id"
1072 AX_DEFINE_DIR(PA_MACHINE_ID, PA_MACHINE_ID, [D-Bus machine-id file])
1073 PA_MACHINE_ID_FALLBACK="${localstatedir}/lib/dbus/machine-id"
1075 [Fallback machine-id file])
1077 #### BlueZ support (optional, dependent on D-Bus and SBC) ####
1080 AS_HELP_STRING([--disable-bluez5],[Disable optional BlueZ 5 support]))
1091 [AC_MSG_ERROR([*** BLUEZ 5 support not found (requires sbc and D-Bus)])])
1101 AC_ARG_ENABLE([bluez5-ofono-headset],
1102 …AS_HELP_STRING([--disable-bluez5-ofono-headset],[Disable optional ofono headset backend support (B…
1109 AC_ARG_ENABLE([bluez5-native-headset],
1110 …AS_HELP_STRING([--disable-bluez5-native-headset],[Disable optional native headset backend support …
1123 AS_HELP_STRING([--disable-udev],[Disable optional UDEV support]))
1125 AS_IF([test "x$enable_udev" != "xno" -a \( "x$HAVE_OSS" = "x1" -o "x$HAVE_ALSA" = "x1" \)],
1138 AC_ARG_ENABLE([hal-compat],
1139 …AS_HELP_STRING([--disable-hal-compat],[Disable optional HAL->udev transition compatibility support…
1151 AS_HELP_STRING([--disable-ipv6],[Disable optional IPv6 support]))
1160 AS_HELP_STRING([--disable-openssl],[Disable OpenSSL support (used for Airtunes/RAOP)]))
1175 AS_HELP_STRING([--without-fftw],[Omit FFTW-using modules (equalizer)]))
1189 AS_HELP_STRING([--without-speex],[Omit speex (resampling, AEC)]))
1204 AS_HELP_STRING([--without-soxr],[Omit soxr (resampling)]))
1220 AS_HELP_STRING([--enable-gcov],[Enable optional gcov coverage analysis]))
1223 GCOV_LIBS=" -lgcov"
1228 GCOV_CFLAGS="$GCOV_CFLAGS -fprofile-arcs -ftest-coverage"
1229 GCOV_LIBS="$GCOV_LIBS -fprofile-arcs"
1243 AC_ARG_ENABLE([systemd-daemon],
1244 …AS_HELP_STRING([--disable-systemd-daemon],[Disable optional systemd daemon (socket activation) sup…
1246 AC_ARG_ENABLE([systemd-login],
1247 AS_HELP_STRING([--disable-systemd-login],[Disable optional systemd login support]))
1249 AC_ARG_ENABLE([systemd-journal],
1250 AS_HELP_STRING([--disable-systemd-journal],[Disable optional systemd journal support]))
1267 AS_HELP_STRING([--with-systemduserunitdir=DIR], [Directory for systemd user service files]),
1268 [], [with_systemduserunitdir=$($PKG_CONFIG --variable=systemduserunitdir systemd)])
1276 …[AS_IF([test "x$HAVE_SYSTEMD_DAEMON" != "x1"], [PKG_CHECK_MODULES(SYSTEMDDAEMON, [ libsystemd-daem…
1289 …[AS_IF([test "x$HAVE_SYSTEMD_LOGIN" != "x1"], [PKG_CHECK_MODULES(SYSTEMDLOGIN, [ libsystemd-login …
1302 …E_SYSTEMD_JOURNAL" != "x1"], [PKG_CHECK_MODULES(SYSTEMDJOURNAL, [ libsystemd-journal ], HAVE_SYSTE…
1312 #### GStreamer-based RTP support (optional) ####
1315 AS_HELP_STRING([--enable-gstreamer],[Enable optional GStreamer-based RTP support]))
1318 …[PKG_CHECK_MODULES(GSTREAMER, [ gstreamer-1.0 >= 1.14 gstreamer-app-1.0 gstreamer-rtp-1.0 gio-2.0 …
1331 AS_HELP_STRING([--disable-manpages],[Disable building and installation of man pages]))
1337 …RG_WITH(system_user, AS_HELP_STRING([--with-system-user=<user>],[User for running the PulseAudio d…
1338 if test -z "$with_system_user" ; then
1346 …_WITH(system_group,AS_HELP_STRING([--with-system-group=<group>],[Group for running the PulseAudio …
1347 if test -z "$with_system_group" ; then
1355 …ss_group,AS_HELP_STRING([--with-access-group=<group>],[Group which is allowed access to a system-w…
1356 if test -z "$with_access_group" ; then
1357 PA_ACCESS_GROUP=pulse-access
1364 AC_ARG_ENABLE([per-user-esound-socket],
1365 …AS_HELP_STRING([--disable-per-user-esound-socket],[Use global esound socket directory /tmp/.esd/so…
1369 …AC_DEFINE([USE_PER_USER_ESOUND_SOCKET], [1], [Define this if you want per-user esound socket direc…
1397 AC_ARG_ENABLE(mac-universal,
1398 AS_HELP_STRING([--enable-mac-universal], [Build Mac universal binaries]),
1401 AC_ARG_WITH(mac-version-min,
1402 …AS_HELP_STRING([--with-mac-version-min=<version>], [Defines the earliest version of MacOS X that t…
1405 AC_ARG_WITH(mac-sysroot,
1406 …AS_HELP_STRING([--with-mac-sysroot=<path>], [SDK basedir to use as the logical root directory for …
1410 LDFLAGS="$LDFLAGS -mmacosx-version-min=$mac_version_min"
1411 CFLAGS="$CFLAGS -mmacosx-version-min=$mac_version_min"
1414 LDFLAGS="$LDFLAGS -isysroot $mac_sysroot"
1415 CFLAGS="$CFLAGS -isysroot $mac_sysroot"
1419 mac_arches="-arch i386 -arch x86_64"
1425 AC_ARG_ENABLE([webrtc-aec],
1426 AS_HELP_STRING([--enable-webrtc-aec], [Enable the optional WebRTC-based echo canceller]))
1429 [AC_MSG_ERROR([*** webrtc-audio-processing needs C++11 support])])
1432 … [PKG_CHECK_MODULES(WEBRTC, [ webrtc-audio-processing >= 0.2 ], [HAVE_WEBRTC=1], [HAVE_WEBRTC=0])],
1436 [AC_MSG_ERROR([*** webrtc-audio-processing library not found])])
1440 AC_ARG_ENABLE([adrian-aec],
1441 AS_HELP_STRING([--enable-adrian-aec], [Enable Adrian's optional echo canceller]))
1451 …AC_DEFINE([SUPPORT_TLS___THREAD], 1, [Define this if the compiler supports __thread for Thread-Loc…
1468 # Check whether to build tests by default (as compile-test) or not
1469 AC_ARG_ENABLE([default-build-tests],
1470 AS_HELP_STRING([--disable-default-build-tests], [Build test programs only during make check]))
1473 AC_ARG_ENABLE([legacy-database-entry-format],
1474 …AS_HELP_STRING([--disable-legacy-database-entry-format], [Try to load legacy (< 1.0) database file…
1479 AC_ARG_ENABLE([stream-restore-clear-old-devices],
1480--enable-stream-restore-clear-old-devices], [Forget per-stream routing settings that have been set…
1482 AC_DEFINE(STREAM_RESTORE_CLEAR_OLD_DEVICES, [1], [module-stream-restore: Clear old devices])
1485 AC_ARG_ENABLE([static-bins],
1486 AS_HELP_STRING([--enable-static-bins],[Statically link executables.]))
1490 [preopen-mods],
1491 AS_HELP_STRING([--with-preopen-mods],[Modules to preopen in daemon (default: all).]),
1497 tmpLIBS="$tmpLIBS module-$mod.la"
1504 [module-dir],
1505 …AS_HELP_STRING([--with-module-dir],[Directory where to install the modules to (defaults to ${libdi…
1506 [modlibexecdir=$withval], [modlibexecdir="${libdir}/pulse-${PA_MAJORMINOR}/modules"])
1512 [alsa-data-dir],
1513 …AS_HELP_STRING([--with-alsa-data-dir],[Directory for ALSA card profiles (defaults to ${datadir}/pu…
1514 [alsadatadir=$withval], [alsadatadir="${datadir}/pulseaudio/alsa-mixer"])
1519 [udev-rules-dir],
1520 …AS_HELP_STRING([--with-udev-rules-dir],[Directory where to install udev rules to (defaults to /lib…
1525 AC_ARG_WITH([bash-completion-dir],
1526 AS_HELP_STRING([--with-bash-completion-dir=DIR], [Directory for bash completion files]),
1527 …ashcompletiondir=$withval], [bashcompletiondir=$($PKG_CONFIG --variable=completionsdir bash-comple…
1529 bashcompletiondir="${datadir}/bash-completion/completions"
1535 [zsh-completion-dir],
1536 …AS_HELP_STRING([--with-zsh-completion-dir], [Zsh completions directory (defaults to ${datadir}/zsh…
1537 [zshcompletiondir=$withval], [zshcompletiondir="${datadir}/zsh/site-functions"])
1541 AC_ARG_ENABLE([force-preopen],
1542 AS_HELP_STRING([--enable-force-preopen],[Preopen modules, even when dlopen() is supported.]))
1564 libpulse-simple.pc
1565 libpulse-mainloop-glib.pc
1577 man/pulse-daemon.conf.5.xml
1578 man/pulse-client.conf.5.xml
1580 man/pulse-cli-syntax.5.xml
1581 man/start-pulseaudio-x11.1.xml
1590 AC_CONFIG_FILES([src/start-pulseaudio-x11:src/daemon/start-pulseaudio-x11.in], [chmod +x src/start-
1657 AS_IF([test "x$HAVE_ESOUND" = "x1" -a "x$USE_PER_USER_ESOUND_SOCKET" = "x1"], ENABLE_PER_USER_ESOUN…
1664 ---{ $PACKAGE_NAME $VERSION }---
1682 Enable X11: ${ENABLE_X11}
1698 Enable D-Bus: ${ENABLE_DBUS}
1703 Enable HAL->udev compat: ${ENABLE_HAL_COMPAT}
1718 Enable GStreamer-based RTP: ${ENABLE_GSTREAMER}
1729 Enable per-user EsounD socket: ${ENABLE_PER_USER_ESOUND_SOCKET}
1734 module-stream-restore:
1745 You do not have D-Bus support enabled. It is strongly recommended
1746 that you enable D-Bus support if your platform supports it.
1747 Many parts of PulseAudio use D-Bus, from ConsoleKit interaction