fix glib dependency
authorYang Ruirui <ruirui.r.yang@tieto.com>
Wed, 29 Dec 2010 07:12:00 +0000 (23:12 -0800)
committerMarcel Holtmann <marcel@holtmann.org>
Wed, 29 Dec 2010 07:12:00 +0000 (23:12 -0800)
src/stats.c and src/tools/stats-tool.c use glib function g_mkstemp_full
g_mkstemp_full comes since GLib 2.21.6, see following changelog:
http://linuxtesting.org/upstream-tracker/changelogs/glib/2.21.6/changelog.html

So here fix the dependency of glib in configure.ac to >=2.22

configure.ac

index 46cceae..03bb9fb 100644 (file)
@@ -275,8 +275,8 @@ fi
 
 AC_DEFINE_UNQUOTED([STATS_MAX_FILE_SIZE], (${stats_max_file_size}), [Maximal size of a statistics round robin file])
 
-PKG_CHECK_MODULES(GLIB, glib-2.0 >= 2.16, dummy=yes,
-                               AC_MSG_ERROR(GLib >= 2.16 is required))
+PKG_CHECK_MODULES(GLIB, glib-2.0 >= 2.22, dummy=yes,
+                               AC_MSG_ERROR(GLib >= 2.22 is required))
 AC_SUBST(GLIB_CFLAGS)
 AC_SUBST(GLIB_LIBS)