diff options
author | Keith Packard <keithp@keithp.com> | 2003-05-31 14:58:41 +0000 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2003-05-31 14:58:41 +0000 |
commit | 86b1243193a1cbab3286ee97d2543bfc841a575a (patch) | |
tree | cbc27af4a37123d01fc33be20b6241e5739f3e20 /fc-list/fc-list.c | |
parent | d4d1e8bc604c98d647d70f9188744b95deba8723 (diff) |
(Bug 87) Automake 1.4 doesn't do man_MAN1 correctly (Bug 88) Fix usage info
on non-long option systems (Tim Mooney)
Diffstat (limited to 'fc-list/fc-list.c')
-rw-r--r-- | fc-list/fc-list.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/fc-list/fc-list.c b/fc-list/fc-list.c index 404cd64..6416331 100644 --- a/fc-list/fc-list.c +++ b/fc-list/fc-list.c @@ -61,13 +61,24 @@ extern int optind, opterr, optopt; static void usage (char *program) { +#if HAVE_GETOPT_LONG fprintf (stderr, "usage: %s [-vV?] [--verbose] [--version] [--help] [pattern] {element ...} \n", program); +#else + fprintf (stderr, "usage: %s [-vV?] [pattern] {element ...} \n", + program); +#endif fprintf (stderr, "List fonts matching [pattern]\n"); fprintf (stderr, "\n"); +#if HAVE_GETOPT_LONG fprintf (stderr, " -v, --verbose display status information while busy\n"); fprintf (stderr, " -V, --version display font config version and exit\n"); fprintf (stderr, " -?, --help display this help and exit\n"); +#else + fprintf (stderr, " -v (verbose) display status information while busy\n"); + fprintf (stderr, " -V (version) display font config version and exit\n"); + fprintf (stderr, " -? (help) display this help and exit\n"); +#endif exit (1); } |