diff configure @ 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
line wrap: on
line diff
--- a/configure	Sun Jul 24 15:47:09 2011 -0400
+++ b/configure	Tue Aug 02 13:33:38 2011 -0400
@@ -1,6 +1,6 @@
 #! /bin/sh
 # Guess values for system-dependent variables and create Makefiles.
-# Generated by GNU Autoconf 2.68 for urweb 1.0.
+# Generated by GNU Autoconf 2.68 for urweb 20110715.
 #
 #
 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
@@ -567,8 +567,8 @@
 # Identity of this package.
 PACKAGE_NAME='urweb'
 PACKAGE_TARNAME='urweb'
-PACKAGE_VERSION='1.0'
-PACKAGE_STRING='urweb 1.0'
+PACKAGE_VERSION='20110715'
+PACKAGE_STRING='urweb 20110715'
 PACKAGE_BUGREPORT=''
 PACKAGE_URL=''
 
@@ -1301,7 +1301,7 @@
   # Omit some internal or obsolete options to make the list less imposing.
   # This message is too long to be a string in the A/UX 3.1 sh.
   cat <<_ACEOF
-\`configure' configures urweb 1.0 to adapt to many kinds of systems.
+\`configure' configures urweb 20110715 to adapt to many kinds of systems.
 
 Usage: $0 [OPTION]... [VAR=VALUE]...
 
@@ -1371,7 +1371,7 @@
 
 if test -n "$ac_init_help"; then
   case $ac_init_help in
-     short | recursive ) echo "Configuration of urweb 1.0:";;
+     short | recursive ) echo "Configuration of urweb 20110715:";;
    esac
   cat <<\_ACEOF
 
@@ -1474,7 +1474,7 @@
 test -n "$ac_init_help" && exit $ac_status
 if $ac_init_version; then
   cat <<\_ACEOF
-urweb configure 1.0
+urweb configure 20110715
 generated by GNU Autoconf 2.68
 
 Copyright (C) 2010 Free Software Foundation, Inc.
@@ -1839,7 +1839,7 @@
 This file contains any messages produced by compilers while
 running configure, to aid debugging if configure makes a mistake.
 
-It was created by urweb $as_me 1.0, which was
+It was created by urweb $as_me 20110715, which was
 generated by GNU Autoconf 2.68.  Invocation command line was
 
   $ $0 $@
@@ -2187,6 +2187,7 @@
 ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
 
+WORKING_VERSION=1
 ac_ext=c
 ac_cpp='$CPP $CPPFLAGS'
 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
@@ -3965,7 +3966,7 @@
 
 # Define the identity of the package.
  PACKAGE='urweb'
- VERSION='1.0'
+ VERSION='20110715'
 
 
 # Some tools Automake needs.
@@ -12175,6 +12176,11 @@
    SQHEADER=sqlite3.h
 fi
 
+if test $WORKING_VERSION = "1"; then
+   VERSION="$VERSION + `hg identify || cat .hg_archival.txt || echo ?`"
+fi
+
+
 
 
 
@@ -12726,7 +12732,7 @@
 # report actual input values of CONFIG_FILES etc. instead of their
 # values after options handling.
 ac_log="
-This file was extended by urweb $as_me 1.0, which was
+This file was extended by urweb $as_me 20110715, which was
 generated by GNU Autoconf 2.68.  Invocation command line was
 
   CONFIG_FILES    = $CONFIG_FILES
@@ -12792,7 +12798,7 @@
 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
 ac_cs_version="\\
-urweb config.status 1.0
+urweb config.status 20110715
 configured by $0, generated by GNU Autoconf 2.68,
   with options \\"\$ac_cs_config\\"
 
@@ -14576,4 +14582,6 @@
   Postgres C header:   PGHEADER       $PGHEADER
   MySQL C header:      MSHEADER       $MSHEADER
   SQLite C header:     SQHEADER       $SQHEADER
+
+  Version:             $VERSION
 EOF