Test for Solaris native gettext in libc, seeing if it supports GNU catalog

Fri Jun  6 10:24:23 2003  Hidetoshi Tajima  <hidetoshi.tajima@sun.com>

	* m4macros/glib-gettext.m4: Test for Solaris native gettext
	in libc, seeing if it supports GNU catalog format (#85217).
This commit is contained in:
Hidetoshi Tajima
2003-06-06 17:31:50 +00:00
committed by Hidetoshi Tajima
parent 4a21238fef
commit 3bfb73d477
7 changed files with 48 additions and 2 deletions

View File

@@ -192,8 +192,24 @@ glib_DEFUN([GLIB_WITH_NLS],
return _nl_msg_cat_cntr],
[CATOBJEXT=.gmo
DATADIRNAME=share],
[CATOBJEXT=.mo
DATADIRNAME=lib])
[case $host in
*-*-solaris*)
dnl On Solaris, if bind_textdomain_codeset is in libc,
dnl GNU format message catalog is always supported,
dnl since both are added to the libc all together.
dnl Hence, we'd like to go with DATADIRNAME=share and
dnl and CATOBJEXT=.gmo in this case.
AC_CHECK_FUNC(bind_textdomain_codeset,
[CATOBJEXT=.gmo
DATADIRNAME=share],
[CATOBJEXT=.mo
DATADIRNAME=lib])
;;
*)
CATOBJEXT=.mo
DATADIRNAME=lib
;;
esac])
INSTOBJEXT=.mo
else
gt_cv_have_gettext=no