initial attempt at autoconf implementation, removed all generated code from git

This commit is contained in:
Lee Thompson committed 2012-11-27 16:02:59 -06:00
1 parent a33c6f3df9
commit 006357f954
14 files changed
+169 -5801

No files matched your search

+3 -3
View File
@@ -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] <jq filter>\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]);