~ubuntu-branches/ubuntu/trusty/nagios-plugins-contrib/trusty-proposed

« back to all changes in this revision

Viewing changes to check_varnish/varnish-nagios-1.1/configure.ac

  • Committer: Package Import Robot
  • Author(s): Bernd Zeimetz
  • Date: 2013-05-21 22:11:50 UTC
  • mfrom: (5.1.1 experimental)
  • Revision ID: package-import@ubuntu.com-20130521221150-k5bda5v5euvt7wg9
Tags: 6.20130521
* [e68c82e1] check_raid: do not run hpacucli if cciss_vol_status is available.
* [4a1c57e8] Also support tw-cli as additional name for the 3ware binary.
  Thanks to Dennis Hoppe
* [eb5e1c7c] Add /run/ to the check_libs ignore file.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# $Id$
 
2
 
 
3
AC_PREREQ(2.59)
 
4
AC_COPYRIGHT([Copyright (c) 2007-2011 Varnish Software AS])
 
5
AC_REVISION([$Id$])
 
6
AC_INIT([varnish-nagios], [1.1], [varnish-dev@varnish-cache.org])
 
7
AC_CONFIG_SRCDIR(check_varnish.c)
 
8
AM_CONFIG_HEADER(config.h)
 
9
 
 
10
AC_CANONICAL_SYSTEM
 
11
AC_LANG(C)
 
12
 
 
13
AM_INIT_AUTOMAKE
 
14
 
 
15
# Checks for programs.
 
16
AC_GNU_SOURCE
 
17
AC_PROG_CC
 
18
AC_PROG_CPP
 
19
AC_PROG_INSTALL
 
20
AC_PROG_LIBTOOL
 
21
AC_PROG_MAKE_SET
 
22
 
 
23
# Checks for libraries.
 
24
PKG_CHECK_MODULES([VARNISHAPI], [varnishapi])
 
25
 
 
26
# Checks for header files.
 
27
AC_HEADER_STDC
 
28
AC_HEADER_SYS_WAIT
 
29
AC_HEADER_TIME
 
30
 
 
31
# Checks for typedefs, structures, and compiler characteristics.
 
32
AC_C_CONST
 
33
 
 
34
# Checks for library functions.
 
35
AC_TYPE_SIZE_T
 
36
 
 
37
# Now that we're done using the compiler to look for functions and
 
38
# libraries, set CFLAGS to what we want them to be for our own code
 
39
 
 
40
# This corresponds to FreeBSD's WARNS level 6
 
41
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"
 
42
 
 
43
# Additional flags for GCC 4
 
44
EXTRA_DEVELOPER_CFLAGS="-Wextra -Wno-missing-field-initializers -Wno-sign-compare"
 
45
 
 
46
AC_ARG_ENABLE(developer-warnings,
 
47
        AS_HELP_STRING([--enable-developer-warnings],[enable strict warnings (default is NO)]),
 
48
        CFLAGS="${CFLAGS} ${DEVELOPER_CFLAGS}")
 
49
AC_ARG_ENABLE(debugging-symbols,
 
50
        AS_HELP_STRING([--enable-debugging-symbols],[enable debugging symbols (default is NO)]),
 
51
        CFLAGS="${CFLAGS} -O0 -g -fno-inline")
 
52
AC_ARG_ENABLE(extra-developer-warnings,
 
53
        AS_HELP_STRING([--enable-extra-developer-warnings],[enable even stricter warnings (default is NO)]),
 
54
        CFLAGS="${CFLAGS} ${EXTRA_DEVELOPER_CFLAGS}")
 
55
AC_ARG_ENABLE(stack-protector,
 
56
        AS_HELP_STRING([--enable-stack-protector],[enable stack protector (default is NO)]),
 
57
        CFLAGS="${CFLAGS} -fstack-protector-all")
 
58
AC_ARG_ENABLE(werror,
 
59
        AS_HELP_STRING([--enable-werror],[use -Werror (default is NO)]),
 
60
        CFLAGS="${CFLAGS} -Werror")
 
61
 
 
62
# Generate output
 
63
AC_CONFIG_FILES([
 
64
    Makefile
 
65
])
 
66
AC_OUTPUT