X-Git-Url: http://git.jankratochvil.net/?p=macros.git;a=blobdiff_plain;f=need-declaration.m4;h=cf8f35430c8bb0b3b53aeede4ac7cb0c7a470a72;hp=d5b7bc66d50188e0fdf70b147250dcc482eb6447;hb=bb47cd953fb515c8f996a0da784bf3deb3bea461;hpb=83a597f8c2e90193726f792c78363468fdbe98cb diff --git a/need-declaration.m4 b/need-declaration.m4 index d5b7bc6..cf8f354 100644 --- a/need-declaration.m4 +++ b/need-declaration.m4 @@ -1,6 +1,23 @@ +dnl $Id$ dnl See whether we need a declaration for a function. +dnl Copyright (C) 2003 Jan Kratochvil +dnl +dnl This program is free software; you can redistribute it and/or modify +dnl it under the terms of the GNU General Public License as published by +dnl the Free Software Foundation; exactly version 2 of June 1991 is required +dnl +dnl This program is distributed in the hope that it will be useful, +dnl but WITHOUT ANY WARRANTY; without even the implied warranty of +dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +dnl GNU General Public License for more details. +dnl +dnl You should have received a copy of the GNU General Public License +dnl along with this program; if not, write to the Free Software +dnl Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + + dnl GCC_NEED_DECLARATION(FUNCTION [, EXTRA-HEADER-FILES]) -AC_DEFUN(GCC_NEED_DECLARATION, +AC_DEFUN([GCC_NEED_DECLARATION], [AC_MSG_CHECKING([whether $1 must be declared]) AC_CACHE_VAL(gcc_cv_decl_needed_$1, [AC_TRY_COMPILE([ @@ -33,7 +50,7 @@ fi dnl Check multiple functions to see whether each needs a declaration. dnl GCC_NEED_DECLARATIONS(FUNCTION... [, EXTRA-HEADER-FILES]) -AC_DEFUN(GCC_NEED_DECLARATIONS, +AC_DEFUN([GCC_NEED_DECLARATIONS], [for ac_func in $1 do GCC_NEED_DECLARATION($ac_func, $2)