From bd2a2393ed0b50c067a80b6d39d5d8e3378c177a Mon Sep 17 00:00:00 2001 From: Jesse Thilo Date: Tue, 29 Dec 1998 21:54:26 +0000 Subject: [PATCH] Use VERSION symbol from automake for version number. --- acconfig.h | 14 ++++++++++++++ configure.in | 4 ++-- src/version.c | 3 +++ version.cin | 1 - 4 files changed, 19 insertions(+), 3 deletions(-) create mode 100644 acconfig.h create mode 100644 src/version.c delete mode 100644 version.cin diff --git a/acconfig.h b/acconfig.h new file mode 100644 index 00000000..fbf4463c --- /dev/null +++ b/acconfig.h @@ -0,0 +1,14 @@ +#ifndef CONFIG_H +#define CONFIG_H + +@TOP@ + +/* Name of package. */ +#undef PACKAGE + +/* Version of package. */ +#undef VERSION + +@BOTTOM@ + +#endif /* CONFIG_H */ diff --git a/configure.in b/configure.in index 31a6ce67..4763fc5a 100644 --- a/configure.in +++ b/configure.in @@ -1,6 +1,6 @@ dnl Process this file with autoconf to produce a configure script. AC_INIT(reduce.c) -AM_INIT_AUTOMAKE(bison,1.25.90,nodef) +AM_INIT_AUTOMAKE(bison,1.25.90) AM_CONFIG_HEADER(config.h:config.hin) dnl Checks for programs. @@ -21,4 +21,4 @@ AC_C_CONST dnl Checks for library functions. AC_FUNC_ALLOCA -AC_OUTPUT(Makefile version.c:version.cin) +AC_OUTPUT(Makefile) diff --git a/src/version.c b/src/version.c new file mode 100644 index 00000000..5cb018a3 --- /dev/null +++ b/src/version.c @@ -0,0 +1,3 @@ +#include + +char *version_string = "GNU Bison version " VERSION "\n"; diff --git a/version.cin b/version.cin deleted file mode 100644 index 928a8c06..00000000 --- a/version.cin +++ /dev/null @@ -1 +0,0 @@ -char *version_string = "GNU Bison version @VERSION@\n"; -- 2.47.2