X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=m4%2Fstrnlen.m4;h=0e2815b90e8d248f66b2925211e5ccdaa3b63c6c;hb=250e00a47a756ab870e59ba8a9e006f4606a53e1;hp=67964c8d7d5f461420d50f68b262cd1ff34471cb;hpb=4a31fee0519738513fdc037c8022384db8c1239d;p=gnulib.git diff --git a/m4/strnlen.m4 b/m4/strnlen.m4 index 67964c8d7..0e2815b90 100644 --- a/m4/strnlen.m4 +++ b/m4/strnlen.m4 @@ -1,16 +1,20 @@ -# strnlen.m4 serial 5 -dnl Copyright (C) 2002-2003, 2005 Free Software Foundation, Inc. +# strnlen.m4 serial 8 +dnl Copyright (C) 2002-2003, 2005-2007 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_STRNLEN], [ - AC_LIBSOURCES([strnlen.c, strnlen.h]) - dnl Persuade glibc to declare strnlen(). AC_REQUIRE([AC_GNU_SOURCE]) + AC_REQUIRE([gl_HEADER_STRING_H_DEFAULTS]) + AC_CHECK_DECLS_ONCE([strnlen]) + if test $ac_cv_have_decl_strnlen = no; then + HAVE_DECL_STRNLEN=0 + fi + AC_FUNC_STRNLEN if test $ac_cv_func_strnlen_working = no; then # This is necessary because automake-1.6.1 doens't understand @@ -24,6 +28,4 @@ AC_DEFUN([gl_FUNC_STRNLEN], ]) # Prerequisites of lib/strnlen.c. -AC_DEFUN([gl_PREREQ_STRNLEN], [ - AC_CHECK_DECLS_ONCE(strnlen) -]) +AC_DEFUN([gl_PREREQ_STRNLEN], [:])