From 006357f954c72bf4212bbc16e869efbfe9d06eda Mon Sep 17 00:00:00 2001 From: Lee Thompson Date: Tue, 27 Nov 2012 16:02:59 -0600 Subject: initial attempt at autoconf implementation, removed all generated code from git --- main.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'main.c') diff --git a/main.c b/main.c index 74ca0e6e..06a7e91e 100644 --- a/main.c +++ b/main.c @@ -9,12 +9,12 @@ #include "locfile.h" #include "parser.h" #include "execute.h" -#include "version.gen.h" +#include "config.h" /* Autoconf generated header file */ static const char* progname; static void usage() { - fprintf(stderr, "\njq - commandline JSON processor [version %s]\n", JQ_VERSION); + fprintf(stderr, "\njq - commandline JSON processor [version %s]\n", PACKAGE_VERSION); fprintf(stderr, "Usage: %s [options] \n\n", progname); fprintf(stderr, "For a description of the command line options and\n"); fprintf(stderr, "how to write jq filters (and why you might want to)\n"); @@ -122,7 +122,7 @@ int main(int argc, char* argv[]) { } else if (isoption(argv[i], 'h', "help")) { usage(); } else if (isoption(argv[i], 'V', "version")) { - fprintf(stderr, "jq version %s\n", JQ_VERSION); + fprintf(stderr, "jq version %s\n", PACKAGE_VERSION); return 0; } else { fprintf(stderr, "%s: Unknown option %s\n", progname, argv[i]); -- cgit v1.2.3