r1606 - trunk/varnish-tools/nagios
des at projects.linpro.no
des at projects.linpro.no
Mon Jul 2 10:24:52 CEST 2007
Author: des
Date: 2007-07-02 10:24:52 +0200 (Mon, 02 Jul 2007)
New Revision: 1606
Added:
trunk/varnish-tools/nagios/Makefile.am
trunk/varnish-tools/nagios/autogen.des
trunk/varnish-tools/nagios/autogen.sh
trunk/varnish-tools/nagios/configure.ac
Removed:
trunk/varnish-tools/nagios/Makefile
Modified:
trunk/varnish-tools/nagios/
Log:
Autoconfuse.
Property changes on: trunk/varnish-tools/nagios
___________________________________________________________________
Name: svn:ignore
+ .deps
.libs
Makefile.in
aclocal.m4
autom4te.cache
check_varnish
check_varnish.1
config.guess
config.h
config.h.in
config.log
config.status
config.sub
configure
configure.lineno
depcomp
install-sh
libtool
ltmain.sh
missing
stamp-h1
Deleted: trunk/varnish-tools/nagios/Makefile
===================================================================
--- trunk/varnish-tools/nagios/Makefile 2007-07-02 08:23:31 UTC (rev 1605)
+++ trunk/varnish-tools/nagios/Makefile 2007-07-02 08:24:52 UTC (rev 1606)
@@ -1,7 +0,0 @@
-CFLAGS = -I ../../varnish-cache/include -O2 -Wall -pedantic -std=c99 -D_GNU_SOURCE
-LDFLAGS = -L /opt/varnish/lib -lvarnishapi
-
-all: check_varnish
-
-clean:
- -rm check_varnish
\ No newline at end of file
Added: trunk/varnish-tools/nagios/Makefile.am
===================================================================
--- trunk/varnish-tools/nagios/Makefile.am (rev 0)
+++ trunk/varnish-tools/nagios/Makefile.am 2007-07-02 08:24:52 UTC (rev 1606)
@@ -0,0 +1,9 @@
+# $Id$
+
+sbin_PROGRAMS = check_varnish
+
+check_varnish_SOURCES = check_varnish.c
+
+check_varnish_CFLAGS = -include config.h ${VARNISHAPI_CFLAGS}
+
+check_varnish_LDADD = ${VARNISHAPI_LIBS}
Property changes on: trunk/varnish-tools/nagios/Makefile.am
___________________________________________________________________
Name: svn:keywords
+ Id
Added: trunk/varnish-tools/nagios/autogen.des
===================================================================
--- trunk/varnish-tools/nagios/autogen.des (rev 0)
+++ trunk/varnish-tools/nagios/autogen.des 2007-07-02 08:24:52 UTC (rev 1606)
@@ -0,0 +1 @@
+link ../../varnish-cache/autogen.des
\ No newline at end of file
Property changes on: trunk/varnish-tools/nagios/autogen.des
___________________________________________________________________
Name: svn:special
+ *
Added: trunk/varnish-tools/nagios/autogen.sh
===================================================================
--- trunk/varnish-tools/nagios/autogen.sh (rev 0)
+++ trunk/varnish-tools/nagios/autogen.sh 2007-07-02 08:24:52 UTC (rev 1606)
@@ -0,0 +1 @@
+link ../../varnish-cache/autogen.sh
\ No newline at end of file
Property changes on: trunk/varnish-tools/nagios/autogen.sh
___________________________________________________________________
Name: svn:special
+ *
Added: trunk/varnish-tools/nagios/configure.ac
===================================================================
--- trunk/varnish-tools/nagios/configure.ac (rev 0)
+++ trunk/varnish-tools/nagios/configure.ac 2007-07-02 08:24:52 UTC (rev 1606)
@@ -0,0 +1,66 @@
+# $Id$
+
+AC_PREREQ(2.59)
+AC_COPYRIGHT([Copyright (c) 2007 Linpro AS])
+AC_REVISION([$Id$])
+AC_INIT([check_varnish], [trunk], [varnish-dev at projects.linpro.no])
+AC_CONFIG_SRCDIR(check_varnish.c)
+AM_CONFIG_HEADER(config.h)
+
+AC_CANONICAL_SYSTEM
+AC_LANG(C)
+
+AM_INIT_AUTOMAKE
+
+# Checks for programs.
+AC_GNU_SOURCE
+AC_PROG_CC
+AC_PROG_CPP
+AC_PROG_INSTALL
+AC_PROG_LIBTOOL
+AC_PROG_MAKE_SET
+
+# Checks for libraries.
+PKG_CHECK_MODULES([VARNISHAPI], [varnishapi])
+
+# Checks for header files.
+AC_HEADER_STDC
+AC_HEADER_SYS_WAIT
+AC_HEADER_TIME
+
+# Checks for typedefs, structures, and compiler characteristics.
+AC_C_CONST
+
+# Checks for library functions.
+AC_TYPE_SIZE_T
+
+# Now that we're done using the compiler to look for functions and
+# libraries, set CFLAGS to what we want them to be for our own code
+
+# This corresponds to FreeBSD's WARNS level 6
+DEVELOPER_CFLAGS="-Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wcast-align -Wunused-parameter -Wchar-subscripts -Winline -Wnested-externs -Wredundant-decls -Wformat"
+
+# Additional flags for GCC 4
+EXTRA_DEVELOPER_CFLAGS="-Wextra -Wno-missing-field-initializers -Wno-sign-compare"
+
+AC_ARG_ENABLE(developer-warnings,
+ AS_HELP_STRING([--enable-developer-warnings],[enable strict warnings (default is NO)]),
+ CFLAGS="${CFLAGS} ${DEVELOPER_CFLAGS}")
+AC_ARG_ENABLE(debugging-symbols,
+ AS_HELP_STRING([--enable-debugging-symbols],[enable debugging symbols (default is NO)]),
+ CFLAGS="${CFLAGS} -O0 -g -fno-inline")
+AC_ARG_ENABLE(extra-developer-warnings,
+ AS_HELP_STRING([--enable-extra-developer-warnings],[enable even stricter warnings (default is NO)]),
+ CFLAGS="${CFLAGS} ${EXTRA_DEVELOPER_CFLAGS}")
+AC_ARG_ENABLE(stack-protector,
+ AS_HELP_STRING([--enable-stack-protector],[enable stack protector (default is NO)]),
+ CFLAGS="${CFLAGS} -fstack-protector-all")
+AC_ARG_ENABLE(werror,
+ AS_HELP_STRING([--enable-werror],[use -Werror (default is NO)]),
+ CFLAGS="${CFLAGS} -Werror")
+
+# Generate output
+AC_CONFIG_FILES([
+ Makefile
+])
+AC_OUTPUT
Property changes on: trunk/varnish-tools/nagios/configure.ac
___________________________________________________________________
Name: svn:keywords
+ Id
More information about the varnish-commit
mailing list