diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2008-05-27 22:18:04 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2008-05-27 22:18:04 +0000 |
commit | 7e8374a3e0ce14f1c8979c684c1d2afa2c7e96be (patch) | |
tree | 28868370612b3d7b670b7551ec4b63b75f72dc1b /config | |
parent | e35ee671a82c2647f28585c42c327c88235750aa (diff) | |
download | postgresql-7e8374a3e0ce14f1c8979c684c1d2afa2c7e96be.tar.gz |
Require bind_textdomain_codeset() not just gettext() to enable NLS support.
GNU gettext before 0.10.36 does not have that function, and is generally too
incomplete to be usable.
Diffstat (limited to 'config')
-rw-r--r-- | config/programs.m4 | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/config/programs.m4 b/config/programs.m4 index 41bda91ccf..cf659555c0 100644 --- a/config/programs.m4 +++ b/config/programs.m4 @@ -1,4 +1,4 @@ -# $PostgreSQL: pgsql/config/programs.m4,v 1.22 2008/02/17 16:36:42 petere Exp $ +# $PostgreSQL: pgsql/config/programs.m4,v 1.23 2008/05/27 22:18:04 tgl Exp $ # PGAC_PATH_YACC @@ -187,10 +187,13 @@ AC_DEFINE(HAVE_RL_COMPLETION_APPEND_CHARACTER, 1, # PGAC_CHECK_GETTEXT # ------------------ +# We check for bind_textdomain_codeset() not just gettext(). GNU gettext +# before 0.10.36 does not have that function, and is generally too incomplete +# to be usable. AC_DEFUN([PGAC_CHECK_GETTEXT], [ - AC_SEARCH_LIBS(gettext, intl, [], + AC_SEARCH_LIBS(bind_textdomain_codeset, intl, [], [AC_MSG_ERROR([a gettext implementation is required for NLS])]) AC_CHECK_HEADER([libintl.h], [], [AC_MSG_ERROR([header file <libintl.h> is required for NLS])]) @@ -199,7 +202,6 @@ AC_DEFUN([PGAC_CHECK_GETTEXT], AC_MSG_ERROR([msgfmt is required for NLS]) fi AC_CHECK_PROGS(MSGMERGE, msgmerge) -dnl FIXME: We should probably check for version >=0.10.36. AC_CHECK_PROGS(XGETTEXT, xgettext) ])# PGAC_CHECK_GETTEXT |