Rev 46659 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed
## created from gettext 0.16.1 by## cat gettext.m4 glibc2.m4 glibc21.m4 iconv.m4 intdiv0.m4 intl.m4## intmax.m4 inttypes-pri.m4 inttypes_h.m4 lcmessage.m4 lock.m4## longdouble.m4 longlong.m4 nls.m4 po.m4 printf-posix.m4 progtest.m4## size_max.m4 stdint_h.m4 uintmax_t.m4 ulonglong.m4 visibility.m4## wchar_t.m4 wint_t.m4 xsize.m4 > .../m4/gettext.m4## Then disable testing for libiconv prefix# gettext.m4 serial 59 (gettext-0.16.1)dnl Copyright (C) 1995-2006 Free Software Foundation, Inc.dnl This file is free software; the Free Software Foundationdnl gives unlimited permission to copy and/or distribute it,dnl with or without modifications, as long as this notice is preserved.dnldnl This file can can be used in projects which are not available underdnl the GNU General Public License or the GNU Library General Publicdnl License but which still want to provide support for the GNU gettextdnl functionality.dnl Please note that the actual code of the GNU gettext library is covereddnl by the GNU Library General Public License, and the rest of the GNUdnl gettext package package is covered by the GNU General Public License.dnl They are *not* in the public domain.dnl Authors:dnl Ulrich Drepper <drepper@cygnus.com>, 1995-2000.dnl Bruno Haible <haible@clisp.cons.org>, 2000-2006.dnl Macro to add for using GNU gettext.dnl Usage: AM_GNU_GETTEXT([INTLSYMBOL], [NEEDSYMBOL], [INTLDIR]).dnl INTLSYMBOL can be one of 'external', 'no-libtool', 'use-libtool'. Thednl default (if it is not specified or empty) is 'no-libtool'.dnl INTLSYMBOL should be 'external' for packages with no intl directory,dnl and 'no-libtool' or 'use-libtool' for packages with an intl directory.dnl If INTLSYMBOL is 'use-libtool', then a libtool librarydnl $(top_builddir)/intl/libintl.la will be created (shared and/or static,dnl depending on --{enable,disable}-{shared,static} and on the presence ofdnl AM-DISABLE-SHARED). If INTLSYMBOL is 'no-libtool', a static librarydnl $(top_builddir)/intl/libintl.a will be created.dnl If NEEDSYMBOL is specified and is 'need-ngettext', then GNU gettextdnl implementations (in libc or libintl) without the ngettext() functiondnl will be ignored. If NEEDSYMBOL is specified and isdnl 'need-formatstring-macros', then GNU gettext implementations that don'tdnl support the ISO C 99 <inttypes.h> formatstring macros will be ignored.dnl INTLDIR is used to find the intl libraries. If empty,dnl the value `$(top_builddir)/intl/' is used.dnldnl The result of the configuration is one of three cases:dnl 1) GNU gettext, as included in the intl subdirectory, will be compileddnl and used.dnl Catalog format: GNU --> install in $(datadir)dnl Catalog extension: .mo after installation, .gmo in source treednl 2) GNU gettext has been found in the system's C library.dnl Catalog format: GNU --> install in $(datadir)dnl Catalog extension: .mo after installation, .gmo in source treednl 3) No internationalization, always use English msgid.dnl Catalog format: nonednl Catalog extension: nonednl If INTLSYMBOL is 'external', only cases 2 and 3 can occur.dnl The use of .gmo is historical (it was needed to avoid overwriting thednl GNU format catalogs when building on a platform with an X/Open gettext),dnl but we keep it in order not to force irrelevant filename changes on thednl maintainers.dnlAC_DEFUN([AM_GNU_GETTEXT],[dnl Argument checking.ifelse([$1], [], , [ifelse([$1], [external], , [ifelse([$1], [no-libtool], , [ifelse([$1], [use-libtool], ,[errprint([ERROR: invalid first argument to AM_GNU_GETTEXT])])])])])ifelse([$2], [], , [ifelse([$2], [need-ngettext], , [ifelse([$2], [need-formatstring-macros], ,[errprint([ERROR: invalid second argument to AM_GNU_GETTEXT])])])])define([gt_included_intl],ifelse([$1], [external],ifdef([AM_GNU_GETTEXT_][INTL_SUBDIR], [yes], [no]),[yes]))define([gt_libtool_suffix_prefix], ifelse([$1], [use-libtool], [l], []))gt_NEEDS_INITAM_GNU_GETTEXT_NEED([$2])AC_REQUIRE([AM_PO_SUBDIRS])dnlifelse(gt_included_intl, yes, [AC_REQUIRE([AM_INTL_SUBDIR])dnl])dnl Prerequisites of AC_LIB_LINKFLAGS_BODY.AC_REQUIRE([AC_LIB_PREPARE_PREFIX])AC_REQUIRE([AC_LIB_RPATH])dnl Sometimes libintl requires libiconv, so first search for libiconv.dnl Ideally we would do this search only after thednl if test "$USE_NLS" = "yes"; thendnl if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; thendnl tests. But if configure.in invokes AM_ICONV after AM_GNU_GETTEXTdnl the configure script would need to contain the same shell codednl again, outside any 'if'. There are two solutions:dnl - Invoke AM_ICONV_LINKFLAGS_BODY here, outside any 'if'.dnl - Control the expansions in more detail using AC_PROVIDE_IFELSE.dnl Since AC_PROVIDE_IFELSE is only in autoconf >= 2.52 and notdnl documented, we avoid it.ifelse(gt_included_intl, yes, , [AC_REQUIRE([AM_ICONV_LINKFLAGS_BODY])])dnl Sometimes, on MacOS X, libintl requires linking with CoreFoundation.gt_INTL_MACOSXdnl Set USE_NLS.AC_REQUIRE([AM_NLS])ifelse(gt_included_intl, yes, [BUILD_INCLUDED_LIBINTL=noUSE_INCLUDED_LIBINTL=no])LIBINTL=LTLIBINTL=POSUB=dnl Add a version number to the cache macros.case " $gt_needs " in*" need-formatstring-macros "*) gt_api_version=3 ;;*" need-ngettext "*) gt_api_version=2 ;;*) gt_api_version=1 ;;esacgt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"dnl If we use NLS figure out what methodif test "$USE_NLS" = "yes"; thengt_use_preinstalled_gnugettext=noifelse(gt_included_intl, yes, [AC_MSG_CHECKING([whether included gettext is requested])AC_ARG_WITH(included-gettext,[ --with-included-gettext use the GNU gettext library included here],nls_cv_force_use_gnu_gettext=$withval,nls_cv_force_use_gnu_gettext=no)AC_MSG_RESULT($nls_cv_force_use_gnu_gettext)nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"if test "$nls_cv_force_use_gnu_gettext" != "yes"; then])dnl User does not insist on using GNU NLS library. Figure out whatdnl to use. If GNU gettext is available we use this. Else we havednl to fall back to GNU NLS library.if test $gt_api_version -ge 3; thengt_revision_test_code='#ifndef __GNU_GETTEXT_SUPPORTED_REVISION#define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)#endifchangequote(,)dnltypedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];changequote([,])dnl'elsegt_revision_test_code=fiif test $gt_api_version -ge 2; thengt_expression_test_code=' + * ngettext ("", "", 0)'elsegt_expression_test_code=fiAC_CACHE_CHECK([for GNU gettext in libc], [$gt_func_gnugettext_libc],[AC_TRY_LINK([#include <libintl.h>$gt_revision_test_codeextern int _nl_msg_cat_cntr;extern int *_nl_domain_bindings;],[bindtextdomain ("", "");return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings],[eval "$gt_func_gnugettext_libc=yes"],[eval "$gt_func_gnugettext_libc=no"])])if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; thendnl Sometimes libintl requires libiconv, so first search for libiconv.ifelse(gt_included_intl, yes, , [AM_ICONV_LINK])dnl Search for libintl and define LIBINTL, LTLIBINTL and INCINTLdnl accordingly. Don't use AC_LIB_LINKFLAGS_BODY([intl],[iconv])dnl because that would add "-liconv" to LIBINTL and LTLIBINTLdnl even if libiconv doesn't exist.AC_LIB_LINKFLAGS_BODY([intl])AC_CACHE_CHECK([for GNU gettext in libintl],[$gt_func_gnugettext_libintl],[gt_save_CPPFLAGS="$CPPFLAGS"CPPFLAGS="$CPPFLAGS $INCINTL"gt_save_LIBS="$LIBS"LIBS="$LIBS $LIBINTL"dnl Now see whether libintl exists and does not depend on libiconv.AC_TRY_LINK([#include <libintl.h>$gt_revision_test_codeextern int _nl_msg_cat_cntr;extern#ifdef __cplusplus"C"#endifconst char *_nl_expand_alias (const char *);],[bindtextdomain ("", "");return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")],[eval "$gt_func_gnugettext_libintl=yes"],[eval "$gt_func_gnugettext_libintl=no"])dnl Now see whether libintl exists and depends on libiconv.if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; thenLIBS="$LIBS $LIBICONV"AC_TRY_LINK([#include <libintl.h>$gt_revision_test_codeextern int _nl_msg_cat_cntr;extern#ifdef __cplusplus"C"#endifconst char *_nl_expand_alias (const char *);],[bindtextdomain ("", "");return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")],[LIBINTL="$LIBINTL $LIBICONV"LTLIBINTL="$LTLIBINTL $LTLIBICONV"eval "$gt_func_gnugettext_libintl=yes"])fiCPPFLAGS="$gt_save_CPPFLAGS"LIBS="$gt_save_LIBS"])fidnl If an already present or preinstalled GNU gettext() is found,dnl use it. But if this macro is used in GNU gettext, and GNUdnl gettext is already preinstalled in libintl, we update thisdnl libintl. (Cf. the install rule in intl/Makefile.in.)if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \|| { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \&& test "$PACKAGE" != gettext-runtime \&& test "$PACKAGE" != gettext-tools; }; thengt_use_preinstalled_gnugettext=yeselsednl Reset the values set by searching for libintl.LIBINTL=LTLIBINTL=INCINTL=fiifelse(gt_included_intl, yes, [if test "$gt_use_preinstalled_gnugettext" != "yes"; thendnl GNU gettext is not found in the C library.dnl Fall back on included GNU gettext library.nls_cv_use_gnu_gettext=yesfifiif test "$nls_cv_use_gnu_gettext" = "yes"; thendnl Mark actions used to generate GNU NLS library.BUILD_INCLUDED_LIBINTL=yesUSE_INCLUDED_LIBINTL=yesdnl R change: don't include static libsLIBINTL="$LIBICONV $LIBTHREAD"dnl LIBINTL="ifelse([$3],[],\${top_builddir}/intl,[$3])/libintl.[]gt_libtool_suffix_prefix[]a $LIBICONV $LIBTHREAD"LTLIBINTL="ifelse([$3],[],\${top_builddir}/intl,[$3])/libintl.[]gt_libtool_suffix_prefix[]a $LTLIBICONV $LTLIBTHREAD"LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`fiCATOBJEXT=if test "$gt_use_preinstalled_gnugettext" = "yes" \|| test "$nls_cv_use_gnu_gettext" = "yes"; thendnl Mark actions to use GNU gettext tools.CATOBJEXT=.gmofi])if test -n "$INTL_MACOSX_LIBS"; thenif test "$gt_use_preinstalled_gnugettext" = "yes" \|| test "$nls_cv_use_gnu_gettext" = "yes"; thendnl Some extra flags are needed during linking.LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"fifiif test "$gt_use_preinstalled_gnugettext" = "yes" \|| test "$nls_cv_use_gnu_gettext" = "yes"; thenAC_DEFINE(ENABLE_NLS, 1,[Define to 1 if translation of program messages to the user's native languageis requested.])elseUSE_NLS=nofifiAC_MSG_CHECKING([whether to use NLS])AC_MSG_RESULT([$USE_NLS])if test "$USE_NLS" = "yes"; thenAC_MSG_CHECKING([where the gettext function comes from])if test "$gt_use_preinstalled_gnugettext" = "yes"; thenif { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; thengt_source="external libintl"elsegt_source="libc"fielsegt_source="included intl directory"fiAC_MSG_RESULT([$gt_source])fiif test "$USE_NLS" = "yes"; thenif test "$gt_use_preinstalled_gnugettext" = "yes"; thenif { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; thenAC_MSG_CHECKING([how to link with libintl])AC_MSG_RESULT([$LIBINTL])AC_LIB_APPENDTOVAR([CPPFLAGS], [$INCINTL])fidnl For backward compatibility. Some packages may be using this.AC_DEFINE(HAVE_GETTEXT, 1,[Define if the GNU gettext() function is already present or preinstalled.])AC_DEFINE(HAVE_DCGETTEXT, 1,[Define if the GNU dcgettext() function is already present or preinstalled.])fidnl We need to process the po/ directory.POSUB=pofiifelse(gt_included_intl, yes, [dnl If this is used in GNU gettext we have to set BUILD_INCLUDED_LIBINTLdnl to 'yes' because some of the testsuite requires it.if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; thenBUILD_INCLUDED_LIBINTL=yesfidnl Make all variables we use known to autoconf.AC_SUBST(BUILD_INCLUDED_LIBINTL)AC_SUBST(USE_INCLUDED_LIBINTL)AC_SUBST(CATOBJEXT)dnl For backward compatibility. Some configure.ins may be using this.nls_cv_header_intl=nls_cv_header_libgt=dnl For backward compatibility. Some Makefiles may be using this.DATADIRNAME=shareAC_SUBST(DATADIRNAME)dnl For backward compatibility. Some Makefiles may be using this.INSTOBJEXT=.moAC_SUBST(INSTOBJEXT)dnl For backward compatibility. Some Makefiles may be using this.GENCAT=gencatAC_SUBST(GENCAT)dnl For backward compatibility. Some Makefiles may be using this.INTLOBJS=if test "$USE_INCLUDED_LIBINTL" = yes; thenINTLOBJS="\$(GETTOBJS)"fiAC_SUBST(INTLOBJS)dnl Enable libtool support if the surrounding package wishes it.INTL_LIBTOOL_SUFFIX_PREFIX=gt_libtool_suffix_prefixAC_SUBST(INTL_LIBTOOL_SUFFIX_PREFIX)])dnl For backward compatibility. Some Makefiles may be using this.INTLLIBS="$LIBINTL"AC_SUBST(INTLLIBS)dnl Make all documented variables known to autoconf.AC_SUBST(LIBINTL)AC_SUBST(LTLIBINTL)AC_SUBST(POSUB)])dnl Checks for special options needed on MacOS X.dnl Defines INTL_MACOSX_LIBS.AC_DEFUN([gt_INTL_MACOSX],[dnl Check for API introduced in MacOS X 10.2.AC_CACHE_CHECK([for CFPreferencesCopyAppValue],gt_cv_func_CFPreferencesCopyAppValue,[gt_save_LIBS="$LIBS"LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"AC_TRY_LINK([#include <CoreFoundation/CFPreferences.h>],[CFPreferencesCopyAppValue(NULL, NULL)],[gt_cv_func_CFPreferencesCopyAppValue=yes],[gt_cv_func_CFPreferencesCopyAppValue=no])LIBS="$gt_save_LIBS"])if test $gt_cv_func_CFPreferencesCopyAppValue = yes; thenAC_DEFINE([HAVE_CFPREFERENCESCOPYAPPVALUE], 1,[Define to 1 if you have the MacOS X function CFPreferencesCopyAppValue in the CoreFoundation framework.])fidnl Check for API introduced in MacOS X 10.3.AC_CACHE_CHECK([for CFLocaleCopyCurrent], gt_cv_func_CFLocaleCopyCurrent,[gt_save_LIBS="$LIBS"LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"AC_TRY_LINK([#include <CoreFoundation/CFLocale.h>], [CFLocaleCopyCurrent();],[gt_cv_func_CFLocaleCopyCurrent=yes],[gt_cv_func_CFLocaleCopyCurrent=no])LIBS="$gt_save_LIBS"])if test $gt_cv_func_CFLocaleCopyCurrent = yes; thenAC_DEFINE([HAVE_CFLOCALECOPYCURRENT], 1,[Define to 1 if you have the MacOS X function CFLocaleCopyCurrent in the CoreFoundation framework.])fiINTL_MACOSX_LIBS=if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; thenINTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"fiAC_SUBST([INTL_MACOSX_LIBS])])dnl gt_NEEDS_INIT ensures that the gt_needs variable is initialized.m4_define([gt_NEEDS_INIT],[m4_divert_text([DEFAULTS], [gt_needs=])m4_define([gt_NEEDS_INIT], [])])dnl Usage: AM_GNU_GETTEXT_NEED([NEEDSYMBOL])AC_DEFUN([AM_GNU_GETTEXT_NEED],[m4_divert_text([INIT_PREPARE], [gt_needs="$gt_needs $1"])])dnl Usage: AM_GNU_GETTEXT_VERSION([gettext-version])AC_DEFUN([AM_GNU_GETTEXT_VERSION], [])# glibc2.m4 serial 1dnl Copyright (C) 2000-2002, 2004 Free Software Foundation, Inc.dnl This file is free software; the Free Software Foundationdnl gives unlimited permission to copy and/or distribute it,dnl with or without modifications, as long as this notice is preserved.# Test for the GNU C Library, version 2.0 or newer.# From Bruno Haible.AC_DEFUN([gt_GLIBC2],[AC_CACHE_CHECK(whether we are using the GNU C Library 2 or newer,ac_cv_gnu_library_2,[AC_EGREP_CPP([Lucky GNU user],[#include <features.h>#ifdef __GNU_LIBRARY__#if (__GLIBC__ >= 2)Lucky GNU user#endif#endif],ac_cv_gnu_library_2=yes,ac_cv_gnu_library_2=no)])AC_SUBST(GLIBC2)GLIBC2="$ac_cv_gnu_library_2"])# glibc21.m4 serial 3dnl Copyright (C) 2000-2002, 2004 Free Software Foundation, Inc.dnl This file is free software; the Free Software Foundationdnl gives unlimited permission to copy and/or distribute it,dnl with or without modifications, as long as this notice is preserved.# Test for the GNU C Library, version 2.1 or newer.# From Bruno Haible.AC_DEFUN([gl_GLIBC21],[AC_CACHE_CHECK(whether we are using the GNU C Library 2.1 or newer,ac_cv_gnu_library_2_1,[AC_EGREP_CPP([Lucky GNU user],[#include <features.h>#ifdef __GNU_LIBRARY__#if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)Lucky GNU user#endif#endif],ac_cv_gnu_library_2_1=yes,ac_cv_gnu_library_2_1=no)])AC_SUBST(GLIBC21)GLIBC21="$ac_cv_gnu_library_2_1"])# iconv.m4 serial AM4 (gettext-0.11.3)dnl Copyright (C) 2000-2002 Free Software Foundation, Inc.dnl This file is free software; the Free Software Foundationdnl gives unlimited permission to copy and/or distribute it,dnl with or without modifications, as long as this notice is preserved.dnl From Bruno Haible.AC_DEFUN([AM_ICONV_LINKFLAGS_BODY],[dnl Prerequisites of AC_LIB_LINKFLAGS_BODY.AC_REQUIRE([AC_LIB_PREPARE_PREFIX])AC_REQUIRE([AC_LIB_RPATH])dnl Search for libiconv and define LIBICONV, LTLIBICONV and INCICONVdnl accordingly.dnl AC_LIB_LINKFLAGS_BODY([iconv])])AC_DEFUN([AM_ICONV_LINK],[dnl Some systems have iconv in libc, some have it in libiconv (OSF/1 anddnl those with the standalone portable GNU libiconv installed).dnl Search for libiconv and define LIBICONV, LTLIBICONV and INCICONVdnl accordingly.dnl AC_REQUIRE([AM_ICONV_LINKFLAGS_BODY])dnl Add $INCICONV to CPPFLAGS before performing the following checks,dnl because if the user has installed libiconv and not disabled its usednl via --without-libiconv-prefix, he wants to use it. The firstdnl AC_TRY_LINK will then fail, the second AC_TRY_LINK will succeed.am_save_CPPFLAGS="$CPPFLAGS"AC_LIB_APPENDTOVAR([CPPFLAGS], [$INCICONV])AC_CACHE_CHECK(for iconv, am_cv_func_iconv, [am_cv_func_iconv="no, consider installing GNU libiconv"am_cv_lib_iconv=noAC_TRY_LINK([#include <stdlib.h>#include <iconv.h>],[iconv_t cd = iconv_open("","");iconv(cd,NULL,NULL,NULL,NULL);iconv_close(cd);],am_cv_func_iconv=yes)if test "$am_cv_func_iconv" != yes; thenam_save_LIBS="$LIBS"LIBS="$LIBS $LIBICONV"AC_TRY_LINK([#include <stdlib.h>#include <iconv.h>],[iconv_t cd = iconv_open("","");iconv(cd,NULL,NULL,NULL,NULL);iconv_close(cd);],am_cv_lib_iconv=yesam_cv_func_iconv=yes)LIBS="$am_save_LIBS"fi])if test "$am_cv_func_iconv" = yes; thenAC_DEFINE(HAVE_ICONV, 1, [Define if you have the iconv() function.])fiif test "$am_cv_lib_iconv" = yes; thenAC_MSG_CHECKING([how to link with libiconv])AC_MSG_RESULT([$LIBICONV])elsednl If $LIBICONV didn't lead to a usable library, we don't need $INCICONVdnl either.CPPFLAGS="$am_save_CPPFLAGS"LIBICONV=LTLIBICONV=fiAC_SUBST(LIBICONV)AC_SUBST(LTLIBICONV)])AC_DEFUN([AM_ICONV],[AM_ICONV_LINKif test "$am_cv_func_iconv" = yes; thenAC_MSG_CHECKING([for iconv declaration])AC_CACHE_VAL(am_cv_proto_iconv, [AC_TRY_COMPILE([#include <stdlib.h>#include <iconv.h>extern#ifdef __cplusplus"C"#endif#if defined(__STDC__) || defined(__cplusplus)size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);#elsesize_t iconv();#endif], [], am_cv_proto_iconv_arg1="", am_cv_proto_iconv_arg1="const")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);"])am_cv_proto_iconv=`echo "[$]am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`AC_MSG_RESULT([$]{ac_t:-}[$]am_cv_proto_iconv)AC_DEFINE_UNQUOTED(ICONV_CONST, $am_cv_proto_iconv_arg1,[Define as const if the declaration of iconv() needs const.])fi])# intdiv0.m4 serial 1 (gettext-0.11.3)dnl Copyright (C) 2002 Free Software Foundation, Inc.dnl This file is free software; the Free Software Foundationdnl gives unlimited permission to copy and/or distribute it,dnl with or without modifications, as long as this notice is preserved.dnl From Bruno Haible.AC_DEFUN([gt_INTDIV0],[AC_REQUIRE([AC_PROG_CC])dnlAC_REQUIRE([AC_CANONICAL_HOST])dnlAC_CACHE_CHECK([whether integer division by zero raises SIGFPE],gt_cv_int_divbyzero_sigfpe,[AC_TRY_RUN([#include <stdlib.h>#include <signal.h>static void#ifdef __cplusplussigfpe_handler (int sig)#elsesigfpe_handler (sig) int sig;#endif{/* Exit with code 0 if SIGFPE, with code 1 if any other signal. */exit (sig != SIGFPE);}int x = 1;int y = 0;int z;int nan;int main (){signal (SIGFPE, sigfpe_handler);/* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */#if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)signal (SIGTRAP, sigfpe_handler);#endif/* Linux/SPARC yields signal SIGILL. */#if defined (__sparc__) && defined (__linux__)signal (SIGILL, sigfpe_handler);#endifz = x / y;nan = y / y;exit (1);}], gt_cv_int_divbyzero_sigfpe=yes, gt_cv_int_divbyzero_sigfpe=no,[# Guess based on the CPU.case "$host_cpu" inalpha* | i[34567]86 | m68k | s390*)gt_cv_int_divbyzero_sigfpe="guessing yes";;*)gt_cv_int_divbyzero_sigfpe="guessing no";;esac])])case "$gt_cv_int_divbyzero_sigfpe" in*yes) value=1;;*) value=0;;esacAC_DEFINE_UNQUOTED(INTDIV0_RAISES_SIGFPE, $value,[Define if integer division by zero raises signal SIGFPE.])])# intl.m4 serial 3 (gettext-0.16)dnl Copyright (C) 1995-2006 Free Software Foundation, Inc.dnl This file is free software; the Free Software Foundationdnl gives unlimited permission to copy and/or distribute it,dnl with or without modifications, as long as this notice is preserved.dnldnl This file can can be used in projects which are not available underdnl the GNU General Public License or the GNU Library General Publicdnl License but which still want to provide support for the GNU gettextdnl functionality.dnl Please note that the actual code of the GNU gettext library is covereddnl by the GNU Library General Public License, and the rest of the GNUdnl gettext package package is covered by the GNU General Public License.dnl They are *not* in the public domain.dnl Authors:dnl Ulrich Drepper <drepper@cygnus.com>, 1995-2000.dnl Bruno Haible <haible@clisp.cons.org>, 2000-2006.AC_PREREQ(2.52)dnl Checks for all prerequisites of the intl subdirectory,dnl except for INTL_LIBTOOL_SUFFIX_PREFIX (and possibly LIBTOOL), INTLOBJS,dnl USE_INCLUDED_LIBINTL, BUILD_INCLUDED_LIBINTL.AC_DEFUN([AM_INTL_SUBDIR],[AC_REQUIRE([AC_PROG_INSTALL])dnlAC_REQUIRE([AM_PROG_MKDIR_P])dnl defined by automakeAC_REQUIRE([AC_PROG_CC])dnlAC_REQUIRE([AC_CANONICAL_HOST])dnlAC_REQUIRE([gt_GLIBC2])dnlAC_REQUIRE([AC_PROG_RANLIB])dnlAC_REQUIRE([gl_VISIBILITY])dnlAC_REQUIRE([gt_INTL_SUBDIR_CORE])dnlAC_REQUIRE([AC_TYPE_LONG_LONG_INT])dnlAC_REQUIRE([gt_TYPE_LONGDOUBLE])dnlAC_REQUIRE([gt_TYPE_WCHAR_T])dnlAC_REQUIRE([gt_TYPE_WINT_T])dnlAC_REQUIRE([gl_AC_HEADER_INTTYPES_H])AC_REQUIRE([gt_TYPE_INTMAX_T])AC_REQUIRE([gt_PRINTF_POSIX])AC_REQUIRE([gl_GLIBC21])dnlAC_REQUIRE([gl_XSIZE])dnlAC_REQUIRE([gt_INTL_MACOSX])dnlAC_CHECK_TYPE([ptrdiff_t], ,[AC_DEFINE([ptrdiff_t], [long],[Define as the type of the result of subtracting two pointers, if the system doesn't define it.])])AC_CHECK_HEADERS([stddef.h stdlib.h string.h])AC_CHECK_FUNCS([asprintf fwprintf putenv setenv setlocale snprintf wcslen])dnl Use the _snprintf function only if it is declared (because on NetBSD itdnl is defined as a weak alias of snprintf; we prefer to use the latter).gt_CHECK_DECL(_snprintf, [#include <stdio.h>])gt_CHECK_DECL(_snwprintf, [#include <stdio.h>])dnl Use the *_unlocked functions only if they are declared.dnl (because some of them were defined without being declared in Solarisdnl 2.5.1 but were removed in Solaris 2.6, whereas we want binaries builtdnl on Solaris 2.5.1 to run on Solaris 2.6).dnl Don't use AC_CHECK_DECLS because it isn't supported in autoconf-2.13.gt_CHECK_DECL(getc_unlocked, [#include <stdio.h>])case $gt_cv_func_printf_posix in*yes) HAVE_POSIX_PRINTF=1 ;;*) HAVE_POSIX_PRINTF=0 ;;esacAC_SUBST([HAVE_POSIX_PRINTF])if test "$ac_cv_func_asprintf" = yes; thenHAVE_ASPRINTF=1elseHAVE_ASPRINTF=0fiAC_SUBST([HAVE_ASPRINTF])if test "$ac_cv_func_snprintf" = yes; thenHAVE_SNPRINTF=1elseHAVE_SNPRINTF=0fiAC_SUBST([HAVE_SNPRINTF])if test "$ac_cv_func_wprintf" = yes; thenHAVE_WPRINTF=1elseHAVE_WPRINTF=0fiAC_SUBST([HAVE_WPRINTF])AM_LANGINFO_CODESETgt_LC_MESSAGESdnl Compilation on mingw and Cygwin needs special Makefile rules, becausednl 1. when we install a shared library, we must arrange to exportdnl auxiliary pointer variables for every exported variable,dnl 2. when we install a shared library and a static library simultaneously,dnl the include file specifies __declspec(dllimport) and therefore wednl must arrange to define the auxiliary pointer variables for thednl exported variables _also_ in the static library.if test "$enable_shared" = yes; thencase "$host_os" incygwin*) is_woe32dll=yes ;;*) is_woe32dll=no ;;esacelseis_woe32dll=nofiWOE32DLL=$is_woe32dllAC_SUBST([WOE32DLL])dnl Rename some macros and functions used for locking.AH_BOTTOM([#define __libc_lock_t gl_lock_t#define __libc_lock_define gl_lock_define#define __libc_lock_define_initialized gl_lock_define_initialized#define __libc_lock_init gl_lock_init#define __libc_lock_lock gl_lock_lock#define __libc_lock_unlock gl_lock_unlock#define __libc_lock_recursive_t gl_recursive_lock_t#define __libc_lock_define_recursive gl_recursive_lock_define#define __libc_lock_define_initialized_recursive gl_recursive_lock_define_initialized#define __libc_lock_init_recursive gl_recursive_lock_init#define __libc_lock_lock_recursive gl_recursive_lock_lock#define __libc_lock_unlock_recursive gl_recursive_lock_unlock#define glthread_in_use libintl_thread_in_use#define glthread_lock_init libintl_lock_init#define glthread_lock_lock libintl_lock_lock#define glthread_lock_unlock libintl_lock_unlock#define glthread_lock_destroy libintl_lock_destroy#define glthread_rwlock_init libintl_rwlock_init#define glthread_rwlock_rdlock libintl_rwlock_rdlock#define glthread_rwlock_wrlock libintl_rwlock_wrlock#define glthread_rwlock_unlock libintl_rwlock_unlock#define glthread_rwlock_destroy libintl_rwlock_destroy#define glthread_recursive_lock_init libintl_recursive_lock_init#define glthread_recursive_lock_lock libintl_recursive_lock_lock#define glthread_recursive_lock_unlock libintl_recursive_lock_unlock#define glthread_recursive_lock_destroy libintl_recursive_lock_destroy#define glthread_once libintl_once#define glthread_once_call libintl_once_call#define glthread_once_singlethreaded libintl_once_singlethreaded])])dnl Checks for the core files of the intl subdirectory:dnl dcigettext.cdnl eval-plural.hdnl explodename.cdnl finddomain.cdnl gettextP.hdnl gmo.hdnl hash-string.h hash-string.cdnl l10nflist.cdnl libgnuintl.h.in (except the *printf stuff)dnl loadinfo.hdnl loadmsgcat.cdnl localealias.cdnl log.cdnl plural-exp.h plural-exp.cdnl plural.ydnl Used by libglocale.AC_DEFUN([gt_INTL_SUBDIR_CORE],[AC_REQUIRE([AC_C_INLINE])dnlAC_REQUIRE([AC_TYPE_SIZE_T])dnlAC_REQUIRE([gl_AC_HEADER_STDINT_H])AC_REQUIRE([AC_FUNC_ALLOCA])dnlAC_REQUIRE([AC_FUNC_MMAP])dnlAC_REQUIRE([gt_INTDIV0])dnlAC_REQUIRE([gl_AC_TYPE_UINTMAX_T])dnlAC_REQUIRE([gt_INTTYPES_PRI])dnlAC_REQUIRE([gl_LOCK])dnlAC_TRY_LINK([int foo (int a) { a = __builtin_expect (a, 10); return a == 10 ? 0 : 1; }],[],[AC_DEFINE([HAVE_BUILTIN_EXPECT], 1,[Define to 1 if the compiler understands __builtin_expect.])])AC_CHECK_HEADERS([argz.h inttypes.h limits.h unistd.h sys/param.h])AC_CHECK_FUNCS([getcwd getegid geteuid getgid getuid mempcpy munmap \stpcpy strcasecmp strdup strtoul tsearch argz_count argz_stringify \argz_next __fsetlocking])dnl Use the *_unlocked functions only if they are declared.dnl (because some of them were defined without being declared in Solarisdnl 2.5.1 but were removed in Solaris 2.6, whereas we want binaries builtdnl on Solaris 2.5.1 to run on Solaris 2.6).dnl Don't use AC_CHECK_DECLS because it isn't supported in autoconf-2.13.gt_CHECK_DECL(feof_unlocked, [#include <stdio.h>])gt_CHECK_DECL(fgets_unlocked, [#include <stdio.h>])AM_ICONVdnl glibc >= 2.4 has a NL_LOCALE_NAME macro when _GNU_SOURCE is defined,dnl and a _NL_LOCALE_NAME macro always.AC_CACHE_CHECK([for NL_LOCALE_NAME macro], gt_cv_nl_locale_name,[AC_TRY_LINK([#include <langinfo.h>#include <locale.h>],[char* cs = nl_langinfo(_NL_LOCALE_NAME(LC_MESSAGES));],gt_cv_nl_locale_name=yes,gt_cv_nl_locale_name=no)])if test $gt_cv_nl_locale_name = yes; thenAC_DEFINE(HAVE_NL_LOCALE_NAME, 1,[Define if you have <langinfo.h> and it defines the NL_LOCALE_NAME macro if _GNU_SOURCE is defined.])fidnl intl/plural.c is generated from intl/plural.y. It requires bison,dnl because plural.y uses bison specific features. It requires at leastdnl bison-1.26 because earlier versions generate a plural.c that doesn'tdnl compile.dnl bison is only needed for the maintainer (who touches plural.y). But indnl order to avoid separate Makefiles or --enable-maintainer-mode, we putdnl the rule in general Makefile. Now, some people carelessly touch thednl files or have a broken "make" program, hence the plural.c rule willdnl sometimes fire. To avoid an error, defines BISON to ":" if it is notdnl present or too old.AC_CHECK_PROGS([INTLBISON], [bison])if test -z "$INTLBISON"; thenac_verc_fail=yeselsednl Found it, now check the version.AC_MSG_CHECKING([version of bison])changequote(<<,>>)dnlac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`case $ac_prog_version in'') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)changequote([,])dnlac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;*) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;esacAC_MSG_RESULT([$ac_prog_version])fiif test $ac_verc_fail = yes; thenINTLBISON=:fi])dnl gt_CHECK_DECL(FUNC, INCLUDES)dnl Check whether a function is declared.AC_DEFUN([gt_CHECK_DECL],[AC_CACHE_CHECK([whether $1 is declared], ac_cv_have_decl_$1,[AC_TRY_COMPILE([$2], [#ifndef $1char *p = (char *) $1;#endif], ac_cv_have_decl_$1=yes, ac_cv_have_decl_$1=no)])if test $ac_cv_have_decl_$1 = yes; thengt_value=1elsegt_value=0fiAC_DEFINE_UNQUOTED([HAVE_DECL_]translit($1, [a-z], [A-Z]), [$gt_value],[Define to 1 if you have the declaration of `$1', and to 0 if you don't.])])# intmax.m4 serial 3 (gettext-0.16)dnl Copyright (C) 2002-2005 Free Software Foundation, Inc.dnl This file is free software; the Free Software Foundationdnl gives unlimited permission to copy and/or distribute it,dnl with or without modifications, as long as this notice is preserved.dnl From Bruno Haible.dnl Test whether the system has the 'intmax_t' type, but don't attempt todnl find a replacement if it is lacking.AC_DEFUN([gt_TYPE_INTMAX_T],[AC_REQUIRE([gl_AC_HEADER_INTTYPES_H])AC_REQUIRE([gl_AC_HEADER_STDINT_H])AC_CACHE_CHECK(for intmax_t, gt_cv_c_intmax_t,[AC_TRY_COMPILE([#include <stddef.h>#include <stdlib.h>#if HAVE_STDINT_H_WITH_UINTMAX#include <stdint.h>#endif#if HAVE_INTTYPES_H_WITH_UINTMAX#include <inttypes.h>#endif], [intmax_t x = -1;return !x;],gt_cv_c_intmax_t=yes,gt_cv_c_intmax_t=no)])if test $gt_cv_c_intmax_t = yes; thenAC_DEFINE(HAVE_INTMAX_T, 1,[Define if you have the 'intmax_t' type in <stdint.h> or <inttypes.h>.])fi])# inttypes-pri.m4 serial 4 (gettext-0.16)dnl Copyright (C) 1997-2002, 2006 Free Software Foundation, Inc.dnl This file is free software; the Free Software Foundationdnl gives unlimited permission to copy and/or distribute it,dnl with or without modifications, as long as this notice is preserved.dnl From Bruno Haible.AC_PREREQ(2.52)# Define PRI_MACROS_BROKEN if <inttypes.h> exists and defines the PRI*# macros to non-string values. This is the case on AIX 4.3.3.AC_DEFUN([gt_INTTYPES_PRI],[AC_CHECK_HEADERS([inttypes.h])if test $ac_cv_header_inttypes_h = yes; thenAC_CACHE_CHECK([whether the inttypes.h PRIxNN macros are broken],gt_cv_inttypes_pri_broken,[AC_TRY_COMPILE([#include <inttypes.h>#ifdef PRId32char *p = PRId32;#endif], [], gt_cv_inttypes_pri_broken=no, gt_cv_inttypes_pri_broken=yes)])fiif test "$gt_cv_inttypes_pri_broken" = yes; thenAC_DEFINE_UNQUOTED(PRI_MACROS_BROKEN, 1,[Define if <inttypes.h> exists and defines unusable PRI* macros.])PRI_MACROS_BROKEN=1elsePRI_MACROS_BROKEN=0fiAC_SUBST([PRI_MACROS_BROKEN])])# inttypes_h.m4 serial 7dnl Copyright (C) 1997-2004, 2006 Free Software Foundation, Inc.dnl This file is free software; the Free Software Foundationdnl gives unlimited permission to copy and/or distribute it,dnl with or without modifications, as long as this notice is preserved.dnl From Paul Eggert.# Define HAVE_INTTYPES_H_WITH_UINTMAX if <inttypes.h> exists,# doesn't clash with <sys/types.h>, and declares uintmax_t.AC_DEFUN([gl_AC_HEADER_INTTYPES_H],[AC_CACHE_CHECK([for inttypes.h], gl_cv_header_inttypes_h,[AC_TRY_COMPILE([#include <sys/types.h>#include <inttypes.h>],[uintmax_t i = (uintmax_t) -1; return !i;],gl_cv_header_inttypes_h=yes,gl_cv_header_inttypes_h=no)])if test $gl_cv_header_inttypes_h = yes; thenAC_DEFINE_UNQUOTED(HAVE_INTTYPES_H_WITH_UINTMAX, 1,[Define if <inttypes.h> exists, doesn't clash with <sys/types.h>,and declares uintmax_t. ])fi])# lcmessage.m4 serial 4 (gettext-0.14.2)dnl Copyright (C) 1995-2002, 2004-2005 Free Software Foundation, Inc.dnl This file is free software; the Free Software Foundationdnl gives unlimited permission to copy and/or distribute it,dnl with or without modifications, as long as this notice is preserved.dnldnl This file can can be used in projects which are not available underdnl the GNU General Public License or the GNU Library General Publicdnl License but which still want to provide support for the GNU gettextdnl functionality.dnl Please note that the actual code of the GNU gettext library is covereddnl by the GNU Library General Public License, and the rest of the GNUdnl gettext package package is covered by the GNU General Public License.dnl They are *not* in the public domain.dnl Authors:dnl Ulrich Drepper <drepper@cygnus.com>, 1995.# Check whether LC_MESSAGES is available in <locale.h>.AC_DEFUN([gt_LC_MESSAGES],[AC_CACHE_CHECK([for LC_MESSAGES], gt_cv_val_LC_MESSAGES,[AC_TRY_LINK([#include <locale.h>], [return LC_MESSAGES],gt_cv_val_LC_MESSAGES=yes, gt_cv_val_LC_MESSAGES=no)])if test $gt_cv_val_LC_MESSAGES = yes; thenAC_DEFINE(HAVE_LC_MESSAGES, 1,[Define if your <locale.h> file defines LC_MESSAGES.])fi])# lock.m4 serial 6 (gettext-0.16)dnl Copyright (C) 2005-2006 Free Software Foundation, Inc.dnl This file is free software; the Free Software Foundationdnl gives unlimited permission to copy and/or distribute it,dnl with or without modifications, as long as this notice is preserved.dnl From Bruno Haible.dnl Tests for a multithreading library to be used.dnl Defines at most one of the macros USE_POSIX_THREADS, USE_SOLARIS_THREADS,dnl USE_PTH_THREADS, USE_WIN32_THREADSdnl Sets the variables LIBTHREAD and LTLIBTHREAD to the linker options for usednl in a Makefile (LIBTHREAD for use without libtool, LTLIBTHREAD for use withdnl libtool).dnl Sets the variables LIBMULTITHREAD and LTLIBMULTITHREAD similarly, fordnl programs that really need multithread functionality. The differencednl between LIBTHREAD and LIBMULTITHREAD is that on platforms supporting weakdnl symbols, typically LIBTHREAD="" whereas LIBMULTITHREAD="-lpthread".dnl Adds to CPPFLAGS the flag -D_REENTRANT or -D_THREAD_SAFE if needed fordnl multithread-safe programs.AC_DEFUN([gl_LOCK_EARLY],[AC_REQUIRE([gl_LOCK_EARLY_BODY])])dnl The guts of gl_LOCK_EARLY. Needs to be expanded only once.AC_DEFUN([gl_LOCK_EARLY_BODY],[dnl Ordering constraints: This macro modifies CPPFLAGS in a way thatdnl influences the result of the autoconf tests that test for *_unlockeddnl declarations, on AIX 5 at least. Therefore it must come early.AC_BEFORE([$0], [gl_FUNC_GLIBC_UNLOCKED_IO])dnlAC_BEFORE([$0], [gl_ARGP])dnlAC_REQUIRE([AC_CANONICAL_HOST])AC_REQUIRE([AC_GNU_SOURCE]) dnl needed for pthread_rwlock_t on glibc systemsdnl Check for multithreading.AC_ARG_ENABLE(threads,AC_HELP_STRING([--enable-threads={posix|solaris|pth|win32}], [specify multithreading API])AC_HELP_STRING([--disable-threads], [build without multithread safety]),[gl_use_threads=$enableval],[case "$host_os" indnl Disable multithreading by default on OSF/1, because it interferesdnl with fork()/exec(): When msgexec is linked with -lpthread, its childdnl process gets an endless segmentation fault inside execvp().osf*) gl_use_threads=no ;;*) gl_use_threads=yes ;;esac])if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then# For using <pthread.h>:case "$host_os" inosf*)# On OSF/1, the compiler needs the flag -D_REENTRANT so that it# groks <pthread.h>. cc also understands the flag -pthread, but# we don't use it because 1. gcc-2.95 doesn't understand -pthread,# 2. putting a flag into CPPFLAGS that has an effect on the linker# causes the AC_TRY_LINK test below to succeed unexpectedly,# leading to wrong values of LIBTHREAD and LTLIBTHREAD.CPPFLAGS="$CPPFLAGS -D_REENTRANT";;esac# Some systems optimize for single-threaded programs by default, and# need special flags to disable these optimizations. For example, the# definition of 'errno' in <errno.h>.case "$host_os" inaix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;;solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;;esacfi])dnl The guts of gl_LOCK. Needs to be expanded only once.AC_DEFUN([gl_LOCK_BODY],[AC_REQUIRE([gl_LOCK_EARLY_BODY])gl_threads_api=noneLIBTHREAD=LTLIBTHREAD=LIBMULTITHREAD=LTLIBMULTITHREAD=if test "$gl_use_threads" != no; thendnl Check whether the compiler and linker support weak declarations.AC_MSG_CHECKING([whether imported symbols can be declared weak])gl_have_weak=noAC_TRY_LINK([extern void xyzzy ();#pragma weak xyzzy], [xyzzy();], [gl_have_weak=yes])AC_MSG_RESULT([$gl_have_weak])if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then# On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that# it groks <pthread.h>. It's added above, in gl_LOCK_EARLY_BODY.AC_CHECK_HEADER(pthread.h, gl_have_pthread_h=yes, gl_have_pthread_h=no)if test "$gl_have_pthread_h" = yes; then# Other possible tests:# -lpthreads (FSU threads, PCthreads)# -lgthreadsgl_have_pthread=# Test whether both pthread_mutex_lock and pthread_mutexattr_init exist# in libc. IRIX 6.5 has the first one in both libc and libpthread, but# the second one only in libpthread, and lock.c needs it.AC_TRY_LINK([#include <pthread.h>],[pthread_mutex_lock((pthread_mutex_t*)0);pthread_mutexattr_init((pthread_mutexattr_t*)0);],[gl_have_pthread=yes])# Test for libpthread by looking for pthread_kill. (Not pthread_self,# since it is defined as a macro on OSF/1.)if test -n "$gl_have_pthread"; then# The program links fine without libpthread. But it may actually# need to link with libpthread in order to create multiple threads.AC_CHECK_LIB(pthread, pthread_kill,[LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread# On Solaris and HP-UX, most pthread functions exist also in libc.# Therefore pthread_in_use() needs to actually try to create a# thread: pthread_create from libc will fail, whereas# pthread_create will actually create a thread.case "$host_os" insolaris* | hpux*)AC_DEFINE([PTHREAD_IN_USE_DETECTION_HARD], 1,[Define if the pthread_in_use() detection is hard.])esac])else# Some library is needed. Try libpthread and libc_r.AC_CHECK_LIB(pthread, pthread_kill,[gl_have_pthread=yesLIBTHREAD=-lpthread LTLIBTHREAD=-lpthreadLIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread])if test -z "$gl_have_pthread"; then# For FreeBSD 4.AC_CHECK_LIB(c_r, pthread_kill,[gl_have_pthread=yesLIBTHREAD=-lc_r LTLIBTHREAD=-lc_rLIBMULTITHREAD=-lc_r LTLIBMULTITHREAD=-lc_r])fifiif test -n "$gl_have_pthread"; thengl_threads_api=posixAC_DEFINE([USE_POSIX_THREADS], 1,[Define if the POSIX multithreading library can be used.])if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; thenif test $gl_have_weak = yes; thenAC_DEFINE([USE_POSIX_THREADS_WEAK], 1,[Define if references to the POSIX multithreading library should be made weak.])LIBTHREAD=LTLIBTHREAD=fifi# OSF/1 4.0 and MacOS X 10.1 lack the pthread_rwlock_t type and the# pthread_rwlock_* functions.AC_CHECK_TYPE([pthread_rwlock_t],[AC_DEFINE([HAVE_PTHREAD_RWLOCK], 1,[Define if the POSIX multithreading library has read/write locks.])],[],[#include <pthread.h>])# glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.AC_TRY_COMPILE([#include <pthread.h>],[#if __FreeBSD__ == 4error "No, in FreeBSD 4.0 recursive mutexes actually don't work."#elseint x = (int)PTHREAD_MUTEX_RECURSIVE;return !x;#endif],[AC_DEFINE([HAVE_PTHREAD_MUTEX_RECURSIVE], 1,[Define if the <pthread.h> defines PTHREAD_MUTEX_RECURSIVE.])])fififiif test -z "$gl_have_pthread"; thenif test "$gl_use_threads" = yes || test "$gl_use_threads" = solaris; thengl_have_solaristhread=gl_save_LIBS="$LIBS"LIBS="$LIBS -lthread"AC_TRY_LINK([#include <thread.h>#include <synch.h>],[thr_self();],[gl_have_solaristhread=yes])LIBS="$gl_save_LIBS"if test -n "$gl_have_solaristhread"; thengl_threads_api=solarisLIBTHREAD=-lthreadLTLIBTHREAD=-lthreadLIBMULTITHREAD="$LIBTHREAD"LTLIBMULTITHREAD="$LTLIBTHREAD"AC_DEFINE([USE_SOLARIS_THREADS], 1,[Define if the old Solaris multithreading library can be used.])if test $gl_have_weak = yes; thenAC_DEFINE([USE_SOLARIS_THREADS_WEAK], 1,[Define if references to the old Solaris multithreading library should be made weak.])LIBTHREAD=LTLIBTHREAD=fifififiif test "$gl_use_threads" = pth; thengl_save_CPPFLAGS="$CPPFLAGS"AC_LIB_LINKFLAGS(pth)gl_have_pth=gl_save_LIBS="$LIBS"LIBS="$LIBS -lpth"AC_TRY_LINK([#include <pth.h>], [pth_self();], gl_have_pth=yes)LIBS="$gl_save_LIBS"if test -n "$gl_have_pth"; thengl_threads_api=pthLIBTHREAD="$LIBPTH"LTLIBTHREAD="$LTLIBPTH"LIBMULTITHREAD="$LIBTHREAD"LTLIBMULTITHREAD="$LTLIBTHREAD"AC_DEFINE([USE_PTH_THREADS], 1,[Define if the GNU Pth multithreading library can be used.])if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; thenif test $gl_have_weak = yes; thenAC_DEFINE([USE_PTH_THREADS_WEAK], 1,[Define if references to the GNU Pth multithreading library should be made weak.])LIBTHREAD=LTLIBTHREAD=fifielseCPPFLAGS="$gl_save_CPPFLAGS"fifiif test -z "$gl_have_pthread"; thenif test "$gl_use_threads" = yes || test "$gl_use_threads" = win32; thenif { case "$host_os" inmingw*) true;;*) false;;esac}; thengl_threads_api=win32AC_DEFINE([USE_WIN32_THREADS], 1,[Define if the Win32 multithreading API can be used.])fifififiAC_MSG_CHECKING([for multithread API to use])AC_MSG_RESULT([$gl_threads_api])AC_SUBST(LIBTHREAD)AC_SUBST(LTLIBTHREAD)AC_SUBST(LIBMULTITHREAD)AC_SUBST(LTLIBMULTITHREAD)])AC_DEFUN([gl_LOCK],[AC_REQUIRE([gl_LOCK_EARLY])AC_REQUIRE([gl_LOCK_BODY])gl_PREREQ_LOCK])# Prerequisites of lib/lock.c.AC_DEFUN([gl_PREREQ_LOCK], [AC_REQUIRE([AC_C_INLINE])])dnl Survey of platforms:dnldnl Platform Available Compiler Supports test-lockdnl flavours option weak resultdnl --------------- --------- --------- -------- ---------dnl Linux 2.4/glibc posix -lpthread Y OKdnldnl GNU Hurd/glibc posixdnldnl FreeBSD 5.3 posix -lc_r Ydnl posix -lkse ? Ydnl posix -lpthread ? Ydnl posix -lthr Ydnldnl FreeBSD 5.2 posix -lc_r Ydnl posix -lkse Ydnl posix -lthr Ydnldnl FreeBSD 4.0,4.10 posix -lc_r Y OKdnldnl NetBSD 1.6 --dnldnl OpenBSD 3.4 posix -lpthread Y OKdnldnl MacOS X 10.[123] posix -lpthread Y OKdnldnl Solaris 7,8,9 posix -lpthread Y Sol 7,8: 0.0; Sol 9: OKdnl solaris -lthread Y Sol 7,8: 0.0; Sol 9: OKdnldnl HP-UX 11 posix -lpthread N (cc) OKdnl Y (gcc)dnldnl IRIX 6.5 posix -lpthread Y 0.5dnldnl AIX 4.3,5.1 posix -lpthread N AIX 4: 0.5; AIX 5: OKdnldnl OSF/1 4.0,5.1 posix -pthread (cc) N OKdnl -lpthread (gcc) Ydnldnl Cygwin posix -lpthread Y OKdnldnl Any of the above pth -lpth 0.0dnldnl Mingw win32 N OKdnldnl BeOS 5 --dnldnl The test-lock result shows what happens if in test-lock.c EXPLICIT_YIELD isdnl turned off:dnl OK if all three tests terminate OK,dnl 0.5 if the first test terminates OK but the second one loops endlessly,dnl 0.0 if the first test already loops endlessly.# longdouble.m4 serial 2 (gettext-0.15)dnl Copyright (C) 2002-2003, 2006 Free Software Foundation, Inc.dnl This file is free software; the Free Software Foundationdnl gives unlimited permission to copy and/or distribute it,dnl with or without modifications, as long as this notice is preserved.dnl From Bruno Haible.dnl Test whether the compiler supports the 'long double' type.dnl Prerequisite: AC_PROG_CCdnl This file is only needed in autoconf <= 2.59. Newer versions of autoconfdnl have a macro AC_TYPE_LONG_DOUBLE with identical semantics.AC_DEFUN([gt_TYPE_LONGDOUBLE],[AC_CACHE_CHECK([for long double], gt_cv_c_long_double,[if test "$GCC" = yes; thengt_cv_c_long_double=yeselseAC_TRY_COMPILE([/* The Stardent Vistra knows sizeof(long double), but does not support it. */long double foo = 0.0;/* On Ultrix 4.3 cc, long double is 4 and double is 8. */int array [2*(sizeof(long double) >= sizeof(double)) - 1];], ,gt_cv_c_long_double=yes, gt_cv_c_long_double=no)fi])if test $gt_cv_c_long_double = yes; thenAC_DEFINE(HAVE_LONG_DOUBLE, 1, [Define if you have the 'long double' type.])fi])# longlong.m4 serial 8dnl Copyright (C) 1999-2006 Free Software Foundation, Inc.dnl This file is free software; the Free Software Foundationdnl gives unlimited permission to copy and/or distribute it,dnl with or without modifications, as long as this notice is preserved.dnl From Paul Eggert.# Define HAVE_LONG_LONG_INT if 'long long int' works.# This fixes a bug in Autoconf 2.60, but can be removed once we# assume 2.61 everywhere.# Note: If the type 'long long int' exists but is only 32 bits large# (as on some very old compilers), AC_TYPE_LONG_LONG_INT will not be# defined. In this case you can treat 'long long int' like 'long int'.AC_DEFUN([AC_TYPE_LONG_LONG_INT],[AC_CACHE_CHECK([for long long int], [ac_cv_type_long_long_int],[AC_LINK_IFELSE([AC_LANG_PROGRAM([[long long int ll = 9223372036854775807ll;long long int nll = -9223372036854775807LL;typedef int a[((-9223372036854775807LL < 0&& 0 < 9223372036854775807ll)? 1 : -1)];int i = 63;]],[[long long int llmax = 9223372036854775807ll;return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)| (llmax / ll) | (llmax % ll));]])],[ac_cv_type_long_long_int=yes],[ac_cv_type_long_long_int=no])])if test $ac_cv_type_long_long_int = yes; thenAC_DEFINE([HAVE_LONG_LONG_INT], 1,[Define to 1 if the system has the type `long long int'.])fi])# This macro is obsolescent and should go away soon.AC_DEFUN([gl_AC_TYPE_LONG_LONG],[AC_REQUIRE([AC_TYPE_LONG_LONG_INT])ac_cv_type_long_long=$ac_cv_type_long_long_intif test $ac_cv_type_long_long = yes; thenAC_DEFINE(HAVE_LONG_LONG, 1,[Define if you have the 'long long' type.])fi])# nls.m4 serial 3 (gettext-0.15)dnl Copyright (C) 1995-2003, 2005-2006 Free Software Foundation, Inc.dnl This file is free software; the Free Software Foundationdnl gives unlimited permission to copy and/or distribute it,dnl with or without modifications, as long as this notice is preserved.dnldnl This file can can be used in projects which are not available underdnl the GNU General Public License or the GNU Library General Publicdnl License but which still want to provide support for the GNU gettextdnl functionality.dnl Please note that the actual code of the GNU gettext library is covereddnl by the GNU Library General Public License, and the rest of the GNUdnl gettext package package is covered by the GNU General Public License.dnl They are *not* in the public domain.dnl Authors:dnl Ulrich Drepper <drepper@cygnus.com>, 1995-2000.dnl Bruno Haible <haible@clisp.cons.org>, 2000-2003.AC_PREREQ(2.50)AC_DEFUN([AM_NLS],[AC_MSG_CHECKING([whether NLS is requested])dnl Default is enabled NLSAC_ARG_ENABLE(nls,[ --disable-nls do not use Native Language Support],USE_NLS=$enableval, USE_NLS=yes)AC_MSG_RESULT($USE_NLS)AC_SUBST(USE_NLS)])# po.m4 serial 13 (gettext-0.15)dnl Copyright (C) 1995-2006 Free Software Foundation, Inc.dnl This file is free software; the Free Software Foundationdnl gives unlimited permission to copy and/or distribute it,dnl with or without modifications, as long as this notice is preserved.dnldnl This file can can be used in projects which are not available underdnl the GNU General Public License or the GNU Library General Publicdnl License but which still want to provide support for the GNU gettextdnl functionality.dnl Please note that the actual code of the GNU gettext library is covereddnl by the GNU Library General Public License, and the rest of the GNUdnl gettext package package is covered by the GNU General Public License.dnl They are *not* in the public domain.dnl Authors:dnl Ulrich Drepper <drepper@cygnus.com>, 1995-2000.dnl Bruno Haible <haible@clisp.cons.org>, 2000-2003.AC_PREREQ(2.50)dnl Checks for all prerequisites of the po subdirectory.AC_DEFUN([AM_PO_SUBDIRS],[AC_REQUIRE([AC_PROG_MAKE_SET])dnlAC_REQUIRE([AC_PROG_INSTALL])dnlAC_REQUIRE([AM_PROG_MKDIR_P])dnl defined by automakeAC_REQUIRE([AM_NLS])dnldnl Perform the following tests also if --disable-nls has been given,dnl because they are needed for "make dist" to work.dnl Search for GNU msgfmt in the PATH.dnl The first test excludes Solaris msgfmt and early GNU msgfmt versions.dnl The second test excludes FreeBSD msgfmt.AM_PATH_PROG_WITH_TEST(MSGFMT, msgfmt,[$ac_dir/$ac_word --statistics /dev/null >&]AS_MESSAGE_LOG_FD[ 2>&1 &&(if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi)],:)AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)dnl Test whether it is GNU msgfmt >= 0.15.changequote(,)dnlcase `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in'' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;*) MSGFMT_015=$MSGFMT ;;esacchangequote([,])dnlAC_SUBST([MSGFMT_015])changequote(,)dnlcase `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in'' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;*) GMSGFMT_015=$GMSGFMT ;;esacchangequote([,])dnlAC_SUBST([GMSGFMT_015])dnl Search for GNU xgettext 0.12 or newer in the PATH.dnl The first test excludes Solaris xgettext and early GNU xgettext versions.dnl The second test excludes FreeBSD xgettext.AM_PATH_PROG_WITH_TEST(XGETTEXT, xgettext,[$ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&]AS_MESSAGE_LOG_FD[ 2>&1 &&(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)],:)dnl Remove leftover from FreeBSD xgettext call.rm -f messages.podnl Test whether it is GNU xgettext >= 0.15.changequote(,)dnlcase `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in'' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;*) XGETTEXT_015=$XGETTEXT ;;esacchangequote([,])dnlAC_SUBST([XGETTEXT_015])dnl Search for GNU msgmerge 0.11 or newer in the PATH.AM_PATH_PROG_WITH_TEST(MSGMERGE, msgmerge,[$ac_dir/$ac_word --update -q /dev/null /dev/null >&]AS_MESSAGE_LOG_FD[ 2>&1], :)dnl Installation directories.dnl Autoconf >= 2.60 defines localedir. For older versions of autoconf, wednl have to define it here, so that it can be used in po/Makefile.test -n "$localedir" || localedir='${datadir}/locale'AC_SUBST([localedir])AC_CONFIG_COMMANDS([po-directories], [[for ac_file in $CONFIG_FILES; do# Support "outfile[:infile[:infile...]]"case "$ac_file" in*:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;esac# PO directories have a Makefile.in generated from Makefile.in.in.case "$ac_file" in */Makefile.in)# Adjust a relative srcdir.ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`# In autoconf-2.13 it is called $ac_given_srcdir.# In autoconf-2.50 it is called $srcdir.test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"case "$ac_given_srcdir" in.) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;/*) top_srcdir="$ac_given_srcdir" ;;*) top_srcdir="$ac_dots$ac_given_srcdir" ;;esac# Treat a directory as a PO directory if and only if it has a# POTFILES.in file. This allows packages to have multiple PO# directories under different names or in different locations.if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; thenrm -f "$ac_dir/POTFILES"test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"POMAKEFILEDEPS="POTFILES.in"# ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend# on $ac_dir but don't depend on user-specified configuration# parameters.if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then# The LINGUAS file contains the set of available languages.if test -n "$OBSOLETE_ALL_LINGUAS"; thentest -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"fiALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`# Hide the ALL_LINGUAS assigment from automake < 1.5.eval 'ALL_LINGUAS''=$ALL_LINGUAS_'POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"else# The set of available languages was given in configure.in.# Hide the ALL_LINGUAS assigment from automake < 1.5.eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'fi# Compute POFILES# as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)# Compute UPDATEPOFILES# as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)# Compute DUMMYPOFILES# as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)# Compute GMOFILES# as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)case "$ac_given_srcdir" in.) srcdirpre= ;;*) srcdirpre='$(srcdir)/' ;;esacPOFILES=UPDATEPOFILES=DUMMYPOFILES=GMOFILES=for lang in $ALL_LINGUAS; doPOFILES="$POFILES $srcdirpre$lang.po"UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"DUMMYPOFILES="$DUMMYPOFILES $lang.nop"GMOFILES="$GMOFILES $srcdirpre$lang.gmo"done# CATALOGS depends on both $ac_dir and the user's LINGUAS# environment variable.INST_LINGUAS=if test -n "$ALL_LINGUAS"; thenfor presentlang in $ALL_LINGUAS; douseit=noif test "%UNSET%" != "$LINGUAS"; thendesiredlanguages="$LINGUAS"elsedesiredlanguages="$ALL_LINGUAS"fifor desiredlang in $desiredlanguages; do# Use the presentlang catalog if desiredlang is# a. equal to presentlang, or# b. a variant of presentlang (because in this case,# presentlang can be used as a fallback for messages# which are not translated in the desiredlang catalog).case "$desiredlang" in"$presentlang"*) useit=yes;;esacdoneif test $useit = yes; thenINST_LINGUAS="$INST_LINGUAS $presentlang"fidonefiCATALOGS=if test -n "$INST_LINGUAS"; thenfor lang in $INST_LINGUAS; doCATALOGS="$CATALOGS $lang.gmo"donefitest -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"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"for f in "$ac_given_srcdir/$ac_dir"/Rules-*; doif test -f "$f"; thencase "$f" in*.orig | *.bak | *~) ;;*) cat "$f" >> "$ac_dir/Makefile" ;;esacfidonefi;;esacdone]],[# Capture the value of obsolete ALL_LINGUAS because we need it to compute# POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it# from automake < 1.5.eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'# Capture the value of LINGUAS because we need it to compute CATALOGS.LINGUAS="${LINGUAS-%UNSET%}"])])dnl Postprocesses a Makefile in a directory containing PO files.AC_DEFUN([AM_POSTPROCESS_PO_MAKEFILE],[# When this code is run, in config.status, two variables have already been# set:# - OBSOLETE_ALL_LINGUAS is the value of LINGUAS set in configure.in,# - LINGUAS is the value of the environment variable LINGUAS at configure# time.changequote(,)dnl# Adjust a relative srcdir.ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`# In autoconf-2.13 it is called $ac_given_srcdir.# In autoconf-2.50 it is called $srcdir.test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"case "$ac_given_srcdir" in.) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;/*) top_srcdir="$ac_given_srcdir" ;;*) top_srcdir="$ac_dots$ac_given_srcdir" ;;esac# Find a way to echo strings without interpreting backslash.if test "X`(echo '\t') 2>/dev/null`" = 'X\t'; thengt_echo='echo'elseif test "X`(printf '%s\n' '\t') 2>/dev/null`" = 'X\t'; thengt_echo='printf %s\n'elseecho_func () {cat <<EOT$*EOT}gt_echo='echo_func'fifi# A sed script that extracts the value of VARIABLE from a Makefile.sed_x_variable='# Test if the hold space is empty.xs/P/P/xta# Yes it was empty. Look if we have the expected variable definition./^[ ]*VARIABLE[ ]*=/{# Seen the first line of the variable definition.s/^[ ]*VARIABLE[ ]*=//ba}bd:a# Here we are processing a line from the variable definition.# Remove comment, more precisely replace it with a space.s/#.*$/ /# See if the line ends in a backslash.tb:bs/\\$//# Print the line, without the trailing backslash.ptc# There was no trailing backslash. The end of the variable definition is# reached. Clear the hold space.s/^.*$//xbd:c# A trailing backslash means that the variable definition continues in the# next line. Put a nonempty string into the hold space to indicate this.s/^.*$/P/x:d'changequote([,])dnl# Set POTFILES to the value of the Makefile variable POTFILES.sed_x_POTFILES=`$gt_echo "$sed_x_variable" | sed -e '/^ *#/d' -e 's/VARIABLE/POTFILES/g'`POTFILES=`sed -n -e "$sed_x_POTFILES" < "$ac_file"`# Compute POTFILES_DEPS as# $(foreach file, $(POTFILES), $(top_srcdir)/$(file))POTFILES_DEPS=for file in $POTFILES; doPOTFILES_DEPS="$POTFILES_DEPS "'$(top_srcdir)/'"$file"donePOMAKEFILEDEPS=""if test -n "$OBSOLETE_ALL_LINGUAS"; thentest -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"fiif test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then# The LINGUAS file contains the set of available languages.ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"else# Set ALL_LINGUAS to the value of the Makefile variable LINGUAS.sed_x_LINGUAS=`$gt_echo "$sed_x_variable" | sed -e '/^ *#/d' -e 's/VARIABLE/LINGUAS/g'`ALL_LINGUAS_=`sed -n -e "$sed_x_LINGUAS" < "$ac_file"`fi# Hide the ALL_LINGUAS assigment from automake < 1.5.eval 'ALL_LINGUAS''=$ALL_LINGUAS_'# Compute POFILES# as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)# Compute UPDATEPOFILES# as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)# Compute DUMMYPOFILES# as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)# Compute GMOFILES# as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)# Compute PROPERTIESFILES# as $(foreach lang, $(ALL_LINGUAS), $(top_srcdir)/$(DOMAIN)_$(lang).properties)# Compute CLASSFILES# as $(foreach lang, $(ALL_LINGUAS), $(top_srcdir)/$(DOMAIN)_$(lang).class)# Compute QMFILES# as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).qm)# Compute MSGFILES# as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(frob $(lang)).msg)# Compute RESOURCESDLLFILES# as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(frob $(lang))/$(DOMAIN).resources.dll)case "$ac_given_srcdir" in.) srcdirpre= ;;*) srcdirpre='$(srcdir)/' ;;esacPOFILES=UPDATEPOFILES=DUMMYPOFILES=GMOFILES=PROPERTIESFILES=CLASSFILES=QMFILES=MSGFILES=RESOURCESDLLFILES=for lang in $ALL_LINGUAS; doPOFILES="$POFILES $srcdirpre$lang.po"UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"DUMMYPOFILES="$DUMMYPOFILES $lang.nop"GMOFILES="$GMOFILES $srcdirpre$lang.gmo"PROPERTIESFILES="$PROPERTIESFILES \$(top_srcdir)/\$(DOMAIN)_$lang.properties"CLASSFILES="$CLASSFILES \$(top_srcdir)/\$(DOMAIN)_$lang.class"QMFILES="$QMFILES $srcdirpre$lang.qm"frobbedlang=`echo $lang | sed -e 's/\..*$//' -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`MSGFILES="$MSGFILES $srcdirpre$frobbedlang.msg"frobbedlang=`echo $lang | sed -e 's/_/-/g' -e 's/^sr-CS/sr-SP/' -e 's/@latin$/-Latn/' -e 's/@cyrillic$/-Cyrl/' -e 's/^sr-SP$/sr-SP-Latn/' -e 's/^uz-UZ$/uz-UZ-Latn/'`RESOURCESDLLFILES="$RESOURCESDLLFILES $srcdirpre$frobbedlang/\$(DOMAIN).resources.dll"done# CATALOGS depends on both $ac_dir and the user's LINGUAS# environment variable.INST_LINGUAS=if test -n "$ALL_LINGUAS"; thenfor presentlang in $ALL_LINGUAS; douseit=noif test "%UNSET%" != "$LINGUAS"; thendesiredlanguages="$LINGUAS"elsedesiredlanguages="$ALL_LINGUAS"fifor desiredlang in $desiredlanguages; do# Use the presentlang catalog if desiredlang is# a. equal to presentlang, or# b. a variant of presentlang (because in this case,# presentlang can be used as a fallback for messages# which are not translated in the desiredlang catalog).case "$desiredlang" in"$presentlang"*) useit=yes;;esacdoneif test $useit = yes; thenINST_LINGUAS="$INST_LINGUAS $presentlang"fidonefiCATALOGS=JAVACATALOGS=QTCATALOGS=TCLCATALOGS=CSHARPCATALOGS=if test -n "$INST_LINGUAS"; thenfor lang in $INST_LINGUAS; doCATALOGS="$CATALOGS $lang.gmo"JAVACATALOGS="$JAVACATALOGS \$(DOMAIN)_$lang.properties"QTCATALOGS="$QTCATALOGS $lang.qm"frobbedlang=`echo $lang | sed -e 's/\..*$//' -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`TCLCATALOGS="$TCLCATALOGS $frobbedlang.msg"frobbedlang=`echo $lang | sed -e 's/_/-/g' -e 's/^sr-CS/sr-SP/' -e 's/@latin$/-Latn/' -e 's/@cyrillic$/-Cyrl/' -e 's/^sr-SP$/sr-SP-Latn/' -e 's/^uz-UZ$/uz-UZ-Latn/'`CSHARPCATALOGS="$CSHARPCATALOGS $frobbedlang/\$(DOMAIN).resources.dll"donefised -e "s|@POTFILES_DEPS@|$POTFILES_DEPS|g" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@PROPERTIESFILES@|$PROPERTIESFILES|g" -e "s|@CLASSFILES@|$CLASSFILES|g" -e "s|@QMFILES@|$QMFILES|g" -e "s|@MSGFILES@|$MSGFILES|g" -e "s|@RESOURCESDLLFILES@|$RESOURCESDLLFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@JAVACATALOGS@|$JAVACATALOGS|g" -e "s|@QTCATALOGS@|$QTCATALOGS|g" -e "s|@TCLCATALOGS@|$TCLCATALOGS|g" -e "s|@CSHARPCATALOGS@|$CSHARPCATALOGS|g" -e 's,^#distdir:,distdir:,' < "$ac_file" > "$ac_file.tmp"if grep -l '@TCLCATALOGS@' "$ac_file" > /dev/null; then# Add dependencies that cannot be formulated as a simple suffix rule.for lang in $ALL_LINGUAS; dofrobbedlang=`echo $lang | sed -e 's/\..*$//' -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`cat >> "$ac_file.tmp" <<EOF$frobbedlang.msg: $lang.po@echo "\$(MSGFMT) -c --tcl -d \$(srcdir) -l $lang $srcdirpre$lang.po"; \\$(MSGFMT) -c --tcl -d "\$(srcdir)" -l $lang $srcdirpre$lang.po || { rm -f "\$(srcdir)/$frobbedlang.msg"; exit 1; }EOFdonefiif grep -l '@CSHARPCATALOGS@' "$ac_file" > /dev/null; then# Add dependencies that cannot be formulated as a simple suffix rule.for lang in $ALL_LINGUAS; dofrobbedlang=`echo $lang | sed -e 's/_/-/g' -e 's/^sr-CS/sr-SP/' -e 's/@latin$/-Latn/' -e 's/@cyrillic$/-Cyrl/' -e 's/^sr-SP$/sr-SP-Latn/' -e 's/^uz-UZ$/uz-UZ-Latn/'`cat >> "$ac_file.tmp" <<EOF$frobbedlang/\$(DOMAIN).resources.dll: $lang.po@echo "\$(MSGFMT) -c --csharp -d \$(srcdir) -l $lang $srcdirpre$lang.po -r \$(DOMAIN)"; \\$(MSGFMT) -c --csharp -d "\$(srcdir)" -l $lang $srcdirpre$lang.po -r "\$(DOMAIN)" || { rm -f "\$(srcdir)/$frobbedlang.msg"; exit 1; }EOFdonefiif test -n "$POMAKEFILEDEPS"; thencat >> "$ac_file.tmp" <<EOFMakefile: $POMAKEFILEDEPSEOFfimv "$ac_file.tmp" "$ac_file"])# printf-posix.m4 serial 2 (gettext-0.13.1)dnl Copyright (C) 2003 Free Software Foundation, Inc.dnl This file is free software; the Free Software Foundationdnl gives unlimited permission to copy and/or distribute it,dnl with or without modifications, as long as this notice is preserved.dnl From Bruno Haible.dnl Test whether the printf() function supports POSIX/XSI format strings withdnl positions.AC_DEFUN([gt_PRINTF_POSIX],[AC_REQUIRE([AC_PROG_CC])AC_CACHE_CHECK([whether printf() supports POSIX/XSI format strings],gt_cv_func_printf_posix,[AC_TRY_RUN([#include <stdio.h>#include <string.h>/* The string "%2$d %1$d", with dollar characters protected from the shell'sdollar expansion (possibly an autoconf bug). */static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };static char buf[100];int main (){sprintf (buf, format, 33, 55);return (strcmp (buf, "55 33") != 0);}], gt_cv_func_printf_posix=yes, gt_cv_func_printf_posix=no,[AC_EGREP_CPP(notposix, [#if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__notposix#endif], gt_cv_func_printf_posix="guessing no",gt_cv_func_printf_posix="guessing yes")])])case $gt_cv_func_printf_posix in*yes)AC_DEFINE(HAVE_POSIX_PRINTF, 1,[Define if your printf() function supports format strings with positions.]);;esac])# progtest.m4 serial 4 (gettext-0.14.2)dnl Copyright (C) 1996-2003, 2005 Free Software Foundation, Inc.dnl This file is free software; the Free Software Foundationdnl gives unlimited permission to copy and/or distribute it,dnl with or without modifications, as long as this notice is preserved.dnldnl This file can can be used in projects which are not available underdnl the GNU General Public License or the GNU Library General Publicdnl License but which still want to provide support for the GNU gettextdnl functionality.dnl Please note that the actual code of the GNU gettext library is covereddnl by the GNU Library General Public License, and the rest of the GNUdnl gettext package package is covered by the GNU General Public License.dnl They are *not* in the public domain.dnl Authors:dnl Ulrich Drepper <drepper@cygnus.com>, 1996.AC_PREREQ(2.50)# Search path for a program which passes the given test.dnl AM_PATH_PROG_WITH_TEST(VARIABLE, PROG-TO-CHECK-FOR,dnl TEST-PERFORMED-ON-FOUND_PROGRAM [, VALUE-IF-NOT-FOUND [, PATH]])AC_DEFUN([AM_PATH_PROG_WITH_TEST],[# Prepare PATH_SEPARATOR.# The user is always right.if test "${PATH_SEPARATOR+set}" != set; thenecho "#! /bin/sh" >conf$$.shecho "exit 0" >>conf$$.shchmod +x conf$$.shif (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; thenPATH_SEPARATOR=';'elsePATH_SEPARATOR=:firm -f conf$$.shfi# Find out how to test for executable files. Don't use a zero-byte file,# as systems may use methods other than mode bits to determine executability.cat >conf$$.file <<_ASEOF#! /bin/shexit 0_ASEOFchmod +x conf$$.fileif test -x conf$$.file >/dev/null 2>&1; thenac_executable_p="test -x"elseac_executable_p="test -f"firm -f conf$$.file# Extract the first word of "$2", so it can be a program name with args.set dummy $2; ac_word=[$]2AC_MSG_CHECKING([for $ac_word])AC_CACHE_VAL(ac_cv_path_$1,[case "[$]$1" in[[\\/]]* | ?:[[\\/]]*)ac_cv_path_$1="[$]$1" # Let the user override the test with a path.;;*)ac_save_IFS="$IFS"; IFS=$PATH_SEPARATORfor ac_dir in ifelse([$5], , $PATH, [$5]); doIFS="$ac_save_IFS"test -z "$ac_dir" && ac_dir=.for ac_exec_ext in '' $ac_executable_extensions; doif $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; thenecho "$as_me: trying $ac_dir/$ac_word..." >&AS_MESSAGE_LOG_FDif [$3]; thenac_cv_path_$1="$ac_dir/$ac_word$ac_exec_ext"break 2fifidonedoneIFS="$ac_save_IFS"dnl If no 4th arg is given, leave the cache variable unset,dnl so AC_PATH_PROGS will keep looking.ifelse([$4], , , [ test -z "[$]ac_cv_path_$1" && ac_cv_path_$1="$4"])dnl;;esac])dnl$1="$ac_cv_path_$1"if test ifelse([$4], , [-n "[$]$1"], ["[$]$1" != "$4"]); thenAC_MSG_RESULT([$]$1)elseAC_MSG_RESULT(no)fiAC_SUBST($1)dnl])# size_max.m4 serial 5dnl Copyright (C) 2003, 2005-2006 Free Software Foundation, Inc.dnl This file is free software; the Free Software Foundationdnl gives unlimited permission to copy and/or distribute it,dnl with or without modifications, as long as this notice is preserved.dnl From Bruno Haible.AC_DEFUN([gl_SIZE_MAX],[AC_CHECK_HEADERS(stdint.h)dnl First test whether the system already has SIZE_MAX.AC_MSG_CHECKING([for SIZE_MAX])AC_CACHE_VAL([gl_cv_size_max], [gl_cv_size_max=AC_EGREP_CPP([Found it], [#include <limits.h>#if HAVE_STDINT_H#include <stdint.h>#endif#ifdef SIZE_MAXFound it#endif], gl_cv_size_max=yes)if test -z "$gl_cv_size_max"; thendnl Define it ourselves. Here we assume that the type 'size_t' is not widerdnl than the type 'unsigned long'. Try hard to find a definition that candnl be used in a preprocessor #if, i.e. doesn't contain a cast._AC_COMPUTE_INT([sizeof (size_t) * CHAR_BIT - 1], size_t_bits_minus_1,[#include <stddef.h>#include <limits.h>], size_t_bits_minus_1=)_AC_COMPUTE_INT([sizeof (size_t) <= sizeof (unsigned int)], fits_in_uint,[#include <stddef.h>], fits_in_uint=)if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; thenif test $fits_in_uint = 1; thendnl Even though SIZE_MAX fits in an unsigned int, it must be of typednl 'unsigned long' if the type 'size_t' is the same as 'unsigned long'.AC_TRY_COMPILE([#include <stddef.h>extern size_t foo;extern unsigned long foo;], [], fits_in_uint=0)fidnl We cannot use 'expr' to simplify this expression, because 'expr'dnl works only with 'long' integers in the host environment, while wednl might be cross-compiling from a 32-bit platform to a 64-bit platform.if test $fits_in_uint = 1; thengl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"elsegl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"fielsednl Shouldn't happen, but who knows...gl_cv_size_max='((size_t)~(size_t)0)'fifi])AC_MSG_RESULT([$gl_cv_size_max])if test "$gl_cv_size_max" != yes; thenAC_DEFINE_UNQUOTED([SIZE_MAX], [$gl_cv_size_max],[Define as the maximum value of type 'size_t', if the system doesn't define it.])fi])# stdint_h.m4 serial 6dnl Copyright (C) 1997-2004, 2006 Free Software Foundation, Inc.dnl This file is free software; the Free Software Foundationdnl gives unlimited permission to copy and/or distribute it,dnl with or without modifications, as long as this notice is preserved.dnl From Paul Eggert.# Define HAVE_STDINT_H_WITH_UINTMAX if <stdint.h> exists,# doesn't clash with <sys/types.h>, and declares uintmax_t.AC_DEFUN([gl_AC_HEADER_STDINT_H],[AC_CACHE_CHECK([for stdint.h], gl_cv_header_stdint_h,[AC_TRY_COMPILE([#include <sys/types.h>#include <stdint.h>],[uintmax_t i = (uintmax_t) -1; return !i;],gl_cv_header_stdint_h=yes,gl_cv_header_stdint_h=no)])if test $gl_cv_header_stdint_h = yes; thenAC_DEFINE_UNQUOTED(HAVE_STDINT_H_WITH_UINTMAX, 1,[Define if <stdint.h> exists, doesn't clash with <sys/types.h>,and declares uintmax_t. ])fi])# uintmax_t.m4 serial 9dnl Copyright (C) 1997-2004 Free Software Foundation, Inc.dnl This file is free software; the Free Software Foundationdnl gives unlimited permission to copy and/or distribute it,dnl with or without modifications, as long as this notice is preserved.dnl From Paul Eggert.AC_PREREQ(2.13)# Define uintmax_t to 'unsigned long' or 'unsigned long long'# if it is not already defined in <stdint.h> or <inttypes.h>.AC_DEFUN([gl_AC_TYPE_UINTMAX_T],[AC_REQUIRE([gl_AC_HEADER_INTTYPES_H])AC_REQUIRE([gl_AC_HEADER_STDINT_H])if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; thenAC_REQUIRE([gl_AC_TYPE_UNSIGNED_LONG_LONG])test $ac_cv_type_unsigned_long_long = yes \&& ac_type='unsigned long long' \|| ac_type='unsigned long'AC_DEFINE_UNQUOTED(uintmax_t, $ac_type,[Define to unsigned long or unsigned long longif <stdint.h> and <inttypes.h> don't define.])elseAC_DEFINE(HAVE_UINTMAX_T, 1,[Define if you have the 'uintmax_t' type in <stdint.h> or <inttypes.h>.])fi])# ulonglong.m4 serial 6dnl Copyright (C) 1999-2006 Free Software Foundation, Inc.dnl This file is free software; the Free Software Foundationdnl gives unlimited permission to copy and/or distribute it,dnl with or without modifications, as long as this notice is preserved.dnl From Paul Eggert.# Define HAVE_UNSIGNED_LONG_LONG_INT if 'unsigned long long int' works.# This fixes a bug in Autoconf 2.60, but can be removed once we# assume 2.61 everywhere.# Note: If the type 'unsigned long long int' exists but is only 32 bits# large (as on some very old compilers), AC_TYPE_UNSIGNED_LONG_LONG_INT# will not be defined. In this case you can treat 'unsigned long long int'# like 'unsigned long int'.AC_DEFUN([AC_TYPE_UNSIGNED_LONG_LONG_INT],[AC_CACHE_CHECK([for unsigned long long int],[ac_cv_type_unsigned_long_long_int],[AC_LINK_IFELSE([AC_LANG_PROGRAM([[unsigned long long int ull = 18446744073709551615ULL;typedef int a[(18446744073709551615ULL <= (unsigned long long int) -1? 1 : -1)];int i = 63;]],[[unsigned long long int ullmax = 18446744073709551615ull;return (ull << 63 | ull >> 63 | ull << i | ull >> i| ullmax / ull | ullmax % ull);]])],[ac_cv_type_unsigned_long_long_int=yes],[ac_cv_type_unsigned_long_long_int=no])])if test $ac_cv_type_unsigned_long_long_int = yes; thenAC_DEFINE([HAVE_UNSIGNED_LONG_LONG_INT], 1,[Define to 1 if the system has the type `unsigned long long int'.])fi])# This macro is obsolescent and should go away soon.AC_DEFUN([gl_AC_TYPE_UNSIGNED_LONG_LONG],[AC_REQUIRE([AC_TYPE_UNSIGNED_LONG_LONG_INT])ac_cv_type_unsigned_long_long=$ac_cv_type_unsigned_long_long_intif test $ac_cv_type_unsigned_long_long = yes; thenAC_DEFINE(HAVE_UNSIGNED_LONG_LONG, 1,[Define if you have the 'unsigned long long' type.])fi])# visibility.m4 serial 1 (gettext-0.15)dnl Copyright (C) 2005 Free Software Foundation, Inc.dnl This file is free software; the Free Software Foundationdnl gives unlimited permission to copy and/or distribute it,dnl with or without modifications, as long as this notice is preserved.dnl From Bruno Haible.dnl Tests whether the compiler supports the command-line optiondnl -fvisibility=hidden and the function and variable attributesdnl __attribute__((__visibility__("hidden"))) anddnl __attribute__((__visibility__("default"))).dnl Does *not* test for __visibility__("protected") - which has trickydnl semantics (see the 'vismain' test in glibc) and does not exist e.g. ondnl MacOS X.dnl Does *not* test for __visibility__("internal") - which has processordnl dependent semantics.dnl Does *not* test for #pragma GCC visibility push(hidden) - which isdnl "really only recommended for legacy code".dnl Set the variable CFLAG_VISIBILITY.dnl Defines and sets the variable HAVE_VISIBILITY.AC_DEFUN([gl_VISIBILITY],[AC_REQUIRE([AC_PROG_CC])CFLAG_VISIBILITY=HAVE_VISIBILITY=0if test -n "$GCC"; thenAC_MSG_CHECKING([for simple visibility declarations])AC_CACHE_VAL(gl_cv_cc_visibility, [gl_save_CFLAGS="$CFLAGS"CFLAGS="$CFLAGS -fvisibility=hidden"AC_TRY_COMPILE([extern __attribute__((__visibility__("hidden"))) int hiddenvar;extern __attribute__((__visibility__("default"))) int exportedvar;extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);extern __attribute__((__visibility__("default"))) int exportedfunc (void);],[],gl_cv_cc_visibility=yes,gl_cv_cc_visibility=no)CFLAGS="$gl_save_CFLAGS"])AC_MSG_RESULT([$gl_cv_cc_visibility])if test $gl_cv_cc_visibility = yes; thenCFLAG_VISIBILITY="-fvisibility=hidden"HAVE_VISIBILITY=1fifiAC_SUBST([CFLAG_VISIBILITY])AC_SUBST([HAVE_VISIBILITY])AC_DEFINE_UNQUOTED([HAVE_VISIBILITY], [$HAVE_VISIBILITY],[Define to 1 or 0, depending whether the compiler supports simple visibility declarations.])])# wchar_t.m4 serial 1 (gettext-0.12)dnl Copyright (C) 2002-2003 Free Software Foundation, Inc.dnl This file is free software; the Free Software Foundationdnl gives unlimited permission to copy and/or distribute it,dnl with or without modifications, as long as this notice is preserved.dnl From Bruno Haible.dnl Test whether <stddef.h> has the 'wchar_t' type.dnl Prerequisite: AC_PROG_CCAC_DEFUN([gt_TYPE_WCHAR_T],[AC_CACHE_CHECK([for wchar_t], gt_cv_c_wchar_t,[AC_TRY_COMPILE([#include <stddef.h>wchar_t foo = (wchar_t)'\0';], ,gt_cv_c_wchar_t=yes, gt_cv_c_wchar_t=no)])if test $gt_cv_c_wchar_t = yes; thenAC_DEFINE(HAVE_WCHAR_T, 1, [Define if you have the 'wchar_t' type.])fi])# wint_t.m4 serial 1 (gettext-0.12)dnl Copyright (C) 2003 Free Software Foundation, Inc.dnl This file is free software; the Free Software Foundationdnl gives unlimited permission to copy and/or distribute it,dnl with or without modifications, as long as this notice is preserved.dnl From Bruno Haible.dnl Test whether <wchar.h> has the 'wint_t' type.dnl Prerequisite: AC_PROG_CCAC_DEFUN([gt_TYPE_WINT_T],[AC_CACHE_CHECK([for wint_t], gt_cv_c_wint_t,[AC_TRY_COMPILE([#include <wchar.h>wint_t foo = (wchar_t)'\0';], ,gt_cv_c_wint_t=yes, gt_cv_c_wint_t=no)])if test $gt_cv_c_wint_t = yes; thenAC_DEFINE(HAVE_WINT_T, 1, [Define if you have the 'wint_t' type.])fi])# xsize.m4 serial 3dnl Copyright (C) 2003-2004 Free Software Foundation, Inc.dnl This file is free software; the Free Software Foundationdnl gives unlimited permission to copy and/or distribute it,dnl with or without modifications, as long as this notice is preserved.AC_DEFUN([gl_XSIZE],[dnl Prerequisites of lib/xsize.h.AC_REQUIRE([gl_SIZE_MAX])AC_REQUIRE([AC_C_INLINE])AC_CHECK_HEADERS(stdint.h)])