dbus ChangeLog,1.773,1.774 configure.in,1.115,1.116

Havoc Pennington hp at freedesktop.org
Wed May 18 08:44:52 PDT 2005


Update of /cvs/dbus/dbus
In directory gabe:/tmp/cvs-serv6049

Modified Files:
	ChangeLog configure.in 
Log Message:
2005-05-18  Havoc Pennington  <hp at redhat.com>

	* configure.in: use GLIB_GNU_GETTEXT to get INTLLIBS and require
	gettext. Not really worth requiring yet perhaps, but any
	production quality 1.0 would require it so we should go ahead and
	get things set up. We do have a couple token calls to
	bindtextdomain in the code already.



Index: ChangeLog
===================================================================
RCS file: /cvs/dbus/dbus/ChangeLog,v
retrieving revision 1.773
retrieving revision 1.774
diff -u -d -r1.773 -r1.774
--- ChangeLog	16 May 2005 21:27:03 -0000	1.773
+++ ChangeLog	18 May 2005 15:44:50 -0000	1.774
@@ -1,3 +1,11 @@
+2005-05-18  Havoc Pennington  <hp at redhat.com>
+
+	* configure.in: use GLIB_GNU_GETTEXT to get INTLLIBS and require
+	gettext. Not really worth requiring yet perhaps, but any
+	production quality 1.0 would require it so we should go ahead and
+	get things set up. We do have a couple token calls to
+	bindtextdomain in the code already.
+
 2005-05-16  John (J5) Palmieri  <johnp at redhat.com>
 
 	* glib/dbus-gmain.c (io_handler_dispatch): fix deadlock

Index: configure.in
===================================================================
RCS file: /cvs/dbus/dbus/configure.in,v
retrieving revision 1.115
retrieving revision 1.116
diff -u -d -r1.115 -r1.116
--- configure.in	5 May 2005 22:02:10 -0000	1.115
+++ configure.in	18 May 2005 15:44:50 -0000	1.116
@@ -715,10 +715,28 @@
 # unix:path=/foo or unix:abstract=/foo 
 AC_SUBST(DBUS_PATH_OR_ABSTRACT)
 
+#### Sort out gettext
+
+# this makes us require GLib to run autoconf, but not at runtime
+ALL_LINGUAS=""
+AM_GLIB_GNU_GETTEXT
+
+# INTLLIBS is now set
+
+# (if someone wants to go through and make internationalization 
+#  conditional with #ifdef ENABLE_NLS then go crazy and send us a patch, 
+#  but right now we won't build without gettext)
+if test "$gt_cv_have_gettext" != "yes" ; then
+  AC_MSG_ERROR([
+*** You must have either have gettext support in your C library, or use the 
+*** GNU gettext library. (http://www.gnu.org/software/gettext/gettext.html
+])
+fi
+
 #### Sort out XML library
 
 # see what we have
-AC_CHECK_LIB(expat, XML_ParserCreate_MM, 
+AC_CHECK_LIB(expat, XML_ParserCreate_MM,
              [ AC_CHECK_HEADERS(expat.h, have_expat=true, have_expat=false) ],
              have_expat=false)
 
@@ -811,7 +829,7 @@
 AC_SUBST(DBUS_CLIENT_LIBS)
 
 DBUS_BUS_CFLAGS=$XML_CFLAGS
-DBUS_BUS_LIBS="$XML_LIBS $SELINUX_LIBS"
+DBUS_BUS_LIBS="$XML_LIBS $SELINUX_LIBS $INTLLIBS"
 AC_SUBST(DBUS_BUS_CFLAGS)
 AC_SUBST(DBUS_BUS_LIBS)
 
@@ -854,7 +872,7 @@
 AC_SUBST(DBUS_GLIB_THREADS_LIBS)
 
 DBUS_GLIB_TOOL_CFLAGS=$XML_CFLAGS
-DBUS_GLIB_TOOL_LIBS=$XML_LIBS
+DBUS_GLIB_TOOL_LIBS="$XML_LIBS $INTLLIBS"
 AC_SUBST(DBUS_GLIB_TOOL_CFLAGS)
 AC_SUBST(DBUS_GLIB_TOOL_LIBS)
 
@@ -1315,6 +1333,7 @@
         Building X11 code:        ${enable_x11}
         Building Doxygen docs:    ${enable_doxygen_docs}
         Building XML docs:        ${enable_xml_docs}
+        Gettext libs (empty OK):  ${INTLLIBS}
         Using XML parser:         ${with_xml}
         Init scripts style:       ${with_init_scripts}
         Abstract socket names:    ${have_abstract_sockets}



More information about the dbus-commit mailing list