summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/gettext/gettext-0.16.1/getline.m4.patch
diff options
context:
space:
mode:
authorSaul Wold <sgw@linux.intel.com>2011-03-17 01:12:56 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-03-17 17:40:55 +0000
commit3072c245da1a36205cd5e258515eff16f6f7f55e (patch)
tree10633949a1f179d782cb5d6e4ff6934caa5c9d05 /meta/recipes-core/gettext/gettext-0.16.1/getline.m4.patch
parent490bbfbe4b4c7ec9c0942b5fadae1ad12af31c20 (diff)
downloadpoky-3072c245da1a36205cd5e258515eff16f6f7f55e.tar.gz
gettext: Upgrade GPLv2 version to 0.16.1
This adds a couple of new patches for handling various autoconf and autolocal issues. It also hardcodes a GETTEXT_MACRO_VERSION to 0.17 to match the native gettext. (From OE-Core rev: e897103a58ad672cc87d2bab3ec45501ef09f8f1) Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-core/gettext/gettext-0.16.1/getline.m4.patch')
-rw-r--r--meta/recipes-core/gettext/gettext-0.16.1/getline.m4.patch36
1 files changed, 36 insertions, 0 deletions
diff --git a/meta/recipes-core/gettext/gettext-0.16.1/getline.m4.patch b/meta/recipes-core/gettext/gettext-0.16.1/getline.m4.patch
new file mode 100644
index 0000000000..f71d0e1d82
--- /dev/null
+++ b/meta/recipes-core/gettext/gettext-0.16.1/getline.m4.patch
@@ -0,0 +1,36 @@
1# Pulled from OpenEmbedded
2#
3# Commented by: Saul Wold <saul.wold@intel.com>
4
5--- /gettext-tools/m4/orig-getline.m4 2003-07-18 18:11:37.000000000 +0300
6+++ /gettext-tools/m4/getline.m4 2007-02-03 13:33:41.000000000 +0200
7@@ -42,12 +42,23 @@
8 return 1;
9 len = getline (&line, &siz, in);
10 exit ((len == 4 && line && strcmp (line, "foo\n") == 0) ? 0 : 1);
11- }
12- ], am_cv_func_working_getline=yes dnl The library version works.
13- , am_cv_func_working_getline=no dnl The library version does NOT work.
14- , am_cv_func_working_getline=no dnl We're cross compiling.
15- )])
16- fi
17+ }
18+ ], am_cv_func_working_getline=yes dnl The library version works.
19+ , am_cv_func_working_getline=no dnl The library version does NOT work.
20+! , dnl We're cross compiling. Assume ir works on glibc2 systems.
21+! [AC_EGREP_CPP([Lucky GNU user],
22+! [
23+! #include <features.h>
24+! #ifdef __GNU_LIBRARY__
25+! #if (__GLIBC__ >= 2)
26+! Lucky GNU user
27+! #endif
28+! #endif
29+! ],
30+! [am_cv_func_working_getline=yes],
31+! [am_cv_func_working_getline=no])]
32+ )])
33+ fi
34
35 if test $am_cv_func_working_getline = no; then
36 dnl We must choose a different name for our function, since on ELF systems