diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-03-02 12:24:31 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-03-02 12:30:01 +0000 |
commit | 8ba70a1c28a4e0ee73db5308b38abc923b0be44d (patch) | |
tree | 0ed9bff8e4bd70766c81dbb559d32781bdd93ce8 /recipes-core/gettext | |
download | meta-gplv2-8ba70a1c28a4e0ee73db5308b38abc923b0be44d.tar.gz |
Create meta-gplv2 from files from OE-Core
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'recipes-core/gettext')
8 files changed, 1431 insertions, 0 deletions
diff --git a/recipes-core/gettext/gettext-0.16.1/disable_java.patch b/recipes-core/gettext/gettext-0.16.1/disable_java.patch new file mode 100644 index 0000000..e4c5f15 --- /dev/null +++ b/recipes-core/gettext/gettext-0.16.1/disable_java.patch | |||
@@ -0,0 +1,39 @@ | |||
1 | |||
2 | # Pulled from OpenEmbedded | ||
3 | # | ||
4 | # Commented by: Saul Wold <saul.wold@intel.com> | ||
5 | |||
6 | Upstream-Status: Inappropriate [licensing] | ||
7 | |||
8 | Index: gettext-0.16.1/gettext-tools/configure.ac | ||
9 | =================================================================== | ||
10 | --- gettext-0.16.1.orig/gettext-tools/configure.ac 2006-11-27 09:02:01.000000000 -0800 | ||
11 | +++ gettext-0.16.1/gettext-tools/configure.ac 2011-03-16 16:55:36.111396557 -0700 | ||
12 | @@ -36,27 +36,15 @@ | ||
13 | gt_JAVA_CHOICE | ||
14 | |||
15 | gt_GCJ | ||
16 | -if test -n "$HAVE_GCJ" && test "$JAVA_CHOICE" = yes; then | ||
17 | - BUILDJAVAEXE=yes | ||
18 | -else | ||
19 | BUILDJAVAEXE=no | ||
20 | -fi | ||
21 | AC_SUBST(BUILDJAVAEXE) | ||
22 | |||
23 | gt_JAVAEXEC | ||
24 | gt_JAVACOMP([1.3]) | ||
25 | AC_CHECK_PROG(JAR, jar, jar) | ||
26 | -if test -n "$HAVE_JAVACOMP" && test -n "$JAR" && test "$JAVA_CHOICE" != no; then | ||
27 | - BUILDJAVA=yes | ||
28 | -else | ||
29 | BUILDJAVA=no | ||
30 | -fi | ||
31 | AC_SUBST(BUILDJAVA) | ||
32 | -if test -n "$HAVE_JAVAEXEC" && test $BUILDJAVA = yes; then | ||
33 | - TESTJAVA=yes | ||
34 | -else | ||
35 | TESTJAVA=no | ||
36 | -fi | ||
37 | AC_SUBST(TESTJAVA) | ||
38 | |||
39 | gt_CSHARPCOMP | ||
diff --git a/recipes-core/gettext/gettext-0.16.1/fix_aclocal_version.patch b/recipes-core/gettext/gettext-0.16.1/fix_aclocal_version.patch new file mode 100644 index 0000000..49a10f5 --- /dev/null +++ b/recipes-core/gettext/gettext-0.16.1/fix_aclocal_version.patch | |||
@@ -0,0 +1,110 @@ | |||
1 | |||
2 | This patch updates the required version number from 2.61 to the | ||
3 | current 2.65 version of aclocal, this will need to be updated | ||
4 | when we update aclocal | ||
5 | |||
6 | Upstream-Status: Inappropriate [configuration] | ||
7 | |||
8 | Signed-off-by: Saul Wold <sgw@linux.intel.com> | ||
9 | |||
10 | Index: gettext-0.16.1/autoconf-lib-link/m4/lib-link.m4 | ||
11 | =================================================================== | ||
12 | --- gettext-0.16.1.orig/autoconf-lib-link/m4/lib-link.m4 2011-03-17 02:24:36.391519775 -0700 | ||
13 | +++ gettext-0.16.1/autoconf-lib-link/m4/lib-link.m4 2011-03-17 02:24:45.569526073 -0700 | ||
14 | @@ -148,7 +148,7 @@ | ||
15 | define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-], | ||
16 | [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])]) | ||
17 | dnl Autoconf >= 2.61 supports dots in --with options. | ||
18 | - define([N_A_M_E],[m4_if(m4_version_compare(m4_defn([m4_PACKAGE_VERSION]),[2.61]),[-1],[translit([$1],[.],[_])],[$1])]) | ||
19 | + define([N_A_M_E],[m4_if(m4_version_compare(m4_defn([m4_PACKAGE_VERSION]),[2.65]),[-1],[translit([$1],[.],[_])],[$1])]) | ||
20 | dnl By default, look in $includedir and $libdir. | ||
21 | use_additional=yes | ||
22 | AC_LIB_WITH_FINAL_PREFIX([ | ||
23 | Index: gettext-0.16.1/autoconf-lib-link/tests/rpathly/aclocal.m4 | ||
24 | =================================================================== | ||
25 | --- gettext-0.16.1.orig/autoconf-lib-link/tests/rpathly/aclocal.m4 2011-03-17 02:24:36.391519775 -0700 | ||
26 | +++ gettext-0.16.1/autoconf-lib-link/tests/rpathly/aclocal.m4 2011-03-17 02:24:45.570526904 -0700 | ||
27 | @@ -11,8 +11,8 @@ | ||
28 | # even the implied warranty of MERCHANTABILITY or FITNESS FOR A | ||
29 | # PARTICULAR PURPOSE. | ||
30 | |||
31 | -m4_if(m4_PACKAGE_VERSION, [2.61],, | ||
32 | -[m4_fatal([this file was generated for autoconf 2.61. | ||
33 | +m4_if(m4_PACKAGE_VERSION, [2.65],, | ||
34 | +[m4_fatal([this file was generated for autoconf 2.65. | ||
35 | You have another version of autoconf. If you want to use that, | ||
36 | you should regenerate the build system entirely.], [63])]) | ||
37 | |||
38 | Index: gettext-0.16.1/autoconf-lib-link/tests/rpathx/aclocal.m4 | ||
39 | =================================================================== | ||
40 | --- gettext-0.16.1.orig/autoconf-lib-link/tests/rpathx/aclocal.m4 2011-03-17 02:24:36.391519775 -0700 | ||
41 | +++ gettext-0.16.1/autoconf-lib-link/tests/rpathx/aclocal.m4 2011-03-17 02:24:45.572525773 -0700 | ||
42 | @@ -11,8 +11,8 @@ | ||
43 | # even the implied warranty of MERCHANTABILITY or FITNESS FOR A | ||
44 | # PARTICULAR PURPOSE. | ||
45 | |||
46 | -m4_if(m4_PACKAGE_VERSION, [2.61],, | ||
47 | -[m4_fatal([this file was generated for autoconf 2.61. | ||
48 | +m4_if(m4_PACKAGE_VERSION, [2.65],, | ||
49 | +[m4_fatal([this file was generated for autoconf 2.65. | ||
50 | You have another version of autoconf. If you want to use that, | ||
51 | you should regenerate the build system entirely.], [63])]) | ||
52 | |||
53 | Index: gettext-0.16.1/autoconf-lib-link/tests/rpathy/aclocal.m4 | ||
54 | =================================================================== | ||
55 | --- gettext-0.16.1.orig/autoconf-lib-link/tests/rpathy/aclocal.m4 2011-03-17 02:24:36.391519775 -0700 | ||
56 | +++ gettext-0.16.1/autoconf-lib-link/tests/rpathy/aclocal.m4 2011-03-17 02:24:45.578394916 -0700 | ||
57 | @@ -11,7 +11,7 @@ | ||
58 | # even the implied warranty of MERCHANTABILITY or FITNESS FOR A | ||
59 | # PARTICULAR PURPOSE. | ||
60 | |||
61 | -m4_if(m4_PACKAGE_VERSION, [2.61],, | ||
62 | +m4_if(m4_PACKAGE_VERSION, [2.65],, | ||
63 | [m4_fatal([this file was generated for autoconf 2.61. | ||
64 | You have another version of autoconf. If you want to use that, | ||
65 | you should regenerate the build system entirely.], [63])]) | ||
66 | Index: gettext-0.16.1/autoconf-lib-link/tests/rpathz/aclocal.m4 | ||
67 | =================================================================== | ||
68 | --- gettext-0.16.1.orig/autoconf-lib-link/tests/rpathz/aclocal.m4 2011-03-17 02:24:36.391519775 -0700 | ||
69 | +++ gettext-0.16.1/autoconf-lib-link/tests/rpathz/aclocal.m4 2011-03-17 02:24:45.586395416 -0700 | ||
70 | @@ -11,8 +11,8 @@ | ||
71 | # even the implied warranty of MERCHANTABILITY or FITNESS FOR A | ||
72 | # PARTICULAR PURPOSE. | ||
73 | |||
74 | -m4_if(m4_PACKAGE_VERSION, [2.61],, | ||
75 | -[m4_fatal([this file was generated for autoconf 2.61. | ||
76 | +m4_if(m4_PACKAGE_VERSION, [2.65],, | ||
77 | +[m4_fatal([this file was generated for autoconf 2.65. | ||
78 | You have another version of autoconf. If you want to use that, | ||
79 | you should regenerate the build system entirely.], [63])]) | ||
80 | |||
81 | Index: gettext-0.16.1/gettext-tools/aclocal.m4 | ||
82 | =================================================================== | ||
83 | --- gettext-0.16.1.orig/gettext-tools/aclocal.m4 2006-11-27 09:34:32.000000000 -0800 | ||
84 | +++ gettext-0.16.1/gettext-tools/aclocal.m4 2011-03-17 02:27:01.135682807 -0700 | ||
85 | @@ -11,8 +11,8 @@ | ||
86 | # even the implied warranty of MERCHANTABILITY or FITNESS FOR A | ||
87 | # PARTICULAR PURPOSE. | ||
88 | |||
89 | -m4_if(m4_PACKAGE_VERSION, [2.61],, | ||
90 | -[m4_fatal([this file was generated for autoconf 2.61. | ||
91 | +m4_if(m4_PACKAGE_VERSION, [2.65],, | ||
92 | +[m4_fatal([this file was generated for autoconf 2.65. | ||
93 | You have another version of autoconf. If you want to use that, | ||
94 | you should regenerate the build system entirely.], [63])]) | ||
95 | |||
96 | Index: gettext-0.16.1/gettext-tools/examples/aclocal.m4 | ||
97 | =================================================================== | ||
98 | --- gettext-0.16.1.orig/gettext-tools/examples/aclocal.m4 2006-11-27 09:16:23.000000000 -0800 | ||
99 | +++ gettext-0.16.1/gettext-tools/examples/aclocal.m4 2011-03-17 02:26:52.589396683 -0700 | ||
100 | @@ -11,8 +11,8 @@ | ||
101 | # even the implied warranty of MERCHANTABILITY or FITNESS FOR A | ||
102 | # PARTICULAR PURPOSE. | ||
103 | |||
104 | -m4_if(m4_PACKAGE_VERSION, [2.61],, | ||
105 | -[m4_fatal([this file was generated for autoconf 2.61. | ||
106 | +m4_if(m4_PACKAGE_VERSION, [2.65],, | ||
107 | +[m4_fatal([this file was generated for autoconf 2.65. | ||
108 | You have another version of autoconf. If you want to use that, | ||
109 | you should regenerate the build system entirely.], [63])]) | ||
110 | |||
diff --git a/recipes-core/gettext/gettext-0.16.1/fix_gnu_source_circular.patch b/recipes-core/gettext/gettext-0.16.1/fix_gnu_source_circular.patch new file mode 100644 index 0000000..fd5feeb --- /dev/null +++ b/recipes-core/gettext/gettext-0.16.1/fix_gnu_source_circular.patch | |||
@@ -0,0 +1,348 @@ | |||
1 | |||
2 | This patch removes the circular dependency on AC_GNU_SOURCE in | ||
3 | AC_USE_SYSTEM_EXTENSIONS. | ||
4 | |||
5 | Thanks to Mark Hatle for the timely pointers and fixes. | ||
6 | |||
7 | Upstream-Status: Inappropriate [licensing] | ||
8 | |||
9 | Signed-off-by: Saul Wold <sgw@linux.intel.com> | ||
10 | |||
11 | diff -ru gettext-0.16.1/gettext-runtime/gnulib-m4/extensions.m4 gettext.patched/gettext-runtime/gnulib-m4/extensions.m4 | ||
12 | --- gettext-0.16.1/gettext-runtime/gnulib-m4/extensions.m4 2006-11-27 09:14:38.000000000 -0800 | ||
13 | +++ gettext.patched/gettext-runtime/gnulib-m4/extensions.m4 2011-03-16 23:54:01.711923448 -0700 | ||
14 | @@ -16,43 +16,47 @@ | ||
15 | # ------------------------ | ||
16 | # Enable extensions on systems that normally disable them, | ||
17 | # typically due to standards-conformance issues. | ||
18 | -AC_DEFUN([AC_USE_SYSTEM_EXTENSIONS], | ||
19 | -[ | ||
20 | - AC_BEFORE([$0], [AC_COMPILE_IFELSE]) | ||
21 | - AC_BEFORE([$0], [AC_RUN_IFELSE]) | ||
22 | - | ||
23 | - AC_REQUIRE([AC_GNU_SOURCE]) | ||
24 | - AC_REQUIRE([AC_AIX]) | ||
25 | - AC_REQUIRE([AC_MINIX]) | ||
26 | - | ||
27 | - AH_VERBATIM([__EXTENSIONS__], | ||
28 | -[/* Enable extensions on Solaris. */ | ||
29 | -#ifndef __EXTENSIONS__ | ||
30 | -# undef __EXTENSIONS__ | ||
31 | -#endif | ||
32 | -#ifndef _POSIX_PTHREAD_SEMANTICS | ||
33 | -# undef _POSIX_PTHREAD_SEMANTICS | ||
34 | -#endif | ||
35 | -#ifndef _TANDEM_SOURCE | ||
36 | -# undef _TANDEM_SOURCE | ||
37 | -#endif]) | ||
38 | - AC_CACHE_CHECK([whether it is safe to define __EXTENSIONS__], | ||
39 | - [ac_cv_safe_to_define___extensions__], | ||
40 | - [AC_COMPILE_IFELSE( | ||
41 | - [AC_LANG_PROGRAM([ | ||
42 | -# define __EXTENSIONS__ 1 | ||
43 | - AC_INCLUDES_DEFAULT])], | ||
44 | - [ac_cv_safe_to_define___extensions__=yes], | ||
45 | - [ac_cv_safe_to_define___extensions__=no])]) | ||
46 | - test $ac_cv_safe_to_define___extensions__ = yes && | ||
47 | - AC_DEFINE([__EXTENSIONS__]) | ||
48 | - AC_DEFINE([_POSIX_PTHREAD_SEMANTICS]) | ||
49 | - AC_DEFINE([_TANDEM_SOURCE]) | ||
50 | -]) | ||
51 | +#AC_DEFUN([AC_USE_SYSTEM_EXTENSIONS], | ||
52 | +#[ | ||
53 | +# AC_BEFORE([$0], [AC_COMPILE_IFELSE]) | ||
54 | +# AC_BEFORE([$0], [AC_RUN_IFELSE]) | ||
55 | +# | ||
56 | +# AC_REQUIRE([AC_GNU_SOURCE]) | ||
57 | +# AC_REQUIRE([AC_AIX]) | ||
58 | +# AC_REQUIRE([AC_MINIX]) | ||
59 | +# | ||
60 | +# AH_VERBATIM([__EXTENSIONS__], | ||
61 | +#[/* Enable extensions on Solaris. */ | ||
62 | +##ifndef __EXTENSIONS__ | ||
63 | +## undef __EXTENSIONS__ | ||
64 | +##endif | ||
65 | +##ifndef _POSIX_PTHREAD_SEMANTICS | ||
66 | +## undef _POSIX_PTHREAD_SEMANTICS | ||
67 | +##endif | ||
68 | +##ifndef _TANDEM_SOURCE | ||
69 | +## undef _TANDEM_SOURCE | ||
70 | +##endif]) | ||
71 | +# AC_CACHE_CHECK([whether it is safe to define __EXTENSIONS__], | ||
72 | +# [ac_cv_safe_to_define___extensions__], | ||
73 | +# [AC_COMPILE_IFELSE( | ||
74 | +# [AC_LANG_PROGRAM([ | ||
75 | +## define __EXTENSIONS__ 1 | ||
76 | +# AC_INCLUDES_DEFAULT])], | ||
77 | +# [ac_cv_safe_to_define___extensions__=yes], | ||
78 | +# [ac_cv_safe_to_define___extensions__=no])]) | ||
79 | +# test $ac_cv_safe_to_define___extensions__ = yes && | ||
80 | +# AC_DEFINE([__EXTENSIONS__]) | ||
81 | +# AC_DEFINE([_POSIX_PTHREAD_SEMANTICS]) | ||
82 | +# AC_DEFINE([_TANDEM_SOURCE]) | ||
83 | +#]) | ||
84 | |||
85 | # gl_USE_SYSTEM_EXTENSIONS | ||
86 | # ------------------------ | ||
87 | # Enable extensions on systems that normally disable them, | ||
88 | # typically due to standards-conformance issues. | ||
89 | AC_DEFUN([gl_USE_SYSTEM_EXTENSIONS], | ||
90 | - [AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS])]) | ||
91 | +[ | ||
92 | + AC_REQUIRE([AC_GNU_SOURCE]) | ||
93 | + | ||
94 | + AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS]) | ||
95 | +]) | ||
96 | diff -ru gettext-0.16.1/gettext-runtime/gnulib-m4/gnulib-comp.m4 gettext.patched/gettext-runtime/gnulib-m4/gnulib-comp.m4 | ||
97 | --- gettext-0.16.1/gettext-runtime/gnulib-m4/gnulib-comp.m4 2006-11-27 09:33:19.000000000 -0800 | ||
98 | +++ gettext.patched/gettext-runtime/gnulib-m4/gnulib-comp.m4 2011-03-16 23:50:17.471531838 -0700 | ||
99 | @@ -25,7 +25,7 @@ | ||
100 | m4_pattern_allow([^gl_LIBOBJS$])dnl a variable | ||
101 | m4_pattern_allow([^gl_LTLIBOBJS$])dnl a variable | ||
102 | AC_REQUIRE([AC_PROG_RANLIB]) | ||
103 | - AC_REQUIRE([AC_GNU_SOURCE]) | ||
104 | + dnl AC_REQUIRE([AC_GNU_SOURCE]) | ||
105 | AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS]) | ||
106 | ]) | ||
107 | |||
108 | diff -ru gettext-0.16.1/gettext-runtime/gnulib-m4/mbchar.m4 gettext.patched/gettext-runtime/gnulib-m4/mbchar.m4 | ||
109 | --- gettext-0.16.1/gettext-runtime/gnulib-m4/mbchar.m4 2006-11-27 09:14:38.000000000 -0800 | ||
110 | +++ gettext.patched/gettext-runtime/gnulib-m4/mbchar.m4 2011-03-16 23:50:10.814396529 -0700 | ||
111 | @@ -9,7 +9,7 @@ | ||
112 | |||
113 | AC_DEFUN([gl_MBCHAR], | ||
114 | [ | ||
115 | - AC_REQUIRE([AC_GNU_SOURCE]) | ||
116 | + dnl AC_REQUIRE([AC_GNU_SOURCE]) | ||
117 | dnl The following line is that so the user can test HAVE_WCHAR_H | ||
118 | dnl before #include "mbchar.h". | ||
119 | AC_CHECK_HEADERS_ONCE([wchar.h]) | ||
120 | diff -ru gettext-0.16.1/gettext-runtime/gnulib-m4/wcwidth.m4 gettext.patched/gettext-runtime/gnulib-m4/wcwidth.m4 | ||
121 | --- gettext-0.16.1/gettext-runtime/gnulib-m4/wcwidth.m4 2006-11-27 09:14:38.000000000 -0800 | ||
122 | +++ gettext.patched/gettext-runtime/gnulib-m4/wcwidth.m4 2011-03-16 23:50:08.357396247 -0700 | ||
123 | @@ -7,7 +7,7 @@ | ||
124 | AC_DEFUN([gl_FUNC_WCWIDTH], | ||
125 | [ | ||
126 | dnl Persuade glibc <wchar.h> to declare wcwidth(). | ||
127 | - AC_REQUIRE([AC_GNU_SOURCE]) | ||
128 | + dnl AC_REQUIRE([AC_GNU_SOURCE]) | ||
129 | |||
130 | AC_REQUIRE([AC_C_INLINE]) | ||
131 | AC_REQUIRE([gt_TYPE_WCHAR_T]) | ||
132 | diff -ru gettext-0.16.1/gettext-runtime/m4/lock.m4 gettext.patched/gettext-runtime/m4/lock.m4 | ||
133 | --- gettext-0.16.1/gettext-runtime/m4/lock.m4 2006-10-24 13:59:59.000000000 -0700 | ||
134 | +++ gettext.patched/gettext-runtime/m4/lock.m4 2011-03-16 23:50:04.355891676 -0700 | ||
135 | @@ -35,7 +35,7 @@ | ||
136 | AC_BEFORE([$0], [gl_ARGP])dnl | ||
137 | |||
138 | AC_REQUIRE([AC_CANONICAL_HOST]) | ||
139 | - AC_REQUIRE([AC_GNU_SOURCE]) dnl needed for pthread_rwlock_t on glibc systems | ||
140 | + dnl AC_REQUIRE([AC_GNU_SOURCE]) dnl needed for pthread_rwlock_t on glibc systems | ||
141 | dnl Check for multithreading. | ||
142 | AC_ARG_ENABLE(threads, | ||
143 | AC_HELP_STRING([--enable-threads={posix|solaris|pth|win32}], [specify multithreading API]) | ||
144 | diff -ru gettext-0.16.1/gettext-tools/gnulib-m4/extensions.m4 gettext.patched/gettext-tools/gnulib-m4/extensions.m4 | ||
145 | --- gettext-0.16.1/gettext-tools/gnulib-m4/extensions.m4 2006-11-27 09:14:54.000000000 -0800 | ||
146 | +++ gettext.patched/gettext-tools/gnulib-m4/extensions.m4 2011-03-16 23:53:28.487671266 -0700 | ||
147 | @@ -16,43 +16,47 @@ | ||
148 | # ------------------------ | ||
149 | # Enable extensions on systems that normally disable them, | ||
150 | # typically due to standards-conformance issues. | ||
151 | -AC_DEFUN([AC_USE_SYSTEM_EXTENSIONS], | ||
152 | -[ | ||
153 | - AC_BEFORE([$0], [AC_COMPILE_IFELSE]) | ||
154 | - AC_BEFORE([$0], [AC_RUN_IFELSE]) | ||
155 | - | ||
156 | - AC_REQUIRE([AC_GNU_SOURCE]) | ||
157 | - AC_REQUIRE([AC_AIX]) | ||
158 | - AC_REQUIRE([AC_MINIX]) | ||
159 | - | ||
160 | - AH_VERBATIM([__EXTENSIONS__], | ||
161 | -[/* Enable extensions on Solaris. */ | ||
162 | -#ifndef __EXTENSIONS__ | ||
163 | -# undef __EXTENSIONS__ | ||
164 | -#endif | ||
165 | -#ifndef _POSIX_PTHREAD_SEMANTICS | ||
166 | -# undef _POSIX_PTHREAD_SEMANTICS | ||
167 | -#endif | ||
168 | -#ifndef _TANDEM_SOURCE | ||
169 | -# undef _TANDEM_SOURCE | ||
170 | -#endif]) | ||
171 | - AC_CACHE_CHECK([whether it is safe to define __EXTENSIONS__], | ||
172 | - [ac_cv_safe_to_define___extensions__], | ||
173 | - [AC_COMPILE_IFELSE( | ||
174 | - [AC_LANG_PROGRAM([ | ||
175 | -# define __EXTENSIONS__ 1 | ||
176 | - AC_INCLUDES_DEFAULT])], | ||
177 | - [ac_cv_safe_to_define___extensions__=yes], | ||
178 | - [ac_cv_safe_to_define___extensions__=no])]) | ||
179 | - test $ac_cv_safe_to_define___extensions__ = yes && | ||
180 | - AC_DEFINE([__EXTENSIONS__]) | ||
181 | - AC_DEFINE([_POSIX_PTHREAD_SEMANTICS]) | ||
182 | - AC_DEFINE([_TANDEM_SOURCE]) | ||
183 | -]) | ||
184 | +#AC_DEFUN([AC_USE_SYSTEM_EXTENSIONS], | ||
185 | +#[ | ||
186 | +# AC_BEFORE([$0], [AC_COMPILE_IFELSE]) | ||
187 | +# AC_BEFORE([$0], [AC_RUN_IFELSE]) | ||
188 | +# | ||
189 | +# AC_REQUIRE([AC_GNU_SOURCE]) | ||
190 | +# AC_REQUIRE([AC_AIX]) | ||
191 | +# AC_REQUIRE([AC_MINIX]) | ||
192 | +# | ||
193 | +# AH_VERBATIM([__EXTENSIONS__], | ||
194 | +#[/* Enable extensions on Solaris. */ | ||
195 | +##ifndef __EXTENSIONS__ | ||
196 | +## undef __EXTENSIONS__ | ||
197 | +##endif | ||
198 | +##ifndef _POSIX_PTHREAD_SEMANTICS | ||
199 | +## undef _POSIX_PTHREAD_SEMANTICS | ||
200 | +##endif | ||
201 | +##ifndef _TANDEM_SOURCE | ||
202 | +## undef _TANDEM_SOURCE | ||
203 | +##endif]) | ||
204 | +# AC_CACHE_CHECK([whether it is safe to define __EXTENSIONS__], | ||
205 | +# [ac_cv_safe_to_define___extensions__], | ||
206 | +# [AC_COMPILE_IFELSE( | ||
207 | +# [AC_LANG_PROGRAM([ | ||
208 | +## define __EXTENSIONS__ 1 | ||
209 | +# AC_INCLUDES_DEFAULT])], | ||
210 | +# [ac_cv_safe_to_define___extensions__=yes], | ||
211 | +# [ac_cv_safe_to_define___extensions__=no])]) | ||
212 | +# test $ac_cv_safe_to_define___extensions__ = yes && | ||
213 | +# AC_DEFINE([__EXTENSIONS__]) | ||
214 | +# AC_DEFINE([_POSIX_PTHREAD_SEMANTICS]) | ||
215 | +# AC_DEFINE([_TANDEM_SOURCE]) | ||
216 | +#]) | ||
217 | |||
218 | # gl_USE_SYSTEM_EXTENSIONS | ||
219 | # ------------------------ | ||
220 | # Enable extensions on systems that normally disable them, | ||
221 | # typically due to standards-conformance issues. | ||
222 | AC_DEFUN([gl_USE_SYSTEM_EXTENSIONS], | ||
223 | - [AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS])]) | ||
224 | +[ | ||
225 | + AC_REQUIRE([AC_GNU_SOURCE]) | ||
226 | + | ||
227 | + AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS]) | ||
228 | +]) | ||
229 | diff -ru gettext-0.16.1/gettext-tools/gnulib-m4/fnmatch.m4 gettext.patched/gettext-tools/gnulib-m4/fnmatch.m4 | ||
230 | --- gettext-0.16.1/gettext-tools/gnulib-m4/fnmatch.m4 2006-11-27 09:14:54.000000000 -0800 | ||
231 | +++ gettext.patched/gettext-tools/gnulib-m4/fnmatch.m4 2011-03-16 23:52:06.477463671 -0700 | ||
232 | @@ -91,7 +91,7 @@ | ||
233 | AC_DEFUN([gl_FUNC_FNMATCH_GNU], | ||
234 | [ | ||
235 | dnl Persuade glibc <fnmatch.h> to declare FNM_CASEFOLD etc. | ||
236 | - AC_REQUIRE([AC_GNU_SOURCE]) | ||
237 | + dnl AC_REQUIRE([AC_GNU_SOURCE]) | ||
238 | |||
239 | FNMATCH_H= | ||
240 | _AC_FUNC_FNMATCH_IF([GNU], [ac_cv_func_fnmatch_gnu], | ||
241 | diff -ru gettext-0.16.1/gettext-tools/gnulib-m4/getdelim.m4 gettext.patched/gettext-tools/gnulib-m4/getdelim.m4 | ||
242 | --- gettext-0.16.1/gettext-tools/gnulib-m4/getdelim.m4 2006-11-27 09:14:54.000000000 -0800 | ||
243 | +++ gettext.patched/gettext-tools/gnulib-m4/getdelim.m4 2011-03-16 23:52:22.871674845 -0700 | ||
244 | @@ -12,7 +12,7 @@ | ||
245 | [ | ||
246 | |||
247 | dnl Persuade glibc <stdio.h> to declare getdelim(). | ||
248 | - AC_REQUIRE([AC_GNU_SOURCE]) | ||
249 | + dnl AC_REQUIRE([AC_GNU_SOURCE]) | ||
250 | |||
251 | AC_REPLACE_FUNCS(getdelim) | ||
252 | AC_CHECK_DECLS_ONCE(getdelim) | ||
253 | diff -ru gettext-0.16.1/gettext-tools/gnulib-m4/getline.m4 gettext.patched/gettext-tools/gnulib-m4/getline.m4 | ||
254 | --- gettext-0.16.1/gettext-tools/gnulib-m4/getline.m4 2006-11-27 09:14:54.000000000 -0800 | ||
255 | +++ gettext.patched/gettext-tools/gnulib-m4/getline.m4 2011-03-16 23:51:49.829971108 -0700 | ||
256 | @@ -16,7 +16,7 @@ | ||
257 | AC_DEFUN([gl_FUNC_GETLINE], | ||
258 | [ | ||
259 | dnl Persuade glibc <stdio.h> to declare getline(). | ||
260 | - AC_REQUIRE([AC_GNU_SOURCE]) | ||
261 | + dnl AC_REQUIRE([AC_GNU_SOURCE]) | ||
262 | |||
263 | AC_CHECK_DECLS([getline]) | ||
264 | |||
265 | diff -ru gettext-0.16.1/gettext-tools/gnulib-m4/gnulib-comp.m4 gettext.patched/gettext-tools/gnulib-m4/gnulib-comp.m4 | ||
266 | --- gettext-0.16.1/gettext-tools/gnulib-m4/gnulib-comp.m4 2006-11-27 09:33:36.000000000 -0800 | ||
267 | +++ gettext.patched/gettext-tools/gnulib-m4/gnulib-comp.m4 2011-03-16 23:52:18.970450488 -0700 | ||
268 | @@ -25,7 +25,7 @@ | ||
269 | m4_pattern_allow([^gl_LIBOBJS$])dnl a variable | ||
270 | m4_pattern_allow([^gl_LTLIBOBJS$])dnl a variable | ||
271 | AC_REQUIRE([AC_PROG_RANLIB]) | ||
272 | - AC_REQUIRE([AC_GNU_SOURCE]) | ||
273 | + dnl AC_REQUIRE([AC_GNU_SOURCE]) | ||
274 | AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS]) | ||
275 | AC_REQUIRE([gl_LOCK_EARLY]) | ||
276 | ]) | ||
277 | diff -ru gettext-0.16.1/gettext-tools/gnulib-m4/mbchar.m4 gettext.patched/gettext-tools/gnulib-m4/mbchar.m4 | ||
278 | --- gettext-0.16.1/gettext-tools/gnulib-m4/mbchar.m4 2006-11-27 09:14:55.000000000 -0800 | ||
279 | +++ gettext.patched/gettext-tools/gnulib-m4/mbchar.m4 2011-03-16 23:51:40.844410216 -0700 | ||
280 | @@ -9,7 +9,7 @@ | ||
281 | |||
282 | AC_DEFUN([gl_MBCHAR], | ||
283 | [ | ||
284 | - AC_REQUIRE([AC_GNU_SOURCE]) | ||
285 | + dnl AC_REQUIRE([AC_GNU_SOURCE]) | ||
286 | dnl The following line is that so the user can test HAVE_WCHAR_H | ||
287 | dnl before #include "mbchar.h". | ||
288 | AC_CHECK_HEADERS_ONCE([wchar.h]) | ||
289 | diff -ru gettext-0.16.1/gettext-tools/gnulib-m4/stpcpy.m4 gettext.patched/gettext-tools/gnulib-m4/stpcpy.m4 | ||
290 | --- gettext-0.16.1/gettext-tools/gnulib-m4/stpcpy.m4 2006-11-27 09:14:55.000000000 -0800 | ||
291 | +++ gettext.patched/gettext-tools/gnulib-m4/stpcpy.m4 2011-03-16 23:52:14.691396045 -0700 | ||
292 | @@ -7,7 +7,7 @@ | ||
293 | AC_DEFUN([gl_FUNC_STPCPY], | ||
294 | [ | ||
295 | dnl Persuade glibc <string.h> to declare stpcpy(). | ||
296 | - AC_REQUIRE([AC_GNU_SOURCE]) | ||
297 | + dnl AC_REQUIRE([AC_GNU_SOURCE]) | ||
298 | |||
299 | AC_REPLACE_FUNCS(stpcpy) | ||
300 | if test $ac_cv_func_stpcpy = no; then | ||
301 | diff -ru gettext-0.16.1/gettext-tools/gnulib-m4/stpncpy.m4 gettext.patched/gettext-tools/gnulib-m4/stpncpy.m4 | ||
302 | --- gettext-0.16.1/gettext-tools/gnulib-m4/stpncpy.m4 2006-11-27 09:14:55.000000000 -0800 | ||
303 | +++ gettext.patched/gettext-tools/gnulib-m4/stpncpy.m4 2011-03-16 23:52:10.356641459 -0700 | ||
304 | @@ -7,7 +7,7 @@ | ||
305 | AC_DEFUN([gl_FUNC_STPNCPY], | ||
306 | [ | ||
307 | dnl Persuade glibc <string.h> to declare stpncpy(). | ||
308 | - AC_REQUIRE([AC_GNU_SOURCE]) | ||
309 | + dnl AC_REQUIRE([AC_GNU_SOURCE]) | ||
310 | |||
311 | dnl Both glibc and AIX (4.3.3, 5.1) have an stpncpy() function | ||
312 | dnl declared in <string.h>. Its side effects are the same as those | ||
313 | diff -ru gettext-0.16.1/gettext-tools/gnulib-m4/wcwidth.m4 gettext.patched/gettext-tools/gnulib-m4/wcwidth.m4 | ||
314 | --- gettext-0.16.1/gettext-tools/gnulib-m4/wcwidth.m4 2006-11-27 09:14:55.000000000 -0800 | ||
315 | +++ gettext.patched/gettext-tools/gnulib-m4/wcwidth.m4 2011-03-16 23:51:08.260324221 -0700 | ||
316 | @@ -7,7 +7,7 @@ | ||
317 | AC_DEFUN([gl_FUNC_WCWIDTH], | ||
318 | [ | ||
319 | dnl Persuade glibc <wchar.h> to declare wcwidth(). | ||
320 | - AC_REQUIRE([AC_GNU_SOURCE]) | ||
321 | + dnl AC_REQUIRE([AC_GNU_SOURCE]) | ||
322 | |||
323 | AC_REQUIRE([AC_C_INLINE]) | ||
324 | AC_REQUIRE([gt_TYPE_WCHAR_T]) | ||
325 | diff -ru gettext-0.16.1/gettext-tools/libgettextpo/gnulib-m4/gnulib-comp.m4 gettext.patched/gettext-tools/libgettextpo/gnulib-m4/gnulib-comp.m4 | ||
326 | --- gettext-0.16.1/gettext-tools/libgettextpo/gnulib-m4/gnulib-comp.m4 2006-11-27 09:33:45.000000000 -0800 | ||
327 | +++ gettext.patched/gettext-tools/libgettextpo/gnulib-m4/gnulib-comp.m4 2011-03-16 23:51:02.036061317 -0700 | ||
328 | @@ -25,7 +25,7 @@ | ||
329 | m4_pattern_allow([^gl_LIBOBJS$])dnl a variable | ||
330 | m4_pattern_allow([^gl_LTLIBOBJS$])dnl a variable | ||
331 | AC_REQUIRE([AC_PROG_RANLIB]) | ||
332 | - AC_REQUIRE([AC_GNU_SOURCE]) | ||
333 | + dnl AC_REQUIRE([AC_GNU_SOURCE]) | ||
334 | AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS]) | ||
335 | AC_REQUIRE([gl_LOCK_EARLY]) | ||
336 | ]) | ||
337 | diff -ru gettext-0.16.1/gettext-tools/m4/regex.m4 gettext.patched/gettext-tools/m4/regex.m4 | ||
338 | --- gettext-0.16.1/gettext-tools/m4/regex.m4 2006-11-27 09:02:05.000000000 -0800 | ||
339 | +++ gettext.patched/gettext-tools/m4/regex.m4 2011-03-16 23:50:53.533477195 -0700 | ||
340 | @@ -116,7 +116,7 @@ | ||
341 | dnl to get them. | ||
342 | |||
343 | dnl Persuade glibc <string.h> to declare mempcpy(). | ||
344 | - AC_REQUIRE([AC_GNU_SOURCE]) | ||
345 | + dnl AC_REQUIRE([AC_GNU_SOURCE]) | ||
346 | |||
347 | AC_REQUIRE([AC_C_RESTRICT]) | ||
348 | AC_REQUIRE([AC_FUNC_ALLOCA]) | ||
diff --git a/recipes-core/gettext/gettext-0.16.1/gettext-autoconf-lib-link-no-L.patch b/recipes-core/gettext/gettext-0.16.1/gettext-autoconf-lib-link-no-L.patch new file mode 100644 index 0000000..072fe5f --- /dev/null +++ b/recipes-core/gettext/gettext-0.16.1/gettext-autoconf-lib-link-no-L.patch | |||
@@ -0,0 +1,19 @@ | |||
1 | |||
2 | # Pulled from OpenEmbedded | ||
3 | # | ||
4 | # Commented by: Saul Wold <saul.wold@intel.com> | ||
5 | |||
6 | Upstream-Status: Inappropriate [licensing] | ||
7 | |||
8 | --- gettext-0.17/autoconf-lib-link/m4/lib-link.m4~ 2009-04-17 15:12:30.000000000 -0700 | ||
9 | +++ gettext-0.17/autoconf-lib-link/m4/lib-link.m4 2009-04-17 15:37:39.000000000 -0700 | ||
10 | @@ -267,6 +267,9 @@ | ||
11 | fi | ||
12 | fi | ||
13 | fi | ||
14 | + dnl Just let the compiler find the library, the compiler and user are smarter then this script | ||
15 | + dnl when cross compiling and working with a relocated install. | ||
16 | + found_dir="" | ||
17 | if test "X$found_dir" = "X"; then | ||
18 | for x in $LDFLAGS $LTLIB[]NAME; do | ||
19 | AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) | ||
diff --git a/recipes-core/gettext/gettext-0.16.1/gettext-vpath.patch b/recipes-core/gettext/gettext-0.16.1/gettext-vpath.patch new file mode 100644 index 0000000..f09e450 --- /dev/null +++ b/recipes-core/gettext/gettext-0.16.1/gettext-vpath.patch | |||
@@ -0,0 +1,20 @@ | |||
1 | |||
2 | # Pulled from OpenEmbedded | ||
3 | # | ||
4 | # Commented by: Saul Wold <saul.wold@intel.com> | ||
5 | |||
6 | Upstream-Status: Inappropriate [licensing] | ||
7 | |||
8 | Index: gettext-0.16.1/gettext-runtime/intl/Makefile.in | ||
9 | =================================================================== | ||
10 | --- gettext-0.16.1.orig/gettext-runtime/intl/Makefile.in 2006-11-27 09:02:00.000000000 -0800 | ||
11 | +++ gettext-0.16.1/gettext-runtime/intl/Makefile.in 2011-03-16 16:04:49.175419930 -0700 | ||
12 | @@ -35,7 +35,7 @@ | ||
13 | # 'make' does the wrong thing if GNU gettext was configured with | ||
14 | # "./configure --srcdir=`pwd`", namely it gets confused by the .lo and .la | ||
15 | # files it finds in srcdir = ../../gettext-runtime/intl. | ||
16 | -VPATH = $(srcdir) | ||
17 | +#VPATH = $(srcdir) | ||
18 | |||
19 | prefix = @prefix@ | ||
20 | exec_prefix = @exec_prefix@ | ||
diff --git a/recipes-core/gettext/gettext-0.16.1/hardcode_macro_version.patch b/recipes-core/gettext/gettext-0.16.1/hardcode_macro_version.patch new file mode 100644 index 0000000..4da8dd4 --- /dev/null +++ b/recipes-core/gettext/gettext-0.16.1/hardcode_macro_version.patch | |||
@@ -0,0 +1,51 @@ | |||
1 | |||
2 | This patch hardcodes in version 0.17 for the GETTEXT_MACRO_VERSION, | ||
3 | the version check is only part of 0.17 and will not affect any 0.16.1 | ||
4 | operations | ||
5 | |||
6 | Upstream-Status: Inappropriate [licensing] | ||
7 | |||
8 | Signed-off-by: Saul Wold <sgw@linux.intel.com> | ||
9 | |||
10 | Index: gettext-0.16.1/gettext-runtime/m4/po.m4 | ||
11 | =================================================================== | ||
12 | --- gettext-0.16.1.orig/gettext-runtime/m4/po.m4 2011-03-17 02:24:28.953520231 -0700 | ||
13 | +++ gettext-0.16.1/gettext-runtime/m4/po.m4 2011-03-17 02:28:25.455396862 -0700 | ||
14 | @@ -27,6 +27,9 @@ | ||
15 | AC_REQUIRE([AM_PROG_MKDIR_P])dnl defined by automake | ||
16 | AC_REQUIRE([AM_NLS])dnl | ||
17 | |||
18 | + dnl Hardcode the MACRO_VERSION to 0.17 for gnutls | ||
19 | + AC_SUBST([GETTEXT_MACRO_VERSION], [0.17]) | ||
20 | + | ||
21 | dnl Perform the following tests also if --disable-nls has been given, | ||
22 | dnl because they are needed for "make dist" to work. | ||
23 | |||
24 | Index: gettext-0.16.1/gettext-runtime/po/Makefile.in.in | ||
25 | =================================================================== | ||
26 | --- gettext-0.16.1.orig/gettext-runtime/po/Makefile.in.in 2011-03-17 02:24:28.953520231 -0700 | ||
27 | +++ gettext-0.16.1/gettext-runtime/po/Makefile.in.in 2011-03-17 02:28:07.574395144 -0700 | ||
28 | @@ -10,6 +10,9 @@ | ||
29 | # | ||
30 | # Origin: gettext-0.16 | ||
31 | |||
32 | +# Hardcode this value for gnutls building against gplv2 code | ||
33 | +GETTEXT_MACRO_VERSION = 0.17 | ||
34 | + | ||
35 | PACKAGE = @PACKAGE@ | ||
36 | VERSION = @VERSION@ | ||
37 | PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ | ||
38 | Index: gettext-0.16.1/gettext-tools/po/Makefile.in.in | ||
39 | =================================================================== | ||
40 | --- gettext-0.16.1.orig/gettext-tools/po/Makefile.in.in 2011-03-17 02:24:28.953520231 -0700 | ||
41 | +++ gettext-0.16.1/gettext-tools/po/Makefile.in.in 2011-03-17 02:28:07.574395144 -0700 | ||
42 | @@ -10,6 +10,9 @@ | ||
43 | # | ||
44 | # Origin: gettext-0.16 | ||
45 | |||
46 | +# Hardcode this value for gnutls building against gplv2 code | ||
47 | +GETTEXT_MACRO_VERSION = 0.17 | ||
48 | + | ||
49 | PACKAGE = @PACKAGE@ | ||
50 | VERSION = @VERSION@ | ||
51 | PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ | ||
diff --git a/recipes-core/gettext/gettext-0.16.1/linklib_from_0.17.patch b/recipes-core/gettext/gettext-0.16.1/linklib_from_0.17.patch new file mode 100644 index 0000000..d921069 --- /dev/null +++ b/recipes-core/gettext/gettext-0.16.1/linklib_from_0.17.patch | |||
@@ -0,0 +1,720 @@ | |||
1 | |||
2 | # Pulled from OpenEmbedded | ||
3 | # | ||
4 | # Commented by: Saul Wold <saul.wold@intel.com> | ||
5 | |||
6 | Upstream-Status: Inappropriate [licensing] | ||
7 | |||
8 | Index: gettext-0.16.1/autoconf-lib-link/m4/lib-link.m4 | ||
9 | =================================================================== | ||
10 | --- gettext-0.16.1.orig/autoconf-lib-link/m4/lib-link.m4 2006-11-27 09:01:58.000000000 -0800 | ||
11 | +++ gettext-0.16.1/autoconf-lib-link/m4/lib-link.m4 2011-03-17 00:36:08.710836720 -0700 | ||
12 | @@ -6,12 +6,14 @@ | ||
13 | |||
14 | dnl From Bruno Haible. | ||
15 | |||
16 | -AC_PREREQ(2.50) | ||
17 | +AC_PREREQ(2.54) | ||
18 | |||
19 | dnl AC_LIB_LINKFLAGS(name [, dependencies]) searches for libname and | ||
20 | dnl the libraries corresponding to explicit and implicit dependencies. | ||
21 | dnl Sets and AC_SUBSTs the LIB${NAME} and LTLIB${NAME} variables and | ||
22 | dnl augments the CPPFLAGS variable. | ||
23 | +dnl Sets and AC_SUBSTs the LIB${NAME}_PREFIX variable to nonempty if libname | ||
24 | +dnl was found in ${LIB${NAME}_PREFIX}/$acl_libdirstem. | ||
25 | AC_DEFUN([AC_LIB_LINKFLAGS], | ||
26 | [ | ||
27 | AC_REQUIRE([AC_LIB_PREPARE_PREFIX]) | ||
28 | @@ -24,13 +26,16 @@ | ||
29 | ac_cv_lib[]Name[]_libs="$LIB[]NAME" | ||
30 | ac_cv_lib[]Name[]_ltlibs="$LTLIB[]NAME" | ||
31 | ac_cv_lib[]Name[]_cppflags="$INC[]NAME" | ||
32 | + ac_cv_lib[]Name[]_prefix="$LIB[]NAME[]_PREFIX" | ||
33 | ]) | ||
34 | LIB[]NAME="$ac_cv_lib[]Name[]_libs" | ||
35 | LTLIB[]NAME="$ac_cv_lib[]Name[]_ltlibs" | ||
36 | INC[]NAME="$ac_cv_lib[]Name[]_cppflags" | ||
37 | + LIB[]NAME[]_PREFIX="$ac_cv_lib[]Name[]_prefix" | ||
38 | AC_LIB_APPENDTOVAR([CPPFLAGS], [$INC]NAME) | ||
39 | AC_SUBST([LIB]NAME) | ||
40 | AC_SUBST([LTLIB]NAME) | ||
41 | + AC_SUBST([LIB]NAME[_PREFIX]) | ||
42 | dnl Also set HAVE_LIB[]NAME so that AC_LIB_HAVE_LINKFLAGS can reuse the | ||
43 | dnl results of this search when this library appears as a dependency. | ||
44 | HAVE_LIB[]NAME=yes | ||
45 | @@ -46,6 +51,8 @@ | ||
46 | dnl LTLIB${NAME} variables and augments the CPPFLAGS variable, and | ||
47 | dnl #defines HAVE_LIB${NAME} to 1. Otherwise, it sets and AC_SUBSTs | ||
48 | dnl HAVE_LIB${NAME}=no and LIB${NAME} and LTLIB${NAME} to empty. | ||
49 | +dnl Sets and AC_SUBSTs the LIB${NAME}_PREFIX variable to nonempty if libname | ||
50 | +dnl was found in ${LIB${NAME}_PREFIX}/$acl_libdirstem. | ||
51 | AC_DEFUN([AC_LIB_HAVE_LINKFLAGS], | ||
52 | [ | ||
53 | AC_REQUIRE([AC_LIB_PREPARE_PREFIX]) | ||
54 | @@ -82,17 +89,24 @@ | ||
55 | CPPFLAGS="$ac_save_CPPFLAGS" | ||
56 | LIB[]NAME= | ||
57 | LTLIB[]NAME= | ||
58 | + LIB[]NAME[]_PREFIX= | ||
59 | + | ||
60 | fi | ||
61 | AC_SUBST([HAVE_LIB]NAME) | ||
62 | AC_SUBST([LIB]NAME) | ||
63 | AC_SUBST([LTLIB]NAME) | ||
64 | + AC_SUBST([LIB]NAME[_PREFIX]) | ||
65 | undefine([Name]) | ||
66 | undefine([NAME]) | ||
67 | ]) | ||
68 | |||
69 | dnl Determine the platform dependent parameters needed to use rpath: | ||
70 | -dnl libext, shlibext, hardcode_libdir_flag_spec, hardcode_libdir_separator, | ||
71 | -dnl hardcode_direct, hardcode_minus_L. | ||
72 | +dnl acl_libext, | ||
73 | +dnl acl_shlibext, | ||
74 | +dnl acl_hardcode_libdir_flag_spec, | ||
75 | +dnl acl_hardcode_libdir_separator, | ||
76 | +dnl acl_hardcode_direct, | ||
77 | +dnl acl_hardcode_minus_L. | ||
78 | AC_DEFUN([AC_LIB_RPATH], | ||
79 | [ | ||
80 | dnl Tell automake >= 1.10 to complain if config.rpath is missing. | ||
81 | @@ -109,12 +123,14 @@ | ||
82 | acl_cv_rpath=done | ||
83 | ]) | ||
84 | wl="$acl_cv_wl" | ||
85 | - libext="$acl_cv_libext" | ||
86 | - shlibext="$acl_cv_shlibext" | ||
87 | - hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" | ||
88 | - hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" | ||
89 | - hardcode_direct="$acl_cv_hardcode_direct" | ||
90 | - hardcode_minus_L="$acl_cv_hardcode_minus_L" | ||
91 | + acl_libext="$acl_cv_libext" | ||
92 | + acl_shlibext="$acl_cv_shlibext" | ||
93 | + acl_libname_spec="$acl_cv_libname_spec" | ||
94 | + acl_library_names_spec="$acl_cv_library_names_spec" | ||
95 | + acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" | ||
96 | + acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" | ||
97 | + acl_hardcode_direct="$acl_cv_hardcode_direct" | ||
98 | + acl_hardcode_minus_L="$acl_cv_hardcode_minus_L" | ||
99 | dnl Determine whether the user wants rpath handling at all. | ||
100 | AC_ARG_ENABLE(rpath, | ||
101 | [ --disable-rpath do not hardcode runtime library paths], | ||
102 | @@ -124,20 +140,24 @@ | ||
103 | dnl AC_LIB_LINKFLAGS_BODY(name [, dependencies]) searches for libname and | ||
104 | dnl the libraries corresponding to explicit and implicit dependencies. | ||
105 | dnl Sets the LIB${NAME}, LTLIB${NAME} and INC${NAME} variables. | ||
106 | +dnl Also, sets the LIB${NAME}_PREFIX variable to nonempty if libname was found | ||
107 | +dnl in ${LIB${NAME}_PREFIX}/$acl_libdirstem. | ||
108 | AC_DEFUN([AC_LIB_LINKFLAGS_BODY], | ||
109 | [ | ||
110 | AC_REQUIRE([AC_LIB_PREPARE_MULTILIB]) | ||
111 | define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-], | ||
112 | [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])]) | ||
113 | + dnl Autoconf >= 2.61 supports dots in --with options. | ||
114 | + define([N_A_M_E],[m4_if(m4_version_compare(m4_defn([m4_PACKAGE_VERSION]),[2.61]),[-1],[translit([$1],[.],[_])],[$1])]) | ||
115 | dnl By default, look in $includedir and $libdir. | ||
116 | use_additional=yes | ||
117 | AC_LIB_WITH_FINAL_PREFIX([ | ||
118 | eval additional_includedir=\"$includedir\" | ||
119 | eval additional_libdir=\"$libdir\" | ||
120 | ]) | ||
121 | - AC_LIB_ARG_WITH([lib$1-prefix], | ||
122 | -[ --with-lib$1-prefix[=DIR] search for lib$1 in DIR/include and DIR/lib | ||
123 | - --without-lib$1-prefix don't search for lib$1 in includedir and libdir], | ||
124 | + AC_LIB_ARG_WITH([lib]N_A_M_E[-prefix], | ||
125 | +[ --with-lib]N_A_M_E[-prefix[=DIR] search for lib$1 in DIR/include and DIR/lib | ||
126 | + --without-lib]N_A_M_E[-prefix don't search for lib$1 in includedir and libdir], | ||
127 | [ | ||
128 | if test "X$withval" = "Xno"; then | ||
129 | use_additional=no | ||
130 | @@ -158,6 +178,7 @@ | ||
131 | LIB[]NAME= | ||
132 | LTLIB[]NAME= | ||
133 | INC[]NAME= | ||
134 | + LIB[]NAME[]_PREFIX= | ||
135 | rpathdirs= | ||
136 | ltrpathdirs= | ||
137 | names_already_handled= | ||
138 | @@ -197,27 +218,53 @@ | ||
139 | found_la= | ||
140 | found_so= | ||
141 | found_a= | ||
142 | + eval libname=\"$acl_libname_spec\" # typically: libname=lib$name | ||
143 | + if test -n "$acl_shlibext"; then | ||
144 | + shrext=".$acl_shlibext" # typically: shrext=.so | ||
145 | + else | ||
146 | + shrext= | ||
147 | + fi | ||
148 | if test $use_additional = yes; then | ||
149 | - if test -n "$shlibext" \ | ||
150 | - && { test -f "$additional_libdir/lib$name.$shlibext" \ | ||
151 | - || { test "$shlibext" = dll \ | ||
152 | - && test -f "$additional_libdir/lib$name.dll.a"; }; }; then | ||
153 | - found_dir="$additional_libdir" | ||
154 | - if test -f "$additional_libdir/lib$name.$shlibext"; then | ||
155 | - found_so="$additional_libdir/lib$name.$shlibext" | ||
156 | + dir="$additional_libdir" | ||
157 | + dnl The same code as in the loop below: | ||
158 | + dnl First look for a shared library. | ||
159 | + if test -n "$acl_shlibext"; then | ||
160 | + if test -f "$dir/$libname$shrext"; then | ||
161 | + found_dir="$dir" | ||
162 | + found_so="$dir/$libname$shrext" | ||
163 | else | ||
164 | - found_so="$additional_libdir/lib$name.dll.a" | ||
165 | + if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then | ||
166 | + ver=`(cd "$dir" && \ | ||
167 | + for f in "$libname$shrext".*; do echo "$f"; done \ | ||
168 | + | sed -e "s,^$libname$shrext\\\\.,," \ | ||
169 | + | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ | ||
170 | + | sed 1q ) 2>/dev/null` | ||
171 | + if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then | ||
172 | + found_dir="$dir" | ||
173 | + found_so="$dir/$libname$shrext.$ver" | ||
174 | + fi | ||
175 | + else | ||
176 | + eval library_names=\"$acl_library_names_spec\" | ||
177 | + for f in $library_names; do | ||
178 | + if test -f "$dir/$f"; then | ||
179 | + found_dir="$dir" | ||
180 | + found_so="$dir/$f" | ||
181 | + break | ||
182 | + fi | ||
183 | + done | ||
184 | + fi | ||
185 | fi | ||
186 | - if test -f "$additional_libdir/lib$name.la"; then | ||
187 | - found_la="$additional_libdir/lib$name.la" | ||
188 | + fi | ||
189 | + dnl Then look for a static library. | ||
190 | + if test "X$found_dir" = "X"; then | ||
191 | + if test -f "$dir/$libname.$acl_libext"; then | ||
192 | + found_dir="$dir" | ||
193 | + found_a="$dir/$libname.$acl_libext" | ||
194 | fi | ||
195 | - else | ||
196 | - if test -f "$additional_libdir/lib$name.$libext"; then | ||
197 | - found_dir="$additional_libdir" | ||
198 | - found_a="$additional_libdir/lib$name.$libext" | ||
199 | - if test -f "$additional_libdir/lib$name.la"; then | ||
200 | - found_la="$additional_libdir/lib$name.la" | ||
201 | - fi | ||
202 | + fi | ||
203 | + if test "X$found_dir" != "X"; then | ||
204 | + if test -f "$dir/$libname.la"; then | ||
205 | + found_la="$dir/$libname.la" | ||
206 | fi | ||
207 | fi | ||
208 | fi | ||
209 | @@ -227,26 +274,44 @@ | ||
210 | case "$x" in | ||
211 | -L*) | ||
212 | dir=`echo "X$x" | sed -e 's/^X-L//'` | ||
213 | - if test -n "$shlibext" \ | ||
214 | - && { test -f "$dir/lib$name.$shlibext" \ | ||
215 | - || { test "$shlibext" = dll \ | ||
216 | - && test -f "$dir/lib$name.dll.a"; }; }; then | ||
217 | - found_dir="$dir" | ||
218 | - if test -f "$dir/lib$name.$shlibext"; then | ||
219 | - found_so="$dir/lib$name.$shlibext" | ||
220 | + dnl First look for a shared library. | ||
221 | + if test -n "$acl_shlibext"; then | ||
222 | + if test -f "$dir/$libname$shrext"; then | ||
223 | + found_dir="$dir" | ||
224 | + found_so="$dir/$libname$shrext" | ||
225 | else | ||
226 | - found_so="$dir/lib$name.dll.a" | ||
227 | - fi | ||
228 | - if test -f "$dir/lib$name.la"; then | ||
229 | - found_la="$dir/lib$name.la" | ||
230 | + if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then | ||
231 | + ver=`(cd "$dir" && \ | ||
232 | + for f in "$libname$shrext".*; do echo "$f"; done \ | ||
233 | + | sed -e "s,^$libname$shrext\\\\.,," \ | ||
234 | + | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ | ||
235 | + | sed 1q ) 2>/dev/null` | ||
236 | + if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then | ||
237 | + found_dir="$dir" | ||
238 | + found_so="$dir/$libname$shrext.$ver" | ||
239 | + fi | ||
240 | + else | ||
241 | + eval library_names=\"$acl_library_names_spec\" | ||
242 | + for f in $library_names; do | ||
243 | + if test -f "$dir/$f"; then | ||
244 | + found_dir="$dir" | ||
245 | + found_so="$dir/$f" | ||
246 | + break | ||
247 | + fi | ||
248 | + done | ||
249 | + fi | ||
250 | fi | ||
251 | - else | ||
252 | - if test -f "$dir/lib$name.$libext"; then | ||
253 | + fi | ||
254 | + dnl Then look for a static library. | ||
255 | + if test "X$found_dir" = "X"; then | ||
256 | + if test -f "$dir/$libname.$acl_libext"; then | ||
257 | found_dir="$dir" | ||
258 | - found_a="$dir/lib$name.$libext" | ||
259 | - if test -f "$dir/lib$name.la"; then | ||
260 | - found_la="$dir/lib$name.la" | ||
261 | - fi | ||
262 | + found_a="$dir/$libname.$acl_libext" | ||
263 | + fi | ||
264 | + fi | ||
265 | + if test "X$found_dir" != "X"; then | ||
266 | + if test -f "$dir/$libname.la"; then | ||
267 | + found_la="$dir/$libname.la" | ||
268 | fi | ||
269 | fi | ||
270 | ;; | ||
271 | @@ -282,12 +347,12 @@ | ||
272 | ltrpathdirs="$ltrpathdirs $found_dir" | ||
273 | fi | ||
274 | dnl The hardcoding into $LIBNAME is system dependent. | ||
275 | - if test "$hardcode_direct" = yes; then | ||
276 | + if test "$acl_hardcode_direct" = yes; then | ||
277 | dnl Using DIR/libNAME.so during linking hardcodes DIR into the | ||
278 | dnl resulting binary. | ||
279 | LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so" | ||
280 | else | ||
281 | - if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then | ||
282 | + if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then | ||
283 | dnl Use an explicit option to hardcode DIR into the resulting | ||
284 | dnl binary. | ||
285 | LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so" | ||
286 | @@ -318,13 +383,13 @@ | ||
287 | if test -z "$haveit"; then | ||
288 | LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$found_dir" | ||
289 | fi | ||
290 | - if test "$hardcode_minus_L" != no; then | ||
291 | + if test "$acl_hardcode_minus_L" != no; then | ||
292 | dnl FIXME: Not sure whether we should use | ||
293 | dnl "-L$found_dir -l$name" or "-L$found_dir $found_so" | ||
294 | dnl here. | ||
295 | LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so" | ||
296 | else | ||
297 | - dnl We cannot use $hardcode_runpath_var and LD_RUN_PATH | ||
298 | + dnl We cannot use $acl_hardcode_runpath_var and LD_RUN_PATH | ||
299 | dnl here, because this doesn't fit in flags passed to the | ||
300 | dnl compiler. So give up. No hardcoding. This affects only | ||
301 | dnl very old systems. | ||
302 | @@ -512,18 +577,18 @@ | ||
303 | done | ||
304 | done | ||
305 | if test "X$rpathdirs" != "X"; then | ||
306 | - if test -n "$hardcode_libdir_separator"; then | ||
307 | + if test -n "$acl_hardcode_libdir_separator"; then | ||
308 | dnl Weird platform: only the last -rpath option counts, the user must | ||
309 | dnl pass all path elements in one option. We can arrange that for a | ||
310 | dnl single library, but not when more than one $LIBNAMEs are used. | ||
311 | alldirs= | ||
312 | for found_dir in $rpathdirs; do | ||
313 | - alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" | ||
314 | + alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" | ||
315 | done | ||
316 | - dnl Note: hardcode_libdir_flag_spec uses $libdir and $wl. | ||
317 | + dnl Note: acl_hardcode_libdir_flag_spec uses $libdir and $wl. | ||
318 | acl_save_libdir="$libdir" | ||
319 | libdir="$alldirs" | ||
320 | - eval flag=\"$hardcode_libdir_flag_spec\" | ||
321 | + eval flag=\"$acl_hardcode_libdir_flag_spec\" | ||
322 | libdir="$acl_save_libdir" | ||
323 | LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$flag" | ||
324 | else | ||
325 | @@ -531,7 +596,7 @@ | ||
326 | for found_dir in $rpathdirs; do | ||
327 | acl_save_libdir="$libdir" | ||
328 | libdir="$found_dir" | ||
329 | - eval flag=\"$hardcode_libdir_flag_spec\" | ||
330 | + eval flag=\"$acl_hardcode_libdir_flag_spec\" | ||
331 | libdir="$acl_save_libdir" | ||
332 | LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$flag" | ||
333 | done | ||
334 | @@ -642,3 +707,79 @@ | ||
335 | fi | ||
336 | AC_SUBST([$1]) | ||
337 | ]) | ||
338 | + | ||
339 | +dnl For those cases where a variable contains several -L and -l options | ||
340 | +dnl referring to unknown libraries and directories, this macro determines the | ||
341 | +dnl necessary additional linker options for the runtime path. | ||
342 | +dnl AC_LIB_LINKFLAGS_FROM_LIBS([LDADDVAR], [LIBSVALUE], [USE-LIBTOOL]) | ||
343 | +dnl sets LDADDVAR to linker options needed together with LIBSVALUE. | ||
344 | +dnl If USE-LIBTOOL evaluates to non-empty, linking with libtool is assumed, | ||
345 | +dnl otherwise linking without libtool is assumed. | ||
346 | +AC_DEFUN([AC_LIB_LINKFLAGS_FROM_LIBS], | ||
347 | +[ | ||
348 | + AC_REQUIRE([AC_LIB_RPATH]) | ||
349 | + AC_REQUIRE([AC_LIB_PREPARE_MULTILIB]) | ||
350 | + $1= | ||
351 | + if test "$enable_rpath" != no; then | ||
352 | + if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then | ||
353 | + dnl Use an explicit option to hardcode directories into the resulting | ||
354 | + dnl binary. | ||
355 | + rpathdirs= | ||
356 | + next= | ||
357 | + for opt in $2; do | ||
358 | + if test -n "$next"; then | ||
359 | + dir="$next" | ||
360 | + dnl No need to hardcode the standard /usr/lib. | ||
361 | + if test "X$dir" != "X/usr/$acl_libdirstem"; then | ||
362 | + rpathdirs="$rpathdirs $dir" | ||
363 | + fi | ||
364 | + next= | ||
365 | + else | ||
366 | + case $opt in | ||
367 | + -L) next=yes ;; | ||
368 | + -L*) dir=`echo "X$opt" | sed -e 's,^X-L,,'` | ||
369 | + dnl No need to hardcode the standard /usr/lib. | ||
370 | + if test "X$dir" != "X/usr/$acl_libdirstem"; then | ||
371 | + rpathdirs="$rpathdirs $dir" | ||
372 | + fi | ||
373 | + next= ;; | ||
374 | + *) next= ;; | ||
375 | + esac | ||
376 | + fi | ||
377 | + done | ||
378 | + if test "X$rpathdirs" != "X"; then | ||
379 | + if test -n ""$3""; then | ||
380 | + dnl libtool is used for linking. Use -R options. | ||
381 | + for dir in $rpathdirs; do | ||
382 | + $1="${$1}${$1:+ }-R$dir" | ||
383 | + done | ||
384 | + else | ||
385 | + dnl The linker is used for linking directly. | ||
386 | + if test -n "$acl_hardcode_libdir_separator"; then | ||
387 | + dnl Weird platform: only the last -rpath option counts, the user | ||
388 | + dnl must pass all path elements in one option. | ||
389 | + alldirs= | ||
390 | + for dir in $rpathdirs; do | ||
391 | + alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$dir" | ||
392 | + done | ||
393 | + acl_save_libdir="$libdir" | ||
394 | + libdir="$alldirs" | ||
395 | + eval flag=\"$acl_hardcode_libdir_flag_spec\" | ||
396 | + libdir="$acl_save_libdir" | ||
397 | + $1="$flag" | ||
398 | + else | ||
399 | + dnl The -rpath options are cumulative. | ||
400 | + for dir in $rpathdirs; do | ||
401 | + acl_save_libdir="$libdir" | ||
402 | + libdir="$dir" | ||
403 | + eval flag=\"$acl_hardcode_libdir_flag_spec\" | ||
404 | + libdir="$acl_save_libdir" | ||
405 | + $1="${$1}${$1:+ }$flag" | ||
406 | + done | ||
407 | + fi | ||
408 | + fi | ||
409 | + fi | ||
410 | + fi | ||
411 | + fi | ||
412 | + AC_SUBST([$1]) | ||
413 | +]) | ||
414 | Index: gettext-0.16.1/autoconf-lib-link/config.rpath | ||
415 | =================================================================== | ||
416 | --- gettext-0.16.1.orig/autoconf-lib-link/config.rpath 2006-11-27 09:01:58.000000000 -0800 | ||
417 | +++ gettext-0.16.1/autoconf-lib-link/config.rpath 2011-03-17 00:33:23.336539490 -0700 | ||
418 | @@ -2,7 +2,7 @@ | ||
419 | # Output a system dependent set of variables, describing how to set the | ||
420 | # run time search path of shared libraries in an executable. | ||
421 | # | ||
422 | -# Copyright 1996-2006 Free Software Foundation, Inc. | ||
423 | +# Copyright 1996-2007 Free Software Foundation, Inc. | ||
424 | # Taken from GNU libtool, 2001 | ||
425 | # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 | ||
426 | # | ||
427 | @@ -47,6 +47,18 @@ | ||
428 | done | ||
429 | cc_basename=`echo "$cc_temp" | sed -e 's%^.*/%%'` | ||
430 | |||
431 | +# Code taken from libtool.m4's _LT_CC_BASENAME. | ||
432 | + | ||
433 | +for cc_temp in $CC""; do | ||
434 | + case $cc_temp in | ||
435 | + compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | ||
436 | + distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | ||
437 | + \-*) ;; | ||
438 | + *) break;; | ||
439 | + esac | ||
440 | +done | ||
441 | +cc_basename=`echo "$cc_temp" | sed -e 's%^.*/%%'` | ||
442 | + | ||
443 | # Code taken from libtool.m4's AC_LIBTOOL_PROG_COMPILER_PIC. | ||
444 | |||
445 | wl= | ||
446 | @@ -64,7 +76,14 @@ | ||
447 | ;; | ||
448 | esac | ||
449 | ;; | ||
450 | - mingw* | pw32* | os2*) | ||
451 | + darwin*) | ||
452 | + case $cc_basename in | ||
453 | + xlc*) | ||
454 | + wl='-Wl,' | ||
455 | + ;; | ||
456 | + esac | ||
457 | + ;; | ||
458 | + mingw* | cygwin* | pw32* | os2*) | ||
459 | ;; | ||
460 | hpux9* | hpux10* | hpux11*) | ||
461 | wl='-Wl,' | ||
462 | @@ -74,7 +93,7 @@ | ||
463 | ;; | ||
464 | newsos6) | ||
465 | ;; | ||
466 | - linux*) | ||
467 | + linux* | k*bsd*-gnu) | ||
468 | case $cc_basename in | ||
469 | icc* | ecc*) | ||
470 | wl='-Wl,' | ||
471 | @@ -100,7 +119,7 @@ | ||
472 | osf3* | osf4* | osf5*) | ||
473 | wl='-Wl,' | ||
474 | ;; | ||
475 | - sco3.2v5*) | ||
476 | + rdos*) | ||
477 | ;; | ||
478 | solaris*) | ||
479 | wl='-Wl,' | ||
480 | @@ -108,11 +127,14 @@ | ||
481 | sunos4*) | ||
482 | wl='-Qoption ld ' | ||
483 | ;; | ||
484 | - sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | ||
485 | + sysv4 | sysv4.2uw2* | sysv4.3*) | ||
486 | wl='-Wl,' | ||
487 | ;; | ||
488 | sysv4*MP*) | ||
489 | ;; | ||
490 | + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | ||
491 | + wl='-Wl,' | ||
492 | + ;; | ||
493 | unicos*) | ||
494 | wl='-Wl,' | ||
495 | ;; | ||
496 | @@ -141,6 +163,10 @@ | ||
497 | # we just hope/assume this is gcc and not c89 (= MSVC++) | ||
498 | with_gnu_ld=yes | ||
499 | ;; | ||
500 | + interix*) | ||
501 | + # we just hope/assume this is gcc and not c89 (= MSVC++) | ||
502 | + with_gnu_ld=yes | ||
503 | + ;; | ||
504 | openbsd*) | ||
505 | with_gnu_ld=no | ||
506 | ;; | ||
507 | @@ -189,11 +215,11 @@ | ||
508 | ld_shlibs=no | ||
509 | fi | ||
510 | ;; | ||
511 | - interix3*) | ||
512 | + interix[3-9]*) | ||
513 | hardcode_direct=no | ||
514 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | ||
515 | ;; | ||
516 | - linux*) | ||
517 | + gnu* | linux* | k*bsd*-gnu) | ||
518 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | ||
519 | : | ||
520 | else | ||
521 | @@ -280,7 +306,7 @@ | ||
522 | strings "$collect2name" | grep resolve_lib_name >/dev/null | ||
523 | then | ||
524 | # We have reworked collect2 | ||
525 | - hardcode_direct=yes | ||
526 | + : | ||
527 | else | ||
528 | # We have old collect2 | ||
529 | hardcode_direct=unsupported | ||
530 | @@ -359,7 +385,7 @@ | ||
531 | hardcode_direct=yes | ||
532 | hardcode_minus_L=yes | ||
533 | ;; | ||
534 | - freebsd* | kfreebsd*-gnu | dragonfly*) | ||
535 | + freebsd* | dragonfly*) | ||
536 | hardcode_libdir_flag_spec='-R$libdir' | ||
537 | hardcode_direct=yes | ||
538 | ;; | ||
539 | @@ -412,18 +438,22 @@ | ||
540 | hardcode_libdir_separator=: | ||
541 | ;; | ||
542 | openbsd*) | ||
543 | - hardcode_direct=yes | ||
544 | - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | ||
545 | - hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | ||
546 | + if test -f /usr/libexec/ld.so; then | ||
547 | + hardcode_direct=yes | ||
548 | + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | ||
549 | + hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | ||
550 | + else | ||
551 | + case "$host_os" in | ||
552 | + openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | ||
553 | + hardcode_libdir_flag_spec='-R$libdir' | ||
554 | + ;; | ||
555 | + *) | ||
556 | + hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | ||
557 | + ;; | ||
558 | + esac | ||
559 | + fi | ||
560 | else | ||
561 | - case "$host_os" in | ||
562 | - openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | ||
563 | - hardcode_libdir_flag_spec='-R$libdir' | ||
564 | - ;; | ||
565 | - *) | ||
566 | - hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | ||
567 | - ;; | ||
568 | - esac | ||
569 | + ld_shlibs=no | ||
570 | fi | ||
571 | ;; | ||
572 | os2*) | ||
573 | @@ -471,7 +501,7 @@ | ||
574 | ld_shlibs=yes | ||
575 | fi | ||
576 | ;; | ||
577 | - sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) | ||
578 | + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* |sco3.2v5.0.[024]*) | ||
579 | ;; | ||
580 | sysv5* | sco3.2v5* | sco5v6*) | ||
581 | hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' | ||
582 | @@ -488,33 +518,51 @@ | ||
583 | |||
584 | # Check dynamic linker characteristics | ||
585 | # Code taken from libtool.m4's AC_LIBTOOL_SYS_DYNAMIC_LINKER. | ||
586 | +# Unlike libtool.m4, here we don't care about _all_ names of the library, but | ||
587 | +# only about the one the linker finds when passed -lNAME. This is the last | ||
588 | +# element of library_names_spec in libtool.m4, or possibly two of them if the | ||
589 | +# linker has special search rules. | ||
590 | +library_names_spec= # the last element of library_names_spec in libtool.m4 | ||
591 | libname_spec='lib$name' | ||
592 | case "$host_os" in | ||
593 | aix3*) | ||
594 | + library_names_spec='$libname.a' | ||
595 | ;; | ||
596 | aix4* | aix5*) | ||
597 | + library_names_spec='$libname$shrext' | ||
598 | ;; | ||
599 | amigaos*) | ||
600 | + library_names_spec='$libname.a' | ||
601 | ;; | ||
602 | beos*) | ||
603 | + library_names_spec='$libname$shrext' | ||
604 | ;; | ||
605 | bsdi[45]*) | ||
606 | + library_names_spec='$libname$shrext' | ||
607 | ;; | ||
608 | cygwin* | mingw* | pw32*) | ||
609 | shrext=.dll | ||
610 | + library_names_spec='$libname.dll.a $libname.lib' | ||
611 | ;; | ||
612 | darwin* | rhapsody*) | ||
613 | shrext=.dylib | ||
614 | + library_names_spec='$libname$shrext' | ||
615 | ;; | ||
616 | dgux*) | ||
617 | + library_names_spec='$libname$shrext' | ||
618 | ;; | ||
619 | freebsd1*) | ||
620 | ;; | ||
621 | - kfreebsd*-gnu) | ||
622 | - ;; | ||
623 | freebsd* | dragonfly*) | ||
624 | + case "$host_os" in | ||
625 | + freebsd[123]*) | ||
626 | + library_names_spec='$libname$shrext$versuffix' ;; | ||
627 | + *) | ||
628 | + library_names_spec='$libname$shrext' ;; | ||
629 | + esac | ||
630 | ;; | ||
631 | gnu*) | ||
632 | + library_names_spec='$libname$shrext' | ||
633 | ;; | ||
634 | hpux9* | hpux10* | hpux11*) | ||
635 | case $host_cpu in | ||
636 | @@ -528,10 +576,13 @@ | ||
637 | shrext=.sl | ||
638 | ;; | ||
639 | esac | ||
640 | + library_names_spec='$libname$shrext' | ||
641 | ;; | ||
642 | - interix3*) | ||
643 | + interix[3-9]*) | ||
644 | + library_names_spec='$libname$shrext' | ||
645 | ;; | ||
646 | irix5* | irix6* | nonstopux*) | ||
647 | + library_names_spec='$libname$shrext' | ||
648 | case "$host_os" in | ||
649 | irix5* | nonstopux*) | ||
650 | libsuff= shlibsuff= | ||
651 | @@ -548,33 +599,46 @@ | ||
652 | ;; | ||
653 | linux*oldld* | linux*aout* | linux*coff*) | ||
654 | ;; | ||
655 | - linux*) | ||
656 | + linux* | k*bsd*-gnu) | ||
657 | + library_names_spec='$libname$shrext' | ||
658 | ;; | ||
659 | knetbsd*-gnu) | ||
660 | + library_names_spec='$libname$shrext' | ||
661 | ;; | ||
662 | netbsd*) | ||
663 | + library_names_spec='$libname$shrext' | ||
664 | ;; | ||
665 | newsos6) | ||
666 | + library_names_spec='$libname$shrext' | ||
667 | ;; | ||
668 | nto-qnx*) | ||
669 | + library_names_spec='$libname$shrext' | ||
670 | ;; | ||
671 | openbsd*) | ||
672 | + library_names_spec='$libname$shrext$versuffix' | ||
673 | ;; | ||
674 | os2*) | ||
675 | libname_spec='$name' | ||
676 | shrext=.dll | ||
677 | + library_names_spec='$libname.a' | ||
678 | ;; | ||
679 | osf3* | osf4* | osf5*) | ||
680 | + library_names_spec='$libname$shrext' | ||
681 | ;; | ||
682 | solaris*) | ||
683 | + library_names_spec='$libname$shrext' | ||
684 | ;; | ||
685 | sunos4*) | ||
686 | + library_names_spec='$libname$shrext$versuffix' | ||
687 | ;; | ||
688 | sysv4 | sysv4.3*) | ||
689 | + library_names_spec='$libname$shrext' | ||
690 | ;; | ||
691 | sysv4*MP*) | ||
692 | + library_names_spec='$libname$shrext' | ||
693 | ;; | ||
694 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | ||
695 | + library_names_spec='$libname$shrext' | ||
696 | ;; | ||
697 | uts4*) | ||
698 | ;; | ||
699 | @@ -583,6 +647,8 @@ | ||
700 | sed_quote_subst='s/\(["`$\\]\)/\\\1/g' | ||
701 | escaped_wl=`echo "X$wl" | sed -e 's/^X//' -e "$sed_quote_subst"` | ||
702 | shlibext=`echo "$shrext" | sed -e 's,^\.,,'` | ||
703 | +escaped_libname_spec=`echo "X$libname_spec" | sed -e 's/^X//' -e "$sed_quote_subst"` | ||
704 | +escaped_library_names_spec=`echo "X$library_names_spec" | sed -e 's/^X//' -e "$sed_quote_subst"` | ||
705 | escaped_hardcode_libdir_flag_spec=`echo "X$hardcode_libdir_flag_spec" | sed -e 's/^X//' -e "$sed_quote_subst"` | ||
706 | |||
707 | LC_ALL=C sed -e 's/^\([a-zA-Z0-9_]*\)=/acl_cv_\1=/' <<EOF | ||
708 | @@ -596,6 +662,12 @@ | ||
709 | # Shared library suffix (normally "so"). | ||
710 | shlibext="$shlibext" | ||
711 | |||
712 | +# Format of library name prefix. | ||
713 | +libname_spec="$escaped_libname_spec" | ||
714 | + | ||
715 | +# Library names that the linker finds when passed -lNAME. | ||
716 | +library_names_spec="$escaped_library_names_spec" | ||
717 | + | ||
718 | # Flag to hardcode \$libdir into a binary during linking. | ||
719 | # This must work even if \$libdir does not exist. | ||
720 | hardcode_libdir_flag_spec="$escaped_hardcode_libdir_flag_spec" | ||
diff --git a/recipes-core/gettext/gettext_0.16.1.bb b/recipes-core/gettext/gettext_0.16.1.bb new file mode 100644 index 0000000..e79f4da --- /dev/null +++ b/recipes-core/gettext/gettext_0.16.1.bb | |||
@@ -0,0 +1,124 @@ | |||
1 | SUMMARY = "Utilities and libraries for producing multi-lingual messages" | ||
2 | DESCRIPTION = "GNU gettext is a set of tools that provides a framework to help other programs produce multi-lingual messages. These tools include a set of conventions about how programs should be written to support message catalogs, a directory and file naming organization for the message catalogs themselves, a runtime library supporting the retrieval of translated messages, and a few stand-alone programs to massage in various ways the sets of translatable and already translated strings." | ||
3 | HOMEPAGE = "http://www.gnu.org/software/gettext/gettext.html" | ||
4 | SECTION = "libs" | ||
5 | LICENSE = "GPLv2" | ||
6 | LIC_FILES_CHKSUM = "file://COPYING;md5=9ea3144f04c41cd2eada5d3f472e6ea5" | ||
7 | |||
8 | PR = "r6" | ||
9 | DEPENDS = "virtual/libiconv" | ||
10 | DEPENDS_class-native = "" | ||
11 | PROVIDES = "virtual/libintl virtual/gettext" | ||
12 | PROVIDES_class-native = "virtual/gettext-native" | ||
13 | |||
14 | SRC_URI = "${GNU_MIRROR}/gettext/gettext-${PV}.tar.gz \ | ||
15 | file://gettext-vpath.patch \ | ||
16 | file://linklib_from_0.17.patch \ | ||
17 | file://gettext-autoconf-lib-link-no-L.patch \ | ||
18 | file://disable_java.patch \ | ||
19 | file://fix_aclocal_version.patch \ | ||
20 | file://fix_gnu_source_circular.patch \ | ||
21 | file://hardcode_macro_version.patch \ | ||
22 | " | ||
23 | |||
24 | SRC_URI[md5sum] = "3d9ad24301c6d6b17ec30704a13fe127" | ||
25 | SRC_URI[sha256sum] = "0bf850d1a079fb5a61f0a47b1a9efd35eb44032255375e1cedb0253bc27b376d" | ||
26 | |||
27 | PARALLEL_MAKE = "" | ||
28 | |||
29 | LDFLAGS_prepend_libc-uclibc = " -lrt -lpthread " | ||
30 | |||
31 | inherit autotools texinfo | ||
32 | |||
33 | EXTRA_OECONF += "--without-lispdir \ | ||
34 | --disable-csharp \ | ||
35 | --disable-libasprintf \ | ||
36 | --disable-java \ | ||
37 | --disable-native-java \ | ||
38 | --disable-openmp \ | ||
39 | --without-emacs \ | ||
40 | " | ||
41 | EXTRA_OECONF_append_libc-musl = "\ | ||
42 | gt_cv_func_gnugettext1_libc=yes \ | ||
43 | gt_cv_func_gnugettext2_libc=yes \ | ||
44 | " | ||
45 | |||
46 | acpaths = '-I ${S}/autoconf-lib-link/m4/ \ | ||
47 | -I ${S}/gettext-runtime/m4 \ | ||
48 | -I ${S}/gettext-tools/m4' | ||
49 | |||
50 | do_configure_prepend() { | ||
51 | rm -f ${S}/config/m4/libtool.m4 | ||
52 | } | ||
53 | |||
54 | do_install_append_libc-musl () { | ||
55 | rm -f ${D}${libdir}/charset.alias | ||
56 | } | ||
57 | |||
58 | # these lack the .x behind the .so, but shouldn't be in the -dev package | ||
59 | # Otherwise you get the following results: | ||
60 | # 7.4M glibc/images/ep93xx/Angstrom-console-image-glibc-ipk-2008.1-test-20080104-ep93xx.rootfs.tar.gz | ||
61 | # 25M uclibc/images/ep93xx/Angstrom-console-image-uclibc-ipk-2008.1-test-20080104-ep93xx.rootfs.tar.gz | ||
62 | # because gettext depends on gettext-dev, which pulls in more -dev packages: | ||
63 | # 15228 KiB /ep93xx/libstdc++-dev_4.2.2-r2_ep93xx.ipk | ||
64 | # 1300 KiB /ep93xx/uclibc-dev_0.9.29-r8_ep93xx.ipk | ||
65 | # 140 KiB /armv4t/gettext-dev_0.14.1-r6_armv4t.ipk | ||
66 | # 4 KiB /ep93xx/libgcc-s-dev_4.2.2-r2_ep93xx.ipk | ||
67 | |||
68 | PACKAGES =+ "libgettextlib libgettextsrc" | ||
69 | FILES_libgettextlib = "${libdir}/libgettextlib-*.so*" | ||
70 | FILES_libgettextsrc = "${libdir}/libgettextsrc-*.so*" | ||
71 | |||
72 | PACKAGES =+ "gettext-runtime gettext-runtime-dev gettext-runtime-staticdev gettext-runtime-doc" | ||
73 | |||
74 | FILES_${PN} += "${libdir}/${BPN}/*" | ||
75 | |||
76 | FILES_gettext-runtime = "${bindir}/gettext \ | ||
77 | ${bindir}/ngettext \ | ||
78 | ${bindir}/envsubst \ | ||
79 | ${bindir}/gettext.sh \ | ||
80 | ${libdir}/libasprintf${SODEV} \ | ||
81 | ${libdir}/GNU.Gettext.dll \ | ||
82 | " | ||
83 | FILES_gettext-runtime_append_libc-uclibc = " ${libdir}/libintl.so.* \ | ||
84 | ${libdir}/charset.alias \ | ||
85 | " | ||
86 | FILES_gettext-runtime-staticdev += "${libdir}/libasprintf.a" | ||
87 | FILES_gettext-runtime-dev += "${includedir}/autosprintf.h \ | ||
88 | ${libdir}/libasprintf${SOLIBDEV}" | ||
89 | FILES_gettext-runtime-dev_append_libc-uclibc = " ${libdir}/libintl.so \ | ||
90 | ${includedir}/libintl.h \ | ||
91 | " | ||
92 | FILES_gettext-runtime-doc = "${mandir}/man1/gettext.* \ | ||
93 | ${mandir}/man1/ngettext.* \ | ||
94 | ${mandir}/man1/envsubst.* \ | ||
95 | ${mandir}/man1/.* \ | ||
96 | ${mandir}/man3/* \ | ||
97 | ${docdir}/gettext/gettext.* \ | ||
98 | ${docdir}/gettext/ngettext.* \ | ||
99 | ${docdir}/gettext/envsubst.* \ | ||
100 | ${docdir}/gettext/*.3.html \ | ||
101 | ${datadir}/gettext/ABOUT-NLS \ | ||
102 | ${docdir}/gettext/csharpdoc/* \ | ||
103 | ${docdir}/libasprintf/autosprintf.html \ | ||
104 | ${infodir}/autosprintf.info \ | ||
105 | " | ||
106 | |||
107 | do_install_append() { | ||
108 | rm -f ${D}${libdir}/preloadable_libintl.so | ||
109 | } | ||
110 | |||
111 | do_install_append_class-native () { | ||
112 | rm ${D}${datadir}/aclocal/* | ||
113 | rm ${D}${datadir}/gettext/config.rpath | ||
114 | rm ${D}${datadir}/gettext/po/Makefile.in.in | ||
115 | rm ${D}${datadir}/gettext/po/remove-potcdate.sin | ||
116 | } | ||
117 | |||
118 | # Anyone inheriting gettext will have both gettext-native and gettext | ||
119 | # available, and we don't want to use older macros from the target gettext in | ||
120 | # a non-gplv3 build, so kill them and let dependent recipes rely on | ||
121 | # gettext-native. | ||
122 | SYSROOT_DIRS_BLACKLIST += "${datadir}/aclocal" | ||
123 | |||
124 | BBCLASSEXTEND = "native nativesdk" | ||