From 6c059f8f5ba69e3f87c6f15ab3959f21e212c495 Mon Sep 17 00:00:00 2001 From: Cosmin Truta Date: Sat, 11 Aug 2018 00:47:18 -0400 Subject: [PATCH] configure: Remove the memset check and the HAVE_MEMSET macro The compatibility workaround png_memset() has been removed long ago. The availability of memset() is a platform requirement. --- config.h.in | 3 --- configure | 13 ------------- configure.ac | 1 - 3 files changed, 17 deletions(-) diff --git a/config.h.in b/config.h.in index a0ec9bc14..2931048bf 100644 --- a/config.h.in +++ b/config.h.in @@ -18,9 +18,6 @@ /* Define to 1 if you have the header file. */ #undef HAVE_MEMORY_H -/* Define to 1 if you have the `memset' function. */ -#undef HAVE_MEMSET - /* Define to 1 if you have the `pow' function. */ #undef HAVE_POW diff --git a/configure b/configure index d86d8ed22..17fa130cf 100755 --- a/configure +++ b/configure @@ -13066,19 +13066,6 @@ fi fi -for ac_func in memset -do : - ac_fn_c_check_func "$LINENO" "memset" "ac_cv_func_memset" -if test "x$ac_cv_func_memset" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_MEMSET 1 -_ACEOF - -else - as_fn_error $? "memset not found in libc" "$LINENO" 5 -fi -done - for ac_func in pow do : ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow" diff --git a/configure.ac b/configure.ac index 63287c577..9c4f10428 100644 --- a/configure.ac +++ b/configure.ac @@ -144,7 +144,6 @@ AC_C_RESTRICT # Checks for library functions. AC_FUNC_STRTOD -AC_CHECK_FUNCS([memset], , AC_MSG_ERROR(memset not found in libc)) AC_CHECK_FUNCS([pow], , AC_CHECK_LIB(m, pow, , AC_MSG_ERROR(cannot find pow)) ) # Some later POSIX 1003.1 functions are required for test programs, failure here