AUTOMAKE_OPTIONS = foreign
-if USE_INCLUDED_BOEHM
-GCDIR = libgc
-else
-GCDIR =
-endif
+SUBDIRS = @libgc_dir@ mono doc docs runtime scripts man data
-SUBDIRS = $(GCDIR) mono doc runtime scripts man
+dnl EXTRA_SUBDIRS = libgc
+
+EXTRA_DIST= mono.pc.in mono.spec.in
+
+pkgconfigdir = $(libdir)/pkgconfig
+pkgconfig_DATA= mono.pc
+DISTCLEANFILES= mono.pc