aboutsummaryrefslogtreecommitdiff
path: root/gdb/configure
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2014-05-27 14:02:21 +0200
committerLudovic Courtès <ludo@gnu.org>2014-06-01 22:26:55 +0200
commit16954d5d9d7d44356b46864d41b06dbefd867521 (patch)
treee443eb7515fc8e53781be28f9e5076e7356401e4 /gdb/configure
parentf69123aac56b383081bdb8eb3909087809927557 (diff)
downloadgdb-16954d5d9d7d44356b46864d41b06dbefd867521.zip
gdb-16954d5d9d7d44356b46864d41b06dbefd867521.tar.gz
gdb-16954d5d9d7d44356b46864d41b06dbefd867521.tar.bz2
guile: Allow compilation with Guile <= 2.0.5.
gdb/ 2014-06-01 Ludovic Courtès <ludo@gnu.org> * configure.ac: When Guile is available, check for the availability of 'scm_new_smob'. * configure, config.h.in: Regenerate. * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New function.
Diffstat (limited to 'gdb/configure')
-rwxr-xr-xgdb/configure18
1 files changed, 18 insertions, 0 deletions
diff --git a/gdb/configure b/gdb/configure
index d7e5cef..56c92d3 100755
--- a/gdb/configure
+++ b/gdb/configure
@@ -9076,6 +9076,24 @@ $as_echo "#define HAVE_GUILE 1" >>confdefs.h
CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_GUILE_SRCS)"
CONFIG_INSTALL="$CONFIG_INSTALL install-guile"
ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_GUILE_CFLAGS)"
+
+ save_LIBS="$LIBS"
+ save_CPPFLAGS="$CPPFLAGS"
+ LIBS="$GUILE_LIBS"
+ CPPFLAGS="$GUILE_CPPFLAGS"
+ for ac_func in scm_new_smob
+do :
+ ac_fn_c_check_func "$LINENO" "scm_new_smob" "ac_cv_func_scm_new_smob"
+if test "x$ac_cv_func_scm_new_smob" = x""yes; then :
+ cat >>confdefs.h <<_ACEOF
+#define HAVE_SCM_NEW_SMOB 1
+_ACEOF
+
+fi
+done
+
+ LIBS="$save_LIBS"
+ CPPFLAGS="$save_CPPFLAGS"
else
# Even if Guile support is not compiled in, we need to have these files
# included.