X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=m4%2Fmbslen.m4;h=1936050f444bdd4af47c24159e6484eeff91cb74;hb=68dd9ac979d5c3afd72f3d2fb0d6dcda32b3c384;hp=dad8a8cf6edebdf51dd165c0becdcb0f1d1c49e1;hpb=ef66119f6b4d0211693d944c495d1e15c9331667;p=gnulib.git diff --git a/m4/mbslen.m4 b/m4/mbslen.m4 index dad8a8cf6..1936050f4 100644 --- a/m4/mbslen.m4 +++ b/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-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, 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 ])