1 --- a/saslauthd/configure.in 2015-11-20 16:22:07.295862770 +0100
2 +++ b/saslauthd/configure.in 2015-11-20 16:23:35.581855882 +0100
5 dnl Checks for which function macros exist
6 AC_MSG_CHECKING(whether $CC implements __func__)
7 -AC_CACHE_VAL(have_func,
8 +AC_CACHE_VAL(ac_cv_have_func,
9 [AC_TRY_LINK([#include <stdio.h>],[printf("%s", __func__);],
12 -AC_MSG_RESULT($have_func)
13 -if test "$have_func" = yes; then
15 +ac_cv_have_func=no)])
16 +AC_MSG_RESULT($ac_cv_have_func)
17 +if test "$ac_cv_have_func" = yes; then
18 AC_DEFINE(HAVE_FUNC,[],[Does the compiler understand __func__])
20 AC_MSG_CHECKING(whether $CC implements __PRETTY_FUNCTION__)
21 - AC_CACHE_VAL(have_pretty_function,
22 + AC_CACHE_VAL(ac_cv_have_pretty_function,
23 [AC_TRY_LINK([#include <stdio.h>],[printf("%s", __PRETTY_FUNCTION__);],
24 - have_pretty_function=yes,
25 - have_pretty_function=no)])
26 - AC_MSG_RESULT($have_pretty_function)
27 - if test "$have_pretty_function" = yes; then
28 + ac_cv_have_pretty_function=yes,
29 + ac_cv_have_pretty_function=no)])
30 + AC_MSG_RESULT($ac_cv_have_pretty_function)
31 + if test "$ac_cv_have_pretty_function" = yes; then
32 AC_DEFINE(HAVE_PRETTY_FUNCTION,[],[Does compiler understand __PRETTY_FUNCTION__])
34 AC_MSG_CHECKING(whether $CC implements __FUNCTION__)
35 - AC_CACHE_VAL(have_function,
36 + AC_CACHE_VAL(ac_cv_have_function,
37 [AC_TRY_LINK([#include <stdio.h>],[printf("%s", __FUNCTION__);],
40 - AC_MSG_RESULT($have_function)
41 - if test "$have_function" = yes; then
42 + ac_cv_have_function=yes,
43 + ac_cv_have_function=no)])
44 + AC_MSG_RESULT($ac_cv_have_function)
45 + if test "$ac_cv_have_function" = yes; then
46 AC_DEFINE(HAVE_FUNCTION,[],[Does compiler understand __FUNCTION__])