don't unref pa_native_options object twice
[pulseaudio-mirror.git] / configure.ac
blob656063535a1ac791d388662d71f61fba05e37a64
1 # -*- Autoconf -*-
2 # Process this file with autoconf to produce a configure script.
4 # This file is part of PulseAudio.
6 # Copyright 2004-2008 Lennart Poettering
7 # Copyright 2006-2007 Pierre Ossman <ossman@cendio.se> for Cendio AB
9 # PulseAudio is free software; you can redistribute it and/or modify it
10 # under the terms of the GNU Lesser General Public License as published by
11 # the Free Software Foundation; either version 2 of the License, or
12 # (at your option) any later version.
14 # PulseAudio is distributed in the hope that it will be useful, but
15 # WITHOUT ANY WARRANTY; without even the implied warranty of
16 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17 # General Public License for more details.
19 # You should have received a copy of the GNU Lesser General Public License
20 # along with PulseAudio; if not, write to the Free Software Foundation,
21 # Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
23 AC_PREREQ(2.60)
25 m4_define(PA_MAJOR, [0])
26 m4_define(PA_MINOR, [9])
27 m4_define(PA_MICRO, [12])
29 AC_INIT([pulseaudio], PA_MAJOR.PA_MINOR.PA_MICRO,[mzchyfrnhqvb (at) 0pointer (dot) net])
30 AC_CONFIG_SRCDIR([src/daemon/main.c])
31 AC_CONFIG_HEADERS([config.h])
32 AM_INIT_AUTOMAKE([foreign 1.10 -Wall])
34 AC_SUBST(PA_MAJORMINOR, "PA_MAJOR.PA_MINOR")
35 AC_SUBST(PACKAGE_URL, [http://pulseaudio.org/])
37 AC_SUBST(PA_API_VERSION, 12)
38 AC_SUBST(PA_PROTOCOL_VERSION, 14)
40 # The stable ABI for client applications, for the version info x:y:z
41 # always will hold y=z
42 AC_SUBST(LIBPULSE_VERSION_INFO, [5:0:5])
44 # A simplified, synchronous, ABI-stable interface for client
45 # applications, for the version info x:y:z always will hold y=z
46 AC_SUBST(LIBPULSE_SIMPLE_VERSION_INFO, [0:1:0])
48 # The ABI-stable network browsing interface for client applications,
49 # for the version info x:y:z always will hold y=z
50 AC_SUBST(LIBPULSE_BROWSE_VERSION_INFO, [1:1:1])
52 # The ABI-stable GLib adapter for client applications, for the version
53 # info x:y:z always will hold y=z
54 AC_SUBST(LIBPULSE_MAINLOOP_GLIB_VERSION_INFO, [0:3:0])
56 # An internally used, ABI-unstable library that contains the
57 # PulseAudio core, SONAMEs are bumped on every release, version info
58 # suffix will always be 0:0
59 AC_SUBST(LIBPULSECORE_VERSION_INFO, [6:0:0])
61 AC_CANONICAL_HOST
62 AC_DEFINE_UNQUOTED([CANONICAL_HOST], "$host", [Canonical host string.])
64 if type -p stow > /dev/null && test -d /usr/local/stow ; then
65    AC_MSG_NOTICE([*** Found /usr/local/stow: default install prefix set to /usr/local/stow/${PACKAGE_NAME}-${PACKAGE_VERSION} ***])
66    ac_default_prefix="/usr/local/stow/${PACKAGE_NAME}-${PACKAGE_VERSION}"
69 #### Platform hacks ####
71 case $host in
72    *-*-solaris* )
73       AC_DEFINE(_XOPEN_SOURCE_EXTENDED, 1, Needed to get declarations for msg_control and msg_controllen on Solaris)
74       AC_DEFINE(_XOPEN_SOURCE,          2, Needed to get declarations for msg_control and msg_controllen on Solaris)
75       AC_DEFINE(__EXTENSIONS__,         1, Needed to get declarations for msg_control and msg_controllen on Solaris)
76       ;;
77 esac
79 #### Checks for programs. ####
81 # mkdir -p
83 AC_PROG_MKDIR_P
85 # CC
87 AC_PROG_CC
88 AM_PROG_CC_C_O
89 AC_PROG_GCC_TRADITIONAL
90 AC_GNU_SOURCE
92 # M4
94 AC_PATH_PROG([M4], [m4 gm4], [no])
95 if test "x$M4" = xno ; then
96    AC_MSG_ERROR([m4 missing])
99 # GCC flags
101 test_gcc_flag() {
102     AC_LANG_CONFTEST([int main(int argc, char*argv[]) {}])
103     $CC -c conftest.c $CFLAGS -o conftest.o > /dev/null 2> /dev/null
104     ret=$?
105     rm -f conftest.o
106     return $ret
109 # If using GCC specify some additional parameters
110 if test "x$GCC" = "xyes" ; then
112     # We use gnu99 instead of c99 because many have interpreted the standard
113     # in a way that int64_t isn't defined on non-64 bit platforms.
114     DESIRED_FLAGS="-std=gnu99 -Wall -W -Wextra -pedantic -pipe -Wformat -Wold-style-definition -Wdeclaration-after-statement -Wfloat-equal -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wredundant-decls -Wmissing-noreturn -Wshadow -Wendif-labels -Wpointer-arith -Wcast-align -Wwrite-strings -Winline -Wno-unused-parameter -ffast-math"
116     for flag in $DESIRED_FLAGS ; do
117         AC_MSG_CHECKING([whether $CC accepts $flag])
118         if test_gcc_flag $flag ; then
119            CFLAGS="$CFLAGS $flag"
120            AC_MSG_RESULT([yes])
121         else
122            AC_MSG_RESULT([no])
123         fi
124     done
127 # Native atomic operation support
128 AC_ARG_ENABLE([atomic-arm-linux-helpers],
129     AC_HELP_STRING([--disable-atomic-arm-linux-helpers], [use inline asm or libatomic_ops instead]),
130         [
131             case "${enableval}" in
132                 yes) atomic_arm_linux_helpers=yes ;;
133                 no) atomic_arm_linux_helpers=no ;;
134                 *) AC_MSG_ERROR(bad value ${enableval} for --disable-atomic-arm-linux-helpers) ;;
135             esac
136         ],
137         [atomic_arm_linux_helpers=auto])
139 AC_ARG_ENABLE([atomic-arm-memory-barrier],
140     AC_HELP_STRING([--enable-atomic-arm-memory-barrier], [only really needed in SMP arm systems]),
141         [
142             case "${enableval}" in
143                 yes) AC_DEFINE_UNQUOTED(ATOMIC_ARM_MEMORY_BARRIER_ENABLED, 1, [Enable memory barriers]) ;;
144                 no) ;;
145                 *) AC_MSG_ERROR(bad value ${enableval} for --disable-atomic-arm-linux-helpers) ;;
146             esac
147         ],)
149 AC_MSG_CHECKING([target operating system])
150 case $host in
151         *-*-linux*)
152             AC_MSG_RESULT([linux])
153             pulse_target_os=linux
154         ;;
155         *)
156             AC_MSG_RESULT([unknown])
157             pulse_target_os=unknown
158         ;;
159 esac
161 # If everything else fails use libatomic_ops
162 need_libatomic_ops=yes
164 AC_MSG_CHECKING([whether $CC knows __sync_bool_compare_and_swap()])
165 AC_LANG_CONFTEST([int main() { int a = 4; __sync_bool_compare_and_swap(&a, 4, 5); }])
166 $CC conftest.c $CFLAGS -o conftest > /dev/null 2> /dev/null
167 ret=$?
168 rm -f conftest.o conftest
169 if test $ret -eq 0 ; then
170     AC_DEFINE([HAVE_ATOMIC_BUILTINS], 1, [Have __sync_bool_compare_and_swap() and friends.])
171     AC_MSG_RESULT([yes])
172     need_libatomic_ops=no
173 else
174     AC_MSG_RESULT([no])
175     # HW specific atomic ops stuff
176     AC_MSG_CHECKING([architecture for native atomic operations])
177     case $host_cpu in
178         arm*)
179             AC_MSG_RESULT([arm])
180             AC_MSG_CHECKING([whether we can use Linux kernel helpers])
181             # The Linux kernel helper functions have been there since 2.6.16. However
182             # compile time checking for kernel version in cross compile environment
183             # (which is usually the case for arm cpu) is tricky (or impossible).
184             if test "x$pulse_target_os" = "xlinux" && test "x$atomic_arm_linux_helpers" != "xno"; then
185                 AC_MSG_RESULT([yes])
186                 AC_DEFINE_UNQUOTED(ATOMIC_ARM_LINUX_HELPERS, 1, [special arm linux implementation])
187                 need_libatomic_ops=no
188             else
189                AC_MSG_RESULT([no])
190                AC_MSG_CHECKING([compiler support for arm inline asm atomic operations])
191                AC_LANG_CONFTEST([[int main()
192                {
193                    volatile int a=0;
194                    int o=0, n=1, r;
195                    asm volatile ("ldrex %0, [%1]\n"
196                                  "subs  %0, %0, %2\n"
197                                  "strexeq %0, %3, [%1]\n"
198                                  : "=&r" (r)
199                                  : "r" (&a), "Ir" (o), "r" (n)
200                                  : "cc");
201                    return (a==1 ? 0 : -1);
202                }]])
203                $CC conftest.c $CFLAGS -o conftest > /dev/null 2>&1
204                ret=$?
205                rm -f conftest.o conftest
206                if test $ret -eq 0 ; then
207                    AC_DEFINE([ATOMIC_ARM_INLINE_ASM], 1, [Have ARMv6 instructions.])
208                    AC_MSG_RESULT([yes])
209                    need_libatomic_ops=no
210                else
211                    AC_MSG_RESULT([no])
212                fi
213            fi
214         ;;
215         *)
216             AC_MSG_RESULT([unknown])
217         ;;
218     esac
221 AC_MSG_CHECKING([whether $CC knows __thread])
222 AC_LANG_CONFTEST([static __thread int a = 6; int main() { a = 5; }])
223 $CC conftest.c $CFLAGS -o conftest > /dev/null 2> /dev/null
224 ret=$?
225 rm -f conftest.o conftest
226 if test $ret -eq 0 ; then
227     AC_DEFINE([HAVE_TLS_BUILTIN], 1, [Have __thread().])
228     AC_MSG_RESULT([yes])
229 else
230     AC_MSG_RESULT([no])
233 AC_MSG_CHECKING([whether $CC knows _Bool])
234 AC_LANG_CONFTEST([int main() { _Bool b; }])
235 $CC conftest.c $CFLAGS -o conftest > /dev/null 2> /dev/null
236 ret=$?
237 rm -f conftest.o conftest
238 if test $ret -eq 0 ; then
239     AC_DEFINE([HAVE_STD_BOOL], 1, [Have _Bool.])
240     AC_MSG_RESULT([yes])
241 else
242     AC_MSG_RESULT([no])
245 #### libtool stuff ####
247 AC_LTDL_ENABLE_INSTALL
248 AC_LIBLTDL_INSTALLABLE
249 AC_LIBTOOL_DLOPEN
250 AC_LIBTOOL_WIN32_DLL
251 AC_PROG_LIBTOOL
252 AC_SUBST(LTDLINCL)
253 AC_SUBST(LIBLTDL)
254 AC_CONFIG_SUBDIRS(libltdl)
256 old_LIBS=$LIBS
257 LIBS="$LIBS $LIBLTDL"
258 AC_CHECK_FUNCS([lt_dlmutex_register])
259 LIBS=$old_LIBS
260 AC_CHECK_TYPES([struct lt_user_dlloader, lt_dladvise], , , [#include <ltdl.h>])
262 if test "x$enable_ltdl_install" = "xno" && test "x$ac_cv_lib_ltdl_lt_dlinit" = "xno" ; then
263     AC_MSG_ERROR([[
265         *** Cannot find the libltdl development files.
266         *** Maybe you need to install the libltdl-dev package.
267         ]])
270 #### Determine build environment ####
272 os_is_win32=0
274 case "$host_os" in
275         mingw*)
276         AC_DEFINE([OS_IS_WIN32], 1, [Build target is Windows.])
277         os_is_win32=1
278                 ;;
279         esac
281 AM_CONDITIONAL(OS_IS_WIN32, test "x$os_is_win32" = "x1")
283 ###################################
284 #   Basic environment checks      #
285 ###################################
287 #### Checks for header files. ####
289 # ISO
290 AC_HEADER_STDC
292 # POSIX
293 AC_CHECK_HEADERS([arpa/inet.h glob.h grp.h netdb.h netinet/in.h \
294     netinet/in_systm.h netinet/tcp.h poll.h pwd.h sched.h \
295     sys/mman.h sys/resource.h sys/select.h sys/socket.h sys/wait.h \
296     syslog.h sys/dl.h dlfcn.h linux/sockios.h])
297 AC_CHECK_HEADERS([netinet/ip.h], [], [],
298                  [#include <sys/types.h>
299                   #if HAVE_NETINET_IN_H
300                   # include <netinet/in.h>
301                   #endif
302                   #if HAVE_NETINET_IN_SYSTM_H
303                   # include <netinet/in_systm.h>
304                   #endif
305                  ])
306 AC_CHECK_HEADERS([regex.h], [HAVE_REGEX=1], [HAVE_REGEX=0])
307 AC_CHECK_HEADERS([sys/un.h], [HAVE_AF_UNIX=1], [HAVE_AF_UNIX=0])
309 AM_CONDITIONAL(HAVE_REGEX, test "x$HAVE_REGEX" = "x1")
310 AM_CONDITIONAL(HAVE_AF_UNIX, test "x$HAVE_AF_UNIX" = "x1")
312 # Linux
313 AC_CHECK_HEADERS([linux/input.h], [HAVE_EVDEV=1], [HAVE_EVDEV=0])
315 AM_CONDITIONAL([HAVE_EVDEV], [test "x$HAVE_EVDEV" = "x1"])
317 AC_CHECK_HEADERS([sys/prctl.h])
319 # Solaris
320 AC_CHECK_HEADERS([sys/filio.h])
322 # Windows
323 AC_CHECK_HEADERS([windows.h winsock2.h ws2tcpip.h])
325 # Other
326 AC_CHECK_HEADERS([sys/ioctl.h])
327 AC_CHECK_HEADERS([byteswap.h])
328 AC_CHECK_HEADERS([sys/syscall.h])
330 #### Typdefs, structures, etc. ####
332 AC_C_CONST
333 AC_C_BIGENDIAN
334 AC_TYPE_PID_T
335 AC_TYPE_SIZE_T
336 AC_CHECK_TYPES(ssize_t, , [AC_DEFINE([ssize_t], [signed long],
337     [Define ssize_t if it is not done by the standard libs.])])
338 AC_TYPE_OFF_T
339 AC_TYPE_SIGNAL
340 AC_TYPE_UID_T
341 AC_CHECK_DECLS(environ)
343 AC_CHECK_DEFINE([SIGXCPU], [signal.h], [
344 HAVE_SIGXCPU=1
345 AC_DEFINE([HAVE_SIGXCPU], 1, [Have SIGXCPU?])
346 ], [HAVE_SIGXCPU=0])
347 AM_CONDITIONAL(HAVE_SIGXCPU, test "x$HAVE_SIGXCPU" = "x1")
349 # Solaris lacks this
350 AC_CHECK_DEFINE([INADDR_NONE], [netinet/in.h], [],
351     [AC_CHECK_DEFINE([INADDR_NONE], [winsock2.h], [],
352         [AC_DEFINE([INADDR_NONE],  [0xffffffff], [Define INADDR_NONE if not found in <netinet/in.h>])])])
354 #### POSIX threads ####
356 ACX_PTHREAD
358 #### Check for libs ####
360 # ISO
361 AC_SEARCH_LIBS([pow], [m])
363 # POSIX
364 AC_SEARCH_LIBS([sched_setscheduler], [rt])
365 AC_SEARCH_LIBS([dlopen], [dl])
366 AC_SEARCH_LIBS([shm_open], [rt])
367 AC_SEARCH_LIBS([inet_ntop], [nsl])
368 AC_SEARCH_LIBS([timer_create], [rt])
370 # BSD
371 AC_SEARCH_LIBS([connect], [socket])
373 # Non-standard
375 # This magic is needed so we do not needlessly add static libs to the win32
376 # build, disabling its ability to make dlls.
377 AC_CHECK_FUNCS([getopt_long], [], [AC_CHECK_LIB([iberty], [getopt_long])])
379 AC_CHECK_LIB(gdbm, gdbm_open)
380 AC_CHECK_HEADERS(gdbm.h, [], [AC_MSG_ERROR([gdbm.h not found])])
382 #### Check for functions ####
384 # ISO
385 AC_CHECK_FUNCS([lrintf strtof])
387 # POSIX
388 AC_FUNC_FORK
389 AC_FUNC_GETGROUPS
390 AC_FUNC_SELECT_ARGTYPES
391 AC_CHECK_FUNCS([chmod chown clock_gettime getaddrinfo getgrgid_r \
392     getpwuid_r gettimeofday getuid inet_ntop inet_pton mlock nanosleep \
393     pipe posix_fadvise posix_madvise posix_memalign setpgid setsid shm_open \
394     sigaction sleep sysconf])
395 AC_CHECK_FUNCS([mkfifo], [HAVE_MKFIFO=1], [HAVE_MKFIFO=0])
397 AM_CONDITIONAL(HAVE_MKFIFO, test "x$HAVE_MKFIFO" = "x1")
399 # X/OPEN
400 AC_CHECK_FUNCS([readlink])
402 # SUSv2
403 AC_CHECK_FUNCS([ctime_r usleep])
405 # SUSv3
406 AC_CHECK_FUNCS([strerror_r])
408 # BSD
409 AC_CHECK_FUNCS([lstat])
411 # Non-standard
413 AC_CHECK_FUNCS([setresuid setresgid setreuid setregid seteuid setegid ppoll strsignal sig2str strtof_l])
415 AC_FUNC_ALLOCA
417 AC_MSG_CHECKING([for PTHREAD_PRIO_INHERIT])
418 AC_LANG_CONFTEST([AC_LANG_SOURCE([[
419 #include <pthread.h>
420 int main() { int i = PTHREAD_PRIO_INHERIT; }]])])
421 $PTHREAD_CC conftest.c $PTHREAD_CFLAGS $CFLAGS $PTHREAD_LIBS -o conftest > /dev/null 2> /dev/null
422 ret=$?
423 rm -f conftest.o conftest
425 if test $ret -eq 0 ; then
426     AC_DEFINE([HAVE_PTHREAD_PRIO_INHERIT], 1, [Have PTHREAD_PRIO_INHERIT.])
427     AC_MSG_RESULT([yes])
428 else
429     AC_MSG_RESULT([no])
432 #### Large File-Support (LFS) ####
434 AC_SYS_LARGEFILE
436 # Check for open64 to know if the current system does have open64() and similar functions
437 AC_CHECK_FUNCS([open64])
439 #### [lib]iconv ####
441 AM_ICONV
443 AM_GNU_GETTEXT([external])
445 IT_PROG_INTLTOOL([0.35.0])
446 GETTEXT_PACKAGE=pulseaudio
447 AC_SUBST([GETTEXT_PACKAGE])
448 AC_DEFINE_UNQUOTED([GETTEXT_PACKAGE],["$GETTEXT_PACKAGE"],[Gettext package])
449 AM_GLIB_GNU_GETTEXT
451 pulselocaledir='${prefix}/${DATADIRNAME}/locale'
452 AC_SUBST(pulselocaledir)
454 ###################################
455 #      External libraries         #
456 ###################################
458 #### X11 (optional) ####
460 HAVE_X11=0
462 # The macro tests the host, not the build target
463 if test "x$os_is_win32" != "x1" ; then
464     AC_PATH_XTRA
465     test "x$no_x" != "xyes" && HAVE_X11=1
468 AC_SUBST(HAVE_X11)
469 AM_CONDITIONAL(HAVE_X11, test "x$HAVE_X11" = "x1")
470 if test "x$HAVE_X11" = "x1" ; then
471     AC_DEFINE([HAVE_X11], 1, [Have X11])
474 #### Capabilities (optional) ####
476 CAP_LIBS=''
478 AC_ARG_WITH(
479         [caps],
480         AC_HELP_STRING([--without-caps],[Omit support for POSIX capabilities.]))
482 if test "x${with_caps}" != "xno"; then
483     AC_SEARCH_LIBS([cap_init], [cap], [], [
484                     if test "x${with_caps}" = "xyes" ; then
485                         AC_MSG_ERROR([*** POSIX caps libraries not found])
486                     fi])
487     AC_CHECK_HEADERS([sys/capability.h], [], [
488                     if test "x${with_caps}" = "xyes" ; then
489                         AC_MSG_ERROR([*** POSIX caps headers not found])
490                     fi])
493 #### Valgrind (optional) ####
495 AC_CHECK_HEADERS([valgrind/memcheck.h])
497 #### pkg-config ####
499 # Check for pkg-config manually first, as if its not installed the
500 # PKG_PROG_PKG_CONFIG macro won't be defined.
501 AC_CHECK_PROG(have_pkg_config, pkg-config, yes, no)
503 if test x"$have_pkg_config" = "xno"; then
504     AC_MSG_ERROR(pkg-config is required to install this program)
507 PKG_PROG_PKG_CONFIG
509 #### Sound file ####
511 PKG_CHECK_MODULES(LIBSNDFILE, [ sndfile >= 1.0.10 ])
512 AC_SUBST(LIBSNDFILE_CFLAGS)
513 AC_SUBST(LIBSNDFILE_LIBS)
515 PKG_CHECK_MODULES(LIBSPEEX, [ speexdsp >= 1.2 ])
516 AC_SUBST(LIBSPEEX_CFLAGS)
517 AC_SUBST(LIBSPEEX_LIBS)
519 #### atomic-ops ###
521 AC_MSG_CHECKING([whether we need libatomic_ops])
522 if test "x$need_libatomic_ops" = "xyes"; then
523    AC_MSG_RESULT([yes])
524    AC_CHECK_HEADERS([atomic_ops.h], [], [
525    AC_MSG_ERROR([*** libatomic-ops headers not found])
526    ])
528    # Win32 does not need the lib and breaks horribly if we try to include it
529    if test "x$os_is_win32" != "x1" ; then
530        LIBS="$LIBS -latomic_ops"
531    fi
532 else
533    AC_MSG_RESULT([no])
536 #### Libsamplerate support (optional) ####
538 AC_ARG_ENABLE([samplerate],
539     AC_HELP_STRING([--disable-samplerate], [Disable optional libsamplerate support]),
540         [
541             case "${enableval}" in
542                 yes) samplerate=yes ;;
543                 no) samplerate=no ;;
544                 *) AC_MSG_ERROR(bad value ${enableval} for --disable-samplerate) ;;
545             esac
546         ],
547         [samplerate=auto])
549 if test "x${samplerate}" != xno ; then
550     PKG_CHECK_MODULES(LIBSAMPLERATE, [ samplerate >= 0.1.0 ],
551         HAVE_LIBSAMPLERATE=1,
552         [
553             HAVE_LIBSAMPLERATE=0
554             if test "x$samplerate" = xyes ; then
555                 AC_MSG_ERROR([*** Libsamplerate not found])
556             fi
557         ])
558 else
559     HAVE_LIBSAMPLERATE=0
562 if test "x${HAVE_LIBSAMPLERATE}" = x1 ; then
563    AC_DEFINE([HAVE_LIBSAMPLERATE], 1, [Have libsamplerate?])
566 AC_SUBST(LIBSAMPLERATE_CFLAGS)
567 AC_SUBST(LIBSAMPLERATE_LIBS)
568 AC_SUBST(HAVE_LIBSAMPLERATE)
569 AM_CONDITIONAL([HAVE_LIBSAMPLERATE], [test "x$HAVE_LIBSAMPLERATE" = x1])
571 #### OSS support (optional) ####
573 AC_ARG_ENABLE([oss],
574     AC_HELP_STRING([--disable-oss], [Disable optional OSS support]),
575         [
576             case "${enableval}" in
577                 yes) oss=yes ;;
578                 no) oss=no ;;
579                 *) AC_MSG_ERROR(bad value ${enableval} for --disable-oss) ;;
580             esac
581         ],
582         [oss=auto])
584 if test "x${oss}" != xno ; then
585     AC_CHECK_HEADERS([sys/soundcard.h],
586         [
587             HAVE_OSS=1
588             AC_DEFINE([HAVE_OSS], 1, [Have OSS?])
589         ],
590         [
591             HAVE_OSS=0
592             if test "x$oss" = xyes ; then
593                 AC_MSG_ERROR([*** OSS support not found])
594             fi
595         ])
596 else
597     HAVE_OSS=0
600 AC_SUBST(HAVE_OSS)
601 AM_CONDITIONAL([HAVE_OSS], [test "x$HAVE_OSS" = x1])
604 #### ALSA support (optional) ####
606 AC_ARG_ENABLE([alsa],
607     AC_HELP_STRING([--disable-alsa], [Disable optional ALSA support]),
608         [
609             case "${enableval}" in
610                 yes) alsa=yes ;;
611                 no) alsa=no ;;
612                 *) AC_MSG_ERROR(bad value ${enableval} for --disable-alsa) ;;
613             esac
614         ],
615         [alsa=auto])
617 if test "x${alsa}" != xno ; then
618     PKG_CHECK_MODULES(ASOUNDLIB, [ alsa >= 1.0.17 ],
619         [
620             HAVE_ALSA=1
621             AC_DEFINE([HAVE_ALSA], 1, [Have ALSA?])
622         ],
623         [
624             HAVE_ALSA=0
625             if test "x$alsa" = xyes ; then
626                 AC_MSG_ERROR([*** Needed alsa >= 1.0.17 support not found])
627             fi
628         ])
629 else
630     HAVE_ALSA=0
633 AC_SUBST(ASOUNDLIB_CFLAGS)
634 AC_SUBST(ASOUNDLIB_LIBS)
635 AC_SUBST(HAVE_ALSA)
636 AM_CONDITIONAL([HAVE_ALSA], [test "x$HAVE_ALSA" = x1])
638 #### Solaris audio support (optional) ####
640 AC_ARG_ENABLE([solaris],
641     AC_HELP_STRING([--disable-solaris], [Disable optional Solaris audio support]),
642         [
643             case "${enableval}" in
644                 yes) solaris=yes ;;
645                 no) solaris=no ;;
646                 *) AC_MSG_ERROR(bad value ${enableval} for --disable-solaris) ;;
647             esac
648         ],
649         [solaris=auto])
651 if test "x${solaris}" != xno ; then
652     AC_CHECK_HEADERS([sys/audio.h],
653         [
654             HAVE_SOLARIS=1
655             AC_DEFINE([HAVE_SOLARIS], 1, [Have Solaris audio?])
656         ],
657         [
658             HAVE_SOLARIS=0
659             if test "x$solaris" = xyes ; then
660                 AC_MSG_ERROR([*** Solaris audio support not found])
661             fi
662         ])
663 else
664     HAVE_SOLARIS=0
667 AC_SUBST(HAVE_SOLARIS)
668 AM_CONDITIONAL([HAVE_SOLARIS], [test "x$HAVE_SOLARIS" = x1])
670 #### GLib 2 support (optional) ####
672 AC_ARG_ENABLE([glib2],
673     AC_HELP_STRING([--disable-glib2], [Disable optional GLib 2 support]),
674         [
675             case "${enableval}" in
676                 yes) glib2=yes ;;
677                 no) glib2=no ;;
678                 *) AC_MSG_ERROR(bad value ${enableval} for --disable-glib2) ;;
679             esac
680         ],
681         [glib2=auto])
683 if test "x${glib2}" != xno ; then
684     PKG_CHECK_MODULES(GLIB20, [ glib-2.0 >= 2.4.0 ],
685         HAVE_GLIB20=1,
686         [
687             HAVE_GLIB20=0
688             if test "x$glib2" = xyes ; then
689                 AC_MSG_ERROR([*** GLib 2 support not found])
690             fi
691         ])
692 else
693     HAVE_GLIB20=0
696 AC_SUBST(GLIB20_CFLAGS)
697 AC_SUBST(GLIB20_LIBS)
698 AC_SUBST(HAVE_GLIB20)
699 AM_CONDITIONAL([HAVE_GLIB20], [test "x$HAVE_GLIB20" = x1])
701 #### GConf support (optional) ####
703 AC_ARG_ENABLE([gconf],
704     AC_HELP_STRING([--disable-gconf], [Disable optional GConf support]),
705         [
706             case "${enableval}" in
707                 yes) gconf=yes ;;
708                 no) gconf=no ;;
709                 *) AC_MSG_ERROR(bad value ${enableval} for --disable-gconf) ;;
710             esac
711         ],
712         [gconf=auto])
714 if test "x${gconf}" != xno ; then
715     PKG_CHECK_MODULES(GCONF, [ gconf-2.0 >= 2.4.0 ],
716         HAVE_GCONF=1,
717         [
718             HAVE_GCONF=0
719             if test "x$gconf" = xyes ; then
720                 AC_MSG_ERROR([*** GConf support not found])
721             fi
722         ])
723 else
724     HAVE_GCONF=0
727 AC_SUBST(GCONF_CFLAGS)
728 AC_SUBST(GCONF_LIBS)
729 AC_SUBST(HAVE_GCONF)
730 AM_CONDITIONAL([HAVE_GCONF], [test "x$HAVE_GCONF" = x1])
732 #### Avahi support (optional) ####
734 AC_ARG_ENABLE([avahi],
735     AC_HELP_STRING([--disable-avahi], [Disable optional Avahi support]),
736         [
737             case "${enableval}" in
738                 yes) avahi=yes ;;
739                 no) avahi=no ;;
740                 *) AC_MSG_ERROR(bad value ${enableval} for --disable-avahi) ;;
741             esac
742         ],
743         [avahi=auto])
745 if test "x${avahi}" != xno ; then
746     PKG_CHECK_MODULES(AVAHI, [ avahi-client >= 0.6.0 ],
747         HAVE_AVAHI=1,
748         [
749                 HAVE_AVAHI=0
750                 if test "x$avahi" = xyes ; then
751                         AC_MSG_ERROR([*** Avahi support not found])
752                 fi
753         ])
754 else
755     HAVE_AVAHI=0
758 AC_SUBST(AVAHI_CFLAGS)
759 AC_SUBST(AVAHI_LIBS)
760 AC_SUBST(HAVE_AVAHI)
761 AM_CONDITIONAL([HAVE_AVAHI], [test "x$HAVE_AVAHI" = x1])
763 ### LIBOIL ####
765 PKG_CHECK_MODULES(LIBOIL, [ liboil-0.3 >= 0.3.0 ])
766 AC_SUBST(LIBOIL_CFLAGS)
767 AC_SUBST(LIBOIL_LIBS)
769 ### JACK (optional) ####
771 AC_ARG_ENABLE([jack],
772     AC_HELP_STRING([--disable-jack], [Disable optional JACK support]),
773         [
774             case "${enableval}" in
775                 yes) jack=yes ;;
776                 no) jack=no ;;
777                 *) AC_MSG_ERROR(bad value ${enableval} for --disable-jack) ;;
778             esac
779         ],
780         [jack=auto])
782 if test "x${jack}" != xno ; then
783     PKG_CHECK_MODULES(JACK, [ jack >= 0.100 ],
784         HAVE_JACK=1,
785         [
786             HAVE_JACK=0
787             if test "x$jack" = xyes ; then
788                 AC_MSG_ERROR([*** JACK support not found])
789             fi
790         ])
791 else
792     HAVE_JACK=0
795 AC_SUBST(JACK_CFLAGS)
796 AC_SUBST(JACK_LIBS)
797 AC_SUBST(HAVE_JACK)
798 AM_CONDITIONAL([HAVE_JACK], [test "x$HAVE_JACK" = x1])
800 #### Async DNS support (optional) ####
802 AC_ARG_ENABLE([asyncns],
803     AC_HELP_STRING([--disable-asyncns], [Disable optional Async DNS support]),
804         [
805             case "${enableval}" in
806                 yes) asyncns=yes ;;
807                 no) asyncns=no ;;
808                 *) AC_MSG_ERROR(bad value ${enableval} for --disable-asyncns) ;;
809             esac
810         ],
811         [asyncns=auto])
813 if test "x${asyncns}" != xno ; then
814     PKG_CHECK_MODULES(LIBASYNCNS, [ libasyncns >= 0.1 ],
815         HAVE_LIBASYNCNS=1,
816         [
817             HAVE_LIBASYNCNS=0
818             if test "x$asyncns" = xyes ; then
819                 AC_MSG_ERROR([*** Async DNS support not found])
820             fi
821         ])
822 else
823     HAVE_LIBASYNCNS=0
826 AC_SUBST(LIBASYNCNS_CFLAGS)
827 AC_SUBST(LIBASYNCNS_LIBS)
828 AC_SUBST(HAVE_LIBASYNCNS)
829 AM_CONDITIONAL([HAVE_LIBASYNCNS], [test "x$HAVE_LIBASYNCNS" = x1])
831 if test "x$HAVE_LIBASYNCNS" != "x0" ; then
832    AC_DEFINE([HAVE_LIBASYNCNS], 1, [Have libasyncns?])
835 #### TCP wrappers (optional) ####
837 AC_ARG_ENABLE([tcpwrap],
838     AC_HELP_STRING([--disable-tcpwrap], [Disable optional TCP wrappers support]),
839         [
840             case "${enableval}" in
841                 yes) tcpwrap=yes ;;
842                 no) tcpwrap=no ;;
843                 *) AC_MSG_ERROR(bad value ${enableval} for --disable-tcpwrap) ;;
844             esac
845         ],
846         [tcpwrap=auto])
848 if test "x${tcpwrap}" != xno ; then
849     ACX_LIBWRAP
850     if test "x${LIBWRAP_LIBS}" = x && test "x$tcpwrap" = xyes ; then
851         AC_MSG_ERROR([*** TCP wrappers support not found])
852     fi
853 else
854     LIBWRAP_LIBS=
857 AC_SUBST(LIBWRAP_LIBS)
859 #### LIRC support (optional) ####
861 AC_ARG_ENABLE([lirc],
862     AC_HELP_STRING([--disable-lirc], [Disable optional LIRC support]),
863         [
864             case "${enableval}" in
865                 yes) lirc=yes ;;
866                 no) lirc=no ;;
867                 *) AC_MSG_ERROR(bad value ${enableval} for --disable-lirc) ;;
868             esac
869         ],
870         [lirc=auto])
872 if test "x${lirc}" != xno ; then
873     ACX_LIRC
874     if test "x${HAVE_LIRC}" = x0 && test "x$lirc" = xyes ; then
875         AC_MSG_ERROR([*** LIRC support not found])
876     fi
877 else
878     HAVE_LIRC=0
881 AC_SUBST(LIRC_CFLAGS)
882 AC_SUBST(LIRC_LIBS)
883 AM_CONDITIONAL([HAVE_LIRC], [test "x$HAVE_LIRC" = x1])
885 #### HAL support (optional) ####
887 AC_ARG_ENABLE([hal],
888     AC_HELP_STRING([--disable-hal], [Disable optional HAL support]),
889         [
890             case "${enableval}" in
891                 yes) hal=yes ;;
892                 no) hal=no ;;
893                 *) AC_MSG_ERROR(bad value ${enableval} for --disable-hal) ;;
894             esac
895         ],
896         [hal=auto])
897 if test "x${hal}" != xno -a \( "x$HAVE_OSS" = "x1" -o "x$HAVE_ALSA" = "x1" \) ; then
898     PKG_CHECK_MODULES(HAL, [ hal >= 0.5.7 ],
899         HAVE_HAL=1,
900         [
901             HAVE_HAL=0
902             if test "x$hal" = xyes ; then
903                 AC_MSG_ERROR([*** HAL support not found])
904             fi
905         ])
906 else
907     HAVE_HAL=0
910 AC_SUBST(HAL_CFLAGS)
911 AC_SUBST(HAL_LIBS)
912 AC_SUBST(HAVE_HAL)
913 AM_CONDITIONAL([HAVE_HAL], [test "x$HAVE_HAL" = x1])
915 #### BlueZ support (optional) ####
917 AC_ARG_ENABLE([bluez],
918     AC_HELP_STRING([--disable-bluez], [Disable optional BlueZ support]),
919         [
920             case "${enableval}" in
921                 yes) bluez=yes ;;
922                 no) bluez=no ;;
923                 *) AC_MSG_ERROR(bad value ${enableval} for --disable-bluez) ;;
924             esac
925         ],
926         [bluez=auto])
927 if test "x${bluez}" != xno ; then
928     PKG_CHECK_MODULES(BLUEZ, [ bluez >= 3.0 ],
929         HAVE_BLUEZ=1,
930         [
931             HAVE_BLUEZ=0
932             if test "x$bluez" = xyes ; then
933                 AC_MSG_ERROR([*** BLUEZ support not found])
934             fi
935         ])
936 else
937     HAVE_BLUEZ=0
940 AC_SUBST(BLUEZ_CFLAGS)
941 AC_SUBST(BLUEZ_LIBS)
942 AC_SUBST(HAVE_BLUEZ)
943 AM_CONDITIONAL([HAVE_BLUEZ], [test "x$HAVE_BLUEZ" = x1])
945 #### D-Bus support (optional) ####
947 AC_ARG_ENABLE([dbus],
948     AC_HELP_STRING([--disable-dbus], [Disable optional D-Bus support]),
949         [
950             case "${enableval}" in
951                 yes) dbus=yes ;;
952                 no) dbus=no ;;
953                 *) AC_MSG_ERROR(bad value ${enableval} for --disable-dbus) ;;
954             esac
955         ],
956         [dbus=auto])
958 if test "x$HAVE_HAL" = x1 ; then
959    dbus=yes
962 if test "x${dbus}" != xno || test "x${bluez}" != xno || "x${hal}" != xno ; then
964     PKG_CHECK_MODULES(DBUS, [ dbus-1 >= 1.0.0 ],
965         [
966             HAVE_DBUS=1
967             saved_LIBS="$LIBS"
968             LIBS="$LIBS $DBUS_LIBS"
969             AC_CHECK_FUNCS(dbus_watch_get_unix_fd)
970             LIBS="$saved_LIBS"
971             AC_DEFINE([HAVE_DBUS], 1, [Have D-Bus.])
972         ],
973         [
974             HAVE_DBUS=0
975             if test "x$dbus" = xyes ; then
976                 AC_MSG_ERROR([*** D-Bus support not found])
977             fi
978         ])
979 else
980     HAVE_DBUS=0
983 AC_SUBST(DBUS_CFLAGS)
984 AC_SUBST(DBUS_LIBS)
985 AC_SUBST(HAVE_DBUS)
986 AM_CONDITIONAL([HAVE_DBUS], [test "x$HAVE_DBUS" = x1])
988 #### PolicyKit support (optional) ####
990 AC_ARG_ENABLE([polkit],
991     AC_HELP_STRING([--disable-polkit], [Disable optional PolicyKit support]),
992         [
993             case "${enableval}" in
994                 yes) polkit=yes ;;
995                 no) polkit=no ;;
996                 *) AC_MSG_ERROR(bad value ${enableval} for --disable-polkit) ;;
997             esac
998         ],
999         [polkit=auto])
1001 if test "x${polkit}" != xno ; then
1003     PKG_CHECK_MODULES(POLKIT, [ polkit-dbus >= 0.7 ],
1004         [
1005             HAVE_POLKIT=1
1006             AC_DEFINE([HAVE_POLKIT], 1, [Have PolicyKit])
1007             policydir=`pkg-config polkit-dbus --variable prefix`/share/PolicyKit/policy/
1008             AC_SUBST(policydir)
1009         ],
1010         [
1011             HAVE_POLKIT=0
1012             if test "x$polkit" = xyes ; then
1013                 AC_MSG_ERROR([*** PolicyKit support not found])
1014             fi
1015         ])
1016 else
1017     HAVE_POLKIT=0
1020 AC_SUBST(POLKIT_CFLAGS)
1021 AC_SUBST(POLKIT_LIBS)
1022 AC_SUBST(HAVE_POLKIT)
1023 AM_CONDITIONAL([HAVE_POLKIT], [test "x$HAVE_POLKIT" = x1])
1025 ### Build and Install man pages ###
1026 AC_ARG_ENABLE(manpages,
1027         AS_HELP_STRING([--disable-manpages],[Disable building and installation of man pages]),
1028 [case "${enableval}" in
1029   yes) manpages=yes ;;
1030   no)  manpages=no ;;
1031   *) AC_MSG_ERROR([bad value ${enableval} for --disable-manpages]) ;;
1032 esac],[manpages=yes])
1034 AM_CONDITIONAL([BUILD_MANPAGES], [test "x$manpages" = xyes])
1036 #### PulseAudio system group & user  #####
1038 AC_ARG_WITH(system_user, AS_HELP_STRING([--with-system-user=<user>],[User for running the PulseAudio daemon as a system-wide instance (pulse)]))
1039 if test -z "$with_system_user" ; then
1040     PA_SYSTEM_USER=pulse
1041 else
1042     PA_SYSTEM_USER=$with_system_user
1044 AC_SUBST(PA_SYSTEM_USER)
1045 AC_DEFINE_UNQUOTED(PA_SYSTEM_USER,"$PA_SYSTEM_USER", [User for running the PulseAudio system daemon])
1047 AC_ARG_WITH(system_group,AS_HELP_STRING([--with-system-group=<group>],[Group for running the PulseAudio daemon as a system-wide instance (pulse)]))
1048 if test -z "$with_system_group" ; then
1049     PA_SYSTEM_GROUP=pulse
1050 else
1051     PA_SYSTEM_GROUP=$with_system_group
1053 AC_SUBST(PA_SYSTEM_GROUP)
1054 AC_DEFINE_UNQUOTED(PA_SYSTEM_GROUP,"$PA_SYSTEM_GROUP", [Group for the PulseAudio system daemon])
1056 AC_ARG_WITH(realtime_group,AS_HELP_STRING([--with-realtime-group=<group>],[Group for users that are allowed to start the PulseAudio daemon with realtime scheduling (realtime)]))
1057 if test -z "$with_realtime_group" ; then
1058     PA_REALTIME_GROUP=pulse-rt
1059 else
1060     PA_REALTIME_GROUP=$with_realtime_group
1062 AC_SUBST(PA_REALTIME_GROUP)
1063 AC_DEFINE_UNQUOTED(PA_REALTIME_GROUP,"$PA_REALTIME_GROUP", [Realtime group])
1065 AC_ARG_WITH(access_group,AS_HELP_STRING([--with-access-group=<group>],[Group which is allowed access to a system-wide PulseAudio daemon (pulse-access)]))
1066 if test -z "$with_access_group" ; then
1067     PA_ACCESS_GROUP=pulse-access
1068 else
1069     PA_ACCESS_GROUP=$with_access_group
1071 AC_SUBST(PA_ACCESS_GROUP)
1072 AC_DEFINE_UNQUOTED(PA_ACCESS_GROUP,"$PA_ACCESS_GROUP", [Access group])
1074 AC_ARG_ENABLE(
1075         per_user_esound_socket,
1076         AS_HELP_STRING([--disable-per-user-esound-socket], [Use global esound socket directory /tmp/.esd/socket.]),
1077         [
1078             case "${enableval}" in
1079                 yes) per_user_esound_socket=1 ;;
1080                 no) per_user_esound_socket=0 ;;
1081                 *) AC_MSG_ERROR(bad value ${enableval} for --disable-per-user-esound-socket) ;;
1082             esac
1083         ],
1084         [per_user_esound_socket=1])
1086 if test "x$per_user_esound_socket" = "x1"; then
1087    AC_DEFINE([USE_PER_USER_ESOUND_SOCKET], [1], [Define this if you want per-user esound socket directories])
1090 #### PulseAudio system runtime dir ####
1091 PA_SYSTEM_RUNTIME_PATH="${localstatedir}/run/pulse"
1092 AC_SUBST(PA_SYSTEM_RUNTIME_PATH)
1093 PA_SYSTEM_CONFIG_PATH="${localstatedir}/lib/pulse"
1094 AC_SUBST(PA_SYSTEM_CONFIG_PATH)
1095 PA_SYSTEM_STATE_PATH="${localstatedir}/lib/pulse"
1096 AC_SUBST(PA_SYSTEM_STATE_PATH)
1098 ###################################
1099 #            Output               #
1100 ###################################
1102 AC_ARG_ENABLE(
1103         [static-bins],
1104         AC_HELP_STRING([--enable-static-bins],[Statically link executables.]),
1105         [STATIC_BINS=1], [STATIC_BINS=0])
1106 AM_CONDITIONAL([STATIC_BINS], [test "x$STATIC_BINS" = "x1"])
1108 AC_ARG_WITH(
1109         [preopen-mods],
1110         AC_HELP_STRING([--with-preopen-mods],[Modules to preopen in daemon (default: all).]),
1111         [PREOPEN_MODS=$withval], [PREOPEN_MODS="all"])
1112 AM_CONDITIONAL([PREOPEN_MODS], [test "x$PREOPEN_MODS" != "xall"])
1113 if test "x$PREOPEN_MODS" != "xall" ; then
1114     tmpLIBS=""
1115     for mod in $PREOPEN_MODS; do
1116         tmpLIBS="$tmpLIBS module-$mod.la"
1117     done
1118     PREOPEN_MODS="$tmpLIBS"
1119     AC_SUBST(PREOPEN_MODS)
1122 AC_ARG_WITH(
1123         [module-dir],
1124         AC_HELP_STRING([--with-module-dir],[Directory where to install the modules to (defaults to ${libdir}/pulse-${PA_MAJORMINOR}/modules/]),
1125         [modlibexecdir=$withval], [modlibexecdir="${libdir}/pulse-${PA_MAJORMINOR}/modules/"])
1127 AC_SUBST(modlibexecdir)
1129 AC_ARG_ENABLE(
1130         [force-preopen],
1131         AC_HELP_STRING([--enable-force-preopen],[Preopen modules, even when dlopen() is supported.]),
1132         [FORCE_PREOPEN=1], [FORCE_PREOPEN=0])
1133 AM_CONDITIONAL([FORCE_PREOPEN], [test "x$FORCE_PREOPEN" = "x1"])
1135 AC_CONFIG_FILES([
1136 Makefile
1137 src/Makefile
1138 man/Makefile
1139 libpulse.pc
1140 libpulse-simple.pc
1141 libpulse-browse.pc
1142 libpulse-mainloop-glib.pc
1143 doxygen/Makefile
1144 doxygen/doxygen.conf
1145 src/pulse/version.h
1146 po/Makefile.in
1148 AC_OUTPUT
1150 # ==========================================================================
1151 ENABLE_X11=no
1152 if test "x$HAVE_X11" = "x1" ; then
1153    ENABLE_X11=yes
1156 ENABLE_OSS=no
1157 if test "x$HAVE_OSS" = "x1" ; then
1158    ENABLE_OSS=yes
1161 ENABLE_ALSA=no
1162 if test "x$HAVE_ALSA" = "x1" ; then
1163    ENABLE_ALSA=yes
1166 ENABLE_SOLARIS=no
1167 if test "x$HAVE_SOLARIS" = "x1" ; then
1168    ENABLE_SOLARIS=yes
1171 ENABLE_GLIB20=no
1172 if test "x$HAVE_GLIB20" = "x1" ; then
1173    ENABLE_GLIB20=yes
1176 ENABLE_GCONF=no
1177 if test "x$HAVE_GCONF" = "x1" ; then
1178    ENABLE_GCONF=yes
1181 ENABLE_AVAHI=no
1182 if test "x$HAVE_AVAHI" = "x1" ; then
1183    ENABLE_AVAHI=yes
1186 ENABLE_JACK=no
1187 if test "x$HAVE_JACK" = "x1" ; then
1188    ENABLE_JACK=yes
1191 ENABLE_LIBASYNCNS=no
1192 if test "x$HAVE_LIBASYNCNS" = "x1" ; then
1193    ENABLE_LIBASYNCNS=yes
1196 ENABLE_LIRC=no
1197 if test "x$HAVE_LIRC" = "x1" ; then
1198    ENABLE_LIRC=yes
1201 ENABLE_HAL=no
1202 if test "x$HAVE_HAL" = "x1" ; then
1203    ENABLE_HAL=yes
1206 ENABLE_TCPWRAP=no
1207 if test "x${LIBWRAP_LIBS}" != x ; then
1208    ENABLE_TCPWRAP=yes
1211 ENABLE_LIBSAMPLERATE=no
1212 if test "x${HAVE_LIBSAMPLERATE}" = "x1" ; then
1213    ENABLE_LIBSAMPLERATE=yes
1216 ENABLE_BLUEZ=no
1217 if test "x${HAVE_BLUEZ}" = "x1" ; then
1218    ENABLE_BLUEZ=yes
1221 ENABLE_POLKIT=no
1222 if test "x${HAVE_POLKIT}" = "x1" ; then
1223    ENABLE_POLKIT=yes
1226 ENABLE_PER_USER_ESOUND_SOCKET=no
1227 if test "x$per_user_esound_socket" = "x1" ; then
1228    ENABLE_PER_USER_ESOUND_SOCKET=yes
1231 echo "
1232  ---{ $PACKAGE_NAME $VERSION }---
1234     prefix:                        ${prefix}
1235     sysconfdir:                    ${sysconfdir}
1236     localstatedir:                 ${localstatedir}
1237     System Runtime Path:           ${PA_SYSTEM_RUNTIME_PATH}
1238     System State Path:             ${PA_SYSTEM_STATE_PATH}
1239     System Config Path:            ${PA_SYSTEM_CONFIG_PATH}
1240     Compiler:                      ${CC}
1241     CFLAGS:                        ${CFLAGS}
1242     Have X11:                      ${ENABLE_X11}
1243     Enable OSS:                    ${ENABLE_OSS}
1244     Enable Alsa:                   ${ENABLE_ALSA}
1245     Enable Solaris:                ${ENABLE_SOLARIS}
1246     Enable GLib 2.0:               ${ENABLE_GLIB20}
1247     Enable GConf:                  ${ENABLE_GCONF}
1248     Enable Avahi:                  ${ENABLE_AVAHI}
1249     Enable Jack:                   ${ENABLE_JACK}
1250     Enable Async DNS:              ${ENABLE_LIBASYNCNS}
1251     Enable LIRC:                   ${ENABLE_LIRC}
1252     Enable HAL:                    ${ENABLE_HAL}
1253     Enable BlueZ:                  ${ENABLE_BLUEZ}
1254     Enable TCP Wrappers:           ${ENABLE_TCPWRAP}
1255     Enable libsamplerate:          ${ENABLE_LIBSAMPLERATE}
1256     Enable PolicyKit:              ${ENABLE_POLKIT}
1257     System User:                   ${PA_SYSTEM_USER}
1258     System Group:                  ${PA_SYSTEM_GROUP}
1259     Realtime Group:                ${PA_REALTIME_GROUP}
1260     Access Group:                  ${PA_ACCESS_GROUP}
1261     Enable per-user EsounD socket: ${ENABLE_PER_USER_ESOUND_SOCKET}