Skip to content
Snippets Groups Projects
Commit d9d36a33 authored by Danny Auble's avatar Danny Auble
Browse files

Add check for glib 2.12 to configure, primarily checking for

pthread_getname_np().
parent 694c67b8
No related branches found
No related tags found
No related merge requests found
......@@ -24,6 +24,9 @@
/* Define to 1 if using glib-2.32.0 or higher */
#undef GLIB_NEW_THREADS
/* Define to 1 if using glib-2.12.0 or higher */
#undef GLIB_PTHREAD_GETNAME
/* Define to 1 if licensed under terms of the GNU General Public License. */
#undef GPL_LICENSED
......
......@@ -22760,6 +22760,12 @@ rm -f core conftest.err conftest.$ac_objext \
rm -f conf.glibtest
 
 
if test ${glib_config_minor_version=0} -ge 12 ; then
$as_echo "#define GLIB_PTHREAD_GETNAME 1" >>confdefs.h
fi
if test ${glib_config_minor_version=0} -ge 32 ; then
 
$as_echo "#define GLIB_NEW_THREADS 1" >>confdefs.h
......
......@@ -273,6 +273,10 @@ fi
AM_PATH_GLIB_2_0([2.7.1], [ac_glib_test="yes"], [ac_glib_test="no"], [gthread])
if test ${glib_config_minor_version=0} -ge 12 ; then
AC_DEFINE([GLIB_PTHREAD_GETNAME], 1, [Define to 1 if using glib-2.12.0 or higher])
fi
if test ${glib_config_minor_version=0} -ge 32 ; then
AC_DEFINE([GLIB_NEW_THREADS], 1, [Define to 1 if using glib-2.32.0 or higher])
fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment