diff options
| author | Tomas Bzatek <tbzatek@users.sourceforge.net> | 2013-03-17 20:19:25 +0100 |
|---|---|---|
| committer | Tomas Bzatek <tbzatek@users.sourceforge.net> | 2013-03-17 20:19:25 +0100 |
| commit | 125aaf366c2ae370306f678b9c9c0b408e0d3908 (patch) | |
| tree | 80d2c9fb1c10a5ca1c734f3de9f23ef37ad18f79 /configure.ac | |
| parent | ec98d1712dbaad2a1c995399f61843cd801a3063 (diff) | |
| download | cataract-125aaf366c2ae370306f678b9c9c0b408e0d3908.tar.xz | |
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
Diffstat (limited to 'configure.ac')
| -rw-r--r-- | configure.ac | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 2f91601..907a1df 100644 --- a/configure.ac +++ b/configure.ac @@ -70,6 +70,13 @@ 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 ************************************************** AC_MSG_CHECKING(for EXIV2 - version >= $EXIV2_REQUIRED) |
