]> granicus.if.org Git - postgis/commitdiff
Allow building with gettext 0.14. Patch by Greg Troxel <gdt@ir.bbn.com>
authorSandro Santilli <strk@keybit.net>
Mon, 16 Jan 2012 14:04:21 +0000 (14:04 +0000)
committerSandro Santilli <strk@keybit.net>
Mon, 16 Jan 2012 14:04:21 +0000 (14:04 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@8841 b70326c6-7e19-0410-871a-916f4a2858ee

README.postgis
macros/gettext.m4

index 504d37501b0e34b30bd93e9497ce5c23e3f908b5..9b45eb7c7708e321d70c79136a316c8e84db2494 100644 (file)
@@ -59,6 +59,11 @@ for this to work.
 
     http://xmlsoft.org/
 
+* GNU gettext
+
+   The loader, and hence postgis, requires GNU gettext 0.14 or higher
+   (typically in libc on GNU/Linux, in which case 0.17 is required).
+
 If you want to compile PostGIS with raster support, you additionally 
 must have installed:
 
index c9ae1f7de861839fdaab2dec367a07df2ceec517..3743ef4655ce6f969ac5d639a1e58db3db5666df 100644 (file)
@@ -17,6 +17,10 @@ dnl Authors:
 dnl   Ulrich Drepper <drepper@cygnus.com>, 1995-2000.
 dnl   Bruno Haible <haible@clisp.cons.org>, 2000-2006.
 
+dnl Modified 20120114 to not insist on _nl_expand_alias, so that it
+dnl will find and accept gettext 0.14, because postgis does not
+dnl actually require any 0.17 features.
+
 dnl Macro to add for using GNU gettext.
 
 dnl Usage: AM_GNU_GETTEXT([INTLSYMBOL], [NEEDSYMBOL], [INTLDIR]).
@@ -187,10 +191,9 @@ extern int _nl_msg_cat_cntr;
 extern
 #ifdef __cplusplus
 "C"
-#endif
-const char *_nl_expand_alias (const char *);],
+#endif],
               [bindtextdomain ("", "");
-return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")],
+return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr],
               [eval "$gt_func_gnugettext_libintl=yes"],
               [eval "$gt_func_gnugettext_libintl=no"])
             dnl Now see whether libintl exists and depends on libiconv.