summaryrefslogtreecommitdiff
path: root/gnulib/m4/mbslen.m4
diff options
context:
space:
mode:
Diffstat (limited to 'gnulib/m4/mbslen.m4')
-rw-r--r--gnulib/m4/mbslen.m418
1 files changed, 9 insertions, 9 deletions
diff --git a/gnulib/m4/mbslen.m4 b/gnulib/m4/mbslen.m4
index dad8a8c..b51b39f 100644
--- a/gnulib/m4/mbslen.m4
+++ b/gnulib/m4/mbslen.m4
@@ -1,16 +1,16 @@
-# mbslen.m4 serial 1
-dnl Copyright (C) 2007 Free Software Foundation, Inc.
+# mbslen.m4 serial 2
+dnl Copyright (C) 2010-2013 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
dnl with or without modifications, as long as this notice is preserved.
AC_DEFUN([gl_FUNC_MBSLEN],
[
- gl_PREREQ_MBSLEN
-])
-
-# Prerequisites of lib/mbslen.c.
-AC_DEFUN([gl_PREREQ_MBSLEN], [
- AC_REQUIRE([gl_FUNC_MBRTOWC])
- :
+ AC_REQUIRE([gl_HEADER_STRING_H_DEFAULTS])
+ AC_CHECK_FUNCS_ONCE([mbslen])
+ if test $ac_cv_func_mbslen = yes; then
+ HAVE_MBSLEN=1
+ else
+ HAVE_MBSLEN=0
+ fi
])