Use the PACKAGE_BUGREPORT and PACKAGE_STRING macros from automake

in --help and --version.  Notably this provides the correct URL
for the bugtracker.
This commit is contained in:
Bruce A. Mah 2014-04-09 13:29:03 -07:00
parent e3990c3cc0
commit 449f47e4ef
No known key found for this signature in database
GPG Key ID: 4984910A8CAAEE8A

View File

@ -53,6 +53,8 @@
#include "version.h"
#include "config.h"
#ifdef __cplusplus
extern "C"
{
@ -124,7 +126,7 @@ const char usage_longstr[] = "Usage: iperf [-s|-c host] [options]\n"
"\n"
"[KMG] indicates options that support a K/M/G suffix for kilo-, mega-, or giga-\n"
"Report bugs to <iperf-users@lists.sourceforge.net>\n";
"Report bugs to " PACKAGE_BUGREPORT "\n";
#ifdef OBSOLETE /* from old iperf: no longer supported. Add some of these back someday */
@ -138,7 +140,7 @@ const char usage_longstr[] = "Usage: iperf [-s|-c host] [options]\n"
"-y, --reportstyle C report as a Comma-Separated Values\n"
#endif
const char version[] = "iperf version " IPERF_VERSION " (" IPERF_VERSION_DATE ")";
const char version[] = PACKAGE_STRING " (" IPERF_VERSION_DATE ")";
/* -------------------------------------------------------------------
* settings