This commit was manufactured by cvs2svn to create tag
[heimdal.git] / cf / c-function.m4
blobb2f1eb9b1b94389381698d9851c4af7caf3aabc8
1 dnl
2 dnl $Id$
3 dnl
5 dnl
6 dnl Test for __FUNCTION__
7 dnl
9 AC_DEFUN([AC_C___FUNCTION__], [
10 AC_MSG_CHECKING(for __FUNCTION__)
11 AC_CACHE_VAL(ac_cv___function__, [
12 AC_TRY_RUN([
13 #include <string.h>
15 static char *foo()
17   return __FUNCTION__;
20 int main()
22   return strcmp(foo(), "foo") != 0;
25 ac_cv___function__=yes,
26 ac_cv___function__=no,
27 ac_cv___function__=no)])
28 if test "$ac_cv___function__" = "yes"; then
29   AC_DEFINE(HAVE___FUNCTION__, 1, [define if your compiler has __FUNCTION__])
31 AC_MSG_RESULT($ac_cv___function__)