dnl
dnl Known broken systems includes:
dnl - x86_64-unknown-netbsd5.0.
+ dnl - x86_64-unknown-netbsd5.1
dnl - sparc-sun-solaris2.8
dnl
dnl On `x86_64-unknown-freebsd8.0', thread-local storage appears to
dnl be reclaimed at the wrong time, leading to a segfault when
dnl running `threads.test'. So disable it.
case "$enable_shared--$host_os" in
- [yes--netbsd[0-5].[0-9].|yes--solaris2.8|yes--freebsd[0-8]*])
+ [yes--netbsd[0-5].[0-9]*|yes--solaris2.8|yes--freebsd[0-8]*])
ac_cv_have_thread_storage_class="no"
;;
*)
])
])
+dnl GUILE_UNISTRING_CONSTANT NAME
+dnl
+dnl Determine the compile-time value of NAME and define/substitute
+dnl `SCM_I_GSC_NAME'.
+AC_DEFUN([GUILE_UNISTRING_CONSTANT], [
+ m4_pushdef([UPPER_CASE_NAME],
+ [m4_translit([$1],[abcdefghijklmnopqrstuvwxyz],
+ [ABCDEFGHIJKLMNOPQRSTUVWXYZ])])
+
+ AC_CACHE_CHECK([the value of `$1'], [ac_cv_]$1, [
+ AC_COMPUTE_INT([ac_cv_]$1, [$1],
+ [AC_INCLUDES_DEFAULT
+#include <uniconv.h>
+],
+ [AC_MSG_ERROR([failed to determine the value of `$1'])])
+ ])
+
+ [SCM_I_GSC_]UPPER_CASE_NAME="$ac_cv_[]$1"
+ AC_SUBST([SCM_I_GSC_]UPPER_CASE_NAME)
+ m4_popdef([UPPER_CASE_NAME])])
+
+dnl GUILE_UNISTRING_ICONVEH_VALUES
+dnl
+dnl Determine the values of the `iconveh_' libunistring constants.
+AC_DEFUN([GUILE_UNISTRING_ICONVEH_VALUES], [
+ GUILE_UNISTRING_CONSTANT([iconveh_error])
+ GUILE_UNISTRING_CONSTANT([iconveh_question_mark])
+ GUILE_UNISTRING_CONSTANT([iconveh_escape_sequence])
+])
+
dnl Declare file $1 to be a script that needs configuring,
dnl and arrange to make it executable in the process.
AC_DEFUN([GUILE_CONFIG_SCRIPT],[AC_CONFIG_FILES([$1],[chmod +x $1])])
-# clock_time.m4 serial 10
+\f
dnl Copyright (C) 2002-2006, 2009-2011 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,