From fbfb057e8bed90f73850d8e871e4d70e8fa705ce Mon Sep 17 00:00:00 2001 From: Stef Walter Date: Sat, 28 Jan 2006 00:17:38 +0000 Subject: Standardize the string functions and search for them properly when configuring on different OSs. --- configure.in | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'configure.in') diff --git a/configure.in b/configure.in index ba89937..6438116 100644 --- a/configure.in +++ b/configure.in @@ -35,7 +35,12 @@ AC_C_INLINE dnl Check for header files. AC_HEADER_STDC AC_CHECK_HEADERS([rrd.h], , [echo "ERROR: rrd headers not found"]) -dnl TODO: AC_CHECK_HEADERS +AC_CHECK_HEADERS([unistd.h stdio.h stddef.h stdlib.h assert.h errno.h stdarg.h string.h netdb.h], , + [echo "ERROR: Required C header missing"; exit 1]) + +AC_CHECK_FUNCS([strlcat strlcpy strtob]) +AC_CHECK_FUNCS([strerror getopt getaddrinfo], , + [echo "ERROR: Required function missing"; exit 1]) AC_MSG_RESULT() -- cgit v1.2.3