X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=m4%2Fmbslen.m4;h=1936050f444bdd4af47c24159e6484eeff91cb74;hb=ee595ffa35986a68e78718000cc31cfd971c319c;hp=91e95a132269d809f39caa421709c099af30d408;hpb=b3fa560fc4c942ef4896fe1360c34c26c930d830;p=gnulib.git diff --git a/m4/mbslen.m4 b/m4/mbslen.m4 index 91e95a132..1936050f4 100644 --- a/m4/mbslen.m4 +++ b/m4/mbslen.m4 @@ -1,16 +1,16 @@ # mbslen.m4 serial 2 -dnl Copyright (C) 2007-2008 Free Software Foundation, Inc. +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([AC_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 ])