Index: /trunk/glueforge/glueforge.in
===================================================================
--- /trunk/glueforge/glueforge.in	(revision 8272)
+++ /trunk/glueforge/glueforge.in	(revision 8273)
@@ -3,5 +3,5 @@
 # Copyright (C) 2005-2006  Joshua Hoblitt
 #
-# $Id: glueforge.in,v 1.48 2006-02-22 02:30:09 jhoblitt Exp $
+# $Id: glueforge.in,v 1.49 2006-08-10 22:25:51 jhoblitt Exp $
 
 use strict;
@@ -210,5 +210,5 @@
     # global data
 
-    my ($pkg_name, $pkg_namespace);
+    my ($pkg_name, $pkg_namespace, $pkg_version);
     unless (defined $glueforge_meta) {
         # set default values
@@ -224,4 +224,6 @@
             } elsif ($item->{name} eq 'pkg_namespace') {
                 $pkg_namespace = $item->{value};
+            } elsif ($item->{name} eq 'pkg_version') {
+                $pkg_version = $item->{value};
             } else {
                 die "invalid glueforge METADATA key: $item->{name}";
@@ -233,8 +235,11 @@
     die "pkg_namespace is required in complex config" unless defined
         $pkg_namespace;
+    die "pkg_version is required in complex config" unless defined
+        $pkg_version;
 
     my %data;
     $data{pkg_name}         = $pkg_name;
     $data{pkg_namespace}    = $pkg_namespace;
+    $data{pkg_version}      = $pkg_version;
 
     # setup one table per nested metadata
@@ -378,7 +383,8 @@
 
 A complex config file consists of a series of C<METADATA> blocks.  One (and
-only one) of these blocks I<must> be named C<glueforge>. This block
-contains the global package configuration data.  Only the keys C<pkg_name> and
-C<pkg_namespace> are allowed in this block and they are both required.
+only one) of these blocks I<must> be named C<glueforge>. This block contains
+the global package configuration data.  Only the keys C<pkg_name>,
+C<pkg_namespace>, and C<pkg_version> are allowed in this block and they are
+both required.
 
 All other C<METADATA> blocks describe a single table with the name of the
@@ -393,4 +399,5 @@
     pkg_name        STR  foodb 
     pkg_namespace   STR  foo
+    pkg_version     STR  0.0.1
 END
 
Index: /trunk/glueforge/templates/psdb/configure_ac.tt
===================================================================
--- /trunk/glueforge/templates/psdb/configure_ac.tt	(revision 8272)
+++ /trunk/glueforge/templates/psdb/configure_ac.tt	(revision 8273)
@@ -1,5 +1,5 @@
 AC_PREREQ(2.59)
 
-AC_INIT([[% pkg_name %]], [0.0.1], [pan-starrs.ifa.hawaii.edu])
+AC_INIT([[% pkg_name %]], [[% pkg_version %]], [pan-starrs.ifa.hawaii.edu])
 AC_CONFIG_SRCDIR([[% pkg_name %].pc.in])
 
