comparison configure.ac @ 1520:b5517f47b1f1

Tracking and printing of version numbers (based on a patch by Austin Seipp)
author Adam Chlipala <adam@chlipala.net>
date Tue, 02 Aug 2011 13:33:38 -0400
parents 3d0cc841cafd
children 52fbd8534ef3
comparison
equal deleted inserted replaced
1519:ada582d07ae1 1520:b5517f47b1f1
1 AC_INIT([urweb], [1.0]) 1 AC_INIT([urweb], [20110715])
2 WORKING_VERSION=1
2 AC_USE_SYSTEM_EXTENSIONS 3 AC_USE_SYSTEM_EXTENSIONS
3 AM_INIT_AUTOMAKE([-Wall -Werror foreign no-define]) 4 AM_INIT_AUTOMAKE([-Wall -Werror foreign no-define])
4 AC_PROG_CC() 5 AC_PROG_CC()
5 AC_PROG_LIBTOOL() 6 AC_PROG_LIBTOOL()
6 AC_CONFIG_MACRO_DIR([m4]) 7 AC_CONFIG_MACRO_DIR([m4])
77 78
78 if test [-z $SQHEADER]; then 79 if test [-z $SQHEADER]; then
79 SQHEADER=sqlite3.h 80 SQHEADER=sqlite3.h
80 fi 81 fi
81 82
83 if test [$WORKING_VERSION = "1"]; then
84 VERSION="$VERSION + `hg identify || cat .hg_archival.txt || echo ?`"
85 fi
86
82 AC_SUBST(CC) 87 AC_SUBST(CC)
83 AC_SUBST(BIN) 88 AC_SUBST(BIN)
84 AC_SUBST(LIB) 89 AC_SUBST(LIB)
85 AC_SUBST(INCLUDE) 90 AC_SUBST(INCLUDE)
86 AC_SUBST(SITELISP) 91 AC_SUBST(SITELISP)
87 AC_SUBST(GCCARGS) 92 AC_SUBST(GCCARGS)
88 AC_SUBST(PGHEADER) 93 AC_SUBST(PGHEADER)
89 AC_SUBST(MSHEADER) 94 AC_SUBST(MSHEADER)
90 AC_SUBST(SQHEADER) 95 AC_SUBST(SQHEADER)
96 AC_SUBST(VERSION)
91 97
92 AC_CONFIG_FILES([ 98 AC_CONFIG_FILES([
93 Makefile 99 Makefile
94 src/c/Makefile 100 src/c/Makefile
95 src/config.sml 101 src/config.sml
107 C compiler: CC $CC 113 C compiler: CC $CC
108 Extra GCC args: GCCARGS $GCCARGS 114 Extra GCC args: GCCARGS $GCCARGS
109 Postgres C header: PGHEADER $PGHEADER 115 Postgres C header: PGHEADER $PGHEADER
110 MySQL C header: MSHEADER $MSHEADER 116 MySQL C header: MSHEADER $MSHEADER
111 SQLite C header: SQHEADER $SQHEADER 117 SQLite C header: SQHEADER $SQHEADER
118
119 Version: $VERSION
112 EOF 120 EOF