Update of /cvsroot/monetdb/pathfinder
In directory 23jxhf1.ch3.sourceforge.com:/tmp/cvs-serv10238
Modified Files:
configure.ag
Log Message:
propagated changes of Thursday Apr 30 2009
from the Feb2009 branch to the development trunk
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2009/04/30 - mr-meltdown: configure.ag,1.144.2.7
defining _POSIX_C_SOURCE was a bad idea
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Index: configure.ag
===================================================================
RCS file: /cvsroot/monetdb/pathfinder/configure.ag,v
retrieving revision 1.147
retrieving revision 1.148
diff -u -d -r1.147 -r1.148
--- configure.ag 29 Apr 2009 16:04:29 -0000 1.147
+++ configure.ag 30 Apr 2009 14:11:04 -0000 1.148
@@ -633,12 +633,15 @@
[AC_DEFINE(HAVE_CTIME_R3, 1, [Define if you have ctime_r(time_t*,char
*buf,size_t s)])], [ctime_r3=no])
AC_MSG_RESULT($ctime_r3)
-dnl (At least) on (Open)Solaris (2.)11,
/opt/csw/include/libxml2/libxml/xmlversion.h
-dnl of (at least) libxml2 v2.6.26 seems to expect that _POSIX_C_SOURCE is
defined,
-dnl but it seems to be undefined when compiling with gcc (v3.4.3); hence we
define it:
+dnl On Solaris, libxml2 enables threading only when _REENTRANT, __MT__
+dnl or _POSIX_C_SOURCE >= 199506L is defined. The latter is only
+dnl defined on POSIX compliant Solaris systems (latest of the latest
+dnl as of this writing), hence defining that here would cause a
+dnl redefinition error. To work around it, we define __MT__ here, as
+dnl _REENTRANT might also enable stuff in other software packages.
case "$GCC-$host_os" in
yes-solaris2.11)
- AC_DEFINE(_POSIX_C_SOURCE, 199506L, [Compiler flag])
+ AC_DEFINE(__MT__, 1, [libxml2 enable threading compiler flag])
;;
esac
------------------------------------------------------------------------------
Register Now & Save for Velocity, the Web Performance & Operations
Conference from O'Reilly Media. Velocity features a full day of
expert-led, hands-on workshops and two days of sessions from industry
leaders in dedicated Performance & Operations tracks. Use code vel09scf
and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf
_______________________________________________
Monetdb-pf-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-pf-checkins