DEVEL15-asetkey-with-heimdal-20070104
[openafs.git] / src / cf / function-macro.m4
1 AC_DEFUN([COMPILER_HAS_FUNCTION_MACRO], [
2 AC_MSG_CHECKING(for __FUNCTION__ and __LINE__ macros)
3 AC_CACHE_VAL(ac_cv_compiler_has_function_macro,
4 [
5 AC_TRY_COMPILE(
6 [#include <stdio.h>],
7 [printf("%s:%d", __FUNCTION__, __LINE__);],
8 ac_cv_compiler_has_function_macro=yes,
9 ac_cv_compiler_has_function_macro=no)])
10 AC_MSG_RESULT($ac_cv_compiler_has_function_macro)
11 if test "$ac_cv_compiler_has_function_macro" = "yes"; then
12   AC_DEFINE(HAVE_FUNCTION_MACRO, 1, [define if compiler has __FUNCTION__])
13 fi
14 ])
15