Index: configure
===================================================================
--- configure	(revision 191953)
+++ configure	(working copy)
@@ -4872,8 +4872,12 @@
 
 
 
+if test "x$GCC" = "xyes"; then
+  CFLAGS="$CFLAGS -funwind-tables"
+fi
 
 
+
 if test -n "$ac_tool_prefix"; then
   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
@@ -11080,7 +11084,7 @@
   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
   lt_status=$lt_dlunknown
   cat > conftest.$ac_ext <<_LT_EOF
-#line 11083 "configure"
+#line 11087 "configure"
 #include "confdefs.h"
 
 #if HAVE_DLFCN_H
@@ -11186,7 +11190,7 @@
   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
   lt_status=$lt_dlunknown
   cat > conftest.$ac_ext <<_LT_EOF
-#line 11189 "configure"
+#line 11193 "configure"
 #include "confdefs.h"
 
 #if HAVE_DLFCN_H
Index: configure.ac
===================================================================
--- configure.ac	(revision 191953)
+++ configure.ac	(working copy)
@@ -66,6 +66,10 @@
 AC_PROG_CC
 m4_rename_force([backtrace_PRECIOUS],[_AC_ARG_VAR_PRECIOUS])
 
+if test "x$GCC" = "xyes"; then
+  CFLAGS="$CFLAGS -funwind-tables"
+fi
+
 AC_SUBST(CFLAGS)
 
 AC_PROG_RANLIB
