diff options
author | Hidetoshi Tajima <hidetoshi.tajima@sun.com> | 2003-06-06 17:31:50 +0000 |
---|---|---|
committer | Hidetoshi Tajima <tajima@src.gnome.org> | 2003-06-06 17:31:50 +0000 |
commit | 3bfb73d477c48843340bf08e82c6b4d9e90b5a4c (patch) | |
tree | e677bf6febcba961655310f662c8d4a88609f028 /m4macros | |
parent | 4a21238fef329d10c4114a64f7e9e6959aeaa17a (diff) | |
download | glib-3bfb73d477c48843340bf08e82c6b4d9e90b5a4c.tar.gz |
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).
Diffstat (limited to 'm4macros')
-rw-r--r-- | m4macros/glib-gettext.m4 | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/m4macros/glib-gettext.m4 b/m4macros/glib-gettext.m4 index 488de2149..7886a0c07 100644 --- a/m4macros/glib-gettext.m4 +++ b/m4macros/glib-gettext.m4 @@ -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 |