mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-16 16:58:35 +00:00
detect __func__ properly even if CFLAGS has -Werror in it
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4278 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
e96f7a118c
commit
77484ae4b7
4
libs/sofia-sip/configure
vendored
4
libs/sofia-sip/configure
vendored
@ -20453,7 +20453,7 @@ cat >>conftest.$ac_ext <<_ACEOF
|
|||||||
int
|
int
|
||||||
main ()
|
main ()
|
||||||
{
|
{
|
||||||
char *s = __func__;
|
const char *s = __func__;
|
||||||
|
|
||||||
;
|
;
|
||||||
return 0;
|
return 0;
|
||||||
@ -26933,7 +26933,7 @@ cat >>conftest.$ac_ext <<_ACEOF
|
|||||||
int
|
int
|
||||||
main ()
|
main ()
|
||||||
{
|
{
|
||||||
char *s = __func__;
|
const char *s = __func__;
|
||||||
|
|
||||||
;
|
;
|
||||||
return 0;
|
return 0;
|
||||||
|
@ -276,7 +276,7 @@ dnl ======================================================================
|
|||||||
AC_DEFUN([AC_C_VAR_FUNC],
|
AC_DEFUN([AC_C_VAR_FUNC],
|
||||||
[AC_REQUIRE([AC_PROG_CC])
|
[AC_REQUIRE([AC_PROG_CC])
|
||||||
AC_CACHE_CHECK(whether $CC recognizes __func__, ac_cv_c_var_func,
|
AC_CACHE_CHECK(whether $CC recognizes __func__, ac_cv_c_var_func,
|
||||||
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]], [[char *s = __func__;
|
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]], [[const char *s = __func__;
|
||||||
]])],[ac_cv_c_var_func=yes],[ac_cv_c_var_func=no]))
|
]])],[ac_cv_c_var_func=yes],[ac_cv_c_var_func=no]))
|
||||||
if test $ac_cv_c_var_func = "yes"; then
|
if test $ac_cv_c_var_func = "yes"; then
|
||||||
AC_DEFINE([HAVE_FUNC], 1, [Define to 1 if the C compiler supports __func__])
|
AC_DEFINE([HAVE_FUNC], 1, [Define to 1 if the C compiler supports __func__])
|
||||||
|
Loading…
x
Reference in New Issue
Block a user