From 09bc9b8ec7d8817406b4f37998132692b79c639d Mon Sep 17 00:00:00 2001 From: tomo Date: Wed, 8 Feb 2012 16:11:39 +0000 Subject: [PATCH] - Don't use "AC_CHECK_FUNCS(strnlen)". - When $ac_cv_func_strnlen_working = "yes", define HAVE_STRNLEN. --- configure.in | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/configure.in b/configure.in index 8ac29b6..f9b2ce7 100644 --- a/configure.in +++ b/configure.in @@ -61,8 +61,9 @@ AC_C_INLINE # Checks for library functions. AC_FUNC_ALLOCA AC_FUNC_STRNLEN - -AC_CHECK_FUNCS(strnlen) +if test "x$ac_cv_func_strnlen_working" = "xyes"; then + AC_DEFINE([HAVE_STRNLEN]) +fi AC_CONFIG_FILES([Makefile]) AC_OUTPUT -- 1.7.10.4