diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2013-02-22 21:14:09 -0800 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2013-02-22 21:14:09 -0800 |
commit | 6cd34b45c87717ae7901993e32b99a43652fa0f3 (patch) | |
tree | 5571db5f0a16c202d1f361aa73bc42228f5caeff | |
parent | 2b57aeb0ea616cfca8e6fcbd844960269af8c533 (diff) |
Include PACKAGE_STRING in --version output
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r-- | transSet.c | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -25,6 +25,10 @@ * DEALINGS IN THE SOFTWARE. */ +#ifdef HAVE_CONFIG_H +# include "config.h" +#endif + #define VERSIONSTR "6" #define RELEASEDATESTR "2007-09-21" @@ -203,8 +207,8 @@ main (int argc, char **argv) max = atof (optarg); break; case 'V': - fprintf (stderr, "version: %s\nreleased: %s\n", - VERSIONSTR, RELEASEDATESTR); + fprintf (stderr, "%s\nversion: %s\nreleased: %s\n", + PACKAGE_STRING, VERSIONSTR, RELEASEDATESTR); exit (1); break; default: |