Skip to content

Commit

Permalink
Remove wrong and harmful checks in configure.ac
Browse files Browse the repository at this point in the history
- AC_FUNC_FORK, neved used.
- AC_FUNC_MALLOC, using a cross toolchain, it's checked on build
  architecture!
- memset should be always available.

Thanks to oldfaber for the proposal.
  • Loading branch information
stephane committed Nov 14, 2017
1 parent 91a1d74 commit df7d633
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,7 @@ AC_LIBMODBUS_CHECK_BUILD_DOC
AC_CHECK_DECLS([__CYGWIN__])

# Checks for library functions.
AC_FUNC_FORK
AC_FUNC_MALLOC
AC_CHECK_FUNCS([accept4 getaddrinfo gettimeofday inet_ntoa memset select socket strerror strlcpy])
AC_CHECK_FUNCS([accept4 getaddrinfo gettimeofday inet_ntoa select socket strerror strlcpy])

# Required for MinGW with GCC v4.8.1 on Win7
AC_DEFINE(WINVER, 0x0501, _)
Expand Down

0 comments on commit df7d633

Please sign in to comment.