1 # autobuild.m4 serial 7
2 dnl Copyright (C) 2004, 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
4 dnl This file is free software; the Free Software Foundation
5 dnl gives unlimited permission to copy and/or distribute it,
6 dnl with or without modifications, as long as this notice is preserved.
8 dnl From Simon Josefsson
10 # Usage: AB_INIT([MODE]).
13 AC_REQUIRE([AC_CANONICAL_BUILD])
14 AC_REQUIRE([AC_CANONICAL_HOST])
16 if test -z "$AB_PACKAGE"; then
17 AB_PACKAGE=${PACKAGE_NAME:-$PACKAGE}
19 AC_MSG_NOTICE([autobuild project... $AB_PACKAGE])
21 if test -z "$AB_VERSION"; then
22 AB_VERSION=${PACKAGE_VERSION:-$VERSION}
24 AC_MSG_NOTICE([autobuild revision... $AB_VERSION])
27 if test "$hostname"; then
28 AC_MSG_NOTICE([autobuild hostname... $hostname])
31 ifelse([$1],[],,[AC_MSG_NOTICE([autobuild mode... $1])])
33 date=`TZ=UTC0 date +%Y%m%dT%H%M%SZ`
34 if test "$?" != 0; then
38 AC_MSG_NOTICE([autobuild timestamp... $date])