Merge pull request #216 from Jehan/master

configure: check realloc with AC_CHECK_FUNCS() to fix cross-compilation.
This commit is contained in:
Eric Haszlakiewicz
2016-04-30 14:45:16 -04:00

View File

@@ -44,7 +44,7 @@ AC_TYPE_SIZE_T
# Checks for library functions.
AC_FUNC_VPRINTF
AC_FUNC_MEMCMP
AC_FUNC_REALLOC
AC_CHECK_FUNCS([realloc])
AC_CHECK_FUNCS(strcasecmp strdup strerror snprintf vsnprintf vasprintf open vsyslog strncasecmp setlocale)
AC_CHECK_DECLS([INFINITY], [], [], [[#include <math.h>]])
AC_CHECK_DECLS([nan], [], [], [[#include <math.h>]])