diff options
Diffstat (limited to 'meta/packages/gettext/gettext-0.14.1/getline.m4.patch')
| -rw-r--r-- | meta/packages/gettext/gettext-0.14.1/getline.m4.patch | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/meta/packages/gettext/gettext-0.14.1/getline.m4.patch b/meta/packages/gettext/gettext-0.14.1/getline.m4.patch new file mode 100644 index 0000000000..c3f99bb9ae --- /dev/null +++ b/meta/packages/gettext/gettext-0.14.1/getline.m4.patch | |||
| @@ -0,0 +1,32 @@ | |||
| 1 | --- /gettext-tools/m4/orig-getline.m4 2003-07-18 18:11:37.000000000 +0300 | ||
| 2 | +++ /gettext-tools/m4/getline.m4 2007-02-03 13:33:41.000000000 +0200 | ||
| 3 | @@ -42,12 +42,23 @@ | ||
| 4 | return 1; | ||
| 5 | len = getline (&line, &siz, in); | ||
| 6 | exit ((len == 4 && line && strcmp (line, "foo\n") == 0) ? 0 : 1); | ||
| 7 | - } | ||
| 8 | - ], am_cv_func_working_getline=yes dnl The library version works. | ||
| 9 | - , am_cv_func_working_getline=no dnl The library version does NOT work. | ||
| 10 | - , am_cv_func_working_getline=no dnl We're cross compiling. | ||
| 11 | - )]) | ||
| 12 | - fi | ||
| 13 | + } | ||
| 14 | + ], am_cv_func_working_getline=yes dnl The library version works. | ||
| 15 | + , am_cv_func_working_getline=no dnl The library version does NOT work. | ||
| 16 | +! , dnl We're cross compiling. Assume ir works on glibc2 systems. | ||
| 17 | +! [AC_EGREP_CPP([Lucky GNU user], | ||
| 18 | +! [ | ||
| 19 | +! #include <features.h> | ||
| 20 | +! #ifdef __GNU_LIBRARY__ | ||
| 21 | +! #if (__GLIBC__ >= 2) | ||
| 22 | +! Lucky GNU user | ||
| 23 | +! #endif | ||
| 24 | +! #endif | ||
| 25 | +! ], | ||
| 26 | +! [am_cv_func_working_getline=yes], | ||
| 27 | +! [am_cv_func_working_getline=no])] | ||
| 28 | + )]) | ||
| 29 | + fi | ||
| 30 | |||
| 31 | if test $am_cv_func_working_getline = no; then | ||
| 32 | dnl We must choose a different name for our function, since on ELF systems | ||
