summaryrefslogtreecommitdiff
path: root/configure.in
diff options
context:
space:
mode:
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in14
1 files changed, 10 insertions, 4 deletions
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