From c2b4a3070f2063ab0fd2aa14d5dd247f8566c1e0 Mon Sep 17 00:00:00 2001 From: Stef Walter Date: Fri, 10 Mar 2006 00:12:58 +0000 Subject: Basic configuration parsing, and regular expression compiling. (untested) --- configure.in | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to 'configure.in') diff --git a/configure.in b/configure.in index fb24345..b4d83d2 100644 --- a/configure.in +++ b/configure.in @@ -5,6 +5,9 @@ AM_INIT_AUTOMAKE(bsnmp-regex, 0.1) AC_CONFIG_SRCDIR([src/bsnmp-regex.c]) AM_CONFIG_HEADER([config.h]) +LDFLAGS="$LDFLAGS -L/usr/local/lib" +CFLAGS="$CFLAGS -I/usr/local/include" + # Checks for programs. AC_PROG_CC AC_PROG_INSTALL @@ -21,13 +24,16 @@ if test "$enable_debug" = "yes"; then echo "enabling debug compile mode" fi -# Some checks for BSNMP libraries +# Some checks for libraries AC_CHECK_LIB(bsnmp, snmp_close, , - [echo "Couldn't find the bsnmp module library"; exit 1]) - + [echo "Couldn't find the bsnmp library"; exit 1]) +AC_CHECK_LIB(pcre, pcre_compile, , + [echo "Couldn't find the pcre library"; exit 1]) + # Checks for header files. AC_HEADER_STDC -dnl AC_CHECK_HEADERS() +AC_CHECK_HEADERS("pcre.h", , + [echo "Couldn't find pcre headers"; exit 1]) # Checks for typedefs, structures, and compiler characteristics. AC_C_CONST -- cgit v1.2.3