1 # autobuild.m4 serial 3
2 # Copyright (C) 2004, 2006 Simon Josefsson
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.
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.
14 # Usage: AB_INIT([MODE]).
17 AC_REQUIRE([AC_CANONICAL_BUILD])
18 AC_REQUIRE([AC_CANONICAL_HOST])
20 if test -z "$AB_PACKAGE"; then
21 AB_PACKAGE=${PACKAGE_NAME:-$PACKAGE}
23 AC_MSG_NOTICE([autobuild project... $AB_PACKAGE])
25 if test -z "$AB_VERSION"; then
26 AB_VERSION=${PACKAGE_VERSION:-$VERSION}
28 AC_MSG_NOTICE([autobuild revision... $AB_VERSION])
31 if test "$hostname"; then
32 AC_MSG_NOTICE([autobuild hostname... $hostname])
35 ifelse([$1],[],,[AC_MSG_NOTICE([autobuild mode... $1])])
37 date=`date +%Y%m%d-%H%M%S`
38 if test "$?" != 0; then
42 AC_MSG_NOTICE([autobuild timestamp... $date])