]> pilppa.org Git - familiar-h63xx-build.git/blob - org.handhelds.familiar/packages/centericq/centericq-4.9.7/m4.patch
OE tree imported from monotone branch org.openembedded.oz354fam083 at revision 8b12e3...
[familiar-h63xx-build.git] / org.handhelds.familiar / packages / centericq / centericq-4.9.7 / m4.patch
1
2 #
3 # Patch managed by http://www.mn-logistik.de/unsupported/pxa250/patcher
4 #
5
6 --- /dev/null
7 +++ centericq-4.9.7/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 +++ centericq-4.9.7/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 +++ centericq-4.9.7/m4/glibc21.m4
624 @@ -0,0 +1,32 @@
625 +# glibc21.m4 serial 2 (fileutils-4.1.3, gettext-0.10.40)
626 +dnl Copyright (C) 2000-2002 Free Software Foundation, Inc.
627 +dnl This file is free software, distributed under the terms of the GNU
628 +dnl General Public License.  As a special exception to the GNU General
629 +dnl Public License, this file may be distributed as part of a program
630 +dnl that contains a configuration script generated by Autoconf, under
631 +dnl the same distribution terms as the rest of that program.
632 +
633 +# Test for the GNU C Library, version 2.1 or newer.
634 +# From Bruno Haible.
635 +
636 +AC_DEFUN([jm_GLIBC21],
637 +  [
638 +    AC_CACHE_CHECK(whether we are using the GNU C Library 2.1 or newer,
639 +      ac_cv_gnu_library_2_1,
640 +      [AC_EGREP_CPP([Lucky GNU user],
641 +       [
642 +#include <features.h>
643 +#ifdef __GNU_LIBRARY__
644 + #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
645 +  Lucky GNU user
646 + #endif
647 +#endif
648 +       ],
649 +       ac_cv_gnu_library_2_1=yes,
650 +       ac_cv_gnu_library_2_1=no)
651 +      ]
652 +    )
653 +    AC_SUBST(GLIBC21)
654 +    GLIBC21="$ac_cv_gnu_library_2_1"
655 +  ]
656 +)
657 --- /dev/null
658 +++ centericq-4.9.7/m4/iconv.m4
659 @@ -0,0 +1,103 @@
660 +# iconv.m4 serial AM4 (gettext-0.11.3)
661 +dnl Copyright (C) 2000-2002 Free Software Foundation, Inc.
662 +dnl This file is free software, distributed under the terms of the GNU
663 +dnl General Public License.  As a special exception to the GNU General
664 +dnl Public License, this file may be distributed as part of a program
665 +dnl that contains a configuration script generated by Autoconf, under
666 +dnl the same distribution terms as the rest of that program.
667 +
668 +dnl From Bruno Haible.
669 +
670 +AC_DEFUN([AM_ICONV_LINKFLAGS_BODY],
671 +[
672 +  dnl Prerequisites of AC_LIB_LINKFLAGS_BODY.
673 +  AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
674 +  AC_REQUIRE([AC_LIB_RPATH])
675 +
676 +  dnl Search for libiconv and define LIBICONV, LTLIBICONV and INCICONV
677 +  dnl accordingly.
678 +  AC_LIB_LINKFLAGS_BODY([iconv])
679 +])
680 +
681 +AC_DEFUN([AM_ICONV_LINK],
682 +[
683 +  dnl Some systems have iconv in libc, some have it in libiconv (OSF/1 and
684 +  dnl those with the standalone portable GNU libiconv installed).
685 +
686 +  dnl Search for libiconv and define LIBICONV, LTLIBICONV and INCICONV
687 +  dnl accordingly.
688 +  AC_REQUIRE([AM_ICONV_LINKFLAGS_BODY])
689 +
690 +  dnl Add $INCICONV to CPPFLAGS before performing the following checks,
691 +  dnl because if the user has installed libiconv and not disabled its use
692 +  dnl via --without-libiconv-prefix, he wants to use it. The first
693 +  dnl AC_TRY_LINK will then fail, the second AC_TRY_LINK will succeed.
694 +  am_save_CPPFLAGS="$CPPFLAGS"
695 +  AC_LIB_APPENDTOVAR([CPPFLAGS], [$INCICONV])
696 +
697 +  AC_CACHE_CHECK(for iconv, am_cv_func_iconv, [
698 +    am_cv_func_iconv="no, consider installing GNU libiconv"
699 +    am_cv_lib_iconv=no
700 +    AC_TRY_LINK([#include <stdlib.h>
701 +#include <iconv.h>],
702 +      [iconv_t cd = iconv_open("","");
703 +       iconv(cd,NULL,NULL,NULL,NULL);
704 +       iconv_close(cd);],
705 +      am_cv_func_iconv=yes)
706 +    if test "$am_cv_func_iconv" != yes; then
707 +      am_save_LIBS="$LIBS"
708 +      LIBS="$LIBS $LIBICONV"
709 +      AC_TRY_LINK([#include <stdlib.h>
710 +#include <iconv.h>],
711 +        [iconv_t cd = iconv_open("","");
712 +         iconv(cd,NULL,NULL,NULL,NULL);
713 +         iconv_close(cd);],
714 +        am_cv_lib_iconv=yes
715 +        am_cv_func_iconv=yes)
716 +      LIBS="$am_save_LIBS"
717 +    fi
718 +  ])
719 +  if test "$am_cv_func_iconv" = yes; then
720 +    AC_DEFINE(HAVE_ICONV, 1, [Define if you have the iconv() function.])
721 +  fi
722 +  if test "$am_cv_lib_iconv" = yes; then
723 +    AC_MSG_CHECKING([how to link with libiconv])
724 +    AC_MSG_RESULT([$LIBICONV])
725 +  else
726 +    dnl If $LIBICONV didn't lead to a usable library, we don't need $INCICONV
727 +    dnl either.
728 +    CPPFLAGS="$am_save_CPPFLAGS"
729 +    LIBICONV=
730 +    LTLIBICONV=
731 +  fi
732 +  AC_SUBST(LIBICONV)
733 +  AC_SUBST(LTLIBICONV)
734 +])
735 +
736 +AC_DEFUN([AM_ICONV],
737 +[
738 +  AM_ICONV_LINK
739 +  if test "$am_cv_func_iconv" = yes; then
740 +    AC_MSG_CHECKING([for iconv declaration])
741 +    AC_CACHE_VAL(am_cv_proto_iconv, [
742 +      AC_TRY_COMPILE([
743 +#include <stdlib.h>
744 +#include <iconv.h>
745 +extern
746 +#ifdef __cplusplus
747 +"C"
748 +#endif
749 +#if defined(__STDC__) || defined(__cplusplus)
750 +size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
751 +#else
752 +size_t iconv();
753 +#endif
754 +], [], am_cv_proto_iconv_arg1="", am_cv_proto_iconv_arg1="const")
755 +      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);"])
756 +    am_cv_proto_iconv=`echo "[$]am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
757 +    AC_MSG_RESULT([$]{ac_t:-
758 +         }[$]am_cv_proto_iconv)
759 +    AC_DEFINE_UNQUOTED(ICONV_CONST, $am_cv_proto_iconv_arg1,
760 +      [Define as const if the declaration of iconv() needs const.])
761 +  fi
762 +])
763 --- /dev/null
764 +++ centericq-4.9.7/m4/intdiv0.m4
765 @@ -0,0 +1,72 @@
766 +# intdiv0.m4 serial 1 (gettext-0.11.3)
767 +dnl Copyright (C) 2002 Free Software Foundation, Inc.
768 +dnl This file is free software, distributed under the terms of the GNU
769 +dnl General Public License.  As a special exception to the GNU General
770 +dnl Public License, this file may be distributed as part of a program
771 +dnl that contains a configuration script generated by Autoconf, under
772 +dnl the same distribution terms as the rest of that program.
773 +
774 +dnl From Bruno Haible.
775 +
776 +AC_DEFUN([gt_INTDIV0],
777 +[
778 +  AC_REQUIRE([AC_PROG_CC])dnl
779 +  AC_REQUIRE([AC_CANONICAL_HOST])dnl
780 +
781 +  AC_CACHE_CHECK([whether integer division by zero raises SIGFPE],
782 +    gt_cv_int_divbyzero_sigfpe,
783 +    [
784 +      AC_TRY_RUN([
785 +#include <stdlib.h>
786 +#include <signal.h>
787 +
788 +static void
789 +#ifdef __cplusplus
790 +sigfpe_handler (int sig)
791 +#else
792 +sigfpe_handler (sig) int sig;
793 +#endif
794 +{
795 +  /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
796 +  exit (sig != SIGFPE);
797 +}
798 +
799 +int x = 1;
800 +int y = 0;
801 +int z;
802 +int nan;
803 +
804 +int main ()
805 +{
806 +  signal (SIGFPE, sigfpe_handler);
807 +/* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP.  */
808 +#if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
809 +  signal (SIGTRAP, sigfpe_handler);
810 +#endif
811 +/* Linux/SPARC yields signal SIGILL.  */
812 +#if defined (__sparc__) && defined (__linux__)
813 +  signal (SIGILL, sigfpe_handler);
814 +#endif
815 +
816 +  z = x / y;
817 +  nan = y / y;
818 +  exit (1);
819 +}
820 +], gt_cv_int_divbyzero_sigfpe=yes, gt_cv_int_divbyzero_sigfpe=no,
821 +        [
822 +          # Guess based on the CPU.
823 +          case "$host_cpu" in
824 +            alpha* | i[34567]86 | m68k | s390*)
825 +              gt_cv_int_divbyzero_sigfpe="guessing yes";;
826 +            *)
827 +              gt_cv_int_divbyzero_sigfpe="guessing no";;
828 +          esac
829 +        ])
830 +    ])
831 +  case "$gt_cv_int_divbyzero_sigfpe" in
832 +    *yes) value=1;;
833 +    *) value=0;;
834 +  esac
835 +  AC_DEFINE_UNQUOTED(INTDIV0_RAISES_SIGFPE, $value,
836 +    [Define if integer division by zero raises signal SIGFPE.])
837 +])
838 --- /dev/null
839 +++ centericq-4.9.7/m4/inttypes_h.m4
840 @@ -0,0 +1,28 @@
841 +# inttypes_h.m4 serial 4 (gettext-0.11.4)
842 +dnl Copyright (C) 1997-2002 Free Software Foundation, Inc.
843 +dnl This file is free software, distributed under the terms of the GNU
844 +dnl General Public License.  As a special exception to the GNU General
845 +dnl Public License, this file may be distributed as part of a program
846 +dnl that contains a configuration script generated by Autoconf, under
847 +dnl the same distribution terms as the rest of that program.
848 +
849 +dnl From Paul Eggert.
850 +
851 +# Define HAVE_INTTYPES_H_WITH_UINTMAX if <inttypes.h> exists,
852 +# doesn't clash with <sys/types.h>, and declares uintmax_t.
853 +
854 +AC_DEFUN([jm_AC_HEADER_INTTYPES_H],
855 +[
856 +  AC_CACHE_CHECK([for inttypes.h], jm_ac_cv_header_inttypes_h,
857 +  [AC_TRY_COMPILE(
858 +    [#include <sys/types.h>
859 +#include <inttypes.h>],
860 +    [uintmax_t i = (uintmax_t) -1;],
861 +    jm_ac_cv_header_inttypes_h=yes,
862 +    jm_ac_cv_header_inttypes_h=no)])
863 +  if test $jm_ac_cv_header_inttypes_h = yes; then
864 +    AC_DEFINE_UNQUOTED(HAVE_INTTYPES_H_WITH_UINTMAX, 1,
865 +[Define if <inttypes.h> exists, doesn't clash with <sys/types.h>,
866 +   and declares uintmax_t. ])
867 +  fi
868 +])
869 --- /dev/null
870 +++ centericq-4.9.7/m4/inttypes.m4
871 @@ -0,0 +1,27 @@
872 +# inttypes.m4 serial 1 (gettext-0.11.4)
873 +dnl Copyright (C) 1997-2002 Free Software Foundation, Inc.
874 +dnl This file is free software, distributed under the terms of the GNU
875 +dnl General Public License.  As a special exception to the GNU General
876 +dnl Public License, this file may be distributed as part of a program
877 +dnl that contains a configuration script generated by Autoconf, under
878 +dnl the same distribution terms as the rest of that program.
879 +
880 +dnl From Paul Eggert.
881 +
882 +# Define HAVE_INTTYPES_H if <inttypes.h> exists and doesn't clash with
883 +# <sys/types.h>.
884 +
885 +AC_DEFUN([gt_HEADER_INTTYPES_H],
886 +[
887 +  AC_CACHE_CHECK([for inttypes.h], gt_cv_header_inttypes_h,
888 +  [
889 +    AC_TRY_COMPILE(
890 +      [#include <sys/types.h>
891 +#include <inttypes.h>],
892 +      [], gt_cv_header_inttypes_h=yes, gt_cv_header_inttypes_h=no)
893 +  ])
894 +  if test $gt_cv_header_inttypes_h = yes; then
895 +    AC_DEFINE_UNQUOTED(HAVE_INTTYPES_H, 1,
896 +      [Define if <inttypes.h> exists and doesn't clash with <sys/types.h>.])
897 +  fi
898 +])
899 --- /dev/null
900 +++ centericq-4.9.7/m4/inttypes-pri.m4
901 @@ -0,0 +1,32 @@
902 +# inttypes-pri.m4 serial 1 (gettext-0.11.4)
903 +dnl Copyright (C) 1997-2002 Free Software Foundation, Inc.
904 +dnl This file is free software, distributed under the terms of the GNU
905 +dnl General Public License.  As a special exception to the GNU General
906 +dnl Public License, this file may be distributed as part of a program
907 +dnl that contains a configuration script generated by Autoconf, under
908 +dnl the same distribution terms as the rest of that program.
909 +
910 +dnl From Bruno Haible.
911 +
912 +# Define PRI_MACROS_BROKEN if <inttypes.h> exists and defines the PRI*
913 +# macros to non-string values.  This is the case on AIX 4.3.3.
914 +
915 +AC_DEFUN([gt_INTTYPES_PRI],
916 +[
917 +  AC_REQUIRE([gt_HEADER_INTTYPES_H])
918 +  if test $gt_cv_header_inttypes_h = yes; then
919 +    AC_CACHE_CHECK([whether the inttypes.h PRIxNN macros are broken],
920 +      gt_cv_inttypes_pri_broken,
921 +      [
922 +        AC_TRY_COMPILE([#include <inttypes.h>
923 +#ifdef PRId32
924 +char *p = PRId32;
925 +#endif
926 +], [], gt_cv_inttypes_pri_broken=no, gt_cv_inttypes_pri_broken=yes)
927 +      ])
928 +  fi
929 +  if test "$gt_cv_inttypes_pri_broken" = yes; then
930 +    AC_DEFINE_UNQUOTED(PRI_MACROS_BROKEN, 1,
931 +      [Define if <inttypes.h> exists and defines unusable PRI* macros.])
932 +  fi
933 +])
934 --- /dev/null
935 +++ centericq-4.9.7/m4/isc-posix.m4
936 @@ -0,0 +1,26 @@
937 +# isc-posix.m4 serial 2 (gettext-0.11.2)
938 +dnl Copyright (C) 1995-2002 Free Software Foundation, Inc.
939 +dnl This file is free software, distributed under the terms of the GNU
940 +dnl General Public License.  As a special exception to the GNU General
941 +dnl Public License, this file may be distributed as part of a program
942 +dnl that contains a configuration script generated by Autoconf, under
943 +dnl the same distribution terms as the rest of that program.
944 +
945 +# This file is not needed with autoconf-2.53 and newer.  Remove it in 2005.
946 +
947 +# This test replaces the one in autoconf.
948 +# Currently this macro should have the same name as the autoconf macro
949 +# because gettext's gettext.m4 (distributed in the automake package)
950 +# still uses it.  Otherwise, the use in gettext.m4 makes autoheader
951 +# give these diagnostics:
952 +#   configure.in:556: AC_TRY_COMPILE was called before AC_ISC_POSIX
953 +#   configure.in:556: AC_TRY_RUN was called before AC_ISC_POSIX
954 +
955 +undefine([AC_ISC_POSIX])
956 +
957 +AC_DEFUN([AC_ISC_POSIX],
958 +  [
959 +    dnl This test replaces the obsolescent AC_ISC_POSIX kludge.
960 +    AC_CHECK_LIB(cposix, strerror, [LIBS="$LIBS -lcposix"])
961 +  ]
962 +)
963 --- /dev/null
964 +++ centericq-4.9.7/m4/lcmessage.m4
965 @@ -0,0 +1,32 @@
966 +# lcmessage.m4 serial 3 (gettext-0.11.3)
967 +dnl Copyright (C) 1995-2002 Free Software Foundation, Inc.
968 +dnl This file is free software, distributed under the terms of the GNU
969 +dnl General Public License.  As a special exception to the GNU General
970 +dnl Public License, this file may be distributed as part of a program
971 +dnl that contains a configuration script generated by Autoconf, under
972 +dnl the same distribution terms as the rest of that program.
973 +dnl
974 +dnl This file can can be used in projects which are not available under
975 +dnl the GNU General Public License or the GNU Library General Public
976 +dnl License but which still want to provide support for the GNU gettext
977 +dnl functionality.
978 +dnl Please note that the actual code of the GNU gettext library is covered
979 +dnl by the GNU Library General Public License, and the rest of the GNU
980 +dnl gettext package package is covered by the GNU General Public License.
981 +dnl They are *not* in the public domain.
982 +
983 +dnl Authors:
984 +dnl   Ulrich Drepper <drepper@cygnus.com>, 1995.
985 +
986 +# Check whether LC_MESSAGES is available in <locale.h>.
987 +
988 +AC_DEFUN([AM_LC_MESSAGES],
989 +[
990 +  AC_CACHE_CHECK([for LC_MESSAGES], am_cv_val_LC_MESSAGES,
991 +    [AC_TRY_LINK([#include <locale.h>], [return LC_MESSAGES],
992 +       am_cv_val_LC_MESSAGES=yes, am_cv_val_LC_MESSAGES=no)])
993 +  if test $am_cv_val_LC_MESSAGES = yes; then
994 +    AC_DEFINE(HAVE_LC_MESSAGES, 1,
995 +      [Define if your <locale.h> file defines LC_MESSAGES.])
996 +  fi
997 +])
998 --- /dev/null
999 +++ centericq-4.9.7/m4/lib-ld.m4
1000 @@ -0,0 +1,97 @@
1001 +# lib-ld.m4 serial 1 (gettext-0.11)
1002 +dnl Copyright (C) 1996-2002 Free Software Foundation, Inc.
1003 +dnl This file is free software, distributed under the terms of the GNU
1004 +dnl General Public License.  As a special exception to the GNU General
1005 +dnl Public License, this file may be distributed as part of a program
1006 +dnl that contains a configuration script generated by Autoconf, under
1007 +dnl the same distribution terms as the rest of that program.
1008 +
1009 +dnl Subroutines of libtool.m4,
1010 +dnl with replacements s/AC_/AC_LIB/ and s/lt_cv/acl_cv/ to avoid collision
1011 +dnl with libtool.m4.
1012 +
1013 +dnl From libtool-1.4. Sets the variable with_gnu_ld to yes or no.
1014 +AC_DEFUN([AC_LIB_PROG_LD_GNU],
1015 +[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], acl_cv_prog_gnu_ld,
1016 +[# I'd rather use --version here, but apparently some GNU ld's only accept -v.
1017 +if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1018 +  acl_cv_prog_gnu_ld=yes
1019 +else
1020 +  acl_cv_prog_gnu_ld=no
1021 +fi])
1022 +with_gnu_ld=$acl_cv_prog_gnu_ld
1023 +])
1024 +
1025 +dnl From libtool-1.4. Sets the variable LD.
1026 +AC_DEFUN([AC_LIB_PROG_LD],
1027 +[AC_ARG_WITH(gnu-ld,
1028 +[  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]],
1029 +test "$withval" = no || with_gnu_ld=yes, with_gnu_ld=no)
1030 +AC_REQUIRE([AC_PROG_CC])dnl
1031 +AC_REQUIRE([AC_CANONICAL_HOST])dnl
1032 +ac_prog=ld
1033 +if test "$GCC" = yes; then
1034 +  # Check if gcc -print-prog-name=ld gives a path.
1035 +  AC_MSG_CHECKING([for ld used by GCC])
1036 +  case $host in
1037 +  *-*-mingw*)
1038 +    # gcc leaves a trailing carriage return which upsets mingw
1039 +    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1040 +  *)
1041 +    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1042 +  esac
1043 +  case $ac_prog in
1044 +    # Accept absolute paths.
1045 +    [[\\/]* | [A-Za-z]:[\\/]*)]
1046 +      [re_direlt='/[^/][^/]*/\.\./']
1047 +      # Canonicalize the path of ld
1048 +      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1049 +      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1050 +       ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1051 +      done
1052 +      test -z "$LD" && LD="$ac_prog"
1053 +      ;;
1054 +  "")
1055 +    # If it fails, then pretend we aren't using GCC.
1056 +    ac_prog=ld
1057 +    ;;
1058 +  *)
1059 +    # If it is relative, then search for the first ld in PATH.
1060 +    with_gnu_ld=unknown
1061 +    ;;
1062 +  esac
1063 +elif test "$with_gnu_ld" = yes; then
1064 +  AC_MSG_CHECKING([for GNU ld])
1065 +else
1066 +  AC_MSG_CHECKING([for non-GNU ld])
1067 +fi
1068 +AC_CACHE_VAL(acl_cv_path_LD,
1069 +[if test -z "$LD"; then
1070 +  IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1071 +  for ac_dir in $PATH; do
1072 +    test -z "$ac_dir" && ac_dir=.
1073 +    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1074 +      acl_cv_path_LD="$ac_dir/$ac_prog"
1075 +      # Check to see if the program is GNU ld.  I'd rather use --version,
1076 +      # but apparently some GNU ld's only accept -v.
1077 +      # Break only if it was the GNU/non-GNU ld that we prefer.
1078 +      if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1079 +       test "$with_gnu_ld" != no && break
1080 +      else
1081 +       test "$with_gnu_ld" != yes && break
1082 +      fi
1083 +    fi
1084 +  done
1085 +  IFS="$ac_save_ifs"
1086 +else
1087 +  acl_cv_path_LD="$LD" # Let the user override the test with a path.
1088 +fi])
1089 +LD="$acl_cv_path_LD"
1090 +if test -n "$LD"; then
1091 +  AC_MSG_RESULT($LD)
1092 +else
1093 +  AC_MSG_RESULT(no)
1094 +fi
1095 +test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
1096 +AC_LIB_PROG_LD_GNU
1097 +])
1098 --- /dev/null
1099 +++ centericq-4.9.7/m4/lib-link.m4
1100 @@ -0,0 +1,554 @@
1101 +# lib-link.m4 serial 3 (gettext-0.11.3)
1102 +dnl Copyright (C) 2001-2002 Free Software Foundation, Inc.
1103 +dnl This file is free software, distributed under the terms of the GNU
1104 +dnl General Public License.  As a special exception to the GNU General
1105 +dnl Public License, this file may be distributed as part of a program
1106 +dnl that contains a configuration script generated by Autoconf, under
1107 +dnl the same distribution terms as the rest of that program.
1108 +
1109 +dnl From Bruno Haible.
1110 +
1111 +dnl AC_LIB_LINKFLAGS(name [, dependencies]) searches for libname and
1112 +dnl the libraries corresponding to explicit and implicit dependencies.
1113 +dnl Sets and AC_SUBSTs the LIB${NAME} and LTLIB${NAME} variables and
1114 +dnl augments the CPPFLAGS variable.
1115 +AC_DEFUN([AC_LIB_LINKFLAGS],
1116 +[
1117 +  AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
1118 +  AC_REQUIRE([AC_LIB_RPATH])
1119 +  define([Name],[translit([$1],[./-], [___])])
1120 +  define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-],
1121 +                               [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])])
1122 +  AC_CACHE_CHECK([how to link with lib[]$1], [ac_cv_lib[]Name[]_libs], [
1123 +    AC_LIB_LINKFLAGS_BODY([$1], [$2])
1124 +    ac_cv_lib[]Name[]_libs="$LIB[]NAME"
1125 +    ac_cv_lib[]Name[]_ltlibs="$LTLIB[]NAME"
1126 +    ac_cv_lib[]Name[]_cppflags="$INC[]NAME"
1127 +  ])
1128 +  LIB[]NAME="$ac_cv_lib[]Name[]_libs"
1129 +  LTLIB[]NAME="$ac_cv_lib[]Name[]_ltlibs"
1130 +  INC[]NAME="$ac_cv_lib[]Name[]_cppflags"
1131 +  AC_LIB_APPENDTOVAR([CPPFLAGS], [$INC]NAME)
1132 +  AC_SUBST([LIB]NAME)
1133 +  AC_SUBST([LTLIB]NAME)
1134 +  dnl Also set HAVE_LIB[]NAME so that AC_LIB_HAVE_LINKFLAGS can reuse the
1135 +  dnl results of this search when this library appears as a dependency.
1136 +  HAVE_LIB[]NAME=yes
1137 +  undefine([Name])
1138 +  undefine([NAME])
1139 +])
1140 +
1141 +dnl AC_LIB_HAVE_LINKFLAGS(name, dependencies, includes, testcode)
1142 +dnl searches for libname and the libraries corresponding to explicit and
1143 +dnl implicit dependencies, together with the specified include files and
1144 +dnl the ability to compile and link the specified testcode. If found, it
1145 +dnl sets and AC_SUBSTs HAVE_LIB${NAME}=yes and the LIB${NAME} and
1146 +dnl LTLIB${NAME} variables and augments the CPPFLAGS variable, and
1147 +dnl #defines HAVE_LIB${NAME} to 1. Otherwise, it sets and AC_SUBSTs
1148 +dnl HAVE_LIB${NAME}=no and LIB${NAME} and LTLIB${NAME} to empty.
1149 +AC_DEFUN([AC_LIB_HAVE_LINKFLAGS],
1150 +[
1151 +  AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
1152 +  AC_REQUIRE([AC_LIB_RPATH])
1153 +  define([Name],[translit([$1],[./-], [___])])
1154 +  define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-],
1155 +                               [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])])
1156 +
1157 +  dnl Search for lib[]Name and define LIB[]NAME, LTLIB[]NAME and INC[]NAME
1158 +  dnl accordingly.
1159 +  AC_LIB_LINKFLAGS_BODY([$1], [$2])
1160 +
1161 +  dnl Add $INC[]NAME to CPPFLAGS before performing the following checks,
1162 +  dnl because if the user has installed lib[]Name and not disabled its use
1163 +  dnl via --without-lib[]Name-prefix, he wants to use it.
1164 +  ac_save_CPPFLAGS="$CPPFLAGS"
1165 +  AC_LIB_APPENDTOVAR([CPPFLAGS], [$INC]NAME)
1166 +
1167 +  AC_CACHE_CHECK([for lib[]$1], [ac_cv_lib[]Name], [
1168 +    ac_save_LIBS="$LIBS"
1169 +    LIBS="$LIBS $LIB[]NAME"
1170 +    AC_TRY_LINK([$3], [$4], [ac_cv_lib[]Name=yes], [ac_cv_lib[]Name=no])
1171 +    LIBS="$ac_save_LIBS"
1172 +  ])
1173 +  if test "$ac_cv_lib[]Name" = yes; then
1174 +    HAVE_LIB[]NAME=yes
1175 +    AC_DEFINE([HAVE_LIB]NAME, 1, [Define if you have the $1 library.])
1176 +    AC_MSG_CHECKING([how to link with lib[]$1])
1177 +    AC_MSG_RESULT([$LIB[]NAME])
1178 +  else
1179 +    HAVE_LIB[]NAME=no
1180 +    dnl If $LIB[]NAME didn't lead to a usable library, we don't need
1181 +    dnl $INC[]NAME either.
1182 +    CPPFLAGS="$ac_save_CPPFLAGS"
1183 +    LIB[]NAME=
1184 +    LTLIB[]NAME=
1185 +  fi
1186 +  AC_SUBST([HAVE_LIB]NAME)
1187 +  AC_SUBST([LIB]NAME)
1188 +  AC_SUBST([LTLIB]NAME)
1189 +  undefine([Name])
1190 +  undefine([NAME])
1191 +])
1192 +
1193 +dnl Determine the platform dependent parameters needed to use rpath:
1194 +dnl libext, shlibext, hardcode_libdir_flag_spec, hardcode_libdir_separator,
1195 +dnl hardcode_direct, hardcode_minus_L,
1196 +dnl sys_lib_search_path_spec, sys_lib_dlsearch_path_spec.
1197 +AC_DEFUN([AC_LIB_RPATH],
1198 +[
1199 +  AC_REQUIRE([AC_PROG_CC])                dnl we use $CC, $GCC, $LDFLAGS
1200 +  AC_REQUIRE([AC_LIB_PROG_LD])            dnl we use $LD, $with_gnu_ld
1201 +  AC_REQUIRE([AC_CANONICAL_HOST])         dnl we use $host
1202 +  AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT]) dnl we use $ac_aux_dir
1203 +  AC_CACHE_CHECK([for shared library run path origin], acl_cv_rpath, [
1204 +    CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
1205 +    ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
1206 +    . ./conftest.sh
1207 +    rm -f ./conftest.sh
1208 +    acl_cv_rpath=done
1209 +  ])
1210 +  wl="$acl_cv_wl"
1211 +  libext="$acl_cv_libext"
1212 +  shlibext="$acl_cv_shlibext"
1213 +  hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
1214 +  hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
1215 +  hardcode_direct="$acl_cv_hardcode_direct"
1216 +  hardcode_minus_L="$acl_cv_hardcode_minus_L"
1217 +  sys_lib_search_path_spec="$acl_cv_sys_lib_search_path_spec"
1218 +  sys_lib_dlsearch_path_spec="$acl_cv_sys_lib_dlsearch_path_spec"
1219 +  dnl Determine whether the user wants rpath handling at all.
1220 +  AC_ARG_ENABLE(rpath,
1221 +    [  --disable-rpath         do not hardcode runtime library paths],
1222 +    :, enable_rpath=yes)
1223 +])
1224 +
1225 +dnl AC_LIB_LINKFLAGS_BODY(name [, dependencies]) searches for libname and
1226 +dnl the libraries corresponding to explicit and implicit dependencies.
1227 +dnl Sets the LIB${NAME}, LTLIB${NAME} and INC${NAME} variables.
1228 +AC_DEFUN([AC_LIB_LINKFLAGS_BODY],
1229 +[
1230 +  define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-],
1231 +                               [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])])
1232 +  dnl By default, look in $includedir and $libdir.
1233 +  use_additional=yes
1234 +  AC_LIB_WITH_FINAL_PREFIX([
1235 +    eval additional_includedir=\"$includedir\"
1236 +    eval additional_libdir=\"$libdir\"
1237 +  ])
1238 +  AC_ARG_WITH([lib$1-prefix],
1239 +[  --with-lib$1-prefix[=DIR]  search for lib$1 in DIR/include and DIR/lib
1240 +  --without-lib$1-prefix     don't search for lib$1 in includedir and libdir],
1241 +[
1242 +    if test "X$withval" = "Xno"; then
1243 +      use_additional=no
1244 +    else
1245 +      if test "X$withval" = "X"; then
1246 +        AC_LIB_WITH_FINAL_PREFIX([
1247 +          eval additional_includedir=\"$includedir\"
1248 +          eval additional_libdir=\"$libdir\"
1249 +        ])
1250 +      else
1251 +        additional_includedir="$withval/include"
1252 +        additional_libdir="$withval/lib"
1253 +      fi
1254 +    fi
1255 +])
1256 +  dnl Search the library and its dependencies in $additional_libdir and
1257 +  dnl $LDFLAGS. Using breadth-first-seach.
1258 +  LIB[]NAME=
1259 +  LTLIB[]NAME=
1260 +  INC[]NAME=
1261 +  rpathdirs=
1262 +  ltrpathdirs=
1263 +  names_already_handled=
1264 +  names_next_round='$1 $2'
1265 +  while test -n "$names_next_round"; do
1266 +    names_this_round="$names_next_round"
1267 +    names_next_round=
1268 +    for name in $names_this_round; do
1269 +      already_handled=
1270 +      for n in $names_already_handled; do
1271 +        if test "$n" = "$name"; then
1272 +          already_handled=yes
1273 +          break
1274 +        fi
1275 +      done
1276 +      if test -z "$already_handled"; then
1277 +        names_already_handled="$names_already_handled $name"
1278 +        dnl See if it was already located by an earlier AC_LIB_LINKFLAGS
1279 +        dnl or AC_LIB_HAVE_LINKFLAGS call.
1280 +        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
1281 +        eval value=\"\$HAVE_LIB$uppername\"
1282 +        if test -n "$value"; then
1283 +          if test "$value" = yes; then
1284 +            eval value=\"\$LIB$uppername\"
1285 +            test -z "$value" || LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$value"
1286 +            eval value=\"\$LTLIB$uppername\"
1287 +            test -z "$value" || LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }$value"
1288 +          else
1289 +            dnl An earlier call to AC_LIB_HAVE_LINKFLAGS has determined
1290 +            dnl that this library doesn't exist. So just drop it.
1291 +            :
1292 +          fi
1293 +        else
1294 +          dnl Search the library lib$name in $additional_libdir and $LDFLAGS
1295 +          dnl and the already constructed $LIBNAME/$LTLIBNAME.
1296 +          found_dir=
1297 +          found_la=
1298 +          found_so=
1299 +          found_a=
1300 +          if test $use_additional = yes; then
1301 +            if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
1302 +              found_dir="$additional_libdir"
1303 +              found_so="$additional_libdir/lib$name.$shlibext"
1304 +              if test -f "$additional_libdir/lib$name.la"; then
1305 +                found_la="$additional_libdir/lib$name.la"
1306 +              fi
1307 +            else
1308 +              if test -f "$additional_libdir/lib$name.$libext"; then
1309 +                found_dir="$additional_libdir"
1310 +                found_a="$additional_libdir/lib$name.$libext"
1311 +                if test -f "$additional_libdir/lib$name.la"; then
1312 +                  found_la="$additional_libdir/lib$name.la"
1313 +                fi
1314 +              fi
1315 +            fi
1316 +          fi
1317 +          if test "X$found_dir" = "X"; then
1318 +            for x in $LDFLAGS $LTLIB[]NAME; do
1319 +              AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
1320 +              case "$x" in
1321 +                -L*)
1322 +                  dir=`echo "X$x" | sed -e 's/^X-L//'`
1323 +                  if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
1324 +                    found_dir="$dir"
1325 +                    found_so="$dir/lib$name.$shlibext"
1326 +                    if test -f "$dir/lib$name.la"; then
1327 +                      found_la="$dir/lib$name.la"
1328 +                    fi
1329 +                  else
1330 +                    if test -f "$dir/lib$name.$libext"; then
1331 +                      found_dir="$dir"
1332 +                      found_a="$dir/lib$name.$libext"
1333 +                      if test -f "$dir/lib$name.la"; then
1334 +                        found_la="$dir/lib$name.la"
1335 +                      fi
1336 +                    fi
1337 +                  fi
1338 +                  ;;
1339 +              esac
1340 +              if test "X$found_dir" != "X"; then
1341 +                break
1342 +              fi
1343 +            done
1344 +          fi
1345 +          if test "X$found_dir" != "X"; then
1346 +            dnl Found the library.
1347 +            LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-L$found_dir -l$name"
1348 +            if test "X$found_so" != "X"; then
1349 +              dnl Linking with a shared library. We attempt to hardcode its
1350 +              dnl directory into the executable's runpath, unless it's the
1351 +              dnl standard /usr/lib.
1352 +              if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
1353 +                dnl No hardcoding is needed.
1354 +                LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
1355 +              else
1356 +                dnl Use an explicit option to hardcode DIR into the resulting
1357 +                dnl binary.
1358 +                dnl Potentially add DIR to ltrpathdirs.
1359 +                dnl The ltrpathdirs will be appended to $LTLIBNAME at the end.
1360 +                haveit=
1361 +                for x in $ltrpathdirs; do
1362 +                  if test "X$x" = "X$found_dir"; then
1363 +                    haveit=yes
1364 +                    break
1365 +                  fi
1366 +                done
1367 +                if test -z "$haveit"; then
1368 +                  ltrpathdirs="$ltrpathdirs $found_dir"
1369 +                fi
1370 +                dnl The hardcoding into $LIBNAME is system dependent.
1371 +                if test "$hardcode_direct" = yes; then
1372 +                  dnl Using DIR/libNAME.so during linking hardcodes DIR into the
1373 +                  dnl resulting binary.
1374 +                  LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
1375 +                else
1376 +                  if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
1377 +                    dnl Use an explicit option to hardcode DIR into the resulting
1378 +                    dnl binary.
1379 +                    LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
1380 +                    dnl Potentially add DIR to rpathdirs.
1381 +                    dnl The rpathdirs will be appended to $LIBNAME at the end.
1382 +                    haveit=
1383 +                    for x in $rpathdirs; do
1384 +                      if test "X$x" = "X$found_dir"; then
1385 +                        haveit=yes
1386 +                        break
1387 +                      fi
1388 +                    done
1389 +                    if test -z "$haveit"; then
1390 +                      rpathdirs="$rpathdirs $found_dir"
1391 +                    fi
1392 +                  else
1393 +                    dnl Rely on "-L$found_dir".
1394 +                    dnl But don't add it if it's already contained in the LDFLAGS
1395 +                    dnl or the already constructed $LIBNAME
1396 +                    haveit=
1397 +                    for x in $LDFLAGS $LIB[]NAME; do
1398 +                      AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
1399 +                      if test "X$x" = "X-L$found_dir"; then
1400 +                        haveit=yes
1401 +                        break
1402 +                      fi
1403 +                    done
1404 +                    if test -z "$haveit"; then
1405 +                      LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$found_dir"
1406 +                    fi
1407 +                    if test "$hardcode_minus_L" != no; then
1408 +                      dnl FIXME: Not sure whether we should use
1409 +                      dnl "-L$found_dir -l$name" or "-L$found_dir $found_so"
1410 +                      dnl here.
1411 +                      LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
1412 +                    else
1413 +                      dnl We cannot use $hardcode_runpath_var and LD_RUN_PATH
1414 +                      dnl here, because this doesn't fit in flags passed to the
1415 +                      dnl compiler. So give up. No hardcoding. This affects only
1416 +                      dnl very old systems.
1417 +                      dnl FIXME: Not sure whether we should use
1418 +                      dnl "-L$found_dir -l$name" or "-L$found_dir $found_so"
1419 +                      dnl here.
1420 +                      LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-l$name"
1421 +                    fi
1422 +                  fi
1423 +                fi
1424 +              fi
1425 +            else
1426 +              if test "X$found_a" != "X"; then
1427 +                dnl Linking with a static library.
1428 +                LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_a"
1429 +              else
1430 +                dnl We shouldn't come here, but anyway it's good to have a
1431 +                dnl fallback.
1432 +                LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$found_dir -l$name"
1433 +              fi
1434 +            fi
1435 +            dnl Assume the include files are nearby.
1436 +            additional_includedir=
1437 +            case "$found_dir" in
1438 +              */lib | */lib/)
1439 +                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
1440 +                additional_includedir="$basedir/include"
1441 +                ;;
1442 +            esac
1443 +            if test "X$additional_includedir" != "X"; then
1444 +              dnl Potentially add $additional_includedir to $INCNAME.
1445 +              dnl But don't add it
1446 +              dnl   1. if it's the standard /usr/include,
1447 +              dnl   2. if it's /usr/local/include and we are using GCC on Linux,
1448 +              dnl   3. if it's already present in $CPPFLAGS or the already
1449 +              dnl      constructed $INCNAME,
1450 +              dnl   4. if it doesn't exist as a directory.
1451 +              if test "X$additional_includedir" != "X/usr/include"; then
1452 +                haveit=
1453 +                if test "X$additional_includedir" = "X/usr/local/include"; then
1454 +                  if test -n "$GCC"; then
1455 +                    case $host_os in
1456 +                      linux*) haveit=yes;;
1457 +                    esac
1458 +                  fi
1459 +                fi
1460 +                if test -z "$haveit"; then
1461 +                  for x in $CPPFLAGS $INC[]NAME; do
1462 +                    AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
1463 +                    if test "X$x" = "X-I$additional_includedir"; then
1464 +                      haveit=yes
1465 +                      break
1466 +                    fi
1467 +                  done
1468 +                  if test -z "$haveit"; then
1469 +                    if test -d "$additional_includedir"; then
1470 +                      dnl Really add $additional_includedir to $INCNAME.
1471 +                      INC[]NAME="${INC[]NAME}${INC[]NAME:+ }-I$additional_includedir"
1472 +                    fi
1473 +                  fi
1474 +                fi
1475 +              fi
1476 +            fi
1477 +            dnl Look for dependencies.
1478 +            if test -n "$found_la"; then
1479 +              dnl Read the .la file. It defines the variables
1480 +              dnl dlname, library_names, old_library, dependency_libs, current,
1481 +              dnl age, revision, installed, dlopen, dlpreopen, libdir.
1482 +              save_libdir="$libdir"
1483 +              case "$found_la" in
1484 +                */* | *\\*) . "$found_la" ;;
1485 +                *) . "./$found_la" ;;
1486 +              esac
1487 +              libdir="$save_libdir"
1488 +              dnl We use only dependency_libs.
1489 +              for dep in $dependency_libs; do
1490 +                case "$dep" in
1491 +                  -L*)
1492 +                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
1493 +                    dnl Potentially add $additional_libdir to $LIBNAME and $LTLIBNAME.
1494 +                    dnl But don't add it
1495 +                    dnl   1. if it's the standard /usr/lib,
1496 +                    dnl   2. if it's /usr/local/lib and we are using GCC on Linux,
1497 +                    dnl   3. if it's already present in $LDFLAGS or the already
1498 +                    dnl      constructed $LIBNAME,
1499 +                    dnl   4. if it doesn't exist as a directory.
1500 +                    if test "X$additional_libdir" != "X/usr/lib"; then
1501 +                      haveit=
1502 +                      if test "X$additional_libdir" = "X/usr/local/lib"; then
1503 +                        if test -n "$GCC"; then
1504 +                          case $host_os in
1505 +                            linux*) haveit=yes;;
1506 +                          esac
1507 +                        fi
1508 +                      fi
1509 +                      if test -z "$haveit"; then
1510 +                        haveit=
1511 +                        for x in $LDFLAGS $LIB[]NAME; do
1512 +                          AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
1513 +                          if test "X$x" = "X-L$additional_libdir"; then
1514 +                            haveit=yes
1515 +                            break
1516 +                          fi
1517 +                        done
1518 +                        if test -z "$haveit"; then
1519 +                          if test -d "$additional_libdir"; then
1520 +                            dnl Really add $additional_libdir to $LIBNAME.
1521 +                            LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$additional_libdir"
1522 +                          fi
1523 +                        fi
1524 +                        haveit=
1525 +                        for x in $LDFLAGS $LTLIB[]NAME; do
1526 +                          AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
1527 +                          if test "X$x" = "X-L$additional_libdir"; then
1528 +                            haveit=yes
1529 +                            break
1530 +                          fi
1531 +                        done
1532 +                        if test -z "$haveit"; then
1533 +                          if test -d "$additional_libdir"; then
1534 +                            dnl Really add $additional_libdir to $LTLIBNAME.
1535 +                            LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-L$additional_libdir"
1536 +                          fi
1537 +                        fi
1538 +                      fi
1539 +                    fi
1540 +                    ;;
1541 +                  -R*)
1542 +                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
1543 +                    if test "$enable_rpath" != no; then
1544 +                      dnl Potentially add DIR to rpathdirs.
1545 +                      dnl The rpathdirs will be appended to $LIBNAME at the end.
1546 +                      haveit=
1547 +                      for x in $rpathdirs; do
1548 +                        if test "X$x" = "X$dir"; then
1549 +                          haveit=yes
1550 +                          break
1551 +                        fi
1552 +                      done
1553 +                      if test -z "$haveit"; then
1554 +                        rpathdirs="$rpathdirs $dir"
1555 +                      fi
1556 +                      dnl Potentially add DIR to ltrpathdirs.
1557 +                      dnl The ltrpathdirs will be appended to $LTLIBNAME at the end.
1558 +                      haveit=
1559 +                      for x in $ltrpathdirs; do
1560 +                        if test "X$x" = "X$dir"; then
1561 +                          haveit=yes
1562 +                          break
1563 +                        fi
1564 +                      done
1565 +                      if test -z "$haveit"; then
1566 +                        ltrpathdirs="$ltrpathdirs $dir"
1567 +                      fi
1568 +                    fi
1569 +                    ;;
1570 +                  -l*)
1571 +                    dnl Handle this in the next round.
1572 +                    names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
1573 +                    ;;
1574 +                  *.la)
1575 +                    dnl Handle this in the next round. Throw away the .la's
1576 +                    dnl directory; it is already contained in a preceding -L
1577 +                    dnl option.
1578 +                    names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
1579 +                    ;;
1580 +                  *)
1581 +                    dnl Most likely an immediate library name.
1582 +                    LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$dep"
1583 +                    LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }$dep"
1584 +                    ;;
1585 +                esac
1586 +              done
1587 +            fi
1588 +          else
1589 +            dnl Didn't find the library; assume it is in the system directories
1590 +            dnl known to the linker and runtime loader. (All the system
1591 +            dnl directories known to the linker should also be known to the
1592 +            dnl runtime loader, otherwise the system is severely misconfigured.)
1593 +            LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-l$name"
1594 +            LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-l$name"
1595 +          fi
1596 +        fi
1597 +      fi
1598 +    done
1599 +  done
1600 +  if test "X$rpathdirs" != "X"; then
1601 +    if test -n "$hardcode_libdir_separator"; then
1602 +      dnl Weird platform: only the last -rpath option counts, the user must
1603 +      dnl pass all path elements in one option. We can arrange that for a
1604 +      dnl single library, but not when more than one $LIBNAMEs are used.
1605 +      alldirs=
1606 +      for found_dir in $rpathdirs; do
1607 +        alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
1608 +      done
1609 +      dnl Note: hardcode_libdir_flag_spec uses $libdir and $wl.
1610 +      acl_save_libdir="$libdir"
1611 +      libdir="$alldirs"
1612 +      eval flag=\"$hardcode_libdir_flag_spec\"
1613 +      libdir="$acl_save_libdir"
1614 +      LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$flag"
1615 +    else
1616 +      dnl The -rpath options are cumulative.
1617 +      for found_dir in $rpathdirs; do
1618 +        acl_save_libdir="$libdir"
1619 +        libdir="$found_dir"
1620 +        eval flag=\"$hardcode_libdir_flag_spec\"
1621 +        libdir="$acl_save_libdir"
1622 +        LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$flag"
1623 +      done
1624 +    fi
1625 +  fi
1626 +  if test "X$ltrpathdirs" != "X"; then
1627 +    dnl When using libtool, the option that works for both libraries and
1628 +    dnl executables is -R. The -R options are cumulative.
1629 +    for found_dir in $ltrpathdirs; do
1630 +      LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-R$found_dir"
1631 +    done
1632 +  fi
1633 +])
1634 +
1635 +dnl AC_LIB_APPENDTOVAR(VAR, CONTENTS) appends the elements of CONTENTS to VAR,
1636 +dnl unless already present in VAR.
1637 +dnl Works only for CPPFLAGS, not for LIB* variables because that sometimes
1638 +dnl contains two or three consecutive elements that belong together.
1639 +AC_DEFUN([AC_LIB_APPENDTOVAR],
1640 +[
1641 +  for element in [$2]; do
1642 +    haveit=
1643 +    for x in $[$1]; do
1644 +      AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
1645 +      if test "X$x" = "X$element"; then
1646 +        haveit=yes
1647 +        break
1648 +      fi
1649 +    done
1650 +    if test -z "$haveit"; then
1651 +      [$1]="${[$1]}${[$1]:+ }$element"
1652 +    fi
1653 +  done
1654 +])
1655 --- /dev/null
1656 +++ centericq-4.9.7/m4/lib-prefix.m4
1657 @@ -0,0 +1,148 @@
1658 +# lib-prefix.m4 serial 1 (gettext-0.11)
1659 +dnl Copyright (C) 2001-2002 Free Software Foundation, Inc.
1660 +dnl This file is free software, distributed under the terms of the GNU
1661 +dnl General Public License.  As a special exception to the GNU General
1662 +dnl Public License, this file may be distributed as part of a program
1663 +dnl that contains a configuration script generated by Autoconf, under
1664 +dnl the same distribution terms as the rest of that program.
1665 +
1666 +dnl From Bruno Haible.
1667 +
1668 +dnl AC_LIB_PREFIX adds to the CPPFLAGS and LDFLAGS the flags that are needed
1669 +dnl to access previously installed libraries. The basic assumption is that
1670 +dnl a user will want packages to use other packages he previously installed
1671 +dnl with the same --prefix option.
1672 +dnl This macro is not needed if only AC_LIB_LINKFLAGS is used to locate
1673 +dnl libraries, but is otherwise very convenient.
1674 +AC_DEFUN([AC_LIB_PREFIX],
1675 +[
1676 +  AC_BEFORE([$0], [AC_LIB_LINKFLAGS])
1677 +  AC_REQUIRE([AC_PROG_CC])
1678 +  AC_REQUIRE([AC_CANONICAL_HOST])
1679 +  AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
1680 +  dnl By default, look in $includedir and $libdir.
1681 +  use_additional=yes
1682 +  AC_LIB_WITH_FINAL_PREFIX([
1683 +    eval additional_includedir=\"$includedir\"
1684 +    eval additional_libdir=\"$libdir\"
1685 +  ])
1686 +  AC_ARG_WITH([lib-prefix],
1687 +[  --with-lib-prefix[=DIR] search for libraries in DIR/include and DIR/lib
1688 +  --without-lib-prefix    don't search for libraries in includedir and libdir],
1689 +[
1690 +    if test "X$withval" = "Xno"; then
1691 +      use_additional=no
1692 +    else
1693 +      if test "X$withval" = "X"; then
1694 +        AC_LIB_WITH_FINAL_PREFIX([
1695 +          eval additional_includedir=\"$includedir\"
1696 +          eval additional_libdir=\"$libdir\"
1697 +        ])
1698 +      else
1699 +        additional_includedir="$withval/include"
1700 +        additional_libdir="$withval/lib"
1701 +      fi
1702 +    fi
1703 +])
1704 +  if test $use_additional = yes; then
1705 +    dnl Potentially add $additional_includedir to $CPPFLAGS.
1706 +    dnl But don't add it
1707 +    dnl   1. if it's the standard /usr/include,
1708 +    dnl   2. if it's already present in $CPPFLAGS,
1709 +    dnl   3. if it's /usr/local/include and we are using GCC on Linux,
1710 +    dnl   4. if it doesn't exist as a directory.
1711 +    if test "X$additional_includedir" != "X/usr/include"; then
1712 +      haveit=
1713 +      for x in $CPPFLAGS; do
1714 +        AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
1715 +        if test "X$x" = "X-I$additional_includedir"; then
1716 +          haveit=yes
1717 +          break
1718 +        fi
1719 +      done
1720 +      if test -z "$haveit"; then
1721 +        if test "X$additional_includedir" = "X/usr/local/include"; then
1722 +          if test -n "$GCC"; then
1723 +            case $host_os in
1724 +              linux*) haveit=yes;;
1725 +            esac
1726 +          fi
1727 +        fi
1728 +        if test -z "$haveit"; then
1729 +          if test -d "$additional_includedir"; then
1730 +            dnl Really add $additional_includedir to $CPPFLAGS.
1731 +            CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }-I$additional_includedir"
1732 +          fi
1733 +        fi
1734 +      fi
1735 +    fi
1736 +    dnl Potentially add $additional_libdir to $LDFLAGS.
1737 +    dnl But don't add it
1738 +    dnl   1. if it's the standard /usr/lib,
1739 +    dnl   2. if it's already present in $LDFLAGS,
1740 +    dnl   3. if it's /usr/local/lib and we are using GCC on Linux,
1741 +    dnl   4. if it doesn't exist as a directory.
1742 +    if test "X$additional_libdir" != "X/usr/lib"; then
1743 +      haveit=
1744 +      for x in $LDFLAGS; do
1745 +        AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
1746 +        if test "X$x" = "X-L$additional_libdir"; then
1747 +          haveit=yes
1748 +          break
1749 +        fi
1750 +      done
1751 +      if test -z "$haveit"; then
1752 +        if test "X$additional_libdir" = "X/usr/local/lib"; then
1753 +          if test -n "$GCC"; then
1754 +            case $host_os in
1755 +              linux*) haveit=yes;;
1756 +            esac
1757 +          fi
1758 +        fi
1759 +        if test -z "$haveit"; then
1760 +          if test -d "$additional_libdir"; then
1761 +            dnl Really add $additional_libdir to $LDFLAGS.
1762 +            LDFLAGS="${LDFLAGS}${LDFLAGS:+ }-L$additional_libdir"
1763 +          fi
1764 +        fi
1765 +      fi
1766 +    fi
1767 +  fi
1768 +])
1769 +
1770 +dnl AC_LIB_PREPARE_PREFIX creates variables acl_final_prefix,
1771 +dnl acl_final_exec_prefix, containing the values to which $prefix and
1772 +dnl $exec_prefix will expand at the end of the configure script.
1773 +AC_DEFUN([AC_LIB_PREPARE_PREFIX],
1774 +[
1775 +  dnl Unfortunately, prefix and exec_prefix get only finally determined
1776 +  dnl at the end of configure.
1777 +  if test "X$prefix" = "XNONE"; then
1778 +    acl_final_prefix="$ac_default_prefix"
1779 +  else
1780 +    acl_final_prefix="$prefix"
1781 +  fi
1782 +  if test "X$exec_prefix" = "XNONE"; then
1783 +    acl_final_exec_prefix='${prefix}'
1784 +  else
1785 +    acl_final_exec_prefix="$exec_prefix"
1786 +  fi
1787 +  acl_save_prefix="$prefix"
1788 +  prefix="$acl_final_prefix"
1789 +  eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
1790 +  prefix="$acl_save_prefix"
1791 +])
1792 +
1793 +dnl AC_LIB_WITH_FINAL_PREFIX([statement]) evaluates statement, with the
1794 +dnl variables prefix and exec_prefix bound to the values they will have
1795 +dnl at the end of the configure script.
1796 +AC_DEFUN([AC_LIB_WITH_FINAL_PREFIX],
1797 +[
1798 +  acl_save_prefix="$prefix"
1799 +  prefix="$acl_final_prefix"
1800 +  acl_save_exec_prefix="$exec_prefix"
1801 +  exec_prefix="$acl_final_exec_prefix"
1802 +  $1
1803 +  exec_prefix="$acl_save_exec_prefix"
1804 +  prefix="$acl_save_prefix"
1805 +])
1806 --- /dev/null
1807 +++ centericq-4.9.7/m4/progtest.m4
1808 @@ -0,0 +1,59 @@
1809 +# progtest.m4 serial 2 (gettext-0.10.40)
1810 +dnl Copyright (C) 1996-2002 Free Software Foundation, Inc.
1811 +dnl This file is free software, distributed under the terms of the GNU
1812 +dnl General Public License.  As a special exception to the GNU General
1813 +dnl Public License, this file may be distributed as part of a program
1814 +dnl that contains a configuration script generated by Autoconf, under
1815 +dnl the same distribution terms as the rest of that program.
1816 +dnl
1817 +dnl This file can can be used in projects which are not available under
1818 +dnl the GNU General Public License or the GNU Library General Public
1819 +dnl License but which still want to provide support for the GNU gettext
1820 +dnl functionality.
1821 +dnl Please note that the actual code of the GNU gettext library is covered
1822 +dnl by the GNU Library General Public License, and the rest of the GNU
1823 +dnl gettext package package is covered by the GNU General Public License.
1824 +dnl They are *not* in the public domain.
1825 +
1826 +dnl Authors:
1827 +dnl   Ulrich Drepper <drepper@cygnus.com>, 1996.
1828 +
1829 +# Search path for a program which passes the given test.
1830 +
1831 +dnl AM_PATH_PROG_WITH_TEST(VARIABLE, PROG-TO-CHECK-FOR,
1832 +dnl   TEST-PERFORMED-ON-FOUND_PROGRAM [, VALUE-IF-NOT-FOUND [, PATH]])
1833 +AC_DEFUN([AM_PATH_PROG_WITH_TEST],
1834 +[# Extract the first word of "$2", so it can be a program name with args.
1835 +set dummy $2; ac_word=[$]2
1836 +AC_MSG_CHECKING([for $ac_word])
1837 +AC_CACHE_VAL(ac_cv_path_$1,
1838 +[case "[$]$1" in
1839 +  /*)
1840 +  ac_cv_path_$1="[$]$1" # Let the user override the test with a path.
1841 +  ;;
1842 +  *)
1843 +  IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1844 +  for ac_dir in ifelse([$5], , $PATH, [$5]); do
1845 +    test -z "$ac_dir" && ac_dir=.
1846 +    if test -f $ac_dir/$ac_word; then
1847 +      if [$3]; then
1848 +       ac_cv_path_$1="$ac_dir/$ac_word"
1849 +       break
1850 +      fi
1851 +    fi
1852 +  done
1853 +  IFS="$ac_save_ifs"
1854 +dnl If no 4th arg is given, leave the cache variable unset,
1855 +dnl so AC_PATH_PROGS will keep looking.
1856 +ifelse([$4], , , [  test -z "[$]ac_cv_path_$1" && ac_cv_path_$1="$4"
1857 +])dnl
1858 +  ;;
1859 +esac])dnl
1860 +$1="$ac_cv_path_$1"
1861 +if test ifelse([$4], , [-n "[$]$1"], ["[$]$1" != "$4"]); then
1862 +  AC_MSG_RESULT([$]$1)
1863 +else
1864 +  AC_MSG_RESULT(no)
1865 +fi
1866 +AC_SUBST($1)dnl
1867 +])
1868 --- /dev/null
1869 +++ centericq-4.9.7/m4/stdint_h.m4
1870 @@ -0,0 +1,28 @@
1871 +# stdint_h.m4 serial 2 (gettext-0.11.4)
1872 +dnl Copyright (C) 1997-2002 Free Software Foundation, Inc.
1873 +dnl This file is free software, distributed under the terms of the GNU
1874 +dnl General Public License.  As a special exception to the GNU General
1875 +dnl Public License, this file may be distributed as part of a program
1876 +dnl that contains a configuration script generated by Autoconf, under
1877 +dnl the same distribution terms as the rest of that program.
1878 +
1879 +dnl From Paul Eggert.
1880 +
1881 +# Define HAVE_STDINT_H_WITH_UINTMAX if <stdint.h> exists,
1882 +# doesn't clash with <sys/types.h>, and declares uintmax_t.
1883 +
1884 +AC_DEFUN([jm_AC_HEADER_STDINT_H],
1885 +[
1886 +  AC_CACHE_CHECK([for stdint.h], jm_ac_cv_header_stdint_h,
1887 +  [AC_TRY_COMPILE(
1888 +    [#include <sys/types.h>
1889 +#include <stdint.h>],
1890 +    [uintmax_t i = (uintmax_t) -1;],
1891 +    jm_ac_cv_header_stdint_h=yes,
1892 +    jm_ac_cv_header_stdint_h=no)])
1893 +  if test $jm_ac_cv_header_stdint_h = yes; then
1894 +    AC_DEFINE_UNQUOTED(HAVE_STDINT_H_WITH_UINTMAX, 1,
1895 +[Define if <stdint.h> exists, doesn't clash with <sys/types.h>,
1896 +   and declares uintmax_t. ])
1897 +  fi
1898 +])
1899 --- /dev/null
1900 +++ centericq-4.9.7/m4/uintmax_t.m4
1901 @@ -0,0 +1,29 @@
1902 +# uintmax_t.m4 serial 6 (gettext-0.11)
1903 +dnl Copyright (C) 1997-2002 Free Software Foundation, Inc.
1904 +dnl This file is free software, distributed under the terms of the GNU
1905 +dnl General Public License.  As a special exception to the GNU General
1906 +dnl Public License, this file may be distributed as part of a program
1907 +dnl that contains a configuration script generated by Autoconf, under
1908 +dnl the same distribution terms as the rest of that program.
1909 +
1910 +dnl From Paul Eggert.
1911 +
1912 +AC_PREREQ(2.13)
1913 +
1914 +# Define uintmax_t to `unsigned long' or `unsigned long long'
1915 +# if <inttypes.h> does not exist.
1916 +
1917 +AC_DEFUN([jm_AC_TYPE_UINTMAX_T],
1918 +[
1919 +  AC_REQUIRE([jm_AC_HEADER_INTTYPES_H])
1920 +  AC_REQUIRE([jm_AC_HEADER_STDINT_H])
1921 +  if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
1922 +    AC_REQUIRE([jm_AC_TYPE_UNSIGNED_LONG_LONG])
1923 +    test $ac_cv_type_unsigned_long_long = yes \
1924 +      && ac_type='unsigned long long' \
1925 +      || ac_type='unsigned long'
1926 +    AC_DEFINE_UNQUOTED(uintmax_t, $ac_type,
1927 +  [Define to unsigned long or unsigned long long
1928 +   if <inttypes.h> and <stdint.h> don't define.])
1929 +  fi
1930 +])
1931 --- /dev/null
1932 +++ centericq-4.9.7/m4/ulonglong.m4
1933 @@ -0,0 +1,23 @@
1934 +# ulonglong.m4 serial 2 (fileutils-4.0.32, gettext-0.10.40)
1935 +dnl Copyright (C) 1999-2002 Free Software Foundation, Inc.
1936 +dnl This file is free software, distributed under the terms of the GNU
1937 +dnl General Public License.  As a special exception to the GNU General
1938 +dnl Public License, this file may be distributed as part of a program
1939 +dnl that contains a configuration script generated by Autoconf, under
1940 +dnl the same distribution terms as the rest of that program.
1941 +
1942 +dnl From Paul Eggert.
1943 +
1944 +AC_DEFUN([jm_AC_TYPE_UNSIGNED_LONG_LONG],
1945 +[
1946 +  AC_CACHE_CHECK([for unsigned long long], ac_cv_type_unsigned_long_long,
1947 +  [AC_TRY_LINK([unsigned long long ull = 1; int i = 63;],
1948 +    [unsigned long long ullmax = (unsigned long long) -1;
1949 +     return ull << i | ull >> i | ullmax / ull | ullmax % ull;],
1950 +    ac_cv_type_unsigned_long_long=yes,
1951 +    ac_cv_type_unsigned_long_long=no)])
1952 +  if test $ac_cv_type_unsigned_long_long = yes; then
1953 +    AC_DEFINE(HAVE_UNSIGNED_LONG_LONG, 1,
1954 +      [Define if you have the unsigned long long type.])
1955 +  fi
1956 +])