Sync usage with man page.
[netbsd-mini2440.git] / crypto / dist / heimdal / cf / c-function.m4
blob971431d912350c8288ad211eed28abda2bed9932
1 dnl
2 dnl $Heimdal: c-function.m4 15422 2005-06-16 18:59:29Z lha $
3 dnl $NetBSD$
4 dnl
6 dnl
7 dnl Test for __FUNCTION__
8 dnl
10 AC_DEFUN([AC_C___FUNCTION__], [
11 AC_MSG_CHECKING(for __FUNCTION__)
12 AC_CACHE_VAL(ac_cv___function__, [
13 AC_RUN_IFELSE([AC_LANG_SOURCE([[
14 #include <string.h>
16 static char *foo(void)
18   return __FUNCTION__;
21 int main(int argc, char **argc)
23   return strcmp(foo(), "foo") != 0;
25 ]])],
26 [ac_cv___function__=yes],
27 [ac_cv___function__=no],
28 [ac_cv___function__=no])])
29 if test "$ac_cv___function__" = "yes"; then
30   AC_DEFINE(HAVE___FUNCTION__, 1, [define if your compiler has __FUNCTION__])
32 AC_MSG_RESULT($ac_cv___function__)