2006-01-12 Alexandre Duret-Lutz <adl@gnu.org>
[automake.git] / m4 / amversion.in
blob155c80ba7538474f3dd647bddd2fdac69171a456
1 ##                                                          -*- Autoconf -*-
2 ## @configure_input@
3 # Copyright (C) 2002, 2003, 2005  Free Software Foundation, Inc.
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.
9 # AM_AUTOMAKE_VERSION(VERSION)
10 # ----------------------------
11 # Automake X.Y traces this macro to ensure aclocal.m4 has been
12 # generated from the m4 files accompanying Automake X.Y.
13 # (This private macro should not be called outside this file.)
14 AC_DEFUN([AM_AUTOMAKE_VERSION],
15 [am__api_version='@APIVERSION@'
16 dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
17 dnl require some minimum version.  Point them to the right macro.
18 m4_if([$1], [@VERSION@], [],
19       [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
22 # AM_SET_CURRENT_AUTOMAKE_VERSION
23 # -------------------------------
24 # Call AM_AUTOMAKE_VERSION so it can be traced.
25 # This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
26 AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
27          [AM_AUTOMAKE_VERSION([@VERSION@])])