]> pilppa.org Git - familiar-h63xx-build.git/blob - org.handhelds.familiar/packages/atk/atk-1.2.0/m4.patch
OE tree imported from monotone branch org.openembedded.oz354fam083 at revision 8b12e3...
[familiar-h63xx-build.git] / org.handhelds.familiar / packages / atk / atk-1.2.0 / m4.patch
1
2 #
3 # Patch managed by http://www.mn-logistik.de/unsupported/pxa250/patcher
4 #
5
6 --- /dev/null
7 +++ atk-1.2.0/m4/codeset.m4
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
33 +++ atk-1.2.0/m4/gettext.m4
34 @@ -0,0 +1,587 @@
35 +# gettext.m4 serial 17 (gettext-0.11.5)
36 +dnl Copyright (C) 1995-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 +dnl
43 +dnl This file can can be used in projects which are not available under
44 +dnl the GNU General Public License or the GNU Library General Public
45 +dnl License but which still want to provide support for the GNU gettext
46 +dnl functionality.
47 +dnl Please note that the actual code of the GNU gettext library is covered
48 +dnl by the GNU Library General Public License, and the rest of the GNU
49 +dnl gettext package package is covered by the GNU General Public License.
50 +dnl They are *not* in the public domain.
51 +
52 +dnl Authors:
53 +dnl   Ulrich Drepper <drepper@cygnus.com>, 1995-2000.
54 +dnl   Bruno Haible <haible@clisp.cons.org>, 2000-2002.
55 +
56 +dnl Macro to add for using GNU gettext.
57 +
58 +dnl Usage: AM_GNU_GETTEXT([INTLSYMBOL], [NEEDSYMBOL], [INTLDIR]).
59 +dnl INTLSYMBOL can be one of 'external', 'no-libtool', 'use-libtool'. The
60 +dnl    default (if it is not specified or empty) is 'no-libtool'.
61 +dnl    INTLSYMBOL should be 'external' for packages with no intl directory,
62 +dnl    and 'no-libtool' or 'use-libtool' for packages with an intl directory.
63 +dnl    If INTLSYMBOL is 'use-libtool', then a libtool library
64 +dnl    $(top_builddir)/intl/libintl.la will be created (shared and/or static,
65 +dnl    depending on --{enable,disable}-{shared,static} and on the presence of
66 +dnl    AM-DISABLE-SHARED). If INTLSYMBOL is 'no-libtool', a static library
67 +dnl    $(top_builddir)/intl/libintl.a will be created.
68 +dnl If NEEDSYMBOL is specified and is 'need-ngettext', then GNU gettext
69 +dnl    implementations (in libc or libintl) without the ngettext() function
70 +dnl    will be ignored.  If NEEDSYMBOL is specified and is
71 +dnl    'need-formatstring-macros', then GNU gettext implementations that don't
72 +dnl    support the ISO C 99 <inttypes.h> formatstring macros will be ignored.
73 +dnl INTLDIR is used to find the intl libraries.  If empty,
74 +dnl    the value `$(top_builddir)/intl/' is used.
75 +dnl
76 +dnl The result of the configuration is one of three cases:
77 +dnl 1) GNU gettext, as included in the intl subdirectory, will be compiled
78 +dnl    and used.
79 +dnl    Catalog format: GNU --> install in $(datadir)
80 +dnl    Catalog extension: .mo after installation, .gmo in source tree
81 +dnl 2) GNU gettext has been found in the system's C library.
82 +dnl    Catalog format: GNU --> install in $(datadir)
83 +dnl    Catalog extension: .mo after installation, .gmo in source tree
84 +dnl 3) No internationalization, always use English msgid.
85 +dnl    Catalog format: none
86 +dnl    Catalog extension: none
87 +dnl If INTLSYMBOL is 'external', only cases 2 and 3 can occur.
88 +dnl The use of .gmo is historical (it was needed to avoid overwriting the
89 +dnl GNU format catalogs when building on a platform with an X/Open gettext),
90 +dnl but we keep it in order not to force irrelevant filename changes on the
91 +dnl maintainers.
92 +dnl
93 +AC_DEFUN([AM_GNU_GETTEXT],
94 +[
95 +  dnl Argument checking.
96 +  ifelse([$1], [], , [ifelse([$1], [external], , [ifelse([$1], [no-libtool], , [ifelse([$1], [use-libtool], ,
97 +    [errprint([ERROR: invalid first argument to AM_GNU_GETTEXT
98 +])])])])])
99 +  ifelse([$2], [], , [ifelse([$2], [need-ngettext], , [ifelse([$2], [need-formatstring-macros], ,
100 +    [errprint([ERROR: invalid second argument to AM_GNU_GETTEXT
101 +])])])])
102 +  define(gt_included_intl, ifelse([$1], [external], [no], [yes]))
103 +  define(gt_libtool_suffix_prefix, ifelse([$1], [use-libtool], [l], []))
104 +
105 +  AC_REQUIRE([AM_PO_SUBDIRS])dnl
106 +  ifelse(gt_included_intl, yes, [
107 +    AC_REQUIRE([AM_INTL_SUBDIR])dnl
108 +  ])
109 +
110 +  dnl Prerequisites of AC_LIB_LINKFLAGS_BODY.
111 +  AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
112 +  AC_REQUIRE([AC_LIB_RPATH])
113 +
114 +  dnl Sometimes libintl requires libiconv, so first search for libiconv.
115 +  dnl Ideally we would do this search only after the
116 +  dnl      if test "$USE_NLS" = "yes"; then
117 +  dnl        if test "$gt_cv_func_gnugettext_libc" != "yes"; then
118 +  dnl tests. But if configure.in invokes AM_ICONV after AM_GNU_GETTEXT
119 +  dnl the configure script would need to contain the same shell code
120 +  dnl again, outside any 'if'. There are two solutions:
121 +  dnl - Invoke AM_ICONV_LINKFLAGS_BODY here, outside any 'if'.
122 +  dnl - Control the expansions in more detail using AC_PROVIDE_IFELSE.
123 +  dnl Since AC_PROVIDE_IFELSE is only in autoconf >= 2.52 and not
124 +  dnl documented, we avoid it.
125 +  ifelse(gt_included_intl, yes, , [
126 +    AC_REQUIRE([AM_ICONV_LINKFLAGS_BODY])
127 +  ])
128 +
129 +  AC_MSG_CHECKING([whether NLS is requested])
130 +  dnl Default is enabled NLS
131 +  AC_ARG_ENABLE(nls,
132 +    [  --disable-nls           do not use Native Language Support],
133 +    USE_NLS=$enableval, USE_NLS=yes)
134 +  AC_MSG_RESULT($USE_NLS)
135 +  AC_SUBST(USE_NLS)
136 +
137 +  ifelse(gt_included_intl, yes, [
138 +    BUILD_INCLUDED_LIBINTL=no
139 +    USE_INCLUDED_LIBINTL=no
140 +  ])
141 +  LIBINTL=
142 +  LTLIBINTL=
143 +  POSUB=
144 +
145 +  dnl If we use NLS figure out what method
146 +  if test "$USE_NLS" = "yes"; then
147 +    gt_use_preinstalled_gnugettext=no
148 +    ifelse(gt_included_intl, yes, [
149 +      AC_MSG_CHECKING([whether included gettext is requested])
150 +      AC_ARG_WITH(included-gettext,
151 +        [  --with-included-gettext use the GNU gettext library included here],
152 +        nls_cv_force_use_gnu_gettext=$withval,
153 +        nls_cv_force_use_gnu_gettext=no)
154 +      AC_MSG_RESULT($nls_cv_force_use_gnu_gettext)
155 +
156 +      nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
157 +      if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
158 +    ])
159 +        dnl User does not insist on using GNU NLS library.  Figure out what
160 +        dnl to use.  If GNU gettext is available we use this.  Else we have
161 +        dnl to fall back to GNU NLS library.
162 +
163 +        dnl Add a version number to the cache macros.
164 +        define([gt_api_version], ifelse([$2], [need-formatstring-macros], 3, ifelse([$2], [need-ngettext], 2, 1)))
165 +        define([gt_cv_func_gnugettext_libc], [gt_cv_func_gnugettext]gt_api_version[_libc])
166 +        define([gt_cv_func_gnugettext_libintl], [gt_cv_func_gnugettext]gt_api_version[_libintl])
167 +
168 +        AC_CACHE_CHECK([for GNU gettext in libc], gt_cv_func_gnugettext_libc,
169 +         [AC_TRY_LINK([#include <libintl.h>
170 +]ifelse([$2], [need-formatstring-macros],
171 +[#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
172 +#define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
173 +#endif
174 +changequote(,)dnl
175 +typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
176 +changequote([,])dnl
177 +], [])[extern int _nl_msg_cat_cntr;
178 +extern int *_nl_domain_bindings;],
179 +            [bindtextdomain ("", "");
180 +return (int) gettext ("")]ifelse([$2], [need-ngettext], [ + (int) ngettext ("", "", 0)], [])[ + _nl_msg_cat_cntr + *_nl_domain_bindings],
181 +            gt_cv_func_gnugettext_libc=yes,
182 +            gt_cv_func_gnugettext_libc=no)])
183 +
184 +        if test "$gt_cv_func_gnugettext_libc" != "yes"; then
185 +          dnl Sometimes libintl requires libiconv, so first search for libiconv.
186 +          ifelse(gt_included_intl, yes, , [
187 +            AM_ICONV_LINK
188 +          ])
189 +          dnl Search for libintl and define LIBINTL, LTLIBINTL and INCINTL
190 +          dnl accordingly. Don't use AC_LIB_LINKFLAGS_BODY([intl],[iconv])
191 +          dnl because that would add "-liconv" to LIBINTL and LTLIBINTL
192 +          dnl even if libiconv doesn't exist.
193 +          AC_LIB_LINKFLAGS_BODY([intl])
194 +          AC_CACHE_CHECK([for GNU gettext in libintl],
195 +            gt_cv_func_gnugettext_libintl,
196 +           [gt_save_CPPFLAGS="$CPPFLAGS"
197 +            CPPFLAGS="$CPPFLAGS $INCINTL"
198 +            gt_save_LIBS="$LIBS"
199 +            LIBS="$LIBS $LIBINTL"
200 +            dnl Now see whether libintl exists and does not depend on libiconv.
201 +            AC_TRY_LINK([#include <libintl.h>
202 +]ifelse([$2], [need-formatstring-macros],
203 +[#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
204 +#define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
205 +#endif
206 +changequote(,)dnl
207 +typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
208 +changequote([,])dnl
209 +], [])[extern int _nl_msg_cat_cntr;
210 +extern
211 +#ifdef __cplusplus
212 +"C"
213 +#endif
214 +const char *_nl_expand_alias ();],
215 +              [bindtextdomain ("", "");
216 +return (int) gettext ("")]ifelse([$2], [need-ngettext], [ + (int) ngettext ("", "", 0)], [])[ + _nl_msg_cat_cntr + *_nl_expand_alias (0)],
217 +              gt_cv_func_gnugettext_libintl=yes,
218 +              gt_cv_func_gnugettext_libintl=no)
219 +            dnl Now see whether libintl exists and depends on libiconv.
220 +            if test "$gt_cv_func_gnugettext_libintl" != yes && test -n "$LIBICONV"; then
221 +              LIBS="$LIBS $LIBICONV"
222 +              AC_TRY_LINK([#include <libintl.h>
223 +]ifelse([$2], [need-formatstring-macros],
224 +[#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
225 +#define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
226 +#endif
227 +changequote(,)dnl
228 +typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
229 +changequote([,])dnl
230 +], [])[extern int _nl_msg_cat_cntr;
231 +extern
232 +#ifdef __cplusplus
233 +"C"
234 +#endif
235 +const char *_nl_expand_alias ();],
236 +                [bindtextdomain ("", "");
237 +return (int) gettext ("")]ifelse([$2], [need-ngettext], [ + (int) ngettext ("", "", 0)], [])[ + _nl_msg_cat_cntr + *_nl_expand_alias (0)],
238 +               [LIBINTL="$LIBINTL $LIBICONV"
239 +                LTLIBINTL="$LTLIBINTL $LTLIBICONV"
240 +                gt_cv_func_gnugettext_libintl=yes
241 +               ])
242 +            fi
243 +            CPPFLAGS="$gt_save_CPPFLAGS"
244 +            LIBS="$gt_save_LIBS"])
245 +        fi
246 +
247 +        dnl If an already present or preinstalled GNU gettext() is found,
248 +        dnl use it.  But if this macro is used in GNU gettext, and GNU
249 +        dnl gettext is already preinstalled in libintl, we update this
250 +        dnl libintl.  (Cf. the install rule in intl/Makefile.in.)
251 +        if test "$gt_cv_func_gnugettext_libc" = "yes" \
252 +           || { test "$gt_cv_func_gnugettext_libintl" = "yes" \
253 +                && test "$PACKAGE" != gettext; }; then
254 +          gt_use_preinstalled_gnugettext=yes
255 +        else
256 +          dnl Reset the values set by searching for libintl.
257 +          LIBINTL=
258 +          LTLIBINTL=
259 +          INCINTL=
260 +        fi
261 +
262 +    ifelse(gt_included_intl, yes, [
263 +        if test "$gt_use_preinstalled_gnugettext" != "yes"; then
264 +          dnl GNU gettext is not found in the C library.
265 +          dnl Fall back on included GNU gettext library.
266 +          nls_cv_use_gnu_gettext=yes
267 +        fi
268 +      fi
269 +
270 +      if test "$nls_cv_use_gnu_gettext" = "yes"; then
271 +        dnl Mark actions used to generate GNU NLS library.
272 +        INTLOBJS="\$(GETTOBJS)"
273 +        BUILD_INCLUDED_LIBINTL=yes
274 +        USE_INCLUDED_LIBINTL=yes
275 +        LIBINTL="ifelse([$3],[],\${top_builddir}/intl,[$3])/libintl.[]gt_libtool_suffix_prefix[]a $LIBICONV"
276 +        LTLIBINTL="ifelse([$3],[],\${top_builddir}/intl,[$3])/libintl.[]gt_libtool_suffix_prefix[]a $LTLIBICONV"
277 +        LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
278 +      fi
279 +
280 +      if test "$gt_use_preinstalled_gnugettext" = "yes" \
281 +         || test "$nls_cv_use_gnu_gettext" = "yes"; then
282 +        dnl Mark actions to use GNU gettext tools.
283 +        CATOBJEXT=.gmo
284 +      fi
285 +    ])
286 +
287 +    if test "$gt_use_preinstalled_gnugettext" = "yes" \
288 +       || test "$nls_cv_use_gnu_gettext" = "yes"; then
289 +      AC_DEFINE(ENABLE_NLS, 1,
290 +        [Define to 1 if translation of program messages to the user's native language
291 +   is requested.])
292 +    else
293 +      USE_NLS=no
294 +    fi
295 +  fi
296 +
297 +  if test "$USE_NLS" = "yes"; then
298 +
299 +    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
300 +      if test "$gt_cv_func_gnugettext_libintl" = "yes"; then
301 +        AC_MSG_CHECKING([how to link with libintl])
302 +        AC_MSG_RESULT([$LIBINTL])
303 +        AC_LIB_APPENDTOVAR([CPPFLAGS], [$INCINTL])
304 +      fi
305 +
306 +      dnl For backward compatibility. Some packages may be using this.
307 +      AC_DEFINE(HAVE_GETTEXT, 1,
308 +       [Define if the GNU gettext() function is already present or preinstalled.])
309 +      AC_DEFINE(HAVE_DCGETTEXT, 1,
310 +       [Define if the GNU dcgettext() function is already present or preinstalled.])
311 +    fi
312 +
313 +    dnl We need to process the po/ directory.
314 +    POSUB=po
315 +  fi
316 +
317 +  ifelse(gt_included_intl, yes, [
318 +    dnl If this is used in GNU gettext we have to set BUILD_INCLUDED_LIBINTL
319 +    dnl to 'yes' because some of the testsuite requires it.
320 +    if test "$PACKAGE" = gettext; then
321 +      BUILD_INCLUDED_LIBINTL=yes
322 +    fi
323 +
324 +    dnl Make all variables we use known to autoconf.
325 +    AC_SUBST(BUILD_INCLUDED_LIBINTL)
326 +    AC_SUBST(USE_INCLUDED_LIBINTL)
327 +    AC_SUBST(CATOBJEXT)
328 +    AC_SUBST(INTLOBJS)
329 +
330 +    dnl For backward compatibility. Some configure.ins may be using this.
331 +    nls_cv_header_intl=
332 +    nls_cv_header_libgt=
333 +
334 +    dnl For backward compatibility. Some Makefiles may be using this.
335 +    DATADIRNAME=share
336 +    AC_SUBST(DATADIRNAME)
337 +
338 +    dnl For backward compatibility. Some Makefiles may be using this.
339 +    INSTOBJEXT=.mo
340 +    AC_SUBST(INSTOBJEXT)
341 +
342 +    dnl For backward compatibility. Some Makefiles may be using this.
343 +    GENCAT=gencat
344 +    AC_SUBST(GENCAT)
345 +
346 +    dnl Enable libtool support if the surrounding package wishes it.
347 +    INTL_LIBTOOL_SUFFIX_PREFIX=gt_libtool_suffix_prefix
348 +    AC_SUBST(INTL_LIBTOOL_SUFFIX_PREFIX)
349 +  ])
350 +
351 +  dnl For backward compatibility. Some Makefiles may be using this.
352 +  INTLLIBS="$LIBINTL"
353 +  AC_SUBST(INTLLIBS)
354 +
355 +  dnl Make all documented variables known to autoconf.
356 +  AC_SUBST(LIBINTL)
357 +  AC_SUBST(LTLIBINTL)
358 +  AC_SUBST(POSUB)
359 +])
360 +
361 +
362 +dnl Checks for all prerequisites of the po subdirectory,
363 +dnl except for USE_NLS.
364 +AC_DEFUN([AM_PO_SUBDIRS],
365 +[
366 +  AC_REQUIRE([AC_PROG_MAKE_SET])dnl
367 +  AC_REQUIRE([AC_PROG_INSTALL])dnl
368 +  AC_REQUIRE([AM_MKINSTALLDIRS])dnl
369 +
370 +  dnl Perform the following tests also if --disable-nls has been given,
371 +  dnl because they are needed for "make dist" to work.
372 +
373 +  dnl Search for GNU msgfmt in the PATH.
374 +  dnl The first test excludes Solaris msgfmt and early GNU msgfmt versions.
375 +  dnl The second test excludes FreeBSD msgfmt.
376 +  AM_PATH_PROG_WITH_TEST(MSGFMT, msgfmt,
377 +    [$ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
378 +     (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi)],
379 +    :)
380 +  AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)
381 +
382 +  dnl Search for GNU xgettext 0.11 or newer in the PATH.
383 +  dnl The first test excludes Solaris xgettext and early GNU xgettext versions.
384 +  dnl The second test excludes FreeBSD xgettext.
385 +  AM_PATH_PROG_WITH_TEST(XGETTEXT, xgettext,
386 +    [$ac_dir/$ac_word --omit-header --copyright-holder= /dev/null >/dev/null 2>&1 &&
387 +     (if $ac_dir/$ac_word --omit-header --copyright-holder= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi)],
388 +    :)
389 +  dnl Remove leftover from FreeBSD xgettext call.
390 +  rm -f messages.po
391 +
392 +  dnl Search for GNU msgmerge 0.11 or newer in the PATH.
393 +  AM_PATH_PROG_WITH_TEST(MSGMERGE, msgmerge,
394 +    [$ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1], :)
395 +
396 +  dnl This could go away some day; the PATH_PROG_WITH_TEST already does it.
397 +  dnl Test whether we really found GNU msgfmt.
398 +  if test "$GMSGFMT" != ":"; then
399 +    dnl If it is no GNU msgfmt we define it as : so that the
400 +    dnl Makefiles still can work.
401 +    if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
402 +       (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
403 +      : ;
404 +    else
405 +      GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
406 +      AC_MSG_RESULT(
407 +        [found $GMSGFMT program is not GNU msgfmt; ignore it])
408 +      GMSGFMT=":"
409 +    fi
410 +  fi
411 +
412 +  dnl This could go away some day; the PATH_PROG_WITH_TEST already does it.
413 +  dnl Test whether we really found GNU xgettext.
414 +  if test "$XGETTEXT" != ":"; then
415 +    dnl If it is no GNU xgettext we define it as : so that the
416 +    dnl Makefiles still can work.
417 +    if $XGETTEXT --omit-header --copyright-holder= /dev/null >/dev/null 2>&1 &&
418 +       (if $XGETTEXT --omit-header --copyright-holder= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
419 +      : ;
420 +    else
421 +      AC_MSG_RESULT(
422 +        [found xgettext program is not GNU xgettext; ignore it])
423 +      XGETTEXT=":"
424 +    fi
425 +    dnl Remove leftover from FreeBSD xgettext call.
426 +    rm -f messages.po
427 +  fi
428 +
429 +  AC_OUTPUT_COMMANDS([
430 +    for ac_file in $CONFIG_FILES; do
431 +      # Support "outfile[:infile[:infile...]]"
432 +      case "$ac_file" in
433 +        *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
434 +      esac
435 +      # PO directories have a Makefile.in generated from Makefile.in.in.
436 +      case "$ac_file" in */Makefile.in)
437 +        # Adjust a relative srcdir.
438 +        ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
439 +        ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
440 +        ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
441 +        # In autoconf-2.13 it is called $ac_given_srcdir.
442 +        # In autoconf-2.50 it is called $srcdir.
443 +        test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
444 +        case "$ac_given_srcdir" in
445 +          .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
446 +          /*) top_srcdir="$ac_given_srcdir" ;;
447 +          *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
448 +        esac
449 +        if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
450 +          rm -f "$ac_dir/POTFILES"
451 +          test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
452 +          cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[  ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
453 +          # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
454 +          # on $ac_dir but don't depend on user-specified configuration
455 +          # parameters.
456 +          if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
457 +            # The LINGUAS file contains the set of available languages.
458 +            if test -n "$ALL_LINGUAS"; then
459 +              test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
460 +            fi
461 +            ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
462 +            # Hide the ALL_LINGUAS assigment from automake.
463 +            eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
464 +          fi
465 +          case "$ac_given_srcdir" in
466 +            .) srcdirpre= ;;
467 +            *) srcdirpre='$(srcdir)/' ;;
468 +          esac
469 +          POFILES=
470 +          GMOFILES=
471 +          UPDATEPOFILES=
472 +          DUMMYPOFILES=
473 +          for lang in $ALL_LINGUAS; do
474 +            POFILES="$POFILES $srcdirpre$lang.po"
475 +            GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
476 +            UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
477 +            DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
478 +          done
479 +          # CATALOGS depends on both $ac_dir and the user's LINGUAS
480 +          # environment variable.
481 +          INST_LINGUAS=
482 +          if test -n "$ALL_LINGUAS"; then
483 +            for presentlang in $ALL_LINGUAS; do
484 +              useit=no
485 +              if test "%UNSET%" != "$LINGUAS"; then
486 +                desiredlanguages="$LINGUAS"
487 +              else
488 +                desiredlanguages="$ALL_LINGUAS"
489 +              fi
490 +              for desiredlang in $desiredlanguages; do
491 +                # Use the presentlang catalog if desiredlang is
492 +                #   a. equal to presentlang, or
493 +                #   b. a variant of presentlang (because in this case,
494 +                #      presentlang can be used as a fallback for messages
495 +                #      which are not translated in the desiredlang catalog).
496 +                case "$desiredlang" in
497 +                  "$presentlang"*) useit=yes;;
498 +                esac
499 +              done
500 +              if test $useit = yes; then
501 +                INST_LINGUAS="$INST_LINGUAS $presentlang"
502 +              fi
503 +            done
504 +          fi
505 +          CATALOGS=
506 +          if test -n "$INST_LINGUAS"; then
507 +            for lang in $INST_LINGUAS; do
508 +              CATALOGS="$CATALOGS $lang.gmo"
509 +            done
510 +          fi
511 +          test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
512 +          sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
513 +          for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
514 +            if test -f "$f"; then
515 +              case "$f" in
516 +                *.orig | *.bak | *~) ;;
517 +                *) cat "$f" >> "$ac_dir/Makefile" ;;
518 +              esac
519 +            fi
520 +          done
521 +        fi
522 +        ;;
523 +      esac
524 +    done],
525 +   [# Capture the value of obsolete ALL_LINGUAS because we need it to compute
526 +    # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
527 +    # from automake.
528 +    eval 'ALL_LINGUAS''="$ALL_LINGUAS"'
529 +    # Capture the value of LINGUAS because we need it to compute CATALOGS.
530 +    LINGUAS="${LINGUAS-%UNSET%}"
531 +   ])
532 +])
533 +
534 +
535 +dnl Checks for all prerequisites of the intl subdirectory,
536 +dnl except for INTL_LIBTOOL_SUFFIX_PREFIX (and possibly LIBTOOL), INTLOBJS,
537 +dnl            USE_INCLUDED_LIBINTL, BUILD_INCLUDED_LIBINTL.
538 +AC_DEFUN([AM_INTL_SUBDIR],
539 +[
540 +  AC_REQUIRE([AC_PROG_INSTALL])dnl
541 +  AC_REQUIRE([AM_MKINSTALLDIRS])dnl
542 +  AC_REQUIRE([AC_PROG_CC])dnl
543 +  AC_REQUIRE([AC_CANONICAL_HOST])dnl
544 +  AC_REQUIRE([AC_PROG_RANLIB])dnl
545 +  AC_REQUIRE([AC_ISC_POSIX])dnl
546 +  AC_REQUIRE([AC_HEADER_STDC])dnl
547 +  AC_REQUIRE([AC_C_CONST])dnl
548 +  AC_REQUIRE([AC_C_INLINE])dnl
549 +  AC_REQUIRE([AC_TYPE_OFF_T])dnl
550 +  AC_REQUIRE([AC_TYPE_SIZE_T])dnl
551 +  AC_REQUIRE([AC_FUNC_ALLOCA])dnl
552 +  AC_REQUIRE([AC_FUNC_MMAP])dnl
553 +  AC_REQUIRE([jm_GLIBC21])dnl
554 +  AC_REQUIRE([gt_INTDIV0])dnl
555 +  AC_REQUIRE([jm_AC_TYPE_UINTMAX_T])dnl
556 +  AC_REQUIRE([gt_HEADER_INTTYPES_H])dnl
557 +  AC_REQUIRE([gt_INTTYPES_PRI])dnl
558 +
559 +  AC_CHECK_HEADERS([argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
560 +stdlib.h string.h unistd.h sys/param.h])
561 +  AC_CHECK_FUNCS([feof_unlocked fgets_unlocked getc_unlocked getcwd getegid \
562 +geteuid getgid getuid mempcpy munmap putenv setenv setlocale stpcpy \
563 +strcasecmp strdup strtoul tsearch __argz_count __argz_stringify __argz_next])
564 +
565 +  AM_ICONV
566 +  AM_LANGINFO_CODESET
567 +  if test $ac_cv_header_locale_h = yes; then
568 +    AM_LC_MESSAGES
569 +  fi
570 +
571 +  dnl intl/plural.c is generated from intl/plural.y. It requires bison,
572 +  dnl because plural.y uses bison specific features. It requires at least
573 +  dnl bison-1.26 because earlier versions generate a plural.c that doesn't
574 +  dnl compile.
575 +  dnl bison is only needed for the maintainer (who touches plural.y). But in
576 +  dnl order to avoid separate Makefiles or --enable-maintainer-mode, we put
577 +  dnl the rule in general Makefile. Now, some people carelessly touch the
578 +  dnl files or have a broken "make" program, hence the plural.c rule will
579 +  dnl sometimes fire. To avoid an error, defines BISON to ":" if it is not
580 +  dnl present or too old.
581 +  AC_CHECK_PROGS([INTLBISON], [bison])
582 +  if test -z "$INTLBISON"; then
583 +    ac_verc_fail=yes
584 +  else
585 +    dnl Found it, now check the version.
586 +    AC_MSG_CHECKING([version of bison])
587 +changequote(<<,>>)dnl
588 +    ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
589 +    case $ac_prog_version in
590 +      '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
591 +      1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
592 +changequote([,])dnl
593 +         ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
594 +      *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
595 +    esac
596 +    AC_MSG_RESULT([$ac_prog_version])
597 +  fi
598 +  if test $ac_verc_fail = yes; then
599 +    INTLBISON=:
600 +  fi
601 +])
602 +
603 +
604 +AC_DEFUN([AM_MKINSTALLDIRS],
605 +[
606 +  dnl If the AC_CONFIG_AUX_DIR macro for autoconf is used we possibly
607 +  dnl find the mkinstalldirs script in another subdir but $(top_srcdir).
608 +  dnl Try to locate is.
609 +  MKINSTALLDIRS=
610 +  if test -n "$ac_aux_dir"; then
611 +    MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
612 +  fi
613 +  if test -z "$MKINSTALLDIRS"; then
614 +    MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
615 +  fi
616 +  AC_SUBST(MKINSTALLDIRS)
617 +])
618 +
619 +
620 +dnl Usage: AM_GNU_GETTEXT_VERSION([gettext-version])
621 +AC_DEFUN([AM_GNU_GETTEXT_VERSION], [])
622 --- /dev/null
623 +++ atk-1.2.0/m4/glib-2.0.m4
624 @@ -0,0 +1,212 @@
625 +# Configure paths for GLIB
626 +# Owen Taylor     1997-2001
627 +
628 +dnl AM_PATH_GLIB_2_0([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND [, MODULES]]]])
629 +dnl Test for GLIB, and define GLIB_CFLAGS and GLIB_LIBS, if gmodule, gobject or 
630 +dnl gthread is specified in MODULES, pass to pkg-config
631 +dnl
632 +AC_DEFUN(AM_PATH_GLIB_2_0,
633 +[dnl 
634 +dnl Get the cflags and libraries from pkg-config
635 +dnl
636 +AC_ARG_ENABLE(glibtest, [  --disable-glibtest      do not try to compile and run a test GLIB program],
637 +                   , enable_glibtest=yes)
638 +
639 +  pkg_config_args=glib-2.0
640 +  for module in . $4
641 +  do
642 +      case "$module" in
643 +         gmodule) 
644 +             pkg_config_args="$pkg_config_args gmodule-2.0"
645 +         ;;
646 +         gobject) 
647 +             pkg_config_args="$pkg_config_args gobject-2.0"
648 +         ;;
649 +         gthread) 
650 +             pkg_config_args="$pkg_config_args gthread-2.0"
651 +         ;;
652 +      esac
653 +  done
654 +
655 +  AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
656 +
657 +  no_glib=""
658 +
659 +  if test x$PKG_CONFIG != xno ; then
660 +    if $PKG_CONFIG --atleast-pkgconfig-version 0.7 ; then
661 +      :
662 +    else
663 +      echo *** pkg-config too old; version 0.7 or better required.
664 +      no_glib=yes
665 +      PKG_CONFIG=no
666 +    fi
667 +  else
668 +    no_glib=yes
669 +  fi
670 +
671 +  min_glib_version=ifelse([$1], ,2.0.0,$1)
672 +  AC_MSG_CHECKING(for GLIB - version >= $min_glib_version)
673 +
674 +  if test x$PKG_CONFIG != xno ; then
675 +    ## don't try to run the test against uninstalled libtool libs
676 +    if $PKG_CONFIG --uninstalled $pkg_config_args; then
677 +         echo "Will use uninstalled version of GLib found in PKG_CONFIG_PATH"
678 +         enable_glibtest=no
679 +    fi
680 +
681 +    if $PKG_CONFIG --atleast-version $min_glib_version $pkg_config_args; then
682 +         :
683 +    else
684 +         no_glib=yes
685 +    fi
686 +  fi
687 +
688 +  if test x"$no_glib" = x ; then
689 +    GLIB_GENMARSHAL=`$PKG_CONFIG --variable=glib_genmarshal glib-2.0`
690 +    GOBJECT_QUERY=`$PKG_CONFIG --variable=gobject_query glib-2.0`
691 +    GLIB_MKENUMS=`$PKG_CONFIG --variable=glib_mkenums glib-2.0`
692 +
693 +    GLIB_CFLAGS=`$PKG_CONFIG --cflags $pkg_config_args`
694 +    GLIB_LIBS=`$PKG_CONFIG --libs $pkg_config_args`
695 +    glib_config_major_version=`$PKG_CONFIG --modversion glib-2.0 | \
696 +           sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'`
697 +    glib_config_minor_version=`$PKG_CONFIG --modversion glib-2.0 | \
698 +           sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'`
699 +    glib_config_micro_version=`$PKG_CONFIG --modversion glib-2.0 | \
700 +           sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'`
701 +    if test "x$enable_glibtest" = "xyes" ; then
702 +      ac_save_CFLAGS="$CFLAGS"
703 +      ac_save_LIBS="$LIBS"
704 +      CFLAGS="$CFLAGS $GLIB_CFLAGS"
705 +      LIBS="$GLIB_LIBS $LIBS"
706 +dnl
707 +dnl Now check if the installed GLIB is sufficiently new. (Also sanity
708 +dnl checks the results of pkg-config to some extent)
709 +dnl
710 +      rm -f conf.glibtest
711 +      AC_TRY_RUN([
712 +#include <glib.h>
713 +#include <stdio.h>
714 +#include <stdlib.h>
715 +
716 +int 
717 +main ()
718 +{
719 +  int major, minor, micro;
720 +  char *tmp_version;
721 +
722 +  system ("touch conf.glibtest");
723 +
724 +  /* HP/UX 9 (%@#!) writes to sscanf strings */
725 +  tmp_version = g_strdup("$min_glib_version");
726 +  if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
727 +     printf("%s, bad version string\n", "$min_glib_version");
728 +     exit(1);
729 +   }
730 +
731 +  if ((glib_major_version != $glib_config_major_version) ||
732 +      (glib_minor_version != $glib_config_minor_version) ||
733 +      (glib_micro_version != $glib_config_micro_version))
734 +    {
735 +      printf("\n*** 'pkg-config --modversion glib-2.0' returned %d.%d.%d, but GLIB (%d.%d.%d)\n", 
736 +             $glib_config_major_version, $glib_config_minor_version, $glib_config_micro_version,
737 +             glib_major_version, glib_minor_version, glib_micro_version);
738 +      printf ("*** was found! If pkg-config was correct, then it is best\n");
739 +      printf ("*** to remove the old version of GLib. You may also be able to fix the error\n");
740 +      printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
741 +      printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
742 +      printf("*** required on your system.\n");
743 +      printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
744 +      printf("*** to point to the correct configuration files\n");
745 +    } 
746 +  else if ((glib_major_version != GLIB_MAJOR_VERSION) ||
747 +          (glib_minor_version != GLIB_MINOR_VERSION) ||
748 +           (glib_micro_version != GLIB_MICRO_VERSION))
749 +    {
750 +      printf("*** GLIB header files (version %d.%d.%d) do not match\n",
751 +            GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION, GLIB_MICRO_VERSION);
752 +      printf("*** library (version %d.%d.%d)\n",
753 +            glib_major_version, glib_minor_version, glib_micro_version);
754 +    }
755 +  else
756 +    {
757 +      if ((glib_major_version > major) ||
758 +        ((glib_major_version == major) && (glib_minor_version > minor)) ||
759 +        ((glib_major_version == major) && (glib_minor_version == minor) && (glib_micro_version >= micro)))
760 +      {
761 +        return 0;
762 +       }
763 +     else
764 +      {
765 +        printf("\n*** An old version of GLIB (%d.%d.%d) was found.\n",
766 +               glib_major_version, glib_minor_version, glib_micro_version);
767 +        printf("*** You need a version of GLIB newer than %d.%d.%d. The latest version of\n",
768 +              major, minor, micro);
769 +        printf("*** GLIB is always available from ftp://ftp.gtk.org.\n");
770 +        printf("***\n");
771 +        printf("*** If you have already installed a sufficiently new version, this error\n");
772 +        printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
773 +        printf("*** being found. The easiest way to fix this is to remove the old version\n");
774 +        printf("*** of GLIB, but you can also set the PKG_CONFIG environment to point to the\n");
775 +        printf("*** correct copy of pkg-config. (In this case, you will have to\n");
776 +        printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
777 +        printf("*** so that the correct libraries are found at run-time))\n");
778 +      }
779 +    }
780 +  return 1;
781 +}
782 +],, no_glib=yes,[echo $ac_n "cross compiling; assumed OK... $ac_c"])
783 +       CFLAGS="$ac_save_CFLAGS"
784 +       LIBS="$ac_save_LIBS"
785 +     fi
786 +  fi
787 +  if test "x$no_glib" = x ; then
788 +     AC_MSG_RESULT(yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version))
789 +     ifelse([$2], , :, [$2])     
790 +  else
791 +     AC_MSG_RESULT(no)
792 +     if test "$PKG_CONFIG" = "no" ; then
793 +       echo "*** A new enough version of pkg-config was not found."
794 +       echo "*** See http://www.freedesktop.org/software/pkgconfig/"
795 +     else
796 +       if test -f conf.glibtest ; then
797 +        :
798 +       else
799 +          echo "*** Could not run GLIB test program, checking why..."
800 +          ac_save_CFLAGS="$CFLAGS"
801 +          ac_save_LIBS="$LIBS"
802 +          CFLAGS="$CFLAGS $GLIB_CFLAGS"
803 +          LIBS="$LIBS $GLIB_LIBS"
804 +          AC_TRY_LINK([
805 +#include <glib.h>
806 +#include <stdio.h>
807 +],      [ return ((glib_major_version) || (glib_minor_version) || (glib_micro_version)); ],
808 +        [ echo "*** The test program compiled, but did not run. This usually means"
809 +          echo "*** that the run-time linker is not finding GLIB or finding the wrong"
810 +          echo "*** version of GLIB. If it is not finding GLIB, you'll need to set your"
811 +          echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
812 +          echo "*** to the installed location  Also, make sure you have run ldconfig if that"
813 +          echo "*** is required on your system"
814 +         echo "***"
815 +          echo "*** If you have an old version installed, it is best to remove it, although"
816 +          echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" ],
817 +        [ echo "*** The test program failed to compile or link. See the file config.log for the"
818 +          echo "*** exact error that occured. This usually means GLIB is incorrectly installed."])
819 +          CFLAGS="$ac_save_CFLAGS"
820 +          LIBS="$ac_save_LIBS"
821 +       fi
822 +     fi
823 +     GLIB_CFLAGS=""
824 +     GLIB_LIBS=""
825 +     GLIB_GENMARSHAL=""
826 +     GOBJECT_QUERY=""
827 +     GLIB_MKENUMS=""
828 +     ifelse([$3], , :, [$3])
829 +  fi
830 +  AC_SUBST(GLIB_CFLAGS)
831 +  AC_SUBST(GLIB_LIBS)
832 +  AC_SUBST(GLIB_GENMARSHAL)
833 +  AC_SUBST(GOBJECT_QUERY)
834 +  AC_SUBST(GLIB_MKENUMS)
835 +  rm -f conf.glibtest
836 +])
837 --- /dev/null
838 +++ atk-1.2.0/m4/glibc21.m4
839 @@ -0,0 +1,32 @@
840 +# glibc21.m4 serial 2 (fileutils-4.1.3, gettext-0.10.40)
841 +dnl Copyright (C) 2000-2002 Free Software Foundation, Inc.
842 +dnl This file is free software, distributed under the terms of the GNU
843 +dnl General Public License.  As a special exception to the GNU General
844 +dnl Public License, this file may be distributed as part of a program
845 +dnl that contains a configuration script generated by Autoconf, under
846 +dnl the same distribution terms as the rest of that program.
847 +
848 +# Test for the GNU C Library, version 2.1 or newer.
849 +# From Bruno Haible.
850 +
851 +AC_DEFUN([jm_GLIBC21],
852 +  [
853 +    AC_CACHE_CHECK(whether we are using the GNU C Library 2.1 or newer,
854 +      ac_cv_gnu_library_2_1,
855 +      [AC_EGREP_CPP([Lucky GNU user],
856 +       [
857 +#include <features.h>
858 +#ifdef __GNU_LIBRARY__
859 + #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
860 +  Lucky GNU user
861 + #endif
862 +#endif
863 +       ],
864 +       ac_cv_gnu_library_2_1=yes,
865 +       ac_cv_gnu_library_2_1=no)
866 +      ]
867 +    )
868 +    AC_SUBST(GLIBC21)
869 +    GLIBC21="$ac_cv_gnu_library_2_1"
870 +  ]
871 +)
872 --- /dev/null
873 +++ atk-1.2.0/m4/glib-gettext.m4
874 @@ -0,0 +1,284 @@
875 +# Macro to add for using GNU gettext.
876 +# Ulrich Drepper <drepper@cygnus.com>, 1995, 1996
877 +#
878 +# Modified to never use included libintl. 
879 +# Owen Taylor <otaylor@redhat.com>, 12/15/1998
880 +#
881 +#
882 +# This file can be copied and used freely without restrictions.  It can
883 +# be used in projects which are not available under the GNU Public License
884 +# but which still want to provide support for the GNU gettext functionality.
885 +# Please note that the actual code is *not* freely available.
886 +#
887 +#
888 +# If you make changes to this file, you MUST update the copy in
889 +# acinclude.m4. [ aclocal dies on duplicate macros, so if
890 +# we run 'aclocal -I macros/' then we'll run into problems
891 +# once we've installed glib-gettext.m4 :-( ]
892 +#
893 +
894 +AC_DEFUN([AM_GLIB_LC_MESSAGES],
895 +  [if test $ac_cv_header_locale_h = yes; then
896 +    AC_CACHE_CHECK([for LC_MESSAGES], am_cv_val_LC_MESSAGES,
897 +      [AC_TRY_LINK([#include <locale.h>], [return LC_MESSAGES],
898 +       am_cv_val_LC_MESSAGES=yes, am_cv_val_LC_MESSAGES=no)])
899 +    if test $am_cv_val_LC_MESSAGES = yes; then
900 +      AC_DEFINE(HAVE_LC_MESSAGES, 1,
901 +        [Define if your <locale.h> file defines LC_MESSAGES.])
902 +    fi
903 +  fi])
904 +
905 +dnl AM_GLIB_PATH_PROG_WITH_TEST(VARIABLE, PROG-TO-CHECK-FOR,
906 +dnl   TEST-PERFORMED-ON-FOUND_PROGRAM [, VALUE-IF-NOT-FOUND [, PATH]])
907 +AC_DEFUN([AM_GLIB_PATH_PROG_WITH_TEST],
908 +[# Extract the first word of "$2", so it can be a program name with args.
909 +set dummy $2; ac_word=[$]2
910 +AC_MSG_CHECKING([for $ac_word])
911 +AC_CACHE_VAL(ac_cv_path_$1,
912 +[case "[$]$1" in
913 +  /*)
914 +  ac_cv_path_$1="[$]$1" # Let the user override the test with a path.
915 +  ;;
916 +  *)
917 +  IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
918 +  for ac_dir in ifelse([$5], , $PATH, [$5]); do
919 +    test -z "$ac_dir" && ac_dir=.
920 +    if test -f $ac_dir/$ac_word; then
921 +      if [$3]; then
922 +       ac_cv_path_$1="$ac_dir/$ac_word"
923 +       break
924 +      fi
925 +    fi
926 +  done
927 +  IFS="$ac_save_ifs"
928 +dnl If no 4th arg is given, leave the cache variable unset,
929 +dnl so AC_PATH_PROGS will keep looking.
930 +ifelse([$4], , , [  test -z "[$]ac_cv_path_$1" && ac_cv_path_$1="$4"
931 +])dnl
932 +  ;;
933 +esac])dnl
934 +$1="$ac_cv_path_$1"
935 +if test ifelse([$4], , [-n "[$]$1"], ["[$]$1" != "$4"]); then
936 +  AC_MSG_RESULT([$]$1)
937 +else
938 +  AC_MSG_RESULT(no)
939 +fi
940 +AC_SUBST($1)dnl
941 +])
942 +
943 +# serial 5
944 +
945 +AC_DEFUN(AM_GLIB_WITH_NLS,
946 +  dnl NLS is obligatory
947 +  [USE_NLS=yes
948 +    AC_SUBST(USE_NLS)
949 +
950 +    dnl Figure out what method
951 +    nls_cv_force_use_gnu_gettext="no"
952 +
953 +    nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
954 +    if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
955 +      dnl User does not insist on using GNU NLS library.  Figure out what
956 +      dnl to use.  If gettext or catgets are available (in this order) we
957 +      dnl use this.  Else we have to fall back to GNU NLS library.
958 +      dnl catgets is only used if permitted by option --with-catgets.
959 +      nls_cv_header_intl=
960 +      nls_cv_header_libgt=
961 +      CATOBJEXT=NONE
962 +      XGETTEXT=:
963 +
964 +      AC_CHECK_HEADER(libintl.h,
965 +        [AC_CACHE_CHECK([for dgettext in libc], gt_cv_func_dgettext_libc,
966 +         [AC_TRY_LINK([#include <libintl.h>], [return (int) dgettext ("","")],
967 +           gt_cv_func_dgettext_libc=yes, gt_cv_func_dgettext_libc=no)])
968 +
969 +          gt_cv_func_dgettext_libintl="no"
970 +          libintl_extra_libs=""
971 +
972 +         if test "$gt_cv_func_dgettext_libc" != "yes" ; then
973 +           AC_CHECK_LIB(intl, bindtextdomain,
974 +              [AC_CHECK_LIB(intl, dgettext,
975 +                            gt_cv_func_dgettext_libintl=yes)])
976 +
977 +           if test "$gt_cv_func_dgettext_libc" != "yes" ; then
978 +              AC_MSG_CHECKING([if -liconv is needed to use gettext])
979 +              AC_MSG_RESULT([])
980 +              AC_CHECK_LIB(intl, dcgettext,
981 +                           [gt_cv_func_dgettext_libintl=yes
982 +                            libintl_extra_libs=-liconv],
983 +                           :,-liconv)
984 +            fi
985 +          fi
986 +
987 +          if test "$gt_cv_func_dgettext_libintl" = "yes"; then
988 +           LIBS="$LIBS -lintl $libintl_extra_libs";
989 +          fi
990 +
991 +         if test "$gt_cv_func_dgettext_libc" = "yes" \
992 +           || test "$gt_cv_func_dgettext_libintl" = "yes"; then
993 +           AC_DEFINE(HAVE_GETTEXT,1,
994 +              [Define if the GNU gettext() function is already present or preinstalled.])
995 +           AM_GLIB_PATH_PROG_WITH_TEST(MSGFMT, msgfmt,
996 +             [test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"], no)dnl
997 +           if test "$MSGFMT" != "no"; then
998 +             AC_CHECK_FUNCS(dcgettext)
999 +             AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)
1000 +             AM_GLIB_PATH_PROG_WITH_TEST(XGETTEXT, xgettext,
1001 +               [test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"], :)
1002 +             AC_TRY_LINK(, [extern int _nl_msg_cat_cntr;
1003 +                            return _nl_msg_cat_cntr],
1004 +               [CATOBJEXT=.gmo
1005 +                DATADIRNAME=share],
1006 +               [CATOBJEXT=.mo
1007 +                DATADIRNAME=lib])
1008 +             INSTOBJEXT=.mo
1009 +           fi
1010 +         fi
1011 +
1012 +         # Added by Martin Baulig 12/15/98 for libc5 systems
1013 +         if test "$gt_cv_func_dgettext_libc" != "yes" \
1014 +           && test "$gt_cv_func_dgettext_libintl" = "yes"; then
1015 +           INTLLIBS="-lintl $libintl_extra_libs"
1016 +           LIBS=`echo $LIBS | sed -e 's/-lintl//'`
1017 +         fi
1018 +      ])
1019 +
1020 +      if test "$CATOBJEXT" = "NONE"; then
1021 +        dnl Neither gettext nor catgets in included in the C library.
1022 +        dnl Fall back on GNU gettext library.
1023 +        nls_cv_use_gnu_gettext=yes
1024 +      fi
1025 +    fi
1026 +
1027 +    if test "$nls_cv_use_gnu_gettext" != "yes"; then
1028 +      AC_DEFINE(ENABLE_NLS, 1,
1029 +        [always defined to indicate that i18n is enabled])
1030 +    else
1031 +      dnl Unset this variable since we use the non-zero value as a flag.
1032 +      CATOBJEXT=
1033 +    fi
1034 +
1035 +    dnl Test whether we really found GNU xgettext.
1036 +    if test "$XGETTEXT" != ":"; then
1037 +      dnl If it is no GNU xgettext we define it as : so that the
1038 +      dnl Makefiles still can work.
1039 +      if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
1040 +        : ;
1041 +      else
1042 +        AC_MSG_RESULT(
1043 +         [found xgettext program is not GNU xgettext; ignore it])
1044 +        XGETTEXT=":"
1045 +      fi
1046 +    fi
1047 +
1048 +    # We need to process the po/ directory.
1049 +    POSUB=po
1050 +
1051 +    AC_OUTPUT_COMMANDS(
1052 +      [case "$CONFIG_FILES" in *po/Makefile.in*)
1053 +        sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
1054 +      esac])
1055 +
1056 +    dnl These rules are solely for the distribution goal.  While doing this
1057 +    dnl we only have to keep exactly one list of the available catalogs
1058 +    dnl in configure.in.
1059 +    for lang in $ALL_LINGUAS; do
1060 +      GMOFILES="$GMOFILES $lang.gmo"
1061 +      POFILES="$POFILES $lang.po"
1062 +    done
1063 +
1064 +    dnl Make all variables we use known to autoconf.
1065 +    AC_SUBST(CATALOGS)
1066 +    AC_SUBST(CATOBJEXT)
1067 +    AC_SUBST(DATADIRNAME)
1068 +    AC_SUBST(GMOFILES)
1069 +    AC_SUBST(INSTOBJEXT)
1070 +    AC_SUBST(INTLDEPS)
1071 +    AC_SUBST(INTLLIBS)
1072 +    AC_SUBST(INTLOBJS)
1073 +    AC_SUBST(POFILES)
1074 +    AC_SUBST(POSUB)
1075 +  ])
1076 +
1077 +AC_DEFUN(AM_GLIB_GNU_GETTEXT,
1078 +  [AC_REQUIRE([AC_PROG_MAKE_SET])dnl
1079 +   AC_REQUIRE([AC_PROG_CC])dnl
1080 +   AC_REQUIRE([AC_PROG_RANLIB])dnl
1081 +   AC_REQUIRE([AC_HEADER_STDC])dnl
1082 +   AC_REQUIRE([AC_C_CONST])dnl
1083 +   AC_REQUIRE([AC_C_INLINE])dnl
1084 +   AC_REQUIRE([AC_TYPE_OFF_T])dnl
1085 +   AC_REQUIRE([AC_TYPE_SIZE_T])dnl
1086 +   AC_REQUIRE([AC_FUNC_ALLOCA])dnl
1087 +   AC_REQUIRE([AC_FUNC_MMAP])dnl
1088 +
1089 +   AC_CHECK_HEADERS([argz.h limits.h locale.h nl_types.h malloc.h string.h \
1090 +unistd.h sys/param.h])
1091 +   AC_CHECK_FUNCS([getcwd munmap putenv setenv setlocale strchr strcasecmp \
1092 +strdup __argz_count __argz_stringify __argz_next])
1093 +
1094 +   AM_GLIB_LC_MESSAGES
1095 +   AM_GLIB_WITH_NLS
1096 +
1097 +   if test "x$CATOBJEXT" != "x"; then
1098 +     if test "x$ALL_LINGUAS" = "x"; then
1099 +       LINGUAS=
1100 +     else
1101 +       AC_MSG_CHECKING(for catalogs to be installed)
1102 +       NEW_LINGUAS=
1103 +       for lang in ${LINGUAS=$ALL_LINGUAS}; do
1104 +         case "$ALL_LINGUAS" in
1105 +          *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
1106 +         esac
1107 +       done
1108 +       LINGUAS=$NEW_LINGUAS
1109 +       AC_MSG_RESULT($LINGUAS)
1110 +     fi
1111 +
1112 +     dnl Construct list of names of catalog files to be constructed.
1113 +     if test -n "$LINGUAS"; then
1114 +       for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
1115 +     fi
1116 +   fi
1117 +
1118 +   dnl Determine which catalog format we have (if any is needed)
1119 +   dnl For now we know about two different formats:
1120 +   dnl   Linux libc-5 and the normal X/Open format
1121 +   test -d po || mkdir po
1122 +   if test "$CATOBJEXT" = ".cat"; then
1123 +     AC_CHECK_HEADER(linux/version.h, msgformat=linux, msgformat=xopen)
1124 +
1125 +     dnl Transform the SED scripts while copying because some dumb SEDs
1126 +     dnl cannot handle comments.
1127 +     sed -e '/^#/d' $srcdir/po/$msgformat-msg.sed > po/po2msg.sed
1128 +   fi
1129 +
1130 +   dnl If the AC_CONFIG_AUX_DIR macro for autoconf is used we possibly
1131 +   dnl find the mkinstalldirs script in another subdir but ($top_srcdir).
1132 +   dnl Try to locate is.
1133 +   MKINSTALLDIRS=
1134 +   if test -n "$ac_aux_dir"; then
1135 +     MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
1136 +   fi
1137 +   if test -z "$MKINSTALLDIRS"; then
1138 +     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
1139 +   fi
1140 +   AC_SUBST(MKINSTALLDIRS)
1141 +
1142 +   dnl Generate list of files to be processed by xgettext which will
1143 +   dnl be included in po/Makefile.
1144 +   test -d po || mkdir po
1145 +   if test "x$srcdir" != "x."; then
1146 +     if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
1147 +       posrcprefix="$srcdir/"
1148 +     else
1149 +       posrcprefix="../$srcdir/"
1150 +     fi
1151 +   else
1152 +     posrcprefix="../"
1153 +   fi
1154 +   rm -f po/POTFILES
1155 +   sed -e "/^#/d" -e "/^\$/d" -e "s,.*,        $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
1156 +       < $srcdir/po/POTFILES.in > po/POTFILES
1157 +  ])
1158 +
1159 --- /dev/null
1160 +++ atk-1.2.0/m4/iconv.m4
1161 @@ -0,0 +1,103 @@
1162 +# iconv.m4 serial AM4 (gettext-0.11.3)
1163 +dnl Copyright (C) 2000-2002 Free Software Foundation, Inc.
1164 +dnl This file is free software, distributed under the terms of the GNU
1165 +dnl General Public License.  As a special exception to the GNU General
1166 +dnl Public License, this file may be distributed as part of a program
1167 +dnl that contains a configuration script generated by Autoconf, under
1168 +dnl the same distribution terms as the rest of that program.
1169 +
1170 +dnl From Bruno Haible.
1171 +
1172 +AC_DEFUN([AM_ICONV_LINKFLAGS_BODY],
1173 +[
1174 +  dnl Prerequisites of AC_LIB_LINKFLAGS_BODY.
1175 +  AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
1176 +  AC_REQUIRE([AC_LIB_RPATH])
1177 +
1178 +  dnl Search for libiconv and define LIBICONV, LTLIBICONV and INCICONV
1179 +  dnl accordingly.
1180 +  AC_LIB_LINKFLAGS_BODY([iconv])
1181 +])
1182 +
1183 +AC_DEFUN([AM_ICONV_LINK],
1184 +[
1185 +  dnl Some systems have iconv in libc, some have it in libiconv (OSF/1 and
1186 +  dnl those with the standalone portable GNU libiconv installed).
1187 +
1188 +  dnl Search for libiconv and define LIBICONV, LTLIBICONV and INCICONV
1189 +  dnl accordingly.
1190 +  AC_REQUIRE([AM_ICONV_LINKFLAGS_BODY])
1191 +
1192 +  dnl Add $INCICONV to CPPFLAGS before performing the following checks,
1193 +  dnl because if the user has installed libiconv and not disabled its use
1194 +  dnl via --without-libiconv-prefix, he wants to use it. The first
1195 +  dnl AC_TRY_LINK will then fail, the second AC_TRY_LINK will succeed.
1196 +  am_save_CPPFLAGS="$CPPFLAGS"
1197 +  AC_LIB_APPENDTOVAR([CPPFLAGS], [$INCICONV])
1198 +
1199 +  AC_CACHE_CHECK(for iconv, am_cv_func_iconv, [
1200 +    am_cv_func_iconv="no, consider installing GNU libiconv"
1201 +    am_cv_lib_iconv=no
1202 +    AC_TRY_LINK([#include <stdlib.h>
1203 +#include <iconv.h>],
1204 +      [iconv_t cd = iconv_open("","");
1205 +       iconv(cd,NULL,NULL,NULL,NULL);
1206 +       iconv_close(cd);],
1207 +      am_cv_func_iconv=yes)
1208 +    if test "$am_cv_func_iconv" != yes; then
1209 +      am_save_LIBS="$LIBS"
1210 +      LIBS="$LIBS $LIBICONV"
1211 +      AC_TRY_LINK([#include <stdlib.h>
1212 +#include <iconv.h>],
1213 +        [iconv_t cd = iconv_open("","");
1214 +         iconv(cd,NULL,NULL,NULL,NULL);
1215 +         iconv_close(cd);],
1216 +        am_cv_lib_iconv=yes
1217 +        am_cv_func_iconv=yes)
1218 +      LIBS="$am_save_LIBS"
1219 +    fi
1220 +  ])
1221 +  if test "$am_cv_func_iconv" = yes; then
1222 +    AC_DEFINE(HAVE_ICONV, 1, [Define if you have the iconv() function.])
1223 +  fi
1224 +  if test "$am_cv_lib_iconv" = yes; then
1225 +    AC_MSG_CHECKING([how to link with libiconv])
1226 +    AC_MSG_RESULT([$LIBICONV])
1227 +  else
1228 +    dnl If $LIBICONV didn't lead to a usable library, we don't need $INCICONV
1229 +    dnl either.
1230 +    CPPFLAGS="$am_save_CPPFLAGS"
1231 +    LIBICONV=
1232 +    LTLIBICONV=
1233 +  fi
1234 +  AC_SUBST(LIBICONV)
1235 +  AC_SUBST(LTLIBICONV)
1236 +])
1237 +
1238 +AC_DEFUN([AM_ICONV],
1239 +[
1240 +  AM_ICONV_LINK
1241 +  if test "$am_cv_func_iconv" = yes; then
1242 +    AC_MSG_CHECKING([for iconv declaration])
1243 +    AC_CACHE_VAL(am_cv_proto_iconv, [
1244 +      AC_TRY_COMPILE([
1245 +#include <stdlib.h>
1246 +#include <iconv.h>
1247 +extern
1248 +#ifdef __cplusplus
1249 +"C"
1250 +#endif
1251 +#if defined(__STDC__) || defined(__cplusplus)
1252 +size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
1253 +#else
1254 +size_t iconv();
1255 +#endif
1256 +], [], am_cv_proto_iconv_arg1="", am_cv_proto_iconv_arg1="const")
1257 +      am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"])
1258 +    am_cv_proto_iconv=`echo "[$]am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
1259 +    AC_MSG_RESULT([$]{ac_t:-
1260 +         }[$]am_cv_proto_iconv)
1261 +    AC_DEFINE_UNQUOTED(ICONV_CONST, $am_cv_proto_iconv_arg1,
1262 +      [Define as const if the declaration of iconv() needs const.])
1263 +  fi
1264 +])
1265 --- /dev/null
1266 +++ atk-1.2.0/m4/intdiv0.m4
1267 @@ -0,0 +1,72 @@
1268 +# intdiv0.m4 serial 1 (gettext-0.11.3)
1269 +dnl Copyright (C) 2002 Free Software Foundation, Inc.
1270 +dnl This file is free software, distributed under the terms of the GNU
1271 +dnl General Public License.  As a special exception to the GNU General
1272 +dnl Public License, this file may be distributed as part of a program
1273 +dnl that contains a configuration script generated by Autoconf, under
1274 +dnl the same distribution terms as the rest of that program.
1275 +
1276 +dnl From Bruno Haible.
1277 +
1278 +AC_DEFUN([gt_INTDIV0],
1279 +[
1280 +  AC_REQUIRE([AC_PROG_CC])dnl
1281 +  AC_REQUIRE([AC_CANONICAL_HOST])dnl
1282 +
1283 +  AC_CACHE_CHECK([whether integer division by zero raises SIGFPE],
1284 +    gt_cv_int_divbyzero_sigfpe,
1285 +    [
1286 +      AC_TRY_RUN([
1287 +#include <stdlib.h>
1288 +#include <signal.h>
1289 +
1290 +static void
1291 +#ifdef __cplusplus
1292 +sigfpe_handler (int sig)
1293 +#else
1294 +sigfpe_handler (sig) int sig;
1295 +#endif
1296 +{
1297 +  /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
1298 +  exit (sig != SIGFPE);
1299 +}
1300 +
1301 +int x = 1;
1302 +int y = 0;
1303 +int z;
1304 +int nan;
1305 +
1306 +int main ()
1307 +{
1308 +  signal (SIGFPE, sigfpe_handler);
1309 +/* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP.  */
1310 +#if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
1311 +  signal (SIGTRAP, sigfpe_handler);
1312 +#endif
1313 +/* Linux/SPARC yields signal SIGILL.  */
1314 +#if defined (__sparc__) && defined (__linux__)
1315 +  signal (SIGILL, sigfpe_handler);
1316 +#endif
1317 +
1318 +  z = x / y;
1319 +  nan = y / y;
1320 +  exit (1);
1321 +}
1322 +], gt_cv_int_divbyzero_sigfpe=yes, gt_cv_int_divbyzero_sigfpe=no,
1323 +        [
1324 +          # Guess based on the CPU.
1325 +          case "$host_cpu" in
1326 +            alpha* | i[34567]86 | m68k | s390*)
1327 +              gt_cv_int_divbyzero_sigfpe="guessing yes";;
1328 +            *)
1329 +              gt_cv_int_divbyzero_sigfpe="guessing no";;
1330 +          esac
1331 +        ])
1332 +    ])
1333 +  case "$gt_cv_int_divbyzero_sigfpe" in
1334 +    *yes) value=1;;
1335 +    *) value=0;;
1336 +  esac
1337 +  AC_DEFINE_UNQUOTED(INTDIV0_RAISES_SIGFPE, $value,
1338 +    [Define if integer division by zero raises signal SIGFPE.])
1339 +])
1340 --- /dev/null
1341 +++ atk-1.2.0/m4/inttypes_h.m4
1342 @@ -0,0 +1,28 @@
1343 +# inttypes_h.m4 serial 4 (gettext-0.11.4)
1344 +dnl Copyright (C) 1997-2002 Free Software Foundation, Inc.
1345 +dnl This file is free software, distributed under the terms of the GNU
1346 +dnl General Public License.  As a special exception to the GNU General
1347 +dnl Public License, this file may be distributed as part of a program
1348 +dnl that contains a configuration script generated by Autoconf, under
1349 +dnl the same distribution terms as the rest of that program.
1350 +
1351 +dnl From Paul Eggert.
1352 +
1353 +# Define HAVE_INTTYPES_H_WITH_UINTMAX if <inttypes.h> exists,
1354 +# doesn't clash with <sys/types.h>, and declares uintmax_t.
1355 +
1356 +AC_DEFUN([jm_AC_HEADER_INTTYPES_H],
1357 +[
1358 +  AC_CACHE_CHECK([for inttypes.h], jm_ac_cv_header_inttypes_h,
1359 +  [AC_TRY_COMPILE(
1360 +    [#include <sys/types.h>
1361 +#include <inttypes.h>],
1362 +    [uintmax_t i = (uintmax_t) -1;],
1363 +    jm_ac_cv_header_inttypes_h=yes,
1364 +    jm_ac_cv_header_inttypes_h=no)])
1365 +  if test $jm_ac_cv_header_inttypes_h = yes; then
1366 +    AC_DEFINE_UNQUOTED(HAVE_INTTYPES_H_WITH_UINTMAX, 1,
1367 +[Define if <inttypes.h> exists, doesn't clash with <sys/types.h>,
1368 +   and declares uintmax_t. ])
1369 +  fi
1370 +])
1371 --- /dev/null
1372 +++ atk-1.2.0/m4/inttypes.m4
1373 @@ -0,0 +1,27 @@
1374 +# inttypes.m4 serial 1 (gettext-0.11.4)
1375 +dnl Copyright (C) 1997-2002 Free Software Foundation, Inc.
1376 +dnl This file is free software, distributed under the terms of the GNU
1377 +dnl General Public License.  As a special exception to the GNU General
1378 +dnl Public License, this file may be distributed as part of a program
1379 +dnl that contains a configuration script generated by Autoconf, under
1380 +dnl the same distribution terms as the rest of that program.
1381 +
1382 +dnl From Paul Eggert.
1383 +
1384 +# Define HAVE_INTTYPES_H if <inttypes.h> exists and doesn't clash with
1385 +# <sys/types.h>.
1386 +
1387 +AC_DEFUN([gt_HEADER_INTTYPES_H],
1388 +[
1389 +  AC_CACHE_CHECK([for inttypes.h], gt_cv_header_inttypes_h,
1390 +  [
1391 +    AC_TRY_COMPILE(
1392 +      [#include <sys/types.h>
1393 +#include <inttypes.h>],
1394 +      [], gt_cv_header_inttypes_h=yes, gt_cv_header_inttypes_h=no)
1395 +  ])
1396 +  if test $gt_cv_header_inttypes_h = yes; then
1397 +    AC_DEFINE_UNQUOTED(HAVE_INTTYPES_H, 1,
1398 +      [Define if <inttypes.h> exists and doesn't clash with <sys/types.h>.])
1399 +  fi
1400 +])
1401 --- /dev/null
1402 +++ atk-1.2.0/m4/inttypes-pri.m4
1403 @@ -0,0 +1,32 @@
1404 +# inttypes-pri.m4 serial 1 (gettext-0.11.4)
1405 +dnl Copyright (C) 1997-2002 Free Software Foundation, Inc.
1406 +dnl This file is free software, distributed under the terms of the GNU
1407 +dnl General Public License.  As a special exception to the GNU General
1408 +dnl Public License, this file may be distributed as part of a program
1409 +dnl that contains a configuration script generated by Autoconf, under
1410 +dnl the same distribution terms as the rest of that program.
1411 +
1412 +dnl From Bruno Haible.
1413 +
1414 +# Define PRI_MACROS_BROKEN if <inttypes.h> exists and defines the PRI*
1415 +# macros to non-string values.  This is the case on AIX 4.3.3.
1416 +
1417 +AC_DEFUN([gt_INTTYPES_PRI],
1418 +[
1419 +  AC_REQUIRE([gt_HEADER_INTTYPES_H])
1420 +  if test $gt_cv_header_inttypes_h = yes; then
1421 +    AC_CACHE_CHECK([whether the inttypes.h PRIxNN macros are broken],
1422 +      gt_cv_inttypes_pri_broken,
1423 +      [
1424 +        AC_TRY_COMPILE([#include <inttypes.h>
1425 +#ifdef PRId32
1426 +char *p = PRId32;
1427 +#endif
1428 +], [], gt_cv_inttypes_pri_broken=no, gt_cv_inttypes_pri_broken=yes)
1429 +      ])
1430 +  fi
1431 +  if test "$gt_cv_inttypes_pri_broken" = yes; then
1432 +    AC_DEFINE_UNQUOTED(PRI_MACROS_BROKEN, 1,
1433 +      [Define if <inttypes.h> exists and defines unusable PRI* macros.])
1434 +  fi
1435 +])
1436 --- /dev/null
1437 +++ atk-1.2.0/m4/isc-posix.m4
1438 @@ -0,0 +1,26 @@
1439 +# isc-posix.m4 serial 2 (gettext-0.11.2)
1440 +dnl Copyright (C) 1995-2002 Free Software Foundation, Inc.
1441 +dnl This file is free software, distributed under the terms of the GNU
1442 +dnl General Public License.  As a special exception to the GNU General
1443 +dnl Public License, this file may be distributed as part of a program
1444 +dnl that contains a configuration script generated by Autoconf, under
1445 +dnl the same distribution terms as the rest of that program.
1446 +
1447 +# This file is not needed with autoconf-2.53 and newer.  Remove it in 2005.
1448 +
1449 +# This test replaces the one in autoconf.
1450 +# Currently this macro should have the same name as the autoconf macro
1451 +# because gettext's gettext.m4 (distributed in the automake package)
1452 +# still uses it.  Otherwise, the use in gettext.m4 makes autoheader
1453 +# give these diagnostics:
1454 +#   configure.in:556: AC_TRY_COMPILE was called before AC_ISC_POSIX
1455 +#   configure.in:556: AC_TRY_RUN was called before AC_ISC_POSIX
1456 +
1457 +undefine([AC_ISC_POSIX])
1458 +
1459 +AC_DEFUN([AC_ISC_POSIX],
1460 +  [
1461 +    dnl This test replaces the obsolescent AC_ISC_POSIX kludge.
1462 +    AC_CHECK_LIB(cposix, strerror, [LIBS="$LIBS -lcposix"])
1463 +  ]
1464 +)
1465 --- /dev/null
1466 +++ atk-1.2.0/m4/lcmessage.m4
1467 @@ -0,0 +1,32 @@
1468 +# lcmessage.m4 serial 3 (gettext-0.11.3)
1469 +dnl Copyright (C) 1995-2002 Free Software Foundation, Inc.
1470 +dnl This file is free software, distributed under the terms of the GNU
1471 +dnl General Public License.  As a special exception to the GNU General
1472 +dnl Public License, this file may be distributed as part of a program
1473 +dnl that contains a configuration script generated by Autoconf, under
1474 +dnl the same distribution terms as the rest of that program.
1475 +dnl
1476 +dnl This file can can be used in projects which are not available under
1477 +dnl the GNU General Public License or the GNU Library General Public
1478 +dnl License but which still want to provide support for the GNU gettext
1479 +dnl functionality.
1480 +dnl Please note that the actual code of the GNU gettext library is covered
1481 +dnl by the GNU Library General Public License, and the rest of the GNU
1482 +dnl gettext package package is covered by the GNU General Public License.
1483 +dnl They are *not* in the public domain.
1484 +
1485 +dnl Authors:
1486 +dnl   Ulrich Drepper <drepper@cygnus.com>, 1995.
1487 +
1488 +# Check whether LC_MESSAGES is available in <locale.h>.
1489 +
1490 +AC_DEFUN([AM_LC_MESSAGES],
1491 +[
1492 +  AC_CACHE_CHECK([for LC_MESSAGES], am_cv_val_LC_MESSAGES,
1493 +    [AC_TRY_LINK([#include <locale.h>], [return LC_MESSAGES],
1494 +       am_cv_val_LC_MESSAGES=yes, am_cv_val_LC_MESSAGES=no)])
1495 +  if test $am_cv_val_LC_MESSAGES = yes; then
1496 +    AC_DEFINE(HAVE_LC_MESSAGES, 1,
1497 +      [Define if your <locale.h> file defines LC_MESSAGES.])
1498 +  fi
1499 +])
1500 --- /dev/null
1501 +++ atk-1.2.0/m4/lib-ld.m4
1502 @@ -0,0 +1,97 @@
1503 +# lib-ld.m4 serial 1 (gettext-0.11)
1504 +dnl Copyright (C) 1996-2002 Free Software Foundation, Inc.
1505 +dnl This file is free software, distributed under the terms of the GNU
1506 +dnl General Public License.  As a special exception to the GNU General
1507 +dnl Public License, this file may be distributed as part of a program
1508 +dnl that contains a configuration script generated by Autoconf, under
1509 +dnl the same distribution terms as the rest of that program.
1510 +
1511 +dnl Subroutines of libtool.m4,
1512 +dnl with replacements s/AC_/AC_LIB/ and s/lt_cv/acl_cv/ to avoid collision
1513 +dnl with libtool.m4.
1514 +
1515 +dnl From libtool-1.4. Sets the variable with_gnu_ld to yes or no.
1516 +AC_DEFUN([AC_LIB_PROG_LD_GNU],
1517 +[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], acl_cv_prog_gnu_ld,
1518 +[# I'd rather use --version here, but apparently some GNU ld's only accept -v.
1519 +if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1520 +  acl_cv_prog_gnu_ld=yes
1521 +else
1522 +  acl_cv_prog_gnu_ld=no
1523 +fi])
1524 +with_gnu_ld=$acl_cv_prog_gnu_ld
1525 +])
1526 +
1527 +dnl From libtool-1.4. Sets the variable LD.
1528 +AC_DEFUN([AC_LIB_PROG_LD],
1529 +[AC_ARG_WITH(gnu-ld,
1530 +[  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]],
1531 +test "$withval" = no || with_gnu_ld=yes, with_gnu_ld=no)
1532 +AC_REQUIRE([AC_PROG_CC])dnl
1533 +AC_REQUIRE([AC_CANONICAL_HOST])dnl
1534 +ac_prog=ld
1535 +if test "$GCC" = yes; then
1536 +  # Check if gcc -print-prog-name=ld gives a path.
1537 +  AC_MSG_CHECKING([for ld used by GCC])
1538 +  case $host in
1539 +  *-*-mingw*)
1540 +    # gcc leaves a trailing carriage return which upsets mingw
1541 +    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1542 +  *)
1543 +    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1544 +  esac
1545 +  case $ac_prog in
1546 +    # Accept absolute paths.
1547 +    [[\\/]* | [A-Za-z]:[\\/]*)]
1548 +      [re_direlt='/[^/][^/]*/\.\./']
1549 +      # Canonicalize the path of ld
1550 +      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1551 +      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1552 +       ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1553 +      done
1554 +      test -z "$LD" && LD="$ac_prog"
1555 +      ;;
1556 +  "")
1557 +    # If it fails, then pretend we aren't using GCC.
1558 +    ac_prog=ld
1559 +    ;;
1560 +  *)
1561 +    # If it is relative, then search for the first ld in PATH.
1562 +    with_gnu_ld=unknown
1563 +    ;;
1564 +  esac
1565 +elif test "$with_gnu_ld" = yes; then
1566 +  AC_MSG_CHECKING([for GNU ld])
1567 +else
1568 +  AC_MSG_CHECKING([for non-GNU ld])
1569 +fi
1570 +AC_CACHE_VAL(acl_cv_path_LD,
1571 +[if test -z "$LD"; then
1572 +  IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1573 +  for ac_dir in $PATH; do
1574 +    test -z "$ac_dir" && ac_dir=.
1575 +    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1576 +      acl_cv_path_LD="$ac_dir/$ac_prog"
1577 +      # Check to see if the program is GNU ld.  I'd rather use --version,
1578 +      # but apparently some GNU ld's only accept -v.
1579 +      # Break only if it was the GNU/non-GNU ld that we prefer.
1580 +      if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1581 +       test "$with_gnu_ld" != no && break
1582 +      else
1583 +       test "$with_gnu_ld" != yes && break
1584 +      fi
1585 +    fi
1586 +  done
1587 +  IFS="$ac_save_ifs"
1588 +else
1589 +  acl_cv_path_LD="$LD" # Let the user override the test with a path.
1590 +fi])
1591 +LD="$acl_cv_path_LD"
1592 +if test -n "$LD"; then
1593 +  AC_MSG_RESULT($LD)
1594 +else
1595 +  AC_MSG_RESULT(no)
1596 +fi
1597 +test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
1598 +AC_LIB_PROG_LD_GNU
1599 +])
1600 --- /dev/null
1601 +++ atk-1.2.0/m4/lib-link.m4
1602 @@ -0,0 +1,554 @@
1603 +# lib-link.m4 serial 3 (gettext-0.11.3)
1604 +dnl Copyright (C) 2001-2002 Free Software Foundation, Inc.
1605 +dnl This file is free software, distributed under the terms of the GNU
1606 +dnl General Public License.  As a special exception to the GNU General
1607 +dnl Public License, this file may be distributed as part of a program
1608 +dnl that contains a configuration script generated by Autoconf, under
1609 +dnl the same distribution terms as the rest of that program.
1610 +
1611 +dnl From Bruno Haible.
1612 +
1613 +dnl AC_LIB_LINKFLAGS(name [, dependencies]) searches for libname and
1614 +dnl the libraries corresponding to explicit and implicit dependencies.
1615 +dnl Sets and AC_SUBSTs the LIB${NAME} and LTLIB${NAME} variables and
1616 +dnl augments the CPPFLAGS variable.
1617 +AC_DEFUN([AC_LIB_LINKFLAGS],
1618 +[
1619 +  AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
1620 +  AC_REQUIRE([AC_LIB_RPATH])
1621 +  define([Name],[translit([$1],[./-], [___])])
1622 +  define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-],
1623 +                               [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])])
1624 +  AC_CACHE_CHECK([how to link with lib[]$1], [ac_cv_lib[]Name[]_libs], [
1625 +    AC_LIB_LINKFLAGS_BODY([$1], [$2])
1626 +    ac_cv_lib[]Name[]_libs="$LIB[]NAME"
1627 +    ac_cv_lib[]Name[]_ltlibs="$LTLIB[]NAME"
1628 +    ac_cv_lib[]Name[]_cppflags="$INC[]NAME"
1629 +  ])
1630 +  LIB[]NAME="$ac_cv_lib[]Name[]_libs"
1631 +  LTLIB[]NAME="$ac_cv_lib[]Name[]_ltlibs"
1632 +  INC[]NAME="$ac_cv_lib[]Name[]_cppflags"
1633 +  AC_LIB_APPENDTOVAR([CPPFLAGS], [$INC]NAME)
1634 +  AC_SUBST([LIB]NAME)
1635 +  AC_SUBST([LTLIB]NAME)
1636 +  dnl Also set HAVE_LIB[]NAME so that AC_LIB_HAVE_LINKFLAGS can reuse the
1637 +  dnl results of this search when this library appears as a dependency.
1638 +  HAVE_LIB[]NAME=yes
1639 +  undefine([Name])
1640 +  undefine([NAME])
1641 +])
1642 +
1643 +dnl AC_LIB_HAVE_LINKFLAGS(name, dependencies, includes, testcode)
1644 +dnl searches for libname and the libraries corresponding to explicit and
1645 +dnl implicit dependencies, together with the specified include files and
1646 +dnl the ability to compile and link the specified testcode. If found, it
1647 +dnl sets and AC_SUBSTs HAVE_LIB${NAME}=yes and the LIB${NAME} and
1648 +dnl LTLIB${NAME} variables and augments the CPPFLAGS variable, and
1649 +dnl #defines HAVE_LIB${NAME} to 1. Otherwise, it sets and AC_SUBSTs
1650 +dnl HAVE_LIB${NAME}=no and LIB${NAME} and LTLIB${NAME} to empty.
1651 +AC_DEFUN([AC_LIB_HAVE_LINKFLAGS],
1652 +[
1653 +  AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
1654 +  AC_REQUIRE([AC_LIB_RPATH])
1655 +  define([Name],[translit([$1],[./-], [___])])
1656 +  define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-],
1657 +                               [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])])
1658 +
1659 +  dnl Search for lib[]Name and define LIB[]NAME, LTLIB[]NAME and INC[]NAME
1660 +  dnl accordingly.
1661 +  AC_LIB_LINKFLAGS_BODY([$1], [$2])
1662 +
1663 +  dnl Add $INC[]NAME to CPPFLAGS before performing the following checks,
1664 +  dnl because if the user has installed lib[]Name and not disabled its use
1665 +  dnl via --without-lib[]Name-prefix, he wants to use it.
1666 +  ac_save_CPPFLAGS="$CPPFLAGS"
1667 +  AC_LIB_APPENDTOVAR([CPPFLAGS], [$INC]NAME)
1668 +
1669 +  AC_CACHE_CHECK([for lib[]$1], [ac_cv_lib[]Name], [
1670 +    ac_save_LIBS="$LIBS"
1671 +    LIBS="$LIBS $LIB[]NAME"
1672 +    AC_TRY_LINK([$3], [$4], [ac_cv_lib[]Name=yes], [ac_cv_lib[]Name=no])
1673 +    LIBS="$ac_save_LIBS"
1674 +  ])
1675 +  if test "$ac_cv_lib[]Name" = yes; then
1676 +    HAVE_LIB[]NAME=yes
1677 +    AC_DEFINE([HAVE_LIB]NAME, 1, [Define if you have the $1 library.])
1678 +    AC_MSG_CHECKING([how to link with lib[]$1])
1679 +    AC_MSG_RESULT([$LIB[]NAME])
1680 +  else
1681 +    HAVE_LIB[]NAME=no
1682 +    dnl If $LIB[]NAME didn't lead to a usable library, we don't need
1683 +    dnl $INC[]NAME either.
1684 +    CPPFLAGS="$ac_save_CPPFLAGS"
1685 +    LIB[]NAME=
1686 +    LTLIB[]NAME=
1687 +  fi
1688 +  AC_SUBST([HAVE_LIB]NAME)
1689 +  AC_SUBST([LIB]NAME)
1690 +  AC_SUBST([LTLIB]NAME)
1691 +  undefine([Name])
1692 +  undefine([NAME])
1693 +])
1694 +
1695 +dnl Determine the platform dependent parameters needed to use rpath:
1696 +dnl libext, shlibext, hardcode_libdir_flag_spec, hardcode_libdir_separator,
1697 +dnl hardcode_direct, hardcode_minus_L,
1698 +dnl sys_lib_search_path_spec, sys_lib_dlsearch_path_spec.
1699 +AC_DEFUN([AC_LIB_RPATH],
1700 +[
1701 +  AC_REQUIRE([AC_PROG_CC])                dnl we use $CC, $GCC, $LDFLAGS
1702 +  AC_REQUIRE([AC_LIB_PROG_LD])            dnl we use $LD, $with_gnu_ld
1703 +  AC_REQUIRE([AC_CANONICAL_HOST])         dnl we use $host
1704 +  AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT]) dnl we use $ac_aux_dir
1705 +  AC_CACHE_CHECK([for shared library run path origin], acl_cv_rpath, [
1706 +    CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
1707 +    ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
1708 +    . ./conftest.sh
1709 +    rm -f ./conftest.sh
1710 +    acl_cv_rpath=done
1711 +  ])
1712 +  wl="$acl_cv_wl"
1713 +  libext="$acl_cv_libext"
1714 +  shlibext="$acl_cv_shlibext"
1715 +  hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
1716 +  hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
1717 +  hardcode_direct="$acl_cv_hardcode_direct"
1718 +  hardcode_minus_L="$acl_cv_hardcode_minus_L"
1719 +  sys_lib_search_path_spec="$acl_cv_sys_lib_search_path_spec"
1720 +  sys_lib_dlsearch_path_spec="$acl_cv_sys_lib_dlsearch_path_spec"
1721 +  dnl Determine whether the user wants rpath handling at all.
1722 +  AC_ARG_ENABLE(rpath,
1723 +    [  --disable-rpath         do not hardcode runtime library paths],
1724 +    :, enable_rpath=yes)
1725 +])
1726 +
1727 +dnl AC_LIB_LINKFLAGS_BODY(name [, dependencies]) searches for libname and
1728 +dnl the libraries corresponding to explicit and implicit dependencies.
1729 +dnl Sets the LIB${NAME}, LTLIB${NAME} and INC${NAME} variables.
1730 +AC_DEFUN([AC_LIB_LINKFLAGS_BODY],
1731 +[
1732 +  define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-],
1733 +                               [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])])
1734 +  dnl By default, look in $includedir and $libdir.
1735 +  use_additional=yes
1736 +  AC_LIB_WITH_FINAL_PREFIX([
1737 +    eval additional_includedir=\"$includedir\"
1738 +    eval additional_libdir=\"$libdir\"
1739 +  ])
1740 +  AC_ARG_WITH([lib$1-prefix],
1741 +[  --with-lib$1-prefix[=DIR]  search for lib$1 in DIR/include and DIR/lib
1742 +  --without-lib$1-prefix     don't search for lib$1 in includedir and libdir],
1743 +[
1744 +    if test "X$withval" = "Xno"; then
1745 +      use_additional=no
1746 +    else
1747 +      if test "X$withval" = "X"; then
1748 +        AC_LIB_WITH_FINAL_PREFIX([
1749 +          eval additional_includedir=\"$includedir\"
1750 +          eval additional_libdir=\"$libdir\"
1751 +        ])
1752 +      else
1753 +        additional_includedir="$withval/include"
1754 +        additional_libdir="$withval/lib"
1755 +      fi
1756 +    fi
1757 +])
1758 +  dnl Search the library and its dependencies in $additional_libdir and
1759 +  dnl $LDFLAGS. Using breadth-first-seach.
1760 +  LIB[]NAME=
1761 +  LTLIB[]NAME=
1762 +  INC[]NAME=
1763 +  rpathdirs=
1764 +  ltrpathdirs=
1765 +  names_already_handled=
1766 +  names_next_round='$1 $2'
1767 +  while test -n "$names_next_round"; do
1768 +    names_this_round="$names_next_round"
1769 +    names_next_round=
1770 +    for name in $names_this_round; do
1771 +      already_handled=
1772 +      for n in $names_already_handled; do
1773 +        if test "$n" = "$name"; then
1774 +          already_handled=yes
1775 +          break
1776 +        fi
1777 +      done
1778 +      if test -z "$already_handled"; then
1779 +        names_already_handled="$names_already_handled $name"
1780 +        dnl See if it was already located by an earlier AC_LIB_LINKFLAGS
1781 +        dnl or AC_LIB_HAVE_LINKFLAGS call.
1782 +        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
1783 +        eval value=\"\$HAVE_LIB$uppername\"
1784 +        if test -n "$value"; then
1785 +          if test "$value" = yes; then
1786 +            eval value=\"\$LIB$uppername\"
1787 +            test -z "$value" || LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$value"
1788 +            eval value=\"\$LTLIB$uppername\"
1789 +            test -z "$value" || LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }$value"
1790 +          else
1791 +            dnl An earlier call to AC_LIB_HAVE_LINKFLAGS has determined
1792 +            dnl that this library doesn't exist. So just drop it.
1793 +            :
1794 +          fi
1795 +        else
1796 +          dnl Search the library lib$name in $additional_libdir and $LDFLAGS
1797 +          dnl and the already constructed $LIBNAME/$LTLIBNAME.
1798 +          found_dir=
1799 +          found_la=
1800 +          found_so=
1801 +          found_a=
1802 +          if test $use_additional = yes; then
1803 +            if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
1804 +              found_dir="$additional_libdir"
1805 +              found_so="$additional_libdir/lib$name.$shlibext"
1806 +              if test -f "$additional_libdir/lib$name.la"; then
1807 +                found_la="$additional_libdir/lib$name.la"
1808 +              fi
1809 +            else
1810 +              if test -f "$additional_libdir/lib$name.$libext"; then
1811 +                found_dir="$additional_libdir"
1812 +                found_a="$additional_libdir/lib$name.$libext"
1813 +                if test -f "$additional_libdir/lib$name.la"; then
1814 +                  found_la="$additional_libdir/lib$name.la"
1815 +                fi
1816 +              fi
1817 +            fi
1818 +          fi
1819 +          if test "X$found_dir" = "X"; then
1820 +            for x in $LDFLAGS $LTLIB[]NAME; do
1821 +              AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
1822 +              case "$x" in
1823 +                -L*)
1824 +                  dir=`echo "X$x" | sed -e 's/^X-L//'`
1825 +                  if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
1826 +                    found_dir="$dir"
1827 +                    found_so="$dir/lib$name.$shlibext"
1828 +                    if test -f "$dir/lib$name.la"; then
1829 +                      found_la="$dir/lib$name.la"
1830 +                    fi
1831 +                  else
1832 +                    if test -f "$dir/lib$name.$libext"; then
1833 +                      found_dir="$dir"
1834 +                      found_a="$dir/lib$name.$libext"
1835 +                      if test -f "$dir/lib$name.la"; then
1836 +                        found_la="$dir/lib$name.la"
1837 +                      fi
1838 +                    fi
1839 +                  fi
1840 +                  ;;
1841 +              esac
1842 +              if test "X$found_dir" != "X"; then
1843 +                break
1844 +              fi
1845 +            done
1846 +          fi
1847 +          if test "X$found_dir" != "X"; then
1848 +            dnl Found the library.
1849 +            LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-L$found_dir -l$name"
1850 +            if test "X$found_so" != "X"; then
1851 +              dnl Linking with a shared library. We attempt to hardcode its
1852 +              dnl directory into the executable's runpath, unless it's the
1853 +              dnl standard /usr/lib.
1854 +              if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
1855 +                dnl No hardcoding is needed.
1856 +                LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
1857 +              else
1858 +                dnl Use an explicit option to hardcode DIR into the resulting
1859 +                dnl binary.
1860 +                dnl Potentially add DIR to ltrpathdirs.
1861 +                dnl The ltrpathdirs will be appended to $LTLIBNAME at the end.
1862 +                haveit=
1863 +                for x in $ltrpathdirs; do
1864 +                  if test "X$x" = "X$found_dir"; then
1865 +                    haveit=yes
1866 +                    break
1867 +                  fi
1868 +                done
1869 +                if test -z "$haveit"; then
1870 +                  ltrpathdirs="$ltrpathdirs $found_dir"
1871 +                fi
1872 +                dnl The hardcoding into $LIBNAME is system dependent.
1873 +                if test "$hardcode_direct" = yes; then
1874 +                  dnl Using DIR/libNAME.so during linking hardcodes DIR into the
1875 +                  dnl resulting binary.
1876 +                  LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
1877 +                else
1878 +                  if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
1879 +                    dnl Use an explicit option to hardcode DIR into the resulting
1880 +                    dnl binary.
1881 +                    LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
1882 +                    dnl Potentially add DIR to rpathdirs.
1883 +                    dnl The rpathdirs will be appended to $LIBNAME at the end.
1884 +                    haveit=
1885 +                    for x in $rpathdirs; do
1886 +                      if test "X$x" = "X$found_dir"; then
1887 +                        haveit=yes
1888 +                        break
1889 +                      fi
1890 +                    done
1891 +                    if test -z "$haveit"; then
1892 +                      rpathdirs="$rpathdirs $found_dir"
1893 +                    fi
1894 +                  else
1895 +                    dnl Rely on "-L$found_dir".
1896 +                    dnl But don't add it if it's already contained in the LDFLAGS
1897 +                    dnl or the already constructed $LIBNAME
1898 +                    haveit=
1899 +                    for x in $LDFLAGS $LIB[]NAME; do
1900 +                      AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
1901 +                      if test "X$x" = "X-L$found_dir"; then
1902 +                        haveit=yes
1903 +                        break
1904 +                      fi
1905 +                    done
1906 +                    if test -z "$haveit"; then
1907 +                      LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$found_dir"
1908 +                    fi
1909 +                    if test "$hardcode_minus_L" != no; then
1910 +                      dnl FIXME: Not sure whether we should use
1911 +                      dnl "-L$found_dir -l$name" or "-L$found_dir $found_so"
1912 +                      dnl here.
1913 +                      LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
1914 +                    else
1915 +                      dnl We cannot use $hardcode_runpath_var and LD_RUN_PATH
1916 +                      dnl here, because this doesn't fit in flags passed to the
1917 +                      dnl compiler. So give up. No hardcoding. This affects only
1918 +                      dnl very old systems.
1919 +                      dnl FIXME: Not sure whether we should use
1920 +                      dnl "-L$found_dir -l$name" or "-L$found_dir $found_so"
1921 +                      dnl here.
1922 +                      LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-l$name"
1923 +                    fi
1924 +                  fi
1925 +                fi
1926 +              fi
1927 +            else
1928 +              if test "X$found_a" != "X"; then
1929 +                dnl Linking with a static library.
1930 +                LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_a"
1931 +              else
1932 +                dnl We shouldn't come here, but anyway it's good to have a
1933 +                dnl fallback.
1934 +                LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$found_dir -l$name"
1935 +              fi
1936 +            fi
1937 +            dnl Assume the include files are nearby.
1938 +            additional_includedir=
1939 +            case "$found_dir" in
1940 +              */lib | */lib/)
1941 +                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
1942 +                additional_includedir="$basedir/include"
1943 +                ;;
1944 +            esac
1945 +            if test "X$additional_includedir" != "X"; then
1946 +              dnl Potentially add $additional_includedir to $INCNAME.
1947 +              dnl But don't add it
1948 +              dnl   1. if it's the standard /usr/include,
1949 +              dnl   2. if it's /usr/local/include and we are using GCC on Linux,
1950 +              dnl   3. if it's already present in $CPPFLAGS or the already
1951 +              dnl      constructed $INCNAME,
1952 +              dnl   4. if it doesn't exist as a directory.
1953 +              if test "X$additional_includedir" != "X/usr/include"; then
1954 +                haveit=
1955 +                if test "X$additional_includedir" = "X/usr/local/include"; then
1956 +                  if test -n "$GCC"; then
1957 +                    case $host_os in
1958 +                      linux*) haveit=yes;;
1959 +                    esac
1960 +                  fi
1961 +                fi
1962 +                if test -z "$haveit"; then
1963 +                  for x in $CPPFLAGS $INC[]NAME; do
1964 +                    AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
1965 +                    if test "X$x" = "X-I$additional_includedir"; then
1966 +                      haveit=yes
1967 +                      break
1968 +                    fi
1969 +                  done
1970 +                  if test -z "$haveit"; then
1971 +                    if test -d "$additional_includedir"; then
1972 +                      dnl Really add $additional_includedir to $INCNAME.
1973 +                      INC[]NAME="${INC[]NAME}${INC[]NAME:+ }-I$additional_includedir"
1974 +                    fi
1975 +                  fi
1976 +                fi
1977 +              fi
1978 +            fi
1979 +            dnl Look for dependencies.
1980 +            if test -n "$found_la"; then
1981 +              dnl Read the .la file. It defines the variables
1982 +              dnl dlname, library_names, old_library, dependency_libs, current,
1983 +              dnl age, revision, installed, dlopen, dlpreopen, libdir.
1984 +              save_libdir="$libdir"
1985 +              case "$found_la" in
1986 +                */* | *\\*) . "$found_la" ;;
1987 +                *) . "./$found_la" ;;
1988 +              esac
1989 +              libdir="$save_libdir"
1990 +              dnl We use only dependency_libs.
1991 +              for dep in $dependency_libs; do
1992 +                case "$dep" in
1993 +                  -L*)
1994 +                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
1995 +                    dnl Potentially add $additional_libdir to $LIBNAME and $LTLIBNAME.
1996 +                    dnl But don't add it
1997 +                    dnl   1. if it's the standard /usr/lib,
1998 +                    dnl   2. if it's /usr/local/lib and we are using GCC on Linux,
1999 +                    dnl   3. if it's already present in $LDFLAGS or the already
2000 +                    dnl      constructed $LIBNAME,
2001 +                    dnl   4. if it doesn't exist as a directory.
2002 +                    if test "X$additional_libdir" != "X/usr/lib"; then
2003 +                      haveit=
2004 +                      if test "X$additional_libdir" = "X/usr/local/lib"; then
2005 +                        if test -n "$GCC"; then
2006 +                          case $host_os in
2007 +                            linux*) haveit=yes;;
2008 +                          esac
2009 +                        fi
2010 +                      fi
2011 +                      if test -z "$haveit"; then
2012 +                        haveit=
2013 +                        for x in $LDFLAGS $LIB[]NAME; do
2014 +                          AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
2015 +                          if test "X$x" = "X-L$additional_libdir"; then
2016 +                            haveit=yes
2017 +                            break
2018 +                          fi
2019 +                        done
2020 +                        if test -z "$haveit"; then
2021 +                          if test -d "$additional_libdir"; then
2022 +                            dnl Really add $additional_libdir to $LIBNAME.
2023 +                            LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$additional_libdir"
2024 +                          fi
2025 +                        fi
2026 +                        haveit=
2027 +                        for x in $LDFLAGS $LTLIB[]NAME; do
2028 +                          AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
2029 +                          if test "X$x" = "X-L$additional_libdir"; then
2030 +                            haveit=yes
2031 +                            break
2032 +                          fi
2033 +                        done
2034 +                        if test -z "$haveit"; then
2035 +                          if test -d "$additional_libdir"; then
2036 +                            dnl Really add $additional_libdir to $LTLIBNAME.
2037 +                            LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-L$additional_libdir"
2038 +                          fi
2039 +                        fi
2040 +                      fi
2041 +                    fi
2042 +                    ;;
2043 +                  -R*)
2044 +                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
2045 +                    if test "$enable_rpath" != no; then
2046 +                      dnl Potentially add DIR to rpathdirs.
2047 +                      dnl The rpathdirs will be appended to $LIBNAME at the end.
2048 +                      haveit=
2049 +                      for x in $rpathdirs; do
2050 +                        if test "X$x" = "X$dir"; then
2051 +                          haveit=yes
2052 +                          break
2053 +                        fi
2054 +                      done
2055 +                      if test -z "$haveit"; then
2056 +                        rpathdirs="$rpathdirs $dir"
2057 +                      fi
2058 +                      dnl Potentially add DIR to ltrpathdirs.
2059 +                      dnl The ltrpathdirs will be appended to $LTLIBNAME at the end.
2060 +                      haveit=
2061 +                      for x in $ltrpathdirs; do
2062 +                        if test "X$x" = "X$dir"; then
2063 +                          haveit=yes
2064 +                          break
2065 +                        fi
2066 +                      done
2067 +                      if test -z "$haveit"; then
2068 +                        ltrpathdirs="$ltrpathdirs $dir"
2069 +                      fi
2070 +                    fi
2071 +                    ;;
2072 +                  -l*)
2073 +                    dnl Handle this in the next round.
2074 +                    names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
2075 +                    ;;
2076 +                  *.la)
2077 +                    dnl Handle this in the next round. Throw away the .la's
2078 +                    dnl directory; it is already contained in a preceding -L
2079 +                    dnl option.
2080 +                    names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
2081 +                    ;;
2082 +                  *)
2083 +                    dnl Most likely an immediate library name.
2084 +                    LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$dep"
2085 +                    LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }$dep"
2086 +                    ;;
2087 +                esac
2088 +              done
2089 +            fi
2090 +          else
2091 +            dnl Didn't find the library; assume it is in the system directories
2092 +            dnl known to the linker and runtime loader. (All the system
2093 +            dnl directories known to the linker should also be known to the
2094 +            dnl runtime loader, otherwise the system is severely misconfigured.)
2095 +            LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-l$name"
2096 +            LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-l$name"
2097 +          fi
2098 +        fi
2099 +      fi
2100 +    done
2101 +  done
2102 +  if test "X$rpathdirs" != "X"; then
2103 +    if test -n "$hardcode_libdir_separator"; then
2104 +      dnl Weird platform: only the last -rpath option counts, the user must
2105 +      dnl pass all path elements in one option. We can arrange that for a
2106 +      dnl single library, but not when more than one $LIBNAMEs are used.
2107 +      alldirs=
2108 +      for found_dir in $rpathdirs; do
2109 +        alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
2110 +      done
2111 +      dnl Note: hardcode_libdir_flag_spec uses $libdir and $wl.
2112 +      acl_save_libdir="$libdir"
2113 +      libdir="$alldirs"
2114 +      eval flag=\"$hardcode_libdir_flag_spec\"
2115 +      libdir="$acl_save_libdir"
2116 +      LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$flag"
2117 +    else
2118 +      dnl The -rpath options are cumulative.
2119 +      for found_dir in $rpathdirs; do
2120 +        acl_save_libdir="$libdir"
2121 +        libdir="$found_dir"
2122 +        eval flag=\"$hardcode_libdir_flag_spec\"
2123 +        libdir="$acl_save_libdir"
2124 +        LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$flag"
2125 +      done
2126 +    fi
2127 +  fi
2128 +  if test "X$ltrpathdirs" != "X"; then
2129 +    dnl When using libtool, the option that works for both libraries and
2130 +    dnl executables is -R. The -R options are cumulative.
2131 +    for found_dir in $ltrpathdirs; do
2132 +      LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-R$found_dir"
2133 +    done
2134 +  fi
2135 +])
2136 +
2137 +dnl AC_LIB_APPENDTOVAR(VAR, CONTENTS) appends the elements of CONTENTS to VAR,
2138 +dnl unless already present in VAR.
2139 +dnl Works only for CPPFLAGS, not for LIB* variables because that sometimes
2140 +dnl contains two or three consecutive elements that belong together.
2141 +AC_DEFUN([AC_LIB_APPENDTOVAR],
2142 +[
2143 +  for element in [$2]; do
2144 +    haveit=
2145 +    for x in $[$1]; do
2146 +      AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
2147 +      if test "X$x" = "X$element"; then
2148 +        haveit=yes
2149 +        break
2150 +      fi
2151 +    done
2152 +    if test -z "$haveit"; then
2153 +      [$1]="${[$1]}${[$1]:+ }$element"
2154 +    fi
2155 +  done
2156 +])
2157 --- /dev/null
2158 +++ atk-1.2.0/m4/lib-prefix.m4
2159 @@ -0,0 +1,148 @@
2160 +# lib-prefix.m4 serial 1 (gettext-0.11)
2161 +dnl Copyright (C) 2001-2002 Free Software Foundation, Inc.
2162 +dnl This file is free software, distributed under the terms of the GNU
2163 +dnl General Public License.  As a special exception to the GNU General
2164 +dnl Public License, this file may be distributed as part of a program
2165 +dnl that contains a configuration script generated by Autoconf, under
2166 +dnl the same distribution terms as the rest of that program.
2167 +
2168 +dnl From Bruno Haible.
2169 +
2170 +dnl AC_LIB_PREFIX adds to the CPPFLAGS and LDFLAGS the flags that are needed
2171 +dnl to access previously installed libraries. The basic assumption is that
2172 +dnl a user will want packages to use other packages he previously installed
2173 +dnl with the same --prefix option.
2174 +dnl This macro is not needed if only AC_LIB_LINKFLAGS is used to locate
2175 +dnl libraries, but is otherwise very convenient.
2176 +AC_DEFUN([AC_LIB_PREFIX],
2177 +[
2178 +  AC_BEFORE([$0], [AC_LIB_LINKFLAGS])
2179 +  AC_REQUIRE([AC_PROG_CC])
2180 +  AC_REQUIRE([AC_CANONICAL_HOST])
2181 +  AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
2182 +  dnl By default, look in $includedir and $libdir.
2183 +  use_additional=yes
2184 +  AC_LIB_WITH_FINAL_PREFIX([
2185 +    eval additional_includedir=\"$includedir\"
2186 +    eval additional_libdir=\"$libdir\"
2187 +  ])
2188 +  AC_ARG_WITH([lib-prefix],
2189 +[  --with-lib-prefix[=DIR] search for libraries in DIR/include and DIR/lib
2190 +  --without-lib-prefix    don't search for libraries in includedir and libdir],
2191 +[
2192 +    if test "X$withval" = "Xno"; then
2193 +      use_additional=no
2194 +    else
2195 +      if test "X$withval" = "X"; then
2196 +        AC_LIB_WITH_FINAL_PREFIX([
2197 +          eval additional_includedir=\"$includedir\"
2198 +          eval additional_libdir=\"$libdir\"
2199 +        ])
2200 +      else
2201 +        additional_includedir="$withval/include"
2202 +        additional_libdir="$withval/lib"
2203 +      fi
2204 +    fi
2205 +])
2206 +  if test $use_additional = yes; then
2207 +    dnl Potentially add $additional_includedir to $CPPFLAGS.
2208 +    dnl But don't add it
2209 +    dnl   1. if it's the standard /usr/include,
2210 +    dnl   2. if it's already present in $CPPFLAGS,
2211 +    dnl   3. if it's /usr/local/include and we are using GCC on Linux,
2212 +    dnl   4. if it doesn't exist as a directory.
2213 +    if test "X$additional_includedir" != "X/usr/include"; then
2214 +      haveit=
2215 +      for x in $CPPFLAGS; do
2216 +        AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
2217 +        if test "X$x" = "X-I$additional_includedir"; then
2218 +          haveit=yes
2219 +          break
2220 +        fi
2221 +      done
2222 +      if test -z "$haveit"; then
2223 +        if test "X$additional_includedir" = "X/usr/local/include"; then
2224 +          if test -n "$GCC"; then
2225 +            case $host_os in
2226 +              linux*) haveit=yes;;
2227 +            esac
2228 +          fi
2229 +        fi
2230 +        if test -z "$haveit"; then
2231 +          if test -d "$additional_includedir"; then
2232 +            dnl Really add $additional_includedir to $CPPFLAGS.
2233 +            CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }-I$additional_includedir"
2234 +          fi
2235 +        fi
2236 +      fi
2237 +    fi
2238 +    dnl Potentially add $additional_libdir to $LDFLAGS.
2239 +    dnl But don't add it
2240 +    dnl   1. if it's the standard /usr/lib,
2241 +    dnl   2. if it's already present in $LDFLAGS,
2242 +    dnl   3. if it's /usr/local/lib and we are using GCC on Linux,
2243 +    dnl   4. if it doesn't exist as a directory.
2244 +    if test "X$additional_libdir" != "X/usr/lib"; then
2245 +      haveit=
2246 +      for x in $LDFLAGS; do
2247 +        AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
2248 +        if test "X$x" = "X-L$additional_libdir"; then
2249 +          haveit=yes
2250 +          break
2251 +        fi
2252 +      done
2253 +      if test -z "$haveit"; then
2254 +        if test "X$additional_libdir" = "X/usr/local/lib"; then
2255 +          if test -n "$GCC"; then
2256 +            case $host_os in
2257 +              linux*) haveit=yes;;
2258 +            esac
2259 +          fi
2260 +        fi
2261 +        if test -z "$haveit"; then
2262 +          if test -d "$additional_libdir"; then
2263 +            dnl Really add $additional_libdir to $LDFLAGS.
2264 +            LDFLAGS="${LDFLAGS}${LDFLAGS:+ }-L$additional_libdir"
2265 +          fi
2266 +        fi
2267 +      fi
2268 +    fi
2269 +  fi
2270 +])
2271 +
2272 +dnl AC_LIB_PREPARE_PREFIX creates variables acl_final_prefix,
2273 +dnl acl_final_exec_prefix, containing the values to which $prefix and
2274 +dnl $exec_prefix will expand at the end of the configure script.
2275 +AC_DEFUN([AC_LIB_PREPARE_PREFIX],
2276 +[
2277 +  dnl Unfortunately, prefix and exec_prefix get only finally determined
2278 +  dnl at the end of configure.
2279 +  if test "X$prefix" = "XNONE"; then
2280 +    acl_final_prefix="$ac_default_prefix"
2281 +  else
2282 +    acl_final_prefix="$prefix"
2283 +  fi
2284 +  if test "X$exec_prefix" = "XNONE"; then
2285 +    acl_final_exec_prefix='${prefix}'
2286 +  else
2287 +    acl_final_exec_prefix="$exec_prefix"
2288 +  fi
2289 +  acl_save_prefix="$prefix"
2290 +  prefix="$acl_final_prefix"
2291 +  eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
2292 +  prefix="$acl_save_prefix"
2293 +])
2294 +
2295 +dnl AC_LIB_WITH_FINAL_PREFIX([statement]) evaluates statement, with the
2296 +dnl variables prefix and exec_prefix bound to the values they will have
2297 +dnl at the end of the configure script.
2298 +AC_DEFUN([AC_LIB_WITH_FINAL_PREFIX],
2299 +[
2300 +  acl_save_prefix="$prefix"
2301 +  prefix="$acl_final_prefix"
2302 +  acl_save_exec_prefix="$exec_prefix"
2303 +  exec_prefix="$acl_final_exec_prefix"
2304 +  $1
2305 +  exec_prefix="$acl_save_exec_prefix"
2306 +  prefix="$acl_save_prefix"
2307 +])
2308 --- /dev/null
2309 +++ atk-1.2.0/m4/progtest.m4
2310 @@ -0,0 +1,59 @@
2311 +# progtest.m4 serial 2 (gettext-0.10.40)
2312 +dnl Copyright (C) 1996-2002 Free Software Foundation, Inc.
2313 +dnl This file is free software, distributed under the terms of the GNU
2314 +dnl General Public License.  As a special exception to the GNU General
2315 +dnl Public License, this file may be distributed as part of a program
2316 +dnl that contains a configuration script generated by Autoconf, under
2317 +dnl the same distribution terms as the rest of that program.
2318 +dnl
2319 +dnl This file can can be used in projects which are not available under
2320 +dnl the GNU General Public License or the GNU Library General Public
2321 +dnl License but which still want to provide support for the GNU gettext
2322 +dnl functionality.
2323 +dnl Please note that the actual code of the GNU gettext library is covered
2324 +dnl by the GNU Library General Public License, and the rest of the GNU
2325 +dnl gettext package package is covered by the GNU General Public License.
2326 +dnl They are *not* in the public domain.
2327 +
2328 +dnl Authors:
2329 +dnl   Ulrich Drepper <drepper@cygnus.com>, 1996.
2330 +
2331 +# Search path for a program which passes the given test.
2332 +
2333 +dnl AM_PATH_PROG_WITH_TEST(VARIABLE, PROG-TO-CHECK-FOR,
2334 +dnl   TEST-PERFORMED-ON-FOUND_PROGRAM [, VALUE-IF-NOT-FOUND [, PATH]])
2335 +AC_DEFUN([AM_PATH_PROG_WITH_TEST],
2336 +[# Extract the first word of "$2", so it can be a program name with args.
2337 +set dummy $2; ac_word=[$]2
2338 +AC_MSG_CHECKING([for $ac_word])
2339 +AC_CACHE_VAL(ac_cv_path_$1,
2340 +[case "[$]$1" in
2341 +  /*)
2342 +  ac_cv_path_$1="[$]$1" # Let the user override the test with a path.
2343 +  ;;
2344 +  *)
2345 +  IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2346 +  for ac_dir in ifelse([$5], , $PATH, [$5]); do
2347 +    test -z "$ac_dir" && ac_dir=.
2348 +    if test -f $ac_dir/$ac_word; then
2349 +      if [$3]; then
2350 +       ac_cv_path_$1="$ac_dir/$ac_word"
2351 +       break
2352 +      fi
2353 +    fi
2354 +  done
2355 +  IFS="$ac_save_ifs"
2356 +dnl If no 4th arg is given, leave the cache variable unset,
2357 +dnl so AC_PATH_PROGS will keep looking.
2358 +ifelse([$4], , , [  test -z "[$]ac_cv_path_$1" && ac_cv_path_$1="$4"
2359 +])dnl
2360 +  ;;
2361 +esac])dnl
2362 +$1="$ac_cv_path_$1"
2363 +if test ifelse([$4], , [-n "[$]$1"], ["[$]$1" != "$4"]); then
2364 +  AC_MSG_RESULT([$]$1)
2365 +else
2366 +  AC_MSG_RESULT(no)
2367 +fi
2368 +AC_SUBST($1)dnl
2369 +])
2370 --- /dev/null
2371 +++ atk-1.2.0/m4/stdint_h.m4
2372 @@ -0,0 +1,28 @@
2373 +# stdint_h.m4 serial 2 (gettext-0.11.4)
2374 +dnl Copyright (C) 1997-2002 Free Software Foundation, Inc.
2375 +dnl This file is free software, distributed under the terms of the GNU
2376 +dnl General Public License.  As a special exception to the GNU General
2377 +dnl Public License, this file may be distributed as part of a program
2378 +dnl that contains a configuration script generated by Autoconf, under
2379 +dnl the same distribution terms as the rest of that program.
2380 +
2381 +dnl From Paul Eggert.
2382 +
2383 +# Define HAVE_STDINT_H_WITH_UINTMAX if <stdint.h> exists,
2384 +# doesn't clash with <sys/types.h>, and declares uintmax_t.
2385 +
2386 +AC_DEFUN([jm_AC_HEADER_STDINT_H],
2387 +[
2388 +  AC_CACHE_CHECK([for stdint.h], jm_ac_cv_header_stdint_h,
2389 +  [AC_TRY_COMPILE(
2390 +    [#include <sys/types.h>
2391 +#include <stdint.h>],
2392 +    [uintmax_t i = (uintmax_t) -1;],
2393 +    jm_ac_cv_header_stdint_h=yes,
2394 +    jm_ac_cv_header_stdint_h=no)])
2395 +  if test $jm_ac_cv_header_stdint_h = yes; then
2396 +    AC_DEFINE_UNQUOTED(HAVE_STDINT_H_WITH_UINTMAX, 1,
2397 +[Define if <stdint.h> exists, doesn't clash with <sys/types.h>,
2398 +   and declares uintmax_t. ])
2399 +  fi
2400 +])
2401 --- /dev/null
2402 +++ atk-1.2.0/m4/uintmax_t.m4
2403 @@ -0,0 +1,29 @@
2404 +# uintmax_t.m4 serial 6 (gettext-0.11)
2405 +dnl Copyright (C) 1997-2002 Free Software Foundation, Inc.
2406 +dnl This file is free software, distributed under the terms of the GNU
2407 +dnl General Public License.  As a special exception to the GNU General
2408 +dnl Public License, this file may be distributed as part of a program
2409 +dnl that contains a configuration script generated by Autoconf, under
2410 +dnl the same distribution terms as the rest of that program.
2411 +
2412 +dnl From Paul Eggert.
2413 +
2414 +AC_PREREQ(2.13)
2415 +
2416 +# Define uintmax_t to `unsigned long' or `unsigned long long'
2417 +# if <inttypes.h> does not exist.
2418 +
2419 +AC_DEFUN([jm_AC_TYPE_UINTMAX_T],
2420 +[
2421 +  AC_REQUIRE([jm_AC_HEADER_INTTYPES_H])
2422 +  AC_REQUIRE([jm_AC_HEADER_STDINT_H])
2423 +  if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
2424 +    AC_REQUIRE([jm_AC_TYPE_UNSIGNED_LONG_LONG])
2425 +    test $ac_cv_type_unsigned_long_long = yes \
2426 +      && ac_type='unsigned long long' \
2427 +      || ac_type='unsigned long'
2428 +    AC_DEFINE_UNQUOTED(uintmax_t, $ac_type,
2429 +  [Define to unsigned long or unsigned long long
2430 +   if <inttypes.h> and <stdint.h> don't define.])
2431 +  fi
2432 +])
2433 --- /dev/null
2434 +++ atk-1.2.0/m4/ulonglong.m4
2435 @@ -0,0 +1,23 @@
2436 +# ulonglong.m4 serial 2 (fileutils-4.0.32, gettext-0.10.40)
2437 +dnl Copyright (C) 1999-2002 Free Software Foundation, Inc.
2438 +dnl This file is free software, distributed under the terms of the GNU
2439 +dnl General Public License.  As a special exception to the GNU General
2440 +dnl Public License, this file may be distributed as part of a program
2441 +dnl that contains a configuration script generated by Autoconf, under
2442 +dnl the same distribution terms as the rest of that program.
2443 +
2444 +dnl From Paul Eggert.
2445 +
2446 +AC_DEFUN([jm_AC_TYPE_UNSIGNED_LONG_LONG],
2447 +[
2448 +  AC_CACHE_CHECK([for unsigned long long], ac_cv_type_unsigned_long_long,
2449 +  [AC_TRY_LINK([unsigned long long ull = 1; int i = 63;],
2450 +    [unsigned long long ullmax = (unsigned long long) -1;
2451 +     return ull << i | ull >> i | ullmax / ull | ullmax % ull;],
2452 +    ac_cv_type_unsigned_long_long=yes,
2453 +    ac_cv_type_unsigned_long_long=no)])
2454 +  if test $ac_cv_type_unsigned_long_long = yes; then
2455 +    AC_DEFINE(HAVE_UNSIGNED_LONG_LONG, 1,
2456 +      [Define if you have the unsigned long long type.])
2457 +  fi
2458 +])