mirror of
https://github.com/samba-team/samba.git
synced 2025-01-20 14:03:59 +03:00
r15280: - remove the 2nd check for __FUNCTION__
- fallback to __func__ if __FUNCTION__ isn't there metze (This used to be commit 6c5a2b08ca2f0db6b39808740a06ed165e8b9ade)
This commit is contained in:
parent
6e847ca070
commit
81d3f8e8a1
@ -187,13 +187,6 @@ AC_SUBST(HOSTCC)
|
||||
|
||||
AC_PATH_PROG(GCOV,gcov)
|
||||
|
||||
AC_CACHE_CHECK([for __FUNCTION__ macro],samba_cv_HAVE_FUNCTION_MACRO,[
|
||||
AC_TRY_COMPILE([#include <stdio.h>], [printf("%s\n", __FUNCTION__);],
|
||||
samba_cv_HAVE_FUNCTION_MACRO=yes,samba_cv_HAVE_FUNCTION_MACRO=no)])
|
||||
if test x"$samba_cv_HAVE_FUNCTION_MACRO" = x"yes"; then
|
||||
AC_DEFINE(HAVE_FUNCTION_MACRO,1,[Whether there is a __FUNCTION__ macro])
|
||||
fi
|
||||
|
||||
AC_PATH_PROG(MAKE,make)
|
||||
|
||||
AC_CACHE_CHECK([whether we have GNU make], samba_cv_gnu_make, [
|
||||
|
@ -167,6 +167,14 @@ AC_TRY_COMPILE([#include <stdio.h>], [printf("%s\n", __FUNCTION__);],
|
||||
samba_cv_HAVE_FUNCTION_MACRO=yes,samba_cv_HAVE_FUNCTION_MACRO=no)])
|
||||
if test x"$samba_cv_HAVE_FUNCTION_MACRO" = x"yes"; then
|
||||
AC_DEFINE(HAVE_FUNCTION_MACRO,1,[Whether there is a __FUNCTION__ macro])
|
||||
else
|
||||
dnl __func__ macro
|
||||
AC_CACHE_CHECK([for __func__ macro],samba_cv_HAVE_func_MACRO,[
|
||||
AC_TRY_COMPILE([#include <stdio.h>], [printf("%s\n", __func__);],
|
||||
samba_cv_HAVE_func_MACRO=yes,samba_cv_HAVE_func_MACRO=no)])
|
||||
if test x"$samba_cv_HAVE_func_MACRO" = x"yes"; then
|
||||
AC_DEFINE(HAVE_func_MACRO,1,[Whether there is a __func__ macro])
|
||||
fi
|
||||
fi
|
||||
|
||||
AC_CHECK_HEADERS([sys/param.h])
|
||||
|
@ -212,8 +212,12 @@ typedef int bool;
|
||||
#endif
|
||||
|
||||
#ifndef HAVE_FUNCTION_MACRO
|
||||
#ifdef HAVE_func_MACRO
|
||||
#define __FUNCTION__ __func__
|
||||
#else
|
||||
#define __FUNCTION__ ("")
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_SYS_PARAM_H
|
||||
#include <sys/param.h>
|
||||
|
Loading…
x
Reference in New Issue
Block a user