diff -Nurd -x'*~' glib-2.32.3.orig/configure.ac glib-2.32.3/configure.ac
--- glib-2.32.3.orig/configure.ac	2012-05-14 18:05:58.000000000 -0400
+++ glib-2.32.3/configure.ac	2012-06-05 13:06:05.000000000 -0400
@@ -1816,13 +1816,12 @@
 dnl *** check for libelf ***
 dnl ************************
 
-PKG_CHECK_MODULES([LIBELF], [libelf], [have_libelf=yes], [have_libelf=maybe])
+PKG_CHECK_MODULES([LIBELF], [libelf >= 0.8.12], [have_libelf=yes], [have_libelf=maybe])
 
 if test $have_libelf = maybe; then
   glib_save_LIBS=$LIBS
-  AC_CHECK_LIB([elf], [elf_begin], , [have_libelf=no])
-  AC_CHECK_LIB([elf], [elf_getshdrstrndx], , [have_libelf=no])
-  AC_CHECK_LIB([elf], [elf_getshdrnum], , [have_libelf=no])
+  LIBS="-lelf $LIBS"
+  AC_CHECK_FUNCS([elf_begin elf_getshdrstrndx elf_getshdrnum], , [have_libelf=no])
   AC_CHECK_HEADER([libelf.h], , [have_libelf=no])
   LIBS=$glib_save_LIBS
 
