[json-glib] build: Clean up the configure summary



commit d122f9b8c09ad7e82b1a70da5d65ebba2111e6cc
Author: Emmanuele Bassi <ebassi linux intel com>
Date:   Sun Nov 29 12:33:01 2009 +0000

    build: Clean up the configure summary
    
    Make the output of the summary a little bit nicer.

 configure.ac |   27 ++++++++++++++++++++-------
 1 files changed, 20 insertions(+), 7 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 7fcee49..2646ef2 100644
--- a/configure.ac
+++ b/configure.ac
@@ -6,6 +6,11 @@ m4_define([json_micro_version], [1])
 
 m4_define([json_version], [json_major_version.json_minor_version.json_micro_version])
 
+m4_define([json_release_status],
+          [m4_if(m4_eval(json_micro_version % 2), [1], [git],
+                 [m4_if(m4_eval(json_minor_version % 2), [1], [snapshot],
+                                                              [release])])])
+
 # bump up by 1 for every micro release with no API changes, otherwise
 # set to 0. after release, bump up by 1
 m4_define([json_interface_age], [0])
@@ -42,10 +47,12 @@ JSON_MAJOR_VERSION=json_major_version
 JSON_MINOR_VERSION=json_minor_version
 JSON_MICRO_VERSION=json_micro_version
 JSON_VERSION=json_version
+JSON_RELEASE_STATUS=json_release_status
 AC_SUBST(JSON_MAJOR_VERSION)
 AC_SUBST(JSON_MICRO_VERSION)
 AC_SUBST(JSON_MINOR_VERSION)
 AC_SUBST(JSON_VERSION)
+AC_SUBST(JSON_RELEASE_STATUS)
 
 JSON_LT_CURRENT=lt_current
 JSON_LT_REVISION=lt_revision
@@ -160,13 +167,19 @@ AC_CONFIG_FILES([
 
 AC_OUTPUT
 
+dnl === Summary ===============================================================
+
+echo ""
+echo " Json-GLib - $VERSION (${JSON_RELEASE_STATUS})"
+echo ""
+echo " â?¢ Prefix: ${prefix}"
+echo ""
+echo " â?¢ Debug level: ${enable_debug}"
+echo " â?¢ Compiler flags: ${MAINTAINER_CFLAGS}"
+echo " â?¢ Use shave: ${use_shave}"
 echo ""
-echo " Json-GLib $VERSION"
+echo " â?¢ API reference: ${enable_gtk_doc}"
 echo ""
-echo "                   Prefix: ${prefix}"
-echo "              Debug level: ${enable_debug}"
-echo "           Compiler flags: ${MAINTAINER_CFLAGS}"
-echo "            API reference: ${enable_gtk_doc}"
-echo "        Enable test suite: ${enable_glibtest}"
-echo " Build introspection data: ${enable_introspection}"
+echo " â?¢ Enable test suite: ${enable_glibtest}"
+echo " â?¢ Build introspection data: ${enable_introspection}"
 echo ""



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]