mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-21 02:03:03 +00:00
Use VERSION symbol from automake for version number.
This commit is contained in:
14
acconfig.h
Normal file
14
acconfig.h
Normal file
@@ -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 */
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
dnl Process this file with autoconf to produce a configure script.
|
dnl Process this file with autoconf to produce a configure script.
|
||||||
AC_INIT(reduce.c)
|
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)
|
AM_CONFIG_HEADER(config.h:config.hin)
|
||||||
|
|
||||||
dnl Checks for programs.
|
dnl Checks for programs.
|
||||||
@@ -21,4 +21,4 @@ AC_C_CONST
|
|||||||
dnl Checks for library functions.
|
dnl Checks for library functions.
|
||||||
AC_FUNC_ALLOCA
|
AC_FUNC_ALLOCA
|
||||||
|
|
||||||
AC_OUTPUT(Makefile version.c:version.cin)
|
AC_OUTPUT(Makefile)
|
||||||
|
|||||||
3
src/version.c
Normal file
3
src/version.c
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
#include <config.h>
|
||||||
|
|
||||||
|
char *version_string = "GNU Bison version " VERSION "\n";
|
||||||
@@ -1 +0,0 @@
|
|||||||
char *version_string = "GNU Bison version @VERSION@\n";
|
|
||||||
Reference in New Issue
Block a user