6 AM_INIT_AUTOMAKE(dbus, 0.51)
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(qt3, [ --enable-qt3 enable Qt3-friendly client library],enable_qt3=$enableval,enable_qt3=auto)
51 AC_ARG_ENABLE(glib, [ --enable-glib enable GLib-friendly client library],enable_glib=$enableval,enable_glib=auto)
52 AC_ARG_ENABLE(gtk, [ --enable-gtk enable GTK-requiring executables],enable_gtk=$enableval,enable_gtk=auto)
53 AC_ARG_ENABLE(tests, [ --enable-tests enable unit test code],enable_tests=$enableval,enable_tests=$USE_MAINTAINER_MODE)
54 AC_ARG_ENABLE(ansi, [ --enable-ansi enable -ansi -pedantic gcc flags],enable_ansi=$enableval,enable_ansi=no)
55 AC_ARG_ENABLE(verbose-mode, [ --enable-verbose-mode support verbose debug mode],enable_verbose_mode=$enableval,enable_verbose_mode=$USE_MAINTAINER_MODE)
56 AC_ARG_ENABLE(asserts, [ --enable-asserts include assertion checks],enable_asserts=$enableval,enable_asserts=$USE_MAINTAINER_MODE)
57 AC_ARG_ENABLE(checks, [ --enable-checks include sanity checks on public API],enable_checks=$enableval,enable_checks=yes)
58 AC_ARG_ENABLE(xml-docs, [ --enable-xml-docs build XML documentation (requires xmlto)],enable_xml_docs=$enableval,enable_xml_docs=auto)
59 AC_ARG_ENABLE(doxygen-docs, [ --enable-doxygen-docs build DOXYGEN documentation (requires Doxygen)],enable_doxygen_docs=$enableval,enable_doxygen_docs=auto)
60 AC_ARG_ENABLE(gcov, [ --enable-gcov compile with coverage profiling instrumentation (gcc only)],enable_gcov=$enableval,enable_gcov=no)
61 AC_ARG_ENABLE(abstract-sockets, [ --enable-abstract-sockets use abstract socket namespace (linux only)],enable_abstract_sockets=$enableval,enable_abstract_sockets=auto)
62 AC_ARG_ENABLE(gcj, [ --enable-gcj build gcj bindings],enable_gcj=$enableval,enable_gcj=no)
63 AC_ARG_ENABLE(mono, [ --enable-mono build mono bindings],enable_mono=$enableval,enable_mono=auto)
64 AC_ARG_ENABLE(mono_docs, [ --enable-mono-docs build mono docs],enable_mono_docs=$enableval,enable_mono_docs=auto)
65 AC_ARG_ENABLE(python, [ --enable-python build python bindings],enable_python=$enableval,enable_python=auto)
66 AC_ARG_ENABLE(selinux, [ --enable-selinux build with SELinux support],enable_selinux=$enableval,enable_selinux=auto)
68 AC_ARG_WITH(xml, [ --with-xml=[libxml/expat] XML library to use])
69 AC_ARG_WITH(init-scripts, [ --with-init-scripts=[redhat] Style of init scripts to install])
70 AC_ARG_WITH(session-socket-dir, [ --with-session-socket-dir=[dirname] Where to put sockets for the per-login-session message bus])
71 AC_ARG_WITH(test-socket-dir, [ --with-test-socket-dir=[dirname] Where to put sockets for make check])
72 AC_ARG_WITH(system-pid-file, [ --with-system-pid-file=[pidfile] PID file for systemwide daemon])
73 AC_ARG_WITH(system-socket, [ --with-system-socket=[filename] UNIX domain socket for systemwide daemon])
74 AC_ARG_WITH(console-auth-dir, [ --with-console-auth-dir=[dirname] directory to check for console ownerhip])
75 AC_ARG_WITH(dbus_user, [ --with-dbus-user=<user> User for running the DBUS daemon (messagebus)])
77 dnl DBUS_BUILD_TESTS controls unit tests built in to .c files
78 dnl and also some stuff in the test/ subdir
79 AM_CONDITIONAL(DBUS_BUILD_TESTS, test x$enable_tests = xyes)
80 if test x$enable_tests = xyes; then
81 AC_DEFINE(DBUS_BUILD_TESTS,1,[Build test code])
84 if test x$enable_verbose_mode = xyes; then
85 AC_DEFINE(DBUS_ENABLE_VERBOSE_MODE,1,[Support a verbose mode])
87 if test x$enable_asserts = xno; then
88 AC_DEFINE(DBUS_DISABLE_ASSERT,1,[Disable assertion checking])
89 AC_DEFINE(G_DISABLE_ASSERT,1,[Disable GLib assertion macros])
91 if test x$enable_checks = xno; then
92 AC_DEFINE(DBUS_DISABLE_CHECKS,1,[Disable public API sanity checking])
93 AC_DEFINE(G_DISABLE_CHECKS,1,[Disable GLib public API sanity checking])
96 #### gcc warning flags
98 if test "x$GCC" = "xyes"; then
101 *[\ \ ]-Wall[\ \ ]*) ;;
102 *) CFLAGS="$CFLAGS -Wall" ;;
106 *[\ \ ]-Wchar-subscripts[\ \ ]*) ;;
107 *) CFLAGS="$CFLAGS -Wchar-subscripts" ;;
111 *[\ \ ]-Wmissing-declarations[\ \ ]*) ;;
112 *) CFLAGS="$CFLAGS -Wmissing-declarations" ;;
116 *[\ \ ]-Wmissing-prototypes[\ \ ]*) ;;
117 *) CFLAGS="$CFLAGS -Wmissing-prototypes" ;;
121 *[\ \ ]-Wnested-externs[\ \ ]*) ;;
122 *) CFLAGS="$CFLAGS -Wnested-externs" ;;
126 *[\ \ ]-Wpointer-arith[\ \ ]*) ;;
127 *) CFLAGS="$CFLAGS -Wpointer-arith" ;;
131 *[\ \ ]-Wcast-align[\ \ ]*) ;;
132 *) CFLAGS="$CFLAGS -Wcast-align" ;;
136 *[\ \ ]-Wfloat-equal[\ \ ]*) ;;
137 *) CFLAGS="$CFLAGS -Wfloat-equal" ;;
141 *[\ \ ]-Wsign-compare[\ \ ]*) ;;
142 *) CFLAGS="$CFLAGS -Wsign-compare" ;;
145 if test "x$enable_ansi" = "xyes"; then
147 *[\ \ ]-ansi[\ \ ]*) ;;
148 *) CFLAGS="$CFLAGS -ansi" ;;
152 *[\ \ ]-D_POSIX_C_SOURCE*) ;;
153 *) CFLAGS="$CFLAGS -D_POSIX_C_SOURCE=199309L" ;;
157 *[\ \ ]-D_BSD_SOURCE[\ \ ]*) ;;
158 *) CFLAGS="$CFLAGS -D_BSD_SOURCE" ;;
162 *[\ \ ]-pedantic[\ \ ]*) ;;
163 *) CFLAGS="$CFLAGS -pedantic" ;;
166 if test x$enable_gcov = xyes; then
168 *[\ \ ]-fprofile-arcs[\ \ ]*) ;;
169 *) CFLAGS="$CFLAGS -fprofile-arcs" ;;
172 *[\ \ ]-ftest-coverage[\ \ ]*) ;;
173 *) CFLAGS="$CFLAGS -ftest-coverage" ;;
176 ## remove optimization
177 CFLAGS=`echo "$CFLAGS" | sed -e 's/-O[0-9]*//g'`
181 if test x$enable_gcov = xyes; then
182 AC_MSG_ERROR([--enable-gcov can only be used with gcc])
186 #### can't use AM_PROG_GCJ since it fails fatally if no gcj found
187 AC_CHECK_PROGS(GCJ, gcj, gcj)
188 if test -z "$GCJ" ; then
191 # Needs to be here so libtool wont get confused
195 if test "x${GCJFLAGS-unset}" = xunset; then
196 GCJFLAGS="-g -O2 -Wall"
201 if test x$enable_gcj = xauto ; then
202 if test x$have_gcj = xno ; then
209 if test x$enable_gcj = xyes; then
210 if test x$have_gcj = xno ; then
211 AC_MSG_ERROR([Building gcj explicitly required, but gcj not found])
215 AM_CONDITIONAL(DBUS_USE_GCJ, test x$enable_gcj = xyes)
220 MONO_REQUIRED_VERSION=0.95
221 AC_SUBST(MONO_REQUIRED_VERSION)
222 PKG_CHECK_MODULES(MONO_DEPENDENCY, mono >= $MONO_REQUIRED_VERSION, have_mono=true, have_mono=false)
224 if test "x$enable_mono" = "xyes"; then
225 if test "x$have_mono" = "xfalse"; then
226 AC_MSG_ERROR([Mono was not found])
230 if test "x$have_mono" = "xtrue"; then
231 if test `uname -s` = "Darwin"; then
232 AC_PATH_PROG(RUNTIME, mint, no)
233 AC_PATH_PROG(CSC, mcs, no)
237 AC_PATH_PROG(RUNTIME, mono, no)
238 AC_PATH_PROG(CSC, mcs, no)
243 AC_PATH_PROG(CSC, csc.exe, no)
249 if test x$enable_mono = xyes; then
250 if test x$have_mcs = xno ; then
251 AC_MSG_ERROR([Building Mono bindings explicitly required, but mcs compiler not found])
255 AC_PATH_PROG(GACUTIL, gacutil, no)
256 if test "x$GACUTIL" = "xno" ; then
257 AC_MSG_ERROR([No gacutil tool found])
263 if test x$enable_mono = xauto ; then
264 if test x$CSC = xno ; then
268 AC_PATH_PROG(GACUTIL, gacutil, no)
269 if test "x$GACUTIL" = "xno" ; then
283 AM_CONDITIONAL(DBUS_USE_CSC, test x$enable_mono = xyes)
285 #### Look for monodoc
286 MONODOC_REQUIRED_VERSION=0.16
287 AC_SUBST(MONODOC_REQUIRED_VERSION)
288 PKG_CHECK_MODULES(MONODOC_DEPENDENCY, monodoc >= $MONODOC_REQUIRED_VERSION, have_monodoc=yes, have_monodoc=no)
290 if test x$enable_mono_docs = xyes; then
291 if test x$have_monodoc = xno ; then
292 AC_MSG_ERROR([Building Mono docs explicitly required, but monodoc not found])
294 AC_PATH_PROG(MONODOC, monodoc, no)
295 if test x$MONODOC = xno; then
296 AC_MSG_ERROR([Building Mono docs explicitly required, but monodoc not found])
301 if test x$enable_mono_docs = xauto ; then
302 if test x$have_monodoc = xno ; then
306 AC_PATH_PROG(MONODOC, monodoc, no)
307 if test x$MONODOC = xno; then
318 AM_CONDITIONAL(ENABLE_MONODOC, test "x$enable_mono_docs" = "xyes")
321 # let ourselves use our own unstable API
322 CPPFLAGS="-DDBUS_API_SUBJECT_TO_CHANGE=1 $CPPFLAGS"
323 # compress spaces in flags
324 CFLAGS=`echo "$CFLAGS" | sed -e 's/ +/ /g'`
325 CXXFLAGS=`echo "$CXXFLAGS" | sed -e 's/ +/ /g'`
326 CPPFLAGS=`echo "$CPPFLAGS" | sed -e 's/ +/ /g'`
329 if test x$enable_gcov = xyes; then
330 ## so that config.h changes when you toggle gcov support
331 AC_DEFINE_UNQUOTED(DBUS_GCOV_ENABLED, 1, [Defined if gcov is enabled to force a rebuild due to config.h changing])
333 AC_MSG_CHECKING([for gcc 3.3 version of gcov file format])
335 AC_RUN_IFELSE( [AC_LANG_PROGRAM( , [[ if (__GNUC__ >=3 && __GNUC_MINOR__ >= 3) exit (0); else exit (1); ]])],
337 if test x$have_gcc33_gcov = xyes ; then
338 AC_DEFINE_UNQUOTED(DBUS_HAVE_GCC33_GCOV, 1, [Defined if we have gcc 3.3 and thus the new gcov format])
340 AC_MSG_RESULT($have_gcc33_gcov)
342 AM_CONDITIONAL(DBUS_GCOV_ENABLED, test x$enable_gcov = xyes)
346 AC_CHECK_SIZEOF(char)
347 AC_CHECK_SIZEOF(short)
348 AC_CHECK_SIZEOF(long)
350 AC_CHECK_SIZEOF(void *)
351 AC_CHECK_SIZEOF(long long)
352 AC_CHECK_SIZEOF(__int64)
354 ### See what our 64 bit type is called
355 AC_MSG_CHECKING([64-bit integer type])
360 dbusint64_constant='(val)'
361 dbusuint64_constant='(val)'
365 dbusint64_constant='(val##L)'
366 dbusuint64_constant='(val##UL)'
368 $ac_cv_sizeof_long_long)
369 dbusint64='long long'
370 dbusint64_constant='(val##LL)'
371 dbusuint64_constant='(val##ULL)'
373 $ac_cv_sizeof___int64)
375 dbusint64_constant='(val##i64)'
376 dbusuint64_constant='(val##ui64)'
380 if test -z "$dbusint64" ; then
381 DBUS_INT64_TYPE="no_int64_type_detected"
384 DBUS_UINT64_CONSTANT=
385 AC_MSG_RESULT([none found])
387 DBUS_INT64_TYPE="$dbusint64"
389 DBUS_INT64_CONSTANT="$dbusint64_constant"
390 DBUS_UINT64_CONSTANT="$dbusuint64_constant"
391 AC_MSG_RESULT($DBUS_INT64_TYPE)
394 AC_SUBST(DBUS_INT64_TYPE)
395 AC_SUBST(DBUS_INT64_CONSTANT)
396 AC_SUBST(DBUS_UINT64_CONSTANT)
397 AC_SUBST(DBUS_HAVE_INT64)
399 ### see what 32-bit int is called
400 AC_MSG_CHECKING([32-bit integer type])
414 if test -z "$dbusint32" ; then
415 DBUS_INT32_TYPE="no_int32_type_detected"
416 AC_MSG_ERROR([No 32-bit integer type found])
418 DBUS_INT32_TYPE="$dbusint32"
419 AC_MSG_RESULT($DBUS_INT32_TYPE)
422 AC_SUBST(DBUS_INT32_TYPE)
424 ### see what 16-bit int is called
425 AC_MSG_CHECKING([16-bit integer type])
436 if test -z "$dbusint16" ; then
437 DBUS_INT16_TYPE="no_int16_type_detected"
438 AC_MSG_ERROR([No 16-bit integer type found])
440 DBUS_INT16_TYPE="$dbusint16"
441 AC_MSG_RESULT($DBUS_INT16_TYPE)
444 AC_SUBST(DBUS_INT16_TYPE)
450 dnl **********************************
451 dnl *** va_copy checks (from GLib) ***
452 dnl **********************************
453 dnl we currently check for all three va_copy possibilities, so we get
454 dnl all results in config.log for bug reports.
455 AC_CACHE_CHECK([for an implementation of va_copy()],dbus_cv_va_copy,[
456 AC_LINK_IFELSE([#include <stdarg.h>
457 void f (int i, ...) {
458 va_list args1, args2;
460 va_copy (args2, args1);
461 if (va_arg (args2, int) != 42 || va_arg (args1, int) != 42)
463 va_end (args1); va_end (args2);
469 [dbus_cv_va_copy=yes],
470 [dbus_cv_va_copy=no])
472 AC_CACHE_CHECK([for an implementation of __va_copy()],dbus_cv___va_copy,[
473 AC_LINK_IFELSE([#include <stdarg.h>
474 void f (int i, ...) {
475 va_list args1, args2;
477 __va_copy (args2, args1);
478 if (va_arg (args2, int) != 42 || va_arg (args1, int) != 42)
480 va_end (args1); va_end (args2);
486 [dbus_cv___va_copy=yes],
487 [dbus_cv___va_copy=no])
490 if test "x$dbus_cv_va_copy" = "xyes"; then
491 dbus_va_copy_func=va_copy
492 else if test "x$dbus_cv___va_copy" = "xyes"; then
493 dbus_va_copy_func=__va_copy
497 if test -n "$dbus_va_copy_func"; then
498 AC_DEFINE_UNQUOTED(DBUS_VA_COPY,$dbus_va_copy_func,[A 'va_copy' style function])
501 AC_CACHE_CHECK([whether va_lists can be copied by value],dbus_cv_va_val_copy,[
502 AC_TRY_RUN([#include <stdarg.h>
503 void f (int i, ...) {
504 va_list args1, args2;
507 if (va_arg (args2, int) != 42 || va_arg (args1, int) != 42)
509 va_end (args1); va_end (args2);
515 [dbus_cv_va_val_copy=yes],
516 [dbus_cv_va_val_copy=no],
517 [dbus_cv_va_val_copy=yes])
520 if test "x$dbus_cv_va_val_copy" = "xno"; then
521 AC_DEFINE(DBUS_VA_COPY_AS_ARRAY,1, ['va_lists' cannot be copies as values])
525 #### Atomic integers (checks by Sebastian Wilhelmi for GLib)
526 AC_MSG_CHECKING([whether to use inline assembler routines for atomic integers])
528 if test x"$GCC" = xyes; then
529 if test "x$enable_ansi" = "xyes"; then
537 AC_MSG_RESULT([i486])
538 AC_DEFINE_UNQUOTED(DBUS_USE_ATOMIC_INT_486, 1, [Use atomic integer implementation for 486])
547 if test x$have_atomic_inc = xyes ; then
548 AC_DEFINE_UNQUOTED(DBUS_HAVE_ATOMIC_INT, 1, [Some atomic integer implementation present])
551 #### Various functions
552 AC_CHECK_LIB(socket,socket)
553 AC_CHECK_LIB(nsl,gethostbyname)
555 AC_CHECK_FUNCS(vsnprintf vasprintf nanosleep usleep poll setenv unsetenv socketpair getgrouplist)
557 AC_CHECK_HEADERS(execinfo.h, [AC_CHECK_FUNCS(backtrace)])
559 AC_CACHE_CHECK([for posix getpwnam_r],
560 ac_cv_func_posix_getpwnam_r,
566 struct passwd pwd, *pwptr = &pwd;
569 error = getpwnam_r ("", &pwd, buffer,
570 sizeof (buffer), &pwptr);
571 return (error < 0 && errno == ENOSYS)
574 [ac_cv_func_posix_getpwnam_r=yes],
575 [ac_cv_func_posix_getpwnam_r=no])])
576 if test "$ac_cv_func_posix_getpwnam_r" = yes; then
577 AC_DEFINE(HAVE_POSIX_GETPWNAM_R,1,
578 [Have POSIX function getpwnam_r])
580 AC_CACHE_CHECK([for nonposix getpwnam_r],
581 ac_cv_func_nonposix_getpwnam_r,
582 [AC_TRY_LINK([#include <pwd.h>],
585 getpwnam_r ("", &pwd, buffer,
587 [ac_cv_func_nonposix_getpwnam_r=yes],
588 [ac_cv_func_nonposix_getpwnam_r=no])])
589 if test "$ac_cv_func_nonposix_getpwnam_r" = yes; then
590 AC_DEFINE(HAVE_NONPOSIX_GETPWNAM_R,1,
591 [Have non-POSIX function getpwnam_r])
595 dnl check for socklen_t
596 AC_MSG_CHECKING(whether socklen_t is defined)
598 #include <sys/types.h>
599 #include <sys/socket.h>
604 ],dbus_have_socklen_t=yes,dbus_have_socklen_t=no)
605 AC_MSG_RESULT($dbus_have_socklen_t)
607 if test "x$dbus_have_socklen_t" = "xyes"; then
608 AC_DEFINE(HAVE_SOCKLEN_T,1,[Have socklen_t type])
611 dnl check for writev header and writev function so we're
612 dnl good to go if HAVE_WRITEV gets defined.
613 AC_CHECK_HEADERS(sys/uio.h, [AC_CHECK_FUNCS(writev)])
615 dnl check for flavours of varargs macros (test from GLib)
616 AC_MSG_CHECKING(for ISO C99 varargs macros in C)
618 int a(int p1, int p2, int p3);
619 #define call_a(...) a(1,__VA_ARGS__)
621 ],dbus_have_iso_c_varargs=yes,dbus_have_iso_c_varargs=no)
622 AC_MSG_RESULT($dbus_have_iso_c_varargs)
624 AC_MSG_CHECKING(for GNUC varargs macros)
626 int a(int p1, int p2, int p3);
627 #define call_a(params...) a(1,params)
629 ],dbus_have_gnuc_varargs=yes,dbus_have_gnuc_varargs=no)
630 AC_MSG_RESULT($dbus_have_gnuc_varargs)
632 dnl Output varargs tests
633 if test x$dbus_have_iso_c_varargs = xyes; then
634 AC_DEFINE(HAVE_ISO_VARARGS,1,[Have ISO C99 varargs macros])
636 if test x$dbus_have_gnuc_varargs = xyes; then
637 AC_DEFINE(HAVE_GNUC_VARARGS,1,[Have GNU-style varargs macros])
640 dnl Check for various credentials.
641 AC_MSG_CHECKING(for struct cmsgcred)
643 #include <sys/types.h>
644 #include <sys/socket.h>
646 struct cmsgcred cred;
649 ],dbus_have_struct_cmsgcred=yes,dbus_have_struct_cmsgcred=no)
650 AC_MSG_RESULT($dbus_have_struct_cmsgcred)
652 if test x$dbus_have_struct_cmsgcred = xyes; then
653 AC_DEFINE(HAVE_CMSGCRED,1,[Have cmsgcred structure])
656 AC_CHECK_FUNCS(getpeerucred getpeereid)
658 #### Abstract sockets
660 AC_MSG_CHECKING(abstract socket namespace)
662 AC_RUN_IFELSE([AC_LANG_PROGRAM(
664 #include <sys/types.h>
668 #include <sys/socket.h>
674 struct sockaddr_un addr;
676 listen_fd = socket (PF_UNIX, SOCK_STREAM, 0);
680 fprintf (stderr, "socket() failed: %s\n", strerror (errno));
684 memset (&addr, '\0', sizeof (addr));
685 addr.sun_family = AF_UNIX;
686 strcpy (addr.sun_path, "X/tmp/dbus-fake-socket-path-used-in-configure-test");
687 addr.sun_path[0] = '\0'; /* this is what makes it abstract */
689 if (bind (listen_fd, (struct sockaddr*) &addr, SUN_LEN (&addr)) < 0)
691 fprintf (stderr, "Abstract socket namespace bind() failed: %s\n",
698 [have_abstract_sockets=yes],
699 [have_abstract_sockets=no])
701 AC_MSG_RESULT($have_abstract_sockets)
703 if test x$enable_abstract_sockets = xyes; then
704 if test x$have_abstract_sockets = xno; then
705 AC_MSG_ERROR([Abstract sockets explicitly required, and support not detected.])
709 if test x$enable_abstract_sockets = xno; then
710 have_abstract_sockets=no;
713 if test x$have_abstract_sockets = xyes ; then
714 DBUS_PATH_OR_ABSTRACT=abstract
715 AC_DEFINE(HAVE_ABSTRACT_SOCKETS,1,[Have abstract socket namespace])
717 DBUS_PATH_OR_ABSTRACT=path
720 # this is used in addresses to prefer abstract, e.g.
721 # unix:path=/foo or unix:abstract=/foo
722 AC_SUBST(DBUS_PATH_OR_ABSTRACT)
724 #### Sort out gettext
726 # this makes us require GLib to run autoconf, but not at runtime
730 # INTLLIBS is now set
732 # (if someone wants to go through and make internationalization
733 # conditional with #ifdef ENABLE_NLS then go crazy and send us a patch,
734 # but right now we won't build without gettext)
735 if test "$gt_cv_have_gettext" != "yes" ; then
737 *** You must have either have gettext support in your C library, or use the
738 *** GNU gettext library. (http://www.gnu.org/software/gettext/gettext.html
742 #### Sort out XML library
745 AC_CHECK_LIB(expat, XML_ParserCreate_MM,
746 [ AC_CHECK_HEADERS(expat.h, have_expat=true, have_expat=false) ],
749 PKG_CHECK_MODULES(LIBXML, libxml-2.0, have_libxml=true, have_libxml=false)
751 # see what we want to use
752 dbus_use_libxml=false
754 if test x$with_xml = xexpat; then
756 if ! $have_expat ; then
757 AC_MSG_ERROR([Explicitly requested expat but expat not found])
759 elif test x$with_xml = xlibxml; then
761 if ! $have_libxml ; then
762 AC_MSG_ERROR([Explicitly requested libxml but libxml not found])
765 ### expat is the default because libxml can't currently survive
766 ### our brutal OOM-handling unit test setup.
767 ### http://bugzilla.gnome.org/show_bug.cgi?id=109368
768 if $have_expat ; then
771 elif $have_libxml ; then
775 AC_MSG_ERROR([No XML library found, check config.log for failed attempts])
779 AM_CONDITIONAL(DBUS_USE_EXPAT, $dbus_use_expat)
780 AM_CONDITIONAL(DBUS_USE_LIBXML, $dbus_use_libxml)
782 if $dbus_use_expat; then
786 if $dbus_use_libxml; then
787 XML_LIBS=$LIBXML_LIBS
788 XML_CFLAGS=$LIBXML_CFLAGS
792 if test x$enable_selinux = xno ; then
795 # See if we have SELinux library
796 AC_CHECK_LIB(selinux, is_selinux_enabled,
797 have_selinux=yes, have_selinux=no)
799 # see if we have the SELinux header with the new D-BUS stuff in it
800 if test x$have_selinux = xyes ; then
801 AC_MSG_CHECKING([for DBUS Flask permissions in selinux/av_permissions.h])
802 AC_TRY_COMPILE([#include <selinux/av_permissions.h>],
803 [#ifdef DBUS__ACQUIRE_SVC return 0;
805 #error DBUS__ACQUIRE_SVC not defined
807 have_selinux=yes, have_selinux=no)
808 AC_MSG_RESULT($have_selinux)
811 if test x$enable_selinux = xauto ; then
812 if test x$have_selinux = xno ; then
813 AC_MSG_WARN([Sufficiently new SELinux library not found])
816 if test x$have_selinux = xno ; then
817 AC_MSG_ERROR([SElinux explicitly required, and SELinux library not found])
822 AM_CONDITIONAL(HAVE_SELINUX, test x$have_selinux = xyes)
824 if test x$have_selinux = xyes ; then
825 SELINUX_LIBS="-lselinux -lpthread"
826 AC_DEFINE(HAVE_SELINUX,1,[SELinux support])
832 if test x$target_os = xlinux-gnu; then
833 AC_ARG_ENABLE(dnotify,
834 [ --disable-dnotify Disable using dnotify on Linux],
835 [case "${enableval}" in
836 yes) dnotify=false ;;
838 *) AC_MSG_ERROR(bad value ${enableval} for --disable-dnotify) ;;
839 esac],[dnotify=true])
841 dnl check if dnotify backend is enabled
842 if test x$dnotify = xtrue; then
843 AC_DEFINE(DBUS_BUS_ENABLE_DNOTIFY_ON_LINUX,1,[Use dnotify on Linux])
847 #### Set up final flags
850 AC_SUBST(DBUS_CLIENT_CFLAGS)
851 AC_SUBST(DBUS_CLIENT_LIBS)
853 DBUS_BUS_CFLAGS=$XML_CFLAGS
854 DBUS_BUS_LIBS="$XML_LIBS $SELINUX_LIBS $INTLLIBS"
855 AC_SUBST(DBUS_BUS_CFLAGS)
856 AC_SUBST(DBUS_BUS_LIBS)
860 AC_SUBST(DBUS_TEST_CFLAGS)
861 AC_SUBST(DBUS_TEST_LIBS)
864 PKG_CHECK_MODULES(DBUS_GLIB, gobject-2.0 >= 2.4, have_glib=yes, have_glib=no)
865 PKG_CHECK_MODULES(DBUS_GLIB_THREADS, gthread-2.0 >= 2.4, have_glib_threads=yes, have_glib_threads=no)
867 if test x$have_glib = xno ; then
868 AC_MSG_WARN([GLib development libraries not found])
871 if test x$enable_glib = xyes; then
872 if test x$have_glib = xno; then
873 AC_MSG_ERROR([GLib explicitly required, and GLib development libraries not found])
877 if test x$enable_glib = xno; then
881 AM_CONDITIONAL(HAVE_GLIB, test x$have_glib = xyes)
882 AM_CONDITIONAL(HAVE_GLIB_THREADS, test x$have_glib_threads = xyes)
884 if test x$have_glib = xyes; then
885 GLIB_GENMARSHAL=`$PKG_CONFIG --variable=glib_genmarshal glib-2.0`
887 GLIB_GENMARSHAL=glib-not-enabled-so-there-is-no-genmarshal
889 AC_SUBST(GLIB_GENMARSHAL)
892 AC_SUBST(DBUS_GLIB_CFLAGS)
893 AC_SUBST(DBUS_GLIB_LIBS)
894 AC_SUBST(DBUS_GLIB_THREADS_LIBS)
896 DBUS_GLIB_TOOL_CFLAGS=$XML_CFLAGS
897 DBUS_GLIB_TOOL_LIBS="$XML_LIBS $INTLLIBS"
898 AC_SUBST(DBUS_GLIB_TOOL_CFLAGS)
899 AC_SUBST(DBUS_GLIB_TOOL_LIBS)
902 if test x$have_glib = xno ; then
903 AC_MSG_WARN([Can't use GTK+ since GLib not enabled])
906 PKG_CHECK_MODULES(DBUS_GTK, gtk+-2.0 >= 2.4, have_gtk=yes, have_gtk=no)
907 PKG_CHECK_MODULES(DBUS_GTK_THREADS, gtk+-2.0 >= 2.4 gthread-2.0, have_gtk_threads=yes, have_gtk_threads=no)
910 if test x$have_gtk = xno ; then
911 AC_MSG_WARN([GTK+ development libraries not found])
914 if test x$enable_gtk = xyes; then
915 if test x$have_gtk = xno; then
916 AC_MSG_ERROR([GTK+ explicitly required, and GTK+ development libraries not found])
920 if test x$enable_gtk = xno; then
924 AM_CONDITIONAL(HAVE_GTK, test x$have_gtk = xyes)
927 AC_SUBST(DBUS_GTK_CFLAGS)
928 AC_SUBST(DBUS_GTK_LIBS)
929 AC_SUBST(DBUS_GTK_THREADS_CFLAGS)
930 AC_SUBST(DBUS_GTK_THREADS_LIBS)
934 AC_PATH_PROG(QT3_MOC, moc, no)
937 AC_MSG_CHECKING([for qglobal.h])
938 if test -n "$QTDIR" -a -f "$QTDIR/include/qglobal.h"; then
940 DBUS_QT3_CXXFLAGS="-I$QTDIR/include"
942 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
943 if test -f "$dir/qglobal.h"; then
945 DBUS_QT3_CXXFLAGS="-I$dir"
946 DBUS_QT3_LIBS="-L$QTDIR/lib -lqt-mt"
950 if test x"$have_qt3" = x"yes"; then
951 AC_MSG_RESULT([found])
953 AC_MSG_RESULT([not found])
956 if test x$have_qt3 = xno ; then
957 AC_MSG_WARN([Qt3 development libraries not found])
960 if test x$enable_qt3 = xyes; then
961 if test x$have_qt3 = xno; then
962 AC_MSG_ERROR([Qt3 integration explicitly required, and Qt3 libraries not found])
966 if test x$enable_qt3 = xno; then
970 AM_CONDITIONAL(HAVE_QT3, test x$have_qt3 = xyes)
973 AC_SUBST(DBUS_QT3_CXXFLAGS)
974 AC_SUBST(DBUS_QT3_LIBS)
978 PKG_CHECK_MODULES(DBUS_QT, QtCore >= 4.0, have_qt=yes, have_qt=no)
980 if test x$have_qt = xno ; then
981 AC_MSG_WARN([Qt development libraries not found])
984 if test x$enable_qt = xyes; then
985 if test x$have_qt = xno; then
986 AC_MSG_ERROR([Qt integration explicitly required, and Qt libraries not found])
990 if test x$enable_qt = xno; then
994 QT_MOC=`$PKG_CONFIG --variable=exec_prefix QtCore`
995 QT_MOC=${QT_MOC}/bin/moc
997 AM_CONDITIONAL(HAVE_QT, test x$have_qt = xyes)
1000 AC_SUBST(DBUS_QT_CFLAGS)
1001 AC_SUBST(DBUS_QT_LIBS)
1004 dnl QTestLib detection
1005 PKG_CHECK_MODULES(DBUS_QTESTLIB, QtTest, have_qtest=yes, have_qtest=no)
1007 if test x$have_qtest = xno ; then
1008 AC_MSG_WARN([Qt Unit Test library not found])
1011 if test x$have_qt = xno; then
1015 AM_CONDITIONAL(HAVE_QTESTLIB, test x$have_qtest = xyes)
1017 AC_SUBST(DBUS_QTESTLIB_CFLAGS)
1018 AC_SUBST(DBUS_QTESTLIB_LIBS)
1023 ## for now enable_x11 just tracks have_x11,
1024 ## there's no --enable-x11
1025 if test x$no_x = xyes ; then
1033 if test x$enable_x11 = xyes ; then
1034 AC_DEFINE(DBUS_BUILD_X11,1,[Build X11-dependent code])
1035 DBUS_X_LIBS="$X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
1036 DBUS_X_CFLAGS="$X_CFLAGS"
1042 AC_SUBST(DBUS_X_CFLAGS)
1043 AC_SUBST(DBUS_X_LIBS)
1045 ### Doxygen Documentation
1047 AC_PATH_PROG(DOXYGEN, doxygen, no)
1049 AC_MSG_CHECKING([whether to build Doxygen documentation])
1051 if test x$DOXYGEN = xno ; then
1057 if test x$enable_doxygen_docs = xauto ; then
1058 if test x$have_doxygen = xno ; then
1059 enable_doxygen_docs=no
1061 enable_doxygen_docs=yes
1065 if test x$enable_doxygen_docs = xyes; then
1066 if test x$have_doxygen = xno; then
1067 AC_MSG_ERROR([Building Doxygen docs explicitly required, but Doxygen not found])
1071 AM_CONDITIONAL(DBUS_DOXYGEN_DOCS_ENABLED, test x$enable_doxygen_docs = xyes)
1074 ### XML Documentation
1076 AC_PATH_PROG(XMLTO, xmlto, no)
1078 AC_MSG_CHECKING([whether to build XML documentation])
1080 if test x$XMLTO = xno ; then
1086 if test x$enable_xml_docs = xauto ; then
1087 if test x$have_xmlto = xno ; then
1094 if test x$enable_xml_docs = xyes; then
1095 if test x$have_xmlto = xno; then
1096 AC_MSG_ERROR([Building XML docs explicitly required, but xmlto not found])
1100 AM_CONDITIONAL(DBUS_XML_DOCS_ENABLED, test x$enable_xml_docs = xyes)
1103 #### Have to go $localstatedir->$prefix/var->/usr/local/var
1104 #### someone please fix this a better way...
1106 #### find the actual value for $prefix that we'll end up with
1107 ## (I know this is broken and should be done in the Makefile, but
1108 ## that's a major pain and almost nobody actually seems to care)
1110 if test "x$prefix" = "xNONE"; then
1111 REAL_PREFIX=$ac_default_prefix
1116 ## temporarily change prefix and exec_prefix
1120 if test "x$exec_prefix" = xNONE ; then
1121 REAL_EXEC_PREFIX=$REAL_PREFIX
1123 REAL_EXEC_PREFIX=$exec_prefix
1125 old_exec_prefix=$exec_prefix
1126 exec_prefix=$REAL_EXEC_PREFIX
1129 LOCALSTATEDIR_TMP="$localstatedir"
1130 EXPANDED_LOCALSTATEDIR=`eval echo $LOCALSTATEDIR_TMP`
1131 AC_SUBST(EXPANDED_LOCALSTATEDIR)
1133 SYSCONFDIR_TMP="$sysconfdir"
1134 EXPANDED_SYSCONFDIR=`eval echo $SYSCONFDIR_TMP`
1135 AC_SUBST(EXPANDED_SYSCONFDIR)
1137 BINDIR_TMP="$bindir"
1138 EXPANDED_BINDIR=`eval echo $BINDIR_TMP`
1139 AC_SUBST(EXPANDED_BINDIR)
1141 LIBDIR_TMP="$libdir"
1142 EXPANDED_LIBDIR=`eval echo $LIBDIR_TMP`
1143 AC_SUBST(EXPANDED_LIBDIR)
1145 DATADIR_TMP="$datadir"
1146 EXPANDED_DATADIR=`eval echo $DATADIR_TMP`
1147 AC_SUBST(EXPANDED_DATADIR)
1149 ## put prefix and exec_prefix back
1151 exec_prefix=$old_exec_prefix
1153 #### Check our operating system
1154 operating_system=unknown
1155 if test -f /etc/redhat-release || test -f $EXPANDED_SYSCONFDIR/redhat-release ; then
1156 operating_system=redhat
1159 if test -f /etc/slackware-version || test -f $EXPANDED_SYSCONFDIR/slackware-version ; then
1160 operating_system=slackware
1163 #### Sort out init scripts
1165 if test x$with_init_scripts = x; then
1166 if test xredhat = x$operating_system ; then
1167 with_init_scripts=redhat
1169 if test xslackware = x$operating_system ; then
1170 with_init_scripts=slackware
1172 with_init_scripts=none
1177 AM_CONDITIONAL(DBUS_INIT_SCRIPTS_RED_HAT, test x$with_init_scripts = xredhat)
1179 AM_CONDITIONAL(DBUS_INIT_SCRIPTS_SLACKWARE, test x$with_init_scripts = xslackware)
1181 ##### Set up location for system bus socket
1182 if ! test -z "$with_system_socket"; then
1183 DBUS_SYSTEM_SOCKET=$with_system_socket
1185 DBUS_SYSTEM_SOCKET=${EXPANDED_LOCALSTATEDIR}/run/dbus/system_bus_socket
1188 AC_SUBST(DBUS_SYSTEM_SOCKET)
1189 AC_DEFINE_UNQUOTED(DBUS_SYSTEM_SOCKET,"$DBUS_SYSTEM_SOCKET",[The name of the socket the system bus listens on by default])
1191 ## system bus only listens on local domain sockets, and never
1192 ## on an abstract socket (so only root can create the socket)
1193 DBUS_SYSTEM_BUS_DEFAULT_ADDRESS="unix:path=$DBUS_SYSTEM_SOCKET"
1194 AC_SUBST(DBUS_SYSTEM_BUS_DEFAULT_ADDRESS)
1195 AC_DEFINE_UNQUOTED(DBUS_SYSTEM_BUS_DEFAULT_ADDRESS, "$DBUS_SYSTEM_BUS_DEFAULT_ADDRESS",[The default D-BUS address of the system bus])
1197 #### Set up the pid file
1198 if ! test -z "$with_system_pid_file"; then
1199 DBUS_SYSTEM_PID_FILE=$with_system_pid_file
1200 elif test x$operating_system = xredhat ; then
1201 DBUS_SYSTEM_PID_FILE=${EXPANDED_LOCALSTATEDIR}/run/messagebus.pid
1203 DBUS_SYSTEM_PID_FILE=${EXPANDED_LOCALSTATEDIR}/run/dbus/pid
1206 AC_SUBST(DBUS_SYSTEM_PID_FILE)
1208 #### Directory to check for console ownership
1209 if ! test -z "$with_console_auth_dir"; then
1210 DBUS_CONSOLE_AUTH_DIR=$with_console_auth_dir
1212 DBUS_CONSOLE_AUTH_DIR=/var/run/console/
1215 AC_SUBST(DBUS_CONSOLE_AUTH_DIR)
1216 AC_DEFINE_UNQUOTED(DBUS_CONSOLE_AUTH_DIR, "$DBUS_CONSOLE_AUTH_DIR", [Directory to check for console ownerhip])
1218 #### User to start the system bus as
1219 if test -z "$with_dbus_user" ; then
1220 DBUS_USER=messagebus
1222 DBUS_USER=$with_dbus_user
1225 AC_DEFINE_UNQUOTED(DBUS_USER,"$DBUS_USER", [User for running the system BUS daemon])
1227 #### Tell tests where to find certain stuff in builddir
1228 ABSOLUTE_TOP_BUILDDIR=`cd ${ac_top_builddir}. && pwd`
1230 AC_DEFUN(TEST_PATH, [
1231 TEST_$1=${ABSOLUTE_TOP_BUILDDIR}/test/$2
1232 AC_DEFINE_UNQUOTED(TEST_$1, "$TEST_$1",
1233 [Full path to test file test/$2 in builddir])
1237 TEST_PATH(SERVICE_DIR, data/valid-service-files)
1238 TEST_PATH(SERVICE_BINARY, test-service)
1239 TEST_PATH(SHELL_SERVICE_BINARY, test-shell-service)
1240 TEST_PATH(GLIB_SERVICE_BINARY, glib/test-service-glib)
1241 TEST_PATH(PYTHON_SERVICE_BINARY, python/test-service.py)
1242 TEST_PATH(EXIT_BINARY, test-exit)
1243 TEST_PATH(SEGFAULT_BINARY, test-segfault)
1244 TEST_PATH(SLEEP_FOREVER_BINARY, test-sleep-forever)
1245 AC_SUBST(ABSOLUTE_TOP_BUILDDIR)
1247 #### Find socket directories
1248 if ! test -z "$TMPDIR" ; then
1249 DEFAULT_SOCKET_DIR=$TMPDIR
1250 elif ! test -z "$TEMP" ; then
1251 DEFAULT_SOCKET_DIR=$TEMP
1252 elif ! test -z "$TMP" ; then
1253 DEFAULT_SOCKET_DIR=$TMP
1255 DEFAULT_SOCKET_DIR=/tmp
1258 if ! test -z "$with_test_socket_dir" ; then
1259 TEST_SOCKET_DIR="$with_test_socket_dir"
1261 TEST_SOCKET_DIR=$DEFAULT_SOCKET_DIR
1263 AC_SUBST(TEST_SOCKET_DIR)
1264 AC_DEFINE_UNQUOTED(DBUS_TEST_SOCKET_DIR, "$TEST_SOCKET_DIR", [Where to put test sockets])
1266 if ! test -z "$with_session_socket_dir" ; then
1267 DBUS_SESSION_SOCKET_DIR="$with_session_socket_dir"
1269 DBUS_SESSION_SOCKET_DIR=$DEFAULT_SOCKET_DIR
1271 AC_DEFINE_UNQUOTED(DBUS_SESSION_SOCKET_DIR, "$DBUS_SESSION_SOCKET_DIR", [Where per-session bus puts its sockets])
1272 AC_SUBST(DBUS_SESSION_SOCKET_DIR)
1274 # Detect if we can build Python bindings (need python, python headers, and pyrex)
1275 if test x$enable_python = xno; then
1278 have_python_version=2.4
1279 AC_MSG_NOTICE([Checking to see if we can build Python bindings])
1283 if test -z "$PYTHON" ; then
1284 AC_MSG_WARN([Python not found])
1286 AC_MSG_CHECKING([whether $PYTHON version >= $have_python_version])
1287 AM_PYTHON_CHECK_VERSION([$PYTHON], [$have_python_version],
1288 [have_python_version="yes"],
1289 [have_python_version="too old"])
1291 AC_MSG_RESULT($have_python_version)
1293 AC_CHECK_PROGS(PYREX, pyrexc)
1295 if test -z "$PYREX" ; then
1301 AM_CHECK_PYTHON_HEADERS(have_python_headers=yes,have_python_headers=no)
1303 if test x$have_pyrex = xyes -a x$have_python_headers = xyes -a "x$have_python_version" = xyes ; then
1308 if test x$have_python = xno ; then
1309 if test x$enable_python = xyes ; then
1310 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])
1312 AC_MSG_WARN([Couldn't find either Pyrex, the Python headers or a suitable version of Python, not building Python bindings])
1317 AM_CONDITIONAL(HAVE_PYTHON, test x$have_python = xyes)
1321 dbus/dbus-arch-deps.h
1330 glib/examples/Makefile
1331 glib/examples/statemachine/Makefile
1333 python/examples/Makefile
1338 gcj/org/freedesktop/Makefile
1339 gcj/org/freedesktop/dbus/Makefile
1341 mono/AssemblyInfo.cs
1342 mono/dbus-sharp.dll.config
1343 mono/example/Makefile
1349 test/python/Makefile
1355 test/data/valid-config-files/debug-allow-all.conf
1356 test/data/valid-config-files/debug-allow-all-sha1.conf
1357 test/data/valid-service-files/debug-echo.service
1358 test/data/valid-service-files/debug-segfault.service
1359 test/data/valid-service-files/debug-glib.service
1360 test/data/valid-service-files/debug-shell-echo-success.service
1361 test/data/valid-service-files/debug-shell-echo-fail.service
1362 test/data/valid-service-files/debug-python.service
1365 ### FIXME it's bizarre that have_qt and have_glib are used
1366 ### instead of enable_ - should fix things so that enable
1367 ### is always whether it's enabled, and have is always whether
1370 dnl ==========================================================================
1376 exec_prefix: ${exec_prefix}
1377 libdir: ${EXPANDED_LIBDIR}
1378 bindir: ${EXPANDED_BINDIR}
1379 sysconfdir: ${EXPANDED_SYSCONFDIR}
1380 localstatedir: ${EXPANDED_LOCALSTATEDIR}
1381 datadir: ${EXPANDED_DATADIR}
1382 source code location: ${srcdir}
1385 cppflags: ${CPPFLAGS}
1386 cxxflags: ${CXXFLAGS}
1387 64-bit int: ${DBUS_INT64_TYPE}
1388 32-bit int: ${DBUS_INT32_TYPE}
1389 16-bit int: ${DBUS_INT16_TYPE}
1393 if test x$enable_gcj = xyes ; then
1396 gcjflags: ${GCJFLAGS}"
1399 " gcj: (not enabled)"
1402 if test x$enable_mono = xyes ; then
1408 " csc: (not enabled)
1413 Maintainer mode: ${USE_MAINTAINER_MODE}
1414 gcc coverage profiling: ${enable_gcov}
1415 Building unit tests: ${enable_tests}
1416 Building verbose mode: ${enable_verbose_mode}
1417 Building assertions: ${enable_asserts}
1418 Building checks: ${enable_checks}
1419 Building Qt bindings: ${have_qt}
1420 Building Qt3 bindings: ${have_qt3}
1421 Building GLib bindings: ${have_glib}
1422 Building Python bindings: ${have_python}
1423 Building SELinux support: ${have_selinux}
1424 Building Mono bindings: ${enable_mono}
1425 Building Mono docs: ${enable_mono_docs}
1426 Building GTK+ tools: ${have_gtk}
1427 Building X11 code: ${enable_x11}
1428 Building Doxygen docs: ${enable_doxygen_docs}
1429 Building XML docs: ${enable_xml_docs}
1430 Gettext libs (empty OK): ${INTLLIBS}
1431 Using XML parser: ${with_xml}
1432 Init scripts style: ${with_init_scripts}
1433 Abstract socket names: ${have_abstract_sockets}
1434 System bus socket: ${DBUS_SYSTEM_SOCKET}
1435 System bus address: ${DBUS_SYSTEM_BUS_DEFAULT_ADDRESS}
1436 System bus PID file: ${DBUS_SYSTEM_PID_FILE}
1437 Session bus socket dir: ${DBUS_SESSION_SOCKET_DIR}
1438 Console auth dir: ${DBUS_CONSOLE_AUTH_DIR}
1439 System bus user: ${DBUS_USER}
1440 'make check' socket dir: ${TEST_SOCKET_DIR}
1443 if test x$enable_tests = xyes; then
1444 echo "NOTE: building with unit tests increases the size of the installed library and renders it insecure."
1446 if test x$enable_tests = xyes -a x$enable_asserts = xno; then
1447 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)"
1449 if test x$enable_gcov = xyes; then
1450 echo "NOTE: building with coverage profiling is definitely for developers only."
1452 if test x$enable_verbose_mode = xyes; then
1453 echo "NOTE: building with verbose mode increases library size, may slightly increase security risk, and decreases performance."
1455 if test x$enable_asserts = xyes; then
1456 echo "NOTE: building with assertions increases library size and decreases performance."
1458 if test x$enable_checks = xno; then
1459 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."