summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/gettext/gettext-0.17/autotools.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-core/gettext/gettext-0.17/autotools.patch')
-rw-r--r--meta/recipes-core/gettext/gettext-0.17/autotools.patch62
1 files changed, 62 insertions, 0 deletions
diff --git a/meta/recipes-core/gettext/gettext-0.17/autotools.patch b/meta/recipes-core/gettext/gettext-0.17/autotools.patch
new file mode 100644
index 0000000000..9f16b1881f
--- /dev/null
+++ b/meta/recipes-core/gettext/gettext-0.17/autotools.patch
@@ -0,0 +1,62 @@
1Index: gettext-0.17/gettext-runtime/man/Makefile.am
2===================================================================
3--- gettext-0.17.orig/gettext-runtime/man/Makefile.am 2007-10-07 21:37:36.000000000 +0200
4+++ gettext-0.17/gettext-runtime/man/Makefile.am 2008-05-09 22:46:37.000000000 +0200
5@@ -158,8 +158,7 @@
6 $(MAN2HTML) $(srcdir)/bind_textdomain_codeset.3.in | sed -e '/CreationDate:/d' > t-$@
7 mv t-$@ $@
8
9-install-html-local:
10- $(mkdir_p) $(DESTDIR)$(htmldir)
11+install-html: installdirs-html
12 for file in $(man_HTML); do \
13 if test -f $$file; then dir=.; else dir=$(srcdir); fi; \
14 $(INSTALL_DATA) $$dir/$$file $(DESTDIR)$(htmldir)/$$file; \
15Index: gettext-0.17/gettext-tools/man/Makefile.am
16===================================================================
17--- gettext-0.17.orig/gettext-tools/man/Makefile.am 2007-10-28 00:18:37.000000000 +0200
18+++ gettext-0.17/gettext-tools/man/Makefile.am 2008-05-09 22:46:37.000000000 +0200
19@@ -186,8 +186,7 @@
20 $(MAN2HTML) `if test -f autopoint.1; then echo .; else echo $(srcdir); fi`/autopoint.1 | sed -e '/CreationDate:/d' > t-$@
21 mv t-$@ $@
22
23-install-html-local:
24- $(mkdir_p) $(DESTDIR)$(htmldir)
25+install-html: installdirs-html
26 for file in $(man_HTML); do \
27 if test -f $$file; then dir=.; else dir=$(srcdir); fi; \
28 $(INSTALL_DATA) $$dir/$$file $(DESTDIR)$(htmldir)/$$file; \
29Index: gettext-0.17/gettext-runtime/libasprintf/configure.ac
30===================================================================
31--- gettext-0.17.orig/gettext-runtime/libasprintf/configure.ac 2008-05-09 22:53:42.000000000 +0200
32+++ gettext-0.17/gettext-runtime/libasprintf/configure.ac 2008-05-09 22:53:54.000000000 +0200
33@@ -1,5 +1,5 @@
34 dnl Configuration for the GNU libasprintf library
35-dnl Copyright (C) 2002-2006 Free Software Foundation, Inc.
36+dnl Copyright (C) 2002-2007 Free Software Foundation, Inc.
37 dnl
38 dnl This program is free software: you can redistribute it and/or modify
39 dnl it under the terms of the GNU General Public License as published by
40@@ -54,8 +54,7 @@
41 dnl Checks for typedefs, structures, and compiler characteristics.
42 AC_C_INLINE
43 AC_TYPE_SIZE_T
44-gl_AC_TYPE_LONG_LONG
45-gt_TYPE_LONGDOUBLE
46+AC_TYPE_LONG_LONG_INT
47 gt_TYPE_WCHAR_T
48 gt_TYPE_WINT_T
49 AC_CHECK_TYPE([ptrdiff_t], ,
50@@ -79,8 +78,11 @@
51 AC_SUBST([ALLOCA_H])
52
53 AC_CHECK_FUNCS([snprintf vasprintf wcslen])
54-AC_CHECK_DECLS([_snprintf])
55+dnl Use the _snprintf function only if it is declared (because on NetBSD it
56+dnl is defined as a weak alias of snprintf; we prefer to use the latter).
57+AC_CHECK_DECLS([_snprintf], , , [#include <stdio.h>])
58 gt_PRINTF_POSIX
59+gl_EOVERFLOW
60
61 dnl Check for tools needed for formatting the documentation.
62 ac_aux_dir_abs=`cd $ac_aux_dir && pwd`