bug-gnulib
[Top][All Lists]
Advanced

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

autobuild.m4


From: Simon Josefsson
Subject: autobuild.m4
Date: Thu, 12 Apr 2007 10:31:14 +0200
User-agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.95 (gnu/linux)

Several projects uses autobuild.m4 (at least gnutls, gsasl, inetutils,
libidn) and also use gnulib.  It seems easier to distribute
autobuild.m4 via gnulib.  Any objections to this patch?

/Simon

Index: ChangeLog
===================================================================
RCS file: /sources/gnulib/gnulib/ChangeLog,v
retrieving revision 1.1545
diff -u -p -r1.1545 ChangeLog
--- ChangeLog   6 Apr 2007 21:22:02 -0000       1.1545
+++ ChangeLog   12 Apr 2007 08:30:40 -0000
@@ -1,3 +1,9 @@
+2007-04-12  Simon Josefsson  <address@hidden>
+
+       * modules/autobuild: New module.
+
+       * m4/autobuild.m4: New file.
+
 2007-04-06  Bruno Haible  <address@hidden>
 
        * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
Index: m4/autobuild.m4
===================================================================
RCS file: m4/autobuild.m4
diff -N m4/autobuild.m4
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ m4/autobuild.m4     12 Apr 2007 08:30:40 -0000
@@ -0,0 +1,39 @@
+# autobuild.m4 serial 4
+dnl Copyright (C) 2004, 2006, 2007 Free Software Foundation, Inc.
+dnl This file is free software; the Free Software Foundation
+dnl gives unlimited permission to copy and/or distribute it,
+dnl with or without modifications, as long as this notice is preserved.
+
+dnl From Simon Josefsson
+
+# Usage: AB_INIT([MODE]).
+AC_DEFUN([AB_INIT],
+[
+       AC_REQUIRE([AC_CANONICAL_BUILD])
+       AC_REQUIRE([AC_CANONICAL_HOST])
+
+       if test -z "$AB_PACKAGE"; then
+          AB_PACKAGE=${PACKAGE_NAME:-$PACKAGE}
+       fi
+       AC_MSG_NOTICE([autobuild project... $AB_PACKAGE])
+
+       if test -z "$AB_VERSION"; then
+          AB_VERSION=${PACKAGE_VERSION:-$VERSION}
+       fi
+       AC_MSG_NOTICE([autobuild revision... $AB_VERSION])
+
+       hostname=`hostname`
+       if test "$hostname"; then
+          AC_MSG_NOTICE([autobuild hostname... $hostname])
+       fi
+
+       ifelse([$1],[],,[AC_MSG_NOTICE([autobuild mode... $1])])
+
+       date=`date +%Y%m%d-%H%M%S`
+       if test "$?" != 0; then
+          date=`date`
+       fi
+       if test "$date"; then
+          AC_MSG_NOTICE([autobuild timestamp... $date])
+       fi
+])
Index: modules/autobuild
===================================================================
RCS file: modules/autobuild
diff -N modules/autobuild
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ modules/autobuild   12 Apr 2007 08:30:40 -0000
@@ -0,0 +1,19 @@
+Description:
+Macros to print information about the build, useful for the autobuild parser.
+
+Files:
+m4/autobuild.m4
+
+Depends-on:
+
+configure.ac:
+
+Makefile.am:
+
+Include:
+
+License:
+unlimited
+
+Maintainer:
+Simon Josefsson




reply via email to

[Prev in Thread] Current Thread [Next in Thread]