]> pilppa.org Git - familiar-h63xx-build.git/blob - org.handhelds.familiar/packages/giftcurs/giftcurs-0.6.2/m4.patch
OE tree imported from monotone branch org.openembedded.oz354fam083 at revision 8b12e3...
[familiar-h63xx-build.git] / org.handhelds.familiar / packages / giftcurs / giftcurs-0.6.2 / m4.patch
1
2 #
3 # Patch managed by http://www.mn-logistik.de/unsupported/pxa250/patcher
4 #
5
6 --- /dev/null
7 +++ giFTcurs-0.6.2/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 +++ giFTcurs-0.6.2/m4/gettext.m4
34 @@ -0,0 +1,651 @@
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 +# po.m4 serial 2 (gettext-0.13)
363 +dnl Copyright (C) 1995-2003 Free Software Foundation, Inc.
364 +dnl This file is free software, distributed under the terms of the GNU
365 +dnl General Public License.  As a special exception to the GNU General
366 +dnl Public License, this file may be distributed as part of a program
367 +dnl that contains a configuration script generated by Autoconf, under
368 +dnl the same distribution terms as the rest of that program.
369 +dnl
370 +dnl This file can can be used in projects which are not available under
371 +dnl the GNU General Public License or the GNU Library General Public
372 +dnl License but which still want to provide support for the GNU gettext
373 +dnl functionality.
374 +dnl Please note that the actual code of the GNU gettext library is covered
375 +dnl by the GNU Library General Public License, and the rest of the GNU
376 +dnl gettext package package is covered by the GNU General Public License.
377 +dnl They are *not* in the public domain.
378 +
379 +dnl Authors:
380 +dnl   Ulrich Drepper <drepper@cygnus.com>, 1995-2000.
381 +dnl   Bruno Haible <haible@clisp.cons.org>, 2000-2003.
382 +
383 +dnl Checks for all prerequisites of the po subdirectory.
384 +AC_DEFUN([AM_PO_SUBDIRS],
385 +[
386 +  AC_REQUIRE([AC_PROG_MAKE_SET])dnl
387 +  AC_REQUIRE([AC_PROG_INSTALL])dnl
388 +  AC_REQUIRE([AM_MKINSTALLDIRS])dnl
389 +  AC_REQUIRE([AM_NLS])dnl
390 +
391 +  dnl Perform the following tests also if --disable-nls has been given,
392 +  dnl because they are needed for "make dist" to work.
393 +
394 +  dnl Search for GNU msgfmt in the PATH.
395 +  dnl The first test excludes Solaris msgfmt and early GNU msgfmt versions.
396 +  dnl The second test excludes FreeBSD msgfmt.
397 +  AM_PATH_PROG_WITH_TEST(MSGFMT, msgfmt,
398 +    [$ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
399 +     (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi)],
400 +    :)
401 +  AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)
402 +
403 +  dnl Search for GNU xgettext 0.12 or newer in the PATH.
404 +  dnl The first test excludes Solaris xgettext and early GNU xgettext versions.
405 +  dnl The second test excludes FreeBSD xgettext.
406 +  AM_PATH_PROG_WITH_TEST(XGETTEXT, xgettext,
407 +    [$ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
408 +     (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi)],
409 +    :)
410 +  dnl Remove leftover from FreeBSD xgettext call.
411 +  rm -f messages.po
412 +
413 +  dnl Search for GNU msgmerge 0.11 or newer in the PATH.
414 +  AM_PATH_PROG_WITH_TEST(MSGMERGE, msgmerge,
415 +    [$ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1], :)
416 +
417 +  dnl This could go away some day; the PATH_PROG_WITH_TEST already does it.
418 +  dnl Test whether we really found GNU msgfmt.
419 +  if test "$GMSGFMT" != ":"; then
420 +    dnl If it is no GNU msgfmt we define it as : so that the
421 +    dnl Makefiles still can work.
422 +    if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
423 +       (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
424 +      : ;
425 +    else
426 +      GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
427 +      AC_MSG_RESULT(
428 +        [found $GMSGFMT program is not GNU msgfmt; ignore it])
429 +      GMSGFMT=":"
430 +    fi
431 +  fi
432 +
433 +  dnl This could go away some day; the PATH_PROG_WITH_TEST already does it.
434 +  dnl Test whether we really found GNU xgettext.
435 +  if test "$XGETTEXT" != ":"; then
436 +    dnl If it is no GNU xgettext we define it as : so that the
437 +    dnl Makefiles still can work.
438 +    if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
439 +       (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
440 +      : ;
441 +    else
442 +      AC_MSG_RESULT(
443 +        [found xgettext program is not GNU xgettext; ignore it])
444 +      XGETTEXT=":"
445 +    fi
446 +    dnl Remove leftover from FreeBSD xgettext call.
447 +    rm -f messages.po
448 +  fi
449 +
450 +  AC_OUTPUT_COMMANDS([
451 +    for ac_file in $CONFIG_FILES; do
452 +      # Support "outfile[:infile[:infile...]]"
453 +      case "$ac_file" in
454 +        *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
455 +      esac
456 +      # PO directories have a Makefile.in generated from Makefile.in.in.
457 +      case "$ac_file" in */Makefile.in)
458 +        # Adjust a relative srcdir.
459 +        ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
460 +        ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
461 +        ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
462 +        # In autoconf-2.13 it is called $ac_given_srcdir.
463 +        # In autoconf-2.50 it is called $srcdir.
464 +        test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
465 +        case "$ac_given_srcdir" in
466 +          .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
467 +          /*) top_srcdir="$ac_given_srcdir" ;;
468 +          *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
469 +        esac
470 +        if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
471 +          rm -f "$ac_dir/POTFILES"
472 +          test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
473 +          cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[  ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
474 +          POMAKEFILEDEPS="POTFILES.in"
475 +          # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
476 +          # on $ac_dir but don't depend on user-specified configuration
477 +          # parameters.
478 +          if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
479 +            # The LINGUAS file contains the set of available languages.
480 +            if test -n "$OBSOLETE_ALL_LINGUAS"; then
481 +              test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
482 +            fi
483 +            ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
484 +            # Hide the ALL_LINGUAS assigment from automake.
485 +            eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
486 +            POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
487 +          else
488 +            # The set of available languages was given in configure.in.
489 +            eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
490 +          fi
491 +          # Compute POFILES
492 +          # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
493 +          # Compute UPDATEPOFILES
494 +          # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
495 +          # Compute DUMMYPOFILES
496 +          # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
497 +          # Compute GMOFILES
498 +          # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
499 +          case "$ac_given_srcdir" in
500 +            .) srcdirpre= ;;
501 +            *) srcdirpre='$(srcdir)/' ;;
502 +          esac
503 +          POFILES=
504 +          UPDATEPOFILES=
505 +          DUMMYPOFILES=
506 +          GMOFILES=
507 +          for lang in $ALL_LINGUAS; do
508 +            POFILES="$POFILES $srcdirpre$lang.po"
509 +            UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
510 +            DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
511 +            GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
512 +          done
513 +          # CATALOGS depends on both $ac_dir and the user's LINGUAS
514 +          # environment variable.
515 +          INST_LINGUAS=
516 +          if test -n "$ALL_LINGUAS"; then
517 +            for presentlang in $ALL_LINGUAS; do
518 +              useit=no
519 +              if test "%UNSET%" != "$LINGUAS"; then
520 +                desiredlanguages="$LINGUAS"
521 +              else
522 +                desiredlanguages="$ALL_LINGUAS"
523 +              fi
524 +              for desiredlang in $desiredlanguages; do
525 +                # Use the presentlang catalog if desiredlang is
526 +                #   a. equal to presentlang, or
527 +                #   b. a variant of presentlang (because in this case,
528 +                #      presentlang can be used as a fallback for messages
529 +                #      which are not translated in the desiredlang catalog).
530 +                case "$desiredlang" in
531 +                  "$presentlang"*) useit=yes;;
532 +                esac
533 +              done
534 +              if test $useit = yes; then
535 +                INST_LINGUAS="$INST_LINGUAS $presentlang"
536 +              fi
537 +            done
538 +          fi
539 +          CATALOGS=
540 +          if test -n "$INST_LINGUAS"; then
541 +            for lang in $INST_LINGUAS; do
542 +              CATALOGS="$CATALOGS $lang.gmo"
543 +            done
544 +          fi
545 +          test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
546 +          sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
547 +          for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
548 +            if test -f "$f"; then
549 +              case "$f" in
550 +                *.orig | *.bak | *~) ;;
551 +                *) cat "$f" >> "$ac_dir/Makefile" ;;
552 +              esac
553 +            fi
554 +          done
555 +        fi
556 +        ;;
557 +      esac
558 +    done],
559 +   [# Capture the value of obsolete ALL_LINGUAS because we need it to compute
560 +    # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
561 +    # from automake.
562 +    eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
563 +    # Capture the value of LINGUAS because we need it to compute CATALOGS.
564 +    LINGUAS="${LINGUAS-%UNSET%}"
565 +   ])
566 +])
567 +
568 +dnl Checks for all prerequisites of the intl subdirectory,
569 +dnl except for INTL_LIBTOOL_SUFFIX_PREFIX (and possibly LIBTOOL), INTLOBJS,
570 +dnl            USE_INCLUDED_LIBINTL, BUILD_INCLUDED_LIBINTL.
571 +AC_DEFUN([AM_INTL_SUBDIR],
572 +[
573 +  AC_REQUIRE([AC_PROG_INSTALL])dnl
574 +  AC_REQUIRE([AM_MKINSTALLDIRS])dnl
575 +  AC_REQUIRE([AC_PROG_CC])dnl
576 +  AC_REQUIRE([AC_CANONICAL_HOST])dnl
577 +  AC_REQUIRE([AC_PROG_RANLIB])dnl
578 +  AC_REQUIRE([AC_ISC_POSIX])dnl
579 +  AC_REQUIRE([AC_HEADER_STDC])dnl
580 +  AC_REQUIRE([AC_C_CONST])dnl
581 +  AC_REQUIRE([AC_C_INLINE])dnl
582 +  AC_REQUIRE([AC_TYPE_OFF_T])dnl
583 +  AC_REQUIRE([AC_TYPE_SIZE_T])dnl
584 +  AC_REQUIRE([AC_FUNC_ALLOCA])dnl
585 +  AC_REQUIRE([AC_FUNC_MMAP])dnl
586 +  AC_REQUIRE([jm_GLIBC21])dnl
587 +  AC_REQUIRE([gt_INTDIV0])dnl
588 +  AC_REQUIRE([jm_AC_TYPE_UINTMAX_T])dnl
589 +  AC_REQUIRE([gt_HEADER_INTTYPES_H])dnl
590 +  AC_REQUIRE([gt_INTTYPES_PRI])dnl
591 +
592 +  AC_CHECK_HEADERS([argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
593 +stdlib.h string.h unistd.h sys/param.h])
594 +  AC_CHECK_FUNCS([feof_unlocked fgets_unlocked getc_unlocked getcwd getegid \
595 +geteuid getgid getuid mempcpy munmap putenv setenv setlocale stpcpy \
596 +strcasecmp strdup strtoul tsearch __argz_count __argz_stringify __argz_next])
597 +
598 +  AM_ICONV
599 +  AM_LANGINFO_CODESET
600 +  if test $ac_cv_header_locale_h = yes; then
601 +    AM_LC_MESSAGES
602 +  fi
603 +
604 +  dnl intl/plural.c is generated from intl/plural.y. It requires bison,
605 +  dnl because plural.y uses bison specific features. It requires at least
606 +  dnl bison-1.26 because earlier versions generate a plural.c that doesn't
607 +  dnl compile.
608 +  dnl bison is only needed for the maintainer (who touches plural.y). But in
609 +  dnl order to avoid separate Makefiles or --enable-maintainer-mode, we put
610 +  dnl the rule in general Makefile. Now, some people carelessly touch the
611 +  dnl files or have a broken "make" program, hence the plural.c rule will
612 +  dnl sometimes fire. To avoid an error, defines BISON to ":" if it is not
613 +  dnl present or too old.
614 +  AC_CHECK_PROGS([INTLBISON], [bison])
615 +  if test -z "$INTLBISON"; then
616 +    ac_verc_fail=yes
617 +  else
618 +    dnl Found it, now check the version.
619 +    AC_MSG_CHECKING([version of bison])
620 +changequote(<<,>>)dnl
621 +    ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
622 +    case $ac_prog_version in
623 +      '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
624 +      1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
625 +changequote([,])dnl
626 +         ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
627 +      *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
628 +    esac
629 +    AC_MSG_RESULT([$ac_prog_version])
630 +  fi
631 +  if test $ac_verc_fail = yes; then
632 +    INTLBISON=:
633 +  fi
634 +])
635 +
636 +
637 +AC_DEFUN([AM_MKINSTALLDIRS],
638 +[
639 +  dnl If the AC_CONFIG_AUX_DIR macro for autoconf is used we possibly
640 +  dnl find the mkinstalldirs script in another subdir but $(top_srcdir).
641 +  dnl Try to locate is.
642 +  MKINSTALLDIRS=
643 +  if test -n "$ac_aux_dir"; then
644 +    MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
645 +  fi
646 +  if test -z "$MKINSTALLDIRS"; then
647 +    MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
648 +  fi
649 +  AC_SUBST(MKINSTALLDIRS)
650 +])
651 +
652 +# nls.m4 serial 1 (gettext-0.12)
653 +dnl Copyright (C) 1995-2003 Free Software Foundation, Inc.
654 +dnl This file is free software, distributed under the terms of the GNU
655 +dnl General Public License.  As a special exception to the GNU General
656 +dnl Public License, this file may be distributed as part of a program
657 +dnl that contains a configuration script generated by Autoconf, under
658 +dnl the same distribution terms as the rest of that program.
659 +dnl
660 +dnl This file can can be used in projects which are not available under
661 +dnl the GNU General Public License or the GNU Library General Public
662 +dnl License but which still want to provide support for the GNU gettext
663 +dnl functionality.
664 +dnl Please note that the actual code of the GNU gettext library is covered
665 +dnl by the GNU Library General Public License, and the rest of the GNU
666 +dnl gettext package package is covered by the GNU General Public License.
667 +dnl They are *not* in the public domain.
668 +
669 +dnl Authors:
670 +dnl   Ulrich Drepper <drepper@cygnus.com>, 1995-2000.
671 +dnl   Bruno Haible <haible@clisp.cons.org>, 2000-2003.
672 +
673 +AC_DEFUN([AM_NLS],
674 +[
675 +  AC_MSG_CHECKING([whether NLS is requested])
676 +  dnl Default is enabled NLS
677 +  AC_ARG_ENABLE(nls,
678 +    [  --disable-nls           do not use Native Language Support],
679 +    USE_NLS=$enableval, USE_NLS=yes)
680 +  AC_MSG_RESULT($USE_NLS)
681 +  AC_SUBST(USE_NLS)
682 +])
683 +
684 +dnl Usage: AM_GNU_GETTEXT_VERSION([gettext-version])
685 +AC_DEFUN([AM_GNU_GETTEXT_VERSION], [])
686 --- /dev/null
687 +++ giFTcurs-0.6.2/m4/glibc21.m4
688 @@ -0,0 +1,32 @@
689 +# glibc21.m4 serial 2 (fileutils-4.1.3, gettext-0.10.40)
690 +dnl Copyright (C) 2000-2002 Free Software Foundation, Inc.
691 +dnl This file is free software, distributed under the terms of the GNU
692 +dnl General Public License.  As a special exception to the GNU General
693 +dnl Public License, this file may be distributed as part of a program
694 +dnl that contains a configuration script generated by Autoconf, under
695 +dnl the same distribution terms as the rest of that program.
696 +
697 +# Test for the GNU C Library, version 2.1 or newer.
698 +# From Bruno Haible.
699 +
700 +AC_DEFUN([jm_GLIBC21],
701 +  [
702 +    AC_CACHE_CHECK(whether we are using the GNU C Library 2.1 or newer,
703 +      ac_cv_gnu_library_2_1,
704 +      [AC_EGREP_CPP([Lucky GNU user],
705 +       [
706 +#include <features.h>
707 +#ifdef __GNU_LIBRARY__
708 + #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
709 +  Lucky GNU user
710 + #endif
711 +#endif
712 +       ],
713 +       ac_cv_gnu_library_2_1=yes,
714 +       ac_cv_gnu_library_2_1=no)
715 +      ]
716 +    )
717 +    AC_SUBST(GLIBC21)
718 +    GLIBC21="$ac_cv_gnu_library_2_1"
719 +  ]
720 +)
721 --- /dev/null
722 +++ giFTcurs-0.6.2/m4/iconv.m4
723 @@ -0,0 +1,103 @@
724 +# iconv.m4 serial AM4 (gettext-0.11.3)
725 +dnl Copyright (C) 2000-2002 Free Software Foundation, Inc.
726 +dnl This file is free software, distributed under the terms of the GNU
727 +dnl General Public License.  As a special exception to the GNU General
728 +dnl Public License, this file may be distributed as part of a program
729 +dnl that contains a configuration script generated by Autoconf, under
730 +dnl the same distribution terms as the rest of that program.
731 +
732 +dnl From Bruno Haible.
733 +
734 +AC_DEFUN([AM_ICONV_LINKFLAGS_BODY],
735 +[
736 +  dnl Prerequisites of AC_LIB_LINKFLAGS_BODY.
737 +  AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
738 +  AC_REQUIRE([AC_LIB_RPATH])
739 +
740 +  dnl Search for libiconv and define LIBICONV, LTLIBICONV and INCICONV
741 +  dnl accordingly.
742 +  AC_LIB_LINKFLAGS_BODY([iconv])
743 +])
744 +
745 +AC_DEFUN([AM_ICONV_LINK],
746 +[
747 +  dnl Some systems have iconv in libc, some have it in libiconv (OSF/1 and
748 +  dnl those with the standalone portable GNU libiconv installed).
749 +
750 +  dnl Search for libiconv and define LIBICONV, LTLIBICONV and INCICONV
751 +  dnl accordingly.
752 +  AC_REQUIRE([AM_ICONV_LINKFLAGS_BODY])
753 +
754 +  dnl Add $INCICONV to CPPFLAGS before performing the following checks,
755 +  dnl because if the user has installed libiconv and not disabled its use
756 +  dnl via --without-libiconv-prefix, he wants to use it. The first
757 +  dnl AC_TRY_LINK will then fail, the second AC_TRY_LINK will succeed.
758 +  am_save_CPPFLAGS="$CPPFLAGS"
759 +  AC_LIB_APPENDTOVAR([CPPFLAGS], [$INCICONV])
760 +
761 +  AC_CACHE_CHECK(for iconv, am_cv_func_iconv, [
762 +    am_cv_func_iconv="no, consider installing GNU libiconv"
763 +    am_cv_lib_iconv=no
764 +    AC_TRY_LINK([#include <stdlib.h>
765 +#include <iconv.h>],
766 +      [iconv_t cd = iconv_open("","");
767 +       iconv(cd,NULL,NULL,NULL,NULL);
768 +       iconv_close(cd);],
769 +      am_cv_func_iconv=yes)
770 +    if test "$am_cv_func_iconv" != yes; then
771 +      am_save_LIBS="$LIBS"
772 +      LIBS="$LIBS $LIBICONV"
773 +      AC_TRY_LINK([#include <stdlib.h>
774 +#include <iconv.h>],
775 +        [iconv_t cd = iconv_open("","");
776 +         iconv(cd,NULL,NULL,NULL,NULL);
777 +         iconv_close(cd);],
778 +        am_cv_lib_iconv=yes
779 +        am_cv_func_iconv=yes)
780 +      LIBS="$am_save_LIBS"
781 +    fi
782 +  ])
783 +  if test "$am_cv_func_iconv" = yes; then
784 +    AC_DEFINE(HAVE_ICONV, 1, [Define if you have the iconv() function.])
785 +  fi
786 +  if test "$am_cv_lib_iconv" = yes; then
787 +    AC_MSG_CHECKING([how to link with libiconv])
788 +    AC_MSG_RESULT([$LIBICONV])
789 +  else
790 +    dnl If $LIBICONV didn't lead to a usable library, we don't need $INCICONV
791 +    dnl either.
792 +    CPPFLAGS="$am_save_CPPFLAGS"
793 +    LIBICONV=
794 +    LTLIBICONV=
795 +  fi
796 +  AC_SUBST(LIBICONV)
797 +  AC_SUBST(LTLIBICONV)
798 +])
799 +
800 +AC_DEFUN([AM_ICONV],
801 +[
802 +  AM_ICONV_LINK
803 +  if test "$am_cv_func_iconv" = yes; then
804 +    AC_MSG_CHECKING([for iconv declaration])
805 +    AC_CACHE_VAL(am_cv_proto_iconv, [
806 +      AC_TRY_COMPILE([
807 +#include <stdlib.h>
808 +#include <iconv.h>
809 +extern
810 +#ifdef __cplusplus
811 +"C"
812 +#endif
813 +#if defined(__STDC__) || defined(__cplusplus)
814 +size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
815 +#else
816 +size_t iconv();
817 +#endif
818 +], [], am_cv_proto_iconv_arg1="", am_cv_proto_iconv_arg1="const")
819 +      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);"])
820 +    am_cv_proto_iconv=`echo "[$]am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
821 +    AC_MSG_RESULT([$]{ac_t:-
822 +         }[$]am_cv_proto_iconv)
823 +    AC_DEFINE_UNQUOTED(ICONV_CONST, $am_cv_proto_iconv_arg1,
824 +      [Define as const if the declaration of iconv() needs const.])
825 +  fi
826 +])
827 --- /dev/null
828 +++ giFTcurs-0.6.2/m4/intdiv0.m4
829 @@ -0,0 +1,72 @@
830 +# intdiv0.m4 serial 1 (gettext-0.11.3)
831 +dnl Copyright (C) 2002 Free Software Foundation, Inc.
832 +dnl This file is free software, distributed under the terms of the GNU
833 +dnl General Public License.  As a special exception to the GNU General
834 +dnl Public License, this file may be distributed as part of a program
835 +dnl that contains a configuration script generated by Autoconf, under
836 +dnl the same distribution terms as the rest of that program.
837 +
838 +dnl From Bruno Haible.
839 +
840 +AC_DEFUN([gt_INTDIV0],
841 +[
842 +  AC_REQUIRE([AC_PROG_CC])dnl
843 +  AC_REQUIRE([AC_CANONICAL_HOST])dnl
844 +
845 +  AC_CACHE_CHECK([whether integer division by zero raises SIGFPE],
846 +    gt_cv_int_divbyzero_sigfpe,
847 +    [
848 +      AC_TRY_RUN([
849 +#include <stdlib.h>
850 +#include <signal.h>
851 +
852 +static void
853 +#ifdef __cplusplus
854 +sigfpe_handler (int sig)
855 +#else
856 +sigfpe_handler (sig) int sig;
857 +#endif
858 +{
859 +  /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
860 +  exit (sig != SIGFPE);
861 +}
862 +
863 +int x = 1;
864 +int y = 0;
865 +int z;
866 +int nan;
867 +
868 +int main ()
869 +{
870 +  signal (SIGFPE, sigfpe_handler);
871 +/* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP.  */
872 +#if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
873 +  signal (SIGTRAP, sigfpe_handler);
874 +#endif
875 +/* Linux/SPARC yields signal SIGILL.  */
876 +#if defined (__sparc__) && defined (__linux__)
877 +  signal (SIGILL, sigfpe_handler);
878 +#endif
879 +
880 +  z = x / y;
881 +  nan = y / y;
882 +  exit (1);
883 +}
884 +], gt_cv_int_divbyzero_sigfpe=yes, gt_cv_int_divbyzero_sigfpe=no,
885 +        [
886 +          # Guess based on the CPU.
887 +          case "$host_cpu" in
888 +            alpha* | i[34567]86 | m68k | s390*)
889 +              gt_cv_int_divbyzero_sigfpe="guessing yes";;
890 +            *)
891 +              gt_cv_int_divbyzero_sigfpe="guessing no";;
892 +          esac
893 +        ])
894 +    ])
895 +  case "$gt_cv_int_divbyzero_sigfpe" in
896 +    *yes) value=1;;
897 +    *) value=0;;
898 +  esac
899 +  AC_DEFINE_UNQUOTED(INTDIV0_RAISES_SIGFPE, $value,
900 +    [Define if integer division by zero raises signal SIGFPE.])
901 +])
902 --- /dev/null
903 +++ giFTcurs-0.6.2/m4/inttypes_h.m4
904 @@ -0,0 +1,28 @@
905 +# inttypes_h.m4 serial 4 (gettext-0.11.4)
906 +dnl Copyright (C) 1997-2002 Free Software Foundation, Inc.
907 +dnl This file is free software, distributed under the terms of the GNU
908 +dnl General Public License.  As a special exception to the GNU General
909 +dnl Public License, this file may be distributed as part of a program
910 +dnl that contains a configuration script generated by Autoconf, under
911 +dnl the same distribution terms as the rest of that program.
912 +
913 +dnl From Paul Eggert.
914 +
915 +# Define HAVE_INTTYPES_H_WITH_UINTMAX if <inttypes.h> exists,
916 +# doesn't clash with <sys/types.h>, and declares uintmax_t.
917 +
918 +AC_DEFUN([jm_AC_HEADER_INTTYPES_H],
919 +[
920 +  AC_CACHE_CHECK([for inttypes.h], jm_ac_cv_header_inttypes_h,
921 +  [AC_TRY_COMPILE(
922 +    [#include <sys/types.h>
923 +#include <inttypes.h>],
924 +    [uintmax_t i = (uintmax_t) -1;],
925 +    jm_ac_cv_header_inttypes_h=yes,
926 +    jm_ac_cv_header_inttypes_h=no)])
927 +  if test $jm_ac_cv_header_inttypes_h = yes; then
928 +    AC_DEFINE_UNQUOTED(HAVE_INTTYPES_H_WITH_UINTMAX, 1,
929 +[Define if <inttypes.h> exists, doesn't clash with <sys/types.h>,
930 +   and declares uintmax_t. ])
931 +  fi
932 +])
933 --- /dev/null
934 +++ giFTcurs-0.6.2/m4/inttypes.m4
935 @@ -0,0 +1,27 @@
936 +# inttypes.m4 serial 1 (gettext-0.11.4)
937 +dnl Copyright (C) 1997-2002 Free Software Foundation, Inc.
938 +dnl This file is free software, distributed under the terms of the GNU
939 +dnl General Public License.  As a special exception to the GNU General
940 +dnl Public License, this file may be distributed as part of a program
941 +dnl that contains a configuration script generated by Autoconf, under
942 +dnl the same distribution terms as the rest of that program.
943 +
944 +dnl From Paul Eggert.
945 +
946 +# Define HAVE_INTTYPES_H if <inttypes.h> exists and doesn't clash with
947 +# <sys/types.h>.
948 +
949 +AC_DEFUN([gt_HEADER_INTTYPES_H],
950 +[
951 +  AC_CACHE_CHECK([for inttypes.h], gt_cv_header_inttypes_h,
952 +  [
953 +    AC_TRY_COMPILE(
954 +      [#include <sys/types.h>
955 +#include <inttypes.h>],
956 +      [], gt_cv_header_inttypes_h=yes, gt_cv_header_inttypes_h=no)
957 +  ])
958 +  if test $gt_cv_header_inttypes_h = yes; then
959 +    AC_DEFINE_UNQUOTED(HAVE_INTTYPES_H, 1,
960 +      [Define if <inttypes.h> exists and doesn't clash with <sys/types.h>.])
961 +  fi
962 +])
963 --- /dev/null
964 +++ giFTcurs-0.6.2/m4/inttypes-pri.m4
965 @@ -0,0 +1,32 @@
966 +# inttypes-pri.m4 serial 1 (gettext-0.11.4)
967 +dnl Copyright (C) 1997-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 +
974 +dnl From Bruno Haible.
975 +
976 +# Define PRI_MACROS_BROKEN if <inttypes.h> exists and defines the PRI*
977 +# macros to non-string values.  This is the case on AIX 4.3.3.
978 +
979 +AC_DEFUN([gt_INTTYPES_PRI],
980 +[
981 +  AC_REQUIRE([gt_HEADER_INTTYPES_H])
982 +  if test $gt_cv_header_inttypes_h = yes; then
983 +    AC_CACHE_CHECK([whether the inttypes.h PRIxNN macros are broken],
984 +      gt_cv_inttypes_pri_broken,
985 +      [
986 +        AC_TRY_COMPILE([#include <inttypes.h>
987 +#ifdef PRId32
988 +char *p = PRId32;
989 +#endif
990 +], [], gt_cv_inttypes_pri_broken=no, gt_cv_inttypes_pri_broken=yes)
991 +      ])
992 +  fi
993 +  if test "$gt_cv_inttypes_pri_broken" = yes; then
994 +    AC_DEFINE_UNQUOTED(PRI_MACROS_BROKEN, 1,
995 +      [Define if <inttypes.h> exists and defines unusable PRI* macros.])
996 +  fi
997 +])
998 --- /dev/null
999 +++ giFTcurs-0.6.2/m4/lcmessage.m4
1000 @@ -0,0 +1,32 @@
1001 +# lcmessage.m4 serial 3 (gettext-0.11.3)
1002 +dnl Copyright (C) 1995-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 +dnl
1009 +dnl This file can can be used in projects which are not available under
1010 +dnl the GNU General Public License or the GNU Library General Public
1011 +dnl License but which still want to provide support for the GNU gettext
1012 +dnl functionality.
1013 +dnl Please note that the actual code of the GNU gettext library is covered
1014 +dnl by the GNU Library General Public License, and the rest of the GNU
1015 +dnl gettext package package is covered by the GNU General Public License.
1016 +dnl They are *not* in the public domain.
1017 +
1018 +dnl Authors:
1019 +dnl   Ulrich Drepper <drepper@cygnus.com>, 1995.
1020 +
1021 +# Check whether LC_MESSAGES is available in <locale.h>.
1022 +
1023 +AC_DEFUN([AM_LC_MESSAGES],
1024 +[
1025 +  AC_CACHE_CHECK([for LC_MESSAGES], am_cv_val_LC_MESSAGES,
1026 +    [AC_TRY_LINK([#include <locale.h>], [return LC_MESSAGES],
1027 +       am_cv_val_LC_MESSAGES=yes, am_cv_val_LC_MESSAGES=no)])
1028 +  if test $am_cv_val_LC_MESSAGES = yes; then
1029 +    AC_DEFINE(HAVE_LC_MESSAGES, 1,
1030 +      [Define if your <locale.h> file defines LC_MESSAGES.])
1031 +  fi
1032 +])
1033 --- /dev/null
1034 +++ giFTcurs-0.6.2/m4/lib-ld.m4
1035 @@ -0,0 +1,97 @@
1036 +# lib-ld.m4 serial 1 (gettext-0.11)
1037 +dnl Copyright (C) 1996-2002 Free Software Foundation, Inc.
1038 +dnl This file is free software, distributed under the terms of the GNU
1039 +dnl General Public License.  As a special exception to the GNU General
1040 +dnl Public License, this file may be distributed as part of a program
1041 +dnl that contains a configuration script generated by Autoconf, under
1042 +dnl the same distribution terms as the rest of that program.
1043 +
1044 +dnl Subroutines of libtool.m4,
1045 +dnl with replacements s/AC_/AC_LIB/ and s/lt_cv/acl_cv/ to avoid collision
1046 +dnl with libtool.m4.
1047 +
1048 +dnl From libtool-1.4. Sets the variable with_gnu_ld to yes or no.
1049 +AC_DEFUN([AC_LIB_PROG_LD_GNU],
1050 +[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], acl_cv_prog_gnu_ld,
1051 +[# I'd rather use --version here, but apparently some GNU ld's only accept -v.
1052 +if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1053 +  acl_cv_prog_gnu_ld=yes
1054 +else
1055 +  acl_cv_prog_gnu_ld=no
1056 +fi])
1057 +with_gnu_ld=$acl_cv_prog_gnu_ld
1058 +])
1059 +
1060 +dnl From libtool-1.4. Sets the variable LD.
1061 +AC_DEFUN([AC_LIB_PROG_LD],
1062 +[AC_ARG_WITH(gnu-ld,
1063 +[  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]],
1064 +test "$withval" = no || with_gnu_ld=yes, with_gnu_ld=no)
1065 +AC_REQUIRE([AC_PROG_CC])dnl
1066 +AC_REQUIRE([AC_CANONICAL_HOST])dnl
1067 +ac_prog=ld
1068 +if test "$GCC" = yes; then
1069 +  # Check if gcc -print-prog-name=ld gives a path.
1070 +  AC_MSG_CHECKING([for ld used by GCC])
1071 +  case $host in
1072 +  *-*-mingw*)
1073 +    # gcc leaves a trailing carriage return which upsets mingw
1074 +    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1075 +  *)
1076 +    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1077 +  esac
1078 +  case $ac_prog in
1079 +    # Accept absolute paths.
1080 +    [[\\/]* | [A-Za-z]:[\\/]*)]
1081 +      [re_direlt='/[^/][^/]*/\.\./']
1082 +      # Canonicalize the path of ld
1083 +      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1084 +      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1085 +       ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1086 +      done
1087 +      test -z "$LD" && LD="$ac_prog"
1088 +      ;;
1089 +  "")
1090 +    # If it fails, then pretend we aren't using GCC.
1091 +    ac_prog=ld
1092 +    ;;
1093 +  *)
1094 +    # If it is relative, then search for the first ld in PATH.
1095 +    with_gnu_ld=unknown
1096 +    ;;
1097 +  esac
1098 +elif test "$with_gnu_ld" = yes; then
1099 +  AC_MSG_CHECKING([for GNU ld])
1100 +else
1101 +  AC_MSG_CHECKING([for non-GNU ld])
1102 +fi
1103 +AC_CACHE_VAL(acl_cv_path_LD,
1104 +[if test -z "$LD"; then
1105 +  IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1106 +  for ac_dir in $PATH; do
1107 +    test -z "$ac_dir" && ac_dir=.
1108 +    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1109 +      acl_cv_path_LD="$ac_dir/$ac_prog"
1110 +      # Check to see if the program is GNU ld.  I'd rather use --version,
1111 +      # but apparently some GNU ld's only accept -v.
1112 +      # Break only if it was the GNU/non-GNU ld that we prefer.
1113 +      if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1114 +       test "$with_gnu_ld" != no && break
1115 +      else
1116 +       test "$with_gnu_ld" != yes && break
1117 +      fi
1118 +    fi
1119 +  done
1120 +  IFS="$ac_save_ifs"
1121 +else
1122 +  acl_cv_path_LD="$LD" # Let the user override the test with a path.
1123 +fi])
1124 +LD="$acl_cv_path_LD"
1125 +if test -n "$LD"; then
1126 +  AC_MSG_RESULT($LD)
1127 +else
1128 +  AC_MSG_RESULT(no)
1129 +fi
1130 +test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
1131 +AC_LIB_PROG_LD_GNU
1132 +])
1133 --- /dev/null
1134 +++ giFTcurs-0.6.2/m4/lib-link.m4
1135 @@ -0,0 +1,554 @@
1136 +# lib-link.m4 serial 3 (gettext-0.11.3)
1137 +dnl Copyright (C) 2001-2002 Free Software Foundation, Inc.
1138 +dnl This file is free software, distributed under the terms of the GNU
1139 +dnl General Public License.  As a special exception to the GNU General
1140 +dnl Public License, this file may be distributed as part of a program
1141 +dnl that contains a configuration script generated by Autoconf, under
1142 +dnl the same distribution terms as the rest of that program.
1143 +
1144 +dnl From Bruno Haible.
1145 +
1146 +dnl AC_LIB_LINKFLAGS(name [, dependencies]) searches for libname and
1147 +dnl the libraries corresponding to explicit and implicit dependencies.
1148 +dnl Sets and AC_SUBSTs the LIB${NAME} and LTLIB${NAME} variables and
1149 +dnl augments the CPPFLAGS variable.
1150 +AC_DEFUN([AC_LIB_LINKFLAGS],
1151 +[
1152 +  AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
1153 +  AC_REQUIRE([AC_LIB_RPATH])
1154 +  define([Name],[translit([$1],[./-], [___])])
1155 +  define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-],
1156 +                               [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])])
1157 +  AC_CACHE_CHECK([how to link with lib[]$1], [ac_cv_lib[]Name[]_libs], [
1158 +    AC_LIB_LINKFLAGS_BODY([$1], [$2])
1159 +    ac_cv_lib[]Name[]_libs="$LIB[]NAME"
1160 +    ac_cv_lib[]Name[]_ltlibs="$LTLIB[]NAME"
1161 +    ac_cv_lib[]Name[]_cppflags="$INC[]NAME"
1162 +  ])
1163 +  LIB[]NAME="$ac_cv_lib[]Name[]_libs"
1164 +  LTLIB[]NAME="$ac_cv_lib[]Name[]_ltlibs"
1165 +  INC[]NAME="$ac_cv_lib[]Name[]_cppflags"
1166 +  AC_LIB_APPENDTOVAR([CPPFLAGS], [$INC]NAME)
1167 +  AC_SUBST([LIB]NAME)
1168 +  AC_SUBST([LTLIB]NAME)
1169 +  dnl Also set HAVE_LIB[]NAME so that AC_LIB_HAVE_LINKFLAGS can reuse the
1170 +  dnl results of this search when this library appears as a dependency.
1171 +  HAVE_LIB[]NAME=yes
1172 +  undefine([Name])
1173 +  undefine([NAME])
1174 +])
1175 +
1176 +dnl AC_LIB_HAVE_LINKFLAGS(name, dependencies, includes, testcode)
1177 +dnl searches for libname and the libraries corresponding to explicit and
1178 +dnl implicit dependencies, together with the specified include files and
1179 +dnl the ability to compile and link the specified testcode. If found, it
1180 +dnl sets and AC_SUBSTs HAVE_LIB${NAME}=yes and the LIB${NAME} and
1181 +dnl LTLIB${NAME} variables and augments the CPPFLAGS variable, and
1182 +dnl #defines HAVE_LIB${NAME} to 1. Otherwise, it sets and AC_SUBSTs
1183 +dnl HAVE_LIB${NAME}=no and LIB${NAME} and LTLIB${NAME} to empty.
1184 +AC_DEFUN([AC_LIB_HAVE_LINKFLAGS],
1185 +[
1186 +  AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
1187 +  AC_REQUIRE([AC_LIB_RPATH])
1188 +  define([Name],[translit([$1],[./-], [___])])
1189 +  define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-],
1190 +                               [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])])
1191 +
1192 +  dnl Search for lib[]Name and define LIB[]NAME, LTLIB[]NAME and INC[]NAME
1193 +  dnl accordingly.
1194 +  AC_LIB_LINKFLAGS_BODY([$1], [$2])
1195 +
1196 +  dnl Add $INC[]NAME to CPPFLAGS before performing the following checks,
1197 +  dnl because if the user has installed lib[]Name and not disabled its use
1198 +  dnl via --without-lib[]Name-prefix, he wants to use it.
1199 +  ac_save_CPPFLAGS="$CPPFLAGS"
1200 +  AC_LIB_APPENDTOVAR([CPPFLAGS], [$INC]NAME)
1201 +
1202 +  AC_CACHE_CHECK([for lib[]$1], [ac_cv_lib[]Name], [
1203 +    ac_save_LIBS="$LIBS"
1204 +    LIBS="$LIBS $LIB[]NAME"
1205 +    AC_TRY_LINK([$3], [$4], [ac_cv_lib[]Name=yes], [ac_cv_lib[]Name=no])
1206 +    LIBS="$ac_save_LIBS"
1207 +  ])
1208 +  if test "$ac_cv_lib[]Name" = yes; then
1209 +    HAVE_LIB[]NAME=yes
1210 +    AC_DEFINE([HAVE_LIB]NAME, 1, [Define if you have the $1 library.])
1211 +    AC_MSG_CHECKING([how to link with lib[]$1])
1212 +    AC_MSG_RESULT([$LIB[]NAME])
1213 +  else
1214 +    HAVE_LIB[]NAME=no
1215 +    dnl If $LIB[]NAME didn't lead to a usable library, we don't need
1216 +    dnl $INC[]NAME either.
1217 +    CPPFLAGS="$ac_save_CPPFLAGS"
1218 +    LIB[]NAME=
1219 +    LTLIB[]NAME=
1220 +  fi
1221 +  AC_SUBST([HAVE_LIB]NAME)
1222 +  AC_SUBST([LIB]NAME)
1223 +  AC_SUBST([LTLIB]NAME)
1224 +  undefine([Name])
1225 +  undefine([NAME])
1226 +])
1227 +
1228 +dnl Determine the platform dependent parameters needed to use rpath:
1229 +dnl libext, shlibext, hardcode_libdir_flag_spec, hardcode_libdir_separator,
1230 +dnl hardcode_direct, hardcode_minus_L,
1231 +dnl sys_lib_search_path_spec, sys_lib_dlsearch_path_spec.
1232 +AC_DEFUN([AC_LIB_RPATH],
1233 +[
1234 +  AC_REQUIRE([AC_PROG_CC])                dnl we use $CC, $GCC, $LDFLAGS
1235 +  AC_REQUIRE([AC_LIB_PROG_LD])            dnl we use $LD, $with_gnu_ld
1236 +  AC_REQUIRE([AC_CANONICAL_HOST])         dnl we use $host
1237 +  AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT]) dnl we use $ac_aux_dir
1238 +  AC_CACHE_CHECK([for shared library run path origin], acl_cv_rpath, [
1239 +    CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
1240 +    ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
1241 +    . ./conftest.sh
1242 +    rm -f ./conftest.sh
1243 +    acl_cv_rpath=done
1244 +  ])
1245 +  wl="$acl_cv_wl"
1246 +  libext="$acl_cv_libext"
1247 +  shlibext="$acl_cv_shlibext"
1248 +  hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
1249 +  hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
1250 +  hardcode_direct="$acl_cv_hardcode_direct"
1251 +  hardcode_minus_L="$acl_cv_hardcode_minus_L"
1252 +  sys_lib_search_path_spec="$acl_cv_sys_lib_search_path_spec"
1253 +  sys_lib_dlsearch_path_spec="$acl_cv_sys_lib_dlsearch_path_spec"
1254 +  dnl Determine whether the user wants rpath handling at all.
1255 +  AC_ARG_ENABLE(rpath,
1256 +    [  --disable-rpath         do not hardcode runtime library paths],
1257 +    :, enable_rpath=yes)
1258 +])
1259 +
1260 +dnl AC_LIB_LINKFLAGS_BODY(name [, dependencies]) searches for libname and
1261 +dnl the libraries corresponding to explicit and implicit dependencies.
1262 +dnl Sets the LIB${NAME}, LTLIB${NAME} and INC${NAME} variables.
1263 +AC_DEFUN([AC_LIB_LINKFLAGS_BODY],
1264 +[
1265 +  define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-],
1266 +                               [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])])
1267 +  dnl By default, look in $includedir and $libdir.
1268 +  use_additional=yes
1269 +  AC_LIB_WITH_FINAL_PREFIX([
1270 +    eval additional_includedir=\"$includedir\"
1271 +    eval additional_libdir=\"$libdir\"
1272 +  ])
1273 +  AC_ARG_WITH([lib$1-prefix],
1274 +[  --with-lib$1-prefix[=DIR]  search for lib$1 in DIR/include and DIR/lib
1275 +  --without-lib$1-prefix     don't search for lib$1 in includedir and libdir],
1276 +[
1277 +    if test "X$withval" = "Xno"; then
1278 +      use_additional=no
1279 +    else
1280 +      if test "X$withval" = "X"; then
1281 +        AC_LIB_WITH_FINAL_PREFIX([
1282 +          eval additional_includedir=\"$includedir\"
1283 +          eval additional_libdir=\"$libdir\"
1284 +        ])
1285 +      else
1286 +        additional_includedir="$withval/include"
1287 +        additional_libdir="$withval/lib"
1288 +      fi
1289 +    fi
1290 +])
1291 +  dnl Search the library and its dependencies in $additional_libdir and
1292 +  dnl $LDFLAGS. Using breadth-first-seach.
1293 +  LIB[]NAME=
1294 +  LTLIB[]NAME=
1295 +  INC[]NAME=
1296 +  rpathdirs=
1297 +  ltrpathdirs=
1298 +  names_already_handled=
1299 +  names_next_round='$1 $2'
1300 +  while test -n "$names_next_round"; do
1301 +    names_this_round="$names_next_round"
1302 +    names_next_round=
1303 +    for name in $names_this_round; do
1304 +      already_handled=
1305 +      for n in $names_already_handled; do
1306 +        if test "$n" = "$name"; then
1307 +          already_handled=yes
1308 +          break
1309 +        fi
1310 +      done
1311 +      if test -z "$already_handled"; then
1312 +        names_already_handled="$names_already_handled $name"
1313 +        dnl See if it was already located by an earlier AC_LIB_LINKFLAGS
1314 +        dnl or AC_LIB_HAVE_LINKFLAGS call.
1315 +        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
1316 +        eval value=\"\$HAVE_LIB$uppername\"
1317 +        if test -n "$value"; then
1318 +          if test "$value" = yes; then
1319 +            eval value=\"\$LIB$uppername\"
1320 +            test -z "$value" || LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$value"
1321 +            eval value=\"\$LTLIB$uppername\"
1322 +            test -z "$value" || LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }$value"
1323 +          else
1324 +            dnl An earlier call to AC_LIB_HAVE_LINKFLAGS has determined
1325 +            dnl that this library doesn't exist. So just drop it.
1326 +            :
1327 +          fi
1328 +        else
1329 +          dnl Search the library lib$name in $additional_libdir and $LDFLAGS
1330 +          dnl and the already constructed $LIBNAME/$LTLIBNAME.
1331 +          found_dir=
1332 +          found_la=
1333 +          found_so=
1334 +          found_a=
1335 +          if test $use_additional = yes; then
1336 +            if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
1337 +              found_dir="$additional_libdir"
1338 +              found_so="$additional_libdir/lib$name.$shlibext"
1339 +              if test -f "$additional_libdir/lib$name.la"; then
1340 +                found_la="$additional_libdir/lib$name.la"
1341 +              fi
1342 +            else
1343 +              if test -f "$additional_libdir/lib$name.$libext"; then
1344 +                found_dir="$additional_libdir"
1345 +                found_a="$additional_libdir/lib$name.$libext"
1346 +                if test -f "$additional_libdir/lib$name.la"; then
1347 +                  found_la="$additional_libdir/lib$name.la"
1348 +                fi
1349 +              fi
1350 +            fi
1351 +          fi
1352 +          if test "X$found_dir" = "X"; then
1353 +            for x in $LDFLAGS $LTLIB[]NAME; do
1354 +              AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
1355 +              case "$x" in
1356 +                -L*)
1357 +                  dir=`echo "X$x" | sed -e 's/^X-L//'`
1358 +                  if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
1359 +                    found_dir="$dir"
1360 +                    found_so="$dir/lib$name.$shlibext"
1361 +                    if test -f "$dir/lib$name.la"; then
1362 +                      found_la="$dir/lib$name.la"
1363 +                    fi
1364 +                  else
1365 +                    if test -f "$dir/lib$name.$libext"; then
1366 +                      found_dir="$dir"
1367 +                      found_a="$dir/lib$name.$libext"
1368 +                      if test -f "$dir/lib$name.la"; then
1369 +                        found_la="$dir/lib$name.la"
1370 +                      fi
1371 +                    fi
1372 +                  fi
1373 +                  ;;
1374 +              esac
1375 +              if test "X$found_dir" != "X"; then
1376 +                break
1377 +              fi
1378 +            done
1379 +          fi
1380 +          if test "X$found_dir" != "X"; then
1381 +            dnl Found the library.
1382 +            LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-L$found_dir -l$name"
1383 +            if test "X$found_so" != "X"; then
1384 +              dnl Linking with a shared library. We attempt to hardcode its
1385 +              dnl directory into the executable's runpath, unless it's the
1386 +              dnl standard /usr/lib.
1387 +              if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
1388 +                dnl No hardcoding is needed.
1389 +                LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
1390 +              else
1391 +                dnl Use an explicit option to hardcode DIR into the resulting
1392 +                dnl binary.
1393 +                dnl Potentially add DIR to ltrpathdirs.
1394 +                dnl The ltrpathdirs will be appended to $LTLIBNAME at the end.
1395 +                haveit=
1396 +                for x in $ltrpathdirs; do
1397 +                  if test "X$x" = "X$found_dir"; then
1398 +                    haveit=yes
1399 +                    break
1400 +                  fi
1401 +                done
1402 +                if test -z "$haveit"; then
1403 +                  ltrpathdirs="$ltrpathdirs $found_dir"
1404 +                fi
1405 +                dnl The hardcoding into $LIBNAME is system dependent.
1406 +                if test "$hardcode_direct" = yes; then
1407 +                  dnl Using DIR/libNAME.so during linking hardcodes DIR into the
1408 +                  dnl resulting binary.
1409 +                  LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
1410 +                else
1411 +                  if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
1412 +                    dnl Use an explicit option to hardcode DIR into the resulting
1413 +                    dnl binary.
1414 +                    LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
1415 +                    dnl Potentially add DIR to rpathdirs.
1416 +                    dnl The rpathdirs will be appended to $LIBNAME at the end.
1417 +                    haveit=
1418 +                    for x in $rpathdirs; do
1419 +                      if test "X$x" = "X$found_dir"; then
1420 +                        haveit=yes
1421 +                        break
1422 +                      fi
1423 +                    done
1424 +                    if test -z "$haveit"; then
1425 +                      rpathdirs="$rpathdirs $found_dir"
1426 +                    fi
1427 +                  else
1428 +                    dnl Rely on "-L$found_dir".
1429 +                    dnl But don't add it if it's already contained in the LDFLAGS
1430 +                    dnl or the already constructed $LIBNAME
1431 +                    haveit=
1432 +                    for x in $LDFLAGS $LIB[]NAME; do
1433 +                      AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
1434 +                      if test "X$x" = "X-L$found_dir"; then
1435 +                        haveit=yes
1436 +                        break
1437 +                      fi
1438 +                    done
1439 +                    if test -z "$haveit"; then
1440 +                      LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$found_dir"
1441 +                    fi
1442 +                    if test "$hardcode_minus_L" != no; then
1443 +                      dnl FIXME: Not sure whether we should use
1444 +                      dnl "-L$found_dir -l$name" or "-L$found_dir $found_so"
1445 +                      dnl here.
1446 +                      LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
1447 +                    else
1448 +                      dnl We cannot use $hardcode_runpath_var and LD_RUN_PATH
1449 +                      dnl here, because this doesn't fit in flags passed to the
1450 +                      dnl compiler. So give up. No hardcoding. This affects only
1451 +                      dnl very old systems.
1452 +                      dnl FIXME: Not sure whether we should use
1453 +                      dnl "-L$found_dir -l$name" or "-L$found_dir $found_so"
1454 +                      dnl here.
1455 +                      LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-l$name"
1456 +                    fi
1457 +                  fi
1458 +                fi
1459 +              fi
1460 +            else
1461 +              if test "X$found_a" != "X"; then
1462 +                dnl Linking with a static library.
1463 +                LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_a"
1464 +              else
1465 +                dnl We shouldn't come here, but anyway it's good to have a
1466 +                dnl fallback.
1467 +                LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$found_dir -l$name"
1468 +              fi
1469 +            fi
1470 +            dnl Assume the include files are nearby.
1471 +            additional_includedir=
1472 +            case "$found_dir" in
1473 +              */lib | */lib/)
1474 +                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
1475 +                additional_includedir="$basedir/include"
1476 +                ;;
1477 +            esac
1478 +            if test "X$additional_includedir" != "X"; then
1479 +              dnl Potentially add $additional_includedir to $INCNAME.
1480 +              dnl But don't add it
1481 +              dnl   1. if it's the standard /usr/include,
1482 +              dnl   2. if it's /usr/local/include and we are using GCC on Linux,
1483 +              dnl   3. if it's already present in $CPPFLAGS or the already
1484 +              dnl      constructed $INCNAME,
1485 +              dnl   4. if it doesn't exist as a directory.
1486 +              if test "X$additional_includedir" != "X/usr/include"; then
1487 +                haveit=
1488 +                if test "X$additional_includedir" = "X/usr/local/include"; then
1489 +                  if test -n "$GCC"; then
1490 +                    case $host_os in
1491 +                      linux*) haveit=yes;;
1492 +                    esac
1493 +                  fi
1494 +                fi
1495 +                if test -z "$haveit"; then
1496 +                  for x in $CPPFLAGS $INC[]NAME; do
1497 +                    AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
1498 +                    if test "X$x" = "X-I$additional_includedir"; then
1499 +                      haveit=yes
1500 +                      break
1501 +                    fi
1502 +                  done
1503 +                  if test -z "$haveit"; then
1504 +                    if test -d "$additional_includedir"; then
1505 +                      dnl Really add $additional_includedir to $INCNAME.
1506 +                      INC[]NAME="${INC[]NAME}${INC[]NAME:+ }-I$additional_includedir"
1507 +                    fi
1508 +                  fi
1509 +                fi
1510 +              fi
1511 +            fi
1512 +            dnl Look for dependencies.
1513 +            if test -n "$found_la"; then
1514 +              dnl Read the .la file. It defines the variables
1515 +              dnl dlname, library_names, old_library, dependency_libs, current,
1516 +              dnl age, revision, installed, dlopen, dlpreopen, libdir.
1517 +              save_libdir="$libdir"
1518 +              case "$found_la" in
1519 +                */* | *\\*) . "$found_la" ;;
1520 +                *) . "./$found_la" ;;
1521 +              esac
1522 +              libdir="$save_libdir"
1523 +              dnl We use only dependency_libs.
1524 +              for dep in $dependency_libs; do
1525 +                case "$dep" in
1526 +                  -L*)
1527 +                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
1528 +                    dnl Potentially add $additional_libdir to $LIBNAME and $LTLIBNAME.
1529 +                    dnl But don't add it
1530 +                    dnl   1. if it's the standard /usr/lib,
1531 +                    dnl   2. if it's /usr/local/lib and we are using GCC on Linux,
1532 +                    dnl   3. if it's already present in $LDFLAGS or the already
1533 +                    dnl      constructed $LIBNAME,
1534 +                    dnl   4. if it doesn't exist as a directory.
1535 +                    if test "X$additional_libdir" != "X/usr/lib"; then
1536 +                      haveit=
1537 +                      if test "X$additional_libdir" = "X/usr/local/lib"; then
1538 +                        if test -n "$GCC"; then
1539 +                          case $host_os in
1540 +                            linux*) haveit=yes;;
1541 +                          esac
1542 +                        fi
1543 +                      fi
1544 +                      if test -z "$haveit"; then
1545 +                        haveit=
1546 +                        for x in $LDFLAGS $LIB[]NAME; do
1547 +                          AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
1548 +                          if test "X$x" = "X-L$additional_libdir"; then
1549 +                            haveit=yes
1550 +                            break
1551 +                          fi
1552 +                        done
1553 +                        if test -z "$haveit"; then
1554 +                          if test -d "$additional_libdir"; then
1555 +                            dnl Really add $additional_libdir to $LIBNAME.
1556 +                            LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$additional_libdir"
1557 +                          fi
1558 +                        fi
1559 +                        haveit=
1560 +                        for x in $LDFLAGS $LTLIB[]NAME; do
1561 +                          AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
1562 +                          if test "X$x" = "X-L$additional_libdir"; then
1563 +                            haveit=yes
1564 +                            break
1565 +                          fi
1566 +                        done
1567 +                        if test -z "$haveit"; then
1568 +                          if test -d "$additional_libdir"; then
1569 +                            dnl Really add $additional_libdir to $LTLIBNAME.
1570 +                            LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-L$additional_libdir"
1571 +                          fi
1572 +                        fi
1573 +                      fi
1574 +                    fi
1575 +                    ;;
1576 +                  -R*)
1577 +                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
1578 +                    if test "$enable_rpath" != no; then
1579 +                      dnl Potentially add DIR to rpathdirs.
1580 +                      dnl The rpathdirs will be appended to $LIBNAME at the end.
1581 +                      haveit=
1582 +                      for x in $rpathdirs; do
1583 +                        if test "X$x" = "X$dir"; then
1584 +                          haveit=yes
1585 +                          break
1586 +                        fi
1587 +                      done
1588 +                      if test -z "$haveit"; then
1589 +                        rpathdirs="$rpathdirs $dir"
1590 +                      fi
1591 +                      dnl Potentially add DIR to ltrpathdirs.
1592 +                      dnl The ltrpathdirs will be appended to $LTLIBNAME at the end.
1593 +                      haveit=
1594 +                      for x in $ltrpathdirs; do
1595 +                        if test "X$x" = "X$dir"; then
1596 +                          haveit=yes
1597 +                          break
1598 +                        fi
1599 +                      done
1600 +                      if test -z "$haveit"; then
1601 +                        ltrpathdirs="$ltrpathdirs $dir"
1602 +                      fi
1603 +                    fi
1604 +                    ;;
1605 +                  -l*)
1606 +                    dnl Handle this in the next round.
1607 +                    names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
1608 +                    ;;
1609 +                  *.la)
1610 +                    dnl Handle this in the next round. Throw away the .la's
1611 +                    dnl directory; it is already contained in a preceding -L
1612 +                    dnl option.
1613 +                    names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
1614 +                    ;;
1615 +                  *)
1616 +                    dnl Most likely an immediate library name.
1617 +                    LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$dep"
1618 +                    LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }$dep"
1619 +                    ;;
1620 +                esac
1621 +              done
1622 +            fi
1623 +          else
1624 +            dnl Didn't find the library; assume it is in the system directories
1625 +            dnl known to the linker and runtime loader. (All the system
1626 +            dnl directories known to the linker should also be known to the
1627 +            dnl runtime loader, otherwise the system is severely misconfigured.)
1628 +            LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-l$name"
1629 +            LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-l$name"
1630 +          fi
1631 +        fi
1632 +      fi
1633 +    done
1634 +  done
1635 +  if test "X$rpathdirs" != "X"; then
1636 +    if test -n "$hardcode_libdir_separator"; then
1637 +      dnl Weird platform: only the last -rpath option counts, the user must
1638 +      dnl pass all path elements in one option. We can arrange that for a
1639 +      dnl single library, but not when more than one $LIBNAMEs are used.
1640 +      alldirs=
1641 +      for found_dir in $rpathdirs; do
1642 +        alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
1643 +      done
1644 +      dnl Note: hardcode_libdir_flag_spec uses $libdir and $wl.
1645 +      acl_save_libdir="$libdir"
1646 +      libdir="$alldirs"
1647 +      eval flag=\"$hardcode_libdir_flag_spec\"
1648 +      libdir="$acl_save_libdir"
1649 +      LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$flag"
1650 +    else
1651 +      dnl The -rpath options are cumulative.
1652 +      for found_dir in $rpathdirs; do
1653 +        acl_save_libdir="$libdir"
1654 +        libdir="$found_dir"
1655 +        eval flag=\"$hardcode_libdir_flag_spec\"
1656 +        libdir="$acl_save_libdir"
1657 +        LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$flag"
1658 +      done
1659 +    fi
1660 +  fi
1661 +  if test "X$ltrpathdirs" != "X"; then
1662 +    dnl When using libtool, the option that works for both libraries and
1663 +    dnl executables is -R. The -R options are cumulative.
1664 +    for found_dir in $ltrpathdirs; do
1665 +      LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-R$found_dir"
1666 +    done
1667 +  fi
1668 +])
1669 +
1670 +dnl AC_LIB_APPENDTOVAR(VAR, CONTENTS) appends the elements of CONTENTS to VAR,
1671 +dnl unless already present in VAR.
1672 +dnl Works only for CPPFLAGS, not for LIB* variables because that sometimes
1673 +dnl contains two or three consecutive elements that belong together.
1674 +AC_DEFUN([AC_LIB_APPENDTOVAR],
1675 +[
1676 +  for element in [$2]; do
1677 +    haveit=
1678 +    for x in $[$1]; do
1679 +      AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
1680 +      if test "X$x" = "X$element"; then
1681 +        haveit=yes
1682 +        break
1683 +      fi
1684 +    done
1685 +    if test -z "$haveit"; then
1686 +      [$1]="${[$1]}${[$1]:+ }$element"
1687 +    fi
1688 +  done
1689 +])
1690 --- /dev/null
1691 +++ giFTcurs-0.6.2/m4/lib-prefix.m4
1692 @@ -0,0 +1,148 @@
1693 +# lib-prefix.m4 serial 1 (gettext-0.11)
1694 +dnl Copyright (C) 2001-2002 Free Software Foundation, Inc.
1695 +dnl This file is free software, distributed under the terms of the GNU
1696 +dnl General Public License.  As a special exception to the GNU General
1697 +dnl Public License, this file may be distributed as part of a program
1698 +dnl that contains a configuration script generated by Autoconf, under
1699 +dnl the same distribution terms as the rest of that program.
1700 +
1701 +dnl From Bruno Haible.
1702 +
1703 +dnl AC_LIB_PREFIX adds to the CPPFLAGS and LDFLAGS the flags that are needed
1704 +dnl to access previously installed libraries. The basic assumption is that
1705 +dnl a user will want packages to use other packages he previously installed
1706 +dnl with the same --prefix option.
1707 +dnl This macro is not needed if only AC_LIB_LINKFLAGS is used to locate
1708 +dnl libraries, but is otherwise very convenient.
1709 +AC_DEFUN([AC_LIB_PREFIX],
1710 +[
1711 +  AC_BEFORE([$0], [AC_LIB_LINKFLAGS])
1712 +  AC_REQUIRE([AC_PROG_CC])
1713 +  AC_REQUIRE([AC_CANONICAL_HOST])
1714 +  AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
1715 +  dnl By default, look in $includedir and $libdir.
1716 +  use_additional=yes
1717 +  AC_LIB_WITH_FINAL_PREFIX([
1718 +    eval additional_includedir=\"$includedir\"
1719 +    eval additional_libdir=\"$libdir\"
1720 +  ])
1721 +  AC_ARG_WITH([lib-prefix],
1722 +[  --with-lib-prefix[=DIR] search for libraries in DIR/include and DIR/lib
1723 +  --without-lib-prefix    don't search for libraries in includedir and libdir],
1724 +[
1725 +    if test "X$withval" = "Xno"; then
1726 +      use_additional=no
1727 +    else
1728 +      if test "X$withval" = "X"; then
1729 +        AC_LIB_WITH_FINAL_PREFIX([
1730 +          eval additional_includedir=\"$includedir\"
1731 +          eval additional_libdir=\"$libdir\"
1732 +        ])
1733 +      else
1734 +        additional_includedir="$withval/include"
1735 +        additional_libdir="$withval/lib"
1736 +      fi
1737 +    fi
1738 +])
1739 +  if test $use_additional = yes; then
1740 +    dnl Potentially add $additional_includedir to $CPPFLAGS.
1741 +    dnl But don't add it
1742 +    dnl   1. if it's the standard /usr/include,
1743 +    dnl   2. if it's already present in $CPPFLAGS,
1744 +    dnl   3. if it's /usr/local/include and we are using GCC on Linux,
1745 +    dnl   4. if it doesn't exist as a directory.
1746 +    if test "X$additional_includedir" != "X/usr/include"; then
1747 +      haveit=
1748 +      for x in $CPPFLAGS; do
1749 +        AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
1750 +        if test "X$x" = "X-I$additional_includedir"; then
1751 +          haveit=yes
1752 +          break
1753 +        fi
1754 +      done
1755 +      if test -z "$haveit"; then
1756 +        if test "X$additional_includedir" = "X/usr/local/include"; then
1757 +          if test -n "$GCC"; then
1758 +            case $host_os in
1759 +              linux*) haveit=yes;;
1760 +            esac
1761 +          fi
1762 +        fi
1763 +        if test -z "$haveit"; then
1764 +          if test -d "$additional_includedir"; then
1765 +            dnl Really add $additional_includedir to $CPPFLAGS.
1766 +            CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }-I$additional_includedir"
1767 +          fi
1768 +        fi
1769 +      fi
1770 +    fi
1771 +    dnl Potentially add $additional_libdir to $LDFLAGS.
1772 +    dnl But don't add it
1773 +    dnl   1. if it's the standard /usr/lib,
1774 +    dnl   2. if it's already present in $LDFLAGS,
1775 +    dnl   3. if it's /usr/local/lib and we are using GCC on Linux,
1776 +    dnl   4. if it doesn't exist as a directory.
1777 +    if test "X$additional_libdir" != "X/usr/lib"; then
1778 +      haveit=
1779 +      for x in $LDFLAGS; do
1780 +        AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
1781 +        if test "X$x" = "X-L$additional_libdir"; then
1782 +          haveit=yes
1783 +          break
1784 +        fi
1785 +      done
1786 +      if test -z "$haveit"; then
1787 +        if test "X$additional_libdir" = "X/usr/local/lib"; then
1788 +          if test -n "$GCC"; then
1789 +            case $host_os in
1790 +              linux*) haveit=yes;;
1791 +            esac
1792 +          fi
1793 +        fi
1794 +        if test -z "$haveit"; then
1795 +          if test -d "$additional_libdir"; then
1796 +            dnl Really add $additional_libdir to $LDFLAGS.
1797 +            LDFLAGS="${LDFLAGS}${LDFLAGS:+ }-L$additional_libdir"
1798 +          fi
1799 +        fi
1800 +      fi
1801 +    fi
1802 +  fi
1803 +])
1804 +
1805 +dnl AC_LIB_PREPARE_PREFIX creates variables acl_final_prefix,
1806 +dnl acl_final_exec_prefix, containing the values to which $prefix and
1807 +dnl $exec_prefix will expand at the end of the configure script.
1808 +AC_DEFUN([AC_LIB_PREPARE_PREFIX],
1809 +[
1810 +  dnl Unfortunately, prefix and exec_prefix get only finally determined
1811 +  dnl at the end of configure.
1812 +  if test "X$prefix" = "XNONE"; then
1813 +    acl_final_prefix="$ac_default_prefix"
1814 +  else
1815 +    acl_final_prefix="$prefix"
1816 +  fi
1817 +  if test "X$exec_prefix" = "XNONE"; then
1818 +    acl_final_exec_prefix='${prefix}'
1819 +  else
1820 +    acl_final_exec_prefix="$exec_prefix"
1821 +  fi
1822 +  acl_save_prefix="$prefix"
1823 +  prefix="$acl_final_prefix"
1824 +  eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
1825 +  prefix="$acl_save_prefix"
1826 +])
1827 +
1828 +dnl AC_LIB_WITH_FINAL_PREFIX([statement]) evaluates statement, with the
1829 +dnl variables prefix and exec_prefix bound to the values they will have
1830 +dnl at the end of the configure script.
1831 +AC_DEFUN([AC_LIB_WITH_FINAL_PREFIX],
1832 +[
1833 +  acl_save_prefix="$prefix"
1834 +  prefix="$acl_final_prefix"
1835 +  acl_save_exec_prefix="$exec_prefix"
1836 +  exec_prefix="$acl_final_exec_prefix"
1837 +  $1
1838 +  exec_prefix="$acl_save_exec_prefix"
1839 +  prefix="$acl_save_prefix"
1840 +])
1841 --- /dev/null
1842 +++ giFTcurs-0.6.2/m4/progtest.m4
1843 @@ -0,0 +1,59 @@
1844 +# progtest.m4 serial 2 (gettext-0.10.40)
1845 +dnl Copyright (C) 1996-2002 Free Software Foundation, Inc.
1846 +dnl This file is free software, distributed under the terms of the GNU
1847 +dnl General Public License.  As a special exception to the GNU General
1848 +dnl Public License, this file may be distributed as part of a program
1849 +dnl that contains a configuration script generated by Autoconf, under
1850 +dnl the same distribution terms as the rest of that program.
1851 +dnl
1852 +dnl This file can can be used in projects which are not available under
1853 +dnl the GNU General Public License or the GNU Library General Public
1854 +dnl License but which still want to provide support for the GNU gettext
1855 +dnl functionality.
1856 +dnl Please note that the actual code of the GNU gettext library is covered
1857 +dnl by the GNU Library General Public License, and the rest of the GNU
1858 +dnl gettext package package is covered by the GNU General Public License.
1859 +dnl They are *not* in the public domain.
1860 +
1861 +dnl Authors:
1862 +dnl   Ulrich Drepper <drepper@cygnus.com>, 1996.
1863 +
1864 +# Search path for a program which passes the given test.
1865 +
1866 +dnl AM_PATH_PROG_WITH_TEST(VARIABLE, PROG-TO-CHECK-FOR,
1867 +dnl   TEST-PERFORMED-ON-FOUND_PROGRAM [, VALUE-IF-NOT-FOUND [, PATH]])
1868 +AC_DEFUN([AM_PATH_PROG_WITH_TEST],
1869 +[# Extract the first word of "$2", so it can be a program name with args.
1870 +set dummy $2; ac_word=[$]2
1871 +AC_MSG_CHECKING([for $ac_word])
1872 +AC_CACHE_VAL(ac_cv_path_$1,
1873 +[case "[$]$1" in
1874 +  /*)
1875 +  ac_cv_path_$1="[$]$1" # Let the user override the test with a path.
1876 +  ;;
1877 +  *)
1878 +  IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1879 +  for ac_dir in ifelse([$5], , $PATH, [$5]); do
1880 +    test -z "$ac_dir" && ac_dir=.
1881 +    if test -f $ac_dir/$ac_word; then
1882 +      if [$3]; then
1883 +       ac_cv_path_$1="$ac_dir/$ac_word"
1884 +       break
1885 +      fi
1886 +    fi
1887 +  done
1888 +  IFS="$ac_save_ifs"
1889 +dnl If no 4th arg is given, leave the cache variable unset,
1890 +dnl so AC_PATH_PROGS will keep looking.
1891 +ifelse([$4], , , [  test -z "[$]ac_cv_path_$1" && ac_cv_path_$1="$4"
1892 +])dnl
1893 +  ;;
1894 +esac])dnl
1895 +$1="$ac_cv_path_$1"
1896 +if test ifelse([$4], , [-n "[$]$1"], ["[$]$1" != "$4"]); then
1897 +  AC_MSG_RESULT([$]$1)
1898 +else
1899 +  AC_MSG_RESULT(no)
1900 +fi
1901 +AC_SUBST($1)dnl
1902 +])
1903 --- /dev/null
1904 +++ giFTcurs-0.6.2/m4/stdint_h.m4
1905 @@ -0,0 +1,28 @@
1906 +# stdint_h.m4 serial 2 (gettext-0.11.4)
1907 +dnl Copyright (C) 1997-2002 Free Software Foundation, Inc.
1908 +dnl This file is free software, distributed under the terms of the GNU
1909 +dnl General Public License.  As a special exception to the GNU General
1910 +dnl Public License, this file may be distributed as part of a program
1911 +dnl that contains a configuration script generated by Autoconf, under
1912 +dnl the same distribution terms as the rest of that program.
1913 +
1914 +dnl From Paul Eggert.
1915 +
1916 +# Define HAVE_STDINT_H_WITH_UINTMAX if <stdint.h> exists,
1917 +# doesn't clash with <sys/types.h>, and declares uintmax_t.
1918 +
1919 +AC_DEFUN([jm_AC_HEADER_STDINT_H],
1920 +[
1921 +  AC_CACHE_CHECK([for stdint.h], jm_ac_cv_header_stdint_h,
1922 +  [AC_TRY_COMPILE(
1923 +    [#include <sys/types.h>
1924 +#include <stdint.h>],
1925 +    [uintmax_t i = (uintmax_t) -1;],
1926 +    jm_ac_cv_header_stdint_h=yes,
1927 +    jm_ac_cv_header_stdint_h=no)])
1928 +  if test $jm_ac_cv_header_stdint_h = yes; then
1929 +    AC_DEFINE_UNQUOTED(HAVE_STDINT_H_WITH_UINTMAX, 1,
1930 +[Define if <stdint.h> exists, doesn't clash with <sys/types.h>,
1931 +   and declares uintmax_t. ])
1932 +  fi
1933 +])
1934 --- /dev/null
1935 +++ giFTcurs-0.6.2/m4/uintmax_t.m4
1936 @@ -0,0 +1,29 @@
1937 +# uintmax_t.m4 serial 6 (gettext-0.11)
1938 +dnl Copyright (C) 1997-2002 Free Software Foundation, Inc.
1939 +dnl This file is free software, distributed under the terms of the GNU
1940 +dnl General Public License.  As a special exception to the GNU General
1941 +dnl Public License, this file may be distributed as part of a program
1942 +dnl that contains a configuration script generated by Autoconf, under
1943 +dnl the same distribution terms as the rest of that program.
1944 +
1945 +dnl From Paul Eggert.
1946 +
1947 +AC_PREREQ(2.13)
1948 +
1949 +# Define uintmax_t to `unsigned long' or `unsigned long long'
1950 +# if <inttypes.h> does not exist.
1951 +
1952 +AC_DEFUN([jm_AC_TYPE_UINTMAX_T],
1953 +[
1954 +  AC_REQUIRE([jm_AC_HEADER_INTTYPES_H])
1955 +  AC_REQUIRE([jm_AC_HEADER_STDINT_H])
1956 +  if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
1957 +    AC_REQUIRE([jm_AC_TYPE_UNSIGNED_LONG_LONG])
1958 +    test $ac_cv_type_unsigned_long_long = yes \
1959 +      && ac_type='unsigned long long' \
1960 +      || ac_type='unsigned long'
1961 +    AC_DEFINE_UNQUOTED(uintmax_t, $ac_type,
1962 +  [Define to unsigned long or unsigned long long
1963 +   if <inttypes.h> and <stdint.h> don't define.])
1964 +  fi
1965 +])
1966 --- /dev/null
1967 +++ giFTcurs-0.6.2/m4/ulonglong.m4
1968 @@ -0,0 +1,23 @@
1969 +# ulonglong.m4 serial 2 (fileutils-4.0.32, gettext-0.10.40)
1970 +dnl Copyright (C) 1999-2002 Free Software Foundation, Inc.
1971 +dnl This file is free software, distributed under the terms of the GNU
1972 +dnl General Public License.  As a special exception to the GNU General
1973 +dnl Public License, this file may be distributed as part of a program
1974 +dnl that contains a configuration script generated by Autoconf, under
1975 +dnl the same distribution terms as the rest of that program.
1976 +
1977 +dnl From Paul Eggert.
1978 +
1979 +AC_DEFUN([jm_AC_TYPE_UNSIGNED_LONG_LONG],
1980 +[
1981 +  AC_CACHE_CHECK([for unsigned long long], ac_cv_type_unsigned_long_long,
1982 +  [AC_TRY_LINK([unsigned long long ull = 1; int i = 63;],
1983 +    [unsigned long long ullmax = (unsigned long long) -1;
1984 +     return ull << i | ull >> i | ullmax / ull | ullmax % ull;],
1985 +    ac_cv_type_unsigned_long_long=yes,
1986 +    ac_cv_type_unsigned_long_long=no)])
1987 +  if test $ac_cv_type_unsigned_long_long = yes; then
1988 +    AC_DEFINE(HAVE_UNSIGNED_LONG_LONG, 1,
1989 +      [Define if you have the unsigned long long type.])
1990 +  fi
1991 +])
1992 --- /dev/null
1993 +++ giFTcurs-0.6.2/m4/ncurses.m4
1994 @@ -0,0 +1,265 @@
1995 +dnl Curses detection: Munged from Midnight Commander's configure.in
1996 +dnl Modifications for giFTcurs:
1997 +dnl . Added a check for OS X specific paths.
1998 +dnl . Somewhat modified to check for use_default_colors and resizeterm.
1999 +dnl . Trimmed away the BSD check.
2000 +dnl . Updated AC_DEFINE macros to not need acconfig.h, and therefore also
2001 +dnl   trimmed the explanation below.
2002 +dnl . Removed SCO references.
2003 +dnl . Added a --with-ncursesw flag.
2004 +dnl . Added the has_wide_curses variable.
2005 +dnl . Removed ncurses version checking.
2006 +dnl
2007 +dnl What it does:
2008 +dnl =============
2009 +dnl
2010 +dnl - Determine which version of curses is installed on your system
2011 +dnl   and set the -I/-L/-l compiler entries and add a few preprocessor
2012 +dnl   symbols 
2013 +dnl - Do an AC_SUBST on the CURSES_INCLUDEDIR and CURSES_LIBS so that
2014 +dnl   @CURSES_INCLUDEDIR@ and @CURSES_LIBS@ will be available in
2015 +dnl   Makefile.in's
2016 +dnl - Modify the following configure variables (these are the only
2017 +dnl   curses.m4 variables you can access from within configure.in)
2018 +dnl   CURSES_INCLUDEDIR - contains -I's and possibly -DRENAMED_CURSES if
2019 +dnl                       an ncurses.h that's been renamed to curses.h
2020 +dnl                       is found.
2021 +dnl   CURSES_LIBS       - sets -L and -l's appropriately
2022 +dnl   CFLAGS            - if --with-sco, add -D_SVID3 
2023 +dnl   has_curses        - exports result of tests to rest of configure
2024 +dnl
2025 +dnl Usage:
2026 +dnl ======
2027 +dnl 1) call AC_CHECK_CURSES after AC_PROG_CC in your configure.in
2028 +dnl 2) Instead of #include <curses.h> you should use the following to
2029 +dnl    properly locate ncurses or curses header file
2030 +dnl
2031 +dnl    #if defined(USE_NCURSES) && !defined(RENAMED_NCURSES)
2032 +dnl    #include <ncurses.h>
2033 +dnl    #else
2034 +dnl    #include <curses.h>
2035 +dnl    #endif
2036 +dnl
2037 +dnl 3) Make sure to add @CURSES_INCLUDEDIR@ to your preprocessor flags
2038 +dnl 4) Make sure to add @CURSES_LIBS@ to your linker flags or LIBS
2039 +dnl
2040 +dnl Notes with automake:
2041 +dnl - call AM_CONDITIONAL(HAS_CURSES, test "$has_curses" = true) from
2042 +dnl   configure.in
2043 +dnl - your Makefile.am can look something like this
2044 +dnl   -----------------------------------------------
2045 +dnl   INCLUDES= blah blah blah $(CURSES_INCLUDEDIR) 
2046 +dnl   if HAS_CURSES
2047 +dnl   CURSES_TARGETS=name_of_curses_prog
2048 +dnl   endif
2049 +dnl   bin_PROGRAMS = other_programs $(CURSES_TARGETS)
2050 +dnl   other_programs_SOURCES = blah blah blah
2051 +dnl   name_of_curses_prog_SOURCES = blah blah blah
2052 +dnl   other_programs_LDADD = blah
2053 +dnl   name_of_curses_prog_LDADD = blah $(CURSES_LIBS)
2054 +dnl   -----------------------------------------------
2055 +
2056 +
2057 +AC_DEFUN([AC_CHECK_CURSES],[
2058 +       search_ncurses=true
2059 +       screen_manager=""
2060 +       has_curses=false
2061 +       has_wide_curses=no
2062 +
2063 +       CFLAGS=${CFLAGS--O}
2064 +
2065 +       AC_SUBST(CURSES_LIBS)
2066 +       AC_SUBST(CURSES_INCLUDEDIR)
2067 +
2068 +       AC_ARG_WITH(sunos-curses,
2069 +         [  --with-sunos-curses     used to force SunOS 4.x curses],[
2070 +         if test x$withval = xyes; then
2071 +               AC_USE_SUNOS_CURSES
2072 +         fi
2073 +       ])
2074 +
2075 +       AC_ARG_WITH(osf1-curses,
2076 +         [  --with-osf1-curses      used to force OSF/1 curses],[
2077 +         if test x$withval = xyes; then
2078 +               AC_USE_OSF1_CURSES
2079 +         fi
2080 +       ])
2081 +
2082 +       AC_ARG_WITH(vcurses,
2083 +         [[  --with-vcurses[=incdir] used to force SysV curses]],
2084 +         if test x$withval != xyes; then
2085 +               CURSES_INCLUDEDIR="-I$withval"
2086 +         fi
2087 +         AC_USE_SYSV_CURSES
2088 +       )
2089 +
2090 +       AC_ARG_WITH(ncurses,
2091 +         [[  --with-ncurses[=dir]    compile with ncurses/locate base dir]],
2092 +         if test x$withval = xno ; then
2093 +               search_ncurses=false
2094 +         elif test x$withval != xyes ; then
2095 +               CURSES_LIBS="$LIBS -L$withval/lib -lncurses"
2096 +               CURSES_INCLUDEDIR="-I$withval/include"
2097 +               if test -f $withval/include/curses.h
2098 +               then
2099 +                       CURSES_INCLUDEDIR="$CURSES_INCLUDEDIR -DRENAMED_NCURSES"
2100 +               fi
2101 +               search_ncurses=false
2102 +               screen_manager="ncurses"
2103 +               AC_DEFINE(USE_NCURSES, 1, [Use Ncurses?])
2104 +               AC_DEFINE(HAS_CURSES, 1, [Found some version of curses that we're going to use])
2105 +               has_curses=true
2106 +         fi
2107 +       )
2108 +
2109 +       AC_ARG_WITH(ncursesw,
2110 +         [[  --with-ncursesw[=dir]   compile with ncursesw/locate base dir]],
2111 +         if test x$withval = xyes; then
2112 +               AC_NCURSES(/usr/include/ncursesw, curses.h, -lncursesw, -I/usr/include/ncursesw -DRENAMED_NCURSES, renamed ncursesw on /usr/include/ncursesw)
2113 +           search_ncurses=false
2114 +         elif test x$withval != xyes ; then
2115 +               CURSES_LIBS="$LIBS -L$withval/lib -lncursesw"
2116 +               CURSES_INCLUDEDIR="-I$withval/include"
2117 +               if test -f $withval/include/curses.h
2118 +               then
2119 +                       CURSES_INCLUDEDIR="$CURSES_INCLUDEDIR -DRENAMED_NCURSES"
2120 +               fi
2121 +           search_ncurses=false
2122 +               screen_manager="ncursesw"
2123 +               AC_DEFINE(USE_NCURSES, 1)
2124 +               AC_DEFINE(HAS_CURSES, 1)
2125 +               has_curses=true
2126 +         fi
2127 +       )
2128 +
2129 +       if $search_ncurses
2130 +       then
2131 +               AC_SEARCH_NCURSES()
2132 +       fi
2133 +
2134 +       dnl Check for some functions
2135 +       SAVED_LIBS="$LIBS"
2136 +       LIBS="$CURSES_LIBS"
2137 +       unset ac_cv_func_wadd_wch
2138 +       AC_CHECK_FUNCS(use_default_colors resizeterm resize_term wadd_wch)
2139 +       LIBS="$SAVED_LIBS"
2140 +
2141 +       dnl See if it's a wide curses
2142 +       if test $ac_cv_func_wadd_wch = yes; then
2143 +               has_wide_curses=yes
2144 +               AH_VERBATIM([_XOPEN_SOURCE_EXTENDED],
2145 +               [/* Enable X/Open Unix extensions */
2146 +#ifndef _XOPEN_SOURCE_EXTENDED
2147 +# define _XOPEN_SOURCE_EXTENDED
2148 +#endif])
2149 +               AC_DEFINE(WIDE_NCURSES, 1, [curses routines to work with wide chars are available])
2150 +       fi
2151 +])
2152 +
2153 +
2154 +AC_DEFUN([AC_USE_SUNOS_CURSES], [
2155 +       search_ncurses=false
2156 +       screen_manager="SunOS 4.x /usr/5include curses"
2157 +       AC_MSG_RESULT(Using SunOS 4.x /usr/5include curses)
2158 +       AC_DEFINE(USE_SUNOS_CURSES, 1, [Use SunOS SysV curses?])
2159 +       AC_DEFINE(HAS_CURSES, 1)
2160 +       has_curses=true
2161 +       AC_DEFINE(NO_COLOR_CURSES, 1, [If your curses does not have color define this one])
2162 +       AC_DEFINE(USE_SYSV_CURSES, 1, [Use SystemV curses?])
2163 +       CURSES_INCLUDEDIR="-I/usr/5include"
2164 +       CURSES_LIBS="/usr/5lib/libcurses.a /usr/5lib/libtermcap.a"
2165 +       AC_MSG_RESULT(Please note that some screen refreshes may fail)
2166 +])
2167 +
2168 +AC_DEFUN([AC_USE_OSF1_CURSES], [
2169 +       AC_MSG_RESULT(Using OSF1 curses)
2170 +       search_ncurses=false
2171 +       screen_manager="OSF1 curses"
2172 +       AC_DEFINE(HAS_CURSES, 1)
2173 +       has_curses=true
2174 +       AC_DEFINE(NO_COLOR_CURSES, 1)
2175 +       AC_DEFINE(USE_SYSV_CURSES, 1)
2176 +       CURSES_LIBS="-lcurses"
2177 +])
2178 +
2179 +AC_DEFUN([AC_USE_SYSV_CURSES], [
2180 +       AC_MSG_RESULT(Using SysV curses)
2181 +       AC_DEFINE(HAS_CURSES, 1)
2182 +       has_curses=true
2183 +       AC_DEFINE(USE_SYSV_CURSES)
2184 +       search_ncurses=false
2185 +       screen_manager="SysV/curses"
2186 +       CURSES_LIBS="-lcurses"
2187 +])
2188 +
2189 +dnl
2190 +dnl Parameters: directory filename curses_LIBS curses_INCLUDEDIR nicename
2191 +dnl
2192 +AC_DEFUN([AC_NCURSES], [
2193 +    if $search_ncurses
2194 +    then
2195 +        if test -f $1/$2
2196 +       then
2197 +           AC_MSG_RESULT(Found ncurses on $1/$2)
2198 +           CURSES_LIBS="$3"
2199 +           CURSES_INCLUDEDIR="$4"
2200 +           search_ncurses=false
2201 +           screen_manager="$5"
2202 +            AC_DEFINE(HAS_CURSES, 1)
2203 +            has_curses=true
2204 +           AC_DEFINE(USE_NCURSES, 1)
2205 +       fi
2206 +    fi
2207 +])
2208 +
2209 +AC_DEFUN([AC_SEARCH_NCURSES], [
2210 +    AC_CHECKING(location of ncurses.h file)
2211 +
2212 +    AC_NCURSES(/usr/include, ncurses.h, -lncurses,, ncurses on /usr/include)
2213 +    AC_NCURSES(/usr/include/ncurses, ncurses.h, -lncurses, -I/usr/include/ncurses, ncurses on /usr/include/ncurses)
2214 +    AC_NCURSES(/usr/local/include, ncurses.h, -L/usr/local/lib -lncurses, -I/usr/local/include, ncurses on /usr/local)
2215 +    AC_NCURSES(/usr/local/include/ncurses, ncurses.h, -L/usr/local/lib -L/usr/local/lib/ncurses -lncurses, -I/usr/local/include/ncurses, ncurses on /usr/local/include/ncurses)
2216 +
2217 +    dnl ncurses hides here on OS X
2218 +    AC_NCURSES(/sw/include, ncurses.h, -L/sw/lib -lncurses, -I/sw/include, ncurses on /sw/include)
2219 +
2220 +    AC_NCURSES(/usr/local/include/ncurses, curses.h, -L/usr/local/lib -lncurses, -I/usr/local/include/ncurses -DRENAMED_NCURSES, renamed ncurses on /usr/local/.../ncurses)
2221 +
2222 +    AC_NCURSES(/usr/include/ncurses, curses.h, -lncurses, -I/usr/include/ncurses -DRENAMED_NCURSES, renamed ncurses on /usr/include/ncurses)
2223 +
2224 +    dnl
2225 +    dnl We couldn't find ncurses, try SysV curses
2226 +    dnl
2227 +    if $search_ncurses 
2228 +    then
2229 +        AC_EGREP_HEADER(init_color, /usr/include/curses.h,
2230 +           AC_USE_SYSV_CURSES)
2231 +       AC_EGREP_CPP(USE_NCURSES,[
2232 +#include <curses.h>
2233 +#ifdef __NCURSES_H
2234 +#undef USE_NCURSES
2235 +USE_NCURSES
2236 +#endif
2237 +],[
2238 +       CURSES_INCLUDEDIR="$CURSES_INCLUDEDIR -DRENAMED_NCURSES"
2239 +        AC_DEFINE(HAS_CURSES, 1)
2240 +       has_curses=true
2241 +        AC_DEFINE(USE_NCURSES, 1)
2242 +        search_ncurses=false
2243 +        screen_manager="ncurses installed as curses"
2244 +])
2245 +    fi
2246 +
2247 +    dnl
2248 +    dnl Try SunOS 4.x /usr/5{lib,include} ncurses
2249 +    dnl The flags USE_SUNOS_CURSES, USE_BSD_CURSES and BUGGY_CURSES
2250 +    dnl should be replaced by a more fine grained selection routine
2251 +    dnl
2252 +       if $search_ncurses; then
2253 +               if test -f /usr/5include/curses.h
2254 +               then
2255 +                       AC_USE_SUNOS_CURSES
2256 +               fi
2257 +       fi
2258 +])
2259 +