From 28bd24d61dc3b0b94b58081b35d1a22d7930fa45 Mon Sep 17 00:00:00 2001
From: Ton Voon <tonvoon@users.sourceforge.net>
Date: Tue, 31 Jan 2006 10:05:20 +0000
Subject: Changed configure option to --with-libtap-srcdir because requires
 tap.h as well as tap.o

git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1305 f882894a-f735-0410-b71e-b25c423dba1c

diff --git a/configure.in b/configure.in
index 9afbf60..d56501a 100644
--- a/configure.in
+++ b/configure.in
@@ -74,13 +74,15 @@ AC_SUBST(with_nagios_group)
 INSTALL_OPTS="-o $with_nagios_user -g $with_nagios_group"
 AC_SUBST(INSTALL_OPTS)
 
-AC_ARG_WITH(libtap-object,
-	ACX_HELP_STRING([--with-libtap-object=path],
-		[full path to tap.o]),
+AC_ARG_WITH(libtap-srcdir,
+	ACX_HELP_STRING([--with-libtap-srcdir=path],
+		[full path to a compiled libtap srcdir]),
 	EXTRA_TEST=test_utils
-	EXTRA_TAPOBJ=$withval
+	EXTRA_TAPOBJ=$withval/tap.o
 	AC_SUBST(EXTRA_TEST)
 	AC_SUBST(EXTRA_TAPOBJ)
+	LDFLAGS="$LDFLAGS -L$withval"
+	CPPFLAGS="$CPPFLAGS -I$withval"
 	)
 
 AC_ARG_WITH(trusted_path,
-- 
cgit v0.10-9-g596f

