Changeset 220
- Timestamp:
- 02/04/08 22:26:27 (4 years ago)
- Location:
- trunk
- Files:
-
- 16 modified
-
fm_gui/Makefile.in (modified) (1 diff)
-
fm_gui/aclocal.m4 (modified) (4 diffs)
-
fm_gui/configure (modified) (36 diffs)
-
fm_gui/configure.ac (modified) (1 diff)
-
fm_gui/data/Makefile.in (modified) (1 diff)
-
fm_gui/data/icons/Makefile.in (modified) (1 diff)
-
fm_gui/src/Makefile.in (modified) (1 diff)
-
fm_gui/src/tx_widgets/Makefile.in (modified) (1 diff)
-
fm_gui/src/tx_widgets/icons/Makefile.in (modified) (1 diff)
-
fm_server/Makefile.in (modified) (1 diff)
-
fm_server/aclocal.m4 (modified) (4 diffs)
-
fm_server/configure (modified) (35 diffs)
-
fm_server/src/Makefile.in (modified) (1 diff)
-
fm_server/src/fm_input_gst/Makefile.in (modified) (1 diff)
-
fm_server/src/fm_song_db/Makefile.in (modified) (1 diff)
-
fm_server/test/Makefile.in (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/fm_gui/Makefile.in
r213 r220 40 40 install-sh ltmain.sh missing mkinstalldirs 41 41 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 42 am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \ 42 am__aclocal_m4_deps = $(top_srcdir)/m4/gettext.m4 \ 43 $(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/lib-ld.m4 \ 44 $(top_srcdir)/m4/lib-link.m4 $(top_srcdir)/m4/lib-prefix.m4 \ 45 $(top_srcdir)/m4/nls.m4 $(top_srcdir)/m4/po.m4 \ 46 $(top_srcdir)/m4/progtest.m4 $(top_srcdir)/acinclude.m4 \ 43 47 $(top_srcdir)/configure.ac 44 48 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ -
trunk/fm_gui/aclocal.m4
r213 r220 16 16 You have another version of autoconf. If you want to use that, 17 17 you should regenerate the build system entirely.], [63])]) 18 19 # gettext.m4 serial 59 (gettext-0.16.1)20 dnl Copyright (C) 1995-2006 Free Software Foundation, Inc.21 dnl This file is free software; the Free Software Foundation22 dnl gives unlimited permission to copy and/or distribute it,23 dnl with or without modifications, as long as this notice is preserved.24 dnl25 dnl This file can can be used in projects which are not available under26 dnl the GNU General Public License or the GNU Library General Public27 dnl License but which still want to provide support for the GNU gettext28 dnl functionality.29 dnl Please note that the actual code of the GNU gettext library is covered30 dnl by the GNU Library General Public License, and the rest of the GNU31 dnl gettext package package is covered by the GNU General Public License.32 dnl They are *not* in the public domain.33 34 dnl Authors:35 dnl Ulrich Drepper <drepper@cygnus.com>, 1995-2000.36 dnl Bruno Haible <haible@clisp.cons.org>, 2000-2006.37 38 dnl Macro to add for using GNU gettext.39 40 dnl Usage: AM_GNU_GETTEXT([INTLSYMBOL], [NEEDSYMBOL], [INTLDIR]).41 dnl INTLSYMBOL can be one of 'external', 'no-libtool', 'use-libtool'. The42 dnl default (if it is not specified or empty) is 'no-libtool'.43 dnl INTLSYMBOL should be 'external' for packages with no intl directory,44 dnl and 'no-libtool' or 'use-libtool' for packages with an intl directory.45 dnl If INTLSYMBOL is 'use-libtool', then a libtool library46 dnl $(top_builddir)/intl/libintl.la will be created (shared and/or static,47 dnl depending on --{enable,disable}-{shared,static} and on the presence of48 dnl AM-DISABLE-SHARED). If INTLSYMBOL is 'no-libtool', a static library49 dnl $(top_builddir)/intl/libintl.a will be created.50 dnl If NEEDSYMBOL is specified and is 'need-ngettext', then GNU gettext51 dnl implementations (in libc or libintl) without the ngettext() function52 dnl will be ignored. If NEEDSYMBOL is specified and is53 dnl 'need-formatstring-macros', then GNU gettext implementations that don't54 dnl support the ISO C 99 <inttypes.h> formatstring macros will be ignored.55 dnl INTLDIR is used to find the intl libraries. If empty,56 dnl the value `$(top_builddir)/intl/' is used.57 dnl58 dnl The result of the configuration is one of three cases:59 dnl 1) GNU gettext, as included in the intl subdirectory, will be compiled60 dnl and used.61 dnl Catalog format: GNU --> install in $(datadir)62 dnl Catalog extension: .mo after installation, .gmo in source tree63 dnl 2) GNU gettext has been found in the system's C library.64 dnl Catalog format: GNU --> install in $(datadir)65 dnl Catalog extension: .mo after installation, .gmo in source tree66 dnl 3) No internationalization, always use English msgid.67 dnl Catalog format: none68 dnl Catalog extension: none69 dnl If INTLSYMBOL is 'external', only cases 2 and 3 can occur.70 dnl The use of .gmo is historical (it was needed to avoid overwriting the71 dnl GNU format catalogs when building on a platform with an X/Open gettext),72 dnl but we keep it in order not to force irrelevant filename changes on the73 dnl maintainers.74 dnl75 AC_DEFUN([AM_GNU_GETTEXT],76 [77 dnl Argument checking.78 ifelse([$1], [], , [ifelse([$1], [external], , [ifelse([$1], [no-libtool], , [ifelse([$1], [use-libtool], ,79 [errprint([ERROR: invalid first argument to AM_GNU_GETTEXT80 ])])])])])81 ifelse([$2], [], , [ifelse([$2], [need-ngettext], , [ifelse([$2], [need-formatstring-macros], ,82 [errprint([ERROR: invalid second argument to AM_GNU_GETTEXT83 ])])])])84 define([gt_included_intl],85 ifelse([$1], [external],86 ifdef([AM_GNU_GETTEXT_][INTL_SUBDIR], [yes], [no]),87 [yes]))88 define([gt_libtool_suffix_prefix], ifelse([$1], [use-libtool], [l], []))89 gt_NEEDS_INIT90 AM_GNU_GETTEXT_NEED([$2])91 92 AC_REQUIRE([AM_PO_SUBDIRS])dnl93 ifelse(gt_included_intl, yes, [94 AC_REQUIRE([AM_INTL_SUBDIR])dnl95 ])96 97 dnl Prerequisites of AC_LIB_LINKFLAGS_BODY.98 AC_REQUIRE([AC_LIB_PREPARE_PREFIX])99 AC_REQUIRE([AC_LIB_RPATH])100 101 dnl Sometimes libintl requires libiconv, so first search for libiconv.102 dnl Ideally we would do this search only after the103 dnl if test "$USE_NLS" = "yes"; then104 dnl if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then105 dnl tests. But if configure.in invokes AM_ICONV after AM_GNU_GETTEXT106 dnl the configure script would need to contain the same shell code107 dnl again, outside any 'if'. There are two solutions:108 dnl - Invoke AM_ICONV_LINKFLAGS_BODY here, outside any 'if'.109 dnl - Control the expansions in more detail using AC_PROVIDE_IFELSE.110 dnl Since AC_PROVIDE_IFELSE is only in autoconf >= 2.52 and not111 dnl documented, we avoid it.112 ifelse(gt_included_intl, yes, , [113 AC_REQUIRE([AM_ICONV_LINKFLAGS_BODY])114 ])115 116 dnl Sometimes, on MacOS X, libintl requires linking with CoreFoundation.117 gt_INTL_MACOSX118 119 dnl Set USE_NLS.120 AC_REQUIRE([AM_NLS])121 122 ifelse(gt_included_intl, yes, [123 BUILD_INCLUDED_LIBINTL=no124 USE_INCLUDED_LIBINTL=no125 ])126 LIBINTL=127 LTLIBINTL=128 POSUB=129 130 dnl Add a version number to the cache macros.131 case " $gt_needs " in132 *" need-formatstring-macros "*) gt_api_version=3 ;;133 *" need-ngettext "*) gt_api_version=2 ;;134 *) gt_api_version=1 ;;135 esac136 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"137 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"138 139 dnl If we use NLS figure out what method140 if test "$USE_NLS" = "yes"; then141 gt_use_preinstalled_gnugettext=no142 ifelse(gt_included_intl, yes, [143 AC_MSG_CHECKING([whether included gettext is requested])144 AC_ARG_WITH(included-gettext,145 [ --with-included-gettext use the GNU gettext library included here],146 nls_cv_force_use_gnu_gettext=$withval,147 nls_cv_force_use_gnu_gettext=no)148 AC_MSG_RESULT($nls_cv_force_use_gnu_gettext)149 150 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"151 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then152 ])153 dnl User does not insist on using GNU NLS library. Figure out what154 dnl to use. If GNU gettext is available we use this. Else we have155 dnl to fall back to GNU NLS library.156 157 if test $gt_api_version -ge 3; then158 gt_revision_test_code='159 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION160 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)161 #endif162 changequote(,)dnl163 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];164 changequote([,])dnl165 '166 else167 gt_revision_test_code=168 fi169 if test $gt_api_version -ge 2; then170 gt_expression_test_code=' + * ngettext ("", "", 0)'171 else172 gt_expression_test_code=173 fi174 175 AC_CACHE_CHECK([for GNU gettext in libc], [$gt_func_gnugettext_libc],176 [AC_TRY_LINK([#include <libintl.h>177 $gt_revision_test_code178 extern int _nl_msg_cat_cntr;179 extern int *_nl_domain_bindings;],180 [bindtextdomain ("", "");181 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings],182 [eval "$gt_func_gnugettext_libc=yes"],183 [eval "$gt_func_gnugettext_libc=no"])])184 185 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then186 dnl Sometimes libintl requires libiconv, so first search for libiconv.187 ifelse(gt_included_intl, yes, , [188 AM_ICONV_LINK189 ])190 dnl Search for libintl and define LIBINTL, LTLIBINTL and INCINTL191 dnl accordingly. Don't use AC_LIB_LINKFLAGS_BODY([intl],[iconv])192 dnl because that would add "-liconv" to LIBINTL and LTLIBINTL193 dnl even if libiconv doesn't exist.194 AC_LIB_LINKFLAGS_BODY([intl])195 AC_CACHE_CHECK([for GNU gettext in libintl],196 [$gt_func_gnugettext_libintl],197 [gt_save_CPPFLAGS="$CPPFLAGS"198 CPPFLAGS="$CPPFLAGS $INCINTL"199 gt_save_LIBS="$LIBS"200 LIBS="$LIBS $LIBINTL"201 dnl Now see whether libintl exists and does not depend on libiconv.202 AC_TRY_LINK([#include <libintl.h>203 $gt_revision_test_code204 extern int _nl_msg_cat_cntr;205 extern206 #ifdef __cplusplus207 "C"208 #endif209 const char *_nl_expand_alias (const char *);],210 [bindtextdomain ("", "");211 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")],212 [eval "$gt_func_gnugettext_libintl=yes"],213 [eval "$gt_func_gnugettext_libintl=no"])214 dnl Now see whether libintl exists and depends on libiconv.215 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then216 LIBS="$LIBS $LIBICONV"217 AC_TRY_LINK([#include <libintl.h>218 $gt_revision_test_code219 extern int _nl_msg_cat_cntr;220 extern221 #ifdef __cplusplus222 "C"223 #endif224 const char *_nl_expand_alias (const char *);],225 [bindtextdomain ("", "");226 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")],227 [LIBINTL="$LIBINTL $LIBICONV"228 LTLIBINTL="$LTLIBINTL $LTLIBICONV"229 eval "$gt_func_gnugettext_libintl=yes"230 ])231 fi232 CPPFLAGS="$gt_save_CPPFLAGS"233 LIBS="$gt_save_LIBS"])234 fi235 236 dnl If an already present or preinstalled GNU gettext() is found,237 dnl use it. But if this macro is used in GNU gettext, and GNU238 dnl gettext is already preinstalled in libintl, we update this239 dnl libintl. (Cf. the install rule in intl/Makefile.in.)240 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \241 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \242 && test "$PACKAGE" != gettext-runtime \243 && test "$PACKAGE" != gettext-tools; }; then244 gt_use_preinstalled_gnugettext=yes245 else246 dnl Reset the values set by searching for libintl.247 LIBINTL=248 LTLIBINTL=249 INCINTL=250 fi251 252 ifelse(gt_included_intl, yes, [253 if test "$gt_use_preinstalled_gnugettext" != "yes"; then254 dnl GNU gettext is not found in the C library.255 dnl Fall back on included GNU gettext library.256 nls_cv_use_gnu_gettext=yes257 fi258 fi259 260 if test "$nls_cv_use_gnu_gettext" = "yes"; then261 dnl Mark actions used to generate GNU NLS library.262 BUILD_INCLUDED_LIBINTL=yes263 USE_INCLUDED_LIBINTL=yes264 LIBINTL="ifelse([$3],[],\${top_builddir}/intl,[$3])/libintl.[]gt_libtool_suffix_prefix[]a $LIBICONV $LIBTHREAD"265 LTLIBINTL="ifelse([$3],[],\${top_builddir}/intl,[$3])/libintl.[]gt_libtool_suffix_prefix[]a $LTLIBICONV $LTLIBTHREAD"266 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`267 fi268 269 CATOBJEXT=270 if test "$gt_use_preinstalled_gnugettext" = "yes" \271 || test "$nls_cv_use_gnu_gettext" = "yes"; then272 dnl Mark actions to use GNU gettext tools.273 CATOBJEXT=.gmo274 fi275 ])276 277 if test -n "$INTL_MACOSX_LIBS"; then278 if test "$gt_use_preinstalled_gnugettext" = "yes" \279 || test "$nls_cv_use_gnu_gettext" = "yes"; then280 dnl Some extra flags are needed during linking.281 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"282 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"283 fi284 fi285 286 if test "$gt_use_preinstalled_gnugettext" = "yes" \287 || test "$nls_cv_use_gnu_gettext" = "yes"; then288 AC_DEFINE(ENABLE_NLS, 1,289 [Define to 1 if translation of program messages to the user's native language290 is requested.])291 else292 USE_NLS=no293 fi294 fi295 296 AC_MSG_CHECKING([whether to use NLS])297 AC_MSG_RESULT([$USE_NLS])298 if test "$USE_NLS" = "yes"; then299 AC_MSG_CHECKING([where the gettext function comes from])300 if test "$gt_use_preinstalled_gnugettext" = "yes"; then301 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then302 gt_source="external libintl"303 else304 gt_source="libc"305 fi306 else307 gt_source="included intl directory"308 fi309 AC_MSG_RESULT([$gt_source])310 fi311 312 if test "$USE_NLS" = "yes"; then313 314 if test "$gt_use_preinstalled_gnugettext" = "yes"; then315 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then316 AC_MSG_CHECKING([how to link with libintl])317 AC_MSG_RESULT([$LIBINTL])318 AC_LIB_APPENDTOVAR([CPPFLAGS], [$INCINTL])319 fi320 321 dnl For backward compatibility. Some packages may be using this.322 AC_DEFINE(HAVE_GETTEXT, 1,323 [Define if the GNU gettext() function is already present or preinstalled.])324 AC_DEFINE(HAVE_DCGETTEXT, 1,325 [Define if the GNU dcgettext() function is already present or preinstalled.])326 fi327 328 dnl We need to process the po/ directory.329 POSUB=po330 fi331 332 ifelse(gt_included_intl, yes, [333 dnl If this is used in GNU gettext we have to set BUILD_INCLUDED_LIBINTL334 dnl to 'yes' because some of the testsuite requires it.335 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then336 BUILD_INCLUDED_LIBINTL=yes337 fi338 339 dnl Make all variables we use known to autoconf.340 AC_SUBST(BUILD_INCLUDED_LIBINTL)341 AC_SUBST(USE_INCLUDED_LIBINTL)342 AC_SUBST(CATOBJEXT)343 344 dnl For backward compatibility. Some configure.ins may be using this.345 nls_cv_header_intl=346 nls_cv_header_libgt=347 348 dnl For backward compatibility. Some Makefiles may be using this.349 DATADIRNAME=share350 AC_SUBST(DATADIRNAME)351 352 dnl For backward compatibility. Some Makefiles may be using this.353 INSTOBJEXT=.mo354 AC_SUBST(INSTOBJEXT)355 356 dnl For backward compatibility. Some Makefiles may be using this.357 GENCAT=gencat358 AC_SUBST(GENCAT)359 360 dnl For backward compatibility. Some Makefiles may be using this.361 INTLOBJS=362 if test "$USE_INCLUDED_LIBINTL" = yes; then363 INTLOBJS="\$(GETTOBJS)"364 fi365 AC_SUBST(INTLOBJS)366 367 dnl Enable libtool support if the surrounding package wishes it.368 INTL_LIBTOOL_SUFFIX_PREFIX=gt_libtool_suffix_prefix369 AC_SUBST(INTL_LIBTOOL_SUFFIX_PREFIX)370 ])371 372 dnl For backward compatibility. Some Makefiles may be using this.373 INTLLIBS="$LIBINTL"374 AC_SUBST(INTLLIBS)375 376 dnl Make all documented variables known to autoconf.377 AC_SUBST(LIBINTL)378 AC_SUBST(LTLIBINTL)379 AC_SUBST(POSUB)380 ])381 382 383 dnl Checks for special options needed on MacOS X.384 dnl Defines INTL_MACOSX_LIBS.385 AC_DEFUN([gt_INTL_MACOSX],386 [387 dnl Check for API introduced in MacOS X 10.2.388 AC_CACHE_CHECK([for CFPreferencesCopyAppValue],389 gt_cv_func_CFPreferencesCopyAppValue,390 [gt_save_LIBS="$LIBS"391 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"392 AC_TRY_LINK([#include <CoreFoundation/CFPreferences.h>],393 [CFPreferencesCopyAppValue(NULL, NULL)],394 [gt_cv_func_CFPreferencesCopyAppValue=yes],395 [gt_cv_func_CFPreferencesCopyAppValue=no])396 LIBS="$gt_save_LIBS"])397 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then398 AC_DEFINE([HAVE_CFPREFERENCESCOPYAPPVALUE], 1,399 [Define to 1 if you have the MacOS X function CFPreferencesCopyAppValue in the CoreFoundation framework.])400 fi401 dnl Check for API introduced in MacOS X 10.3.402 AC_CACHE_CHECK([for CFLocaleCopyCurrent], gt_cv_func_CFLocaleCopyCurrent,403 [gt_save_LIBS="$LIBS"404 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"405 AC_TRY_LINK([#include <CoreFoundation/CFLocale.h>], [CFLocaleCopyCurrent();],406 [gt_cv_func_CFLocaleCopyCurrent=yes],407 [gt_cv_func_CFLocaleCopyCurrent=no])408 LIBS="$gt_save_LIBS"])409 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then410 AC_DEFINE([HAVE_CFLOCALECOPYCURRENT], 1,411 [Define to 1 if you have the MacOS X function CFLocaleCopyCurrent in the CoreFoundation framework.])412 fi413 INTL_MACOSX_LIBS=414 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then415 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"416 fi417 AC_SUBST([INTL_MACOSX_LIBS])418 ])419 420 421 dnl gt_NEEDS_INIT ensures that the gt_needs variable is initialized.422 m4_define([gt_NEEDS_INIT],423 [424 m4_divert_text([DEFAULTS], [gt_needs=])425 m4_define([gt_NEEDS_INIT], [])426 ])427 428 429 dnl Usage: AM_GNU_GETTEXT_NEED([NEEDSYMBOL])430 AC_DEFUN([AM_GNU_GETTEXT_NEED],431 [432 m4_divert_text([INIT_PREPARE], [gt_needs="$gt_needs $1"])433 ])434 435 436 dnl Usage: AM_GNU_GETTEXT_VERSION([gettext-version])437 AC_DEFUN([AM_GNU_GETTEXT_VERSION], [])438 439 # iconv.m4 serial AM4 (gettext-0.11.3)440 dnl Copyright (C) 2000-2002 Free Software Foundation, Inc.441 dnl This file is free software; the Free Software Foundation442 dnl gives unlimited permission to copy and/or distribute it,443 dnl with or without modifications, as long as this notice is preserved.444 445 dnl From Bruno Haible.446 447 AC_DEFUN([AM_ICONV_LINKFLAGS_BODY],448 [449 dnl Prerequisites of AC_LIB_LINKFLAGS_BODY.450 AC_REQUIRE([AC_LIB_PREPARE_PREFIX])451 AC_REQUIRE([AC_LIB_RPATH])452 453 dnl Search for libiconv and define LIBICONV, LTLIBICONV and INCICONV454 dnl accordingly.455 AC_LIB_LINKFLAGS_BODY([iconv])456 ])457 458 AC_DEFUN([AM_ICONV_LINK],459 [460 dnl Some systems have iconv in libc, some have it in libiconv (OSF/1 and461 dnl those with the standalone portable GNU libiconv installed).462 463 dnl Search for libiconv and define LIBICONV, LTLIBICONV and INCICONV464 dnl accordingly.465 AC_REQUIRE([AM_ICONV_LINKFLAGS_BODY])466 467 dnl Add $INCICONV to CPPFLAGS before performing the following checks,468 dnl because if the user has installed libiconv and not disabled its use469 dnl via --without-libiconv-prefix, he wants to use it. The first470 dnl AC_TRY_LINK will then fail, the second AC_TRY_LINK will succeed.471 am_save_CPPFLAGS="$CPPFLAGS"472 AC_LIB_APPENDTOVAR([CPPFLAGS], [$INCICONV])473 474 AC_CACHE_CHECK(for iconv, am_cv_func_iconv, [475 am_cv_func_iconv="no, consider installing GNU libiconv"476 am_cv_lib_iconv=no477 AC_TRY_LINK([#include <stdlib.h>478 #include <iconv.h>],479 [iconv_t cd = iconv_open("","");480 iconv(cd,NULL,NULL,NULL,NULL);481 iconv_close(cd);],482 am_cv_func_iconv=yes)483 if test "$am_cv_func_iconv" != yes; then484 am_save_LIBS="$LIBS"485 LIBS="$LIBS $LIBICONV"486 AC_TRY_LINK([#include <stdlib.h>487 #include <iconv.h>],488 [iconv_t cd = iconv_open("","");489 iconv(cd,NULL,NULL,NULL,NULL);490 iconv_close(cd);],491 am_cv_lib_iconv=yes492 am_cv_func_iconv=yes)493 LIBS="$am_save_LIBS"494 fi495 ])496 if test "$am_cv_func_iconv" = yes; then497 AC_DEFINE(HAVE_ICONV, 1, [Define if you have the iconv() function.])498 fi499 if test "$am_cv_lib_iconv" = yes; then500 AC_MSG_CHECKING([how to link with libiconv])501 AC_MSG_RESULT([$LIBICONV])502 else503 dnl If $LIBICONV didn't lead to a usable library, we don't need $INCICONV504 dnl either.505 CPPFLAGS="$am_save_CPPFLAGS"506 LIBICONV=507 LTLIBICONV=508 fi509 AC_SUBST(LIBICONV)510 AC_SUBST(LTLIBICONV)511 ])512 513 AC_DEFUN([AM_ICONV],514 [515 AM_ICONV_LINK516 if test "$am_cv_func_iconv" = yes; then517 AC_MSG_CHECKING([for iconv declaration])518 AC_CACHE_VAL(am_cv_proto_iconv, [519 AC_TRY_COMPILE([520 #include <stdlib.h>521 #include <iconv.h>522 extern523 #ifdef __cplusplus524 "C"525 #endif526 #if defined(__STDC__) || defined(__cplusplus)527 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);528 #else529 size_t iconv();530 #endif531 ], [], am_cv_proto_iconv_arg1="", am_cv_proto_iconv_arg1="const")532 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);"])533 am_cv_proto_iconv=`echo "[$]am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`534 AC_MSG_RESULT([$]{ac_t:-535 }[$]am_cv_proto_iconv)536 AC_DEFINE_UNQUOTED(ICONV_CONST, $am_cv_proto_iconv_arg1,537 [Define as const if the declaration of iconv() needs const.])538 fi539 ])540 541 # lib-ld.m4 serial 3 (gettext-0.13)542 dnl Copyright (C) 1996-2003 Free Software Foundation, Inc.543 dnl This file is free software; the Free Software Foundation544 dnl gives unlimited permission to copy and/or distribute it,545 dnl with or without modifications, as long as this notice is preserved.546 547 dnl Subroutines of libtool.m4,548 dnl with replacements s/AC_/AC_LIB/ and s/lt_cv/acl_cv/ to avoid collision549 dnl with libtool.m4.550 551 dnl From libtool-1.4. Sets the variable with_gnu_ld to yes or no.552 AC_DEFUN([AC_LIB_PROG_LD_GNU],553 [AC_CACHE_CHECK([if the linker ($LD) is GNU ld], acl_cv_prog_gnu_ld,554 [# I'd rather use --version here, but apparently some GNU ld's only accept -v.555 case `$LD -v 2>&1 </dev/null` in556 *GNU* | *'with BFD'*)557 acl_cv_prog_gnu_ld=yes ;;558 *)559 acl_cv_prog_gnu_ld=no ;;560 esac])561 with_gnu_ld=$acl_cv_prog_gnu_ld562 ])563 564 dnl From libtool-1.4. Sets the variable LD.565 AC_DEFUN([AC_LIB_PROG_LD],566 [AC_ARG_WITH(gnu-ld,567 [ --with-gnu-ld assume the C compiler uses GNU ld [default=no]],568 test "$withval" = no || with_gnu_ld=yes, with_gnu_ld=no)569 AC_REQUIRE([AC_PROG_CC])dnl570 AC_REQUIRE([AC_CANONICAL_HOST])dnl571 # Prepare PATH_SEPARATOR.572 # The user is always right.573 if test "${PATH_SEPARATOR+set}" != set; then574 echo "#! /bin/sh" >conf$$.sh575 echo "exit 0" >>conf$$.sh576 chmod +x conf$$.sh577 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then578 PATH_SEPARATOR=';'579 else580 PATH_SEPARATOR=:581 fi582 rm -f conf$$.sh583 fi584 ac_prog=ld585 if test "$GCC" = yes; then586 # Check if gcc -print-prog-name=ld gives a path.587 AC_MSG_CHECKING([for ld used by GCC])588 case $host in589 *-*-mingw*)590 # gcc leaves a trailing carriage return which upsets mingw591 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;592 *)593 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;594 esac595 case $ac_prog in596 # Accept absolute paths.597 [[\\/]* | [A-Za-z]:[\\/]*)]598 [re_direlt='/[^/][^/]*/\.\./']599 # Canonicalize the path of ld600 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`601 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do602 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`603 done604 test -z "$LD" && LD="$ac_prog"605 ;;606 "")607 # If it fails, then pretend we aren't using GCC.608 ac_prog=ld609 ;;610 *)611 # If it is relative, then search for the first ld in PATH.612 with_gnu_ld=unknown613 ;;614 esac615 elif test "$with_gnu_ld" = yes; then616 AC_MSG_CHECKING([for GNU ld])617 else618 AC_MSG_CHECKING([for non-GNU ld])619 fi620 AC_CACHE_VAL(acl_cv_path_LD,621 [if test -z "$LD"; then622 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"623 for ac_dir in $PATH; do624 test -z "$ac_dir" && ac_dir=.625 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then626 acl_cv_path_LD="$ac_dir/$ac_prog"627 # Check to see if the program is GNU ld. I'd rather use --version,628 # but apparently some GNU ld's only accept -v.629 # Break only if it was the GNU/non-GNU ld that we prefer.630 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in631 *GNU* | *'with BFD'*)632 test "$with_gnu_ld" != no && break ;;633 *)634 test "$with_gnu_ld" != yes && break ;;635 esac636 fi637 done638 IFS="$ac_save_ifs"639 else640 acl_cv_path_LD="$LD" # Let the user override the test with a path.641 fi])642 LD="$acl_cv_path_LD"643 if test -n "$LD"; then644 AC_MSG_RESULT($LD)645 else646 AC_MSG_RESULT(no)647 fi648 test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])649 AC_LIB_PROG_LD_GNU650 ])651 652 # lib-link.m4 serial 9 (gettext-0.16)653 dnl Copyright (C) 2001-2006 Free Software Foundation, Inc.654 dnl This file is free software; the Free Software Foundation655 dnl gives unlimited permission to copy and/or distribute it,656 dnl with or without modifications, as long as this notice is preserved.657 658 dnl From Bruno Haible.659 660 AC_PREREQ(2.50)661 662 dnl AC_LIB_LINKFLAGS(name [, dependencies]) searches for libname and663 dnl the libraries corresponding to explicit and implicit dependencies.664 dnl Sets and AC_SUBSTs the LIB${NAME} and LTLIB${NAME} variables and665 dnl augments the CPPFLAGS variable.666 AC_DEFUN([AC_LIB_LINKFLAGS],667 [668 AC_REQUIRE([AC_LIB_PREPARE_PREFIX])669 AC_REQUIRE([AC_LIB_RPATH])670 define([Name],[translit([$1],[./-], [___])])671 define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-],672 [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])])673 AC_CACHE_CHECK([how to link with lib[]$1], [ac_cv_lib[]Name[]_libs], [674 AC_LIB_LINKFLAGS_BODY([$1], [$2])675 ac_cv_lib[]Name[]_libs="$LIB[]NAME"676 ac_cv_lib[]Name[]_ltlibs="$LTLIB[]NAME"677 ac_cv_lib[]Name[]_cppflags="$INC[]NAME"678 ])679 LIB[]NAME="$ac_cv_lib[]Name[]_libs"680 LTLIB[]NAME="$ac_cv_lib[]Name[]_ltlibs"681 INC[]NAME="$ac_cv_lib[]Name[]_cppflags"682 AC_LIB_APPENDTOVAR([CPPFLAGS], [$INC]NAME)683 AC_SUBST([LIB]NAME)684 AC_SUBST([LTLIB]NAME)685 dnl Also set HAVE_LIB[]NAME so that AC_LIB_HAVE_LINKFLAGS can reuse the686 dnl results of this search when this library appears as a dependency.687 HAVE_LIB[]NAME=yes688 undefine([Name])689 undefine([NAME])690 ])691 692 dnl AC_LIB_HAVE_LINKFLAGS(name, dependencies, includes, testcode)693 dnl searches for libname and the libraries corresponding to explicit and694 dnl implicit dependencies, together with the specified include files and695 dnl the ability to compile and link the specified testcode. If found, it696 dnl sets and AC_SUBSTs HAVE_LIB${NAME}=yes and the LIB${NAME} and697 dnl LTLIB${NAME} variables and augments the CPPFLAGS variable, and698 dnl #defines HAVE_LIB${NAME} to 1. Otherwise, it sets and AC_SUBSTs699 dnl HAVE_LIB${NAME}=no and LIB${NAME} and LTLIB${NAME} to empty.700 AC_DEFUN([AC_LIB_HAVE_LINKFLAGS],701 [702 AC_REQUIRE([AC_LIB_PREPARE_PREFIX])703 AC_REQUIRE([AC_LIB_RPATH])704 define([Name],[translit([$1],[./-], [___])])705 define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-],706 [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])])707 708 dnl Search for lib[]Name and define LIB[]NAME, LTLIB[]NAME and INC[]NAME709 dnl accordingly.710 AC_LIB_LINKFLAGS_BODY([$1], [$2])711 712 dnl Add $INC[]NAME to CPPFLAGS before performing the following checks,713 dnl because if the user has installed lib[]Name and not disabled its use714 dnl via --without-lib[]Name-prefix, he wants to use it.715 ac_save_CPPFLAGS="$CPPFLAGS"716 AC_LIB_APPENDTOVAR([CPPFLAGS], [$INC]NAME)717 718 AC_CACHE_CHECK([for lib[]$1], [ac_cv_lib[]Name], [719 ac_save_LIBS="$LIBS"720 LIBS="$LIBS $LIB[]NAME"721 AC_TRY_LINK([$3], [$4], [ac_cv_lib[]Name=yes], [ac_cv_lib[]Name=no])722 LIBS="$ac_save_LIBS"723 ])724 if test "$ac_cv_lib[]Name" = yes; then725 HAVE_LIB[]NAME=yes726 AC_DEFINE([HAVE_LIB]NAME, 1, [Define if you have the $1 library.])727 AC_MSG_CHECKING([how to link with lib[]$1])728 AC_MSG_RESULT([$LIB[]NAME])729 else730 HAVE_LIB[]NAME=no731 dnl If $LIB[]NAME didn't lead to a usable library, we don't need732 dnl $INC[]NAME either.733 CPPFLAGS="$ac_save_CPPFLAGS"734 LIB[]NAME=735 LTLIB[]NAME=736 fi737 AC_SUBST([HAVE_LIB]NAME)738 AC_SUBST([LIB]NAME)739 AC_SUBST([LTLIB]NAME)740 undefine([Name])741 undefine([NAME])742 ])743 744 dnl Determine the platform dependent parameters needed to use rpath:745 dnl libext, shlibext, hardcode_libdir_flag_spec, hardcode_libdir_separator,746 dnl hardcode_direct, hardcode_minus_L.747 AC_DEFUN([AC_LIB_RPATH],748 [749 dnl Tell automake >= 1.10 to complain if config.rpath is missing.750 m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([config.rpath])])751 AC_REQUIRE([AC_PROG_CC]) dnl we use $CC, $GCC, $LDFLAGS752 AC_REQUIRE([AC_LIB_PROG_LD]) dnl we use $LD, $with_gnu_ld753 AC_REQUIRE([AC_CANONICAL_HOST]) dnl we use $host754 AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT]) dnl we use $ac_aux_dir755 AC_CACHE_CHECK([for shared library run path origin], acl_cv_rpath, [756 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \757 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh758 . ./conftest.sh759 rm -f ./conftest.sh760 acl_cv_rpath=done761 ])762 wl="$acl_cv_wl"763 libext="$acl_cv_libext"764 shlibext="$acl_cv_shlibext"765 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"766 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"767 hardcode_direct="$acl_cv_hardcode_direct"768 hardcode_minus_L="$acl_cv_hardcode_minus_L"769 dnl Determine whether the user wants rpath handling at all.770 AC_ARG_ENABLE(rpath,771 [ --disable-rpath do not hardcode runtime library paths],772 :, enable_rpath=yes)773 ])774 775 dnl AC_LIB_LINKFLAGS_BODY(name [, dependencies]) searches for libname and776 dnl the libraries corresponding to explicit and implicit dependencies.777 dnl Sets the LIB${NAME}, LTLIB${NAME} and INC${NAME} variables.778 AC_DEFUN([AC_LIB_LINKFLAGS_BODY],779 [780 AC_REQUIRE([AC_LIB_PREPARE_MULTILIB])781 define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-],782 [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])])783 dnl By default, look in $includedir and $libdir.784 use_additional=yes785 AC_LIB_WITH_FINAL_PREFIX([786 eval additional_includedir=\"$includedir\"787 eval additional_libdir=\"$libdir\"788 ])789 AC_LIB_ARG_WITH([lib$1-prefix],790 [ --with-lib$1-prefix[=DIR] search for lib$1 in DIR/include and DIR/lib791 --without-lib$1-prefix don't search for lib$1 in includedir and libdir],792 [793 if test "X$withval" = "Xno"; then794 use_additional=no795 else796 if test "X$withval" = "X"; then797 AC_LIB_WITH_FINAL_PREFIX([798 eval additional_includedir=\"$includedir\"799 eval additional_libdir=\"$libdir\"800 ])801 else802 additional_includedir="$withval/include"803 additional_libdir="$withval/$acl_libdirstem"804 fi805 fi806 ])807 dnl Search the library and its dependencies in $additional_libdir and808 dnl $LDFLAGS. Using breadth-first-seach.809 LIB[]NAME=810 LTLIB[]NAME=811 INC[]NAME=812 rpathdirs=813 ltrpathdirs=814 names_already_handled=815 names_next_round='$1 $2'816 while test -n "$names_next_round"; do817 names_this_round="$names_next_round"818 names_next_round=819 for name in $names_this_round; do820 already_handled=821 for n in $names_already_handled; do822 if test "$n" = "$name"; then823 already_handled=yes824 break825 fi826 done827 if test -z "$already_handled"; then828 names_already_handled="$names_already_handled $name"829 dnl See if it was already located by an earlier AC_LIB_LINKFLAGS830 dnl or AC_LIB_HAVE_LINKFLAGS call.831 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`832 eval value=\"\$HAVE_LIB$uppername\"833 if test -n "$value"; then834 if test "$value" = yes; then835 eval value=\"\$LIB$uppername\"836 test -z "$value" || LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$value"837 eval value=\"\$LTLIB$uppername\"838 test -z "$value" || LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }$value"839 else840 dnl An earlier call to AC_LIB_HAVE_LINKFLAGS has determined841 dnl that this library doesn't exist. So just drop it.842 :843 fi844 else845 dnl Search the library lib$name in $additional_libdir and $LDFLAGS846 dnl and the already constructed $LIBNAME/$LTLIBNAME.847 found_dir=848 found_la=849 found_so=850 found_a=851 if test $use_additional = yes; then852 if test -n "$shlibext" \853 && { test -f "$additional_libdir/lib$name.$shlibext" \854 || { test "$shlibext" = dll \855 && test -f "$additional_libdir/lib$name.dll.a"; }; }; then856 found_dir="$additional_libdir"857 if test -f "$additional_libdir/lib$name.$shlibext"; then858 found_so="$additional_libdir/lib$name.$shlibext"859 else860 found_so="$additional_libdir/lib$name.dll.a"861 fi862 if test -f "$additional_libdir/lib$name.la"; then863 found_la="$additional_libdir/lib$name.la"864 fi865 else866 if test -f "$additional_libdir/lib$name.$libext"; then867 found_dir="$additional_libdir"868 found_a="$additional_libdir/lib$name.$libext"869 if test -f "$additional_libdir/lib$name.la"; then870 found_la="$additional_libdir/lib$name.la"871 fi872 fi873 fi874 fi875 if test "X$found_dir" = "X"; then876 for x in $LDFLAGS $LTLIB[]NAME; do877 AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])878 case "$x" in879 -L*)880 dir=`echo "X$x" | sed -e 's/^X-L//'`881 if test -n "$shlibext" \882 && { test -f "$dir/lib$name.$shlibext" \883 || { test "$shlibext" = dll \884 && test -f "$dir/lib$name.dll.a"; }; }; then885 found_dir="$dir"886 if test -f "$dir/lib$name.$shlibext"; then887 found_so="$dir/lib$name.$shlibext"888 else889 found_so="$dir/lib$name.dll.a"890 fi891 if test -f "$dir/lib$name.la"; then892 found_la="$dir/lib$name.la"893 fi894 else895 if test -f "$dir/lib$name.$libext"; then896 found_dir="$dir"897 found_a="$dir/lib$name.$libext"898 if test -f "$dir/lib$name.la"; then899 found_la="$dir/lib$name.la"900 fi901 fi902 fi903 ;;904 esac905 if test "X$found_dir" != "X"; then906 break907 fi908 done909 fi910 if test "X$found_dir" != "X"; then911 dnl Found the library.912 LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-L$found_dir -l$name"913 if test "X$found_so" != "X"; then914 dnl Linking with a shared library. We attempt to hardcode its915 dnl directory into the executable's runpath, unless it's the916 dnl standard /usr/lib.917 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then918 dnl No hardcoding is needed.919 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"920 else921 dnl Use an explicit option to hardcode DIR into the resulting922 dnl binary.923 dnl Potentially add DIR to ltrpathdirs.924 dnl The ltrpathdirs will be appended to $LTLIBNAME at the end.925 haveit=926 for x in $ltrpathdirs; do927 if test "X$x" = "X$found_dir"; then928 haveit=yes929 break930 fi931 done932 if test -z "$haveit"; then933 ltrpathdirs="$ltrpathdirs $found_dir"934 fi935 dnl The hardcoding into $LIBNAME is system dependent.936 if test "$hardcode_direct" = yes; then937 dnl Using DIR/libNAME.so during linking hardcodes DIR into the938 dnl resulting binary.939 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"940 else941 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then942 dnl Use an explicit option to hardcode DIR into the resulting943 dnl binary.944 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"945 dnl Potentially add DIR to rpathdirs.946 dnl The rpathdirs will be appended to $LIBNAME at the end.947 haveit=948 for x in $rpathdirs; do949 if test "X$x" = "X$found_dir"; then950 haveit=yes951 break952 fi953 done954 if test -z "$haveit"; then955 rpathdirs="$rpathdirs $found_dir"956 fi957 else958 dnl Rely on "-L$found_dir".959 dnl But don't add it if it's already contained in the LDFLAGS960 dnl or the already constructed $LIBNAME961 haveit=962 for x in $LDFLAGS $LIB[]NAME; do963 AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])964 if test "X$x" = "X-L$found_dir"; then965 haveit=yes966 break967 fi968 done969 if test -z "$haveit"; then970 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$found_dir"971 fi972 if test "$hardcode_minus_L" != no; then973 dnl FIXME: Not sure whether we should use974 dnl "-L$found_dir -l$name" or "-L$found_dir $found_so"975 dnl here.976 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"977 else978 dnl We cannot use $hardcode_runpath_var and LD_RUN_PATH979 dnl here, because this doesn't fit in flags passed to the980 dnl compiler. So give up. No hardcoding. This affects only981 dnl very old systems.982 dnl FIXME: Not sure whether we should use983 dnl "-L$found_dir -l$name" or "-L$found_dir $found_so"984 dnl here.985 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-l$name"986 fi987 fi988 fi989 fi990 else991 if test "X$found_a" != "X"; then992 dnl Linking with a static library.993 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_a"994 else995 dnl We shouldn't come here, but anyway it's good to have a996 dnl fallback.997 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$found_dir -l$name"998 fi999 fi1000 dnl Assume the include files are nearby.1001 additional_includedir=1002 case "$found_dir" in1003 */$acl_libdirstem | */$acl_libdirstem/)1004 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`1005 additional_includedir="$basedir/include"1006 ;;1007 esac1008 if test "X$additional_includedir" != "X"; then1009 dnl Potentially add $additional_includedir to $INCNAME.1010 dnl But don't add it1011 dnl 1. if it's the standard /usr/include,1012 dnl 2. if it's /usr/local/include and we are using GCC on Linux,1013 dnl 3. if it's already present in $CPPFLAGS or the already1014 dnl constructed $INCNAME,1015 dnl 4. if it doesn't exist as a directory.1016 if test "X$additional_includedir" != "X/usr/include"; then1017 haveit=1018 if test "X$additional_includedir" = "X/usr/local/include"; then1019 if test -n "$GCC"; then1020 case $host_os in1021 linux* | gnu* | k*bsd*-gnu) haveit=yes;;1022 esac1023 fi1024 fi1025 if test -z "$haveit"; then1026 for x in $CPPFLAGS $INC[]NAME; do1027 AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])1028 if test "X$x" = "X-I$additional_includedir"; then1029 haveit=yes1030 break1031 fi1032 done1033 if test -z "$haveit"; then1034 if test -d "$additional_includedir"; then1035 dnl Really add $additional_includedir to $INCNAME.1036 INC[]NAME="${INC[]NAME}${INC[]NAME:+ }-I$additional_includedir"1037 fi1038 fi1039 fi1040 fi1041 fi1042 dnl Look for dependencies.1043 if test -n "$found_la"; then1044 dnl Read the .la file. It defines the variables1045 dnl dlname, library_names, old_library, dependency_libs, current,1046 dnl age, revision, installed, dlopen, dlpreopen, libdir.1047 save_libdir="$libdir"1048 case "$found_la" in1049 */* | *\\*) . "$found_la" ;;1050 *) . "./$found_la" ;;1051 esac1052 libdir="$save_libdir"1053 dnl We use only dependency_libs.1054 for dep in $dependency_libs; do1055 case "$dep" in1056 -L*)1057 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`1058 dnl Potentially add $additional_libdir to $LIBNAME and $LTLIBNAME.1059 dnl But don't add it1060 dnl 1. if it's the standard /usr/lib,1061 dnl 2. if it's /usr/local/lib and we are using GCC on Linux,1062 dnl 3. if it's already present in $LDFLAGS or the already1063 dnl constructed $LIBNAME,1064 dnl 4. if it doesn't exist as a directory.1065 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then1066 haveit=1067 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then1068 if test -n "$GCC"; then1069 case $host_os in1070 linux* | gnu* | k*bsd*-gnu) haveit=yes;;1071 esac1072 fi1073 fi1074 if test -z "$haveit"; then1075 haveit=1076 for x in $LDFLAGS $LIB[]NAME; do1077 AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])1078 if test "X$x" = "X-L$additional_libdir"; then1079 haveit=yes1080 break1081 fi1082 done1083 if test -z "$haveit"; then1084 if test -d "$additional_libdir"; then1085 dnl Really add $additional_libdir to $LIBNAME.1086 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$additional_libdir"1087 fi1088 fi1089 haveit=1090 for x in $LDFLAGS $LTLIB[]NAME; do1091 AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])1092 if test "X$x" = "X-L$additional_libdir"; then1093 haveit=yes1094 break1095 fi1096 done1097 if test -z "$haveit"; then1098 if test -d "$additional_libdir"; then1099 dnl Really add $additional_libdir to $LTLIBNAME.1100 LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-L$additional_libdir"1101 fi1102 fi1103 fi1104 fi1105 ;;1106 -R*)1107 dir=`echo "X$dep" | sed -e 's/^X-R//'`1108 if test "$enable_rpath" != no; then1109 dnl Potentially add DIR to rpathdirs.1110 dnl The rpathdirs will be appended to $LIBNAME at the end.1111 haveit=1112 for x in $rpathdirs; do1113 if test "X$x" = "X$dir"; then1114 haveit=yes1115 break1116 fi1117 done1118 if test -z "$haveit"; then1119 rpathdirs="$rpathdirs $dir"1120 fi1121 dnl Potentially add DIR to ltrpathdirs.1122 dnl The ltrpathdirs will be appended to $LTLIBNAME at the end.1123 haveit=1124 for x in $ltrpathdirs; do1125 if test "X$x" = "X$dir"; then1126 haveit=yes1127 break1128 fi1129 done1130 if test -z "$haveit"; then1131 ltrpathdirs="$ltrpathdirs $dir"1132 fi1133 fi1134 ;;1135 -l*)1136 dnl Handle this in the next round.1137 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`1138 ;;1139 *.la)1140 dnl Handle this in the next round. Throw away the .la's1141 dnl directory; it is already contained in a preceding -L1142 dnl option.1143 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`1144 ;;1145 *)1146 dnl Most likely an immediate library name.1147 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$dep"1148 LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }$dep"1149 ;;1150 esac1151 done1152 fi1153 else1154 dnl Didn't find the library; assume it is in the system directories1155 dnl known to the linker and runtime loader. (All the system1156 dnl directories known to the linker should also be known to the1157 dnl runtime loader, otherwise the system is severely misconfigured.)1158 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-l$name"1159 LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-l$name"1160 fi1161 fi1162 fi1163 done1164 done1165 if test "X$rpathdirs" != "X"; then1166 if test -n "$hardcode_libdir_separator"; then1167 dnl Weird platform: only the last -rpath option counts, the user must1168 dnl pass all path elements in one option. We can arrange that for a1169 dnl single library, but not when more than one $LIBNAMEs are used.1170 alldirs=1171 for found_dir in $rpathdirs; do1172 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"1173 done1174 dnl Note: hardcode_libdir_flag_spec uses $libdir and $wl.1175 acl_save_libdir="$libdir"1176 libdir="$alldirs"1177 eval flag=\"$hardcode_libdir_flag_spec\"1178 libdir="$acl_save_libdir"1179 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$flag"1180 else1181 dnl The -rpath options are cumulative.1182 for found_dir in $rpathdirs; do1183 acl_save_libdir="$libdir"1184 libdir="$found_dir"1185 eval flag=\"$hardcode_libdir_flag_spec\"1186 libdir="$acl_save_libdir"1187 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$flag"1188 done1189 fi1190 fi1191 if test "X$ltrpathdirs" != "X"; then1192 dnl When using libtool, the option that works for both libraries and1193 dnl executables is -R. The -R options are cumulative.1194 for found_dir in $ltrpathdirs; do1195 LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-R$found_dir"1196 done1197 fi1198 ])1199 1200 dnl AC_LIB_APPENDTOVAR(VAR, CONTENTS) appends the elements of CONTENTS to VAR,1201 dnl unless already present in VAR.1202 dnl Works only for CPPFLAGS, not for LIB* variables because that sometimes1203 dnl contains two or three consecutive elements that belong together.1204 AC_DEFUN([AC_LIB_APPENDTOVAR],1205 [1206 for element in [$2]; do1207 haveit=1208 for x in $[$1]; do1209 AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])1210 if test "X$x" = "X$element"; then1211 haveit=yes1212 break1213 fi1214 done1215 if test -z "$haveit"; then1216 [$1]="${[$1]}${[$1]:+ }$element"1217 fi1218 done1219 ])1220 1221 dnl For those cases where a variable contains several -L and -l options1222 dnl referring to unknown libraries and directories, this macro determines the1223 dnl necessary additional linker options for the runtime path.1224 dnl AC_LIB_LINKFLAGS_FROM_LIBS([LDADDVAR], [LIBSVALUE], [USE-LIBTOOL])1225 dnl sets LDADDVAR to linker options needed together with LIBSVALUE.1226 dnl If USE-LIBTOOL evaluates to non-empty, linking with libtool is assumed,1227 dnl otherwise linking without libtool is assumed.1228 AC_DEFUN([AC_LIB_LINKFLAGS_FROM_LIBS],1229 [1230 AC_REQUIRE([AC_LIB_RPATH])1231 AC_REQUIRE([AC_LIB_PREPARE_MULTILIB])1232 $1=1233 if test "$enable_rpath" != no; then1234 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then1235 dnl Use an explicit option to hardcode directories into the resulting1236 dnl binary.1237 rpathdirs=1238 next=1239 for opt in $2; do1240 if test -n "$next"; then1241 dir="$next"1242 dnl No need to hardcode the standard /usr/lib.1243 if test "X$dir" != "X/usr/$acl_libdirstem"; then1244 rpathdirs="$rpathdirs $dir"1245 fi1246 next=1247 else1248 case $opt in1249 -L) next=yes ;;1250 -L*) dir=`echo "X$opt" | sed -e 's,^X-L,,'`1251 dnl No need to hardcode the standard /usr/lib.1252 if test "X$dir" != "X/usr/$acl_libdirstem"; then1253 rpathdirs="$rpathdirs $dir"1254 fi1255 next= ;;1256 *) next= ;;1257 esac1258 fi1259 done1260 if test "X$rpathdirs" != "X"; then1261 if test -n ""$3""; then1262 dnl libtool is used for linking. Use -R options.1263 for dir in $rpathdirs; do1264 $1="${$1}${$1:+ }-R$dir"1265 done1266 else1267 dnl The linker is used for linking directly.1268 if test -n "$hardcode_libdir_separator"; then1269 dnl Weird platform: only the last -rpath option counts, the user1270 dnl must pass all path elements in one option.1271 alldirs=1272 for dir in $rpathdirs; do1273 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$dir"1274 done1275 acl_save_libdir="$libdir"1276 libdir="$alldirs"1277 eval flag=\"$hardcode_libdir_flag_spec\"1278 libdir="$acl_save_libdir"1279 $1="$flag"1280 else1281 dnl The -rpath options are cumulative.1282 for dir in $rpathdirs; do1283 acl_save_libdir="$libdir"1284 libdir="$dir"1285 eval flag=\"$hardcode_libdir_flag_spec\"1286 libdir="$acl_save_libdir"1287 $1="${$1}${$1:+ }$flag"1288 done1289 fi1290 fi1291 fi1292 fi1293 fi1294 AC_SUBST([$1])1295 ])1296 1297 # lib-prefix.m4 serial 5 (gettext-0.15)1298 dnl Copyright (C) 2001-2005 Free Software Foundation, Inc.1299 dnl This file is free software; the Free Software Foundation1300 dnl gives unlimited permission to copy and/or distribute it,1301 dnl with or without modifications, as long as this notice is preserved.1302 1303 dnl From Bruno Haible.1304 1305 dnl AC_LIB_ARG_WITH is synonymous to AC_ARG_WITH in autoconf-2.13, and1306 dnl similar to AC_ARG_WITH in autoconf 2.52...2.57 except that is doesn't1307 dnl require excessive bracketing.1308 ifdef([AC_HELP_STRING],1309 [AC_DEFUN([AC_LIB_ARG_WITH], [AC_ARG_WITH([$1],[[$2]],[$3],[$4])])],1310 [AC_DEFUN([AC_][LIB_ARG_WITH], [AC_ARG_WITH([$1],[$2],[$3],[$4])])])1311 1312 dnl AC_LIB_PREFIX adds to the CPPFLAGS and LDFLAGS the flags that are needed1313 dnl to access previously installed libraries. The basic assumption is that1314 dnl a user will want packages to use other packages he previously installed1315 dnl with the same --prefix option.1316 dnl This macro is not needed if only AC_LIB_LINKFLAGS is used to locate1317 dnl libraries, but is otherwise very convenient.1318 AC_DEFUN([AC_LIB_PREFIX],1319 [1320 AC_BEFORE([$0], [AC_LIB_LINKFLAGS])1321 AC_REQUIRE([AC_PROG_CC])1322 AC_REQUIRE([AC_CANONICAL_HOST])1323 AC_REQUIRE([AC_LIB_PREPARE_MULTILIB])1324 AC_REQUIRE([AC_LIB_PREPARE_PREFIX])1325 dnl By default, look in $includedir and $libdir.1326 use_additional=yes1327 AC_LIB_WITH_FINAL_PREFIX([1328 eval additional_includedir=\"$includedir\"1329 eval additional_libdir=\"$libdir\"1330 ])1331 AC_LIB_ARG_WITH([lib-prefix],1332 [ --with-lib-prefix[=DIR] search for libraries in DIR/include and DIR/lib1333 --without-lib-prefix don't search for libraries in includedir and libdir],1334 [1335 if test "X$withval" = "Xno"; then1336 use_additional=no1337 else1338 if test "X$withval" = "X"; then1339 AC_LIB_WITH_FINAL_PREFIX([1340 eval additional_includedir=\"$includedir\"1341 eval additional_libdir=\"$libdir\"1342 ])1343 else1344 additional_includedir="$withval/include"1345 additional_libdir="$withval/$acl_libdirstem"1346 fi1347 fi1348 ])1349 if test $use_additional = yes; then1350 dnl Potentially add $additional_includedir to $CPPFLAGS.1351 dnl But don't add it1352 dnl 1. if it's the standard /usr/include,1353 dnl 2. if it's already present in $CPPFLAGS,1354 dnl 3. if it's /usr/local/include and we are using GCC on Linux,1355 dnl 4. if it doesn't exist as a directory.1356 if test "X$additional_includedir" != "X/usr/include"; then1357 haveit=1358 for x in $CPPFLAGS; do1359 AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])1360 if test "X$x" = "X-I$additional_includedir"; then1361 haveit=yes1362 break1363 fi1364 done1365 if test -z "$haveit"; then1366 if test "X$additional_includedir" = "X/usr/local/include"; then1367 if test -n "$GCC"; then1368 case $host_os in1369 linux* | gnu* | k*bsd*-gnu) haveit=yes;;1370 esac1371 fi1372 fi1373 if test -z "$haveit"; then1374 if test -d "$additional_includedir"; then1375 dnl Really add $additional_includedir to $CPPFLAGS.1376 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }-I$additional_includedir"1377 fi1378 fi1379 fi1380 fi1381 dnl Potentially add $additional_libdir to $LDFLAGS.1382 dnl But don't add it1383 dnl 1. if it's the standard /usr/lib,1384 dnl 2. if it's already present in $LDFLAGS,1385 dnl 3. if it's /usr/local/lib and we are using GCC on Linux,1386 dnl 4. if it doesn't exist as a directory.1387 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then1388 haveit=1389 for x in $LDFLAGS; do1390 AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])1391 if test "X$x" = "X-L$additional_libdir"; then1392 haveit=yes1393 break1394 fi1395 done1396 if test -z "$haveit"; then1397 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then1398 if test -n "$GCC"; then1399 case $host_os in1400 linux*) haveit=yes;;1401 esac1402 fi1403 fi1404 if test -z "$haveit"; then1405 if test -d "$additional_libdir"; then1406 dnl Really add $additional_libdir to $LDFLAGS.1407 LDFLAGS="${LDFLAGS}${LDFLAGS:+ }-L$additional_libdir"1408 fi1409 fi1410 fi1411 fi1412 fi1413 ])1414 1415 dnl AC_LIB_PREPARE_PREFIX creates variables acl_final_prefix,1416 dnl acl_final_exec_prefix, containing the values to which $prefix and1417 dnl $exec_prefix will expand at the end of the configure script.1418 AC_DEFUN([AC_LIB_PREPARE_PREFIX],1419 [1420 dnl Unfortunately, prefix and exec_prefix get only finally determined1421 dnl at the end of configure.1422 if test "X$prefix" = "XNONE"; then1423 acl_final_prefix="$ac_default_prefix"1424 else1425 acl_final_prefix="$prefix"1426 fi1427 if test "X$exec_prefix" = "XNONE"; then1428 acl_final_exec_prefix='${prefix}'1429 else1430 acl_final_exec_prefix="$exec_prefix"1431 fi1432 acl_save_prefix="$prefix"1433 prefix="$acl_final_prefix"1434 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"1435 prefix="$acl_save_prefix"1436 ])1437 1438 dnl AC_LIB_WITH_FINAL_PREFIX([statement]) evaluates statement, with the1439 dnl variables prefix and exec_prefix bound to the values they will have1440 dnl at the end of the configure script.1441 AC_DEFUN([AC_LIB_WITH_FINAL_PREFIX],1442 [1443 acl_save_prefix="$prefix"1444 prefix="$acl_final_prefix"1445 acl_save_exec_prefix="$exec_prefix"1446 exec_prefix="$acl_final_exec_prefix"1447 $11448 exec_prefix="$acl_save_exec_prefix"1449 prefix="$acl_save_prefix"1450 ])1451 1452 dnl AC_LIB_PREPARE_MULTILIB creates a variable acl_libdirstem, containing1453 dnl the basename of the libdir, either "lib" or "lib64".1454 AC_DEFUN([AC_LIB_PREPARE_MULTILIB],1455 [1456 dnl There is no formal standard regarding lib and lib64. The current1457 dnl practice is that on a system supporting 32-bit and 64-bit instruction1458 dnl sets or ABIs, 64-bit libraries go under $prefix/lib64 and 32-bit1459 dnl libraries go under $prefix/lib. We determine the compiler's default1460 dnl mode by looking at the compiler's library search path. If at least1461 dnl of its elements ends in /lib64 or points to a directory whose absolute1462 dnl pathname ends in /lib64, we assume a 64-bit ABI. Otherwise we use the1463 dnl default, namely "lib".1464 acl_libdirstem=lib1465 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`1466 if test -n "$searchpath"; then1467 acl_save_IFS="${IFS= }"; IFS=":"1468 for searchdir in $searchpath; do1469 if test -d "$searchdir"; then1470 case "$searchdir" in1471 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;1472 *) searchdir=`cd "$searchdir" && pwd`1473 case "$searchdir" in1474 */lib64 ) acl_libdirstem=lib64 ;;1475 esac ;;1476 esac1477 fi1478 done1479 IFS="$acl_save_IFS"1480 fi1481 ])1482 18 1483 19 # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*- … … 8062 6598 ]) 8063 6599 8064 # nls.m4 serial 3 (gettext-0.15)8065 dnl Copyright (C) 1995-2003, 2005-2006 Free Software Foundation, Inc.8066 dnl This file is free software; the Free Software Foundation8067 dnl gives unlimited permission to copy and/or distribute it,8068 dnl with or without modifications, as long as this notice is preserved.8069 dnl8070 dnl This file can can be used in projects which are not available under8071 dnl the GNU General Public License or the GNU Library General Public8072 dnl License but which still want to provide support for the GNU gettext8073 dnl functionality.8074 dnl Please note that the actual code of the GNU gettext library is covered8075 dnl by the GNU Library General Public License, and the rest of the GNU8076 dnl gettext package package is covered by the GNU General Public License.8077 dnl They are *not* in the public domain.8078 8079 dnl Authors:8080 dnl Ulrich Drepper <drepper@cygnus.com>, 1995-2000.8081 dnl Bruno Haible <haible@clisp.cons.org>, 2000-2003.8082 8083 AC_PREREQ(2.50)8084 8085 AC_DEFUN([AM_NLS],8086 [8087 AC_MSG_CHECKING([whether NLS is requested])8088 dnl Default is enabled NLS8089 AC_ARG_ENABLE(nls,8090 [ --disable-nls do not use Native Language Support],8091 USE_NLS=$enableval, USE_NLS=yes)8092 AC_MSG_RESULT($USE_NLS)8093 AC_SUBST(USE_NLS)8094 ])8095 8096 6600 # pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*- 8097 6601 # … … 8251 6755 fi[]dnl 8252 6756 ])# PKG_CHECK_MODULES 8253 8254 # po.m4 serial 13 (gettext-0.15)8255 dnl Copyright (C) 1995-2006 Free Software Foundation, Inc.8256 dnl This file is free software; the Free Software Foundation8257 dnl gives unlimited permission to copy and/or distribute it,8258 dnl with or without modifications, as long as this notice is preserved.8259 dnl8260 dnl This file can can be used in projects which are not available under8261 dnl the GNU General Public License or the GNU Library General Public8262 dnl License but which still want to provide support for the GNU gettext8263 dnl functionality.8264 dnl Please note that the actual code of the GNU gettext library is covered8265 dnl by the GNU Library General Public License, and the rest of the GNU8266 dnl gettext package package is covered by the GNU General Public License.8267 dnl They are *not* in the public domain.8268 8269 dnl Authors:8270 dnl Ulrich Drepper <drepper@cygnus.com>, 1995-2000.8271 dnl Bruno Haible <haible@clisp.cons.org>, 2000-2003.8272 8273 AC_PREREQ(2.50)8274 8275 dnl Checks for all prerequisites of the po subdirectory.8276 AC_DEFUN([AM_PO_SUBDIRS],8277 [8278 AC_REQUIRE([AC_PROG_MAKE_SET])dnl8279 AC_REQUIRE([AC_PROG_INSTALL])dnl8280 AC_REQUIRE([AM_PROG_MKDIR_P])dnl defined by automake8281 AC_REQUIRE([AM_NLS])dnl8282 8283 dnl Perform the following tests also if --disable-nls has been given,8284 dnl because they are needed for "make dist" to work.8285 8286 dnl Search for GNU msgfmt in the PATH.8287 dnl The first test excludes Solaris msgfmt and early GNU msgfmt versions.8288 dnl The second test excludes FreeBSD msgfmt.8289 AM_PATH_PROG_WITH_TEST(MSGFMT, msgfmt,8290 [$ac_dir/$ac_word --statistics /dev/null >&]AS_MESSAGE_LOG_FD[ 2>&1 &&8291 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi)],8292 :)8293 AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)8294 8295 dnl Test whether it is GNU msgfmt >= 0.15.8296 changequote(,)dnl8297 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in8298 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;8299 *) MSGFMT_015=$MSGFMT ;;8300 esac8301 changequote([,])dnl8302 AC_SUBST([MSGFMT_015])8303 changequote(,)dnl8304 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in8305 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;8306 *) GMSGFMT_015=$GMSGFMT ;;8307 esac8308 changequote([,])dnl8309 AC_SUBST([GMSGFMT_015])8310 8311 dnl Search for GNU xgettext 0.12 or newer in the PATH.8312 dnl The first test excludes Solaris xgettext and early GNU xgettext versions.8313 dnl The second test excludes FreeBSD xgettext.8314 AM_PATH_PROG_WITH_TEST(XGETTEXT, xgettext,8315 [$ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&]AS_MESSAGE_LOG_FD[ 2>&1 &&8316 (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)],8317 :)8318 dnl Remove leftover from FreeBSD xgettext call.8319 rm -f messages.po8320 8321 dnl Test whether it is GNU xgettext >= 0.15.8322 changequote(,)dnl8323 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in8324 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;8325 *) XGETTEXT_015=$XGETTEXT ;;8326 esac8327 changequote([,])dnl8328 AC_SUBST([XGETTEXT_015])8329 8330 dnl Search for GNU msgmerge 0.11 or newer in the PATH.8331 AM_PATH_PROG_WITH_TEST(MSGMERGE, msgmerge,8332 [$ac_dir/$ac_word --update -q /dev/null /dev/null >&]AS_MESSAGE_LOG_FD[ 2>&1], :)8333 8334 dnl Installation directories.8335 dnl Autoconf >= 2.60 defines localedir. For older versions of autoconf, we8336 dnl have to define it here, so that it can be used in po/Makefile.8337 test -n "$localedir" || localedir='${datadir}/locale'8338 AC_SUBST([localedir])8339 8340 AC_CONFIG_COMMANDS([po-directories], [[8341 for ac_file in $CONFIG_FILES; do8342 # Support "outfile[:infile[:infile...]]"8343 case "$ac_file" in8344 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;8345 esac8346 # PO directories have a Makefile.in generated from Makefile.in.in.8347 case "$ac_file" in */Makefile.in)8348 # Adjust a relative srcdir.8349 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`8350 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"8351 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`8352 # In autoconf-2.13 it is called $ac_given_srcdir.8353 # In autoconf-2.50 it is called $srcdir.8354 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"8355 case "$ac_given_srcdir" in8356 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;8357 /*) top_srcdir="$ac_given_srcdir" ;;8358 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;8359 esac8360 # Treat a directory as a PO directory if and only if it has a8361 # POTFILES.in file. This allows packages to have multiple PO8362 # directories under different names or in different locations.8363 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then8364 rm -f "$ac_dir/POTFILES"8365 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"8366 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"8367 POMAKEFILEDEPS="POTFILES.in"8368 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend8369 # on $ac_dir but don't depend on user-specified configuration8370 # parameters.8371 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then8372 # The LINGUAS file contains the set of available languages.8373 if test -n "$OBSOLETE_ALL_LINGUAS"; then8374 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"8375 fi8376 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`8377 # Hide the ALL_LINGUAS assigment from automake < 1.5.8378 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'8379 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"8380 else8381 # The set of available languages was given in configure.in.8382 # Hide the ALL_LINGUAS assigment from automake < 1.5.8383 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'8384 fi8385 # Compute POFILES8386 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)8387 # Compute UPDATEPOFILES8388 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)8389 # Compute DUMMYPOFILES8390 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)8391 # Compute GMOFILES8392 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)8393 case "$ac_given_srcdir" in8394 .) srcdirpre= ;;8395 *) srcdirpre='$(srcdir)/' ;;8396 esac8397 POFILES=8398 UPDATEPOFILES=8399 DUMMYPOFILES=8400 GMOFILES=8401 for lang in $ALL_LINGUAS; do8402 POFILES="$POFILES $srcdirpre$lang.po"8403 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"8404 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"8405 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"8406 done8407 # CATALOGS depends on both $ac_dir and the user's LINGUAS8408 # environment variable.8409 INST_LINGUAS=8410 if test -n "$ALL_LINGUAS"; then8411 for presentlang in $ALL_LINGUAS; do8412 useit=no8413 if test "%UNSET%" != "$LINGUAS"; then8414 desiredlanguages="$LINGUAS"8415 else8416 desiredlanguages="$ALL_LINGUAS"8417 fi8418 for desiredlang in $desiredlanguages; do8419 # Use the presentlang catalog if desiredlang is8420 # a. equal to presentlang, or8421 # b. a variant of presentlang (because in this case,8422 # presentlang can be used as a fallback for messages8423 # which are not translated in the desiredlang catalog).8424 case "$desiredlang" in8425 "$presentlang"*) useit=yes;;8426 esac8427 done8428 if test $useit = yes; then8429 INST_LINGUAS="$INST_LINGUAS $presentlang"8430 fi8431 done8432 fi8433 CATALOGS=8434 if test -n "$INST_LINGUAS"; then8435 for lang in $INST_LINGUAS; do8436 CATALOGS="$CATALOGS $lang.gmo"8437 done8438 fi8439 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"8440 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"8441 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do8442 if test -f "$f"; then8443 case "$f" in8444 *.orig | *.bak | *~) ;;8445 *) cat "$f" >> "$ac_dir/Makefile" ;;8446 esac8447 fi8448 done8449 fi8450 ;;8451 esac8452 done]],8453 [# Capture the value of obsolete ALL_LINGUAS because we need it to compute8454 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it8455 # from automake < 1.5.8456 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'8457 # Capture the value of LINGUAS because we need it to compute CATALOGS.8458 LINGUAS="${LINGUAS-%UNSET%}"8459 ])8460 ])8461 8462 dnl Postprocesses a Makefile in a directory containing PO files.8463 AC_DEFUN([AM_POSTPROCESS_PO_MAKEFILE],8464 [8465 # When this code is run, in config.status, two variables have already been8466 # set:8467 # - OBSOLETE_ALL_LINGUAS is the value of LINGUAS set in configure.in,8468 # - LINGUAS is the value of the environment variable LINGUAS at configure8469 # time.8470 8471 changequote(,)dnl8472 # Adjust a relative srcdir.8473 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`8474 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"8475 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`8476 # In autoconf-2.13 it is called $ac_given_srcdir.8477 # In autoconf-2.50 it is called $srcdir.8478 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"8479 case "$ac_given_srcdir" in8480 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;8481 /*) top_srcdir="$ac_given_srcdir" ;;8482 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;8483 esac8484 8485 # Find a way to echo strings without interpreting backslash.8486 if test "X`(echo '\t') 2>/dev/null`" = 'X\t'; then8487 gt_echo='echo'8488 else8489 if test "X`(printf '%s\n' '\t') 2>/dev/null`" = 'X\t'; then8490 gt_echo='printf %s\n'8491 else8492 echo_func () {8493 cat <<EOT8494 $*8495 EOT8496 }8497 gt_echo='echo_func'8498 fi8499 fi8500 8501 # A sed script that extracts the value of VARIABLE from a Makefile.8502 sed_x_variable='8503 # Test if the hold space is empty.8504 x8505 s/P/P/8506 x8507 ta8508 # Yes it was empty. Look if we have the expected variable definition.8509 /^[ ]*VARIABLE[ ]*=/{8510 # Seen the first line of the variable definition.8511 s/^[ ]*VARIABLE[ ]*=//8512 ba8513 }8514 bd8515 :a8516 # Here we are processing a line from the variable definition.8517 # Remove comment, more precisely replace it with a space.8518 s/#.*$/ /8519 # See if the line ends in a backslash.8520 tb8521 :b8522 s/\\$//8523 # Print the line, without the trailing backslash.8524 p8525 tc8526 # There was no trailing backslash. The end of the variable definition is8527 # reached. Clear the hold space.8528 s/^.*$//8529 x8530 bd8531 :c8532 # A trailing backslash means that the variable definition continues in the8533 # next line. Put a nonempty string into the hold space to indicate this.8534 s/^.*$/P/8535 x8536 :d8537 '8538 changequote([,])dnl8539 8540 # Set POTFILES to the value of the Makefile variable POTFILES.8541 sed_x_POTFILES=`$gt_echo "$sed_x_variable" | sed -e '/^ *#/d' -e 's/VARIABLE/POTFILES/g'`8542 POTFILES=`sed -n -e "$sed_x_POTFILES" < "$ac_file"`8543 # Compute POTFILES_DEPS as8544 # $(foreach file, $(POTFILES), $(top_srcdir)/$(file))8545 POTFILES_DEPS=8546 for file in $POTFILES; do8547 POTFILES_DEPS="$POTFILES_DEPS "'$(top_srcdir)/'"$file"8548 done8549 POMAKEFILEDEPS=""8550 8551 if test -n "$OBSOLETE_ALL_LINGUAS"; then8552 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"8553 fi8554 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then8555 # The LINGUAS file contains the set of available languages.8556 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`8557 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"8558 else8559 # Set ALL_LINGUAS to the value of the Makefile variable LINGUAS.8560 sed_x_LINGUAS=`$gt_echo "$sed_x_variable" | sed -e '/^ *#/d' -e 's/VARIABLE/LINGUAS/g'`8561 ALL_LINGUAS_=`sed -n -e "$sed_x_LINGUAS" < "$ac_file"`8562 fi8563 # Hide the ALL_LINGUAS assigment from automake < 1.5.8564 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'8565 # Compute POFILES8566 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)8567 # Compute UPDATEPOFILES8568 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)8569 # Compute DUMMYPOFILES8570 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)8571 # Compute GMOFILES8572 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)8573 # Compute PROPERTIESFILES8574 # as $(foreach lang, $(ALL_LINGUAS), $(top_srcdir)/$(DOMAIN)_$(lang).properties)8575 # Compute CLASSFILES8576 # as $(foreach lang, $(ALL_LINGUAS), $(top_srcdir)/$(DOMAIN)_$(lang).class)8577 # Compute QMFILES8578 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).qm)8579 # Compute MSGFILES8580 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(frob $(lang)).msg)8581 # Compute RESOURCESDLLFILES8582 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(frob $(lang))/$(DOMAIN).resources.dll)8583 case "$ac_given_srcdir" in8584 .) srcdirpre= ;;8585 *) srcdirpre='$(srcdir)/' ;;8586 esac8587 POFILES=8588 UPDATEPOFILES=8589 DUMMYPOFILES=8590 GMOFILES=8591 PROPERTIESFILES=8592 CLASSFILES=8593 QMFILES=8594 MSGFILES=8595 RESOURCESDLLFILES=8596 for lang in $ALL_LINGUAS; do8597 POFILES="$POFILES $srcdirpre$lang.po"8598 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"8599 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"8600 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"8601 PROPERTIESFILES="$PROPERTIESFILES \$(top_srcdir)/\$(DOMAIN)_$lang.properties"8602 CLASSFILES="$CLASSFILES \$(top_srcdir)/\$(DOMAIN)_$lang.class"8603 QMFILES="$QMFILES $srcdirpre$lang.qm"8604 frobbedlang=`echo $lang | sed -e 's/\..*$//' -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`8605 MSGFILES="$MSGFILES $srcdirpre$frobbedlang.msg"8606 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/'`8607 RESOURCESDLLFILES="$RESOURCESDLLFILES $srcdirpre$frobbedlang/\$(DOMAIN).resources.dll"8608 done8609 # CATALOGS depends on both $ac_dir and the user's LINGUAS8610 # environment variable.8611 INST_LINGUAS=8612 if test -n "$ALL_LINGUAS"; then8613 for presentlang in $ALL_LINGUAS; do8614 useit=no8615 if test "%UNSET%" != "$LINGUAS"; then8616 desiredlanguages="$LINGUAS"8617 else8618 desiredlanguages="$ALL_LINGUAS"8619 fi8620 for desiredlang in $desiredlanguages; do8621 # Use the presentlang catalog if desiredlang is8622 # a. equal to presentlang, or8623 # b. a variant of presentlang (because in this case,8624 # presentlang can be used as a fallback for messages8625 # which are not translated in the desiredlang catalog).8626 case "$desiredlang" in8627 "$presentlang"*) useit=yes;;8628 esac8629 done8630 if test $useit = yes; then8631 INST_LINGUAS="$INST_LINGUAS $presentlang"8632 fi8633 done8634 fi8635 CATALOGS=8636 JAVACATALOGS=8637 QTCATALOGS=8638 TCLCATALOGS=8639 CSHARPCATALOGS=8640 if test -n "$INST_LINGUAS"; then8641 for lang in $INST_LINGUAS; do8642 CATALOGS="$CATALOGS $lang.gmo"8643 JAVACATALOGS="$JAVACATALOGS \$(DOMAIN)_$lang.properties"8644 QTCATALOGS="$QTCATALOGS $lang.qm"8645 frobbedlang=`echo $lang | sed -e 's/\..*$//' -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`8646 TCLCATALOGS="$TCLCATALOGS $frobbedlang.msg"8647 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/'`8648 CSHARPCATALOGS="$CSHARPCATALOGS $frobbedlang/\$(DOMAIN).resources.dll"8649 done8650 fi8651 8652 sed -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"8653 if grep -l '@TCLCATALOGS@' "$ac_file" > /dev/null; then8654 # Add dependencies that cannot be formulated as a simple suffix rule.8655 for lang in $ALL_LINGUAS; do8656 frobbedlang=`echo $lang | sed -e 's/\..*$//' -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`8657 cat >> "$ac_file.tmp" <<EOF8658 $frobbedlang.msg: $lang.po8659 @echo "\$(MSGFMT) -c --tcl -d \$(srcdir) -l $lang $srcdirpre$lang.po"; \8660 \$(MSGFMT) -c --tcl -d "\$(srcdir)" -l $lang $srcdirpre$lang.po || { rm -f "\$(srcdir)/$frobbedlang.msg"; exit 1; }8661 EOF8662 done8663 fi8664 if grep -l '@CSHARPCATALOGS@' "$ac_file" > /dev/null; then8665 # Add dependencies that cannot be formulated as a simple suffix rule.8666 for lang in $ALL_LINGUAS; do8667 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/'`8668 cat >> "$ac_file.tmp" <<EOF8669 $frobbedlang/\$(DOMAIN).resources.dll: $lang.po8670 @echo "\$(MSGFMT) -c --csharp -d \$(srcdir) -l $lang $srcdirpre$lang.po -r \$(DOMAIN)"; \8671 \$(MSGFMT) -c --csharp -d "\$(srcdir)" -l $lang $srcdirpre$lang.po -r "\$(DOMAIN)" || { rm -f "\$(srcdir)/$frobbedlang.msg"; exit 1; }8672 EOF8673 done8674 fi8675 if test -n "$POMAKEFILEDEPS"; then8676 cat >> "$ac_file.tmp" <<EOF8677 Makefile: $POMAKEFILEDEPS8678 EOF8679 fi8680 mv "$ac_file.tmp" "$ac_file"8681 ])8682 8683 # progtest.m4 serial 4 (gettext-0.14.2)8684 dnl Copyright (C) 1996-2003, 2005 Free Software Foundation, Inc.8685 dnl This file is free software; the Free Software Foundation8686 dnl gives unlimited permission to copy and/or distribute it,8687 dnl with or without modifications, as long as this notice is preserved.8688 dnl8689 dnl This file can can be used in projects which are not available under8690 dnl the GNU General Public License or the GNU Library General Public8691 dnl License but which still want to provide support for the GNU gettext8692 dnl functionality.8693 dnl Please note that the actual code of the GNU gettext library is covered8694 dnl by the GNU Library General Public License, and the rest of the GNU8695 dnl gettext package package is covered by the GNU General Public License.8696 dnl They are *not* in the public domain.8697 8698 dnl Authors:8699 dnl Ulrich Drepper <drepper@cygnus.com>, 1996.8700 8701 AC_PREREQ(2.50)8702 8703 # Search path for a program which passes the given test.8704 8705 dnl AM_PATH_PROG_WITH_TEST(VARIABLE, PROG-TO-CHECK-FOR,8706 dnl TEST-PERFORMED-ON-FOUND_PROGRAM [, VALUE-IF-NOT-FOUND [, PATH]])8707 AC_DEFUN([AM_PATH_PROG_WITH_TEST],8708 [8709 # Prepare PATH_SEPARATOR.8710 # The user is always right.8711 if test "${PATH_SEPARATOR+set}" != set; then8712 echo "#! /bin/sh" >conf$$.sh8713 echo "exit 0" >>conf$$.sh8714 chmod +x conf$$.sh8715 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then8716 PATH_SEPARATOR=';'8717 else8718 PATH_SEPARATOR=:8719 fi8720 rm -f conf$$.sh8721 fi8722 8723 # Find out how to test for executable files. Don't use a zero-byte file,8724 # as systems may use methods other than mode bits to determine executability.8725 cat >conf$$.file <<_ASEOF8726 #! /bin/sh8727 exit 08728 _ASEOF8729 chmod +x conf$$.file8730 if test -x conf$$.file >/dev/null 2>&1; then8731 ac_executable_p="test -x"8732 else8733 ac_executable_p="test -f"8734 fi8735 rm -f conf$$.file8736 8737 # Extract the first word of "$2", so it can be a program name with args.8738 set dummy $2; ac_word=[$]28739 AC_MSG_CHECKING([for $ac_word])8740 AC_CACHE_VAL(ac_cv_path_$1,8741 [case "[$]$1" in8742 [[\\/]]* | ?:[[\\/]]*)8743 ac_cv_path_$1="[$]$1" # Let the user override the test with a path.8744 ;;8745 *)8746 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR8747 for ac_dir in ifelse([$5], , $PATH, [$5]); do8748 IFS="$ac_save_IFS"8749 test -z "$ac_dir" && ac_dir=.8750 for ac_exec_ext in '' $ac_executable_extensions; do8751 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then8752 echo "$as_me: trying $ac_dir/$ac_word..." >&AS_MESSAGE_LOG_FD8753 if [$3]; then8754 ac_cv_path_$1="$ac_dir/$ac_word$ac_exec_ext"8755 break 28756 fi8757 fi8758 done8759 done8760 IFS="$ac_save_IFS"8761 dnl If no 4th arg is given, leave the cache variable unset,8762 dnl so AC_PATH_PROGS will keep looking.8763 ifelse([$4], , , [ test -z "[$]ac_cv_path_$1" && ac_cv_path_$1="$4"8764 ])dnl8765 ;;8766 esac])dnl8767 $1="$ac_cv_path_$1"8768 if test ifelse([$4], , [-n "[$]$1"], ["[$]$1" != "$4"]); then8769 AC_MSG_RESULT([$]$1)8770 else8771 AC_MSG_RESULT(no)8772 fi8773 AC_SUBST($1)dnl8774 ])8775 6757 8776 6758 # Copyright (C) 2002, 2003, 2005, 2006 Free Software Foundation, Inc. … … 9618 7600 ]) # _AM_PROG_TAR 9619 7601 7602 m4_include([m4/gettext.m4]) 7603 m4_include([m4/iconv.m4]) 7604 m4_include([m4/lib-ld.m4]) 7605 m4_include([m4/lib-link.m4]) 7606 m4_include([m4/lib-prefix.m4]) 7607 m4_include([m4/nls.m4]) 7608 m4_include([m4/po.m4]) 7609 m4_include([m4/progtest.m4]) 9620 7610 m4_include([acinclude.m4]) -
trunk/fm_gui/configure
r213 r220 770 770 #endif" 771 771 772 gt_needs=773 772 ac_subst_vars='SHELL 774 773 PATH_SEPARATOR … … 1912 1911 fi 1913 1912 1914 gt_needs="$gt_needs "1915 1913 # Check that the precious variables saved in the cache have kept the same 1916 1914 # value. … … 4379 4377 *-*-irix6*) 4380 4378 # Find out which ABI we are using. 4381 echo '#line 43 81"configure"' > conftest.$ac_ext4379 echo '#line 4379 "configure"' > conftest.$ac_ext 4382 4380 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4383 4381 (eval $ac_compile) 2>&5 … … 7411 7409 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7412 7410 -e 's:$: $lt_compiler_flag:'` 7413 (eval echo "\"\$as_me:741 3: $lt_compile\"" >&5)7411 (eval echo "\"\$as_me:7411: $lt_compile\"" >&5) 7414 7412 (eval "$lt_compile" 2>conftest.err) 7415 7413 ac_status=$? 7416 7414 cat conftest.err >&5 7417 echo "$as_me:741 7: \$? = $ac_status" >&57415 echo "$as_me:7415: \$? = $ac_status" >&5 7418 7416 if (exit $ac_status) && test -s "$ac_outfile"; then 7419 7417 # The compiler can only warn and ignore the option if not recognized … … 7701 7699 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7702 7700 -e 's:$: $lt_compiler_flag:'` 7703 (eval echo "\"\$as_me:770 3: $lt_compile\"" >&5)7701 (eval echo "\"\$as_me:7701: $lt_compile\"" >&5) 7704 7702 (eval "$lt_compile" 2>conftest.err) 7705 7703 ac_status=$? 7706 7704 cat conftest.err >&5 7707 echo "$as_me:770 7: \$? = $ac_status" >&57705 echo "$as_me:7705: \$? = $ac_status" >&5 7708 7706 if (exit $ac_status) && test -s "$ac_outfile"; then 7709 7707 # The compiler can only warn and ignore the option if not recognized … … 7805 7803 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7806 7804 -e 's:$: $lt_compiler_flag:'` 7807 (eval echo "\"\$as_me:780 7: $lt_compile\"" >&5)7805 (eval echo "\"\$as_me:7805: $lt_compile\"" >&5) 7808 7806 (eval "$lt_compile" 2>out/conftest.err) 7809 7807 ac_status=$? 7810 7808 cat out/conftest.err >&5 7811 echo "$as_me:78 11: \$? = $ac_status" >&57809 echo "$as_me:7809: \$? = $ac_status" >&5 7812 7810 if (exit $ac_status) && test -s out/conftest2.$ac_objext 7813 7811 then … … 10167 10165 lt_status=$lt_dlunknown 10168 10166 cat > conftest.$ac_ext <<EOF 10169 #line 1016 9"configure"10167 #line 10167 "configure" 10170 10168 #include "confdefs.h" 10171 10169 … … 10267 10265 lt_status=$lt_dlunknown 10268 10266 cat > conftest.$ac_ext <<EOF 10269 #line 1026 9"configure"10267 #line 10267 "configure" 10270 10268 #include "confdefs.h" 10271 10269 … … 12687 12685 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12688 12686 -e 's:$: $lt_compiler_flag:'` 12689 (eval echo "\"\$as_me:1268 9: $lt_compile\"" >&5)12687 (eval echo "\"\$as_me:12687: $lt_compile\"" >&5) 12690 12688 (eval "$lt_compile" 2>conftest.err) 12691 12689 ac_status=$? 12692 12690 cat conftest.err >&5 12693 echo "$as_me:1269 3: \$? = $ac_status" >&512691 echo "$as_me:12691: \$? = $ac_status" >&5 12694 12692 if (exit $ac_status) && test -s "$ac_outfile"; then 12695 12693 # The compiler can only warn and ignore the option if not recognized … … 12791 12789 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12792 12790 -e 's:$: $lt_compiler_flag:'` 12793 (eval echo "\"\$as_me:1279 3: $lt_compile\"" >&5)12791 (eval echo "\"\$as_me:12791: $lt_compile\"" >&5) 12794 12792 (eval "$lt_compile" 2>out/conftest.err) 12795 12793 ac_status=$? 12796 12794 cat out/conftest.err >&5 12797 echo "$as_me:1279 7: \$? = $ac_status" >&512795 echo "$as_me:12795: \$? = $ac_status" >&5 12798 12796 if (exit $ac_status) && test -s out/conftest2.$ac_objext 12799 12797 then … … 14368 14366 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14369 14367 -e 's:$: $lt_compiler_flag:'` 14370 (eval echo "\"\$as_me:143 70: $lt_compile\"" >&5)14368 (eval echo "\"\$as_me:14368: $lt_compile\"" >&5) 14371 14369 (eval "$lt_compile" 2>conftest.err) 14372 14370 ac_status=$? 14373 14371 cat conftest.err >&5 14374 echo "$as_me:1437 4: \$? = $ac_status" >&514372 echo "$as_me:14372: \$? = $ac_status" >&5 14375 14373 if (exit $ac_status) && test -s "$ac_outfile"; then 14376 14374 # The compiler can only warn and ignore the option if not recognized … … 14472 14470 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14473 14471 -e 's:$: $lt_compiler_flag:'` 14474 (eval echo "\"\$as_me:1447 4: $lt_compile\"" >&5)14472 (eval echo "\"\$as_me:14472: $lt_compile\"" >&5) 14475 14473 (eval "$lt_compile" 2>out/conftest.err) 14476 14474 ac_status=$? 14477 14475 cat out/conftest.err >&5 14478 echo "$as_me:1447 8: \$? = $ac_status" >&514476 echo "$as_me:14476: \$? = $ac_status" >&5 14479 14477 if (exit $ac_status) && test -s out/conftest2.$ac_objext 14480 14478 then … … 16672 16670 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16673 16671 -e 's:$: $lt_compiler_flag:'` 16674 (eval echo "\"\$as_me:1667 4: $lt_compile\"" >&5)16672 (eval echo "\"\$as_me:16672: $lt_compile\"" >&5) 16675 16673 (eval "$lt_compile" 2>conftest.err) 16676 16674 ac_status=$? 16677 16675 cat conftest.err >&5 16678 echo "$as_me:1667 8: \$? = $ac_status" >&516676 echo "$as_me:16676: \$? = $ac_status" >&5 16679 16677 if (exit $ac_status) && test -s "$ac_outfile"; then 16680 16678 # The compiler can only warn and ignore the option if not recognized … … 16962 16960 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16963 16961 -e 's:$: $lt_compiler_flag:'` 16964 (eval echo "\"\$as_me:1696 4: $lt_compile\"" >&5)16962 (eval echo "\"\$as_me:16962: $lt_compile\"" >&5) 16965 16963 (eval "$lt_compile" 2>conftest.err) 16966 16964 ac_status=$? 16967 16965 cat conftest.err >&5 16968 echo "$as_me:1696 8: \$? = $ac_status" >&516966 echo "$as_me:16966: \$? = $ac_status" >&5 16969 16967 if (exit $ac_status) && test -s "$ac_outfile"; then 16970 16968 # The compiler can only warn and ignore the option if not recognized … … 17066 17064 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 17067 17065 -e 's:$: $lt_compiler_flag:'` 17068 (eval echo "\"\$as_me:1706 8: $lt_compile\"" >&5)17066 (eval echo "\"\$as_me:17066: $lt_compile\"" >&5) 17069 17067 (eval "$lt_compile" 2>out/conftest.err) 17070 17068 ac_status=$? 17071 17069 cat out/conftest.err >&5 17072 echo "$as_me:1707 2: \$? = $ac_status" >&517070 echo "$as_me:17070: \$? = $ac_status" >&5 17073 17071 if (exit $ac_status) && test -s out/conftest2.$ac_objext 17074 17072 then … … 20292 20290 found_a= 20293 20291 if test $use_additional = yes; then 20294 if test -n "$shlibext" \ 20295 && { test -f "$additional_libdir/lib$name.$shlibext" \ 20296 || { test "$shlibext" = dll \ 20297 && test -f "$additional_libdir/lib$name.dll.a"; }; }; then 20292 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then 20298 20293 found_dir="$additional_libdir" 20299 if test -f "$additional_libdir/lib$name.$shlibext"; then 20300 found_so="$additional_libdir/lib$name.$shlibext" 20301 else 20302 found_so="$additional_libdir/lib$name.dll.a" 20303 fi 20294 found_so="$additional_libdir/lib$name.$shlibext" 20304 20295 if test -f "$additional_libdir/lib$name.la"; then 20305 20296 found_la="$additional_libdir/lib$name.la" … … 20329 20320 -L*) 20330 20321 dir=`echo "X$x" | sed -e 's/^X-L//'` 20331 if test -n "$shlibext" \ 20332 && { test -f "$dir/lib$name.$shlibext" \ 20333 || { test "$shlibext" = dll \ 20334 && test -f "$dir/lib$name.dll.a"; }; }; then 20322 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then 20335 20323 found_dir="$dir" 20336 if test -f "$dir/lib$name.$shlibext"; then 20337 found_so="$dir/lib$name.$shlibext" 20338 else 20339 found_so="$dir/lib$name.dll.a" 20340 fi 20324 found_so="$dir/lib$name.$shlibext" 20341 20325 if test -f "$dir/lib$name.la"; then 20342 20326 found_la="$dir/lib$name.la" … … 20621 20605 20622 20606 20623 20624 20625 20626 20627 20628 20629 20630 20607 { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5 20631 20608 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; } … … 20764 20741 POSUB= 20765 20742 20766 case " $gt_needs " in20767 *" need-formatstring-macros "*) gt_api_version=3 ;;20768 *" need-ngettext "*) gt_api_version=2 ;;20769 *) gt_api_version=1 ;;20770 esac20771 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"20772 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"20773 20774 20743 if test "$USE_NLS" = "yes"; then 20775 20744 gt_use_preinstalled_gnugettext=no 20776 20745 20777 20746 20778 if test $gt_api_version -ge 3; then 20779 gt_revision_test_code=' 20780 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION 20781 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1) 20782 #endif 20783 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1]; 20784 ' 20785 else 20786 gt_revision_test_code= 20787 fi 20788 if test $gt_api_version -ge 2; then 20789 gt_expression_test_code=' + * ngettext ("", "", 0)' 20790 else 20791 gt_expression_test_code= 20792 fi 20747 20748 20749 20793 20750 20794 20751 { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5 20795 20752 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; } 20796 if { as_var=$gt_func_gnugettext_libc; eval "test \"\${$as_var+set}\" = set"; }; then20753 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then 20797 20754 echo $ECHO_N "(cached) $ECHO_C" >&6 20798 20755 else … … 20804 20761 /* end confdefs.h. */ 20805 20762 #include <libintl.h> 20806 $gt_revision_test_code20807 20763 extern int _nl_msg_cat_cntr; 20808 20764 extern int *_nl_domain_bindings; … … 20811 20767 { 20812 20768 bindtextdomain ("", ""); 20813 return * gettext ("") $gt_expression_test_code+ _nl_msg_cat_cntr + *_nl_domain_bindings20769 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings 20814 20770 ; 20815 20771 return 0; … … 20834 20790 } && test -s conftest$ac_exeext && 20835 20791 $as_test_x conftest$ac_exeext; then 20836 eval "$gt_func_gnugettext_libc=yes"20792 gt_cv_func_gnugettext1_libc=yes 20837 20793 else 20838 20794 echo "$as_me: failed program was:" >&5 20839 20795 sed 's/^/| /' conftest.$ac_ext >&5 20840 20796 20841 eval "$gt_func_gnugettext_libc=no"20797 gt_cv_func_gnugettext1_libc=no 20842 20798 fi 20843 20799 … … 20845 20801 conftest$ac_exeext conftest.$ac_ext 20846 20802 fi 20847 ac_res=`eval echo '${'$gt_func_gnugettext_libc'}'` 20848 { echo "$as_me:$LINENO: result: $ac_res" >&5 20849 echo "${ECHO_T}$ac_res" >&6; } 20850 20851 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then 20803 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5 20804 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; } 20805 20806 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then 20852 20807 20853 20808 … … 21092 21047 found_a= 21093 21048 if test $use_additional = yes; then 21094 if test -n "$shlibext" \ 21095 && { test -f "$additional_libdir/lib$name.$shlibext" \ 21096 || { test "$shlibext" = dll \ 21097 && test -f "$additional_libdir/lib$name.dll.a"; }; }; then 21049 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then 21098 21050 found_dir="$additional_libdir" 21099 if test -f "$additional_libdir/lib$name.$shlibext"; then 21100 found_so="$additional_libdir/lib$name.$shlibext" 21101 else 21102 found_so="$additional_libdir/lib$name.dll.a" 21103 fi 21051 found_so="$additional_libdir/lib$name.$shlibext" 21104 21052 if test -f "$additional_libdir/lib$name.la"; then 21105 21053 found_la="$additional_libdir/lib$name.la" … … 21129 21077 -L*) 21130 21078 dir=`echo "X$x" | sed -e 's/^X-L//'` 21131 if test -n "$shlibext" \ 21132 && { test -f "$dir/lib$name.$shlibext" \ 21133 || { test "$shlibext" = dll \ 21134 && test -f "$dir/lib$name.dll.a"; }; }; then 21079 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then 21135 21080 found_dir="$dir" 21136 if test -f "$dir/lib$name.$shlibext"; then 21137 found_so="$dir/lib$name.$shlibext" 21138 else 21139 found_so="$dir/lib$name.dll.a" 21140 fi 21081 found_so="$dir/lib$name.$shlibext" 21141 21082 if test -f "$dir/lib$name.la"; then 21142 21083 found_la="$dir/lib$name.la" … … 21406 21347 { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5 21407 21348 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; } 21408 if { as_var=$gt_func_gnugettext_libintl; eval "test \"\${$as_var+set}\" = set"; }; then21349 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then 21409 21350 echo $ECHO_N "(cached) $ECHO_C" >&6 21410 21351 else … … 21420 21361 /* end confdefs.h. */ 21421 21362 #include <libintl.h> 21422 $gt_revision_test_code21423 21363 extern int _nl_msg_cat_cntr; 21424 21364 extern … … 21431 21371 { 21432 21372 bindtextdomain ("", ""); 21433 return * gettext ("") $gt_expression_test_code+ _nl_msg_cat_cntr + *_nl_expand_alias ("")21373 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("") 21434 21374 ; 21435 21375 return 0; … … 21454 21394 } && test -s conftest$ac_exeext && 21455 21395 $as_test_x conftest$ac_exeext; then 21456 eval "$gt_func_gnugettext_libintl=yes"21396 gt_cv_func_gnugettext1_libintl=yes 21457 21397 else 21458 21398 echo "$as_me: failed program was:" >&5 21459 21399 sed 's/^/| /' conftest.$ac_ext >&5 21460 21400 21461 eval "$gt_func_gnugettext_libintl=no"21401 gt_cv_func_gnugettext1_libintl=no 21462 21402 fi 21463 21403 21464 21404 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 21465 21405 conftest$ac_exeext conftest.$ac_ext 21466 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; }&& test -n "$LIBICONV"; then21406 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then 21467 21407 LIBS="$LIBS $LIBICONV" 21468 21408 cat >conftest.$ac_ext <<_ACEOF … … 21473 21413 /* end confdefs.h. */ 21474 21414 #include <libintl.h> 21475 $gt_revision_test_code21476 21415 extern int _nl_msg_cat_cntr; 21477 21416 extern … … 21484 21423 { 21485 21424 bindtextdomain ("", ""); 21486 return * gettext ("") $gt_expression_test_code+ _nl_msg_cat_cntr + *_nl_expand_alias ("")21425 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("") 21487 21426 ; 21488 21427 return 0; … … 21509 21448 LIBINTL="$LIBINTL $LIBICONV" 21510 21449 LTLIBINTL="$LTLIBINTL $LTLIBICONV" 21511 eval "$gt_func_gnugettext_libintl=yes"21450 gt_cv_func_gnugettext1_libintl=yes 21512 21451 21513 21452 else … … 21524 21463 LIBS="$gt_save_LIBS" 21525 21464 fi 21526 ac_res=`eval echo '${'$gt_func_gnugettext_libintl'}'` 21527 { echo "$as_me:$LINENO: result: $ac_res" >&5 21528 echo "${ECHO_T}$ac_res" >&6; } 21465 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5 21466 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; } 21529 21467 fi 21530 21468 21531 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; }\21532 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }\21469 if test "$gt_cv_func_gnugettext1_libc" = "yes" \ 21470 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \ 21533 21471 && test "$PACKAGE" != gettext-runtime \ 21534 21472 && test "$PACKAGE" != gettext-tools; }; then … … 21570 21508 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; } 21571 21509 if test "$gt_use_preinstalled_gnugettext" = "yes"; then 21572 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then21510 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then 21573 21511 gt_source="external libintl" 21574 21512 else … … 21585 21523 21586 21524 if test "$gt_use_preinstalled_gnugettext" = "yes"; then 21587 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then21525 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then 21588 21526 { echo "$as_me:$LINENO: checking how to link with libintl" >&5 21589 21527 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; } … … 26014 25952 echo "" 26015 25953 echo "" 25954 echo "Build options:" 25955 if test "$br_cv_binreloc" = "yes"; then 25956 echo " binreloc support: yes" 25957 else 25958 echo " binreloc support: no" 25959 fi 25960 echo "" 26016 25961 echo "Installation options:" 26017 25962 echo " fm_gui will be installed to ${prefix}" -
trunk/fm_gui/configure.ac
r213 r220 154 154 echo "" 155 155 echo "" 156 echo "Build options:" 157 if test "$br_cv_binreloc" = "yes"; then 158 echo " binreloc support: yes" 159 else 160 echo " binreloc support: no" 161 fi 162 echo "" 156 163 echo "Installation options:" 157 164 echo " fm_gui will be installed to ${prefix}" -
trunk/fm_gui/data/Makefile.in
r213 r220 36 36 DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in 37 37 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 38 am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \ 38 am__aclocal_m4_deps = $(top_srcdir)/m4/gettext.m4 \ 39 $(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/lib-ld.m4 \ 40 $(top_srcdir)/m4/lib-link.m4 $(top_srcdir)/m4/lib-prefix.m4 \ 41 $(top_srcdir)/m4/nls.m4 $(top_srcdir)/m4/po.m4 \ 42 $(top_srcdir)/m4/progtest.m4 $(top_srcdir)/acinclude.m4 \ 39 43 $(top_srcdir)/configure.ac 40 44 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ -
trunk/fm_gui/data/icons/Makefile.in
r213 r220 36 36 DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in 37 37 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 38 am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \ 38 am__aclocal_m4_deps = $(top_srcdir)/m4/gettext.m4 \ 39 $(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/lib-ld.m4 \ 40 $(top_srcdir)/m4/lib-link.m4 $(top_srcdir)/m4/lib-prefix.m4 \ 41 $(top_srcdir)/m4/nls.m4 $(top_srcdir)/m4/po.m4 \ 42 $(top_srcdir)/m4/progtest.m4 $(top_srcdir)/acinclude.m4 \ 39 43 $(top_srcdir)/configure.ac 40 44 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ -
trunk/fm_gui/src/Makefile.in
r213 r220 37 37 DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in 38 38 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 39 am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \ 39 am__aclocal_m4_deps = $(top_srcdir)/m4/gettext.m4 \ 40 $(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/lib-ld.m4 \ 41 $(top_srcdir)/m4/lib-link.m4 $(top_srcdir)/m4/lib-prefix.m4 \ 42 $(top_srcdir)/m4/nls.m4 $(top_srcdir)/m4/po.m4 \ 43 $(top_srcdir)/m4/progtest.m4 $(top_srcdir)/acinclude.m4 \ 40 44 $(top_srcdir)/configure.ac 41 45 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ -
trunk/fm_gui/src/tx_widgets/Makefile.in
r213 r220 36 36 DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in 37 37 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 38 am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \ 38 am__aclocal_m4_deps = $(top_srcdir)/m4/gettext.m4 \ 39 $(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/lib-ld.m4 \ 40 $(top_srcdir)/m4/lib-link.m4 $(top_srcdir)/m4/lib-prefix.m4 \ 41 $(top_srcdir)/m4/nls.m4 $(top_srcdir)/m4/po.m4 \ 42 $(top_srcdir)/m4/progtest.m4 $(top_srcdir)/acinclude.m4 \ 39 43 $(top_srcdir)/configure.ac 40 44 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ -
trunk/fm_gui/src/tx_widgets/icons/Makefile.in
r213 r220 35 35 DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in 36 36 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 37 am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \ 37 am__aclocal_m4_deps = $(top_srcdir)/m4/gettext.m4 \ 38 $(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/lib-ld.m4 \ 39 $(top_srcdir)/m4/lib-link.m4 $(top_srcdir)/m4/lib-prefix.m4 \ 40 $(top_srcdir)/m4/nls.m4 $(top_srcdir)/m4/po.m4 \ 41 $(top_srcdir)/m4/progtest.m4 $(top_srcdir)/acinclude.m4 \ 38 42 $(top_srcdir)/configure.ac 39 43 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ -
trunk/fm_server/Makefile.in
r217 r220 40 40 install-sh ltmain.sh missing mkinstalldirs 41 41 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 42 am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \ 42 am__aclocal_m4_deps = $(top_srcdir)/m4/gettext.m4 \ 43 $(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/lib-ld.m4 \ 44 $(top_srcdir)/m4/lib-link.m4 $(top_srcdir)/m4/lib-prefix.m4 \ 45 $(top_srcdir)/m4/nls.m4 $(top_srcdir)/m4/po.m4 \ 46 $(top_srcdir)/m4/progtest.m4 $(top_srcdir)/acinclude.m4 \ 43 47 $(top_srcdir)/configure.ac 44 48 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ -
trunk/fm_server/aclocal.m4
r217 r220 16 16 You have another version of autoconf. If you want to use that, 17 17 you should regenerate the build system entirely.], [63])]) 18 19 # gettext.m4 serial 59 (gettext-0.16.1)20 dnl Copyright (C) 1995-2006 Free Software Foundation, Inc.21 dnl This file is free software; the Free Software Foundation22 dnl gives unlimited permission to copy and/or distribute it,23 dnl with or without modifications, as long as this notice is preserved.24 dnl25 dnl This file can can be used in projects which are not available under26 dnl the GNU General Public License or the GNU Library General Public27 dnl License but which still want to provide support for the GNU gettext28 dnl functionality.29 dnl Please note that the actual code of the GNU gettext library is covered30 dnl by the GNU Library General Public License, and the rest of the GNU31 dnl gettext package package is covered by the GNU General Public License.32 dnl They are *not* in the public domain.33 34 dnl Authors:35 dnl Ulrich Drepper <drepper@cygnus.com>, 1995-2000.36 dnl Bruno Haible <haible@clisp.cons.org>, 2000-2006.37 38 dnl Macro to add for using GNU gettext.39 40 dnl Usage: AM_GNU_GETTEXT([INTLSYMBOL], [NEEDSYMBOL], [INTLDIR]).41 dnl INTLSYMBOL can be one of 'external', 'no-libtool', 'use-libtool'. The42 dnl default (if it is not specified or empty) is 'no-libtool'.43 dnl INTLSYMBOL should be 'external' for packages with no intl directory,44 dnl and 'no-libtool' or 'use-libtool' for packages with an intl directory.45 dnl If INTLSYMBOL is 'use-libtool', then a libtool library46 dnl $(top_builddir)/intl/libintl.la will be created (shared and/or static,47 dnl depending on --{enable,disable}-{shared,static} and on the presence of48 dnl AM-DISABLE-SHARED). If INTLSYMBOL is 'no-libtool', a static library49 dnl $(top_builddir)/intl/libintl.a will be created.50 dnl If NEEDSYMBOL is specified and is 'need-ngettext', then GNU gettext51 dnl implementations (in libc or libintl) without the ngettext() function52 dnl will be ignored. If NEEDSYMBOL is specified and is53 dnl 'need-formatstring-macros', then GNU gettext implementations that don't54 dnl support the ISO C 99 <inttypes.h> formatstring macros will be ignored.55 dnl INTLDIR is used to find the intl libraries. If empty,56 dnl the value `$(top_builddir)/intl/' is used.57 dnl58 dnl The result of the configuration is one of three cases:59 dnl 1) GNU gettext, as included in the intl subdirectory, will be compiled60 dnl and used.61 dnl Catalog format: GNU --> install in $(datadir)62 dnl Catalog extension: .mo after installation, .gmo in source tree63 dnl 2) GNU gettext has been found in the system's C library.64 dnl Catalog format: GNU --> install in $(datadir)65 dnl Catalog extension: .mo after installation, .gmo in source tree66 dnl 3) No internationalization, always use English msgid.67 dnl Catalog format: none68 dnl Catalog extension: none69 dnl If INTLSYMBOL is 'external', only cases 2 and 3 can occur.70 dnl The use of .gmo is historical (it was needed to avoid overwriting the71 dnl GNU format catalogs when building on a platform with an X/Open gettext),72 dnl but we keep it in order not to force irrelevant filename changes on the73 dnl maintainers.74 dnl75 AC_DEFUN([AM_GNU_GETTEXT],76 [77 dnl Argument checking.78 ifelse([$1], [], , [ifelse([$1], [external], , [ifelse([$1], [no-libtool], , [ifelse([$1], [use-libtool], ,79 [errprint([ERROR: invalid first argument to AM_GNU_GETTEXT80 ])])])])])81 ifelse([$2], [], , [ifelse([$2], [need-ngettext], , [ifelse([$2], [need-formatstring-macros], ,82 [errprint([ERROR: invalid second argument to AM_GNU_GETTEXT83 ])])])])84 define([gt_included_intl],85 ifelse([$1], [external],86 ifdef([AM_GNU_GETTEXT_][INTL_SUBDIR], [yes], [no]),87 [yes]))88 define([gt_libtool_suffix_prefix], ifelse([$1], [use-libtool], [l], []))89 gt_NEEDS_INIT90 AM_GNU_GETTEXT_NEED([$2])91 92 AC_REQUIRE([AM_PO_SUBDIRS])dnl93 ifelse(gt_included_intl, yes, [94 AC_REQUIRE([AM_INTL_SUBDIR])dnl95 ])96 97 dnl Prerequisites of AC_LIB_LINKFLAGS_BODY.98 AC_REQUIRE([AC_LIB_PREPARE_PREFIX])99 AC_REQUIRE([AC_LIB_RPATH])100 101 dnl Sometimes libintl requires libiconv, so first search for libiconv.102 dnl Ideally we would do this search only after the103 dnl if test "$USE_NLS" = "yes"; then104 dnl if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then105 dnl tests. But if configure.in invokes AM_ICONV after AM_GNU_GETTEXT106 dnl the configure script would need to contain the same shell code107 dnl again, outside any 'if'. There are two solutions:108 dnl - Invoke AM_ICONV_LINKFLAGS_BODY here, outside any 'if'.109 dnl - Control the expansions in more detail using AC_PROVIDE_IFELSE.110 dnl Since AC_PROVIDE_IFELSE is only in autoconf >= 2.52 and not111 dnl documented, we avoid it.112 ifelse(gt_included_intl, yes, , [113 AC_REQUIRE([AM_ICONV_LINKFLAGS_BODY])114 ])115 116 dnl Sometimes, on MacOS X, libintl requires linking with CoreFoundation.117 gt_INTL_MACOSX118 119 dnl Set USE_NLS.120 AC_REQUIRE([AM_NLS])121 122 ifelse(gt_included_intl, yes, [123 BUILD_INCLUDED_LIBINTL=no124 USE_INCLUDED_LIBINTL=no125 ])126 LIBINTL=127 LTLIBINTL=128 POSUB=129 130 dnl Add a version number to the cache macros.131 case " $gt_needs " in132 *" need-formatstring-macros "*) gt_api_version=3 ;;133 *" need-ngettext "*) gt_api_version=2 ;;134 *) gt_api_version=1 ;;135 esac136 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"137 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"138 139 dnl If we use NLS figure out what method140 if test "$USE_NLS" = "yes"; then141 gt_use_preinstalled_gnugettext=no142 ifelse(gt_included_intl, yes, [143 AC_MSG_CHECKING([whether included gettext is requested])144 AC_ARG_WITH(included-gettext,145 [ --with-included-gettext use the GNU gettext library included here],146 nls_cv_force_use_gnu_gettext=$withval,147 nls_cv_force_use_gnu_gettext=no)148 AC_MSG_RESULT($nls_cv_force_use_gnu_gettext)149 150 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"151 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then152 ])153 dnl User does not insist on using GNU NLS library. Figure out what154 dnl to use. If GNU gettext is available we use this. Else we have155 dnl to fall back to GNU NLS library.156 157 if test $gt_api_version -ge 3; then158 gt_revision_test_code='159 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION160 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)161 #endif162 changequote(,)dnl163 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];164 changequote([,])dnl165 '166 else167 gt_revision_test_code=168 fi169 if test $gt_api_version -ge 2; then170 gt_expression_test_code=' + * ngettext ("", "", 0)'171 else172 gt_expression_test_code=173 fi174 175 AC_CACHE_CHECK([for GNU gettext in libc], [$gt_func_gnugettext_libc],176 [AC_TRY_LINK([#include <libintl.h>177 $gt_revision_test_code178 extern int _nl_msg_cat_cntr;179 extern int *_nl_domain_bindings;],180 [bindtextdomain ("", "");181 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings],182 [eval "$gt_func_gnugettext_libc=yes"],183 [eval "$gt_func_gnugettext_libc=no"])])184 185 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then186 dnl Sometimes libintl requires libiconv, so first search for libiconv.187 ifelse(gt_included_intl, yes, , [188 AM_ICONV_LINK189 ])190 dnl Search for libintl and define LIBINTL, LTLIBINTL and INCINTL191 dnl accordingly. Don't use AC_LIB_LINKFLAGS_BODY([intl],[iconv])192 dnl because that would add "-liconv" to LIBINTL and LTLIBINTL193 dnl even if libiconv doesn't exist.194 AC_LIB_LINKFLAGS_BODY([intl])195 AC_CACHE_CHECK([for GNU gettext in libintl],196 [$gt_func_gnugettext_libintl],197 [gt_save_CPPFLAGS="$CPPFLAGS"198 CPPFLAGS="$CPPFLAGS $INCINTL"199 gt_save_LIBS="$LIBS"200 LIBS="$LIBS $LIBINTL"201 dnl Now see whether libintl exists and does not depend on libiconv.202 AC_TRY_LINK([#include <libintl.h>203 $gt_revision_test_code204 extern int _nl_msg_cat_cntr;205 extern206 #ifdef __cplusplus207 "C"208 #endif209 const char *_nl_expand_alias (const char *);],210 [bindtextdomain ("", "");211 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")],212 [eval "$gt_func_gnugettext_libintl=yes"],213 [eval "$gt_func_gnugettext_libintl=no"])214 dnl Now see whether libintl exists and depends on libiconv.215 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then216 LIBS="$LIBS $LIBICONV"217 AC_TRY_LINK([#include <libintl.h>218 $gt_revision_test_code219 extern int _nl_msg_cat_cntr;220 extern221 #ifdef __cplusplus222 "C"223 #endif224 const char *_nl_expand_alias (const char *);],225 [bindtextdomain ("", "");226 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")],227 [LIBINTL="$LIBINTL $LIBICONV"228 LTLIBINTL="$LTLIBINTL $LTLIBICONV"229 eval "$gt_func_gnugettext_libintl=yes"230 ])231 fi232 CPPFLAGS="$gt_save_CPPFLAGS"233 LIBS="$gt_save_LIBS"])234 fi235 236 dnl If an already present or preinstalled GNU gettext() is found,237 dnl use it. But if this macro is used in GNU gettext, and GNU238 dnl gettext is already preinstalled in libintl, we update this239 dnl libintl. (Cf. the install rule in intl/Makefile.in.)240 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \241 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \242 && test "$PACKAGE" != gettext-runtime \243 && test "$PACKAGE" != gettext-tools; }; then244 gt_use_preinstalled_gnugettext=yes245 else246 dnl Reset the values set by searching for libintl.247 LIBINTL=248 LTLIBINTL=249 INCINTL=250 fi251 252 ifelse(gt_included_intl, yes, [253 if test "$gt_use_preinstalled_gnugettext" != "yes"; then254 dnl GNU gettext is not found in the C library.255 dnl Fall back on included GNU gettext library.256 nls_cv_use_gnu_gettext=yes257 fi258 fi259 260 if test "$nls_cv_use_gnu_gettext" = "yes"; then261 dnl Mark actions used to generate GNU NLS library.262 BUILD_INCLUDED_LIBINTL=yes263 USE_INCLUDED_LIBINTL=yes264 LIBINTL="ifelse([$3],[],\${top_builddir}/intl,[$3])/libintl.[]gt_libtool_suffix_prefix[]a $LIBICONV $LIBTHREAD"265 LTLIBINTL="ifelse([$3],[],\${top_builddir}/intl,[$3])/libintl.[]gt_libtool_suffix_prefix[]a $LTLIBICONV $LTLIBTHREAD"266 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`267 fi268 269 CATOBJEXT=270 if test "$gt_use_preinstalled_gnugettext" = "yes" \271 || test "$nls_cv_use_gnu_gettext" = "yes"; then272 dnl Mark actions to use GNU gettext tools.273 CATOBJEXT=.gmo274 fi275 ])276 277 if test -n "$INTL_MACOSX_LIBS"; then278 if test "$gt_use_preinstalled_gnugettext" = "yes" \279 || test "$nls_cv_use_gnu_gettext" = "yes"; then280 dnl Some extra flags are needed during linking.281 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"282 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"283 fi284 fi285 286 if test "$gt_use_preinstalled_gnugettext" = "yes" \287 || test "$nls_cv_use_gnu_gettext" = "yes"; then288 AC_DEFINE(ENABLE_NLS, 1,289 [Define to 1 if translation of program messages to the user's native language290 is requested.])291 else292 USE_NLS=no293 fi294 fi295 296 AC_MSG_CHECKING([whether to use NLS])297 AC_MSG_RESULT([$USE_NLS])298 if test "$USE_NLS" = "yes"; then299 AC_MSG_CHECKING([where the gettext function comes from])300 if test "$gt_use_preinstalled_gnugettext" = "yes"; then301 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then302 gt_source="external libintl"303 else304 gt_source="libc"305 fi306 else307 gt_source="included intl directory"308 fi309 AC_MSG_RESULT([$gt_source])310 fi311 312 if test "$USE_NLS" = "yes"; then313 314 if test "$gt_use_preinstalled_gnugettext" = "yes"; then315 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then316 AC_MSG_CHECKING([how to link with libintl])317 AC_MSG_RESULT([$LIBINTL])318 AC_LIB_APPENDTOVAR([CPPFLAGS], [$INCINTL])319 fi320 321 dnl For backward compatibility. Some packages may be using this.322 AC_DEFINE(HAVE_GETTEXT, 1,323 [Define if the GNU gettext() function is already present or preinstalled.])324 AC_DEFINE(HAVE_DCGETTEXT, 1,325 [Define if the GNU dcgettext() function is already present or preinstalled.])326 fi327 328 dnl We need to process the po/ directory.329 POSUB=po330 fi331 332 ifelse(gt_included_intl, yes, [333 dnl If this is used in GNU gettext we have to set BUILD_INCLUDED_LIBINTL334 dnl to 'yes' because some of the testsuite requires it.335 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then336 BUILD_INCLUDED_LIBINTL=yes337 fi338 339 dnl Make all variables we use known to autoconf.340 AC_SUBST(BUILD_INCLUDED_LIBINTL)341 AC_SUBST(USE_INCLUDED_LIBINTL)342 AC_SUBST(CATOBJEXT)343 344 dnl For backward compatibility. Some configure.ins may be using this.345 nls_cv_header_intl=346 nls_cv_header_libgt=347 348 dnl For backward compatibility. Some Makefiles may be using this.349 DATADIRNAME=share350 AC_SUBST(DATADIRNAME)351 352 dnl For backward compatibility. Some Makefiles may be using this.353 INSTOBJEXT=.mo354 AC_SUBST(INSTOBJEXT)355 356 dnl For backward compatibility. Some Makefiles may be using this.357 GENCAT=gencat358 AC_SUBST(GENCAT)359 360 dnl For backward compatibility. Some Makefiles may be using this.361 INTLOBJS=362 if test "$USE_INCLUDED_LIBINTL" = yes; then363 INTLOBJS="\$(GETTOBJS)"364 fi365 AC_SUBST(INTLOBJS)366 367 dnl Enable libtool support if the surrounding package wishes it.368 INTL_LIBTOOL_SUFFIX_PREFIX=gt_libtool_suffix_prefix369 AC_SUBST(INTL_LIBTOOL_SUFFIX_PREFIX)370 ])371 372 dnl For backward compatibility. Some Makefiles may be using this.373 INTLLIBS="$LIBINTL"374 AC_SUBST(INTLLIBS)375 376 dnl Make all documented variables known to autoconf.377 AC_SUBST(LIBINTL)378 AC_SUBST(LTLIBINTL)379 AC_SUBST(POSUB)380 ])381 382 383 dnl Checks for special options needed on MacOS X.384 dnl Defines INTL_MACOSX_LIBS.385 AC_DEFUN([gt_INTL_MACOSX],386 [387 dnl Check for API introduced in MacOS X 10.2.388 AC_CACHE_CHECK([for CFPreferencesCopyAppValue],389 gt_cv_func_CFPreferencesCopyAppValue,390 [gt_save_LIBS="$LIBS"391 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"392 AC_TRY_LINK([#include <CoreFoundation/CFPreferences.h>],393 [CFPreferencesCopyAppValue(NULL, NULL)],394 [gt_cv_func_CFPreferencesCopyAppValue=yes],395 [gt_cv_func_CFPreferencesCopyAppValue=no])396 LIBS="$gt_save_LIBS"])397 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then398 AC_DEFINE([HAVE_CFPREFERENCESCOPYAPPVALUE], 1,399 [Define to 1 if you have the MacOS X function CFPreferencesCopyAppValue in the CoreFoundation framework.])400 fi401 dnl Check for API introduced in MacOS X 10.3.402 AC_CACHE_CHECK([for CFLocaleCopyCurrent], gt_cv_func_CFLocaleCopyCurrent,403 [gt_save_LIBS="$LIBS"404 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"405 AC_TRY_LINK([#include <CoreFoundation/CFLocale.h>], [CFLocaleCopyCurrent();],406 [gt_cv_func_CFLocaleCopyCurrent=yes],407 [gt_cv_func_CFLocaleCopyCurrent=no])408 LIBS="$gt_save_LIBS"])409 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then410 AC_DEFINE([HAVE_CFLOCALECOPYCURRENT], 1,411 [Define to 1 if you have the MacOS X function CFLocaleCopyCurrent in the CoreFoundation framework.])412 fi413 INTL_MACOSX_LIBS=414 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then415 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"416 fi417 AC_SUBST([INTL_MACOSX_LIBS])418 ])419 420 421 dnl gt_NEEDS_INIT ensures that the gt_needs variable is initialized.422 m4_define([gt_NEEDS_INIT],423 [424 m4_divert_text([DEFAULTS], [gt_needs=])425 m4_define([gt_NEEDS_INIT], [])426 ])427 428 429 dnl Usage: AM_GNU_GETTEXT_NEED([NEEDSYMBOL])430 AC_DEFUN([AM_GNU_GETTEXT_NEED],431 [432 m4_divert_text([INIT_PREPARE], [gt_needs="$gt_needs $1"])433 ])434 435 436 dnl Usage: AM_GNU_GETTEXT_VERSION([gettext-version])437 AC_DEFUN([AM_GNU_GETTEXT_VERSION], [])438 439 # iconv.m4 serial AM4 (gettext-0.11.3)440 dnl Copyright (C) 2000-2002 Free Software Foundation, Inc.441 dnl This file is free software; the Free Software Foundation442 dnl gives unlimited permission to copy and/or distribute it,443 dnl with or without modifications, as long as this notice is preserved.444 445 dnl From Bruno Haible.446 447 AC_DEFUN([AM_ICONV_LINKFLAGS_BODY],448 [449 dnl Prerequisites of AC_LIB_LINKFLAGS_BODY.450 AC_REQUIRE([AC_LIB_PREPARE_PREFIX])451 AC_REQUIRE([AC_LIB_RPATH])452 453 dnl Search for libiconv and define LIBICONV, LTLIBICONV and INCICONV454 dnl accordingly.455 AC_LIB_LINKFLAGS_BODY([iconv])456 ])457 458 AC_DEFUN([AM_ICONV_LINK],459 [460 dnl Some systems have iconv in libc, some have it in libiconv (OSF/1 and461 dnl those with the standalone portable GNU libiconv installed).462 463 dnl Search for libiconv and define LIBICONV, LTLIBICONV and INCICONV464 dnl accordingly.465 AC_REQUIRE([AM_ICONV_LINKFLAGS_BODY])466 467 dnl Add $INCICONV to CPPFLAGS before performing the following checks,468 dnl because if the user has installed libiconv and not disabled its use469 dnl via --without-libiconv-prefix, he wants to use it. The first470 dnl AC_TRY_LINK will then fail, the second AC_TRY_LINK will succeed.471 am_save_CPPFLAGS="$CPPFLAGS"472 AC_LIB_APPENDTOVAR([CPPFLAGS], [$INCICONV])473 474 AC_CACHE_CHECK(for iconv, am_cv_func_iconv, [475 am_cv_func_iconv="no, consider installing GNU libiconv"476 am_cv_lib_iconv=no477 AC_TRY_LINK([#include <stdlib.h>478 #include <iconv.h>],479 [iconv_t cd = iconv_open("","");480 iconv(cd,NULL,NULL,NULL,NULL);481 iconv_close(cd);],482 am_cv_func_iconv=yes)483 if test "$am_cv_func_iconv" != yes; then484 am_save_LIBS="$LIBS"485 LIBS="$LIBS $LIBICONV"486 AC_TRY_LINK([#include <stdlib.h>487 #include <iconv.h>],488 [iconv_t cd = iconv_open("","");489 iconv(cd,NULL,NULL,NULL,NULL);490 iconv_close(cd);],491 am_cv_lib_iconv=yes492 am_cv_func_iconv=yes)493 LIBS="$am_save_LIBS"494 fi495 ])496 if test "$am_cv_func_iconv" = yes; then497 AC_DEFINE(HAVE_ICONV, 1, [Define if you have the iconv() function.])498 fi499 if test "$am_cv_lib_iconv" = yes; then500 AC_MSG_CHECKING([how to link with libiconv])501 AC_MSG_RESULT([$LIBICONV])502 else503 dnl If $LIBICONV didn't lead to a usable library, we don't need $INCICONV504 dnl either.505 CPPFLAGS="$am_save_CPPFLAGS"506 LIBICONV=507 LTLIBICONV=508 fi509 AC_SUBST(LIBICONV)510 AC_SUBST(LTLIBICONV)511 ])512 513 AC_DEFUN([AM_ICONV],514 [515 AM_ICONV_LINK516 if test "$am_cv_func_iconv" = yes; then517 AC_MSG_CHECKING([for iconv declaration])518 AC_CACHE_VAL(am_cv_proto_iconv, [519 AC_TRY_COMPILE([520 #include <stdlib.h>521 #include <iconv.h>522 extern523 #ifdef __cplusplus524 "C"525 #endif526 #if defined(__STDC__) || defined(__cplusplus)527 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);528 #else529 size_t iconv();530 #endif531 ], [], am_cv_proto_iconv_arg1="", am_cv_proto_iconv_arg1="const")532 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);"])533 am_cv_proto_iconv=`echo "[$]am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`534 AC_MSG_RESULT([$]{ac_t:-535 }[$]am_cv_proto_iconv)536 AC_DEFINE_UNQUOTED(ICONV_CONST, $am_cv_proto_iconv_arg1,537 [Define as const if the declaration of iconv() needs const.])538 fi539 ])540 541 # lib-ld.m4 serial 3 (gettext-0.13)542 dnl Copyright (C) 1996-2003 Free Software Foundation, Inc.543 dnl This file is free software; the Free Software Foundation544 dnl gives unlimited permission to copy and/or distribute it,545 dnl with or without modifications, as long as this notice is preserved.546 547 dnl Subroutines of libtool.m4,548 dnl with replacements s/AC_/AC_LIB/ and s/lt_cv/acl_cv/ to avoid collision549 dnl with libtool.m4.550 551 dnl From libtool-1.4. Sets the variable with_gnu_ld to yes or no.552 AC_DEFUN([AC_LIB_PROG_LD_GNU],553 [AC_CACHE_CHECK([if the linker ($LD) is GNU ld], acl_cv_prog_gnu_ld,554 [# I'd rather use --version here, but apparently some GNU ld's only accept -v.555 case `$LD -v 2>&1 </dev/null` in556 *GNU* | *'with BFD'*)557 acl_cv_prog_gnu_ld=yes ;;558 *)559 acl_cv_prog_gnu_ld=no ;;560 esac])561 with_gnu_ld=$acl_cv_prog_gnu_ld562 ])563 564 dnl From libtool-1.4. Sets the variable LD.565 AC_DEFUN([AC_LIB_PROG_LD],566 [AC_ARG_WITH(gnu-ld,567 [ --with-gnu-ld assume the C compiler uses GNU ld [default=no]],568 test "$withval" = no || with_gnu_ld=yes, with_gnu_ld=no)569 AC_REQUIRE([AC_PROG_CC])dnl570 AC_REQUIRE([AC_CANONICAL_HOST])dnl571 # Prepare PATH_SEPARATOR.572 # The user is always right.573 if test "${PATH_SEPARATOR+set}" != set; then574 echo "#! /bin/sh" >conf$$.sh575 echo "exit 0" >>conf$$.sh576 chmod +x conf$$.sh577 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then578 PATH_SEPARATOR=';'579 else580 PATH_SEPARATOR=:581 fi582 rm -f conf$$.sh583 fi584 ac_prog=ld585 if test "$GCC" = yes; then586 # Check if gcc -print-prog-name=ld gives a path.587 AC_MSG_CHECKING([for ld used by GCC])588 case $host in589 *-*-mingw*)590 # gcc leaves a trailing carriage return which upsets mingw591 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;592 *)593 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;594 esac595 case $ac_prog in596 # Accept absolute paths.597 [[\\/]* | [A-Za-z]:[\\/]*)]598 [re_direlt='/[^/][^/]*/\.\./']599 # Canonicalize the path of ld600 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`601 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do602 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`603 done604 test -z "$LD" && LD="$ac_prog"605 ;;606 "")607 # If it fails, then pretend we aren't using GCC.608 ac_prog=ld609 ;;610 *)611 # If it is relative, then search for the first ld in PATH.612 with_gnu_ld=unknown613 ;;614 esac615 elif test "$with_gnu_ld" = yes; then616 AC_MSG_CHECKING([for GNU ld])617 else618 AC_MSG_CHECKING([for non-GNU ld])619 fi620 AC_CACHE_VAL(acl_cv_path_LD,621 [if test -z "$LD"; then622 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"623 for ac_dir in $PATH; do624 test -z "$ac_dir" && ac_dir=.625 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then626 acl_cv_path_LD="$ac_dir/$ac_prog"627 # Check to see if the program is GNU ld. I'd rather use --version,628 # but apparently some GNU ld's only accept -v.629 # Break only if it was the GNU/non-GNU ld that we prefer.630 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in631 *GNU* | *'with BFD'*)632 test "$with_gnu_ld" != no && break ;;633 *)634 test "$with_gnu_ld" != yes && break ;;635 esac636 fi637 done638 IFS="$ac_save_ifs"639 else640 acl_cv_path_LD="$LD" # Let the user override the test with a path.641 fi])642 LD="$acl_cv_path_LD"643 if test -n "$LD"; then644 AC_MSG_RESULT($LD)645 else646 AC_MSG_RESULT(no)647 fi648 test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])649 AC_LIB_PROG_LD_GNU650 ])651 652 # lib-link.m4 serial 9 (gettext-0.16)653 dnl Copyright (C) 2001-2006 Free Software Foundation, Inc.654 dnl This file is free software; the Free Software Foundation655 dnl gives unlimited permission to copy and/or distribute it,656 dnl with or without modifications, as long as this notice is preserved.657 658 dnl From Bruno Haible.659 660 AC_PREREQ(2.50)661 662 dnl AC_LIB_LINKFLAGS(name [, dependencies]) searches for libname and663 dnl the libraries corresponding to explicit and implicit dependencies.664 dnl Sets and AC_SUBSTs the LIB${NAME} and LTLIB${NAME} variables and665 dnl augments the CPPFLAGS variable.666 AC_DEFUN([AC_LIB_LINKFLAGS],667 [668 AC_REQUIRE([AC_LIB_PREPARE_PREFIX])669 AC_REQUIRE([AC_LIB_RPATH])670 define([Name],[translit([$1],[./-], [___])])671 define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-],672 [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])])673 AC_CACHE_CHECK([how to link with lib[]$1], [ac_cv_lib[]Name[]_libs], [674 AC_LIB_LINKFLAGS_BODY([$1], [$2])675 ac_cv_lib[]Name[]_libs="$LIB[]NAME"676 ac_cv_lib[]Name[]_ltlibs="$LTLIB[]NAME"677 ac_cv_lib[]Name[]_cppflags="$INC[]NAME"678 ])679 LIB[]NAME="$ac_cv_lib[]Name[]_libs"680 LTLIB[]NAME="$ac_cv_lib[]Name[]_ltlibs"681 INC[]NAME="$ac_cv_lib[]Name[]_cppflags"682 AC_LIB_APPENDTOVAR([CPPFLAGS], [$INC]NAME)683 AC_SUBST([LIB]NAME)684 AC_SUBST([LTLIB]NAME)685 dnl Also set HAVE_LIB[]NAME so that AC_LIB_HAVE_LINKFLAGS can reuse the686 dnl results of this search when this library appears as a dependency.687 HAVE_LIB[]NAME=yes688 undefine([Name])689 undefine([NAME])690 ])691 692 dnl AC_LIB_HAVE_LINKFLAGS(name, dependencies, includes, testcode)693 dnl searches for libname and the libraries corresponding to explicit and694 dnl implicit dependencies, together with the specified include files and695 dnl the ability to compile and link the specified testcode. If found, it696 dnl sets and AC_SUBSTs HAVE_LIB${NAME}=yes and the LIB${NAME} and697 dnl LTLIB${NAME} variables and augments the CPPFLAGS variable, and698 dnl #defines HAVE_LIB${NAME} to 1. Otherwise, it sets and AC_SUBSTs699 dnl HAVE_LIB${NAME}=no and LIB${NAME} and LTLIB${NAME} to empty.700 AC_DEFUN([AC_LIB_HAVE_LINKFLAGS],701 [702 AC_REQUIRE([AC_LIB_PREPARE_PREFIX])703 AC_REQUIRE([AC_LIB_RPATH])704 define([Name],[translit([$1],[./-], [___])])705 define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-],706 [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])])707 708 dnl Search for lib[]Name and define LIB[]NAME, LTLIB[]NAME and INC[]NAME709 dnl accordingly.710 AC_LIB_LINKFLAGS_BODY([$1], [$2])711 712 dnl Add $INC[]NAME to CPPFLAGS before performing the following checks,713 dnl because if the user has installed lib[]Name and not disabled its use714 dnl via --without-lib[]Name-prefix, he wants to use it.715 ac_save_CPPFLAGS="$CPPFLAGS"716 AC_LIB_APPENDTOVAR([CPPFLAGS], [$INC]NAME)717 718 AC_CACHE_CHECK([for lib[]$1], [ac_cv_lib[]Name], [719 ac_save_LIBS="$LIBS"720 LIBS="$LIBS $LIB[]NAME"721 AC_TRY_LINK([$3], [$4], [ac_cv_lib[]Name=yes], [ac_cv_lib[]Name=no])722 LIBS="$ac_save_LIBS"723 ])724 if test "$ac_cv_lib[]Name" = yes; then725 HAVE_LIB[]NAME=yes726 AC_DEFINE([HAVE_LIB]NAME, 1, [Define if you have the $1 library.])727 AC_MSG_CHECKING([how to link with lib[]$1])728 AC_MSG_RESULT([$LIB[]NAME])729 else730 HAVE_LIB[]NAME=no731 dnl If $LIB[]NAME didn't lead to a usable library, we don't need732 dnl $INC[]NAME either.733 CPPFLAGS="$ac_save_CPPFLAGS"734 LIB[]NAME=735 LTLIB[]NAME=736 fi737 AC_SUBST([HAVE_LIB]NAME)738 AC_SUBST([LIB]NAME)739 AC_SUBST([LTLIB]NAME)740 undefine([Name])741 undefine([NAME])742 ])743 744 dnl Determine the platform dependent parameters needed to use rpath:745 dnl libext, shlibext, hardcode_libdir_flag_spec, hardcode_libdir_separator,746 dnl hardcode_direct, hardcode_minus_L.747 AC_DEFUN([AC_LIB_RPATH],748 [749 dnl Tell automake >= 1.10 to complain if config.rpath is missing.750 m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([config.rpath])])751 AC_REQUIRE([AC_PROG_CC]) dnl we use $CC, $GCC, $LDFLAGS752 AC_REQUIRE([AC_LIB_PROG_LD]) dnl we use $LD, $with_gnu_ld753 AC_REQUIRE([AC_CANONICAL_HOST]) dnl we use $host754 AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT]) dnl we use $ac_aux_dir755 AC_CACHE_CHECK([for shared library run path origin], acl_cv_rpath, [756 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \757 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh758 . ./conftest.sh759 rm -f ./conftest.sh760 acl_cv_rpath=done761 ])762 wl="$acl_cv_wl"763 libext="$acl_cv_libext"764 shlibext="$acl_cv_shlibext"765 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"766 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"767 hardcode_direct="$acl_cv_hardcode_direct"768 hardcode_minus_L="$acl_cv_hardcode_minus_L"769 dnl Determine whether the user wants rpath handling at all.770 AC_ARG_ENABLE(rpath,771 [ --disable-rpath do not hardcode runtime library paths],772 :, enable_rpath=yes)773 ])774 775 dnl AC_LIB_LINKFLAGS_BODY(name [, dependencies]) searches for libname and776 dnl the libraries corresponding to explicit and implicit dependencies.777 dnl Sets the LIB${NAME}, LTLIB${NAME} and INC${NAME} variables.778 AC_DEFUN([AC_LIB_LINKFLAGS_BODY],779 [780 AC_REQUIRE([AC_LIB_PREPARE_MULTILIB])781 define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-],782 [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])])783 dnl By default, look in $includedir and $libdir.784 use_additional=yes785 AC_LIB_WITH_FINAL_PREFIX([786 eval additional_includedir=\"$includedir\"787 eval additional_libdir=\"$libdir\"788 ])789 AC_LIB_ARG_WITH([lib$1-prefix],790 [ --with-lib$1-prefix[=DIR] search for lib$1 in DIR/include and DIR/lib791 --without-lib$1-prefix don't search for lib$1 in includedir and libdir],792 [793 if test "X$withval" = "Xno"; then794 use_additional=no795 else796 if test "X$withval" = "X"; then797 AC_LIB_WITH_FINAL_PREFIX([798 eval additional_includedir=\"$includedir\"799 eval additional_libdir=\"$libdir\"800 ])801 else802 additional_includedir="$withval/include"803 additional_libdir="$withval/$acl_libdirstem"804 fi805 fi806 ])807 dnl Search the library and its dependencies in $additional_libdir and808 dnl $LDFLAGS. Using breadth-first-seach.809 LIB[]NAME=810 LTLIB[]NAME=811 INC[]NAME=812 rpathdirs=813 ltrpathdirs=814 names_already_handled=815 names_next_round='$1 $2'816 while test -n "$names_next_round"; do817 names_this_round="$names_next_round"818 names_next_round=819 for name in $names_this_round; do820 already_handled=821 for n in $names_already_handled; do822 if test "$n" = "$name"; then823 already_handled=yes824 break825 fi826 done827 if test -z "$already_handled"; then828 names_already_handled="$names_already_handled $name"829 dnl See if it was already located by an earlier AC_LIB_LINKFLAGS830 dnl or AC_LIB_HAVE_LINKFLAGS call.831 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`832 eval value=\"\$HAVE_LIB$uppername\"833 if test -n "$value"; then834 if test "$value" = yes; then835 eval value=\"\$LIB$uppername\"836 test -z "$value" || LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$value"837 eval value=\"\$LTLIB$uppername\"838 test -z "$value" || LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }$value"839 else840 dnl An earlier call to AC_LIB_HAVE_LINKFLAGS has determined841 dnl that this library doesn't exist. So just drop it.842 :843 fi844 else845 dnl Search the library lib$name in $additional_libdir and $LDFLAGS846 dnl and the already constructed $LIBNAME/$LTLIBNAME.847 found_dir=848 found_la=849 found_so=850 found_a=851 if test $use_additional = yes; then852 if test -n "$shlibext" \853 && { test -f "$additional_libdir/lib$name.$shlibext" \854 || { test "$shlibext" = dll \855 && test -f "$additional_libdir/lib$name.dll.a"; }; }; then856 found_dir="$additional_libdir"857 if test -f "$additional_libdir/lib$name.$shlibext"; then858 found_so="$additional_libdir/lib$name.$shlibext"859 else860 found_so="$additional_libdir/lib$name.dll.a"861 fi862 if test -f "$additional_libdir/lib$name.la"; then863 found_la="$additional_libdir/lib$name.la"864 fi865 else866 if test -f "$additional_libdir/lib$name.$libext"; then867 found_dir="$additional_libdir"868 found_a="$additional_libdir/lib$name.$libext"869 if test -f "$additional_libdir/lib$name.la"; then870 found_la="$additional_libdir/lib$name.la"871 fi872 fi873 fi874 fi875 if test "X$found_dir" = "X"; then876 for x in $LDFLAGS $LTLIB[]NAME; do877 AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])878 case "$x" in879 -L*)880 dir=`echo "X$x" | sed -e 's/^X-L//'`881 if test -n "$shlibext" \882 && { test -f "$dir/lib$name.$shlibext" \883 || { test "$shlibext" = dll \884 && test -f "$dir/lib$name.dll.a"; }; }; then885 found_dir="$dir"886 if test -f "$dir/lib$name.$shlibext"; then887 found_so="$dir/lib$name.$shlibext"888 else889 found_so="$dir/lib$name.dll.a"890 fi891 if test -f "$dir/lib$name.la"; then892 found_la="$dir/lib$name.la"893 fi894 else895 if test -f "$dir/lib$name.$libext"; then896 found_dir="$dir"897 found_a="$dir/lib$name.$libext"898 if test -f "$dir/lib$name.la"; then899 found_la="$dir/lib$name.la"900 fi901 fi902 fi903 ;;904 esac905 if test "X$found_dir" != "X"; then906 break907 fi908 done909 fi910 if test "X$found_dir" != "X"; then911 dnl Found the library.912 LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-L$found_dir -l$name"913 if test "X$found_so" != "X"; then914 dnl Linking with a shared library. We attempt to hardcode its915 dnl directory into the executable's runpath, unless it's the916 dnl standard /usr/lib.917 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then918 dnl No hardcoding is needed.919 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"920 else921 dnl Use an explicit option to hardcode DIR into the resulting922 dnl binary.923 dnl Potentially add DIR to ltrpathdirs.924 dnl The ltrpathdirs will be appended to $LTLIBNAME at the end.925 haveit=926 for x in $ltrpathdirs; do927 if test "X$x" = "X$found_dir"; then928 haveit=yes929 break930 fi931 done932 if test -z "$haveit"; then933 ltrpathdirs="$ltrpathdirs $found_dir"934 fi935 dnl The hardcoding into $LIBNAME is system dependent.936 if test "$hardcode_direct" = yes; then937 dnl Using DIR/libNAME.so during linking hardcodes DIR into the938 dnl resulting binary.939 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"940 else941 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then942 dnl Use an explicit option to hardcode DIR into the resulting943 dnl binary.944 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"945 dnl Potentially add DIR to rpathdirs.946 dnl The rpathdirs will be appended to $LIBNAME at the end.947 haveit=948 for x in $rpathdirs; do949 if test "X$x" = "X$found_dir"; then950 haveit=yes951 break952 fi953 done954 if test -z "$haveit"; then955 rpathdirs="$rpathdirs $found_dir"956 fi957 else958 dnl Rely on "-L$found_dir".959 dnl But don't add it if it's already contained in the LDFLAGS960 dnl or the already constructed $LIBNAME961 haveit=962 for x in $LDFLAGS $LIB[]NAME; do963 AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])964 if test "X$x" = "X-L$found_dir"; then965 haveit=yes966 break967 fi968 done969 if test -z "$haveit"; then970 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$found_dir"971 fi972 if test "$hardcode_minus_L" != no; then973 dnl FIXME: Not sure whether we should use974 dnl "-L$found_dir -l$name" or "-L$found_dir $found_so"975 dnl here.976 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"977 else978 dnl We cannot use $hardcode_runpath_var and LD_RUN_PATH979 dnl here, because this doesn't fit in flags passed to the980 dnl compiler. So give up. No hardcoding. This affects only981 dnl very old systems.982 dnl FIXME: Not sure whether we should use983 dnl "-L$found_dir -l$name" or "-L$found_dir $found_so"984 dnl here.985 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-l$name"986 fi987 fi988 fi989 fi990 else991 if test "X$found_a" != "X"; then992 dnl Linking with a static library.993 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_a"994 else995 dnl We shouldn't come here, but anyway it's good to have a996 dnl fallback.997 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$found_dir -l$name"998 fi999 fi1000 dnl Assume the include files are nearby.1001 additional_includedir=1002 case "$found_dir" in1003 */$acl_libdirstem | */$acl_libdirstem/)1004 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`1005 additional_includedir="$basedir/include"1006 ;;1007 esac1008 if test "X$additional_includedir" != "X"; then1009 dnl Potentially add $additional_includedir to $INCNAME.1010 dnl But don't add it1011 dnl 1. if it's the standard /usr/include,1012 dnl 2. if it's /usr/local/include and we are using GCC on Linux,1013 dnl 3. if it's already present in $CPPFLAGS or the already1014 dnl constructed $INCNAME,1015 dnl 4. if it doesn't exist as a directory.1016 if test "X$additional_includedir" != "X/usr/include"; then1017 haveit=1018 if test "X$additional_includedir" = "X/usr/local/include"; then1019 if test -n "$GCC"; then1020 case $host_os in1021 linux* | gnu* | k*bsd*-gnu) haveit=yes;;1022 esac1023 fi1024 fi1025 if test -z "$haveit"; then1026 for x in $CPPFLAGS $INC[]NAME; do1027 AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])1028 if test "X$x" = "X-I$additional_includedir"; then1029 haveit=yes1030 break1031 fi1032 done1033 if test -z "$haveit"; then1034 if test -d "$additional_includedir"; then1035 dnl Really add $additional_includedir to $INCNAME.1036 INC[]NAME="${INC[]NAME}${INC[]NAME:+ }-I$additional_includedir"1037 fi1038 fi1039 fi1040 fi1041 fi1042 dnl Look for dependencies.1043 if test -n "$found_la"; then1044 dnl Read the .la file. It defines the variables1045 dnl dlname, library_names, old_library, dependency_libs, current,1046 dnl age, revision, installed, dlopen, dlpreopen, libdir.1047 save_libdir="$libdir"1048 case "$found_la" in1049 */* | *\\*) . "$found_la" ;;1050 *) . "./$found_la" ;;1051 esac1052 libdir="$save_libdir"1053 dnl We use only dependency_libs.1054 for dep in $dependency_libs; do1055 case "$dep" in1056 -L*)1057 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`1058 dnl Potentially add $additional_libdir to $LIBNAME and $LTLIBNAME.1059 dnl But don't add it1060 dnl 1. if it's the standard /usr/lib,1061 dnl 2. if it's /usr/local/lib and we are using GCC on Linux,1062 dnl 3. if it's already present in $LDFLAGS or the already1063 dnl constructed $LIBNAME,1064 dnl 4. if it doesn't exist as a directory.1065 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then1066 haveit=1067 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then1068 if test -n "$GCC"; then1069 case $host_os in1070 linux* | gnu* | k*bsd*-gnu) haveit=yes;;1071 esac1072 fi1073 fi1074 if test -z "$haveit"; then1075 haveit=1076 for x in $LDFLAGS $LIB[]NAME; do1077 AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])1078 if test "X$x" = "X-L$additional_libdir"; then1079 haveit=yes1080 break1081 fi1082 done1083 if test -z "$haveit"; then1084 if test -d "$additional_libdir"; then1085 dnl Really add $additional_libdir to $LIBNAME.1086 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$additional_libdir"1087 fi1088 fi1089 haveit=1090 for x in $LDFLAGS $LTLIB[]NAME; do1091 AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])1092 if test "X$x" = "X-L$additional_libdir"; then1093 haveit=yes1094 break1095 fi1096 done1097 if test -z "$haveit"; then1098 if test -d "$additional_libdir"; then1099 dnl Really add $additional_libdir to $LTLIBNAME.1100 LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-L$additional_libdir"1101 fi1102 fi1103 fi1104 fi1105 ;;1106 -R*)1107 dir=`echo "X$dep" | sed -e 's/^X-R//'`1108 if test "$enable_rpath" != no; then1109 dnl Potentially add DIR to rpathdirs.1110 dnl The rpathdirs will be appended to $LIBNAME at the end.1111 haveit=1112 for x in $rpathdirs; do1113 if test "X$x" = "X$dir"; then1114 haveit=yes1115 break1116 fi1117 done1118 if test -z "$haveit"; then1119 rpathdirs="$rpathdirs $dir"1120 fi1121 dnl Potentially add DIR to ltrpathdirs.1122 dnl The ltrpathdirs will be appended to $LTLIBNAME at the end.1123 haveit=1124 for x in $ltrpathdirs; do1125 if test "X$x" = "X$dir"; then1126 haveit=yes1127 break1128 fi1129 done1130 if test -z "$haveit"; then1131 ltrpathdirs="$ltrpathdirs $dir"1132 fi1133 fi1134 ;;1135 -l*)1136 dnl Handle this in the next round.1137 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`1138 ;;1139 *.la)1140 dnl Handle this in the next round. Throw away the .la's1141 dnl directory; it is already contained in a preceding -L1142 dnl option.1143 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`1144 ;;1145 *)1146 dnl Most likely an immediate library name.1147 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$dep"1148 LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }$dep"1149 ;;1150 esac1151 done1152 fi1153 else1154 dnl Didn't find the library; assume it is in the system directories1155 dnl known to the linker and runtime loader. (All the system1156 dnl directories known to the linker should also be known to the1157 dnl runtime loader, otherwise the system is severely misconfigured.)1158 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-l$name"1159 LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-l$name"1160 fi1161 fi1162 fi1163 done1164 done1165 if test "X$rpathdirs" != "X"; then1166 if test -n "$hardcode_libdir_separator"; then1167 dnl Weird platform: only the last -rpath option counts, the user must1168 dnl pass all path elements in one option. We can arrange that for a1169 dnl single library, but not when more than one $LIBNAMEs are used.1170 alldirs=1171 for found_dir in $rpathdirs; do1172 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"1173 done1174 dnl Note: hardcode_libdir_flag_spec uses $libdir and $wl.1175 acl_save_libdir="$libdir"1176 libdir="$alldirs"1177 eval flag=\"$hardcode_libdir_flag_spec\"1178 libdir="$acl_save_libdir"1179 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$flag"1180 else1181 dnl The -rpath options are cumulative.1182 for found_dir in $rpathdirs; do1183 acl_save_libdir="$libdir"1184 libdir="$found_dir"1185 eval flag=\"$hardcode_libdir_flag_spec\"1186 libdir="$acl_save_libdir"1187 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$flag"1188 done1189 fi1190 fi1191 if test "X$ltrpathdirs" != "X"; then1192 dnl When using libtool, the option that works for both libraries and1193 dnl executables is -R. The -R options are cumulative.1194 for found_dir in $ltrpathdirs; do1195 LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-R$found_dir"1196 done1197 fi1198 ])1199 1200 dnl AC_LIB_APPENDTOVAR(VAR, CONTENTS) appends the elements of CONTENTS to VAR,1201 dnl unless already present in VAR.1202 dnl Works only for CPPFLAGS, not for LIB* variables because that sometimes1203 dnl contains two or three consecutive elements that belong together.1204 AC_DEFUN([AC_LIB_APPENDTOVAR],1205 [1206 for element in [$2]; do1207 haveit=1208 for x in $[$1]; do1209 AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])1210 if test "X$x" = "X$element"; then1211 haveit=yes1212 break1213 fi1214 done1215 if test -z "$haveit"; then1216 [$1]="${[$1]}${[$1]:+ }$element"1217 fi1218 done1219 ])1220 1221 dnl For those cases where a variable contains several -L and -l options1222 dnl referring to unknown libraries and directories, this macro determines the1223 dnl necessary additional linker options for the runtime path.1224 dnl AC_LIB_LINKFLAGS_FROM_LIBS([LDADDVAR], [LIBSVALUE], [USE-LIBTOOL])1225 dnl sets LDADDVAR to linker options needed together with LIBSVALUE.1226 dnl If USE-LIBTOOL evaluates to non-empty, linking with libtool is assumed,1227 dnl otherwise linking without libtool is assumed.1228 AC_DEFUN([AC_LIB_LINKFLAGS_FROM_LIBS],1229 [1230 AC_REQUIRE([AC_LIB_RPATH])1231 AC_REQUIRE([AC_LIB_PREPARE_MULTILIB])1232 $1=1233 if test "$enable_rpath" != no; then1234 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then1235 dnl Use an explicit option to hardcode directories into the resulting1236 dnl binary.1237 rpathdirs=1238 next=1239 for opt in $2; do1240 if test -n "$next"; then1241 dir="$next"1242 dnl No need to hardcode the standard /usr/lib.1243 if test "X$dir" != "X/usr/$acl_libdirstem"; then1244 rpathdirs="$rpathdirs $dir"1245 fi1246 next=1247 else1248 case $opt in1249 -L) next=yes ;;1250 -L*) dir=`echo "X$opt" | sed -e 's,^X-L,,'`1251 dnl No need to hardcode the standard /usr/lib.1252 if test "X$dir" != "X/usr/$acl_libdirstem"; then1253 rpathdirs="$rpathdirs $dir"1254 fi1255 next= ;;1256 *) next= ;;1257 esac1258 fi1259 done1260 if test "X$rpathdirs" != "X"; then1261 if test -n ""$3""; then1262 dnl libtool is used for linking. Use -R options.1263 for dir in $rpathdirs; do1264 $1="${$1}${$1:+ }-R$dir"1265 done1266 else1267 dnl The linker is used for linking directly.1268 if test -n "$hardcode_libdir_separator"; then1269 dnl Weird platform: only the last -rpath option counts, the user1270 dnl must pass all path elements in one option.1271 alldirs=1272 for dir in $rpathdirs; do1273 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$dir"1274 done1275 acl_save_libdir="$libdir"1276 libdir="$alldirs"1277 eval flag=\"$hardcode_libdir_flag_spec\"1278 libdir="$acl_save_libdir"1279 $1="$flag"1280 else1281 dnl The -rpath options are cumulative.1282 for dir in $rpathdirs; do1283 acl_save_libdir="$libdir"1284 libdir="$dir"1285 eval flag=\"$hardcode_libdir_flag_spec\"1286 libdir="$acl_save_libdir"1287 $1="${$1}${$1:+ }$flag"1288 done1289 fi1290 fi1291 fi1292 fi1293 fi1294 AC_SUBST([$1])1295 ])1296 1297 # lib-prefix.m4 serial 5 (gettext-0.15)1298 dnl Copyright (C) 2001-2005 Free Software Foundation, Inc.1299 dnl This file is free software; the Free Software Foundation1300 dnl gives unlimited permission to copy and/or distribute it,1301 dnl with or without modifications, as long as this notice is preserved.1302 1303 dnl From Bruno Haible.1304 1305 dnl AC_LIB_ARG_WITH is synonymous to AC_ARG_WITH in autoconf-2.13, and1306 dnl similar to AC_ARG_WITH in autoconf 2.52...2.57 except that is doesn't1307 dnl require excessive bracketing.1308 ifdef([AC_HELP_STRING],1309 [AC_DEFUN([AC_LIB_ARG_WITH], [AC_ARG_WITH([$1],[[$2]],[$3],[$4])])],1310 [AC_DEFUN([AC_][LIB_ARG_WITH], [AC_ARG_WITH([$1],[$2],[$3],[$4])])])1311 1312 dnl AC_LIB_PREFIX adds to the CPPFLAGS and LDFLAGS the flags that are needed1313 dnl to access previously installed libraries. The basic assumption is that1314 dnl a user will want packages to use other packages he previously installed1315 dnl with the same --prefix option.1316 dnl This macro is not needed if only AC_LIB_LINKFLAGS is used to locate1317 dnl libraries, but is otherwise very convenient.1318 AC_DEFUN([AC_LIB_PREFIX],1319 [1320 AC_BEFORE([$0], [AC_LIB_LINKFLAGS])1321 AC_REQUIRE([AC_PROG_CC])1322 AC_REQUIRE([AC_CANONICAL_HOST])1323 AC_REQUIRE([AC_LIB_PREPARE_MULTILIB])1324 AC_REQUIRE([AC_LIB_PREPARE_PREFIX])1325 dnl By default, look in $includedir and $libdir.1326 use_additional=yes1327 AC_LIB_WITH_FINAL_PREFIX([1328 eval additional_includedir=\"$includedir\"1329 eval additional_libdir=\"$libdir\"1330 ])1331 AC_LIB_ARG_WITH([lib-prefix],1332 [ --with-lib-prefix[=DIR] search for libraries in DIR/include and DIR/lib1333 --without-lib-prefix don't search for libraries in includedir and libdir],1334 [1335 if test "X$withval" = "Xno"; then1336 use_additional=no1337 else1338 if test "X$withval" = "X"; then1339 AC_LIB_WITH_FINAL_PREFIX([1340 eval additional_includedir=\"$includedir\"1341 eval additional_libdir=\"$libdir\"1342 ])1343 else1344 additional_includedir="$withval/include"1345 additional_libdir="$withval/$acl_libdirstem"1346 fi1347 fi1348 ])1349 if test $use_additional = yes; then1350 dnl Potentially add $additional_includedir to $CPPFLAGS.1351 dnl But don't add it1352 dnl 1. if it's the standard /usr/include,1353 dnl 2. if it's already present in $CPPFLAGS,1354 dnl 3. if it's /usr/local/include and we are using GCC on Linux,1355 dnl 4. if it doesn't exist as a directory.1356 if test "X$additional_includedir" != "X/usr/include"; then1357 haveit=1358 for x in $CPPFLAGS; do1359 AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])1360 if test "X$x" = "X-I$additional_includedir"; then1361 haveit=yes1362 break1363 fi1364 done1365 if test -z "$haveit"; then1366 if test "X$additional_includedir" = "X/usr/local/include"; then1367 if test -n "$GCC"; then1368 case $host_os in1369 linux* | gnu* | k*bsd*-gnu) haveit=yes;;1370 esac1371 fi1372 fi1373 if test -z "$haveit"; then1374 if test -d "$additional_includedir"; then1375 dnl Really add $additional_includedir to $CPPFLAGS.1376 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }-I$additional_includedir"1377 fi1378 fi1379 fi1380 fi1381 dnl Potentially add $additional_libdir to $LDFLAGS.1382 dnl But don't add it1383 dnl 1. if it's the standard /usr/lib,1384 dnl 2. if it's already present in $LDFLAGS,1385 dnl 3. if it's /usr/local/lib and we are using GCC on Linux,1386 dnl 4. if it doesn't exist as a directory.1387 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then1388 haveit=1389 for x in $LDFLAGS; do1390 AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])1391 if test "X$x" = "X-L$additional_libdir"; then1392 haveit=yes1393 break1394 fi1395 done1396 if test -z "$haveit"; then1397 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then1398 if test -n "$GCC"; then1399 case $host_os in1400 linux*) haveit=yes;;1401 esac1402 fi1403 fi1404 if test -z "$haveit"; then1405 if test -d "$additional_libdir"; then1406 dnl Really add $additional_libdir to $LDFLAGS.1407 LDFLAGS="${LDFLAGS}${LDFLAGS:+ }-L$additional_libdir"1408 fi1409 fi1410 fi1411 fi1412 fi1413 ])1414 1415 dnl AC_LIB_PREPARE_PREFIX creates variables acl_final_prefix,1416 dnl acl_final_exec_prefix, containing the values to which $prefix and1417 dnl $exec_prefix will expand at the end of the configure script.1418 AC_DEFUN([AC_LIB_PREPARE_PREFIX],1419 [1420 dnl Unfortunately, prefix and exec_prefix get only finally determined1421 dnl at the end of configure.1422 if test "X$prefix" = "XNONE"; then1423 acl_final_prefix="$ac_default_prefix"1424 else1425 acl_final_prefix="$prefix"1426 fi1427 if test "X$exec_prefix" = "XNONE"; then1428 acl_final_exec_prefix='${prefix}'1429 else1430 acl_final_exec_prefix="$exec_prefix"1431 fi1432 acl_save_prefix="$prefix"1433 prefix="$acl_final_prefix"1434 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"1435 prefix="$acl_save_prefix"1436 ])1437 1438 dnl AC_LIB_WITH_FINAL_PREFIX([statement]) evaluates statement, with the1439 dnl variables prefix and exec_prefix bound to the values they will have1440 dnl at the end of the configure script.1441 AC_DEFUN([AC_LIB_WITH_FINAL_PREFIX],1442 [1443 acl_save_prefix="$prefix"1444 prefix="$acl_final_prefix"1445 acl_save_exec_prefix="$exec_prefix"1446 exec_prefix="$acl_final_exec_prefix"1447 $11448 exec_prefix="$acl_save_exec_prefix"1449 prefix="$acl_save_prefix"1450 ])1451 1452 dnl AC_LIB_PREPARE_MULTILIB creates a variable acl_libdirstem, containing1453 dnl the basename of the libdir, either "lib" or "lib64".1454 AC_DEFUN([AC_LIB_PREPARE_MULTILIB],1455 [1456 dnl There is no formal standard regarding lib and lib64. The current1457 dnl practice is that on a system supporting 32-bit and 64-bit instruction1458 dnl sets or ABIs, 64-bit libraries go under $prefix/lib64 and 32-bit1459 dnl libraries go under $prefix/lib. We determine the compiler's default1460 dnl mode by looking at the compiler's library search path. If at least1461 dnl of its elements ends in /lib64 or points to a directory whose absolute1462 dnl pathname ends in /lib64, we assume a 64-bit ABI. Otherwise we use the1463 dnl default, namely "lib".1464 acl_libdirstem=lib1465 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`1466 if test -n "$searchpath"; then1467 acl_save_IFS="${IFS= }"; IFS=":"1468 for searchdir in $searchpath; do1469 if test -d "$searchdir"; then1470 case "$searchdir" in1471 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;1472 *) searchdir=`cd "$searchdir" && pwd`1473 case "$searchdir" in1474 */lib64 ) acl_libdirstem=lib64 ;;1475 esac ;;1476 esac1477 fi1478 done1479 IFS="$acl_save_IFS"1480 fi1481 ])1482 18 1483 19 # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*- … … 8062 6598 ]) 8063 6599 8064 # nls.m4 serial 3 (gettext-0.15)8065 dnl Copyright (C) 1995-2003, 2005-2006 Free Software Foundation, Inc.8066 dnl This file is free software; the Free Software Foundation8067 dnl gives unlimited permission to copy and/or distribute it,8068 dnl with or without modifications, as long as this notice is preserved.8069 dnl8070 dnl This file can can be used in projects which are not available under8071 dnl the GNU General Public License or the GNU Library General Public8072 dnl License but which still want to provide support for the GNU gettext8073 dnl functionality.8074 dnl Please note that the actual code of the GNU gettext library is covered8075 dnl by the GNU Library General Public License, and the rest of the GNU8076 dnl gettext package package is covered by the GNU General Public License.8077 dnl They are *not* in the public domain.8078 8079 dnl Authors:8080 dnl Ulrich Drepper <drepper@cygnus.com>, 1995-2000.8081 dnl Bruno Haible <haible@clisp.cons.org>, 2000-2003.8082 8083 AC_PREREQ(2.50)8084 8085 AC_DEFUN([AM_NLS],8086 [8087 AC_MSG_CHECKING([whether NLS is requested])8088 dnl Default is enabled NLS8089 AC_ARG_ENABLE(nls,8090 [ --disable-nls do not use Native Language Support],8091 USE_NLS=$enableval, USE_NLS=yes)8092 AC_MSG_RESULT($USE_NLS)8093 AC_SUBST(USE_NLS)8094 ])8095 8096 6600 # pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*- 8097 6601 # … … 8251 6755 fi[]dnl 8252 6756 ])# PKG_CHECK_MODULES 8253 8254 # po.m4 serial 13 (gettext-0.15)8255 dnl Copyright (C) 1995-2006 Free Software Foundation, Inc.8256 dnl This file is free software; the Free Software Foundation8257 dnl gives unlimited permission to copy and/or distribute it,8258 dnl with or without modifications, as long as this notice is preserved.8259 dnl8260 dnl This file can can be used in projects which are not available under8261 dnl the GNU General Public License or the GNU Library General Public8262 dnl License but which still want to provide support for the GNU gettext8263 dnl functionality.8264 dnl Please note that the actual code of the GNU gettext library is covered8265 dnl by the GNU Library General Public License, and the rest of the GNU8266 dnl gettext package package is covered by the GNU General Public License.8267 dnl They are *not* in the public domain.8268 8269 dnl Authors:8270 dnl Ulrich Drepper <drepper@cygnus.com>, 1995-2000.8271 dnl Bruno Haible <haible@clisp.cons.org>, 2000-2003.8272 8273 AC_PREREQ(2.50)8274 8275 dnl Checks for all prerequisites of the po subdirectory.8276 AC_DEFUN([AM_PO_SUBDIRS],8277 [8278 AC_REQUIRE([AC_PROG_MAKE_SET])dnl8279 AC_REQUIRE([AC_PROG_INSTALL])dnl8280 AC_REQUIRE([AM_PROG_MKDIR_P])dnl defined by automake8281 AC_REQUIRE([AM_NLS])dnl8282 8283 dnl Perform the following tests also if --disable-nls has been given,8284 dnl because they are needed for "make dist" to work.8285 8286 dnl Search for GNU msgfmt in the PATH.8287 dnl The first test excludes Solaris msgfmt and early GNU msgfmt versions.8288 dnl The second test excludes FreeBSD msgfmt.8289 AM_PATH_PROG_WITH_TEST(MSGFMT, msgfmt,8290 [$ac_dir/$ac_word --statistics /dev/null >&]AS_MESSAGE_LOG_FD[ 2>&1 &&8291 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi)],8292 :)8293 AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)8294 8295 dnl Test whether it is GNU msgfmt >= 0.15.8296 changequote(,)dnl8297 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in8298 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;8299 *) MSGFMT_015=$MSGFMT ;;8300 esac8301 changequote([,])dnl8302 AC_SUBST([MSGFMT_015])8303 changequote(,)dnl8304 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in8305 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;8306 *) GMSGFMT_015=$GMSGFMT ;;8307 esac8308 changequote([,])dnl8309 AC_SUBST([GMSGFMT_015])8310 8311 dnl Search for GNU xgettext 0.12 or newer in the PATH.8312 dnl The first test excludes Solaris xgettext and early GNU xgettext versions.8313 dnl The second test excludes FreeBSD xgettext.8314 AM_PATH_PROG_WITH_TEST(XGETTEXT, xgettext,8315 [$ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&]AS_MESSAGE_LOG_FD[ 2>&1 &&8316 (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)],8317 :)8318 dnl Remove leftover from FreeBSD xgettext call.8319 rm -f messages.po8320 8321 dnl Test whether it is GNU xgettext >= 0.15.8322 changequote(,)dnl8323 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in8324 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;8325 *) XGETTEXT_015=$XGETTEXT ;;8326 esac8327 changequote([,])dnl8328 AC_SUBST([XGETTEXT_015])8329 8330 dnl Search for GNU msgmerge 0.11 or newer in the PATH.8331 AM_PATH_PROG_WITH_TEST(MSGMERGE, msgmerge,8332 [$ac_dir/$ac_word --update -q /dev/null /dev/null >&]AS_MESSAGE_LOG_FD[ 2>&1], :)8333 8334 dnl Installation directories.8335 dnl Autoconf >= 2.60 defines localedir. For older versions of autoconf, we8336 dnl have to define it here, so that it can be used in po/Makefile.8337 test -n "$localedir" || localedir='${datadir}/locale'8338 AC_SUBST([localedir])8339 8340 AC_CONFIG_COMMANDS([po-directories], [[8341 for ac_file in $CONFIG_FILES; do8342 # Support "outfile[:infile[:infile...]]"8343 case "$ac_file" in8344 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;8345 esac8346 # PO directories have a Makefile.in generated from Makefile.in.in.8347 case "$ac_file" in */Makefile.in)8348 # Adjust a relative srcdir.8349 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`8350 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"8351 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`8352 # In autoconf-2.13 it is called $ac_given_srcdir.8353 # In autoconf-2.50 it is called $srcdir.8354 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"8355 case "$ac_given_srcdir" in8356 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;8357 /*) top_srcdir="$ac_given_srcdir" ;;8358 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;8359 esac8360 # Treat a directory as a PO directory if and only if it has a8361 # POTFILES.in file. This allows packages to have multiple PO8362 # directories under different names or in different locations.8363 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then8364 rm -f "$ac_dir/POTFILES"8365 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"8366 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"8367 POMAKEFILEDEPS="POTFILES.in"8368 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend8369 # on $ac_dir but don't depend on user-specified configuration8370 # parameters.8371 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then8372 # The LINGUAS file contains the set of available languages.8373 if test -n "$OBSOLETE_ALL_LINGUAS"; then8374 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"8375 fi8376 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`8377 # Hide the ALL_LINGUAS assigment from automake < 1.5.8378 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'8379 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"8380 else8381 # The set of available languages was given in configure.in.8382 # Hide the ALL_LINGUAS assigment from automake < 1.5.8383 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'8384 fi8385 # Compute POFILES8386 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)8387 # Compute UPDATEPOFILES8388 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)8389 # Compute DUMMYPOFILES8390 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)8391 # Compute GMOFILES8392 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)8393 case "$ac_given_srcdir" in8394 .) srcdirpre= ;;8395 *) srcdirpre='$(srcdir)/' ;;8396 esac8397 POFILES=8398 UPDATEPOFILES=8399 DUMMYPOFILES=8400 GMOFILES=8401 for lang in $ALL_LINGUAS; do8402 POFILES="$POFILES $srcdirpre$lang.po"8403 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"8404 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"8405 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"8406 done8407 # CATALOGS depends on both $ac_dir and the user's LINGUAS8408 # environment variable.8409 INST_LINGUAS=8410 if test -n "$ALL_LINGUAS"; then8411 for presentlang in $ALL_LINGUAS; do8412 useit=no8413 if test "%UNSET%" != "$LINGUAS"; then8414 desiredlanguages="$LINGUAS"8415 else8416 desiredlanguages="$ALL_LINGUAS"8417 fi8418 for desiredlang in $desiredlanguages; do8419 # Use the presentlang catalog if desiredlang is8420 # a. equal to presentlang, or8421 # b. a variant of presentlang (because in this case,8422 # presentlang can be used as a fallback for messages8423 # which are not translated in the desiredlang catalog).8424 case "$desiredlang" in8425 "$presentlang"*) useit=yes;;8426 esac8427 done8428 if test $useit = yes; then8429 INST_LINGUAS="$INST_LINGUAS $presentlang"8430 fi8431 done8432 fi8433 CATALOGS=8434 if test -n "$INST_LINGUAS"; then8435 for lang in $INST_LINGUAS; do8436 CATALOGS="$CATALOGS $lang.gmo"8437 done8438 fi8439 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"8440 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"8441 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do8442 if test -f "$f"; then8443 case "$f" in8444 *.orig | *.bak | *~) ;;8445 *) cat "$f" >> "$ac_dir/Makefile" ;;8446 esac8447 fi8448 done8449 fi8450 ;;8451 esac8452 done]],8453 [# Capture the value of obsolete ALL_LINGUAS because we need it to compute8454 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it8455 # from automake < 1.5.8456 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'8457 # Capture the value of LINGUAS because we need it to compute CATALOGS.8458 LINGUAS="${LINGUAS-%UNSET%}"8459 ])8460 ])8461 8462 dnl Postprocesses a Makefile in a directory containing PO files.8463 AC_DEFUN([AM_POSTPROCESS_PO_MAKEFILE],8464 [8465 # When this code is run, in config.status, two variables have already been8466 # set:8467 # - OBSOLETE_ALL_LINGUAS is the value of LINGUAS set in configure.in,8468 # - LINGUAS is the value of the environment variable LINGUAS at configure8469 # time.8470 8471 changequote(,)dnl8472 # Adjust a relative srcdir.8473 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`8474 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"8475 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`8476 # In autoconf-2.13 it is called $ac_given_srcdir.8477 # In autoconf-2.50 it is called $srcdir.8478 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"8479 case "$ac_given_srcdir" in8480 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;8481 /*) top_srcdir="$ac_given_srcdir" ;;8482 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;8483 esac8484 8485 # Find a way to echo strings without interpreting backslash.8486 if test "X`(echo '\t') 2>/dev/null`" = 'X\t'; then8487 gt_echo='echo'8488 else8489 if test "X`(printf '%s\n' '\t') 2>/dev/null`" = 'X\t'; then8490 gt_echo='printf %s\n'8491 else8492 echo_func () {8493 cat <<EOT8494 $*8495 EOT8496 }8497 gt_echo='echo_func'8498 fi8499 fi8500 8501 # A sed script that extracts the value of VARIABLE from a Makefile.8502 sed_x_variable='8503 # Test if the hold space is empty.8504 x8505 s/P/P/8506 x8507 ta8508 # Yes it was empty. Look if we have the expected variable definition.8509 /^[ ]*VARIABLE[ ]*=/{8510 # Seen the first line of the variable definition.8511 s/^[ ]*VARIABLE[ ]*=//8512 ba8513 }8514 bd8515 :a8516 # Here we are processing a line from the variable definition.8517 # Remove comment, more precisely replace it with a space.8518 s/#.*$/ /8519 # See if the line ends in a backslash.8520 tb8521 :b8522 s/\\$//8523 # Print the line, without the trailing backslash.8524 p8525 tc8526 # There was no trailing backslash. The end of the variable definition is8527 # reached. Clear the hold space.8528 s/^.*$//8529 x8530 bd8531 :c8532 # A trailing backslash means that the variable definition continues in the8533 # next line. Put a nonempty string into the hold space to indicate this.8534 s/^.*$/P/8535 x8536 :d8537 '8538 changequote([,])dnl8539 8540 # Set POTFILES to the value of the Makefile variable POTFILES.8541 sed_x_POTFILES=`$gt_echo "$sed_x_variable" | sed -e '/^ *#/d' -e 's/VARIABLE/POTFILES/g'`8542 POTFILES=`sed -n -e "$sed_x_POTFILES" < "$ac_file"`8543 # Compute POTFILES_DEPS as8544 # $(foreach file, $(POTFILES), $(top_srcdir)/$(file))8545 POTFILES_DEPS=8546 for file in $POTFILES; do8547 POTFILES_DEPS="$POTFILES_DEPS "'$(top_srcdir)/'"$file"8548 done8549 POMAKEFILEDEPS=""8550 8551 if test -n "$OBSOLETE_ALL_LINGUAS"; then8552 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"8553 fi8554 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then8555 # The LINGUAS file contains the set of available languages.8556 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`8557 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"8558 else8559 # Set ALL_LINGUAS to the value of the Makefile variable LINGUAS.8560 sed_x_LINGUAS=`$gt_echo "$sed_x_variable" | sed -e '/^ *#/d' -e 's/VARIABLE/LINGUAS/g'`8561 ALL_LINGUAS_=`sed -n -e "$sed_x_LINGUAS" < "$ac_file"`8562 fi8563 # Hide the ALL_LINGUAS assigment from automake < 1.5.8564 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'8565 # Compute POFILES8566 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)8567 # Compute UPDATEPOFILES8568 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)8569 # Compute DUMMYPOFILES8570 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)8571 # Compute GMOFILES8572 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)8573 # Compute PROPERTIESFILES8574 # as $(foreach lang, $(ALL_LINGUAS), $(top_srcdir)/$(DOMAIN)_$(lang).properties)8575 # Compute CLASSFILES8576 # as $(foreach lang, $(ALL_LINGUAS), $(top_srcdir)/$(DOMAIN)_$(lang).class)8577 # Compute QMFILES8578 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).qm)8579 # Compute MSGFILES8580 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(frob $(lang)).msg)8581 # Compute RESOURCESDLLFILES8582 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(frob $(lang))/$(DOMAIN).resources.dll)8583 case "$ac_given_srcdir" in8584 .) srcdirpre= ;;8585 *) srcdirpre='$(srcdir)/' ;;8586 esac8587 POFILES=8588 UPDATEPOFILES=8589 DUMMYPOFILES=8590 GMOFILES=8591 PROPERTIESFILES=8592 CLASSFILES=8593 QMFILES=8594 MSGFILES=8595 RESOURCESDLLFILES=8596 for lang in $ALL_LINGUAS; do8597 POFILES="$POFILES $srcdirpre$lang.po"8598 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"8599 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"8600 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"8601 PROPERTIESFILES="$PROPERTIESFILES \$(top_srcdir)/\$(DOMAIN)_$lang.properties"8602 CLASSFILES="$CLASSFILES \$(top_srcdir)/\$(DOMAIN)_$lang.class"8603 QMFILES="$QMFILES $srcdirpre$lang.qm"8604 frobbedlang=`echo $lang | sed -e 's/\..*$//' -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`8605 MSGFILES="$MSGFILES $srcdirpre$frobbedlang.msg"8606 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/'`8607 RESOURCESDLLFILES="$RESOURCESDLLFILES $srcdirpre$frobbedlang/\$(DOMAIN).resources.dll"8608 done8609 # CATALOGS depends on both $ac_dir and the user's LINGUAS8610 # environment variable.8611 INST_LINGUAS=8612 if test -n "$ALL_LINGUAS"; then8613 for presentlang in $ALL_LINGUAS; do8614 useit=no8615 if test "%UNSET%" != "$LINGUAS"; then8616 desiredlanguages="$LINGUAS"8617 else8618 desiredlanguages="$ALL_LINGUAS"8619 fi8620 for desiredlang in $desiredlanguages; do8621 # Use the presentlang catalog if desiredlang is8622 # a. equal to presentlang, or8623 # b. a variant of presentlang (because in this case,8624 # presentlang can be used as a fallback for messages8625 # which are not translated in the desiredlang catalog).8626 case "$desiredlang" in8627 "$presentlang"*) useit=yes;;8628 esac8629 done8630 if test $useit = yes; then8631 INST_LINGUAS="$INST_LINGUAS $presentlang"8632 fi8633 done8634 fi8635 CATALOGS=8636 JAVACATALOGS=8637 QTCATALOGS=8638 TCLCATALOGS=8639 CSHARPCATALOGS=8640 if test -n "$INST_LINGUAS"; then8641 for lang in $INST_LINGUAS; do8642 CATALOGS="$CATALOGS $lang.gmo"8643 JAVACATALOGS="$JAVACATALOGS \$(DOMAIN)_$lang.properties"8644 QTCATALOGS="$QTCATALOGS $lang.qm"8645 frobbedlang=`echo $lang | sed -e 's/\..*$//' -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`8646 TCLCATALOGS="$TCLCATALOGS $frobbedlang.msg"8647 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/'`8648 CSHARPCATALOGS="$CSHARPCATALOGS $frobbedlang/\$(DOMAIN).resources.dll"8649 done8650 fi8651 8652 sed -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"8653 if grep -l '@TCLCATALOGS@' "$ac_file" > /dev/null; then8654 # Add dependencies that cannot be formulated as a simple suffix rule.8655 for lang in $ALL_LINGUAS; do8656 frobbedlang=`echo $lang | sed -e 's/\..*$//' -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`8657 cat >> "$ac_file.tmp" <<EOF8658 $frobbedlang.msg: $lang.po8659 @echo "\$(MSGFMT) -c --tcl -d \$(srcdir) -l $lang $srcdirpre$lang.po"; \8660 \$(MSGFMT) -c --tcl -d "\$(srcdir)" -l $lang $srcdirpre$lang.po || { rm -f "\$(srcdir)/$frobbedlang.msg"; exit 1; }8661 EOF8662 done8663 fi8664 if grep -l '@CSHARPCATALOGS@' "$ac_file" > /dev/null; then8665 # Add dependencies that cannot be formulated as a simple suffix rule.8666 for lang in $ALL_LINGUAS; do8667 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/'`8668 cat >> "$ac_file.tmp" <<EOF8669 $frobbedlang/\$(DOMAIN).resources.dll: $lang.po8670 @echo "\$(MSGFMT) -c --csharp -d \$(srcdir) -l $lang $srcdirpre$lang.po -r \$(DOMAIN)"; \8671 \$(MSGFMT) -c --csharp -d "\$(srcdir)" -l $lang $srcdirpre$lang.po -r "\$(DOMAIN)" || { rm -f "\$(srcdir)/$frobbedlang.msg"; exit 1; }8672 EOF8673 done8674 fi8675 if test -n "$POMAKEFILEDEPS"; then8676 cat >> "$ac_file.tmp" <<EOF8677 Makefile: $POMAKEFILEDEPS8678 EOF8679 fi8680 mv "$ac_file.tmp" "$ac_file"8681 ])8682 8683 # progtest.m4 serial 4 (gettext-0.14.2)8684 dnl Copyright (C) 1996-2003, 2005 Free Software Foundation, Inc.8685 dnl This file is free software; the Free Software Foundation8686 dnl gives unlimited permission to copy and/or distribute it,8687 dnl with or without modifications, as long as this notice is preserved.8688 dnl8689 dnl This file can can be used in projects which are not available under8690 dnl the GNU General Public License or the GNU Library General Public8691 dnl License but which still want to provide support for the GNU gettext8692 dnl functionality.8693 dnl Please note that the actual code of the GNU gettext library is covered8694 dnl by the GNU Library General Public License, and the rest of the GNU8695 dnl gettext package package is covered by the GNU General Public License.8696 dnl They are *not* in the public domain.8697 8698 dnl Authors:8699 dnl Ulrich Drepper <drepper@cygnus.com>, 1996.8700 8701 AC_PREREQ(2.50)8702 8703 # Search path for a program which passes the given test.8704 8705 dnl AM_PATH_PROG_WITH_TEST(VARIABLE, PROG-TO-CHECK-FOR,8706 dnl TEST-PERFORMED-ON-FOUND_PROGRAM [, VALUE-IF-NOT-FOUND [, PATH]])8707 AC_DEFUN([AM_PATH_PROG_WITH_TEST],8708 [8709 # Prepare PATH_SEPARATOR.8710 # The user is always right.8711 if test "${PATH_SEPARATOR+set}" != set; then8712 echo "#! /bin/sh" >conf$$.sh8713 echo "exit 0" >>conf$$.sh8714 chmod +x conf$$.sh8715 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then8716 PATH_SEPARATOR=';'8717 else8718 PATH_SEPARATOR=:8719 fi8720 rm -f conf$$.sh8721 fi8722 8723 # Find out how to test for executable files. Don't use a zero-byte file,8724 # as systems may use methods other than mode bits to determine executability.8725 cat >conf$$.file <<_ASEOF8726 #! /bin/sh8727 exit 08728 _ASEOF8729 chmod +x conf$$.file8730 if test -x conf$$.file >/dev/null 2>&1; then8731 ac_executable_p="test -x"8732 else8733 ac_executable_p="test -f"8734 fi8735 rm -f conf$$.file8736 8737 # Extract the first word of "$2", so it can be a program name with args.8738 set dummy $2; ac_word=[$]28739 AC_MSG_CHECKING([for $ac_word])8740 AC_CACHE_VAL(ac_cv_path_$1,8741 [case "[$]$1" in8742 [[\\/]]* | ?:[[\\/]]*)8743 ac_cv_path_$1="[$]$1" # Let the user override the test with a path.8744 ;;8745 *)8746 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR8747 for ac_dir in ifelse([$5], , $PATH, [$5]); do8748 IFS="$ac_save_IFS"8749 test -z "$ac_dir" && ac_dir=.8750 for ac_exec_ext in '' $ac_executable_extensions; do8751 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then8752 echo "$as_me: trying $ac_dir/$ac_word..." >&AS_MESSAGE_LOG_FD8753 if [$3]; then8754 ac_cv_path_$1="$ac_dir/$ac_word$ac_exec_ext"8755 break 28756 fi8757 fi8758 done8759 done8760 IFS="$ac_save_IFS"8761 dnl If no 4th arg is given, leave the cache variable unset,8762 dnl so AC_PATH_PROGS will keep looking.8763 ifelse([$4], , , [ test -z "[$]ac_cv_path_$1" && ac_cv_path_$1="$4"8764 ])dnl8765 ;;8766 esac])dnl8767 $1="$ac_cv_path_$1"8768 if test ifelse([$4], , [-n "[$]$1"], ["[$]$1" != "$4"]); then8769 AC_MSG_RESULT([$]$1)8770 else8771 AC_MSG_RESULT(no)8772 fi8773 AC_SUBST($1)dnl8774 ])8775 6757 8776 6758 # Copyright (C) 2002, 2003, 2005, 2006 Free Software Foundation, Inc. … … 9618 7600 ]) # _AM_PROG_TAR 9619 7601 7602 m4_include([m4/gettext.m4]) 7603 m4_include([m4/iconv.m4]) 7604 m4_include([m4/lib-ld.m4]) 7605 m4_include([m4/lib-link.m4]) 7606 m4_include([m4/lib-prefix.m4]) 7607 m4_include([m4/nls.m4]) 7608 m4_include([m4/po.m4]) 7609 m4_include([m4/progtest.m4]) 9620 7610 m4_include([acinclude.m4]) -
trunk/fm_server/configure
r217 r220 770 770 #endif" 771 771 772 gt_needs=773 772 ac_subst_vars='SHELL 774 773 PATH_SEPARATOR … … 1938 1937 fi 1939 1938 1940 gt_needs="$gt_needs "1941 1939 # Check that the precious variables saved in the cache have kept the same 1942 1940 # value. … … 4405 4403 *-*-irix6*) 4406 4404 # Find out which ABI we are using. 4407 echo '#line 440 7"configure"' > conftest.$ac_ext4405 echo '#line 4405 "configure"' > conftest.$ac_ext 4408 4406 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4409 4407 (eval $ac_compile) 2>&5 … … 7437 7435 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7438 7436 -e 's:$: $lt_compiler_flag:'` 7439 (eval echo "\"\$as_me:743 9: $lt_compile\"" >&5)7437 (eval echo "\"\$as_me:7437: $lt_compile\"" >&5) 7440 7438 (eval "$lt_compile" 2>conftest.err) 7441 7439 ac_status=$? 7442 7440 cat conftest.err >&5 7443 echo "$as_me:744 3: \$? = $ac_status" >&57441 echo "$as_me:7441: \$? = $ac_status" >&5 7444 7442 if (exit $ac_status) && test -s "$ac_outfile"; then 7445 7443 # The compiler can only warn and ignore the option if not recognized … … 7727 7725 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7728 7726 -e 's:$: $lt_compiler_flag:'` 7729 (eval echo "\"\$as_me:772 9: $lt_compile\"" >&5)7727 (eval echo "\"\$as_me:7727: $lt_compile\"" >&5) 7730 7728 (eval "$lt_compile" 2>conftest.err) 7731 7729 ac_status=$? 7732 7730 cat conftest.err >&5 7733 echo "$as_me:773 3: \$? = $ac_status" >&57731 echo "$as_me:7731: \$? = $ac_status" >&5 7734 7732 if (exit $ac_status) && test -s "$ac_outfile"; then 7735 7733 # The compiler can only warn and ignore the option if not recognized … … 7831 7829 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7832 7830 -e 's:$: $lt_compiler_flag:'` 7833 (eval echo "\"\$as_me:783 3: $lt_compile\"" >&5)7831 (eval echo "\"\$as_me:7831: $lt_compile\"" >&5) 7834 7832 (eval "$lt_compile" 2>out/conftest.err) 7835 7833 ac_status=$? 7836 7834 cat out/conftest.err >&5 7837 echo "$as_me:783 7: \$? = $ac_status" >&57835 echo "$as_me:7835: \$? = $ac_status" >&5 7838 7836 if (exit $ac_status) && test -s out/conftest2.$ac_objext 7839 7837 then … … 10193 10191 lt_status=$lt_dlunknown 10194 10192 cat > conftest.$ac_ext <<EOF 10195 #line 1019 5"configure"10193 #line 10193 "configure" 10196 10194 #include "confdefs.h" 10197 10195 … … 10293 10291 lt_status=$lt_dlunknown 10294 10292 cat > conftest.$ac_ext <<EOF 10295 #line 1029 5"configure"10293 #line 10293 "configure" 10296 10294 #include "confdefs.h" 10297 10295 … … 12713 12711 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12714 12712 -e 's:$: $lt_compiler_flag:'` 12715 (eval echo "\"\$as_me:1271 5: $lt_compile\"" >&5)12713 (eval echo "\"\$as_me:12713: $lt_compile\"" >&5) 12716 12714 (eval "$lt_compile" 2>conftest.err) 12717 12715 ac_status=$? 12718 12716 cat conftest.err >&5 12719 echo "$as_me:1271 9: \$? = $ac_status" >&512717 echo "$as_me:12717: \$? = $ac_status" >&5 12720 12718 if (exit $ac_status) && test -s "$ac_outfile"; then 12721 12719 # The compiler can only warn and ignore the option if not recognized … … 12817 12815 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12818 12816 -e 's:$: $lt_compiler_flag:'` 12819 (eval echo "\"\$as_me:1281 9: $lt_compile\"" >&5)12817 (eval echo "\"\$as_me:12817: $lt_compile\"" >&5) 12820 12818 (eval "$lt_compile" 2>out/conftest.err) 12821 12819 ac_status=$? 12822 12820 cat out/conftest.err >&5 12823 echo "$as_me:1282 3: \$? = $ac_status" >&512821 echo "$as_me:12821: \$? = $ac_status" >&5 12824 12822 if (exit $ac_status) && test -s out/conftest2.$ac_objext 12825 12823 then … … 14394 14392 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14395 14393 -e 's:$: $lt_compiler_flag:'` 14396 (eval echo "\"\$as_me:1439 6: $lt_compile\"" >&5)14394 (eval echo "\"\$as_me:14394: $lt_compile\"" >&5) 14397 14395 (eval "$lt_compile" 2>conftest.err) 14398 14396 ac_status=$? 14399 14397 cat conftest.err >&5 14400 echo "$as_me:14 400: \$? = $ac_status" >&514398 echo "$as_me:14398: \$? = $ac_status" >&5 14401 14399 if (exit $ac_status) && test -s "$ac_outfile"; then 14402 14400 # The compiler can only warn and ignore the option if not recognized … … 14498 14496 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14499 14497 -e 's:$: $lt_compiler_flag:'` 14500 (eval echo "\"\$as_me:14 500: $lt_compile\"" >&5)14498 (eval echo "\"\$as_me:14498: $lt_compile\"" >&5) 14501 14499 (eval "$lt_compile" 2>out/conftest.err) 14502 14500 ac_status=$? 14503 14501 cat out/conftest.err >&5 14504 echo "$as_me:1450 4: \$? = $ac_status" >&514502 echo "$as_me:14502: \$? = $ac_status" >&5 14505 14503 if (exit $ac_status) && test -s out/conftest2.$ac_objext 14506 14504 then … … 16698 16696 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16699 16697 -e 's:$: $lt_compiler_flag:'` 16700 (eval echo "\"\$as_me:16 700: $lt_compile\"" >&5)16698 (eval echo "\"\$as_me:16698: $lt_compile\"" >&5) 16701 16699 (eval "$lt_compile" 2>conftest.err) 16702 16700 ac_status=$? 16703 16701 cat conftest.err >&5 16704 echo "$as_me:1670 4: \$? = $ac_status" >&516702 echo "$as_me:16702: \$? = $ac_status" >&5 16705 16703 if (exit $ac_status) && test -s "$ac_outfile"; then 16706 16704 # The compiler can only warn and ignore the option if not recognized … … 16988 16986 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16989 16987 -e 's:$: $lt_compiler_flag:'` 16990 (eval echo "\"\$as_me:169 90: $lt_compile\"" >&5)16988 (eval echo "\"\$as_me:16988: $lt_compile\"" >&5) 16991 16989 (eval "$lt_compile" 2>conftest.err) 16992 16990 ac_status=$? 16993 16991 cat conftest.err >&5 16994 echo "$as_me:1699 4: \$? = $ac_status" >&516992 echo "$as_me:16992: \$? = $ac_status" >&5 16995 16993 if (exit $ac_status) && test -s "$ac_outfile"; then 16996 16994 # The compiler can only warn and ignore the option if not recognized … … 17092 17090 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 17093 17091 -e 's:$: $lt_compiler_flag:'` 17094 (eval echo "\"\$as_me:1709 4: $lt_compile\"" >&5)17092 (eval echo "\"\$as_me:17092: $lt_compile\"" >&5) 17095 17093 (eval "$lt_compile" 2>out/conftest.err) 17096 17094 ac_status=$? 17097 17095 cat out/conftest.err >&5 17098 echo "$as_me:1709 8: \$? = $ac_status" >&517096 echo "$as_me:17096: \$? = $ac_status" >&5 17099 17097 if (exit $ac_status) && test -s out/conftest2.$ac_objext 17100 17098 then … … 20318 20316 found_a= 20319 20317 if test $use_additional = yes; then 20320 if test -n "$shlibext" \ 20321 && { test -f "$additional_libdir/lib$name.$shlibext" \ 20322 || { test "$shlibext" = dll \ 20323 && test -f "$additional_libdir/lib$name.dll.a"; }; }; then 20318 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then 20324 20319 found_dir="$additional_libdir" 20325 if test -f "$additional_libdir/lib$name.$shlibext"; then 20326 found_so="$additional_libdir/lib$name.$shlibext" 20327 else 20328 found_so="$additional_libdir/lib$name.dll.a" 20329 fi 20320 found_so="$additional_libdir/lib$name.$shlibext" 20330 20321 if test -f "$additional_libdir/lib$name.la"; then 20331 20322 found_la="$additional_libdir/lib$name.la" … … 20355 20346 -L*) 20356 20347 dir=`echo "X$x" | sed -e 's/^X-L//'` 20357 if test -n "$shlibext" \ 20358 && { test -f "$dir/lib$name.$shlibext" \ 20359 || { test "$shlibext" = dll \ 20360 && test -f "$dir/lib$name.dll.a"; }; }; then 20348 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then 20361 20349 found_dir="$dir" 20362 if test -f "$dir/lib$name.$shlibext"; then 20363 found_so="$dir/lib$name.$shlibext" 20364 else 20365 found_so="$dir/lib$name.dll.a" 20366 fi 20350 found_so="$dir/lib$name.$shlibext" 20367 20351 if test -f "$dir/lib$name.la"; then 20368 20352 found_la="$dir/lib$name.la" … … 20647 20631 20648 20632 20649 20650 20651 20652 20653 20654 20655 20656 20633 { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5 20657 20634 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; } … … 20790 20767 POSUB= 20791 20768 20792 case " $gt_needs " in20793 *" need-formatstring-macros "*) gt_api_version=3 ;;20794 *" need-ngettext "*) gt_api_version=2 ;;20795 *) gt_api_version=1 ;;20796 esac20797 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"20798 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"20799 20800 20769 if test "$USE_NLS" = "yes"; then 20801 20770 gt_use_preinstalled_gnugettext=no 20802 20771 20803 20772 20804 if test $gt_api_version -ge 3; then 20805 gt_revision_test_code=' 20806 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION 20807 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1) 20808 #endif 20809 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1]; 20810 ' 20811 else 20812 gt_revision_test_code= 20813 fi 20814 if test $gt_api_version -ge 2; then 20815 gt_expression_test_code=' + * ngettext ("", "", 0)' 20816 else 20817 gt_expression_test_code= 20818 fi 20773 20774 20775 20819 20776 20820 20777 { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5 20821 20778 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; } 20822 if { as_var=$gt_func_gnugettext_libc; eval "test \"\${$as_var+set}\" = set"; }; then20779 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then 20823 20780 echo $ECHO_N "(cached) $ECHO_C" >&6 20824 20781 else … … 20830 20787 /* end confdefs.h. */ 20831 20788 #include <libintl.h> 20832 $gt_revision_test_code20833 20789 extern int _nl_msg_cat_cntr; 20834 20790 extern int *_nl_domain_bindings; … … 20837 20793 { 20838 20794 bindtextdomain ("", ""); 20839 return * gettext ("") $gt_expression_test_code+ _nl_msg_cat_cntr + *_nl_domain_bindings20795 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings 20840 20796 ; 20841 20797 return 0; … … 20860 20816 } && test -s conftest$ac_exeext && 20861 20817 $as_test_x conftest$ac_exeext; then 20862 eval "$gt_func_gnugettext_libc=yes"20818 gt_cv_func_gnugettext1_libc=yes 20863 20819 else 20864 20820 echo "$as_me: failed program was:" >&5 20865 20821 sed 's/^/| /' conftest.$ac_ext >&5 20866 20822 20867 eval "$gt_func_gnugettext_libc=no"20823 gt_cv_func_gnugettext1_libc=no 20868 20824 fi 20869 20825 … … 20871 20827 conftest$ac_exeext conftest.$ac_ext 20872 20828 fi 20873 ac_res=`eval echo '${'$gt_func_gnugettext_libc'}'` 20874 { echo "$as_me:$LINENO: result: $ac_res" >&5 20875 echo "${ECHO_T}$ac_res" >&6; } 20876 20877 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then 20829 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5 20830 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; } 20831 20832 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then 20878 20833 20879 20834 … … 21118 21073 found_a= 21119 21074 if test $use_additional = yes; then 21120 if test -n "$shlibext" \ 21121 && { test -f "$additional_libdir/lib$name.$shlibext" \ 21122 || { test "$shlibext" = dll \ 21123 && test -f "$additional_libdir/lib$name.dll.a"; }; }; then 21075 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then 21124 21076 found_dir="$additional_libdir" 21125 if test -f "$additional_libdir/lib$name.$shlibext"; then 21126 found_so="$additional_libdir/lib$name.$shlibext" 21127 else 21128 found_so="$additional_libdir/lib$name.dll.a" 21129 fi 21077 found_so="$additional_libdir/lib$name.$shlibext" 21130 21078 if test -f "$additional_libdir/lib$name.la"; then 21131 21079 found_la="$additional_libdir/lib$name.la" … … 21155 21103 -L*) 21156 21104 dir=`echo "X$x" | sed -e 's/^X-L//'` 21157 if test -n "$shlibext" \ 21158 && { test -f "$dir/lib$name.$shlibext" \ 21159 || { test "$shlibext" = dll \ 21160 && test -f "$dir/lib$name.dll.a"; }; }; then 21105 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then 21161 21106 found_dir="$dir" 21162 if test -f "$dir/lib$name.$shlibext"; then 21163 found_so="$dir/lib$name.$shlibext" 21164 else 21165 found_so="$dir/lib$name.dll.a" 21166 fi 21107 found_so="$dir/lib$name.$shlibext" 21167 21108 if test -f "$dir/lib$name.la"; then 21168 21109 found_la="$dir/lib$name.la" … … 21432 21373 { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5 21433 21374 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; } 21434 if { as_var=$gt_func_gnugettext_libintl; eval "test \"\${$as_var+set}\" = set"; }; then21375 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then 21435 21376 echo $ECHO_N "(cached) $ECHO_C" >&6 21436 21377 else … … 21446 21387 /* end confdefs.h. */ 21447 21388 #include <libintl.h> 21448 $gt_revision_test_code21449 21389 extern int _nl_msg_cat_cntr; 21450 21390 extern … … 21457 21397 { 21458 21398 bindtextdomain ("", ""); 21459 return * gettext ("") $gt_expression_test_code+ _nl_msg_cat_cntr + *_nl_expand_alias ("")21399 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("") 21460 21400 ; 21461 21401 return 0; … … 21480 21420 } && test -s conftest$ac_exeext && 21481 21421 $as_test_x conftest$ac_exeext; then 21482 eval "$gt_func_gnugettext_libintl=yes"21422 gt_cv_func_gnugettext1_libintl=yes 21483 21423 else 21484 21424 echo "$as_me: failed program was:" >&5 21485 21425 sed 's/^/| /' conftest.$ac_ext >&5 21486 21426 21487 eval "$gt_func_gnugettext_libintl=no"21427 gt_cv_func_gnugettext1_libintl=no 21488 21428 fi 21489 21429 21490 21430 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 21491 21431 conftest$ac_exeext conftest.$ac_ext 21492 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; }&& test -n "$LIBICONV"; then21432 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then 21493 21433 LIBS="$LIBS $LIBICONV" 21494 21434 cat >conftest.$ac_ext <<_ACEOF … … 21499 21439 /* end confdefs.h. */ 21500 21440 #include <libintl.h> 21501 $gt_revision_test_code21502 21441 extern int _nl_msg_cat_cntr; 21503 21442 extern … … 21510 21449 { 21511 21450 bindtextdomain ("", ""); 21512 return * gettext ("") $gt_expression_test_code+ _nl_msg_cat_cntr + *_nl_expand_alias ("")21451 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("") 21513 21452 ; 21514 21453 return 0; … … 21535 21474 LIBINTL="$LIBINTL $LIBICONV" 21536 21475 LTLIBINTL="$LTLIBINTL $LTLIBICONV" 21537 eval "$gt_func_gnugettext_libintl=yes"21476 gt_cv_func_gnugettext1_libintl=yes 21538 21477 21539 21478 else … … 21550 21489 LIBS="$gt_save_LIBS" 21551 21490 fi 21552 ac_res=`eval echo '${'$gt_func_gnugettext_libintl'}'` 21553 { echo "$as_me:$LINENO: result: $ac_res" >&5 21554 echo "${ECHO_T}$ac_res" >&6; } 21491 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5 21492 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; } 21555 21493 fi 21556 21494 21557 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; }\21558 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }\21495 if test "$gt_cv_func_gnugettext1_libc" = "yes" \ 21496 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \ 21559 21497 && test "$PACKAGE" != gettext-runtime \ 21560 21498 && test "$PACKAGE" != gettext-tools; }; then … … 21596 21534 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; } 21597 21535 if test "$gt_use_preinstalled_gnugettext" = "yes"; then 21598 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then21536 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then 21599 21537 gt_source="external libintl" 21600 21538 else … … 21611 21549 21612 21550 if test "$gt_use_preinstalled_gnugettext" = "yes"; then 21613 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then21551 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then 21614 21552 { echo "$as_me:$LINENO: checking how to link with libintl" >&5 21615 21553 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; } -
trunk/fm_server/src/Makefile.in
r217 r220 49 49 DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in 50 50 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 51 am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \ 51 am__aclocal_m4_deps = $(top_srcdir)/m4/gettext.m4 \ 52 $(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/lib-ld.m4 \ 53 $(top_srcdir)/m4/lib-link.m4 $(top_srcdir)/m4/lib-prefix.m4 \ 54 $(top_srcdir)/m4/nls.m4 $(top_srcdir)/m4/po.m4 \ 55 $(top_srcdir)/m4/progtest.m4 $(top_srcdir)/acinclude.m4 \ 52 56 $(top_srcdir)/configure.ac 53 57 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ -
trunk/fm_server/src/fm_input_gst/Makefile.in
r217 r220 36 36 DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in 37 37 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 38 am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \ 38 am__aclocal_m4_deps = $(top_srcdir)/m4/gettext.m4 \ 39 $(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/lib-ld.m4 \ 40 $(top_srcdir)/m4/lib-link.m4 $(top_srcdir)/m4/lib-prefix.m4 \ 41 $(top_srcdir)/m4/nls.m4 $(top_srcdir)/m4/po.m4 \ 42 $(top_srcdir)/m4/progtest.m4 $(top_srcdir)/acinclude.m4 \ 39 43 $(top_srcdir)/configure.ac 40 44 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ -
trunk/fm_server/src/fm_song_db/Makefile.in
r217 r220 36 36 DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in 37 37 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 38 am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \ 38 am__aclocal_m4_deps = $(top_srcdir)/m4/gettext.m4 \ 39 $(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/lib-ld.m4 \ 40 $(top_srcdir)/m4/lib-link.m4 $(top_srcdir)/m4/lib-prefix.m4 \ 41 $(top_srcdir)/m4/nls.m4 $(top_srcdir)/m4/po.m4 \ 42 $(top_srcdir)/m4/progtest.m4 $(top_srcdir)/acinclude.m4 \ 39 43 $(top_srcdir)/configure.ac 40 44 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ -
trunk/fm_server/test/Makefile.in
r217 r220 38 38 DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in 39 39 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 40 am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \ 40 am__aclocal_m4_deps = $(top_srcdir)/m4/gettext.m4 \ 41 $(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/lib-ld.m4 \ 42 $(top_srcdir)/m4/lib-link.m4 $(top_srcdir)/m4/lib-prefix.m4 \ 43 $(top_srcdir)/m4/nls.m4 $(top_srcdir)/m4/po.m4 \ 44 $(top_srcdir)/m4/progtest.m4 $(top_srcdir)/acinclude.m4 \ 41 45 $(top_srcdir)/configure.ac 42 46 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
