summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--NEWS2
-rw-r--r--configure.in28
2 files changed, 24 insertions, 6 deletions
diff --git a/NEWS b/NEWS
index 3490c280..743510c2 100644
--- a/NEWS
+++ b/NEWS
@@ -9,6 +9,8 @@ This file documents the major additions and syntax changes between releases.
9 check_ping times out 1 second quicker if host is unreachable 9 check_ping times out 1 second quicker if host is unreachable
10 Root plugins installed with world executable 10 Root plugins installed with world executable
11 check_sybase from contrib now maintained in NagiosExchange 11 check_sybase from contrib now maintained in NagiosExchange
12 --with-nagios-user/group reinstated ./configure option
13 New --without-world-permissions ./configure option
12 14
131.4.6 5th February 2007 151.4.6 5th February 2007
14 Reduced number of DNS lookups in check_ping and netutils.c for IPv6 configurations 16 Reduced number of DNS lookups in check_ping and netutils.c for IPv6 configurations
diff --git a/configure.in b/configure.in
index 3b8db841..fe8f1127 100644
--- a/configure.in
+++ b/configure.in
@@ -15,13 +15,29 @@ AC_SUBST(RELEASE)
15AC_PREFIX_DEFAULT(/usr/local/nagios) 15AC_PREFIX_DEFAULT(/usr/local/nagios)
16 16
17dnl Deprecated configure options 17dnl Deprecated configure options
18AC_ARG_WITH(nagios_user,,
19 AC_MSG_ERROR([--with-nagios-user is a deprecated option. Rerun ./configure without this option]))
20AC_ARG_WITH(nagios_group,,
21 AC_MSG_ERROR([--with-nagios-group is a deprecated option. Rerun ./configure without this option]))
22 18
23dnl Figure out how to invoke "install" and what install options to use. 19
24AC_PROG_INSTALL 20dnl Append user (-o), group (-g), mode (-m) to install command
21dnl There is an assumption that this is possible with ./configure's chosen install command
22extra_install_args=""
23AC_ARG_WITH(nagios_user,
24 ACX_HELP_STRING([--with-nagios-user=USER],
25 [Installs executables with this user. Defaults to install user]),
26 extra_install_args="-o $withval")
27AC_ARG_WITH(nagios_group,
28 ACX_HELP_STRING([--with-nagios-group=GROUP],
29 [Installs executables with this group. Defaults to install user]),
30 extra_install_args="$extra_install_args -g $withval")
31AC_ARG_WITH(world_permissions,
32 ACX_HELP_STRING([--without-world-permissions],
33 [Installs executables without world permissions]))
34
35if test "x$with_world_permissions" = xno ; then
36 extra_install_args="$extra_install_args -m 0550"
37fi
38
39INSTALL="$INSTALL $extra_install_args"
40INSTALL_STRIP_PROGRAM="$INSTALL_STRIP_PROGRAM $extra_install_args"
25AC_SUBST(INSTALL) 41AC_SUBST(INSTALL)
26 42
27AC_PROG_CC 43AC_PROG_CC