[Freeswitch-svn] [commit] r4278 - in freeswitch/trunk/libs/sofia-sip: . m4

Freeswitch SVN anthm at freeswitch.org
Wed Feb 14 17:48:54 EST 2007


Author: anthm
Date: Wed Feb 14 17:48:54 2007
New Revision: 4278

Modified:
   freeswitch/trunk/libs/sofia-sip/configure
   freeswitch/trunk/libs/sofia-sip/m4/sac-general.m4

Log:
detect __func__ properly even if CFLAGS has -Werror in it

Modified: freeswitch/trunk/libs/sofia-sip/configure
==============================================================================
--- freeswitch/trunk/libs/sofia-sip/configure	(original)
+++ freeswitch/trunk/libs/sofia-sip/configure	Wed Feb 14 17:48:54 2007
@@ -20453,7 +20453,7 @@
 int
 main ()
 {
-char *s = __func__;
+const char *s = __func__;
 
   ;
   return 0;
@@ -26933,7 +26933,7 @@
 int
 main ()
 {
-char *s = __func__;
+const char *s = __func__;
 
   ;
   return 0;

Modified: freeswitch/trunk/libs/sofia-sip/m4/sac-general.m4
==============================================================================
--- freeswitch/trunk/libs/sofia-sip/m4/sac-general.m4	(original)
+++ freeswitch/trunk/libs/sofia-sip/m4/sac-general.m4	Wed Feb 14 17:48:54 2007
@@ -276,7 +276,7 @@
 AC_DEFUN([AC_C_VAR_FUNC],
 [AC_REQUIRE([AC_PROG_CC])
 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]))
 if test $ac_cv_c_var_func = "yes"; then
 AC_DEFINE([HAVE_FUNC], 1, [Define to 1 if the C compiler supports __func__]) 



More information about the Freeswitch-svn mailing list