]> code.delx.au - pulseaudio/blob - configure.ac
Remove gettext macros from configure.ac, intltool is used.
[pulseaudio] / configure.ac
1 # -*- Autoconf -*-
2 # Process this file with autoconf to produce a configure script.
3
4 # This file is part of PulseAudio.
5 #
6 # Copyright 2004-2008 Lennart Poettering
7 # Copyright 2006-2007 Pierre Ossman <ossman@cendio.se> for Cendio AB
8 #
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.
13 #
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.
18 #
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.
22
23 AC_PREREQ(2.62)
24
25 m4_define(PA_MAJOR, [0])
26 m4_define(PA_MINOR, [9])
27 m4_define(PA_MICRO, [11])
28
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])
33
34 AC_SUBST(PA_MAJORMINOR, "PA_MAJOR.PA_MINOR")
35 AC_SUBST(PACKAGE_URL, [http://pulseaudio.org/])
36
37 AC_SUBST(PA_API_VERSION, 12)
38 AC_SUBST(PA_PROTOCOL_VERSION, 14)
39
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])
43
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])
47
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])
51
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])
55
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])
60
61 AC_CANONICAL_HOST
62 AC_DEFINE_UNQUOTED([CANONICAL_HOST], "$host", [Canonical host string.])
63
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}"
67 fi
68
69 #### Platform hacks ####
70
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
78
79 #### Checks for programs. ####
80
81 # mkdir -p
82
83 AC_PROG_MKDIR_P
84
85 # CC
86
87 AC_PROG_CC
88 AM_PROG_CC_C_O
89 AC_PROG_GCC_TRADITIONAL
90 AC_GNU_SOURCE
91
92 # M4
93
94 AC_PATH_PROG([M4], [m4 gm4], [no])
95 if test "x$M4" = xno ; then
96 AC_MSG_ERROR([m4 missing])
97 fi
98
99 # GCC flags
100
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
107 }
108
109 # If using GCC specify some additional parameters
110 if test "x$GCC" = "xyes" ; then
111
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"
115
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
125 fi
126
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])
138
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 ],)
148
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
160
161 # If everything else fails use libatomic_ops
162 need_libatomic_ops=yes
163
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
219 fi
220
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])
231 fi
232
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])
243 fi
244
245 #### libtool stuff ####
246
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)
255
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>])
261
262 if test "x$enable_ltdl_install" = "xno" && test "x$ac_cv_lib_ltdl_lt_dlinit" = "xno" ; then
263 AC_MSG_ERROR([[
264
265 *** Cannot find the libltdl development files.
266 *** Maybe you need to install the libltdl-dev package.
267 ]])
268 fi
269
270 #### Determine build environment ####
271
272 os_is_win32=0
273
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
280
281 AM_CONDITIONAL(OS_IS_WIN32, test "x$os_is_win32" = "x1")
282
283 ###################################
284 # Basic environment checks #
285 ###################################
286
287 #### Checks for header files. ####
288
289 # ISO
290 AC_HEADER_STDC
291
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])
308
309 AM_CONDITIONAL(HAVE_REGEX, test "x$HAVE_REGEX" = "x1")
310 AM_CONDITIONAL(HAVE_AF_UNIX, test "x$HAVE_AF_UNIX" = "x1")
311
312 # Linux
313 AC_CHECK_HEADERS([linux/input.h], [HAVE_EVDEV=1], [HAVE_EVDEV=0])
314
315 AM_CONDITIONAL([HAVE_EVDEV], [test "x$HAVE_EVDEV" = "x1"])
316
317 AC_CHECK_HEADERS([sys/prctl.h])
318
319 # Solaris
320 AC_CHECK_HEADERS([sys/filio.h])
321
322 # Windows
323 AC_CHECK_HEADERS([windows.h winsock2.h ws2tcpip.h])
324
325 # Other
326 AC_CHECK_HEADERS([sys/ioctl.h])
327 AC_CHECK_HEADERS([byteswap.h])
328 AC_CHECK_HEADERS([sys/syscall.h])
329
330 #### Typdefs, structures, etc. ####
331
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)
342
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")
348
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>])])])
353
354 #### POSIX threads ####
355
356 ACX_PTHREAD
357
358 #### Check for libs ####
359
360 # ISO
361 AC_SEARCH_LIBS([pow], [m])
362
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])
369
370 # BSD
371 AC_SEARCH_LIBS([connect], [socket])
372
373 # Non-standard
374
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])])
378
379 AC_CHECK_LIB(gdbm, gdbm_open)
380 AC_CHECK_HEADERS(gdbm.h, [], [AC_MSG_ERROR([gdbm.h not found])])
381
382 #### Check for functions ####
383
384 # ISO
385 AC_CHECK_FUNCS([lrintf strtof])
386
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])
396
397 AM_CONDITIONAL(HAVE_MKFIFO, test "x$HAVE_MKFIFO" = "x1")
398
399 # X/OPEN
400 AC_CHECK_FUNCS([readlink])
401
402 # SUSv2
403 AC_CHECK_FUNCS([ctime_r usleep])
404
405 # SUSv3
406 AC_CHECK_FUNCS([strerror_r])
407
408 # BSD
409 AC_CHECK_FUNCS([lstat])
410
411 # Non-standard
412
413 AC_CHECK_FUNCS([setresuid setresgid setreuid setregid seteuid setegid ppoll strsignal sig2str strtof_l])
414
415 AC_FUNC_ALLOCA
416
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
424
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])
430 fi
431
432 #### Large File-Support (LFS) ####
433
434 AC_SYS_LARGEFILE
435
436 # Check for open64 to know if the current system does have open64() and similar functions
437 AC_CHECK_FUNCS([open64])
438
439 #### [lib]iconv ####
440
441 AM_ICONV
442
443 IT_PROG_INTLTOOL([0.35.0])
444 GETTEXT_PACKAGE=pulseaudio
445 AC_SUBST([GETTEXT_PACKAGE])
446 AC_DEFINE_UNQUOTED([GETTEXT_PACKAGE],["$GETTEXT_PACKAGE"],[Gettext package])
447 AM_GLIB_GNU_GETTEXT
448
449 pulselocaledir='${prefix}/${DATADIRNAME}/locale'
450 AC_SUBST(pulselocaledir)
451
452 ###################################
453 # External libraries #
454 ###################################
455
456 #### X11 (optional) ####
457
458 HAVE_X11=0
459
460 # The macro tests the host, not the build target
461 if test "x$os_is_win32" != "x1" ; then
462 AC_PATH_XTRA
463 test "x$no_x" != "xyes" && HAVE_X11=1
464 fi
465
466 AC_SUBST(HAVE_X11)
467 AM_CONDITIONAL(HAVE_X11, test "x$HAVE_X11" = "x1")
468 if test "x$HAVE_X11" = "x1" ; then
469 AC_DEFINE([HAVE_X11], 1, [Have X11])
470 fi
471
472 #### Capabilities (optional) ####
473
474 CAP_LIBS=''
475
476 AC_ARG_WITH(
477 [caps],
478 AC_HELP_STRING([--without-caps],[Omit support for POSIX capabilities.]))
479
480 if test "x${with_caps}" != "xno"; then
481 AC_SEARCH_LIBS([cap_init], [cap], [], [
482 if test "x${with_caps}" = "xyes" ; then
483 AC_MSG_ERROR([*** POSIX caps libraries not found])
484 fi])
485 AC_CHECK_HEADERS([sys/capability.h], [], [
486 if test "x${with_caps}" = "xyes" ; then
487 AC_MSG_ERROR([*** POSIX caps headers not found])
488 fi])
489 fi
490
491 #### pkg-config ####
492
493 # Check for pkg-config manually first, as if its not installed the
494 # PKG_PROG_PKG_CONFIG macro won't be defined.
495 AC_CHECK_PROG(have_pkg_config, pkg-config, yes, no)
496
497 if test x"$have_pkg_config" = "xno"; then
498 AC_MSG_ERROR(pkg-config is required to install this program)
499 fi
500
501 PKG_PROG_PKG_CONFIG
502
503 #### Sound file ####
504
505 PKG_CHECK_MODULES(LIBSNDFILE, [ sndfile >= 1.0.10 ])
506 AC_SUBST(LIBSNDFILE_CFLAGS)
507 AC_SUBST(LIBSNDFILE_LIBS)
508
509 PKG_CHECK_MODULES(LIBSPEEX, [ speexdsp >= 1.2 ])
510 AC_SUBST(LIBSPEEX_CFLAGS)
511 AC_SUBST(LIBSPEEX_LIBS)
512
513 #### atomic-ops ###
514
515 AC_MSG_CHECKING([whether we need libatomic_ops])
516 if test "x$need_libatomic_ops" = "xyes"; then
517 AC_MSG_RESULT([yes])
518 AC_CHECK_HEADERS([atomic_ops.h], [], [
519 AC_MSG_ERROR([*** libatomic-ops headers not found])
520 ])
521
522 # Win32 does not need the lib and breaks horribly if we try to include it
523 if test "x$os_is_win32" != "x1" ; then
524 LIBS="$LIBS -latomic_ops"
525 fi
526 else
527 AC_MSG_RESULT([no])
528 fi
529
530 #### Libsamplerate support (optional) ####
531
532 AC_ARG_ENABLE([samplerate],
533 AC_HELP_STRING([--disable-samplerate], [Disable optional libsamplerate support]),
534 [
535 case "${enableval}" in
536 yes) samplerate=yes ;;
537 no) samplerate=no ;;
538 *) AC_MSG_ERROR(bad value ${enableval} for --disable-samplerate) ;;
539 esac
540 ],
541 [samplerate=auto])
542
543 if test "x${samplerate}" != xno ; then
544 PKG_CHECK_MODULES(LIBSAMPLERATE, [ samplerate >= 0.1.0 ],
545 HAVE_LIBSAMPLERATE=1,
546 [
547 HAVE_LIBSAMPLERATE=0
548 if test "x$samplerate" = xyes ; then
549 AC_MSG_ERROR([*** Libsamplerate not found])
550 fi
551 ])
552 else
553 HAVE_LIBSAMPLERATE=0
554 fi
555
556 if test "x${HAVE_LIBSAMPLERATE}" = x1 ; then
557 AC_DEFINE([HAVE_LIBSAMPLERATE], 1, [Have libsamplerate?])
558 fi
559
560 AC_SUBST(LIBSAMPLERATE_CFLAGS)
561 AC_SUBST(LIBSAMPLERATE_LIBS)
562 AC_SUBST(HAVE_LIBSAMPLERATE)
563 AM_CONDITIONAL([HAVE_LIBSAMPLERATE], [test "x$HAVE_LIBSAMPLERATE" = x1])
564
565 #### OSS support (optional) ####
566
567 AC_ARG_ENABLE([oss],
568 AC_HELP_STRING([--disable-oss], [Disable optional OSS support]),
569 [
570 case "${enableval}" in
571 yes) oss=yes ;;
572 no) oss=no ;;
573 *) AC_MSG_ERROR(bad value ${enableval} for --disable-oss) ;;
574 esac
575 ],
576 [oss=auto])
577
578 if test "x${oss}" != xno ; then
579 AC_CHECK_HEADERS([sys/soundcard.h],
580 [
581 HAVE_OSS=1
582 AC_DEFINE([HAVE_OSS], 1, [Have OSS?])
583 ],
584 [
585 HAVE_OSS=0
586 if test "x$oss" = xyes ; then
587 AC_MSG_ERROR([*** OSS support not found])
588 fi
589 ])
590 else
591 HAVE_OSS=0
592 fi
593
594 AC_SUBST(HAVE_OSS)
595 AM_CONDITIONAL([HAVE_OSS], [test "x$HAVE_OSS" = x1])
596
597
598 #### ALSA support (optional) ####
599
600 AC_ARG_ENABLE([alsa],
601 AC_HELP_STRING([--disable-alsa], [Disable optional ALSA support]),
602 [
603 case "${enableval}" in
604 yes) alsa=yes ;;
605 no) alsa=no ;;
606 *) AC_MSG_ERROR(bad value ${enableval} for --disable-alsa) ;;
607 esac
608 ],
609 [alsa=auto])
610
611 if test "x${alsa}" != xno ; then
612 PKG_CHECK_MODULES(ASOUNDLIB, [ alsa >= 1.0.17 ],
613 [
614 HAVE_ALSA=1
615 AC_DEFINE([HAVE_ALSA], 1, [Have ALSA?])
616 ],
617 [
618 HAVE_ALSA=0
619 if test "x$alsa" = xyes ; then
620 AC_MSG_ERROR([*** Needed alsa >= 1.0.17 support not found])
621 fi
622 ])
623 else
624 HAVE_ALSA=0
625 fi
626
627 AC_SUBST(ASOUNDLIB_CFLAGS)
628 AC_SUBST(ASOUNDLIB_LIBS)
629 AC_SUBST(HAVE_ALSA)
630 AM_CONDITIONAL([HAVE_ALSA], [test "x$HAVE_ALSA" = x1])
631
632 #### Solaris audio support (optional) ####
633
634 AC_ARG_ENABLE([solaris],
635 AC_HELP_STRING([--disable-solaris], [Disable optional Solaris audio support]),
636 [
637 case "${enableval}" in
638 yes) solaris=yes ;;
639 no) solaris=no ;;
640 *) AC_MSG_ERROR(bad value ${enableval} for --disable-solaris) ;;
641 esac
642 ],
643 [solaris=auto])
644
645 if test "x${solaris}" != xno ; then
646 AC_CHECK_HEADERS([sys/audio.h],
647 [
648 HAVE_SOLARIS=1
649 AC_DEFINE([HAVE_SOLARIS], 1, [Have Solaris audio?])
650 ],
651 [
652 HAVE_SOLARIS=0
653 if test "x$solaris" = xyes ; then
654 AC_MSG_ERROR([*** Solaris audio support not found])
655 fi
656 ])
657 else
658 HAVE_SOLARIS=0
659 fi
660
661 AC_SUBST(HAVE_SOLARIS)
662 AM_CONDITIONAL([HAVE_SOLARIS], [test "x$HAVE_SOLARIS" = x1])
663
664 #### GLib 2 support (optional) ####
665
666 AC_ARG_ENABLE([glib2],
667 AC_HELP_STRING([--disable-glib2], [Disable optional GLib 2 support]),
668 [
669 case "${enableval}" in
670 yes) glib2=yes ;;
671 no) glib2=no ;;
672 *) AC_MSG_ERROR(bad value ${enableval} for --disable-glib2) ;;
673 esac
674 ],
675 [glib2=auto])
676
677 if test "x${glib2}" != xno ; then
678 PKG_CHECK_MODULES(GLIB20, [ glib-2.0 >= 2.4.0 ],
679 HAVE_GLIB20=1,
680 [
681 HAVE_GLIB20=0
682 if test "x$glib2" = xyes ; then
683 AC_MSG_ERROR([*** GLib 2 support not found])
684 fi
685 ])
686 else
687 HAVE_GLIB20=0
688 fi
689
690 AC_SUBST(GLIB20_CFLAGS)
691 AC_SUBST(GLIB20_LIBS)
692 AC_SUBST(HAVE_GLIB20)
693 AM_CONDITIONAL([HAVE_GLIB20], [test "x$HAVE_GLIB20" = x1])
694
695 #### GConf support (optional) ####
696
697 AC_ARG_ENABLE([gconf],
698 AC_HELP_STRING([--disable-gconf], [Disable optional GConf support]),
699 [
700 case "${enableval}" in
701 yes) gconf=yes ;;
702 no) gconf=no ;;
703 *) AC_MSG_ERROR(bad value ${enableval} for --disable-gconf) ;;
704 esac
705 ],
706 [gconf=auto])
707
708 if test "x${gconf}" != xno ; then
709 PKG_CHECK_MODULES(GCONF, [ gconf-2.0 >= 2.4.0 ],
710 HAVE_GCONF=1,
711 [
712 HAVE_GCONF=0
713 if test "x$gconf" = xyes ; then
714 AC_MSG_ERROR([*** GConf support not found])
715 fi
716 ])
717 else
718 HAVE_GCONF=0
719 fi
720
721 AC_SUBST(GCONF_CFLAGS)
722 AC_SUBST(GCONF_LIBS)
723 AC_SUBST(HAVE_GCONF)
724 AM_CONDITIONAL([HAVE_GCONF], [test "x$HAVE_GCONF" = x1])
725
726 #### Avahi support (optional) ####
727
728 AC_ARG_ENABLE([avahi],
729 AC_HELP_STRING([--disable-avahi], [Disable optional Avahi support]),
730 [
731 case "${enableval}" in
732 yes) avahi=yes ;;
733 no) avahi=no ;;
734 *) AC_MSG_ERROR(bad value ${enableval} for --disable-avahi) ;;
735 esac
736 ],
737 [avahi=auto])
738
739 if test "x${avahi}" != xno ; then
740 PKG_CHECK_MODULES(AVAHI, [ avahi-client >= 0.6.0 ],
741 HAVE_AVAHI=1,
742 [
743 HAVE_AVAHI=0
744 if test "x$avahi" = xyes ; then
745 AC_MSG_ERROR([*** Avahi support not found])
746 fi
747 ])
748 else
749 HAVE_AVAHI=0
750 fi
751
752 AC_SUBST(AVAHI_CFLAGS)
753 AC_SUBST(AVAHI_LIBS)
754 AC_SUBST(HAVE_AVAHI)
755 AM_CONDITIONAL([HAVE_AVAHI], [test "x$HAVE_AVAHI" = x1])
756
757 ### LIBOIL ####
758
759 PKG_CHECK_MODULES(LIBOIL, [ liboil-0.3 >= 0.3.0 ])
760 AC_SUBST(LIBOIL_CFLAGS)
761 AC_SUBST(LIBOIL_LIBS)
762
763 ### JACK (optional) ####
764
765 AC_ARG_ENABLE([jack],
766 AC_HELP_STRING([--disable-jack], [Disable optional JACK support]),
767 [
768 case "${enableval}" in
769 yes) jack=yes ;;
770 no) jack=no ;;
771 *) AC_MSG_ERROR(bad value ${enableval} for --disable-jack) ;;
772 esac
773 ],
774 [jack=auto])
775
776 if test "x${jack}" != xno ; then
777 PKG_CHECK_MODULES(JACK, [ jack >= 0.100 ],
778 HAVE_JACK=1,
779 [
780 HAVE_JACK=0
781 if test "x$jack" = xyes ; then
782 AC_MSG_ERROR([*** JACK support not found])
783 fi
784 ])
785 else
786 HAVE_JACK=0
787 fi
788
789 AC_SUBST(JACK_CFLAGS)
790 AC_SUBST(JACK_LIBS)
791 AC_SUBST(HAVE_JACK)
792 AM_CONDITIONAL([HAVE_JACK], [test "x$HAVE_JACK" = x1])
793
794 #### Async DNS support (optional) ####
795
796 AC_ARG_ENABLE([asyncns],
797 AC_HELP_STRING([--disable-asyncns], [Disable optional Async DNS support]),
798 [
799 case "${enableval}" in
800 yes) asyncns=yes ;;
801 no) asyncns=no ;;
802 *) AC_MSG_ERROR(bad value ${enableval} for --disable-asyncns) ;;
803 esac
804 ],
805 [asyncns=auto])
806
807 if test "x${asyncns}" != xno ; then
808 PKG_CHECK_MODULES(LIBASYNCNS, [ libasyncns >= 0.1 ],
809 HAVE_LIBASYNCNS=1,
810 [
811 HAVE_LIBASYNCNS=0
812 if test "x$asyncns" = xyes ; then
813 AC_MSG_ERROR([*** Async DNS support not found])
814 fi
815 ])
816 else
817 HAVE_LIBASYNCNS=0
818 fi
819
820 AC_SUBST(LIBASYNCNS_CFLAGS)
821 AC_SUBST(LIBASYNCNS_LIBS)
822 AC_SUBST(HAVE_LIBASYNCNS)
823 AM_CONDITIONAL([HAVE_LIBASYNCNS], [test "x$HAVE_LIBASYNCNS" = x1])
824
825 if test "x$HAVE_LIBASYNCNS" != "x0" ; then
826 AC_DEFINE([HAVE_LIBASYNCNS], 1, [Have libasyncns?])
827 fi
828
829 #### TCP wrappers (optional) ####
830
831 AC_ARG_ENABLE([tcpwrap],
832 AC_HELP_STRING([--disable-tcpwrap], [Disable optional TCP wrappers support]),
833 [
834 case "${enableval}" in
835 yes) tcpwrap=yes ;;
836 no) tcpwrap=no ;;
837 *) AC_MSG_ERROR(bad value ${enableval} for --disable-tcpwrap) ;;
838 esac
839 ],
840 [tcpwrap=auto])
841
842 if test "x${tcpwrap}" != xno ; then
843 ACX_LIBWRAP
844 if test "x${LIBWRAP_LIBS}" = x && test "x$tcpwrap" = xyes ; then
845 AC_MSG_ERROR([*** TCP wrappers support not found])
846 fi
847 else
848 LIBWRAP_LIBS=
849 fi
850
851 AC_SUBST(LIBWRAP_LIBS)
852
853 #### LIRC support (optional) ####
854
855 AC_ARG_ENABLE([lirc],
856 AC_HELP_STRING([--disable-lirc], [Disable optional LIRC support]),
857 [
858 case "${enableval}" in
859 yes) lirc=yes ;;
860 no) lirc=no ;;
861 *) AC_MSG_ERROR(bad value ${enableval} for --disable-lirc) ;;
862 esac
863 ],
864 [lirc=auto])
865
866 if test "x${lirc}" != xno ; then
867 ACX_LIRC
868 if test "x${HAVE_LIRC}" = x0 && test "x$lirc" = xyes ; then
869 AC_MSG_ERROR([*** LIRC support not found])
870 fi
871 else
872 HAVE_LIRC=0
873 fi
874
875 AC_SUBST(LIRC_CFLAGS)
876 AC_SUBST(LIRC_LIBS)
877 AM_CONDITIONAL([HAVE_LIRC], [test "x$HAVE_LIRC" = x1])
878
879 #### HAL support (optional) ####
880
881 AC_ARG_ENABLE([hal],
882 AC_HELP_STRING([--disable-hal], [Disable optional HAL support]),
883 [
884 case "${enableval}" in
885 yes) hal=yes ;;
886 no) hal=no ;;
887 *) AC_MSG_ERROR(bad value ${enableval} for --disable-hal) ;;
888 esac
889 ],
890 [hal=auto])
891 if test "x${hal}" != xno -a \( "x$HAVE_OSS" = "x1" -o "x$HAVE_ALSA" = "x1" \) ; then
892 PKG_CHECK_MODULES(HAL, [ hal >= 0.5.7 ],
893 HAVE_HAL=1,
894 [
895 HAVE_HAL=0
896 if test "x$hal" = xyes ; then
897 AC_MSG_ERROR([*** HAL support not found])
898 fi
899 ])
900 else
901 HAVE_HAL=0
902 fi
903
904 AC_SUBST(HAL_CFLAGS)
905 AC_SUBST(HAL_LIBS)
906 AC_SUBST(HAVE_HAL)
907 AM_CONDITIONAL([HAVE_HAL], [test "x$HAVE_HAL" = x1])
908
909 #### BlueZ support (optional) ####
910
911 AC_ARG_ENABLE([bluez],
912 AC_HELP_STRING([--disable-bluez], [Disable optional BlueZ support]),
913 [
914 case "${enableval}" in
915 yes) bluez=yes ;;
916 no) bluez=no ;;
917 *) AC_MSG_ERROR(bad value ${enableval} for --disable-bluez) ;;
918 esac
919 ],
920 [bluez=auto])
921 if test "x${bluez}" != xno ; then
922 PKG_CHECK_MODULES(BLUEZ, [ bluez >= 3.0 ],
923 HAVE_BLUEZ=1,
924 [
925 HAVE_BLUEZ=0
926 if test "x$bluez" = xyes ; then
927 AC_MSG_ERROR([*** BLUEZ support not found])
928 fi
929 ])
930 else
931 HAVE_BLUEZ=0
932 fi
933
934 AC_SUBST(BLUEZ_CFLAGS)
935 AC_SUBST(BLUEZ_LIBS)
936 AC_SUBST(HAVE_BLUEZ)
937 AM_CONDITIONAL([HAVE_BLUEZ], [test "x$HAVE_BLUEZ" = x1])
938
939 #### D-Bus support (optional) ####
940
941 AC_ARG_ENABLE([dbus],
942 AC_HELP_STRING([--disable-dbus], [Disable optional D-Bus support]),
943 [
944 case "${enableval}" in
945 yes) dbus=yes ;;
946 no) dbus=no ;;
947 *) AC_MSG_ERROR(bad value ${enableval} for --disable-dbus) ;;
948 esac
949 ],
950 [dbus=auto])
951
952 if test "x$HAVE_HAL" = x1 ; then
953 dbus=yes
954 fi
955
956 if test "x${dbus}" != xno || test "x${bluez}" != xno || "x${hal}" != xno ; then
957
958 PKG_CHECK_MODULES(DBUS, [ dbus-1 >= 1.0.0 ],
959 [
960 HAVE_DBUS=1
961 saved_LIBS="$LIBS"
962 LIBS="$LIBS $DBUS_LIBS"
963 AC_CHECK_FUNCS(dbus_watch_get_unix_fd)
964 LIBS="$saved_LIBS"
965 AC_DEFINE([HAVE_DBUS], 1, [Have D-Bus.])
966 ],
967 [
968 HAVE_DBUS=0
969 if test "x$dbus" = xyes ; then
970 AC_MSG_ERROR([*** D-Bus support not found])
971 fi
972 ])
973 else
974 HAVE_DBUS=0
975 fi
976
977 AC_SUBST(DBUS_CFLAGS)
978 AC_SUBST(DBUS_LIBS)
979 AC_SUBST(HAVE_DBUS)
980 AM_CONDITIONAL([HAVE_DBUS], [test "x$HAVE_DBUS" = x1])
981
982 #### PolicyKit support (optional) ####
983
984 AC_ARG_ENABLE([polkit],
985 AC_HELP_STRING([--disable-polkit], [Disable optional PolicyKit support]),
986 [
987 case "${enableval}" in
988 yes) polkit=yes ;;
989 no) polkit=no ;;
990 *) AC_MSG_ERROR(bad value ${enableval} for --disable-polkit) ;;
991 esac
992 ],
993 [polkit=auto])
994
995 if test "x${polkit}" != xno ; then
996
997 PKG_CHECK_MODULES(POLKIT, [ polkit-dbus >= 0.7 ],
998 [
999 HAVE_POLKIT=1
1000 AC_DEFINE([HAVE_POLKIT], 1, [Have PolicyKit])
1001 policydir=`pkg-config polkit-dbus --variable prefix`/share/PolicyKit/policy/
1002 AC_SUBST(policydir)
1003 ],
1004 [
1005 HAVE_POLKIT=0
1006 if test "x$polkit" = xyes ; then
1007 AC_MSG_ERROR([*** PolicyKit support not found])
1008 fi
1009 ])
1010 else
1011 HAVE_POLKIT=0
1012 fi
1013
1014 AC_SUBST(POLKIT_CFLAGS)
1015 AC_SUBST(POLKIT_LIBS)
1016 AC_SUBST(HAVE_POLKIT)
1017 AM_CONDITIONAL([HAVE_POLKIT], [test "x$HAVE_POLKIT" = x1])
1018
1019 ### Build and Install man pages ###
1020 AC_ARG_ENABLE(manpages,
1021 AS_HELP_STRING([--disable-manpages],[Disable building and installation of man pages]),
1022 [case "${enableval}" in
1023 yes) manpages=yes ;;
1024 no) manpages=no ;;
1025 *) AC_MSG_ERROR([bad value ${enableval} for --disable-manpages]) ;;
1026 esac],[manpages=yes])
1027
1028 AM_CONDITIONAL([BUILD_MANPAGES], [test "x$manpages" = xyes])
1029
1030 #### PulseAudio system group & user #####
1031
1032 AC_ARG_WITH(system_user, AS_HELP_STRING([--with-system-user=<user>],[User for running the PulseAudio daemon as a system-wide instance (pulse)]))
1033 if test -z "$with_system_user" ; then
1034 PA_SYSTEM_USER=pulse
1035 else
1036 PA_SYSTEM_USER=$with_system_user
1037 fi
1038 AC_SUBST(PA_SYSTEM_USER)
1039 AC_DEFINE_UNQUOTED(PA_SYSTEM_USER,"$PA_SYSTEM_USER", [User for running the PulseAudio system daemon])
1040
1041 AC_ARG_WITH(system_group,AS_HELP_STRING([--with-system-group=<group>],[Group for running the PulseAudio daemon as a system-wide instance (pulse)]))
1042 if test -z "$with_system_group" ; then
1043 PA_SYSTEM_GROUP=pulse
1044 else
1045 PA_SYSTEM_GROUP=$with_system_group
1046 fi
1047 AC_SUBST(PA_SYSTEM_GROUP)
1048 AC_DEFINE_UNQUOTED(PA_SYSTEM_GROUP,"$PA_SYSTEM_GROUP", [Group for the PulseAudio system daemon])
1049
1050 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)]))
1051 if test -z "$with_realtime_group" ; then
1052 PA_REALTIME_GROUP=pulse-rt
1053 else
1054 PA_REALTIME_GROUP=$with_realtime_group
1055 fi
1056 AC_SUBST(PA_REALTIME_GROUP)
1057 AC_DEFINE_UNQUOTED(PA_REALTIME_GROUP,"$PA_REALTIME_GROUP", [Realtime group])
1058
1059 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)]))
1060 if test -z "$with_access_group" ; then
1061 PA_ACCESS_GROUP=pulse-access
1062 else
1063 PA_ACCESS_GROUP=$with_access_group
1064 fi
1065 AC_SUBST(PA_ACCESS_GROUP)
1066 AC_DEFINE_UNQUOTED(PA_ACCESS_GROUP,"$PA_ACCESS_GROUP", [Access group])
1067
1068 AC_ARG_ENABLE(
1069 per_user_esound_socket,
1070 AS_HELP_STRING([--disable-per-user-esound-socket], [Use global esound socket directory /tmp/.esd/socket.]),
1071 [
1072 case "${enableval}" in
1073 yes) per_user_esound_socket=1 ;;
1074 no) per_user_esound_socket=0 ;;
1075 *) AC_MSG_ERROR(bad value ${enableval} for --disable-per-user-esound-socket) ;;
1076 esac
1077 ],
1078 [per_user_esound_socket=1])
1079
1080 if test "x$per_user_esound_socket" = "x1"; then
1081 AC_DEFINE([USE_PER_USER_ESOUND_SOCKET], [1], [Define this if you want per-user esound socket directories])
1082 fi
1083
1084 #### PulseAudio system runtime dir ####
1085 PA_SYSTEM_RUNTIME_PATH="${localstatedir}/run/pulse"
1086 AC_SUBST(PA_SYSTEM_RUNTIME_PATH)
1087 PA_SYSTEM_CONFIG_PATH="${localstatedir}/lib/pulse"
1088 AC_SUBST(PA_SYSTEM_CONFIG_PATH)
1089 PA_SYSTEM_STATE_PATH="${localstatedir}/lib/pulse"
1090 AC_SUBST(PA_SYSTEM_STATE_PATH)
1091
1092 ###################################
1093 # Output #
1094 ###################################
1095
1096 AC_ARG_ENABLE(
1097 [static-bins],
1098 AC_HELP_STRING([--enable-static-bins],[Statically link executables.]),
1099 [STATIC_BINS=1], [STATIC_BINS=0])
1100 AM_CONDITIONAL([STATIC_BINS], [test "x$STATIC_BINS" = "x1"])
1101
1102 AC_ARG_WITH(
1103 [preopen-mods],
1104 AC_HELP_STRING([--with-preopen-mods],[Modules to preopen in daemon (default: all).]),
1105 [PREOPEN_MODS=$withval], [PREOPEN_MODS="all"])
1106 AM_CONDITIONAL([PREOPEN_MODS], [test "x$PREOPEN_MODS" != "xall"])
1107 if test "x$PREOPEN_MODS" != "xall" ; then
1108 tmpLIBS=""
1109 for mod in $PREOPEN_MODS; do
1110 tmpLIBS="$tmpLIBS module-$mod.la"
1111 done
1112 PREOPEN_MODS="$tmpLIBS"
1113 AC_SUBST(PREOPEN_MODS)
1114 fi
1115
1116 AC_ARG_WITH(
1117 [module-dir],
1118 AC_HELP_STRING([--with-module-dir],[Directory where to install the modules to (defaults to ${libdir}/pulse-${PA_MAJORMINOR}/modules/]),
1119 [modlibexecdir=$withval], [modlibexecdir="${libdir}/pulse-${PA_MAJORMINOR}/modules/"])
1120
1121 AC_SUBST(modlibexecdir)
1122
1123 AC_ARG_ENABLE(
1124 [force-preopen],
1125 AC_HELP_STRING([--enable-force-preopen],[Preopen modules, even when dlopen() is supported.]),
1126 [FORCE_PREOPEN=1], [FORCE_PREOPEN=0])
1127 AM_CONDITIONAL([FORCE_PREOPEN], [test "x$FORCE_PREOPEN" = "x1"])
1128
1129 AC_CONFIG_FILES([
1130 Makefile
1131 src/Makefile
1132 man/Makefile
1133 libpulse.pc
1134 libpulse-simple.pc
1135 libpulse-browse.pc
1136 libpulse-mainloop-glib.pc
1137 doxygen/Makefile
1138 doxygen/doxygen.conf
1139 src/pulse/version.h
1140 po/Makefile.in
1141 ])
1142 AC_OUTPUT
1143
1144 # ==========================================================================
1145 ENABLE_X11=no
1146 if test "x$HAVE_X11" = "x1" ; then
1147 ENABLE_X11=yes
1148 fi
1149
1150 ENABLE_OSS=no
1151 if test "x$HAVE_OSS" = "x1" ; then
1152 ENABLE_OSS=yes
1153 fi
1154
1155 ENABLE_ALSA=no
1156 if test "x$HAVE_ALSA" = "x1" ; then
1157 ENABLE_ALSA=yes
1158 fi
1159
1160 ENABLE_SOLARIS=no
1161 if test "x$HAVE_SOLARIS" = "x1" ; then
1162 ENABLE_SOLARIS=yes
1163 fi
1164
1165 ENABLE_GLIB20=no
1166 if test "x$HAVE_GLIB20" = "x1" ; then
1167 ENABLE_GLIB20=yes
1168 fi
1169
1170 ENABLE_GCONF=no
1171 if test "x$HAVE_GCONF" = "x1" ; then
1172 ENABLE_GCONF=yes
1173 fi
1174
1175 ENABLE_AVAHI=no
1176 if test "x$HAVE_AVAHI" = "x1" ; then
1177 ENABLE_AVAHI=yes
1178 fi
1179
1180 ENABLE_JACK=no
1181 if test "x$HAVE_JACK" = "x1" ; then
1182 ENABLE_JACK=yes
1183 fi
1184
1185 ENABLE_LIBASYNCNS=no
1186 if test "x$HAVE_LIBASYNCNS" = "x1" ; then
1187 ENABLE_LIBASYNCNS=yes
1188 fi
1189
1190 ENABLE_LIRC=no
1191 if test "x$HAVE_LIRC" = "x1" ; then
1192 ENABLE_LIRC=yes
1193 fi
1194
1195 ENABLE_HAL=no
1196 if test "x$HAVE_HAL" = "x1" ; then
1197 ENABLE_HAL=yes
1198 fi
1199
1200 ENABLE_TCPWRAP=no
1201 if test "x${LIBWRAP_LIBS}" != x ; then
1202 ENABLE_TCPWRAP=yes
1203 fi
1204
1205 ENABLE_LIBSAMPLERATE=no
1206 if test "x${HAVE_LIBSAMPLERATE}" = "x1" ; then
1207 ENABLE_LIBSAMPLERATE=yes
1208 fi
1209
1210 ENABLE_BLUEZ=no
1211 if test "x${HAVE_BLUEZ}" = "x1" ; then
1212 ENABLE_BLUEZ=yes
1213 fi
1214
1215 ENABLE_POLKIT=no
1216 if test "x${HAVE_POLKIT}" = "x1" ; then
1217 ENABLE_POLKIT=yes
1218 fi
1219
1220 ENABLE_PER_USER_ESOUND_SOCKET=no
1221 if test "x$per_user_esound_socket" = "x1" ; then
1222 ENABLE_PER_USER_ESOUND_SOCKET=yes
1223 fi
1224
1225 echo "
1226 ---{ $PACKAGE_NAME $VERSION }---
1227
1228 prefix: ${prefix}
1229 sysconfdir: ${sysconfdir}
1230 localstatedir: ${localstatedir}
1231 System Runtime Path: ${PA_SYSTEM_RUNTIME_PATH}
1232 System State Path: ${PA_SYSTEM_STATE_PATH}
1233 System Config Path: ${PA_SYSTEM_CONFIG_PATH}
1234 Compiler: ${CC}
1235 CFLAGS: ${CFLAGS}
1236 Have X11: ${ENABLE_X11}
1237 Enable OSS: ${ENABLE_OSS}
1238 Enable Alsa: ${ENABLE_ALSA}
1239 Enable Solaris: ${ENABLE_SOLARIS}
1240 Enable GLib 2.0: ${ENABLE_GLIB20}
1241 Enable GConf: ${ENABLE_GCONF}
1242 Enable Avahi: ${ENABLE_AVAHI}
1243 Enable Jack: ${ENABLE_JACK}
1244 Enable Async DNS: ${ENABLE_LIBASYNCNS}
1245 Enable LIRC: ${ENABLE_LIRC}
1246 Enable HAL: ${ENABLE_HAL}
1247 Enable BlueZ: ${ENABLE_BLUEZ}
1248 Enable TCP Wrappers: ${ENABLE_TCPWRAP}
1249 Enable libsamplerate: ${ENABLE_LIBSAMPLERATE}
1250 Enable PolicyKit: ${ENABLE_POLKIT}
1251 System User: ${PA_SYSTEM_USER}
1252 System Group: ${PA_SYSTEM_GROUP}
1253 Realtime Group: ${PA_REALTIME_GROUP}
1254 Access Group: ${PA_ACCESS_GROUP}
1255 Enable per-user EsounD socket: ${ENABLE_PER_USER_ESOUND_SOCKET}
1256 "