List:Commits« Previous MessageNext Message »
From:konstantin Date:February 1 2008 12:19am
Subject:bk commit into 6.0 tree (kostja:1.2794)
View as plain text  
Below is the list of changes that have just been committed into a local
6.0 repository of kostja.  When kostja does a push these changes
will be propagated to the main repository and, within 24 hours after the
push, to the public repository.
For information on how to access the public repository
see http://dev.mysql.com/doc/mysql/en/installing-source-tree.html

ChangeSet@stripped, 2008-02-01 02:18:56+03:00, kostja@dipika.(none) +1 -0
  Additional libevent configuration tweak for release builds (__func__ is undefined
  in release buidls).

  config/ac-macros/libevent.m4@stripped, 2008-02-01 02:18:54+03:00, kostja@dipika.(none) +15 -0
    Another missing bit of configuration necessary to build libevent in release
    mode.

diff -Nrup a/config/ac-macros/libevent.m4 b/config/ac-macros/libevent.m4
--- a/config/ac-macros/libevent.m4	2008-02-01 00:52:31 +03:00
+++ b/config/ac-macros/libevent.m4	2008-02-01 02:18:54 +03:00
@@ -277,6 +277,21 @@ AC_TRY_COMPILE([
 	[Define to unsigned int if you dont have it])]
 )
 
+AC_MSG_CHECKING([whether our compiler supports __func__])
+AC_TRY_COMPILE([],
+ [ const char *cp = __func__; ],
+ AC_MSG_RESULT([yes]),
+ AC_MSG_RESULT([no])
+ AC_MSG_CHECKING([whether our compiler supports __FUNCTION__])
+ AC_TRY_COMPILE([],
+   [ const char *cp = __FUNCTION__; ],
+   AC_MSG_RESULT([yes])
+   AC_DEFINE(__func__, __FUNCTION__,
+         [Define to appropriate substitue if compiler doesnt have __func__]),
+   AC_MSG_RESULT([no])
+   AC_DEFINE(__func__, __FILE__,
+         [Define to appropriate substitue if compiler doesnt have __func__])))
+
 AH_VERBATIM([HAVE_TIMERADD], [
 /* Define if timeradd is defined in <sys/time.h> */
 #undef HAVE_TIMERADD
Thread
bk commit into 6.0 tree (kostja:1.2794)konstantin1 Feb