From 125aaf366c2ae370306f678b9c9c0b408e0d3908 Mon Sep 17 00:00:00 2001 From: Tomas Bzatek Date: Sun, 17 Mar 2013 20:19:25 +0100 Subject: Autodetect number of threads When number of jobs is not specified, use autodetection of number of processors available in the system. This requires glib-2.35.4, checked during configure. https://bugzilla.gnome.org/show_bug.cgi?id=614930 https://bugzilla.gnome.org/show_bug.cgi?id=687223 --- configure.ac | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 2f91601..907a1df 100644 --- a/configure.ac +++ b/configure.ac @@ -69,6 +69,13 @@ WARN_CFLAGS="-Wall" AC_SUBST(WARN_CFLAGS) +dnl ************************************************** +dnl *** Check for g_get_num_processors() presence *** +dnl ************************************************** +AC_CHECK_LIB(glib-2.0, g_get_num_processors, [ + AC_DEFINE(HAVE_G_GET_NUM_PROCESSORS, 1, [Define if glib has g_get_num_processors()])]) + + dnl ************************************************** dnl *** Check for EXIV2 version *** dnl ************************************************** -- cgit v1.2.3