amversion.in 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. ## -*- Autoconf -*-
  2. ## @configure_input@
  3. # Copyright (C) 2002-2017 Free Software Foundation, Inc.
  4. #
  5. # This file is free software; the Free Software Foundation
  6. # gives unlimited permission to copy and/or distribute it,
  7. # with or without modifications, as long as this notice is preserved.
  8. # AM_AUTOMAKE_VERSION(VERSION)
  9. # ----------------------------
  10. # Automake X.Y traces this macro to ensure aclocal.m4 has been
  11. # generated from the m4 files accompanying Automake X.Y.
  12. # (This private macro should not be called outside this file.)
  13. AC_DEFUN([AM_AUTOMAKE_VERSION],
  14. [am__api_version='@APIVERSION@'
  15. dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
  16. dnl require some minimum version. Point them to the right macro.
  17. m4_if([$1], [@VERSION@], [],
  18. [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
  19. ])
  20. # _AM_AUTOCONF_VERSION(VERSION)
  21. # -----------------------------
  22. # aclocal traces this macro to find the Autoconf version.
  23. # This is a private macro too. Using m4_define simplifies
  24. # the logic in aclocal, which can simply ignore this definition.
  25. m4_define([_AM_AUTOCONF_VERSION], [])
  26. # AM_SET_CURRENT_AUTOMAKE_VERSION
  27. # -------------------------------
  28. # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
  29. # This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
  30. AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
  31. [AM_AUTOMAKE_VERSION([@VERSION@])dnl
  32. m4_ifndef([AC_AUTOCONF_VERSION],
  33. [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
  34. _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])