Commit df7d633fd98a1cfaf698d41af50ddd095e64d053

Authored by Stéphane Raimbault
1 parent 91a1d74f

Remove wrong and harmful checks in configure.ac

- 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.
Showing 1 changed file with 1 additions and 3 deletions
configure.ac
... ... @@ -102,9 +102,7 @@ AC_LIBMODBUS_CHECK_BUILD_DOC
102 102 AC_CHECK_DECLS([__CYGWIN__])
103 103  
104 104 # Checks for library functions.
105   -AC_FUNC_FORK
106   -AC_FUNC_MALLOC
107   -AC_CHECK_FUNCS([accept4 getaddrinfo gettimeofday inet_ntoa memset select socket strerror strlcpy])
  105 +AC_CHECK_FUNCS([accept4 getaddrinfo gettimeofday inet_ntoa select socket strerror strlcpy])
108 106  
109 107 # Required for MinGW with GCC v4.8.1 on Win7
110 108 AC_DEFINE(WINVER, 0x0501, _)
... ...