]> git.tuebingen.mpg.de Git - paraslash.git/commit
Make gengetopt descriptions work.
authorAndre Noll <maan@systemlinux.org>
Fri, 12 Apr 2013 11:54:12 +0000 (13:54 +0200)
committerAndre Noll <maan@systemlinux.org>
Thu, 13 Jun 2013 16:29:03 +0000 (18:29 +0200)
commitb59e0eeefe6b51a26c1165f587bf3776369460a5
treebd20fdf94a274c1212d182f3c0b0d301f7c8217c
parent06b3e7bc1b04def7488a5c5cd65de00aca655612
Make gengetopt descriptions work.

With gengetopt's text and description options it is not possible to
print a text only when --detailed-help was given, but not when only
--help is given.

Moreover, headers generated with old versions of gengetopt do not
export the description text.  However, declaring it unconditionally
causes compiler warnings on new systems.

To circumvent these problems, we introduce a new test for configure
which checks whether the description string is declared. If it is not,
we simply append the declaration to the *.cmdline.h files.

This change allows to move the description string of para_play to
the gengetopt source file.
Makefile.in
configure.ac
m4/gengetopt/makefile
m4/gengetopt/play.m4
play.c