From df3f3195c82eea4749527997c9fa8ad83dc048af Mon Sep 17 00:00:00 2001 From: Stef Walter Date: Fri, 7 Apr 2006 20:40:33 +0000 Subject: Better configure.in checks for bsnmp-regex --- ChangeLog | 6 +++++- configure.in | 12 +++++++++++- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 293f69f..80eaff9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1 +1,5 @@ -0.1: Initial Release. +0.2: + * Better configure.in checks. + +0.1: + * Initial Release. diff --git a/configure.in b/configure.in index e760dba..2f63558 100644 --- a/configure.in +++ b/configure.in @@ -13,6 +13,12 @@ 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, AC_HELP_STRING([--enable-debug], @@ -39,6 +45,11 @@ if test "$enable_pcre" = "yes"; then AC_DEFINE_UNQUOTED(WITH_PCRE, 1, [Use PCRE regular expression library]) fi +AC_CHECK_HEADERS([sys/queue.h sys/limits.h sys/stat.h sys/time.h sys/un.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 AC_TYPE_SIZE_T @@ -46,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 tools/Makefile doc/Makefile]) AC_OUTPUT -- cgit v1.2.3