+dnl Copyright (C) 2009 Nick Bowler
+dnl Copying and distribution of this file, with or without modification,
+dnl are permitted in any medium without royalty provided the copyright
+dnl notice and this notice are preserved. This file is offered as-is,
+dnl without any warranty.
+
dnl _GLIB_TRY_VERSION(min-version)
AC_DEFUN([_GLIB_TRY_VERSION], [dnl
sedhead='s/@<:@0-9@:>@@<:@0-9@:>@*/<<<&>>>/'
])
])
+ifelse([$1], [gthread], [dnl
+ m4_append([_GLIB_MAIN], [dnl
+g_thread_init(NULL);
+])
+])
+
if test x"$PKG_CONFIG" != x; then
AC_MSG_CHECKING([pkg-config database for $1-2.0])
_PKG_CONFIG([lib$1_cflags], [cflags], [$1-2.0])
_GLIB_MODULE([glib], [glib])
_GLIB_MODULE([gobject], [$2])
+_GLIB_MODULE([gthread], [$2])
AC_LANG_PUSH([C])
old_cflags=$CFLAGS