acinclude.m4 796 B

12345678910111213141516171819
  1. AC_DEFUN([GUILE_COMPAT],
  2. [guile_compat_save_CFLAGS="$CFLAGS"
  3. guile_compat_save_LIBS="$LIBS"
  4. CFLAGS="$GUILE_CFLAGS"
  5. LIBS="$GUILE_LDFLAGS"
  6. AC_CHECK_FUNCS([scm_c_define_module scm_c_read_string scm_gc_protect_object scm_list_1 scm_c_register_extension scm_make_real scm_num2double scm_c_define_gsubr])
  7. AC_MSG_CHECKING(for scm_t_bits)
  8. AC_CACHE_VAL(ac_cv_have_scm_t_bits,
  9. [AC_TRY_COMPILE([#include <libguile.h>],
  10. [scm_t_bits a;],
  11. ac_cv_have_scm_t_bits=yes,
  12. ac_cv_have_scm_t_bits=no)])
  13. AC_MSG_RESULT($ac_cv_have_scm_t_bits)
  14. if test $ac_cv_have_scm_t_bits = yes; then
  15. AC_DEFINE([HAVE_SCM_T_BITS])
  16. fi
  17. LIBS="$guile_compat_save_LIBS"
  18. CFLAGS="$guile_compat_save_CFLAGS"])