summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2013-02-22 21:14:09 -0800
committerAlan Coopersmith <alan.coopersmith@oracle.com>2013-02-22 21:14:09 -0800
commit6cd34b45c87717ae7901993e32b99a43652fa0f3 (patch)
tree5571db5f0a16c202d1f361aa73bc42228f5caeff
parent2b57aeb0ea616cfca8e6fcbd844960269af8c533 (diff)
Include PACKAGE_STRING in --version output
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r--transSet.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/transSet.c b/transSet.c
index 0547f61..aef2330 100644
--- a/transSet.c
+++ b/transSet.c
@@ -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: