New automake conditional. Only compile the gthread subdirectory if we
[platform/upstream/glib.git] / glib / Makefile.am
index f0e75e5..ecff8b1 100644 (file)
@@ -2,7 +2,13 @@
 
 AUTOMAKE_OPTIONS = 1.4
 
-SUBDIRS = . gobject gmodule gthread docs tests build
+if HAVE_THREADS
+gthread = gthread
+else
+gthread =
+endif
+
+SUBDIRS = . gobject gmodule $(gthread) docs tests build
 
 bin_SCRIPTS=glib-config-2.0
 BUILT_SOURCES=glib-config-2.0