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