]> pilppa.org Git - familiar-h63xx-build.git/blob - org.handhelds.familiar/packages/tar/files/m4.patch
OE tree imported from monotone branch org.openembedded.oz354fam083 at revision 8b12e3...
[familiar-h63xx-build.git] / org.handhelds.familiar / packages / tar / files / m4.patch
1
2 #
3 # Patch managed by http://www.mn-logistik.de/unsupported/pxa250/patcher
4 #
5
6 --- /dev/null   2003-09-23 18:19:32.000000000 -0400
7 +++ tar-1.13.93/m4/codeset.m4   2004-03-06 06:52:55.000000000 -0500
8 @@ -0,0 +1,23 @@
9 +# codeset.m4 serial AM1 (gettext-0.10.40)
10 +dnl Copyright (C) 2000-2002 Free Software Foundation, Inc.
11 +dnl This file is free software, distributed under the terms of the GNU
12 +dnl General Public License.  As a special exception to the GNU General
13 +dnl Public License, this file may be distributed as part of a program
14 +dnl that contains a configuration script generated by Autoconf, under
15 +dnl the same distribution terms as the rest of that program.
16 +
17 +dnl From Bruno Haible.
18 +
19 +AC_DEFUN([AM_LANGINFO_CODESET],
20 +[
21 +  AC_CACHE_CHECK([for nl_langinfo and CODESET], am_cv_langinfo_codeset,
22 +    [AC_TRY_LINK([#include <langinfo.h>],
23 +      [char* cs = nl_langinfo(CODESET);],
24 +      am_cv_langinfo_codeset=yes,
25 +      am_cv_langinfo_codeset=no)
26 +    ])
27 +  if test $am_cv_langinfo_codeset = yes; then
28 +    AC_DEFINE(HAVE_LANGINFO_CODESET, 1,
29 +      [Define if you have <langinfo.h> and nl_langinfo(CODESET).])
30 +  fi
31 +])
32 --- /dev/null   2003-09-23 18:19:32.000000000 -0400
33 +++ tar-1.13.93/m4/glibc21.m4   2004-03-06 06:52:55.000000000 -0500
34 @@ -0,0 +1,32 @@
35 +# glibc21.m4 serial 2 (fileutils-4.1.3, gettext-0.10.40)
36 +dnl Copyright (C) 2000-2002 Free Software Foundation, Inc.
37 +dnl This file is free software, distributed under the terms of the GNU
38 +dnl General Public License.  As a special exception to the GNU General
39 +dnl Public License, this file may be distributed as part of a program
40 +dnl that contains a configuration script generated by Autoconf, under
41 +dnl the same distribution terms as the rest of that program.
42 +
43 +# Test for the GNU C Library, version 2.1 or newer.
44 +# From Bruno Haible.
45 +
46 +AC_DEFUN([jm_GLIBC21],
47 +  [
48 +    AC_CACHE_CHECK(whether we are using the GNU C Library 2.1 or newer,
49 +      ac_cv_gnu_library_2_1,
50 +      [AC_EGREP_CPP([Lucky GNU user],
51 +       [
52 +#include <features.h>
53 +#ifdef __GNU_LIBRARY__
54 + #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
55 +  Lucky GNU user
56 + #endif
57 +#endif
58 +       ],
59 +       ac_cv_gnu_library_2_1=yes,
60 +       ac_cv_gnu_library_2_1=no)
61 +      ]
62 +    )
63 +    AC_SUBST(GLIBC21)
64 +    GLIBC21="$ac_cv_gnu_library_2_1"
65 +  ]
66 +)
67 --- /dev/null   2003-09-23 18:19:32.000000000 -0400
68 +++ tar-1.13.93/m4/intdiv0.m4   2004-03-06 06:52:55.000000000 -0500
69 @@ -0,0 +1,72 @@
70 +# intdiv0.m4 serial 1 (gettext-0.11.3)
71 +dnl Copyright (C) 2002 Free Software Foundation, Inc.
72 +dnl This file is free software, distributed under the terms of the GNU
73 +dnl General Public License.  As a special exception to the GNU General
74 +dnl Public License, this file may be distributed as part of a program
75 +dnl that contains a configuration script generated by Autoconf, under
76 +dnl the same distribution terms as the rest of that program.
77 +
78 +dnl From Bruno Haible.
79 +
80 +AC_DEFUN([gt_INTDIV0],
81 +[
82 +  AC_REQUIRE([AC_PROG_CC])dnl
83 +  AC_REQUIRE([AC_CANONICAL_HOST])dnl
84 +
85 +  AC_CACHE_CHECK([whether integer division by zero raises SIGFPE],
86 +    gt_cv_int_divbyzero_sigfpe,
87 +    [
88 +      AC_TRY_RUN([
89 +#include <stdlib.h>
90 +#include <signal.h>
91 +
92 +static void
93 +#ifdef __cplusplus
94 +sigfpe_handler (int sig)
95 +#else
96 +sigfpe_handler (sig) int sig;
97 +#endif
98 +{
99 +  /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
100 +  exit (sig != SIGFPE);
101 +}
102 +
103 +int x = 1;
104 +int y = 0;
105 +int z;
106 +int nan;
107 +
108 +int main ()
109 +{
110 +  signal (SIGFPE, sigfpe_handler);
111 +/* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP.  */
112 +#if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
113 +  signal (SIGTRAP, sigfpe_handler);
114 +#endif
115 +/* Linux/SPARC yields signal SIGILL.  */
116 +#if defined (__sparc__) && defined (__linux__)
117 +  signal (SIGILL, sigfpe_handler);
118 +#endif
119 +
120 +  z = x / y;
121 +  nan = y / y;
122 +  exit (1);
123 +}
124 +], gt_cv_int_divbyzero_sigfpe=yes, gt_cv_int_divbyzero_sigfpe=no,
125 +        [
126 +          # Guess based on the CPU.
127 +          case "$host_cpu" in
128 +            alpha* | i[34567]86 | m68k | s390*)
129 +              gt_cv_int_divbyzero_sigfpe="guessing yes";;
130 +            *)
131 +              gt_cv_int_divbyzero_sigfpe="guessing no";;
132 +          esac
133 +        ])
134 +    ])
135 +  case "$gt_cv_int_divbyzero_sigfpe" in
136 +    *yes) value=1;;
137 +    *) value=0;;
138 +  esac
139 +  AC_DEFINE_UNQUOTED(INTDIV0_RAISES_SIGFPE, $value,
140 +    [Define if integer division by zero raises signal SIGFPE.])
141 +])
142 --- tar-1.13.93/m4/inttypes_h.m4~m4     2003-12-29 05:28:43.000000000 -0500
143 +++ tar-1.13.93/m4/inttypes_h.m4        2004-03-06 06:52:55.000000000 -0500
144 @@ -1,5 +1,5 @@
145 -# inttypes_h.m4 serial 5 (gettext-0.12)
146 -dnl Copyright (C) 1997-2003 Free Software Foundation, Inc.
147 +# inttypes_h.m4 serial 4 (gettext-0.11.4)
148 +dnl Copyright (C) 1997-2002 Free Software Foundation, Inc.
149  dnl This file is free software, distributed under the terms of the GNU
150  dnl General Public License.  As a special exception to the GNU General
151  dnl Public License, this file may be distributed as part of a program
152 @@ -22,7 +22,7 @@
153      jm_ac_cv_header_inttypes_h=no)])
154    if test $jm_ac_cv_header_inttypes_h = yes; then
155      AC_DEFINE_UNQUOTED(HAVE_INTTYPES_H_WITH_UINTMAX, 1,
156 -      [Define if <inttypes.h> exists, doesn't clash with <sys/types.h>,
157 -       and declares uintmax_t. ])
158 +[Define if <inttypes.h> exists, doesn't clash with <sys/types.h>,
159 +   and declares uintmax_t. ])
160    fi
161  ])
162 --- /dev/null   2003-09-23 18:19:32.000000000 -0400
163 +++ tar-1.13.93/m4/inttypes.m4  2004-03-06 06:52:55.000000000 -0500
164 @@ -0,0 +1,27 @@
165 +# inttypes.m4 serial 1 (gettext-0.11.4)
166 +dnl Copyright (C) 1997-2002 Free Software Foundation, Inc.
167 +dnl This file is free software, distributed under the terms of the GNU
168 +dnl General Public License.  As a special exception to the GNU General
169 +dnl Public License, this file may be distributed as part of a program
170 +dnl that contains a configuration script generated by Autoconf, under
171 +dnl the same distribution terms as the rest of that program.
172 +
173 +dnl From Paul Eggert.
174 +
175 +# Define HAVE_INTTYPES_H if <inttypes.h> exists and doesn't clash with
176 +# <sys/types.h>.
177 +
178 +AC_DEFUN([gt_HEADER_INTTYPES_H],
179 +[
180 +  AC_CACHE_CHECK([for inttypes.h], gt_cv_header_inttypes_h,
181 +  [
182 +    AC_TRY_COMPILE(
183 +      [#include <sys/types.h>
184 +#include <inttypes.h>],
185 +      [], gt_cv_header_inttypes_h=yes, gt_cv_header_inttypes_h=no)
186 +  ])
187 +  if test $gt_cv_header_inttypes_h = yes; then
188 +    AC_DEFINE_UNQUOTED(HAVE_INTTYPES_H, 1,
189 +      [Define if <inttypes.h> exists and doesn't clash with <sys/types.h>.])
190 +  fi
191 +])
192 --- /dev/null   2003-09-23 18:19:32.000000000 -0400
193 +++ tar-1.13.93/m4/inttypes-pri.m4      2004-03-06 06:52:55.000000000 -0500
194 @@ -0,0 +1,32 @@
195 +# inttypes-pri.m4 serial 1 (gettext-0.11.4)
196 +dnl Copyright (C) 1997-2002 Free Software Foundation, Inc.
197 +dnl This file is free software, distributed under the terms of the GNU
198 +dnl General Public License.  As a special exception to the GNU General
199 +dnl Public License, this file may be distributed as part of a program
200 +dnl that contains a configuration script generated by Autoconf, under
201 +dnl the same distribution terms as the rest of that program.
202 +
203 +dnl From Bruno Haible.
204 +
205 +# Define PRI_MACROS_BROKEN if <inttypes.h> exists and defines the PRI*
206 +# macros to non-string values.  This is the case on AIX 4.3.3.
207 +
208 +AC_DEFUN([gt_INTTYPES_PRI],
209 +[
210 +  AC_REQUIRE([gt_HEADER_INTTYPES_H])
211 +  if test $gt_cv_header_inttypes_h = yes; then
212 +    AC_CACHE_CHECK([whether the inttypes.h PRIxNN macros are broken],
213 +      gt_cv_inttypes_pri_broken,
214 +      [
215 +        AC_TRY_COMPILE([#include <inttypes.h>
216 +#ifdef PRId32
217 +char *p = PRId32;
218 +#endif
219 +], [], gt_cv_inttypes_pri_broken=no, gt_cv_inttypes_pri_broken=yes)
220 +      ])
221 +  fi
222 +  if test "$gt_cv_inttypes_pri_broken" = yes; then
223 +    AC_DEFINE_UNQUOTED(PRI_MACROS_BROKEN, 1,
224 +      [Define if <inttypes.h> exists and defines unusable PRI* macros.])
225 +  fi
226 +])
227 --- /dev/null   2003-09-23 18:19:32.000000000 -0400
228 +++ tar-1.13.93/m4/lcmessage.m4 2004-03-06 06:52:55.000000000 -0500
229 @@ -0,0 +1,32 @@
230 +# lcmessage.m4 serial 3 (gettext-0.11.3)
231 +dnl Copyright (C) 1995-2002 Free Software Foundation, Inc.
232 +dnl This file is free software, distributed under the terms of the GNU
233 +dnl General Public License.  As a special exception to the GNU General
234 +dnl Public License, this file may be distributed as part of a program
235 +dnl that contains a configuration script generated by Autoconf, under
236 +dnl the same distribution terms as the rest of that program.
237 +dnl
238 +dnl This file can can be used in projects which are not available under
239 +dnl the GNU General Public License or the GNU Library General Public
240 +dnl License but which still want to provide support for the GNU gettext
241 +dnl functionality.
242 +dnl Please note that the actual code of the GNU gettext library is covered
243 +dnl by the GNU Library General Public License, and the rest of the GNU
244 +dnl gettext package package is covered by the GNU General Public License.
245 +dnl They are *not* in the public domain.
246 +
247 +dnl Authors:
248 +dnl   Ulrich Drepper <drepper@cygnus.com>, 1995.
249 +
250 +# Check whether LC_MESSAGES is available in <locale.h>.
251 +
252 +AC_DEFUN([AM_LC_MESSAGES],
253 +[
254 +  AC_CACHE_CHECK([for LC_MESSAGES], am_cv_val_LC_MESSAGES,
255 +    [AC_TRY_LINK([#include <locale.h>], [return LC_MESSAGES],
256 +       am_cv_val_LC_MESSAGES=yes, am_cv_val_LC_MESSAGES=no)])
257 +  if test $am_cv_val_LC_MESSAGES = yes; then
258 +    AC_DEFINE(HAVE_LC_MESSAGES, 1,
259 +      [Define if your <locale.h> file defines LC_MESSAGES.])
260 +  fi
261 +])