1# This file is part of Autoconf. -*- Autoconf -*- 2# Interface with autoscan. 3 4# Copyright (C) 2002, 2009-2012 Free Software Foundation, Inc. 5 6# This file is part of Autoconf. This program is free 7# software; you can redistribute it and/or modify it under the 8# terms of the GNU General Public License as published by the 9# Free Software Foundation, either version 3 of the License, or 10# (at your option) any later version. 11# 12# This program is distributed in the hope that it will be useful, 13# but WITHOUT ANY WARRANTY; without even the implied warranty of 14# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15# GNU General Public License for more details. 16# 17# Under Section 7 of GPL version 3, you are granted additional 18# permissions described in the Autoconf Configure Script Exception, 19# version 3.0, as published by the Free Software Foundation. 20# 21# You should have received a copy of the GNU General Public License 22# and a copy of the Autoconf Configure Script Exception along with 23# this program; see the files COPYINGv3 and COPYING.EXCEPTION 24# respectively. If not, see <http://www.gnu.org/licenses/>. 25 26# Written by Akim Demaille. 27 28# The prefix `AN' is chosen after `AutoscaN'. 29 30# AN_OUTPUT(KIND, WORD, MACROS) 31# ----------------------------- 32# Declare that the WORD, used as a KIND, requires triggering the MACROS. 33m4_define([AN_OUTPUT], []) 34 35 36# AN_FUNCTION(NAME, MACROS) 37# AN_HEADER(NAME, MACROS) 38# AN_IDENTIFIER(NAME, MACROS) 39# AN_LIBRARY(NAME, MACROS) 40# AN_MAKEVAR(NAME, MACROS) 41# AN_PROGRAM(NAME, MACROS) 42# --------------------------- 43# If the FUNCTION/HEADER etc. is used in the package, then the MACROS 44# should be invoked from configure.ac. 45m4_define([AN_FUNCTION], [AN_OUTPUT([function], $@)]) 46m4_define([AN_HEADER], [AN_OUTPUT([header], $@)]) 47m4_define([AN_IDENTIFIER], [AN_OUTPUT([identifier], $@)]) 48m4_define([AN_LIBRARY], [AN_OUTPUT([library], $@)]) 49m4_define([AN_MAKEVAR], [AN_OUTPUT([makevar], $@)]) 50m4_define([AN_PROGRAM], [AN_OUTPUT([program], $@)]) 51