summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 4a7401e)
raw | patch | inline | side by side (parent: 4a7401e)
author | Ton Voon <tonvoon@users.sourceforge.net> | |
Fri, 24 Feb 2006 16:41:06 +0000 (16:41 +0000) | ||
committer | Ton Voon <tonvoon@users.sourceforge.net> | |
Fri, 24 Feb 2006 16:41:06 +0000 (16:41 +0000) |
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1318 f882894a-f735-0410-b71e-b25c423dba1c
configure.in | patch | blob | history | |
plugins/tests/Makefile.am | patch | blob | history |
diff --git a/configure.in b/configure.in
index 16e22a68859216a52de712038cfeeb48c9db8fdb..ddbde15900c8f43284d1ca24f37010f4eb62429d 100644 (file)
--- a/configure.in
+++ b/configure.in
INSTALL_OPTS="-o $with_nagios_user -g $with_nagios_group"
AC_SUBST(INSTALL_OPTS)
-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/tap.o
- AC_SUBST(EXTRA_TEST)
- AC_SUBST(EXTRA_TAPOBJ)
- LDFLAGS="$LDFLAGS -L$withval"
- CPPFLAGS="$CPPFLAGS -I$withval"
- )
-
AC_ARG_WITH(trusted_path,
ACX_HELP_STRING([--with-trusted-path=PATH],
[sets trusted path for executables called by scripts (default=/bin:/sbin:/usr/bin:/usr/sbin)]),
AC_CHECK_LIB(m,floor,MATHLIBS="-lm")
AC_SUBST(MATHLIBS)
+dnl Check for libtap, to run perl-like tests
+AC_CHECK_LIB(tap, plan_tests,
+ TAPLIBS="-ltap"
+ EXTRA_TEST=test_utils
+ AC_SUBST(EXTRA_TEST)
+ AC_SUBST(TAPLIBS)
+ )
+
dnl Check for PostgreSQL libraries
_SAVEDLIBS="$LIBS"
_SAVEDCPPFLAGS="$CPPFLAGS"
index cd4caeb9643d2b370230ba945372b2238d89abd5..c73725de1aedfd0e25e010dfb8e45d19f8f7f214 100644 (file)
test_utils_SOURCES = test_utils.c
test_utils_CFLAGS = -g -I..
test_utils_LDFLAGS = -L..
-test_utils_LDADD = ../utils.o @EXTRA_TAPOBJ@
+test_utils_LDADD = ../utils.o $(TAPLIBS)
test: ${noinst_PROGRAMS}
perl -MTest::Harness -e '$$Test::Harness::switches=""; runtests(map {$$_ .= ".t"} @ARGV)' $(EXTRA_PROGRAMS)