File: ipv6-linux-only

package info (click to toggle)
resource-agents 1%3A4.12.0-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 4,644 kB
  • sloc: sh: 39,372; ansic: 4,416; perl: 3,525; makefile: 845; python: 308; xml: 89
file content (19 lines) | stat: -rw-r--r-- 1,083 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Description: Disable IPv6addr and send_ua on non-Linux
 They need SIOCSIFADDR and SIOGIFINDEX.
Author: Christoph Berg <myon@debian.org>
Last-Update: 2016-04-08
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/configure.ac
+++ b/configure.ac
@@ -807,8 +807,8 @@
 dnl ************************************************************************
 dnl * Check for netinet/icmp6.h to enable the IPv6addr resource agent
 AC_CHECK_HEADERS(netinet/icmp6.h,[],[],[#include <sys/types.h>])
-AM_CONDITIONAL(USE_IPV6ADDR_AGENT, test "$ac_cv_header_netinet_icmp6_h" = yes && test "$ac_cv_header_heartbeat_glue_config_h" = yes)
-AM_CONDITIONAL(IPV6ADDR_COMPATIBLE, test "$ac_cv_header_netinet_icmp6_h" = yes)
+AM_CONDITIONAL(USE_IPV6ADDR_AGENT, test "$ac_cv_header_netinet_icmp6_h" = yes && test "$ac_cv_header_heartbeat_glue_config_h" = yes && test $(uname) = Linux)
+AM_CONDITIONAL(IPV6ADDR_COMPATIBLE, test "$ac_cv_header_netinet_icmp6_h" = yes && test $(uname) = Linux)
 
 dnl ========================================================================
 dnl Compiler flags