# Process this file with autoconf to produce a configure script.
AC_PREREQ(2.59)
-AC_INIT(kbd, 1.14, gladkov.alexey@gmail.com)
+AC_INIT(kbd, 1.14.1, gladkov.alexey@gmail.com)
AC_CONFIG_SRCDIR([src/showkey.c])
AC_CONFIG_HEADERS(config.h)
static void
usage(void) {
- fprintf(stderr, _("dumpkeys version %s"), VERSION);
+ fprintf(stderr, _("dumpkeys version %s"), PACKAGE_VERSION);
fprintf(stderr, _("\
\n\
usage: dumpkeys [options...]\n\
" -h --help display this help text\n"
" -V --version display this help text\n"
" -n --next-available display next unallocated VT\n"),
- progname, VERSION, progname);
+ progname, PACKAGE_VERSION, progname);
exit(1);
}
" -m --mktable output a \"defkeymap.c\" to stdout\n"
" -s --clearstrings clear kernel string table\n"
" -u --unicode implicit conversion to Unicode\n"
-" -v --verbose report the changes\n"), VERSION);
+" -v --verbose report the changes\n"), PACKAGE_VERSION);
exit(1);
}
" -m --mktable output a \"defkeymap.c\" to stdout\n"
" -s --clearstrings clear kernel string table\n"
" -u --unicode implicit conversion to Unicode\n"
-" -v --verbose report the changes\n"), VERSION);
+" -v --verbose report the changes\n"), PACKAGE_VERSION);
exit(1);
}
" -a --ascii display the decimal/octal/hex values of the keys\n"
" -s --scancodes display only the raw scan-codes\n"
" -k --keycodes display only the interpreted keycodes (default)\n"
-), VERSION);
+), PACKAGE_VERSION);
exit(1);
}
#include <string.h>
#include <stdlib.h>
-#define VERSION "1.13"
+#include "../config.h"
char *progname;
static inline void
print_version_and_exit(void) {
- printf(_("%s from %s\n"), progname, "kbd-" VERSION);
+ printf(_("%s from %s\n"), progname, PACKAGE_STRING);
exit(0);
}