3 dnl This is just a wrapper function to encapsulate this kludge.
4 dnl Putting it in a separate file like this helps share it between
5 dnl different packages.
6 AC_DEFUN(jm_CHECK_DECLS,
11 # if !STDC_HEADERS && HAVE_MEMORY_H
16 # ifdef HAVE_STRINGS_H
28 dnl This code is deliberately never run via ./configure.
29 dnl FIXME: this is a gross hack to make autoheader put entries
30 dnl for each of these symbols in the config.h.in.
31 dnl Otherwise, I'd have to update acconfig.h every time I change
32 dnl this list of functions.
33 AC_CHECK_FUNCS(DECL_FREE DECL_LSEEK DECL_MALLOC DECL_MEMCHR DECL_REALLOC \
34 DECL_STPCPY DECL_STRSTR)
36 jm_CHECK_DECLARATIONS($headers, free lseek malloc \
37 memchr realloc stpcpy strstr)