diff --git a/src/configure.in b/src/configure.in
index 3d3a8d6fd55f97873e97abaa5f20cf89fe0110a3..a77a4827e87fa3fa57d138a3f1733647b2a2a0ca 100644
--- a/src/configure.in
+++ b/src/configure.in
@@ -1,4 +1,4 @@
-AC_REVISION("$Id: configure.in,v 1.140 1997/12/11 23:55:50 grubba Exp $")
+AC_REVISION("$Id: configure.in,v 1.141 1997/12/20 19:01:09 grubba Exp $")
 AC_INIT(interpret.c)
 AC_CONFIG_HEADER(machine.h)
 
@@ -182,6 +182,11 @@ OPTIMIZE=""
 if test $cflags_is_set = no; then
  if test "x${GCC-}" = xyes ; then
   WARN="-W -Wall -Wpointer-arith -Wno-unused"
+
+  if test "x$with_debug" = "xno" ; then
+    AC_SYS_COMPILER_FLAG(-fomit-frame-pointer,fomit_frame_pointer,OPTIMIZE)
+  fi  
+
 ### Optimize for different SUN machines. If there is no working 'uname'
 ### no extra optimization will be done, but nothing should break either.
   AC_SYS_CPU_COMPILER_FLAG(sun4c,-msparclite,sparclite,OPTIMIZE)