geom_gate userland utility improvements
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

45 lines
1.3 KiB

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