Implement --enable-gprof option in configure script.
diff --git a/lib/ChangeLog b/lib/ChangeLog
index 9ddc216..5b79d09 100644
--- a/lib/ChangeLog
+++ b/lib/ChangeLog
@@ -1,3 +1,7 @@
+2005-08-06  Ulrich Drepper  <drepper@redhat.com>
+
+	* Makefile.am (xmalloc_CFLAGS): Define only if !GPROF.
+
 2005-05-03  Roland McGrath  <roland@redhat.com>
 
 	* crc32_file.c: New file.
diff --git a/lib/Makefile.am b/lib/Makefile.am
index facb563..b34d544 100644
--- a/lib/Makefile.am
+++ b/lib/Makefile.am
@@ -32,4 +32,6 @@
 noinst_HEADERS = fixedsizehash.h system.h dynamicsizehash.h list.h
 EXTRA_DIST = dynamicsizehash.c
 
+if !GPROF
 xmalloc_CFLAGS = -ffunction-sections
+endif