Index: trunk/Ohana/configure.tcsh
===================================================================
--- trunk/Ohana/configure.tcsh	(revision 18732)
+++ trunk/Ohana/configure.tcsh	(revision 18878)
@@ -52,4 +52,7 @@
    set optimize = 1
    breaksw;
+  case --enable-profile
+   set profile = 1
+   breaksw;
   case --enable-memcheck
    set memcheck = 1
@@ -158,4 +161,7 @@
 if ($optimize) set CFLAGS = "-O2"
 
+# profiler code
+if ($profile) set CFLAGS = "$CFLAGS -pg"
+
 if (! $?CPPFLAGS) then
   set CPPFLAGS = ""
@@ -167,4 +173,5 @@
   set LDFLAGS = 
 endif  
+if ($profile) set LDFLAGS = "$LDFLAGS -Wl,--start-group -Wl,-Bstatic -Wl,-Bdynamic"
 
 set syslibpath = "/lib /usr/lib /usr/X11R6/lib /usr/local/lib"
