From 0490d0830234062b4055e4b0fd2131fb54d7743f Mon Sep 17 00:00:00 2001 From: Ton Voon Date: Wed, 19 Feb 2003 00:45:43 +0000 Subject: [PATCH] Move getloadavg to lib directory. Must run "aclocal -I lib" git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@345 f882894a-f735-0410-b71e-b25c423dba1c --- Makefile.am | 4 +++- configure.in | 4 +--- lib/Makefile.am | 4 +++- {plugins => lib}/getloadavg.c | 0 getloadavg.m4 => lib/getloadavg.m4 | 0 plugins/Makefile.am | 2 +- 6 files changed, 8 insertions(+), 6 deletions(-) rename {plugins => lib}/getloadavg.c (100%) rename getloadavg.m4 => lib/getloadavg.m4 (100%) diff --git a/Makefile.am b/Makefile.am index 71c40cb..3d91926 100644 --- a/Makefile.am +++ b/Makefile.am @@ -3,7 +3,9 @@ SUBDIRS = lib plugins plugins-scripts EXTRA_DIST = REQUIREMENTS SUPPORT acconfig.h subst.in subst.sh Helper.pm \ -contrib nagios-plugins.spec.in getloadavg.m4 +contrib nagios-plugins.spec.in + +ACLOCAL_AMFLAGS = -I lib dist-hook: sed "s/%%{VER}/@VER@/;s/%%{REL}/@REL@/;" $(srcdir)/nagios-plugins.spec.in > $(distdir)/nagios-plugins.spec diff --git a/configure.in b/configure.in index 5d9e45c..38c2470 100644 --- a/configure.in +++ b/configure.in @@ -1,6 +1,4 @@ dnl Process this file with autoconf to produce a configure script. -include(`aclocal.m4') -include(`getloadavg.m4') AC_REVISION ($Revision$) AC_INIT(Helper.pm) VER=1.3.0 @@ -25,7 +23,7 @@ AC_PROG_CC AC_PROG_MAKE_SET AC_PROG_AWK -AC_FUNC_GETLOADAVG(plugins) +AC_FUNC_GETLOADAVG([lib]) ifdef([AC_FUNC_STRTOD],[AC_FUNC_STRTOD],[AM_FUNC_STRTOD]) dnl AM_WITH_REGEX AC_PROG_RANLIB diff --git a/lib/Makefile.am b/lib/Makefile.am index 7727b28..afa91a6 100644 --- a/lib/Makefile.am +++ b/lib/Makefile.am @@ -1,10 +1,12 @@ ## Process this file with automake to produce Makefile.in +EXTRA_DIST = getloadavg.m4 + noinst_LIBRARIES = libnagiosplug.a noinst_HEADERS = getopt.h -libnagiosplug_a_SOURCES = getopt.c getopt1.c +libnagiosplug_a_SOURCES = getopt.c getopt1.c getloadavg.c INCLUDES = -I$(srcdir) diff --git a/plugins/getloadavg.c b/lib/getloadavg.c similarity index 100% rename from plugins/getloadavg.c rename to lib/getloadavg.c diff --git a/getloadavg.m4 b/lib/getloadavg.m4 similarity index 100% rename from getloadavg.m4 rename to lib/getloadavg.m4 diff --git a/plugins/Makefile.am b/plugins/Makefile.am index 7015466..851745a 100644 --- a/plugins/Makefile.am +++ b/plugins/Makefile.am @@ -17,7 +17,7 @@ EXTRA_PROGRAMS = check_mysql check_radius check_pgsql check_snmp check_hpjd \ check_tcp_programs = check_ftp check_imap check_nntp check_pop EXTRA_DIST = t utils.c netutils.c popen.c \ - snprintf.c getloadavg.c + snprintf.c PLUGINHDRS = common.h config.h -- 2.30.2