~ubuntu-branches/ubuntu/lucid/gnutls26/lucid-proposed

« back to all changes in this revision

Viewing changes to m4/autobuild.m4

  • Committer: Bazaar Package Importer
  • Author(s): Andreas Metzler
  • Date: 2008-06-24 19:13:25 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20080624191325-33rewwn0p11jzdvq
Tags: 2.4.0-2
* Standards version 3.8.0. Rename README.source_and_patches to README.source.
* Upload to unstable.
* Point watchfile to stable releases again.
* Merge experimental and unstable changelog.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# autobuild.m4 serial 2 (autobuild-3.3)
2
 
# Copyright (C) 2004 Simon Josefsson
3
 
#
4
 
# This file is free software, distributed under the terms of the GNU
5
 
# General Public License.  As a special exception to the GNU General
6
 
# Public License, this file may be distributed as part of a program
7
 
# that contains a configuration script generated by Autoconf, under
8
 
# the same distribution terms as the rest of that program.
9
 
#
10
 
# This file can can be used in projects which are not available under
11
 
# the GNU General Public License or the GNU Library General Public
12
 
# License but which still want to provide support for Autobuild.
13
 
 
14
 
# Usage: AB_INIT([MODE]).
15
 
AC_DEFUN([AB_INIT],
16
 
[
17
 
        AC_REQUIRE([AC_CANONICAL_BUILD])
18
 
        AC_REQUIRE([AC_CANONICAL_HOST])
19
 
 
20
 
        AC_MSG_NOTICE([autobuild project... ${PACKAGE_NAME:-$PACKAGE}])
21
 
        AC_MSG_NOTICE([autobuild revision... ${PACKAGE_VERSION:-$VERSION}])
22
 
        hostname=`hostname`
23
 
        if test "$hostname"; then
24
 
           AC_MSG_NOTICE([autobuild hostname... $hostname])
25
 
        fi
26
 
        ifelse([$1],[],,[AC_MSG_NOTICE([autobuild mode... $1])])
27
 
        date=`date +%Y%m%d-%H%M%S`
28
 
        if test "$?" != 0; then
29
 
           date=`date`
30
 
        fi
31
 
        if test "$date"; then
32
 
           AC_MSG_NOTICE([autobuild timestamp... $date])
33
 
        fi
34
 
])