aboutsummaryrefslogtreecommitdiff
path: root/gdb/configure.ac
diff options
context:
space:
mode:
authorDoug Evans <xdje42@gmail.com>2014-07-26 14:49:04 -0700
committerDoug Evans <xdje42@gmail.com>2014-07-26 14:49:04 -0700
commit74edf51613b507d1f27d66360cd8fdd8a253e88a (patch)
tree84684e1d765768195a9011b645838a62bcbd67aa /gdb/configure.ac
parente57e6ddc2e768323732a7eed6a5d25d3ee350638 (diff)
downloadgdb-74edf51613b507d1f27d66360cd8fdd8a253e88a.zip
gdb-74edf51613b507d1f27d66360cd8fdd8a253e88a.tar.gz
gdb-74edf51613b507d1f27d66360cd8fdd8a253e88a.tar.bz2
PR 17185
PR 17185 describes a problem with using gdb+guile with libgc 7.4.0. The symptom is a hang in sigsuspend. [The thread referenced in the PR has the details.] It's not clear what the right fix is, or even where the bug is yet. This patch applies the same workaround Guile has applied. There is no functionality or real performance loss with this, and Guile has been using it for awhile. * configure.ac: Add check for header gc/gc.h. Add check for function setenv. * configure: Regenerate. * config.in: Regenerate. * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
Diffstat (limited to 'gdb/configure.ac')
-rw-r--r--gdb/configure.ac5
1 files changed, 5 insertions, 0 deletions
diff --git a/gdb/configure.ac b/gdb/configure.ac
index a2ac15f..e348144 100644
--- a/gdb/configure.ac
+++ b/gdb/configure.ac
@@ -1218,6 +1218,11 @@ fi
AC_SUBST(GUILE_CPPFLAGS)
AC_SUBST(GUILE_LIBS)
+# PR 17185, see if we can get the libgc version to see if we need
+# to apply the workaround.
+AC_CHECK_HEADERS(gc/gc.h)
+AC_CHECK_FUNCS([setenv])
+
# --------------------- #
# Check for libmcheck. #
# --------------------- #