From aeb40eae0ecd320859f82f9399ebc2f4a5b41d4e Mon Sep 17 00:00:00 2001 From: Stef Walter Date: Fri, 7 Apr 2006 20:12:10 +0000 Subject: Add a bunch of checks to configure.in --- configure.in | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/configure.in b/configure.in index ca506bd..b1ede65 100644 --- a/configure.in +++ b/configure.in @@ -12,6 +12,11 @@ CFLAGS="$CFLAGS -I/usr/local/include" AC_PROG_CC AC_PROG_INSTALL AC_PROG_LIBTOOL +AC_CHECK_PROG(GENSNMPTREE, gensnmptree, "gensnmptree") +if test -z "$GENSNMPTREE"; then + echo "ERROR: gensnmptree program not found." + exit 1 +fi # Debug mode AC_ARG_ENABLE(debug, @@ -26,6 +31,24 @@ fi # Checks for header files. AC_HEADER_STDC +AC_CHECK_HEADERS([netinet/in.h netinet/in_systm.h netinet/ip.h netinet/ip_icmp.h netinet/ip_var.h arpa/inet.h], , + [echo "ERROR: required netinet header not found."; exit 1], + [[ + #include + #if HAVE_NETINET_IN_H + #include + #endif + #if HAVE_NETINET_IN_SYSTM_H + #include + #endif + #if HAVE_NETINET_IP_H + #include + #endif + ]]) +AC_CHECK_HEADERS([sys/queue.h sys/limits.h sys/stat.h sys/time.h], , + [echo "ERROR: required header not found."; exit 1]) +AC_CHECK_HEADERS([bsnmp/snmpmod.h], , + [echo "ERROR: required bsnmp header not found." exit 1]) # Checks for typedefs, structures, and compiler characteristics. AC_C_CONST @@ -34,7 +57,6 @@ AC_TYPE_SIZE_T # Checks for library functions. AC_FUNC_MALLOC AC_FUNC_MEMCMP -dnl TODO AC_CHECK_FUNCS([atexit inet_ntoa inet_pton memset strerror strspn strtol]) AC_CONFIG_FILES([Makefile module/Makefile doc/Makefile]) AC_OUTPUT -- cgit v1.2.3