summaryrefslogtreecommitdiffstats
path: root/dhcpcd.c
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2016-09-27 10:34:29 +0000
committerRoy Marples <roy@marples.name>2016-09-27 10:34:29 +0000
commitf0a8b16891542f2c58af10491023a45ecbc052da (patch)
tree6362f10500124be79aa355aacadd4b8af05d40fa /dhcpcd.c
parentbd76235377543cde7eb4bb1cc5b4b38afbaffed4 (diff)
downloaddhcpcd-f0a8b16891542f2c58af10491023a45ecbc052da.tar.xz
Report compiled in features in --version.
Diffstat (limited to 'dhcpcd.c')
-rw-r--r--dhcpcd.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/dhcpcd.c b/dhcpcd.c
index d9f3e13e..8f1862b2 100644
--- a/dhcpcd.c
+++ b/dhcpcd.c
@@ -1455,6 +1455,23 @@ main(int argc, char **argv)
return EXIT_SUCCESS;
} else if (strcmp(argv[1], "--version") == 0) {
printf(""PACKAGE" "VERSION"\n%s\n", dhcpcd_copyright);
+ printf("Compiled in features:"
+#ifdef INET
+ " INET"
+#endif
+#ifdef IPV4LL
+ " IPv4LL"
+#endif
+#ifdef INET6
+ " INET6"
+#endif
+#ifdef DHCP6
+ " DHCPv6"
+#endif
+#ifdef AUTH
+ " AUTH"
+#endif
+ "\n");
return EXIT_SUCCESS;
}
}