]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
cups-common.m4: Check for dbus_thread_init_default() 190/head
authorZdenek Dohnal <zdohnal@redhat.com>
Wed, 19 May 2021 06:16:22 +0000 (08:16 +0200)
committerZdenek Dohnal <zdohnal@redhat.com>
Wed, 19 May 2021 06:16:22 +0000 (08:16 +0200)
We actually use dbus_thread_init_default() in the code, so we should
check for it during configuration.

config-scripts/cups-common.m4

index 6fa769118dc17ef99b86e808bd2e3c15aeb1d1de..3a162b6d5a05684c24fcec28522b8139874ff18d 100644 (file)
@@ -338,8 +338,8 @@ AS_IF([test "x$enable_dbus" != xno -a "x$PKGCONFIG" != x -a "x$host_os_name" !=
        AC_CHECK_FUNC([dbus_message_iter_init_append], [
            AC_DEFINE([HAVE_DBUS_MESSAGE_ITER_INIT_APPEND], [1], [Have dbus_message_iter_init_append function?])
        ])
-       AC_CHECK_FUNC([dbus_threads_init], [
-           AC_DEFINE([HAVE_DBUS_THREADS_INIT], [1], [Have dbus_threads_init function?])
+       AC_CHECK_FUNC([dbus_threads_init_default], [
+           AC_DEFINE([HAVE_DBUS_THREADS_INIT], [1], [Have dbus_threads_init_default function?])
        ])
        LIBS="$SAVELIBS"
        AS_IF([test -d /etc/dbus-1 -a "x$DBUSDIR" = x], [