6 AM_INIT_AUTOMAKE(dbus, 0.60)
8 AM_CONFIG_HEADER(config.h)
13 ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
15 GETTEXT_PACKAGE=dbus-1
16 AC_SUBST(GETTEXT_PACKAGE)
17 AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE",[The name of the gettext domain])
19 ## must come before we use the $USE_MAINTAINER_MODE variable later
22 # libtool versioning - this applies to libdbus
24 # See http://sources.redhat.com/autobook/autobook/autobook_91.html#SEC91 for details
27 ## increment if the interface has additions, changes, removals.
30 ## increment any time the source changes; set to
31 ## 0 if you increment CURRENT
34 ## increment if any interfaces have been added; set to 0
35 ## if any interfaces have been changed or removed. removal has
36 ## precedence over adding, so set to 0 if both happened.
49 AC_ARG_ENABLE(qt, [ --enable-qt enable Qt-friendly client library],enable_qt=$enableval,enable_qt=auto)
50 AC_ARG_ENABLE(qt-debug, [ --enable-qt-debug enable Qt-friendly client library, linked to debug Qt libraries],enable_qt_debug=$enableval,enable_qt_debug=no)
51 AC_ARG_ENABLE(qt3, [ --enable-qt3 enable Qt3-friendly client library],enable_qt3=$enableval,enable_qt3=no)
52 AC_ARG_ENABLE(glib, [ --enable-glib enable GLib-friendly client library],enable_glib=$enableval,enable_glib=auto)
53 AC_ARG_ENABLE(gtk, [ --enable-gtk enable GTK-requiring executables],enable_gtk=$enableval,enable_gtk=auto)
54 AC_ARG_ENABLE(tests, [ --enable-tests enable unit test code],enable_tests=$enableval,enable_tests=$USE_MAINTAINER_MODE)
55 AC_ARG_ENABLE(ansi, [ --enable-ansi enable -ansi -pedantic gcc flags],enable_ansi=$enableval,enable_ansi=no)
56 AC_ARG_ENABLE(verbose-mode, [ --enable-verbose-mode support verbose debug mode],enable_verbose_mode=$enableval,enable_verbose_mode=$USE_MAINTAINER_MODE)
57 AC_ARG_ENABLE(asserts, [ --enable-asserts include assertion checks],enable_asserts=$enableval,enable_asserts=$USE_MAINTAINER_MODE)
58 AC_ARG_ENABLE(checks, [ --enable-checks include sanity checks on public API],enable_checks=$enableval,enable_checks=yes)
59 AC_ARG_ENABLE(xml-docs, [ --enable-xml-docs build XML documentation (requires xmlto)],enable_xml_docs=$enableval,enable_xml_docs=auto)
60 AC_ARG_ENABLE(doxygen-docs, [ --enable-doxygen-docs build DOXYGEN documentation (requires Doxygen)],enable_doxygen_docs=$enableval,enable_doxygen_docs=auto)
61 AC_ARG_ENABLE(gcov, [ --enable-gcov compile with coverage profiling instrumentation (gcc only)],enable_gcov=$enableval,enable_gcov=no)
62 AC_ARG_ENABLE(abstract-sockets, [ --enable-abstract-sockets use abstract socket namespace (linux only)],enable_abstract_sockets=$enableval,enable_abstract_sockets=auto)
63 AC_ARG_ENABLE(gcj, [ --enable-gcj build gcj bindings],enable_gcj=$enableval,enable_gcj=no)
64 AC_ARG_ENABLE(mono, [ --enable-mono build mono bindings],enable_mono=$enableval,enable_mono=no)
65 AC_ARG_ENABLE(mono_docs, [ --enable-mono-docs build mono docs],enable_mono_docs=$enableval,enable_mono_docs=no)
66 AC_ARG_ENABLE(python, [ --enable-python build python bindings],enable_python=$enableval,enable_python=auto)
67 AC_ARG_ENABLE(selinux, [ --enable-selinux build with SELinux support],enable_selinux=$enableval,enable_selinux=auto)
68 AC_ARG_ENABLE(dnotify, [ --enable-dnotify build with dnotify support (linux only)],enable_dnotify=$enableval,enable_dnotify=auto)
70 AC_ARG_WITH(xml, [ --with-xml=[libxml/expat] XML library to use])
71 AC_ARG_WITH(init-scripts, [ --with-init-scripts=[redhat] Style of init scripts to install])
72 AC_ARG_WITH(session-socket-dir, [ --with-session-socket-dir=[dirname] Where to put sockets for the per-login-session message bus])
73 AC_ARG_WITH(test-socket-dir, [ --with-test-socket-dir=[dirname] Where to put sockets for make check])
74 AC_ARG_WITH(system-pid-file, [ --with-system-pid-file=[pidfile] PID file for systemwide daemon])
75 AC_ARG_WITH(system-socket, [ --with-system-socket=[filename] UNIX domain socket for systemwide daemon])
76 AC_ARG_WITH(console-auth-dir, [ --with-console-auth-dir=[dirname] directory to check for console ownerhip])
77 AC_ARG_WITH(dbus_user, [ --with-dbus-user=<user> User for running the DBUS daemon (messagebus)])
79 dnl DBUS_BUILD_TESTS controls unit tests built in to .c files
80 dnl and also some stuff in the test/ subdir
81 AM_CONDITIONAL(DBUS_BUILD_TESTS, test x$enable_tests = xyes)
82 if test x$enable_tests = xyes; then
83 AC_DEFINE(DBUS_BUILD_TESTS,1,[Build test code])
86 if test x$enable_verbose_mode = xyes; then
87 AC_DEFINE(DBUS_ENABLE_VERBOSE_MODE,1,[Support a verbose mode])
89 if test x$enable_asserts = xno; then
90 AC_DEFINE(DBUS_DISABLE_ASSERT,1,[Disable assertion checking])
91 AC_DEFINE(G_DISABLE_ASSERT,1,[Disable GLib assertion macros])
93 if test x$enable_checks = xno; then
94 AC_DEFINE(DBUS_DISABLE_CHECKS,1,[Disable public API sanity checking])
95 AC_DEFINE(G_DISABLE_CHECKS,1,[Disable GLib public API sanity checking])
98 #### gcc warning flags
100 if test "x$GCC" = "xyes"; then
103 *[\ \ ]-Wall[\ \ ]*) ;;
104 *) CFLAGS="$CFLAGS -Wall" ;;
108 *[\ \ ]-Wchar-subscripts[\ \ ]*) ;;
109 *) CFLAGS="$CFLAGS -Wchar-subscripts" ;;
113 *[\ \ ]-Wmissing-declarations[\ \ ]*) ;;
114 *) CFLAGS="$CFLAGS -Wmissing-declarations" ;;
118 *[\ \ ]-Wmissing-prototypes[\ \ ]*) ;;
119 *) CFLAGS="$CFLAGS -Wmissing-prototypes" ;;
123 *[\ \ ]-Wnested-externs[\ \ ]*) ;;
124 *) CFLAGS="$CFLAGS -Wnested-externs" ;;
128 *[\ \ ]-Wpointer-arith[\ \ ]*) ;;
129 *) CFLAGS="$CFLAGS -Wpointer-arith" ;;
133 *[\ \ ]-Wcast-align[\ \ ]*) ;;
134 *) CFLAGS="$CFLAGS -Wcast-align" ;;
138 *[\ \ ]-Wfloat-equal[\ \ ]*) ;;
139 *) CFLAGS="$CFLAGS -Wfloat-equal" ;;
143 *[\ \ ]-Wsign-compare[\ \ ]*) ;;
144 *) CFLAGS="$CFLAGS -Wsign-compare" ;;
147 if test "x$enable_ansi" = "xyes"; then
149 *[\ \ ]-ansi[\ \ ]*) ;;
150 *) CFLAGS="$CFLAGS -ansi" ;;
154 *[\ \ ]-D_POSIX_C_SOURCE*) ;;
155 *) CFLAGS="$CFLAGS -D_POSIX_C_SOURCE=199309L" ;;
159 *[\ \ ]-D_BSD_SOURCE[\ \ ]*) ;;
160 *) CFLAGS="$CFLAGS -D_BSD_SOURCE" ;;
164 *[\ \ ]-pedantic[\ \ ]*) ;;
165 *) CFLAGS="$CFLAGS -pedantic" ;;
168 if test x$enable_gcov = xyes; then
170 *[\ \ ]-fprofile-arcs[\ \ ]*) ;;
171 *) CFLAGS="$CFLAGS -fprofile-arcs" ;;
174 *[\ \ ]-ftest-coverage[\ \ ]*) ;;
175 *) CFLAGS="$CFLAGS -ftest-coverage" ;;
178 ## remove optimization
179 CFLAGS=`echo "$CFLAGS" | sed -e 's/-O[0-9]*//g'`
183 if test x$enable_gcov = xyes; then
184 AC_MSG_ERROR([--enable-gcov can only be used with gcc])
188 #### can't use AM_PROG_GCJ since it fails fatally if no gcj found
189 AC_CHECK_PROGS(GCJ, gcj, gcj)
190 if test -z "$GCJ" ; then
193 # Needs to be here so libtool wont get confused
197 if test "x${GCJFLAGS-unset}" = xunset; then
198 GCJFLAGS="-g -O2 -Wall"
203 if test x$enable_gcj = xauto ; then
204 if test x$have_gcj = xno ; then
211 if test x$enable_gcj = xyes; then
212 if test x$have_gcj = xno ; then
213 AC_MSG_ERROR([Building gcj explicitly required, but gcj not found])
215 AC_CHECK_PROGS(JAR, gcj-jar fastjar jar)
219 AM_CONDITIONAL(DBUS_USE_GCJ, test x$enable_gcj = xyes)
224 MONO_REQUIRED_VERSION=0.95
225 AC_SUBST(MONO_REQUIRED_VERSION)
226 PKG_CHECK_MODULES(MONO_DEPENDENCY, mono >= $MONO_REQUIRED_VERSION, have_mono=true, have_mono=false)
228 if test "x$enable_mono" = "xyes"; then
229 if test "x$have_mono" = "xfalse"; then
230 AC_MSG_ERROR([Mono was not found])
234 if test "x$have_mono" = "xtrue"; then
235 if test `uname -s` = "Darwin"; then
236 AC_PATH_PROG(RUNTIME, mint, no)
237 AC_PATH_PROG(CSC, mcs, no)
241 AC_PATH_PROG(RUNTIME, mono, no)
242 AC_PATH_PROG(CSC, mcs, no)
247 AC_PATH_PROG(CSC, csc.exe, no)
253 if test x$enable_mono = xyes; then
254 if test x$have_mcs = xno ; then
255 AC_MSG_ERROR([Building Mono bindings explicitly required, but mcs compiler not found])
259 AC_PATH_PROG(GACUTIL, gacutil, no)
260 if test "x$GACUTIL" = "xno" ; then
261 AC_MSG_ERROR([No gacutil tool found])
267 if test x$enable_mono = xauto ; then
268 if test x$CSC = xno ; then
272 AC_PATH_PROG(GACUTIL, gacutil, no)
273 if test "x$GACUTIL" = "xno" ; then
287 AM_CONDITIONAL(DBUS_USE_CSC, test x$enable_mono = xyes)
289 #### Look for monodoc
290 MONODOC_REQUIRED_VERSION=0.16
291 AC_SUBST(MONODOC_REQUIRED_VERSION)
292 PKG_CHECK_MODULES(MONODOC_DEPENDENCY, monodoc >= $MONODOC_REQUIRED_VERSION, have_monodoc=yes, have_monodoc=no)
294 if test x$enable_mono_docs = xyes; then
295 if test x$have_monodoc = xno ; then
296 AC_MSG_ERROR([Building Mono docs explicitly required, but monodoc not found])
298 AC_PATH_PROG(MONODOC, monodoc, no)
299 if test x$MONODOC = xno; then
300 AC_MSG_ERROR([Building Mono docs explicitly required, but monodoc not found])
305 if test x$enable_mono_docs = xauto ; then
306 if test x$have_monodoc = xno ; then
310 AC_PATH_PROG(MONODOC, monodoc, no)
311 if test x$MONODOC = xno; then
322 AM_CONDITIONAL(ENABLE_MONODOC, test "x$enable_mono_docs" = "xyes")
325 # let ourselves use our own unstable API
326 CPPFLAGS="-DDBUS_API_SUBJECT_TO_CHANGE=1 $CPPFLAGS"
327 # compress spaces in flags
328 CFLAGS=`echo "$CFLAGS" | sed -e 's/ +/ /g'`
329 CXXFLAGS=`echo "$CXXFLAGS" | sed -e 's/ +/ /g'`
330 CPPFLAGS=`echo "$CPPFLAGS" | sed -e 's/ +/ /g'`
333 if test x$enable_gcov = xyes; then
334 ## so that config.h changes when you toggle gcov support
335 AC_DEFINE_UNQUOTED(DBUS_GCOV_ENABLED, 1, [Defined if gcov is enabled to force a rebuild due to config.h changing])
337 AC_MSG_CHECKING([for gcc 3.3 version of gcov file format])
339 AC_RUN_IFELSE( [AC_LANG_PROGRAM( , [[ if (__GNUC__ >=3 && __GNUC_MINOR__ >= 3) exit (0); else exit (1); ]])],
341 if test x$have_gcc33_gcov = xyes ; then
342 AC_DEFINE_UNQUOTED(DBUS_HAVE_GCC33_GCOV, 1, [Defined if we have gcc 3.3 and thus the new gcov format])
344 AC_MSG_RESULT($have_gcc33_gcov)
346 AM_CONDITIONAL(DBUS_GCOV_ENABLED, test x$enable_gcov = xyes)
350 AC_CHECK_SIZEOF(char)
351 AC_CHECK_SIZEOF(short)
352 AC_CHECK_SIZEOF(long)
354 AC_CHECK_SIZEOF(void *)
355 AC_CHECK_SIZEOF(long long)
356 AC_CHECK_SIZEOF(__int64)
358 ### See what our 64 bit type is called
359 AC_MSG_CHECKING([64-bit integer type])
364 dbusint64_constant='(val)'
365 dbusuint64_constant='(val)'
369 dbusint64_constant='(val##L)'
370 dbusuint64_constant='(val##UL)'
372 $ac_cv_sizeof_long_long)
373 dbusint64='long long'
374 dbusint64_constant='(val##LL)'
375 dbusuint64_constant='(val##ULL)'
377 $ac_cv_sizeof___int64)
379 dbusint64_constant='(val##i64)'
380 dbusuint64_constant='(val##ui64)'
384 if test -z "$dbusint64" ; then
385 DBUS_INT64_TYPE="no_int64_type_detected"
388 DBUS_UINT64_CONSTANT=
389 AC_MSG_RESULT([none found])
391 DBUS_INT64_TYPE="$dbusint64"
393 DBUS_INT64_CONSTANT="$dbusint64_constant"
394 DBUS_UINT64_CONSTANT="$dbusuint64_constant"
395 AC_MSG_RESULT($DBUS_INT64_TYPE)
398 AC_SUBST(DBUS_INT64_TYPE)
399 AC_SUBST(DBUS_INT64_CONSTANT)
400 AC_SUBST(DBUS_UINT64_CONSTANT)
401 AC_SUBST(DBUS_HAVE_INT64)
403 ### see what 32-bit int is called
404 AC_MSG_CHECKING([32-bit integer type])
418 if test -z "$dbusint32" ; then
419 DBUS_INT32_TYPE="no_int32_type_detected"
420 AC_MSG_ERROR([No 32-bit integer type found])
422 DBUS_INT32_TYPE="$dbusint32"
423 AC_MSG_RESULT($DBUS_INT32_TYPE)
426 AC_SUBST(DBUS_INT32_TYPE)
428 ### see what 16-bit int is called
429 AC_MSG_CHECKING([16-bit integer type])
440 if test -z "$dbusint16" ; then
441 DBUS_INT16_TYPE="no_int16_type_detected"
442 AC_MSG_ERROR([No 16-bit integer type found])
444 DBUS_INT16_TYPE="$dbusint16"
445 AC_MSG_RESULT($DBUS_INT16_TYPE)
448 AC_SUBST(DBUS_INT16_TYPE)
454 dnl **********************************
455 dnl *** va_copy checks (from GLib) ***
456 dnl **********************************
457 dnl we currently check for all three va_copy possibilities, so we get
458 dnl all results in config.log for bug reports.
459 AC_CACHE_CHECK([for an implementation of va_copy()],dbus_cv_va_copy,[
460 AC_LINK_IFELSE([#include <stdarg.h>
461 void f (int i, ...) {
462 va_list args1, args2;
464 va_copy (args2, args1);
465 if (va_arg (args2, int) != 42 || va_arg (args1, int) != 42)
467 va_end (args1); va_end (args2);
473 [dbus_cv_va_copy=yes],
474 [dbus_cv_va_copy=no])
476 AC_CACHE_CHECK([for an implementation of __va_copy()],dbus_cv___va_copy,[
477 AC_LINK_IFELSE([#include <stdarg.h>
478 void f (int i, ...) {
479 va_list args1, args2;
481 __va_copy (args2, args1);
482 if (va_arg (args2, int) != 42 || va_arg (args1, int) != 42)
484 va_end (args1); va_end (args2);
490 [dbus_cv___va_copy=yes],
491 [dbus_cv___va_copy=no])
494 if test "x$dbus_cv_va_copy" = "xyes"; then
495 dbus_va_copy_func=va_copy
496 else if test "x$dbus_cv___va_copy" = "xyes"; then
497 dbus_va_copy_func=__va_copy
501 if test -n "$dbus_va_copy_func"; then
502 AC_DEFINE_UNQUOTED(DBUS_VA_COPY,$dbus_va_copy_func,[A 'va_copy' style function])
505 AC_CACHE_CHECK([whether va_lists can be copied by value],dbus_cv_va_val_copy,[
506 AC_TRY_RUN([#include <stdarg.h>
507 void f (int i, ...) {
508 va_list args1, args2;
511 if (va_arg (args2, int) != 42 || va_arg (args1, int) != 42)
513 va_end (args1); va_end (args2);
519 [dbus_cv_va_val_copy=yes],
520 [dbus_cv_va_val_copy=no],
521 [dbus_cv_va_val_copy=yes])
524 if test "x$dbus_cv_va_val_copy" = "xno"; then
525 AC_DEFINE(DBUS_VA_COPY_AS_ARRAY,1, ['va_lists' cannot be copies as values])
529 #### Atomic integers (checks by Sebastian Wilhelmi for GLib)
530 AC_MSG_CHECKING([whether to use inline assembler routines for atomic integers])
532 if test x"$GCC" = xyes; then
533 if test "x$enable_ansi" = "xyes"; then
541 AC_MSG_RESULT([i486])
542 AC_DEFINE_UNQUOTED(DBUS_USE_ATOMIC_INT_486, 1, [Use atomic integer implementation for 486])
551 if test x$have_atomic_inc = xyes ; then
552 AC_DEFINE_UNQUOTED(DBUS_HAVE_ATOMIC_INT, 1, [Some atomic integer implementation present])
555 #### Various functions
556 AC_CHECK_LIB(socket,socket)
557 AC_CHECK_LIB(nsl,gethostbyname)
559 AC_CHECK_FUNCS(vsnprintf vasprintf nanosleep usleep poll setenv unsetenv socketpair getgrouplist)
561 AC_CHECK_HEADERS(execinfo.h, [AC_CHECK_FUNCS(backtrace)])
563 AC_CACHE_CHECK([for posix getpwnam_r],
564 ac_cv_func_posix_getpwnam_r,
570 struct passwd pwd, *pwptr = &pwd;
573 error = getpwnam_r ("", &pwd, buffer,
574 sizeof (buffer), &pwptr);
575 return (error < 0 && errno == ENOSYS)
578 [ac_cv_func_posix_getpwnam_r=yes],
579 [ac_cv_func_posix_getpwnam_r=no])])
580 if test "$ac_cv_func_posix_getpwnam_r" = yes; then
581 AC_DEFINE(HAVE_POSIX_GETPWNAM_R,1,
582 [Have POSIX function getpwnam_r])
584 AC_CACHE_CHECK([for nonposix getpwnam_r],
585 ac_cv_func_nonposix_getpwnam_r,
586 [AC_TRY_LINK([#include <pwd.h>],
589 getpwnam_r ("", &pwd, buffer,
591 [ac_cv_func_nonposix_getpwnam_r=yes],
592 [ac_cv_func_nonposix_getpwnam_r=no])])
593 if test "$ac_cv_func_nonposix_getpwnam_r" = yes; then
594 AC_DEFINE(HAVE_NONPOSIX_GETPWNAM_R,1,
595 [Have non-POSIX function getpwnam_r])
599 dnl check for socklen_t
600 AC_MSG_CHECKING(whether socklen_t is defined)
602 #include <sys/types.h>
603 #include <sys/socket.h>
608 ],dbus_have_socklen_t=yes,dbus_have_socklen_t=no)
609 AC_MSG_RESULT($dbus_have_socklen_t)
611 if test "x$dbus_have_socklen_t" = "xyes"; then
612 AC_DEFINE(HAVE_SOCKLEN_T,1,[Have socklen_t type])
615 dnl check for writev header and writev function so we're
616 dnl good to go if HAVE_WRITEV gets defined.
617 AC_CHECK_HEADERS(sys/uio.h, [AC_CHECK_FUNCS(writev)])
619 dnl check for flavours of varargs macros (test from GLib)
620 AC_MSG_CHECKING(for ISO C99 varargs macros in C)
622 int a(int p1, int p2, int p3);
623 #define call_a(...) a(1,__VA_ARGS__)
625 ],dbus_have_iso_c_varargs=yes,dbus_have_iso_c_varargs=no)
626 AC_MSG_RESULT($dbus_have_iso_c_varargs)
628 AC_MSG_CHECKING(for GNUC varargs macros)
630 int a(int p1, int p2, int p3);
631 #define call_a(params...) a(1,params)
633 ],dbus_have_gnuc_varargs=yes,dbus_have_gnuc_varargs=no)
634 AC_MSG_RESULT($dbus_have_gnuc_varargs)
636 dnl Output varargs tests
637 if test x$dbus_have_iso_c_varargs = xyes; then
638 AC_DEFINE(HAVE_ISO_VARARGS,1,[Have ISO C99 varargs macros])
640 if test x$dbus_have_gnuc_varargs = xyes; then
641 AC_DEFINE(HAVE_GNUC_VARARGS,1,[Have GNU-style varargs macros])
644 dnl Check for various credentials.
645 AC_MSG_CHECKING(for struct cmsgcred)
647 #include <sys/types.h>
648 #include <sys/socket.h>
650 struct cmsgcred cred;
653 ],dbus_have_struct_cmsgcred=yes,dbus_have_struct_cmsgcred=no)
654 AC_MSG_RESULT($dbus_have_struct_cmsgcred)
656 if test x$dbus_have_struct_cmsgcred = xyes; then
657 AC_DEFINE(HAVE_CMSGCRED,1,[Have cmsgcred structure])
660 AC_CHECK_FUNCS(getpeerucred getpeereid)
662 #### Abstract sockets
664 AC_MSG_CHECKING(abstract socket namespace)
666 AC_RUN_IFELSE([AC_LANG_PROGRAM(
668 #include <sys/types.h>
672 #include <sys/socket.h>
678 struct sockaddr_un addr;
680 listen_fd = socket (PF_UNIX, SOCK_STREAM, 0);
684 fprintf (stderr, "socket() failed: %s\n", strerror (errno));
688 memset (&addr, '\0', sizeof (addr));
689 addr.sun_family = AF_UNIX;
690 strcpy (addr.sun_path, "X/tmp/dbus-fake-socket-path-used-in-configure-test");
691 addr.sun_path[0] = '\0'; /* this is what makes it abstract */
693 if (bind (listen_fd, (struct sockaddr*) &addr, SUN_LEN (&addr)) < 0)
695 fprintf (stderr, "Abstract socket namespace bind() failed: %s\n",
702 [have_abstract_sockets=yes],
703 [have_abstract_sockets=no])
705 AC_MSG_RESULT($have_abstract_sockets)
707 if test x$enable_abstract_sockets = xyes; then
708 if test x$have_abstract_sockets = xno; then
709 AC_MSG_ERROR([Abstract sockets explicitly required, and support not detected.])
713 if test x$enable_abstract_sockets = xno; then
714 have_abstract_sockets=no;
717 if test x$have_abstract_sockets = xyes ; then
718 DBUS_PATH_OR_ABSTRACT=abstract
719 AC_DEFINE(HAVE_ABSTRACT_SOCKETS,1,[Have abstract socket namespace])
721 DBUS_PATH_OR_ABSTRACT=path
724 # this is used in addresses to prefer abstract, e.g.
725 # unix:path=/foo or unix:abstract=/foo
726 AC_SUBST(DBUS_PATH_OR_ABSTRACT)
728 #### Sort out gettext
730 # this makes us require GLib to run autoconf, but not at runtime
734 # INTLLIBS is now set
736 # (if someone wants to go through and make internationalization
737 # conditional with #ifdef ENABLE_NLS then go crazy and send us a patch,
738 # but right now we won't build without gettext)
739 if test "$gt_cv_have_gettext" != "yes" ; then
741 *** You must have either have gettext support in your C library, or use the
742 *** GNU gettext library. (http://www.gnu.org/software/gettext/gettext.html
746 #### Sort out XML library
749 AC_CHECK_LIB(expat, XML_ParserCreate_MM,
750 [ AC_CHECK_HEADERS(expat.h, have_expat=true, have_expat=false) ],
753 PKG_CHECK_MODULES(LIBXML, libxml-2.0, have_libxml=true, have_libxml=false)
755 # see what we want to use
756 dbus_use_libxml=false
758 if test x$with_xml = xexpat; then
760 if ! $have_expat ; then
761 AC_MSG_ERROR([Explicitly requested expat but expat not found])
763 elif test x$with_xml = xlibxml; then
765 if ! $have_libxml ; then
766 AC_MSG_ERROR([Explicitly requested libxml but libxml not found])
769 ### expat is the default because libxml can't currently survive
770 ### our brutal OOM-handling unit test setup.
771 ### http://bugzilla.gnome.org/show_bug.cgi?id=109368
772 if $have_expat ; then
775 elif $have_libxml ; then
779 AC_MSG_ERROR([No XML library found, check config.log for failed attempts])
783 AM_CONDITIONAL(DBUS_USE_EXPAT, $dbus_use_expat)
784 AM_CONDITIONAL(DBUS_USE_LIBXML, $dbus_use_libxml)
786 if $dbus_use_expat; then
790 if $dbus_use_libxml; then
791 XML_LIBS=$LIBXML_LIBS
792 XML_CFLAGS=$LIBXML_CFLAGS
796 if test x$enable_selinux = xno ; then
799 # See if we have SELinux library
800 AC_CHECK_LIB(selinux, is_selinux_enabled,
801 have_selinux=yes, have_selinux=no)
803 # see if we have the SELinux header with the new D-BUS stuff in it
804 if test x$have_selinux = xyes ; then
805 AC_MSG_CHECKING([for DBUS Flask permissions in selinux/av_permissions.h])
806 AC_TRY_COMPILE([#include <selinux/av_permissions.h>],
807 [#ifdef DBUS__ACQUIRE_SVC return 0;
809 #error DBUS__ACQUIRE_SVC not defined
811 have_selinux=yes, have_selinux=no)
812 AC_MSG_RESULT($have_selinux)
815 if test x$enable_selinux = xauto ; then
816 if test x$have_selinux = xno ; then
817 AC_MSG_WARN([Sufficiently new SELinux library not found])
820 if test x$have_selinux = xno ; then
821 AC_MSG_ERROR([SElinux explicitly required, and SELinux library not found])
826 AM_CONDITIONAL(HAVE_SELINUX, test x$have_selinux = xyes)
828 if test x$have_selinux = xyes ; then
829 SELINUX_LIBS="-lselinux -lpthread"
830 AC_DEFINE(HAVE_SELINUX,1,[SELinux support])
836 if test x$enable_dnotify = xno ; then
839 if test x$target_os = xlinux-gnu -o x$target_os = xlinux; then
846 dnl check if dnotify backend is enabled
847 if test x$have_dnotify = xyes; then
848 AC_DEFINE(DBUS_BUS_ENABLE_DNOTIFY_ON_LINUX,1,[Use dnotify on Linux])
851 #### Set up final flags
854 AC_SUBST(DBUS_CLIENT_CFLAGS)
855 AC_SUBST(DBUS_CLIENT_LIBS)
857 DBUS_BUS_CFLAGS=$XML_CFLAGS
858 DBUS_BUS_LIBS="$XML_LIBS $SELINUX_LIBS $INTLLIBS"
859 AC_SUBST(DBUS_BUS_CFLAGS)
860 AC_SUBST(DBUS_BUS_LIBS)
864 AC_SUBST(DBUS_TEST_CFLAGS)
865 AC_SUBST(DBUS_TEST_LIBS)
868 PKG_CHECK_MODULES(DBUS_GLIB, gobject-2.0 >= 2.4, have_glib=yes, have_glib=no)
869 PKG_CHECK_MODULES(DBUS_GLIB_THREADS, gthread-2.0 >= 2.4, have_glib_threads=yes, have_glib_threads=no)
871 if test x$have_glib = xno ; then
872 AC_MSG_WARN([GLib development libraries not found])
875 if test x$enable_glib = xyes; then
876 if test x$have_glib = xno; then
877 AC_MSG_ERROR([GLib explicitly required, and GLib development libraries not found])
881 if test x$enable_glib = xno; then
885 AM_CONDITIONAL(HAVE_GLIB, test x$have_glib = xyes)
886 AM_CONDITIONAL(HAVE_GLIB_THREADS, test x$have_glib_threads = xyes)
888 if test x$have_glib = xyes; then
889 GLIB_GENMARSHAL=`$PKG_CONFIG --variable=glib_genmarshal glib-2.0`
891 GLIB_GENMARSHAL=glib-not-enabled-so-there-is-no-genmarshal
893 AC_SUBST(GLIB_GENMARSHAL)
896 AC_SUBST(DBUS_GLIB_CFLAGS)
897 AC_SUBST(DBUS_GLIB_LIBS)
898 AC_SUBST(DBUS_GLIB_THREADS_LIBS)
900 DBUS_GLIB_TOOL_CFLAGS=$XML_CFLAGS
901 DBUS_GLIB_TOOL_LIBS="$XML_LIBS $INTLLIBS"
902 AC_SUBST(DBUS_GLIB_TOOL_CFLAGS)
903 AC_SUBST(DBUS_GLIB_TOOL_LIBS)
906 if test x$have_glib = xno ; then
907 AC_MSG_WARN([Can't use GTK+ since GLib not enabled])
910 PKG_CHECK_MODULES(DBUS_GTK, gtk+-2.0 >= 2.4, have_gtk=yes, have_gtk=no)
911 PKG_CHECK_MODULES(DBUS_GTK_THREADS, gtk+-2.0 >= 2.4 gthread-2.0, have_gtk_threads=yes, have_gtk_threads=no)
914 if test x$have_gtk = xno ; then
915 AC_MSG_WARN([GTK+ development libraries not found])
918 if test x$enable_gtk = xyes; then
919 if test x$have_gtk = xno; then
920 AC_MSG_ERROR([GTK+ explicitly required, and GTK+ development libraries not found])
924 if test x$enable_gtk = xno; then
928 AM_CONDITIONAL(HAVE_GTK, test x$have_gtk = xyes)
931 AC_SUBST(DBUS_GTK_CFLAGS)
932 AC_SUBST(DBUS_GTK_LIBS)
933 AC_SUBST(DBUS_GTK_THREADS_CFLAGS)
934 AC_SUBST(DBUS_GTK_THREADS_LIBS)
938 AC_PATH_PROG(QT3_MOC, moc, no)
941 AC_MSG_CHECKING([for qglobal.h])
942 if test -n "$QTDIR" -a -f "$QTDIR/include/qglobal.h"; then
944 DBUS_QT3_CXXFLAGS="-I$QTDIR/include"
946 for dir in "${prefix}/include/qt" "/usr/include/qt-3.1" "/usr/include/qt3" "/usr/include/qt" "/usr/lib/qt/include" "/usr/lib/qt-3.1/include"; do
947 if test -f "$dir/qglobal.h"; then
949 DBUS_QT3_CXXFLAGS="-I$dir"
950 DBUS_QT3_LIBS="-L$QTDIR/lib -lqt-mt"
954 if test x$have_qt3 = xyes; then
955 AC_MSG_RESULT([found])
957 AC_MSG_RESULT([not found])
960 if test x$have_qt3 = xno; then
961 AC_MSG_WARN([Qt3 development libraries not found])
964 if test x$enable_qt3 = xyes; then
965 if test x$have_qt3 = xno; then
966 AC_MSG_ERROR([Qt3 integration explicitly required, and Qt3 libraries not found])
970 if test x$enable_qt3 = xno; then
974 AM_CONDITIONAL(HAVE_QT3, test x$have_qt3 = xyes)
977 AC_SUBST(DBUS_QT3_CXXFLAGS)
978 AC_SUBST(DBUS_QT3_LIBS)
983 if test x$enable_qt_debug = xyes; then
985 PKG_CHECK_MODULES(DBUS_QT, QtCore_debug >= 4.0, have_qt_debug=yes, have_qt_debug=no)
986 if test x$have_qt_debug = xno; then
987 AC_MSG_ERROR([Qt debug libraries explicitly required, but not found])
991 QT_TESTLIB=QtTest_debug
994 PKG_CHECK_MODULES(DBUS_QT, QtCore >= 4.0, have_qt=yes, have_qt=no)
996 if test x$have_qt = xno ; then
997 AC_MSG_WARN([Qt development libraries not found])
1000 if test x$enable_qt = xyes; then
1001 if test x$have_qt = xno; then
1002 AC_MSG_ERROR([Qt integration explicitly required, and Qt libraries not found])
1005 if test x$enable_qt = xno; then
1013 QT_MOC=`$PKG_CONFIG --variable=exec_prefix $QT_CORE`
1014 QT_MOC=${QT_MOC}/bin/moc
1016 AM_CONDITIONAL(HAVE_QT, test x$have_qt = xyes)
1019 AC_SUBST(DBUS_QT_CFLAGS)
1020 AC_SUBST(DBUS_QT_LIBS)
1024 dnl QTestLib detection
1025 PKG_CHECK_MODULES(DBUS_QTESTLIB, $QT_TESTLIB >= 4.1, have_qtest=yes, have_qtest=no)
1027 if test x$have_qtest = xno ; then
1028 AC_MSG_WARN([Qt Unit Test library not found])
1031 if test x$have_qt = xno; then
1035 AM_CONDITIONAL(HAVE_QTESTLIB, test x$have_qtest = xyes)
1037 AC_SUBST(DBUS_QTESTLIB_CFLAGS)
1038 AC_SUBST(DBUS_QTESTLIB_LIBS)
1043 ## for now enable_x11 just tracks have_x11,
1044 ## there's no --enable-x11
1045 if test x$no_x = xyes ; then
1053 if test x$enable_x11 = xyes ; then
1054 AC_DEFINE(DBUS_BUILD_X11,1,[Build X11-dependent code])
1055 DBUS_X_LIBS="$X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
1056 DBUS_X_CFLAGS="$X_CFLAGS"
1062 AC_SUBST(DBUS_X_CFLAGS)
1063 AC_SUBST(DBUS_X_LIBS)
1065 ### Doxygen Documentation
1067 AC_PATH_PROG(DOXYGEN, doxygen, no)
1069 AC_MSG_CHECKING([whether to build Doxygen documentation])
1071 if test x$DOXYGEN = xno ; then
1077 if test x$enable_doxygen_docs = xauto ; then
1078 if test x$have_doxygen = xno ; then
1079 enable_doxygen_docs=no
1081 enable_doxygen_docs=yes
1085 if test x$enable_doxygen_docs = xyes; then
1086 if test x$have_doxygen = xno; then
1087 AC_MSG_ERROR([Building Doxygen docs explicitly required, but Doxygen not found])
1091 AM_CONDITIONAL(DBUS_DOXYGEN_DOCS_ENABLED, test x$enable_doxygen_docs = xyes)
1094 ### XML Documentation
1096 AC_PATH_PROG(XMLTO, xmlto, no)
1098 AC_MSG_CHECKING([whether to build XML documentation])
1100 if test x$XMLTO = xno ; then
1106 if test x$enable_xml_docs = xauto ; then
1107 if test x$have_xmlto = xno ; then
1114 if test x$enable_xml_docs = xyes; then
1115 if test x$have_xmlto = xno; then
1116 AC_MSG_ERROR([Building XML docs explicitly required, but xmlto not found])
1120 AM_CONDITIONAL(DBUS_XML_DOCS_ENABLED, test x$enable_xml_docs = xyes)
1123 #### Have to go $localstatedir->$prefix/var->/usr/local/var
1124 #### someone please fix this a better way...
1126 #### find the actual value for $prefix that we'll end up with
1127 ## (I know this is broken and should be done in the Makefile, but
1128 ## that's a major pain and almost nobody actually seems to care)
1130 if test "x$prefix" = "xNONE"; then
1131 REAL_PREFIX=$ac_default_prefix
1136 ## temporarily change prefix and exec_prefix
1140 if test "x$exec_prefix" = xNONE ; then
1141 REAL_EXEC_PREFIX=$REAL_PREFIX
1143 REAL_EXEC_PREFIX=$exec_prefix
1145 old_exec_prefix=$exec_prefix
1146 exec_prefix=$REAL_EXEC_PREFIX
1149 LOCALSTATEDIR_TMP="$localstatedir"
1150 EXPANDED_LOCALSTATEDIR=`eval echo $LOCALSTATEDIR_TMP`
1151 AC_SUBST(EXPANDED_LOCALSTATEDIR)
1153 SYSCONFDIR_TMP="$sysconfdir"
1154 EXPANDED_SYSCONFDIR=`eval echo $SYSCONFDIR_TMP`
1155 AC_SUBST(EXPANDED_SYSCONFDIR)
1157 BINDIR_TMP="$bindir"
1158 EXPANDED_BINDIR=`eval echo $BINDIR_TMP`
1159 AC_SUBST(EXPANDED_BINDIR)
1161 LIBDIR_TMP="$libdir"
1162 EXPANDED_LIBDIR=`eval echo $LIBDIR_TMP`
1163 AC_SUBST(EXPANDED_LIBDIR)
1165 DATADIR_TMP="$datadir"
1166 EXPANDED_DATADIR=`eval echo $DATADIR_TMP`
1167 AC_SUBST(EXPANDED_DATADIR)
1169 ## put prefix and exec_prefix back
1171 exec_prefix=$old_exec_prefix
1173 #### Check our operating system
1174 operating_system=unknown
1175 if test -f /etc/redhat-release || test -f $EXPANDED_SYSCONFDIR/redhat-release ; then
1176 operating_system=redhat
1179 if test -f /etc/slackware-version || test -f $EXPANDED_SYSCONFDIR/slackware-version ; then
1180 operating_system=slackware
1183 #### Sort out init scripts
1185 if test x$with_init_scripts = x; then
1186 if test xredhat = x$operating_system ; then
1187 with_init_scripts=redhat
1189 if test xslackware = x$operating_system ; then
1190 with_init_scripts=slackware
1192 with_init_scripts=none
1197 AM_CONDITIONAL(DBUS_INIT_SCRIPTS_RED_HAT, test x$with_init_scripts = xredhat)
1199 AM_CONDITIONAL(DBUS_INIT_SCRIPTS_SLACKWARE, test x$with_init_scripts = xslackware)
1201 ##### Set up location for system bus socket
1202 if ! test -z "$with_system_socket"; then
1203 DBUS_SYSTEM_SOCKET=$with_system_socket
1205 DBUS_SYSTEM_SOCKET=${EXPANDED_LOCALSTATEDIR}/run/dbus/system_bus_socket
1208 AC_SUBST(DBUS_SYSTEM_SOCKET)
1209 AC_DEFINE_UNQUOTED(DBUS_SYSTEM_SOCKET,"$DBUS_SYSTEM_SOCKET",[The name of the socket the system bus listens on by default])
1211 ## system bus only listens on local domain sockets, and never
1212 ## on an abstract socket (so only root can create the socket)
1213 DBUS_SYSTEM_BUS_DEFAULT_ADDRESS="unix:path=$DBUS_SYSTEM_SOCKET"
1214 AC_SUBST(DBUS_SYSTEM_BUS_DEFAULT_ADDRESS)
1215 AC_DEFINE_UNQUOTED(DBUS_SYSTEM_BUS_DEFAULT_ADDRESS, "$DBUS_SYSTEM_BUS_DEFAULT_ADDRESS",[The default D-BUS address of the system bus])
1217 #### Set up the pid file
1218 if ! test -z "$with_system_pid_file"; then
1219 DBUS_SYSTEM_PID_FILE=$with_system_pid_file
1220 elif test x$operating_system = xredhat ; then
1221 DBUS_SYSTEM_PID_FILE=${EXPANDED_LOCALSTATEDIR}/run/messagebus.pid
1223 DBUS_SYSTEM_PID_FILE=${EXPANDED_LOCALSTATEDIR}/run/dbus/pid
1226 AC_SUBST(DBUS_SYSTEM_PID_FILE)
1228 #### Directory to check for console ownership
1229 if ! test -z "$with_console_auth_dir"; then
1230 DBUS_CONSOLE_AUTH_DIR=$with_console_auth_dir
1232 DBUS_CONSOLE_AUTH_DIR=/var/run/console/
1235 AC_SUBST(DBUS_CONSOLE_AUTH_DIR)
1236 AC_DEFINE_UNQUOTED(DBUS_CONSOLE_AUTH_DIR, "$DBUS_CONSOLE_AUTH_DIR", [Directory to check for console ownerhip])
1238 #### User to start the system bus as
1239 if test -z "$with_dbus_user" ; then
1240 DBUS_USER=messagebus
1242 DBUS_USER=$with_dbus_user
1245 AC_DEFINE_UNQUOTED(DBUS_USER,"$DBUS_USER", [User for running the system BUS daemon])
1247 #### Tell tests where to find certain stuff in builddir
1248 ABSOLUTE_TOP_BUILDDIR=`cd ${ac_top_builddir}. && pwd`
1250 AC_DEFUN(TEST_PATH, [
1251 TEST_$1=${ABSOLUTE_TOP_BUILDDIR}/test/$2
1252 AC_DEFINE_UNQUOTED(TEST_$1, "$TEST_$1",
1253 [Full path to test file test/$2 in builddir])
1257 TEST_PATH(SERVICE_DIR, data/valid-service-files)
1258 TEST_PATH(SERVICE_BINARY, test-service)
1259 TEST_PATH(SHELL_SERVICE_BINARY, test-shell-service)
1260 TEST_PATH(GLIB_SERVICE_BINARY, glib/test-service-glib)
1261 TEST_PATH(PYTHON_SERVICE_BINARY, python/test-service.py)
1262 TEST_PATH(EXIT_BINARY, test-exit)
1263 TEST_PATH(SEGFAULT_BINARY, test-segfault)
1264 TEST_PATH(SLEEP_FOREVER_BINARY, test-sleep-forever)
1265 AC_SUBST(ABSOLUTE_TOP_BUILDDIR)
1267 #### Find socket directories
1268 if ! test -z "$TMPDIR" ; then
1269 DEFAULT_SOCKET_DIR=$TMPDIR
1270 elif ! test -z "$TEMP" ; then
1271 DEFAULT_SOCKET_DIR=$TEMP
1272 elif ! test -z "$TMP" ; then
1273 DEFAULT_SOCKET_DIR=$TMP
1275 DEFAULT_SOCKET_DIR=/tmp
1278 if ! test -z "$with_test_socket_dir" ; then
1279 TEST_SOCKET_DIR="$with_test_socket_dir"
1281 TEST_SOCKET_DIR=$DEFAULT_SOCKET_DIR
1283 AC_SUBST(TEST_SOCKET_DIR)
1284 AC_DEFINE_UNQUOTED(DBUS_TEST_SOCKET_DIR, "$TEST_SOCKET_DIR", [Where to put test sockets])
1286 if ! test -z "$with_session_socket_dir" ; then
1287 DBUS_SESSION_SOCKET_DIR="$with_session_socket_dir"
1289 DBUS_SESSION_SOCKET_DIR=$DEFAULT_SOCKET_DIR
1291 AC_DEFINE_UNQUOTED(DBUS_SESSION_SOCKET_DIR, "$DBUS_SESSION_SOCKET_DIR", [Where per-session bus puts its sockets])
1292 AC_SUBST(DBUS_SESSION_SOCKET_DIR)
1294 # Detect if we can build Python bindings (need python, python headers, and pyrex)
1295 if test x$enable_python = xno; then
1298 have_python_version=2.4
1299 AC_MSG_NOTICE([Checking to see if we can build Python bindings])
1303 if test -z "$PYTHON" ; then
1304 AC_MSG_WARN([Python not found])
1306 AC_MSG_CHECKING([whether $PYTHON version >= $have_python_version])
1307 AM_PYTHON_CHECK_VERSION([$PYTHON], [$have_python_version],
1308 [have_python_version="yes"],
1309 [have_python_version="too old"])
1311 AC_MSG_RESULT($have_python_version)
1313 AC_CHECK_PROGS(PYREX, pyrexc)
1315 if test -z "$PYREX" ; then
1321 AM_CHECK_PYTHON_HEADERS(have_python_headers=yes,have_python_headers=no)
1323 if test x$have_pyrex = xyes -a x$have_python_headers = xyes -a "x$have_python_version" = xyes ; then
1328 if test x$have_python = xno ; then
1329 if test x$enable_python = xyes ; then
1330 AC_MSG_ERROR([Building python explicitly requested, but can't build python bindings because either Pyrex, Python headers or a suitable Python version was not found])
1332 AC_MSG_WARN([Couldn't find either Pyrex, the Python headers or a suitable version of Python, not building Python bindings])
1337 AM_CONDITIONAL(HAVE_PYTHON, test x$have_python = xyes)
1341 dbus/dbus-arch-deps.h
1350 glib/examples/Makefile
1351 glib/examples/statemachine/Makefile
1353 python/examples/Makefile
1358 gcj/org/freedesktop/Makefile
1359 gcj/org/freedesktop/dbus/Makefile
1361 mono/AssemblyInfo.cs
1362 mono/dbus-sharp.dll.config
1363 mono/example/Makefile
1369 test/python/Makefile
1371 test/name-test/Makefile
1376 test/data/valid-config-files/debug-allow-all.conf
1377 test/data/valid-config-files/debug-allow-all-sha1.conf
1378 test/data/valid-service-files/debug-echo.service
1379 test/data/valid-service-files/debug-segfault.service
1380 test/data/valid-service-files/debug-glib.service
1381 test/data/valid-service-files/debug-shell-echo-success.service
1382 test/data/valid-service-files/debug-shell-echo-fail.service
1383 test/data/valid-service-files/debug-python.service
1386 ### FIXME it's bizarre that have_qt and have_glib are used
1387 ### instead of enable_ - should fix things so that enable
1388 ### is always whether it's enabled, and have is always whether
1391 dnl ==========================================================================
1397 exec_prefix: ${exec_prefix}
1398 libdir: ${EXPANDED_LIBDIR}
1399 bindir: ${EXPANDED_BINDIR}
1400 sysconfdir: ${EXPANDED_SYSCONFDIR}
1401 localstatedir: ${EXPANDED_LOCALSTATEDIR}
1402 datadir: ${EXPANDED_DATADIR}
1403 source code location: ${srcdir}
1406 cppflags: ${CPPFLAGS}
1407 cxxflags: ${CXXFLAGS}
1408 64-bit int: ${DBUS_INT64_TYPE}
1409 32-bit int: ${DBUS_INT32_TYPE}
1410 16-bit int: ${DBUS_INT16_TYPE}
1414 if test x$enable_gcj = xyes ; then
1417 gcjflags: ${GCJFLAGS}
1421 " gcj: (not enabled)"
1424 if test x$enable_mono = xyes ; then
1430 " csc: (not enabled)
1435 Maintainer mode: ${USE_MAINTAINER_MODE}
1436 gcc coverage profiling: ${enable_gcov}
1437 Building unit tests: ${enable_tests}
1438 Building verbose mode: ${enable_verbose_mode}
1439 Building assertions: ${enable_asserts}
1440 Building checks: ${enable_checks}
1441 Building Qt bindings: ${have_qt}
1442 Building Qt3 bindings: ${have_qt3}
1443 Building GLib bindings: ${have_glib}
1444 Building Python bindings: ${have_python}
1445 Building SELinux support: ${have_selinux}
1446 Building dnotify support: ${have_dnotify}
1447 Building Mono bindings: ${enable_mono}
1448 Building Mono docs: ${enable_mono_docs}
1449 Building GTK+ tools: ${have_gtk}
1450 Building X11 code: ${enable_x11}
1451 Building Doxygen docs: ${enable_doxygen_docs}
1452 Building XML docs: ${enable_xml_docs}
1453 Gettext libs (empty OK): ${INTLLIBS}
1454 Using XML parser: ${with_xml}
1455 Init scripts style: ${with_init_scripts}
1456 Abstract socket names: ${have_abstract_sockets}
1457 System bus socket: ${DBUS_SYSTEM_SOCKET}
1458 System bus address: ${DBUS_SYSTEM_BUS_DEFAULT_ADDRESS}
1459 System bus PID file: ${DBUS_SYSTEM_PID_FILE}
1460 Session bus socket dir: ${DBUS_SESSION_SOCKET_DIR}
1461 Console auth dir: ${DBUS_CONSOLE_AUTH_DIR}
1462 System bus user: ${DBUS_USER}
1463 'make check' socket dir: ${TEST_SOCKET_DIR}
1466 if test x$enable_tests = xyes; then
1467 echo "NOTE: building with unit tests increases the size of the installed library and renders it insecure."
1469 if test x$enable_tests = xyes -a x$enable_asserts = xno; then
1470 echo "NOTE: building with unit tests but without assertions means tests may not properly report failures (this configuration is only useful when doing something like profiling the tests)"
1472 if test x$enable_gcov = xyes; then
1473 echo "NOTE: building with coverage profiling is definitely for developers only."
1475 if test x$enable_verbose_mode = xyes; then
1476 echo "NOTE: building with verbose mode increases library size, may slightly increase security risk, and decreases performance."
1478 if test x$enable_asserts = xyes; then
1479 echo "NOTE: building with assertions increases library size and decreases performance."
1481 if test x$enable_checks = xno; then
1482 echo "NOTE: building without checks for arguments passed to public API makes it harder to debug apps using D-BUS, but will slightly decrease D-BUS library size and _very_ slightly improve performance."