Get version string from autoconf macros.

This commit is contained in:
Junichi Uekawa 2008-10-13 02:06:12 +00:00
parent 0060b65929
commit e21b43fd31
1 changed files with 1 additions and 4 deletions

View File

@ -38,9 +38,6 @@
#define LOG_NORMAL 2
#define LOG_ERROR 3
#define VER_MAJOR 1
#define VER_MINOR 0
int loglevel = LOG_NORMAL;
/**
@ -913,7 +910,7 @@ bool parse_options(int argc, char **argv)
}
if (!strcmp("version", long_options[oi].name)) {
printf("Version: %d.%d\n", VER_MAJOR, VER_MINOR);
printf("Version: %s\n", VERSION);
exit(0);
}