1 dnl Copyright (C) 1993-2002 Free Software Foundation, Inc.
2 dnl This file is free software, distributed under the terms of the GNU
3 dnl General Public License. As a special exception to the GNU General
4 dnl Public License, this file may be distributed as part of a program
5 dnl that contains a configuration script generated by Autoconf, under
6 dnl the same distribution terms as the rest of that program.
8 dnl From Bruno Haible, Marcus Daniels.
12 dnl CL_PROTO(IDENTIFIER, ACTION-IF-NOT-FOUND, FINAL-PROTOTYPE)
14 [AC_MSG_CHECKING([for $1 declaration])
15 AC_CACHE_VAL(cl_cv_proto_[$1], [$2
17 cl_cv_proto_$1=`echo "[$]cl_cv_proto_$1" | tr -s ' ' | sed -e 's/( /(/'`
18 AC_MSG_RESULT([$]{ac_t:-
22 dnl CL_PROTO_RET(INCLUDES, ANSI-DECL, TRAD-DECL, CACHE-ID, TYPE-IF-OK, TYPE-IF-FAILS)
23 AC_DEFUN([CL_PROTO_RET],
26 [#if defined(__STDC__) || defined(__cplusplus)
31 ], [], $4="$5", $4="$6")
34 dnl CL_PROTO_TRY(INCLUDES, ANSI-DECL, TRAD-DECL, ACTION-IF-OK, ACTION-IF-FAILS)
35 AC_DEFUN([CL_PROTO_TRY],
38 [#if defined(__STDC__) || defined(__cplusplus)
46 dnl CL_PROTO_CONST(INCLUDES, ANSI-DECL, TRAD-DECL, CACHE-ID)
47 AC_DEFUN([CL_PROTO_CONST],
48 [CL_PROTO_TRY([$1], [$2], [$3], $4="", $4="const")]