Annotation of parser3/acsite.m4, revision 1.45.2.1

1.2       paf         1: # paf@design.ru
                      2: # included in configure.in
                      3: 
                      4: AC_DEFUN([PA_CHECK_MATH_FUNC_ONE_ARG],[
                      5: AC_MSG_CHECKING(for (maybe built-in) math function $1)
                      6: AC_TRY_COMPILE([
                      7: #ifdef HAVE_MATH_H
                      8: #       include <math.h>
                      9: #endif
                     10: ],[
                     11:         double result=$1(1.6);
                     12: ],
                     13: [AC_MSG_RESULT(yes)
                     14: $2],
                     15: [AC_MSG_RESULT(no)
                     16: $3])
                     17: ]
                     18: )
                     19: 
                     20: 
                     21: AC_DEFUN([PA_CHECK_MATH_FUNCS_ONE_ARG],[
                     22: AC_FOREACH([AC_Func], [$1],
1.30      misha      23:   [AH_TEMPLATE(AS_TR_CPP([HAVE_]AC_Func),
1.2       paf        24:                [Define to 1 if you have the `]AC_Func[' (maybe built-in) math function function.])])dnl
                     25: 
                     26: for pa_func in $1
                     27: do
                     28: PA_CHECK_MATH_FUNC_ONE_ARG($pa_func,
1.30      misha      29:              [AC_DEFINE_UNQUOTED(AS_TR_CPP([HAVE_$pa_func]) $2)],
1.2       paf        30:               [$3])dnl
                     31: done
                     32: ])
                     33: 
                     34: 
                     35: AC_DEFUN([PA_CHECK_SIGSETJMP],[
                     36: pa_func=sigsetjmp
                     37: AC_MSG_CHECKING(for (maybe built-in) function $pa_func)
                     38: AC_TRY_COMPILE([
                     39: #ifdef HAVE_SETJMP_H
                     40: #      include <setjmp.h>
                     41: #endif
                     42: ],[
                     43:         $pa_func(0,0);
                     44: ],
                     45: [AC_MSG_RESULT(yes)
1.30      misha      46: AC_DEFINE_UNQUOTED(AS_TR_CPP([HAVE_$pa_func]))
1.2       paf        47: ],
                     48: [AC_MSG_RESULT(no)
                     49: ])
                     50: ]
                     51: )

E-mail: