Paul Eggert <egg...@cs.ucla.edu> writes: > Autoconf's existing AC_FUNC_STRNLEN uses AC_RUN_IFELSE so this > wouldn't work as-is. > > Perhaps you could write up a patch against Autoconf? That wouldn't > count against the Gnulib quota....
Sure, but Gnulib (and by extension Emacs) does not invoke the Autoconf test: AC_DEFUN([gl_FUNC_STRNLEN], [ AC_REQUIRE([gl_STRING_H_DEFAULTS]) dnl Persuade glibc <string.h> to declare strnlen(). AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS]) AC_CHECK_DECLS_ONCE([strnlen]) <------------------------------------ if test $ac_cv_have_decl_strnlen = no; then HAVE_DECL_STRNLEN=0 else m4_pushdef([AC_LIBOBJ], [:]) dnl Note: AC_FUNC_STRNLEN does AC_LIBOBJ([strnlen]).