diff options
| author | Roy Marples <roy@marples.name> | 2016-09-27 10:34:29 +0000 |
|---|---|---|
| committer | Roy Marples <roy@marples.name> | 2016-09-27 10:34:29 +0000 |
| commit | f0a8b16891542f2c58af10491023a45ecbc052da (patch) | |
| tree | 6362f10500124be79aa355aacadd4b8af05d40fa /dhcpcd.c | |
| parent | bd76235377543cde7eb4bb1cc5b4b38afbaffed4 (diff) | |
| download | dhcpcd-f0a8b16891542f2c58af10491023a45ecbc052da.tar.xz | |
Report compiled in features in --version.
Diffstat (limited to 'dhcpcd.c')
| -rw-r--r-- | dhcpcd.c | 17 |
1 files changed, 17 insertions, 0 deletions
@@ -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; } } |
