comparison configure.in @ 1256:253a6e086a8e

fixed gthread detection
author nadvornik
date Sun, 25 Jan 2009 16:58:19 +0000
parents 6ccad430c4cb
children 51dec1b35246
comparison
equal deleted inserted replaced
1255:71a75a53dde7 1256:253a6e086a8e
175 fi 175 fi
176 176
177 AM_PATH_GLIB_2_0(2.4.0,,AC_MSG_ERROR(GLIB >= 2.4.0 not installed.)) 177 AM_PATH_GLIB_2_0(2.4.0,,AC_MSG_ERROR(GLIB >= 2.4.0 not installed.))
178 AM_PATH_GTK_2_0(2.4.0,,AC_MSG_ERROR(GTK+ >= 2.4.0 not installed.)) 178 AM_PATH_GTK_2_0(2.4.0,,AC_MSG_ERROR(GTK+ >= 2.4.0 not installed.))
179 179
180 threads="auto"
181 AC_ARG_ENABLE([threads],
182 AC_HELP_STRING([--disable-threads], [disable thread support]), [threads="${enableval}"])
183
180 have_gthread="no" 184 have_gthread="no"
181 AC_ARG_ENABLE([threads], 185 if test "x${threads}" != "xno" ; then
182 AC_HELP_STRING([--disable-threads], [disable thread support]),
183 [
184 if test "x${enableval}" != "xno"; then
185 PKG_CHECK_MODULES(GTHREAD, [gthread-2.0], have_gthread="yes", [AC_MSG_WARN("No thread support in glib")]) 186 PKG_CHECK_MODULES(GTHREAD, [gthread-2.0], have_gthread="yes", [AC_MSG_WARN("No thread support in glib")])
186 fi 187 fi
187 ],
188 dnl enable by default
189 PKG_CHECK_MODULES(GTHREAD, [gthread-2.0], have_gthread="yes", [AC_MSG_WARN("No thread support in glib")])
190 )
191
192 188
193 if test "x$have_gthread" != "xno"; then 189 if test "x$have_gthread" != "xno"; then
194 AC_DEFINE(HAVE_GTHREAD, 1, Define if you have gthread library) 190 AC_DEFINE(HAVE_GTHREAD, 1, Define if you have gthread library)
195 GLIB_CFLAGS="$GTHREAD_CFLAGS" 191 GLIB_CFLAGS="$GTHREAD_CFLAGS"
196 GLIB_LIBS="$GTHREAD_LIBS" 192 GLIB_LIBS="$GTHREAD_LIBS"