Add --with-ipv4 and --with-ipv6 options to cnfigure
Currently, to get IPv6 fping you have to pass -DIPV6 to to make while compiling, and the resulting fping will not handle ipv4. This patch adds --with-ipv4 (enabled by default) and --with-ipv6 (disabled by default) that gives a IPv4 capable fping, and a IPv6 capable fping6 respectively. Both can be enabled, or either one. If both the IPv4 and the IPv6 versions are disabled, configure will throw an error.pull/25/head
parent
e92a68dc4d
commit
bdef483f4b
@ -1,3 +1,16 @@
|
||||
sbin_PROGRAMS = fping
|
||||
prog =
|
||||
|
||||
if IPV4
|
||||
prog += fping
|
||||
endif
|
||||
if IPV6
|
||||
prog += fping6
|
||||
endif
|
||||
|
||||
sbin_PROGRAMS = ${prog}
|
||||
|
||||
fping_SOURCES = fping.c options.h
|
||||
fping_DEPENDENCIES = ../config.h
|
||||
fping6_SOURCES = fping.c options.h
|
||||
fping6_DEPENDENCIES = ../config.h
|
||||
fping6_CFLAGS = $(AM_CFLAGS) -DIPV6
|
||||
|
Loading…
Reference in New Issue