3 AC_DEFUN(jm_CHECK_DECLARATION,
5 AC_MSG_CHECKING([whether $1 is declared])
6 AC_CACHE_VAL(jm_cv_func_decl_$1,
10 char *(*pfn) = (char *(*)) $1
13 eval "jm_cv_func_decl_$1=yes",
14 eval "jm_cv_func_decl_$1=no")])
16 if eval "test \"`echo '$jm_cv_func_decl_'$1`\" = yes"; then
18 ifelse([$3], , :, [$3])
26 dnl jm_CHECK_DECLARATIONS(INCLUDES, FUNCTION... [, ACTION-IF-DECLARED
27 dnl [, ACTION-IF-NOT-DECLARED]])
28 AC_DEFUN(jm_CHECK_DECLARATIONS,
32 jm_CHECK_DECLARATION($jm_func, $1,
34 jm_tr_func=HAVE_DECL_`echo $jm_func | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`
35 AC_DEFINE_UNQUOTED($jm_tr_func) $3], $4)dnl