--- release-0.3.1/src/Makefile.am.orig
+++ release-0.3.1/src/Makefile.am
@@ -1,6 +1,4 @@
 bin_PROGRAMS = ccglue
 ccglue_SOURCES = cscoperdr.c seqfile.c sym_mgr.c digraph.c options.c main.c c_glue.c
-INCLUDES = `pkg-config --cflags glib-2.0`
-AM_LDFLAGS = `pkg-config --libs glib-2.0`
-
-
+AM_CFLAGS = $(GLIB_CFLAGS)
+ccglue_LDADD = $(GLIB_LIBS)
