Changeset 217

Show
Ignore:
Timestamp:
01/18/08 10:09:05 (4 years ago)
Author:
ath
Message:

Fix "configure.ac" for FmServer.

Location:
trunk/fm_server
Files:
8 modified

Legend:

Unmodified
Added
Removed
  • trunk/fm_server/Makefile.in

    r212 r217  
    4040        install-sh ltmain.sh missing mkinstalldirs 
    4141ACLOCAL_M4 = $(top_srcdir)/aclocal.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 \ 
    47         $(top_srcdir)/configure.in 
     42am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \ 
     43        $(top_srcdir)/configure.ac 
    4844am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ 
    4945        $(ACLOCAL_M4) 
  • trunk/fm_server/aclocal.m4

    r212 r217  
    1616You have another version of autoconf.  If you want to use that, 
    1717you should regenerate the build system entirely.], [63])]) 
     18 
     19# gettext.m4 serial 59 (gettext-0.16.1) 
     20dnl Copyright (C) 1995-2006 Free Software Foundation, Inc. 
     21dnl This file is free software; the Free Software Foundation 
     22dnl gives unlimited permission to copy and/or distribute it, 
     23dnl with or without modifications, as long as this notice is preserved. 
     24dnl 
     25dnl This file can can be used in projects which are not available under 
     26dnl the GNU General Public License or the GNU Library General Public 
     27dnl License but which still want to provide support for the GNU gettext 
     28dnl functionality. 
     29dnl Please note that the actual code of the GNU gettext library is covered 
     30dnl by the GNU Library General Public License, and the rest of the GNU 
     31dnl gettext package package is covered by the GNU General Public License. 
     32dnl They are *not* in the public domain. 
     33 
     34dnl Authors: 
     35dnl   Ulrich Drepper <drepper@cygnus.com>, 1995-2000. 
     36dnl   Bruno Haible <haible@clisp.cons.org>, 2000-2006. 
     37 
     38dnl Macro to add for using GNU gettext. 
     39 
     40dnl Usage: AM_GNU_GETTEXT([INTLSYMBOL], [NEEDSYMBOL], [INTLDIR]). 
     41dnl INTLSYMBOL can be one of 'external', 'no-libtool', 'use-libtool'. The 
     42dnl    default (if it is not specified or empty) is 'no-libtool'. 
     43dnl    INTLSYMBOL should be 'external' for packages with no intl directory, 
     44dnl    and 'no-libtool' or 'use-libtool' for packages with an intl directory. 
     45dnl    If INTLSYMBOL is 'use-libtool', then a libtool library 
     46dnl    $(top_builddir)/intl/libintl.la will be created (shared and/or static, 
     47dnl    depending on --{enable,disable}-{shared,static} and on the presence of 
     48dnl    AM-DISABLE-SHARED). If INTLSYMBOL is 'no-libtool', a static library 
     49dnl    $(top_builddir)/intl/libintl.a will be created. 
     50dnl If NEEDSYMBOL is specified and is 'need-ngettext', then GNU gettext 
     51dnl    implementations (in libc or libintl) without the ngettext() function 
     52dnl    will be ignored.  If NEEDSYMBOL is specified and is 
     53dnl    'need-formatstring-macros', then GNU gettext implementations that don't 
     54dnl    support the ISO C 99 <inttypes.h> formatstring macros will be ignored. 
     55dnl INTLDIR is used to find the intl libraries.  If empty, 
     56dnl    the value `$(top_builddir)/intl/' is used. 
     57dnl 
     58dnl The result of the configuration is one of three cases: 
     59dnl 1) GNU gettext, as included in the intl subdirectory, will be compiled 
     60dnl    and used. 
     61dnl    Catalog format: GNU --> install in $(datadir) 
     62dnl    Catalog extension: .mo after installation, .gmo in source tree 
     63dnl 2) GNU gettext has been found in the system's C library. 
     64dnl    Catalog format: GNU --> install in $(datadir) 
     65dnl    Catalog extension: .mo after installation, .gmo in source tree 
     66dnl 3) No internationalization, always use English msgid. 
     67dnl    Catalog format: none 
     68dnl    Catalog extension: none 
     69dnl If INTLSYMBOL is 'external', only cases 2 and 3 can occur. 
     70dnl The use of .gmo is historical (it was needed to avoid overwriting the 
     71dnl GNU format catalogs when building on a platform with an X/Open gettext), 
     72dnl but we keep it in order not to force irrelevant filename changes on the 
     73dnl maintainers. 
     74dnl 
     75AC_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_GETTEXT 
     80])])])])]) 
     81  ifelse([$2], [], , [ifelse([$2], [need-ngettext], , [ifelse([$2], [need-formatstring-macros], , 
     82    [errprint([ERROR: invalid second argument to AM_GNU_GETTEXT 
     83])])])]) 
     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_INIT 
     90  AM_GNU_GETTEXT_NEED([$2]) 
     91 
     92  AC_REQUIRE([AM_PO_SUBDIRS])dnl 
     93  ifelse(gt_included_intl, yes, [ 
     94    AC_REQUIRE([AM_INTL_SUBDIR])dnl 
     95  ]) 
     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 the 
     103  dnl      if test "$USE_NLS" = "yes"; then 
     104  dnl        if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then 
     105  dnl tests. But if configure.in invokes AM_ICONV after AM_GNU_GETTEXT 
     106  dnl the configure script would need to contain the same shell code 
     107  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 not 
     111  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_MACOSX 
     118 
     119  dnl Set USE_NLS. 
     120  AC_REQUIRE([AM_NLS]) 
     121 
     122  ifelse(gt_included_intl, yes, [ 
     123    BUILD_INCLUDED_LIBINTL=no 
     124    USE_INCLUDED_LIBINTL=no 
     125  ]) 
     126  LIBINTL= 
     127  LTLIBINTL= 
     128  POSUB= 
     129 
     130  dnl Add a version number to the cache macros. 
     131  case " $gt_needs " in 
     132    *" need-formatstring-macros "*) gt_api_version=3 ;; 
     133    *" need-ngettext "*) gt_api_version=2 ;; 
     134    *) gt_api_version=1 ;; 
     135  esac 
     136  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 method 
     140  if test "$USE_NLS" = "yes"; then 
     141    gt_use_preinstalled_gnugettext=no 
     142    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"; then 
     152    ]) 
     153        dnl User does not insist on using GNU NLS library.  Figure out what 
     154        dnl to use.  If GNU gettext is available we use this.  Else we have 
     155        dnl to fall back to GNU NLS library. 
     156 
     157        if test $gt_api_version -ge 3; then 
     158          gt_revision_test_code=' 
     159#ifndef __GNU_GETTEXT_SUPPORTED_REVISION 
     160#define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1) 
     161#endif 
     162changequote(,)dnl 
     163typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1]; 
     164changequote([,])dnl 
     165' 
     166        else 
     167          gt_revision_test_code= 
     168        fi 
     169        if test $gt_api_version -ge 2; then 
     170          gt_expression_test_code=' + * ngettext ("", "", 0)' 
     171        else 
     172          gt_expression_test_code= 
     173        fi 
     174 
     175        AC_CACHE_CHECK([for GNU gettext in libc], [$gt_func_gnugettext_libc], 
     176         [AC_TRY_LINK([#include <libintl.h> 
     177$gt_revision_test_code 
     178extern int _nl_msg_cat_cntr; 
     179extern int *_nl_domain_bindings;], 
     180            [bindtextdomain ("", ""); 
     181return * 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"; }; then 
     186          dnl Sometimes libintl requires libiconv, so first search for libiconv. 
     187          ifelse(gt_included_intl, yes, , [ 
     188            AM_ICONV_LINK 
     189          ]) 
     190          dnl Search for libintl and define LIBINTL, LTLIBINTL and INCINTL 
     191          dnl accordingly. Don't use AC_LIB_LINKFLAGS_BODY([intl],[iconv]) 
     192          dnl because that would add "-liconv" to LIBINTL and LTLIBINTL 
     193          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_code 
     204extern int _nl_msg_cat_cntr; 
     205extern 
     206#ifdef __cplusplus 
     207"C" 
     208#endif 
     209const char *_nl_expand_alias (const char *);], 
     210              [bindtextdomain ("", ""); 
     211return * 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"; then 
     216              LIBS="$LIBS $LIBICONV" 
     217              AC_TRY_LINK([#include <libintl.h> 
     218$gt_revision_test_code 
     219extern int _nl_msg_cat_cntr; 
     220extern 
     221#ifdef __cplusplus 
     222"C" 
     223#endif 
     224const char *_nl_expand_alias (const char *);], 
     225                [bindtextdomain ("", ""); 
     226return * 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            fi 
     232            CPPFLAGS="$gt_save_CPPFLAGS" 
     233            LIBS="$gt_save_LIBS"]) 
     234        fi 
     235 
     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 GNU 
     238        dnl gettext is already preinstalled in libintl, we update this 
     239        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; }; then 
     244          gt_use_preinstalled_gnugettext=yes 
     245        else 
     246          dnl Reset the values set by searching for libintl. 
     247          LIBINTL= 
     248          LTLIBINTL= 
     249          INCINTL= 
     250        fi 
     251 
     252    ifelse(gt_included_intl, yes, [ 
     253        if test "$gt_use_preinstalled_gnugettext" != "yes"; then 
     254          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=yes 
     257        fi 
     258      fi 
     259 
     260      if test "$nls_cv_use_gnu_gettext" = "yes"; then 
     261        dnl Mark actions used to generate GNU NLS library. 
     262        BUILD_INCLUDED_LIBINTL=yes 
     263        USE_INCLUDED_LIBINTL=yes 
     264        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      fi 
     268 
     269      CATOBJEXT= 
     270      if test "$gt_use_preinstalled_gnugettext" = "yes" \ 
     271         || test "$nls_cv_use_gnu_gettext" = "yes"; then 
     272        dnl Mark actions to use GNU gettext tools. 
     273        CATOBJEXT=.gmo 
     274      fi 
     275    ]) 
     276 
     277    if test -n "$INTL_MACOSX_LIBS"; then 
     278      if test "$gt_use_preinstalled_gnugettext" = "yes" \ 
     279         || test "$nls_cv_use_gnu_gettext" = "yes"; then 
     280        dnl Some extra flags are needed during linking. 
     281        LIBINTL="$LIBINTL $INTL_MACOSX_LIBS" 
     282        LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS" 
     283      fi 
     284    fi 
     285 
     286    if test "$gt_use_preinstalled_gnugettext" = "yes" \ 
     287       || test "$nls_cv_use_gnu_gettext" = "yes"; then 
     288      AC_DEFINE(ENABLE_NLS, 1, 
     289        [Define to 1 if translation of program messages to the user's native language 
     290   is requested.]) 
     291    else 
     292      USE_NLS=no 
     293    fi 
     294  fi 
     295 
     296  AC_MSG_CHECKING([whether to use NLS]) 
     297  AC_MSG_RESULT([$USE_NLS]) 
     298  if test "$USE_NLS" = "yes"; then 
     299    AC_MSG_CHECKING([where the gettext function comes from]) 
     300    if test "$gt_use_preinstalled_gnugettext" = "yes"; then 
     301      if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then 
     302        gt_source="external libintl" 
     303      else 
     304        gt_source="libc" 
     305      fi 
     306    else 
     307      gt_source="included intl directory" 
     308    fi 
     309    AC_MSG_RESULT([$gt_source]) 
     310  fi 
     311 
     312  if test "$USE_NLS" = "yes"; then 
     313 
     314    if test "$gt_use_preinstalled_gnugettext" = "yes"; then 
     315      if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then 
     316        AC_MSG_CHECKING([how to link with libintl]) 
     317        AC_MSG_RESULT([$LIBINTL]) 
     318        AC_LIB_APPENDTOVAR([CPPFLAGS], [$INCINTL]) 
     319      fi 
     320 
     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    fi 
     327 
     328    dnl We need to process the po/ directory. 
     329    POSUB=po 
     330  fi 
     331 
     332  ifelse(gt_included_intl, yes, [ 
     333    dnl If this is used in GNU gettext we have to set BUILD_INCLUDED_LIBINTL 
     334    dnl to 'yes' because some of the testsuite requires it. 
     335    if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then 
     336      BUILD_INCLUDED_LIBINTL=yes 
     337    fi 
     338 
     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=share 
     350    AC_SUBST(DATADIRNAME) 
     351 
     352    dnl For backward compatibility. Some Makefiles may be using this. 
     353    INSTOBJEXT=.mo 
     354    AC_SUBST(INSTOBJEXT) 
     355 
     356    dnl For backward compatibility. Some Makefiles may be using this. 
     357    GENCAT=gencat 
     358    AC_SUBST(GENCAT) 
     359 
     360    dnl For backward compatibility. Some Makefiles may be using this. 
     361    INTLOBJS= 
     362    if test "$USE_INCLUDED_LIBINTL" = yes; then 
     363      INTLOBJS="\$(GETTOBJS)" 
     364    fi 
     365    AC_SUBST(INTLOBJS) 
     366 
     367    dnl Enable libtool support if the surrounding package wishes it. 
     368    INTL_LIBTOOL_SUFFIX_PREFIX=gt_libtool_suffix_prefix 
     369    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 
     383dnl Checks for special options needed on MacOS X. 
     384dnl Defines INTL_MACOSX_LIBS. 
     385AC_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; then 
     398    AC_DEFINE([HAVE_CFPREFERENCESCOPYAPPVALUE], 1, 
     399      [Define to 1 if you have the MacOS X function CFPreferencesCopyAppValue in the CoreFoundation framework.]) 
     400  fi 
     401  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; then 
     410    AC_DEFINE([HAVE_CFLOCALECOPYCURRENT], 1, 
     411      [Define to 1 if you have the MacOS X function CFLocaleCopyCurrent in the CoreFoundation framework.]) 
     412  fi 
     413  INTL_MACOSX_LIBS= 
     414  if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then 
     415    INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation" 
     416  fi 
     417  AC_SUBST([INTL_MACOSX_LIBS]) 
     418]) 
     419 
     420 
     421dnl gt_NEEDS_INIT ensures that the gt_needs variable is initialized. 
     422m4_define([gt_NEEDS_INIT], 
     423[ 
     424  m4_divert_text([DEFAULTS], [gt_needs=]) 
     425  m4_define([gt_NEEDS_INIT], []) 
     426]) 
     427 
     428 
     429dnl Usage: AM_GNU_GETTEXT_NEED([NEEDSYMBOL]) 
     430AC_DEFUN([AM_GNU_GETTEXT_NEED], 
     431[ 
     432  m4_divert_text([INIT_PREPARE], [gt_needs="$gt_needs $1"]) 
     433]) 
     434 
     435 
     436dnl Usage: AM_GNU_GETTEXT_VERSION([gettext-version]) 
     437AC_DEFUN([AM_GNU_GETTEXT_VERSION], []) 
     438 
     439# iconv.m4 serial AM4 (gettext-0.11.3) 
     440dnl Copyright (C) 2000-2002 Free Software Foundation, Inc. 
     441dnl This file is free software; the Free Software Foundation 
     442dnl gives unlimited permission to copy and/or distribute it, 
     443dnl with or without modifications, as long as this notice is preserved. 
     444 
     445dnl From Bruno Haible. 
     446 
     447AC_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 INCICONV 
     454  dnl accordingly. 
     455  AC_LIB_LINKFLAGS_BODY([iconv]) 
     456]) 
     457 
     458AC_DEFUN([AM_ICONV_LINK], 
     459[ 
     460  dnl Some systems have iconv in libc, some have it in libiconv (OSF/1 and 
     461  dnl those with the standalone portable GNU libiconv installed). 
     462 
     463  dnl Search for libiconv and define LIBICONV, LTLIBICONV and INCICONV 
     464  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 use 
     469  dnl via --without-libiconv-prefix, he wants to use it. The first 
     470  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=no 
     477    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; then 
     484      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=yes 
     492        am_cv_func_iconv=yes) 
     493      LIBS="$am_save_LIBS" 
     494    fi 
     495  ]) 
     496  if test "$am_cv_func_iconv" = yes; then 
     497    AC_DEFINE(HAVE_ICONV, 1, [Define if you have the iconv() function.]) 
     498  fi 
     499  if test "$am_cv_lib_iconv" = yes; then 
     500    AC_MSG_CHECKING([how to link with libiconv]) 
     501    AC_MSG_RESULT([$LIBICONV]) 
     502  else 
     503    dnl If $LIBICONV didn't lead to a usable library, we don't need $INCICONV 
     504    dnl either. 
     505    CPPFLAGS="$am_save_CPPFLAGS" 
     506    LIBICONV= 
     507    LTLIBICONV= 
     508  fi 
     509  AC_SUBST(LIBICONV) 
     510  AC_SUBST(LTLIBICONV) 
     511]) 
     512 
     513AC_DEFUN([AM_ICONV], 
     514[ 
     515  AM_ICONV_LINK 
     516  if test "$am_cv_func_iconv" = yes; then 
     517    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> 
     522extern 
     523#ifdef __cplusplus 
     524"C" 
     525#endif 
     526#if defined(__STDC__) || defined(__cplusplus) 
     527size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); 
     528#else 
     529size_t iconv(); 
     530#endif 
     531], [], 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  fi 
     539]) 
     540 
     541# lib-ld.m4 serial 3 (gettext-0.13) 
     542dnl Copyright (C) 1996-2003 Free Software Foundation, Inc. 
     543dnl This file is free software; the Free Software Foundation 
     544dnl gives unlimited permission to copy and/or distribute it, 
     545dnl with or without modifications, as long as this notice is preserved. 
     546 
     547dnl Subroutines of libtool.m4, 
     548dnl with replacements s/AC_/AC_LIB/ and s/lt_cv/acl_cv/ to avoid collision 
     549dnl with libtool.m4. 
     550 
     551dnl From libtool-1.4. Sets the variable with_gnu_ld to yes or no. 
     552AC_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. 
     555case `$LD -v 2>&1 </dev/null` in 
     556*GNU* | *'with BFD'*) 
     557  acl_cv_prog_gnu_ld=yes ;; 
     558*) 
     559  acl_cv_prog_gnu_ld=no ;; 
     560esac]) 
     561with_gnu_ld=$acl_cv_prog_gnu_ld 
     562]) 
     563 
     564dnl From libtool-1.4. Sets the variable LD. 
     565AC_DEFUN([AC_LIB_PROG_LD], 
     566[AC_ARG_WITH(gnu-ld, 
     567[  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]], 
     568test "$withval" = no || with_gnu_ld=yes, with_gnu_ld=no) 
     569AC_REQUIRE([AC_PROG_CC])dnl 
     570AC_REQUIRE([AC_CANONICAL_HOST])dnl 
     571# Prepare PATH_SEPARATOR. 
     572# The user is always right. 
     573if test "${PATH_SEPARATOR+set}" != set; then 
     574  echo "#! /bin/sh" >conf$$.sh 
     575  echo  "exit 0"   >>conf$$.sh 
     576  chmod +x conf$$.sh 
     577  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 
     578    PATH_SEPARATOR=';' 
     579  else 
     580    PATH_SEPARATOR=: 
     581  fi 
     582  rm -f conf$$.sh 
     583fi 
     584ac_prog=ld 
     585if test "$GCC" = yes; then 
     586  # Check if gcc -print-prog-name=ld gives a path. 
     587  AC_MSG_CHECKING([for ld used by GCC]) 
     588  case $host in 
     589  *-*-mingw*) 
     590    # gcc leaves a trailing carriage return which upsets mingw 
     591    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 
     592  *) 
     593    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 
     594  esac 
     595  case $ac_prog in 
     596    # Accept absolute paths. 
     597    [[\\/]* | [A-Za-z]:[\\/]*)] 
     598      [re_direlt='/[^/][^/]*/\.\./'] 
     599      # Canonicalize the path of ld 
     600      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` 
     601      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 
     602        ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` 
     603      done 
     604      test -z "$LD" && LD="$ac_prog" 
     605      ;; 
     606  "") 
     607    # If it fails, then pretend we aren't using GCC. 
     608    ac_prog=ld 
     609    ;; 
     610  *) 
     611    # If it is relative, then search for the first ld in PATH. 
     612    with_gnu_ld=unknown 
     613    ;; 
     614  esac 
     615elif test "$with_gnu_ld" = yes; then 
     616  AC_MSG_CHECKING([for GNU ld]) 
     617else 
     618  AC_MSG_CHECKING([for non-GNU ld]) 
     619fi 
     620AC_CACHE_VAL(acl_cv_path_LD, 
     621[if test -z "$LD"; then 
     622  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" 
     623  for ac_dir in $PATH; do 
     624    test -z "$ac_dir" && ac_dir=. 
     625    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 
     626      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` in 
     631      *GNU* | *'with BFD'*) 
     632        test "$with_gnu_ld" != no && break ;; 
     633      *) 
     634        test "$with_gnu_ld" != yes && break ;; 
     635      esac 
     636    fi 
     637  done 
     638  IFS="$ac_save_ifs" 
     639else 
     640  acl_cv_path_LD="$LD" # Let the user override the test with a path. 
     641fi]) 
     642LD="$acl_cv_path_LD" 
     643if test -n "$LD"; then 
     644  AC_MSG_RESULT($LD) 
     645else 
     646  AC_MSG_RESULT(no) 
     647fi 
     648test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH]) 
     649AC_LIB_PROG_LD_GNU 
     650]) 
     651 
     652# lib-link.m4 serial 9 (gettext-0.16) 
     653dnl Copyright (C) 2001-2006 Free Software Foundation, Inc. 
     654dnl This file is free software; the Free Software Foundation 
     655dnl gives unlimited permission to copy and/or distribute it, 
     656dnl with or without modifications, as long as this notice is preserved. 
     657 
     658dnl From Bruno Haible. 
     659 
     660AC_PREREQ(2.50) 
     661 
     662dnl AC_LIB_LINKFLAGS(name [, dependencies]) searches for libname and 
     663dnl the libraries corresponding to explicit and implicit dependencies. 
     664dnl Sets and AC_SUBSTs the LIB${NAME} and LTLIB${NAME} variables and 
     665dnl augments the CPPFLAGS variable. 
     666AC_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 the 
     686  dnl results of this search when this library appears as a dependency. 
     687  HAVE_LIB[]NAME=yes 
     688  undefine([Name]) 
     689  undefine([NAME]) 
     690]) 
     691 
     692dnl AC_LIB_HAVE_LINKFLAGS(name, dependencies, includes, testcode) 
     693dnl searches for libname and the libraries corresponding to explicit and 
     694dnl implicit dependencies, together with the specified include files and 
     695dnl the ability to compile and link the specified testcode. If found, it 
     696dnl sets and AC_SUBSTs HAVE_LIB${NAME}=yes and the LIB${NAME} and 
     697dnl LTLIB${NAME} variables and augments the CPPFLAGS variable, and 
     698dnl #defines HAVE_LIB${NAME} to 1. Otherwise, it sets and AC_SUBSTs 
     699dnl HAVE_LIB${NAME}=no and LIB${NAME} and LTLIB${NAME} to empty. 
     700AC_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[]NAME 
     709  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 use 
     714  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; then 
     725    HAVE_LIB[]NAME=yes 
     726    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  else 
     730    HAVE_LIB[]NAME=no 
     731    dnl If $LIB[]NAME didn't lead to a usable library, we don't need 
     732    dnl $INC[]NAME either. 
     733    CPPFLAGS="$ac_save_CPPFLAGS" 
     734    LIB[]NAME= 
     735    LTLIB[]NAME= 
     736  fi 
     737  AC_SUBST([HAVE_LIB]NAME) 
     738  AC_SUBST([LIB]NAME) 
     739  AC_SUBST([LTLIB]NAME) 
     740  undefine([Name]) 
     741  undefine([NAME]) 
     742]) 
     743 
     744dnl Determine the platform dependent parameters needed to use rpath: 
     745dnl libext, shlibext, hardcode_libdir_flag_spec, hardcode_libdir_separator, 
     746dnl hardcode_direct, hardcode_minus_L. 
     747AC_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, $LDFLAGS 
     752  AC_REQUIRE([AC_LIB_PROG_LD])            dnl we use $LD, $with_gnu_ld 
     753  AC_REQUIRE([AC_CANONICAL_HOST])         dnl we use $host 
     754  AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT]) dnl we use $ac_aux_dir 
     755  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.sh 
     758    . ./conftest.sh 
     759    rm -f ./conftest.sh 
     760    acl_cv_rpath=done 
     761  ]) 
     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 
     775dnl AC_LIB_LINKFLAGS_BODY(name [, dependencies]) searches for libname and 
     776dnl the libraries corresponding to explicit and implicit dependencies. 
     777dnl Sets the LIB${NAME}, LTLIB${NAME} and INC${NAME} variables. 
     778AC_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=yes 
     785  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/lib 
     791  --without-lib$1-prefix     don't search for lib$1 in includedir and libdir], 
     792[ 
     793    if test "X$withval" = "Xno"; then 
     794      use_additional=no 
     795    else 
     796      if test "X$withval" = "X"; then 
     797        AC_LIB_WITH_FINAL_PREFIX([ 
     798          eval additional_includedir=\"$includedir\" 
     799          eval additional_libdir=\"$libdir\" 
     800        ]) 
     801      else 
     802        additional_includedir="$withval/include" 
     803        additional_libdir="$withval/$acl_libdirstem" 
     804      fi 
     805    fi 
     806]) 
     807  dnl Search the library and its dependencies in $additional_libdir and 
     808  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"; do 
     817    names_this_round="$names_next_round" 
     818    names_next_round= 
     819    for name in $names_this_round; do 
     820      already_handled= 
     821      for n in $names_already_handled; do 
     822        if test "$n" = "$name"; then 
     823          already_handled=yes 
     824          break 
     825        fi 
     826      done 
     827      if test -z "$already_handled"; then 
     828        names_already_handled="$names_already_handled $name" 
     829        dnl See if it was already located by an earlier AC_LIB_LINKFLAGS 
     830        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"; then 
     834          if test "$value" = yes; then 
     835            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          else 
     840            dnl An earlier call to AC_LIB_HAVE_LINKFLAGS has determined 
     841            dnl that this library doesn't exist. So just drop it. 
     842            : 
     843          fi 
     844        else 
     845          dnl Search the library lib$name in $additional_libdir and $LDFLAGS 
     846          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; then 
     852            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"; }; }; then 
     856              found_dir="$additional_libdir" 
     857              if test -f "$additional_libdir/lib$name.$shlibext"; then 
     858                found_so="$additional_libdir/lib$name.$shlibext" 
     859              else 
     860                found_so="$additional_libdir/lib$name.dll.a" 
     861              fi 
     862              if test -f "$additional_libdir/lib$name.la"; then 
     863                found_la="$additional_libdir/lib$name.la" 
     864              fi 
     865            else 
     866              if test -f "$additional_libdir/lib$name.$libext"; then 
     867                found_dir="$additional_libdir" 
     868                found_a="$additional_libdir/lib$name.$libext" 
     869                if test -f "$additional_libdir/lib$name.la"; then 
     870                  found_la="$additional_libdir/lib$name.la" 
     871                fi 
     872              fi 
     873            fi 
     874          fi 
     875          if test "X$found_dir" = "X"; then 
     876            for x in $LDFLAGS $LTLIB[]NAME; do 
     877              AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) 
     878              case "$x" in 
     879                -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"; }; }; then 
     885                    found_dir="$dir" 
     886                    if test -f "$dir/lib$name.$shlibext"; then 
     887                      found_so="$dir/lib$name.$shlibext" 
     888                    else 
     889                      found_so="$dir/lib$name.dll.a" 
     890                    fi 
     891                    if test -f "$dir/lib$name.la"; then 
     892                      found_la="$dir/lib$name.la" 
     893                    fi 
     894                  else 
     895                    if test -f "$dir/lib$name.$libext"; then 
     896                      found_dir="$dir" 
     897                      found_a="$dir/lib$name.$libext" 
     898                      if test -f "$dir/lib$name.la"; then 
     899                        found_la="$dir/lib$name.la" 
     900                      fi 
     901                    fi 
     902                  fi 
     903                  ;; 
     904              esac 
     905              if test "X$found_dir" != "X"; then 
     906                break 
     907              fi 
     908            done 
     909          fi 
     910          if test "X$found_dir" != "X"; then 
     911            dnl Found the library. 
     912            LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-L$found_dir -l$name" 
     913            if test "X$found_so" != "X"; then 
     914              dnl Linking with a shared library. We attempt to hardcode its 
     915              dnl directory into the executable's runpath, unless it's the 
     916              dnl standard /usr/lib. 
     917              if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then 
     918                dnl No hardcoding is needed. 
     919                LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so" 
     920              else 
     921                dnl Use an explicit option to hardcode DIR into the resulting 
     922                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; do 
     927                  if test "X$x" = "X$found_dir"; then 
     928                    haveit=yes 
     929                    break 
     930                  fi 
     931                done 
     932                if test -z "$haveit"; then 
     933                  ltrpathdirs="$ltrpathdirs $found_dir" 
     934                fi 
     935                dnl The hardcoding into $LIBNAME is system dependent. 
     936                if test "$hardcode_direct" = yes; then 
     937                  dnl Using DIR/libNAME.so during linking hardcodes DIR into the 
     938                  dnl resulting binary. 
     939                  LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so" 
     940                else 
     941                  if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then 
     942                    dnl Use an explicit option to hardcode DIR into the resulting 
     943                    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; do 
     949                      if test "X$x" = "X$found_dir"; then 
     950                        haveit=yes 
     951                        break 
     952                      fi 
     953                    done 
     954                    if test -z "$haveit"; then 
     955                      rpathdirs="$rpathdirs $found_dir" 
     956                    fi 
     957                  else 
     958                    dnl Rely on "-L$found_dir". 
     959                    dnl But don't add it if it's already contained in the LDFLAGS 
     960                    dnl or the already constructed $LIBNAME 
     961                    haveit= 
     962                    for x in $LDFLAGS $LIB[]NAME; do 
     963                      AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) 
     964                      if test "X$x" = "X-L$found_dir"; then 
     965                        haveit=yes 
     966                        break 
     967                      fi 
     968                    done 
     969                    if test -z "$haveit"; then 
     970                      LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$found_dir" 
     971                    fi 
     972                    if test "$hardcode_minus_L" != no; then 
     973                      dnl FIXME: Not sure whether we should use 
     974                      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                    else 
     978                      dnl We cannot use $hardcode_runpath_var and LD_RUN_PATH 
     979                      dnl here, because this doesn't fit in flags passed to the 
     980                      dnl compiler. So give up. No hardcoding. This affects only 
     981                      dnl very old systems. 
     982                      dnl FIXME: Not sure whether we should use 
     983                      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                    fi 
     987                  fi 
     988                fi 
     989              fi 
     990            else 
     991              if test "X$found_a" != "X"; then 
     992                dnl Linking with a static library. 
     993                LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_a" 
     994              else 
     995                dnl We shouldn't come here, but anyway it's good to have a 
     996                dnl fallback. 
     997                LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$found_dir -l$name" 
     998              fi 
     999            fi 
     1000            dnl Assume the include files are nearby. 
     1001            additional_includedir= 
     1002            case "$found_dir" in 
     1003              */$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            esac 
     1008            if test "X$additional_includedir" != "X"; then 
     1009              dnl Potentially add $additional_includedir to $INCNAME. 
     1010              dnl But don't add it 
     1011              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 already 
     1014              dnl      constructed $INCNAME, 
     1015              dnl   4. if it doesn't exist as a directory. 
     1016              if test "X$additional_includedir" != "X/usr/include"; then 
     1017                haveit= 
     1018                if test "X$additional_includedir" = "X/usr/local/include"; then 
     1019                  if test -n "$GCC"; then 
     1020                    case $host_os in 
     1021                      linux* | gnu* | k*bsd*-gnu) haveit=yes;; 
     1022                    esac 
     1023                  fi 
     1024                fi 
     1025                if test -z "$haveit"; then 
     1026                  for x in $CPPFLAGS $INC[]NAME; do 
     1027                    AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) 
     1028                    if test "X$x" = "X-I$additional_includedir"; then 
     1029                      haveit=yes 
     1030                      break 
     1031                    fi 
     1032                  done 
     1033                  if test -z "$haveit"; then 
     1034                    if test -d "$additional_includedir"; then 
     1035                      dnl Really add $additional_includedir to $INCNAME. 
     1036                      INC[]NAME="${INC[]NAME}${INC[]NAME:+ }-I$additional_includedir" 
     1037                    fi 
     1038                  fi 
     1039                fi 
     1040              fi 
     1041            fi 
     1042            dnl Look for dependencies. 
     1043            if test -n "$found_la"; then 
     1044              dnl Read the .la file. It defines the variables 
     1045              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" in 
     1049                */* | *\\*) . "$found_la" ;; 
     1050                *) . "./$found_la" ;; 
     1051              esac 
     1052              libdir="$save_libdir" 
     1053              dnl We use only dependency_libs. 
     1054              for dep in $dependency_libs; do 
     1055                case "$dep" in 
     1056                  -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 it 
     1060                    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 already 
     1063                    dnl      constructed $LIBNAME, 
     1064                    dnl   4. if it doesn't exist as a directory. 
     1065                    if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then 
     1066                      haveit= 
     1067                      if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then 
     1068                        if test -n "$GCC"; then 
     1069                          case $host_os in 
     1070                            linux* | gnu* | k*bsd*-gnu) haveit=yes;; 
     1071                          esac 
     1072                        fi 
     1073                      fi 
     1074                      if test -z "$haveit"; then 
     1075                        haveit= 
     1076                        for x in $LDFLAGS $LIB[]NAME; do 
     1077                          AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) 
     1078                          if test "X$x" = "X-L$additional_libdir"; then 
     1079                            haveit=yes 
     1080                            break 
     1081                          fi 
     1082                        done 
     1083                        if test -z "$haveit"; then 
     1084                          if test -d "$additional_libdir"; then 
     1085                            dnl Really add $additional_libdir to $LIBNAME. 
     1086                            LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$additional_libdir" 
     1087                          fi 
     1088                        fi 
     1089                        haveit= 
     1090                        for x in $LDFLAGS $LTLIB[]NAME; do 
     1091                          AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) 
     1092                          if test "X$x" = "X-L$additional_libdir"; then 
     1093                            haveit=yes 
     1094                            break 
     1095                          fi 
     1096                        done 
     1097                        if test -z "$haveit"; then 
     1098                          if test -d "$additional_libdir"; then 
     1099                            dnl Really add $additional_libdir to $LTLIBNAME. 
     1100                            LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-L$additional_libdir" 
     1101                          fi 
     1102                        fi 
     1103                      fi 
     1104                    fi 
     1105                    ;; 
     1106                  -R*) 
     1107                    dir=`echo "X$dep" | sed -e 's/^X-R//'` 
     1108                    if test "$enable_rpath" != no; then 
     1109                      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; do 
     1113                        if test "X$x" = "X$dir"; then 
     1114                          haveit=yes 
     1115                          break 
     1116                        fi 
     1117                      done 
     1118                      if test -z "$haveit"; then 
     1119                        rpathdirs="$rpathdirs $dir" 
     1120                      fi 
     1121                      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; do 
     1125                        if test "X$x" = "X$dir"; then 
     1126                          haveit=yes 
     1127                          break 
     1128                        fi 
     1129                      done 
     1130                      if test -z "$haveit"; then 
     1131                        ltrpathdirs="$ltrpathdirs $dir" 
     1132                      fi 
     1133                    fi 
     1134                    ;; 
     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's 
     1141                    dnl directory; it is already contained in a preceding -L 
     1142                    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                esac 
     1151              done 
     1152            fi 
     1153          else 
     1154            dnl Didn't find the library; assume it is in the system directories 
     1155            dnl known to the linker and runtime loader. (All the system 
     1156            dnl directories known to the linker should also be known to the 
     1157            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          fi 
     1161        fi 
     1162      fi 
     1163    done 
     1164  done 
     1165  if test "X$rpathdirs" != "X"; then 
     1166    if test -n "$hardcode_libdir_separator"; then 
     1167      dnl Weird platform: only the last -rpath option counts, the user must 
     1168      dnl pass all path elements in one option. We can arrange that for a 
     1169      dnl single library, but not when more than one $LIBNAMEs are used. 
     1170      alldirs= 
     1171      for found_dir in $rpathdirs; do 
     1172        alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" 
     1173      done 
     1174      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    else 
     1181      dnl The -rpath options are cumulative. 
     1182      for found_dir in $rpathdirs; do 
     1183        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      done 
     1189    fi 
     1190  fi 
     1191  if test "X$ltrpathdirs" != "X"; then 
     1192    dnl When using libtool, the option that works for both libraries and 
     1193    dnl executables is -R. The -R options are cumulative. 
     1194    for found_dir in $ltrpathdirs; do 
     1195      LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-R$found_dir" 
     1196    done 
     1197  fi 
     1198]) 
     1199 
     1200dnl AC_LIB_APPENDTOVAR(VAR, CONTENTS) appends the elements of CONTENTS to VAR, 
     1201dnl unless already present in VAR. 
     1202dnl Works only for CPPFLAGS, not for LIB* variables because that sometimes 
     1203dnl contains two or three consecutive elements that belong together. 
     1204AC_DEFUN([AC_LIB_APPENDTOVAR], 
     1205[ 
     1206  for element in [$2]; do 
     1207    haveit= 
     1208    for x in $[$1]; do 
     1209      AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) 
     1210      if test "X$x" = "X$element"; then 
     1211        haveit=yes 
     1212        break 
     1213      fi 
     1214    done 
     1215    if test -z "$haveit"; then 
     1216      [$1]="${[$1]}${[$1]:+ }$element" 
     1217    fi 
     1218  done 
     1219]) 
     1220 
     1221dnl For those cases where a variable contains several -L and -l options 
     1222dnl referring to unknown libraries and directories, this macro determines the 
     1223dnl necessary additional linker options for the runtime path. 
     1224dnl AC_LIB_LINKFLAGS_FROM_LIBS([LDADDVAR], [LIBSVALUE], [USE-LIBTOOL]) 
     1225dnl sets LDADDVAR to linker options needed together with LIBSVALUE. 
     1226dnl If USE-LIBTOOL evaluates to non-empty, linking with libtool is assumed, 
     1227dnl otherwise linking without libtool is assumed. 
     1228AC_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; then 
     1234    if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then 
     1235      dnl Use an explicit option to hardcode directories into the resulting 
     1236      dnl binary. 
     1237      rpathdirs= 
     1238      next= 
     1239      for opt in $2; do 
     1240        if test -n "$next"; then 
     1241          dir="$next" 
     1242          dnl No need to hardcode the standard /usr/lib. 
     1243          if test "X$dir" != "X/usr/$acl_libdirstem"; then 
     1244            rpathdirs="$rpathdirs $dir" 
     1245          fi 
     1246          next= 
     1247        else 
     1248          case $opt in 
     1249            -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"; then 
     1253                   rpathdirs="$rpathdirs $dir" 
     1254                 fi 
     1255                 next= ;; 
     1256            *) next= ;; 
     1257          esac 
     1258        fi 
     1259      done 
     1260      if test "X$rpathdirs" != "X"; then 
     1261        if test -n ""$3""; then 
     1262          dnl libtool is used for linking. Use -R options. 
     1263          for dir in $rpathdirs; do 
     1264            $1="${$1}${$1:+ }-R$dir" 
     1265          done 
     1266        else 
     1267          dnl The linker is used for linking directly. 
     1268          if test -n "$hardcode_libdir_separator"; then 
     1269            dnl Weird platform: only the last -rpath option counts, the user 
     1270            dnl must pass all path elements in one option. 
     1271            alldirs= 
     1272            for dir in $rpathdirs; do 
     1273              alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$dir" 
     1274            done 
     1275            acl_save_libdir="$libdir" 
     1276            libdir="$alldirs" 
     1277            eval flag=\"$hardcode_libdir_flag_spec\" 
     1278            libdir="$acl_save_libdir" 
     1279            $1="$flag" 
     1280          else 
     1281            dnl The -rpath options are cumulative. 
     1282            for dir in $rpathdirs; do 
     1283              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            done 
     1289          fi 
     1290        fi 
     1291      fi 
     1292    fi 
     1293  fi 
     1294  AC_SUBST([$1]) 
     1295]) 
     1296 
     1297# lib-prefix.m4 serial 5 (gettext-0.15) 
     1298dnl Copyright (C) 2001-2005 Free Software Foundation, Inc. 
     1299dnl This file is free software; the Free Software Foundation 
     1300dnl gives unlimited permission to copy and/or distribute it, 
     1301dnl with or without modifications, as long as this notice is preserved. 
     1302 
     1303dnl From Bruno Haible. 
     1304 
     1305dnl AC_LIB_ARG_WITH is synonymous to AC_ARG_WITH in autoconf-2.13, and 
     1306dnl similar to AC_ARG_WITH in autoconf 2.52...2.57 except that is doesn't 
     1307dnl require excessive bracketing. 
     1308ifdef([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 
     1312dnl AC_LIB_PREFIX adds to the CPPFLAGS and LDFLAGS the flags that are needed 
     1313dnl to access previously installed libraries. The basic assumption is that 
     1314dnl a user will want packages to use other packages he previously installed 
     1315dnl with the same --prefix option. 
     1316dnl This macro is not needed if only AC_LIB_LINKFLAGS is used to locate 
     1317dnl libraries, but is otherwise very convenient. 
     1318AC_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=yes 
     1327  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/lib 
     1333  --without-lib-prefix    don't search for libraries in includedir and libdir], 
     1334[ 
     1335    if test "X$withval" = "Xno"; then 
     1336      use_additional=no 
     1337    else 
     1338      if test "X$withval" = "X"; then 
     1339        AC_LIB_WITH_FINAL_PREFIX([ 
     1340          eval additional_includedir=\"$includedir\" 
     1341          eval additional_libdir=\"$libdir\" 
     1342        ]) 
     1343      else 
     1344        additional_includedir="$withval/include" 
     1345        additional_libdir="$withval/$acl_libdirstem" 
     1346      fi 
     1347    fi 
     1348]) 
     1349  if test $use_additional = yes; then 
     1350    dnl Potentially add $additional_includedir to $CPPFLAGS. 
     1351    dnl But don't add it 
     1352    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"; then 
     1357      haveit= 
     1358      for x in $CPPFLAGS; do 
     1359        AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) 
     1360        if test "X$x" = "X-I$additional_includedir"; then 
     1361          haveit=yes 
     1362          break 
     1363        fi 
     1364      done 
     1365      if test -z "$haveit"; then 
     1366        if test "X$additional_includedir" = "X/usr/local/include"; then 
     1367          if test -n "$GCC"; then 
     1368            case $host_os in 
     1369              linux* | gnu* | k*bsd*-gnu) haveit=yes;; 
     1370            esac 
     1371          fi 
     1372        fi 
     1373        if test -z "$haveit"; then 
     1374          if test -d "$additional_includedir"; then 
     1375            dnl Really add $additional_includedir to $CPPFLAGS. 
     1376            CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }-I$additional_includedir" 
     1377          fi 
     1378        fi 
     1379      fi 
     1380    fi 
     1381    dnl Potentially add $additional_libdir to $LDFLAGS. 
     1382    dnl But don't add it 
     1383    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"; then 
     1388      haveit= 
     1389      for x in $LDFLAGS; do 
     1390        AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) 
     1391        if test "X$x" = "X-L$additional_libdir"; then 
     1392          haveit=yes 
     1393          break 
     1394        fi 
     1395      done 
     1396      if test -z "$haveit"; then 
     1397        if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then 
     1398          if test -n "$GCC"; then 
     1399            case $host_os in 
     1400              linux*) haveit=yes;; 
     1401            esac 
     1402          fi 
     1403        fi 
     1404        if test -z "$haveit"; then 
     1405          if test -d "$additional_libdir"; then 
     1406            dnl Really add $additional_libdir to $LDFLAGS. 
     1407            LDFLAGS="${LDFLAGS}${LDFLAGS:+ }-L$additional_libdir" 
     1408          fi 
     1409        fi 
     1410      fi 
     1411    fi 
     1412  fi 
     1413]) 
     1414 
     1415dnl AC_LIB_PREPARE_PREFIX creates variables acl_final_prefix, 
     1416dnl acl_final_exec_prefix, containing the values to which $prefix and 
     1417dnl $exec_prefix will expand at the end of the configure script. 
     1418AC_DEFUN([AC_LIB_PREPARE_PREFIX], 
     1419[ 
     1420  dnl Unfortunately, prefix and exec_prefix get only finally determined 
     1421  dnl at the end of configure. 
     1422  if test "X$prefix" = "XNONE"; then 
     1423    acl_final_prefix="$ac_default_prefix" 
     1424  else 
     1425    acl_final_prefix="$prefix" 
     1426  fi 
     1427  if test "X$exec_prefix" = "XNONE"; then 
     1428    acl_final_exec_prefix='${prefix}' 
     1429  else 
     1430    acl_final_exec_prefix="$exec_prefix" 
     1431  fi 
     1432  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 
     1438dnl AC_LIB_WITH_FINAL_PREFIX([statement]) evaluates statement, with the 
     1439dnl variables prefix and exec_prefix bound to the values they will have 
     1440dnl at the end of the configure script. 
     1441AC_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  $1 
     1448  exec_prefix="$acl_save_exec_prefix" 
     1449  prefix="$acl_save_prefix" 
     1450]) 
     1451 
     1452dnl AC_LIB_PREPARE_MULTILIB creates a variable acl_libdirstem, containing 
     1453dnl the basename of the libdir, either "lib" or "lib64". 
     1454AC_DEFUN([AC_LIB_PREPARE_MULTILIB], 
     1455[ 
     1456  dnl There is no formal standard regarding lib and lib64. The current 
     1457  dnl practice is that on a system supporting 32-bit and 64-bit instruction 
     1458  dnl sets or ABIs, 64-bit libraries go under $prefix/lib64 and 32-bit 
     1459  dnl libraries go under $prefix/lib. We determine the compiler's default 
     1460  dnl mode by looking at the compiler's library search path. If at least 
     1461  dnl of its elements ends in /lib64 or points to a directory whose absolute 
     1462  dnl pathname ends in /lib64, we assume a 64-bit ABI. Otherwise we use the 
     1463  dnl default, namely "lib". 
     1464  acl_libdirstem=lib 
     1465  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"; then 
     1467    acl_save_IFS="${IFS=        }"; IFS=":" 
     1468    for searchdir in $searchpath; do 
     1469      if test -d "$searchdir"; then 
     1470        case "$searchdir" in 
     1471          */lib64/ | */lib64 ) acl_libdirstem=lib64 ;; 
     1472          *) searchdir=`cd "$searchdir" && pwd` 
     1473             case "$searchdir" in 
     1474               */lib64 ) acl_libdirstem=lib64 ;; 
     1475             esac ;; 
     1476        esac 
     1477      fi 
     1478    done 
     1479    IFS="$acl_save_IFS" 
     1480  fi 
     1481]) 
    181482 
    191483# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*- 
     
    65988062]) 
    65998063 
     8064# nls.m4 serial 3 (gettext-0.15) 
     8065dnl Copyright (C) 1995-2003, 2005-2006 Free Software Foundation, Inc. 
     8066dnl This file is free software; the Free Software Foundation 
     8067dnl gives unlimited permission to copy and/or distribute it, 
     8068dnl with or without modifications, as long as this notice is preserved. 
     8069dnl 
     8070dnl This file can can be used in projects which are not available under 
     8071dnl the GNU General Public License or the GNU Library General Public 
     8072dnl License but which still want to provide support for the GNU gettext 
     8073dnl functionality. 
     8074dnl Please note that the actual code of the GNU gettext library is covered 
     8075dnl by the GNU Library General Public License, and the rest of the GNU 
     8076dnl gettext package package is covered by the GNU General Public License. 
     8077dnl They are *not* in the public domain. 
     8078 
     8079dnl Authors: 
     8080dnl   Ulrich Drepper <drepper@cygnus.com>, 1995-2000. 
     8081dnl   Bruno Haible <haible@clisp.cons.org>, 2000-2003. 
     8082 
     8083AC_PREREQ(2.50) 
     8084 
     8085AC_DEFUN([AM_NLS], 
     8086[ 
     8087  AC_MSG_CHECKING([whether NLS is requested]) 
     8088  dnl Default is enabled NLS 
     8089  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 
    66008096# pkg.m4 - Macros to locate and utilise pkg-config.            -*- Autoconf -*- 
    66018097#  
     
    67558251fi[]dnl 
    67568252])# PKG_CHECK_MODULES 
     8253 
     8254# po.m4 serial 13 (gettext-0.15) 
     8255dnl Copyright (C) 1995-2006 Free Software Foundation, Inc. 
     8256dnl This file is free software; the Free Software Foundation 
     8257dnl gives unlimited permission to copy and/or distribute it, 
     8258dnl with or without modifications, as long as this notice is preserved. 
     8259dnl 
     8260dnl This file can can be used in projects which are not available under 
     8261dnl the GNU General Public License or the GNU Library General Public 
     8262dnl License but which still want to provide support for the GNU gettext 
     8263dnl functionality. 
     8264dnl Please note that the actual code of the GNU gettext library is covered 
     8265dnl by the GNU Library General Public License, and the rest of the GNU 
     8266dnl gettext package package is covered by the GNU General Public License. 
     8267dnl They are *not* in the public domain. 
     8268 
     8269dnl Authors: 
     8270dnl   Ulrich Drepper <drepper@cygnus.com>, 1995-2000. 
     8271dnl   Bruno Haible <haible@clisp.cons.org>, 2000-2003. 
     8272 
     8273AC_PREREQ(2.50) 
     8274 
     8275dnl Checks for all prerequisites of the po subdirectory. 
     8276AC_DEFUN([AM_PO_SUBDIRS], 
     8277[ 
     8278  AC_REQUIRE([AC_PROG_MAKE_SET])dnl 
     8279  AC_REQUIRE([AC_PROG_INSTALL])dnl 
     8280  AC_REQUIRE([AM_PROG_MKDIR_P])dnl defined by automake 
     8281  AC_REQUIRE([AM_NLS])dnl 
     8282 
     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. 
     8296changequote(,)dnl 
     8297  case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in 
     8298    '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;; 
     8299    *) MSGFMT_015=$MSGFMT ;; 
     8300  esac 
     8301changequote([,])dnl 
     8302  AC_SUBST([MSGFMT_015]) 
     8303changequote(,)dnl 
     8304  case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in 
     8305    '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;; 
     8306    *) GMSGFMT_015=$GMSGFMT ;; 
     8307  esac 
     8308changequote([,])dnl 
     8309  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.po 
     8320 
     8321  dnl Test whether it is GNU xgettext >= 0.15. 
     8322changequote(,)dnl 
     8323  case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in 
     8324    '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;; 
     8325    *) XGETTEXT_015=$XGETTEXT ;; 
     8326  esac 
     8327changequote([,])dnl 
     8328  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, we 
     8336  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; do 
     8342      # Support "outfile[:infile[:infile...]]" 
     8343      case "$ac_file" in 
     8344        *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; 
     8345      esac 
     8346      # 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" in 
     8356          .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; 
     8357          /*) top_srcdir="$ac_given_srcdir" ;; 
     8358          *)  top_srcdir="$ac_dots$ac_given_srcdir" ;; 
     8359        esac 
     8360        # Treat a directory as a PO directory if and only if it has a 
     8361        # POTFILES.in file. This allows packages to have multiple PO 
     8362        # directories under different names or in different locations. 
     8363        if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then 
     8364          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 depend 
     8369          # on $ac_dir but don't depend on user-specified configuration 
     8370          # parameters. 
     8371          if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then 
     8372            # The LINGUAS file contains the set of available languages. 
     8373            if test -n "$OBSOLETE_ALL_LINGUAS"; then 
     8374              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            fi 
     8376            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          else 
     8381            # 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          fi 
     8385          # Compute POFILES 
     8386          # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po) 
     8387          # Compute UPDATEPOFILES 
     8388          # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update) 
     8389          # Compute DUMMYPOFILES 
     8390          # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop) 
     8391          # Compute GMOFILES 
     8392          # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo) 
     8393          case "$ac_given_srcdir" in 
     8394            .) srcdirpre= ;; 
     8395            *) srcdirpre='$(srcdir)/' ;; 
     8396          esac 
     8397          POFILES= 
     8398          UPDATEPOFILES= 
     8399          DUMMYPOFILES= 
     8400          GMOFILES= 
     8401          for lang in $ALL_LINGUAS; do 
     8402            POFILES="$POFILES $srcdirpre$lang.po" 
     8403            UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" 
     8404            DUMMYPOFILES="$DUMMYPOFILES $lang.nop" 
     8405            GMOFILES="$GMOFILES $srcdirpre$lang.gmo" 
     8406          done 
     8407          # CATALOGS depends on both $ac_dir and the user's LINGUAS 
     8408          # environment variable. 
     8409          INST_LINGUAS= 
     8410          if test -n "$ALL_LINGUAS"; then 
     8411            for presentlang in $ALL_LINGUAS; do 
     8412              useit=no 
     8413              if test "%UNSET%" != "$LINGUAS"; then 
     8414                desiredlanguages="$LINGUAS" 
     8415              else 
     8416                desiredlanguages="$ALL_LINGUAS" 
     8417              fi 
     8418              for desiredlang in $desiredlanguages; do 
     8419                # Use the presentlang catalog if desiredlang is 
     8420                #   a. equal to presentlang, or 
     8421                #   b. a variant of presentlang (because in this case, 
     8422                #      presentlang can be used as a fallback for messages 
     8423                #      which are not translated in the desiredlang catalog). 
     8424                case "$desiredlang" in 
     8425                  "$presentlang"*) useit=yes;; 
     8426                esac 
     8427              done 
     8428              if test $useit = yes; then 
     8429                INST_LINGUAS="$INST_LINGUAS $presentlang" 
     8430              fi 
     8431            done 
     8432          fi 
     8433          CATALOGS= 
     8434          if test -n "$INST_LINGUAS"; then 
     8435            for lang in $INST_LINGUAS; do 
     8436              CATALOGS="$CATALOGS $lang.gmo" 
     8437            done 
     8438          fi 
     8439          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-*; do 
     8442            if test -f "$f"; then 
     8443              case "$f" in 
     8444                *.orig | *.bak | *~) ;; 
     8445                *) cat "$f" >> "$ac_dir/Makefile" ;; 
     8446              esac 
     8447            fi 
     8448          done 
     8449        fi 
     8450        ;; 
     8451      esac 
     8452    done]], 
     8453   [# Capture the value of obsolete ALL_LINGUAS because we need it to compute 
     8454    # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it 
     8455    # 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 
     8462dnl Postprocesses a Makefile in a directory containing PO files. 
     8463AC_DEFUN([AM_POSTPROCESS_PO_MAKEFILE], 
     8464[ 
     8465  # When this code is run, in config.status, two variables have already been 
     8466  # 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 configure 
     8469  #   time. 
     8470 
     8471changequote(,)dnl 
     8472  # 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" in 
     8480    .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; 
     8481    /*) top_srcdir="$ac_given_srcdir" ;; 
     8482    *)  top_srcdir="$ac_dots$ac_given_srcdir" ;; 
     8483  esac 
     8484 
     8485  # Find a way to echo strings without interpreting backslash. 
     8486  if test "X`(echo '\t') 2>/dev/null`" = 'X\t'; then 
     8487    gt_echo='echo' 
     8488  else 
     8489    if test "X`(printf '%s\n' '\t') 2>/dev/null`" = 'X\t'; then 
     8490      gt_echo='printf %s\n' 
     8491    else 
     8492      echo_func () { 
     8493        cat <<EOT 
     8494$* 
     8495EOT 
     8496      } 
     8497      gt_echo='echo_func' 
     8498    fi 
     8499  fi 
     8500 
     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. 
     8504x 
     8505s/P/P/ 
     8506x 
     8507ta 
     8508# 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  ba 
     8513} 
     8514bd 
     8515:a 
     8516# Here we are processing a line from the variable definition. 
     8517# Remove comment, more precisely replace it with a space. 
     8518s/#.*$/ / 
     8519# See if the line ends in a backslash. 
     8520tb 
     8521:b 
     8522s/\\$// 
     8523# Print the line, without the trailing backslash. 
     8524p 
     8525tc 
     8526# There was no trailing backslash. The end of the variable definition is 
     8527# reached. Clear the hold space. 
     8528s/^.*$// 
     8529x 
     8530bd 
     8531:c 
     8532# A trailing backslash means that the variable definition continues in the 
     8533# next line. Put a nonempty string into the hold space to indicate this. 
     8534s/^.*$/P/ 
     8535x 
     8536:d 
     8537' 
     8538changequote([,])dnl 
     8539 
     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 as 
     8544  #   $(foreach file, $(POTFILES), $(top_srcdir)/$(file)) 
     8545  POTFILES_DEPS= 
     8546  for file in $POTFILES; do 
     8547    POTFILES_DEPS="$POTFILES_DEPS "'$(top_srcdir)/'"$file" 
     8548  done 
     8549  POMAKEFILEDEPS="" 
     8550 
     8551  if test -n "$OBSOLETE_ALL_LINGUAS"; then 
     8552    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  fi 
     8554  if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then 
     8555    # 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  else 
     8559    # 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  fi 
     8563  # Hide the ALL_LINGUAS assigment from automake < 1.5. 
     8564  eval 'ALL_LINGUAS''=$ALL_LINGUAS_' 
     8565  # Compute POFILES 
     8566  # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po) 
     8567  # Compute UPDATEPOFILES 
     8568  # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update) 
     8569  # Compute DUMMYPOFILES 
     8570  # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop) 
     8571  # Compute GMOFILES 
     8572  # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo) 
     8573  # Compute PROPERTIESFILES 
     8574  # as      $(foreach lang, $(ALL_LINGUAS), $(top_srcdir)/$(DOMAIN)_$(lang).properties) 
     8575  # Compute CLASSFILES 
     8576  # as      $(foreach lang, $(ALL_LINGUAS), $(top_srcdir)/$(DOMAIN)_$(lang).class) 
     8577  # Compute QMFILES 
     8578  # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).qm) 
     8579  # Compute MSGFILES 
     8580  # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(frob $(lang)).msg) 
     8581  # Compute RESOURCESDLLFILES 
     8582  # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(frob $(lang))/$(DOMAIN).resources.dll) 
     8583  case "$ac_given_srcdir" in 
     8584    .) srcdirpre= ;; 
     8585    *) srcdirpre='$(srcdir)/' ;; 
     8586  esac 
     8587  POFILES= 
     8588  UPDATEPOFILES= 
     8589  DUMMYPOFILES= 
     8590  GMOFILES= 
     8591  PROPERTIESFILES= 
     8592  CLASSFILES= 
     8593  QMFILES= 
     8594  MSGFILES= 
     8595  RESOURCESDLLFILES= 
     8596  for lang in $ALL_LINGUAS; do 
     8597    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  done 
     8609  # CATALOGS depends on both $ac_dir and the user's LINGUAS 
     8610  # environment variable. 
     8611  INST_LINGUAS= 
     8612  if test -n "$ALL_LINGUAS"; then 
     8613    for presentlang in $ALL_LINGUAS; do 
     8614      useit=no 
     8615      if test "%UNSET%" != "$LINGUAS"; then 
     8616        desiredlanguages="$LINGUAS" 
     8617      else 
     8618        desiredlanguages="$ALL_LINGUAS" 
     8619      fi 
     8620      for desiredlang in $desiredlanguages; do 
     8621        # Use the presentlang catalog if desiredlang is 
     8622        #   a. equal to presentlang, or 
     8623        #   b. a variant of presentlang (because in this case, 
     8624        #      presentlang can be used as a fallback for messages 
     8625        #      which are not translated in the desiredlang catalog). 
     8626        case "$desiredlang" in 
     8627          "$presentlang"*) useit=yes;; 
     8628        esac 
     8629      done 
     8630      if test $useit = yes; then 
     8631        INST_LINGUAS="$INST_LINGUAS $presentlang" 
     8632      fi 
     8633    done 
     8634  fi 
     8635  CATALOGS= 
     8636  JAVACATALOGS= 
     8637  QTCATALOGS= 
     8638  TCLCATALOGS= 
     8639  CSHARPCATALOGS= 
     8640  if test -n "$INST_LINGUAS"; then 
     8641    for lang in $INST_LINGUAS; do 
     8642      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    done 
     8650  fi 
     8651 
     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; then 
     8654    # Add dependencies that cannot be formulated as a simple suffix rule. 
     8655    for lang in $ALL_LINGUAS; do 
     8656      frobbedlang=`echo $lang | sed -e 's/\..*$//' -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'` 
     8657      cat >> "$ac_file.tmp" <<EOF 
     8658$frobbedlang.msg: $lang.po 
     8659        @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; } 
     8661EOF 
     8662    done 
     8663  fi 
     8664  if grep -l '@CSHARPCATALOGS@' "$ac_file" > /dev/null; then 
     8665    # Add dependencies that cannot be formulated as a simple suffix rule. 
     8666    for lang in $ALL_LINGUAS; do 
     8667      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" <<EOF 
     8669$frobbedlang/\$(DOMAIN).resources.dll: $lang.po 
     8670        @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; } 
     8672EOF 
     8673    done 
     8674  fi 
     8675  if test -n "$POMAKEFILEDEPS"; then 
     8676    cat >> "$ac_file.tmp" <<EOF 
     8677Makefile: $POMAKEFILEDEPS 
     8678EOF 
     8679  fi 
     8680  mv "$ac_file.tmp" "$ac_file" 
     8681]) 
     8682 
     8683# progtest.m4 serial 4 (gettext-0.14.2) 
     8684dnl Copyright (C) 1996-2003, 2005 Free Software Foundation, Inc. 
     8685dnl This file is free software; the Free Software Foundation 
     8686dnl gives unlimited permission to copy and/or distribute it, 
     8687dnl with or without modifications, as long as this notice is preserved. 
     8688dnl 
     8689dnl This file can can be used in projects which are not available under 
     8690dnl the GNU General Public License or the GNU Library General Public 
     8691dnl License but which still want to provide support for the GNU gettext 
     8692dnl functionality. 
     8693dnl Please note that the actual code of the GNU gettext library is covered 
     8694dnl by the GNU Library General Public License, and the rest of the GNU 
     8695dnl gettext package package is covered by the GNU General Public License. 
     8696dnl They are *not* in the public domain. 
     8697 
     8698dnl Authors: 
     8699dnl   Ulrich Drepper <drepper@cygnus.com>, 1996. 
     8700 
     8701AC_PREREQ(2.50) 
     8702 
     8703# Search path for a program which passes the given test. 
     8704 
     8705dnl AM_PATH_PROG_WITH_TEST(VARIABLE, PROG-TO-CHECK-FOR, 
     8706dnl   TEST-PERFORMED-ON-FOUND_PROGRAM [, VALUE-IF-NOT-FOUND [, PATH]]) 
     8707AC_DEFUN([AM_PATH_PROG_WITH_TEST], 
     8708[ 
     8709# Prepare PATH_SEPARATOR. 
     8710# The user is always right. 
     8711if test "${PATH_SEPARATOR+set}" != set; then 
     8712  echo "#! /bin/sh" >conf$$.sh 
     8713  echo  "exit 0"   >>conf$$.sh 
     8714  chmod +x conf$$.sh 
     8715  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 
     8716    PATH_SEPARATOR=';' 
     8717  else 
     8718    PATH_SEPARATOR=: 
     8719  fi 
     8720  rm -f conf$$.sh 
     8721fi 
     8722 
     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. 
     8725cat >conf$$.file <<_ASEOF 
     8726#! /bin/sh 
     8727exit 0 
     8728_ASEOF 
     8729chmod +x conf$$.file 
     8730if test -x conf$$.file >/dev/null 2>&1; then 
     8731  ac_executable_p="test -x" 
     8732else 
     8733  ac_executable_p="test -f" 
     8734fi 
     8735rm -f conf$$.file 
     8736 
     8737# Extract the first word of "$2", so it can be a program name with args. 
     8738set dummy $2; ac_word=[$]2 
     8739AC_MSG_CHECKING([for $ac_word]) 
     8740AC_CACHE_VAL(ac_cv_path_$1, 
     8741[case "[$]$1" in 
     8742  [[\\/]]* | ?:[[\\/]]*) 
     8743    ac_cv_path_$1="[$]$1" # Let the user override the test with a path. 
     8744    ;; 
     8745  *) 
     8746    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR 
     8747    for ac_dir in ifelse([$5], , $PATH, [$5]); do 
     8748      IFS="$ac_save_IFS" 
     8749      test -z "$ac_dir" && ac_dir=. 
     8750      for ac_exec_ext in '' $ac_executable_extensions; do 
     8751        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then 
     8752          echo "$as_me: trying $ac_dir/$ac_word..." >&AS_MESSAGE_LOG_FD 
     8753          if [$3]; then 
     8754            ac_cv_path_$1="$ac_dir/$ac_word$ac_exec_ext" 
     8755            break 2 
     8756          fi 
     8757        fi 
     8758      done 
     8759    done 
     8760    IFS="$ac_save_IFS" 
     8761dnl If no 4th arg is given, leave the cache variable unset, 
     8762dnl so AC_PATH_PROGS will keep looking. 
     8763ifelse([$4], , , [  test -z "[$]ac_cv_path_$1" && ac_cv_path_$1="$4" 
     8764])dnl 
     8765    ;; 
     8766esac])dnl 
     8767$1="$ac_cv_path_$1" 
     8768if test ifelse([$4], , [-n "[$]$1"], ["[$]$1" != "$4"]); then 
     8769  AC_MSG_RESULT([$]$1) 
     8770else 
     8771  AC_MSG_RESULT(no) 
     8772fi 
     8773AC_SUBST($1)dnl 
     8774]) 
    67578775 
    67588776# Copyright (C) 2002, 2003, 2005, 2006  Free Software Foundation, Inc. 
     
    76009618]) # _AM_PROG_TAR 
    76019619 
    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]) 
    76109620m4_include([acinclude.m4]) 
  • trunk/fm_server/config.h.in

    r212 r217  
    1 /* config.h.in.  Generated from configure.in by autoheader.  */ 
     1/* config.h.in.  Generated from configure.ac by autoheader.  */ 
    22 
    33/* Target processor clips on negative float to int conversion. */ 
  • trunk/fm_server/configure

    r212 r217  
    770770#endif" 
    771771 
     772gt_needs= 
    772773ac_subst_vars='SHELL 
    773774PATH_SEPARATOR 
     
    19371938fi 
    19381939 
     1940gt_needs="$gt_needs " 
    19391941# Check that the precious variables saved in the cache have kept the same 
    19401942# value. 
     
    44034405*-*-irix6*) 
    44044406  # Find out which ABI we are using. 
    4405   echo '#line 4405 "configure"' > conftest.$ac_ext 
     4407  echo '#line 4407 "configure"' > conftest.$ac_ext 
    44064408  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 
    44074409  (eval $ac_compile) 2>&5 
     
    74357437   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 
    74367438   -e 's:$: $lt_compiler_flag:'` 
    7437    (eval echo "\"\$as_me:7437: $lt_compile\"" >&5) 
     7439   (eval echo "\"\$as_me:7439: $lt_compile\"" >&5) 
    74387440   (eval "$lt_compile" 2>conftest.err) 
    74397441   ac_status=$? 
    74407442   cat conftest.err >&5 
    7441    echo "$as_me:7441: \$? = $ac_status" >&5 
     7443   echo "$as_me:7443: \$? = $ac_status" >&5 
    74427444   if (exit $ac_status) && test -s "$ac_outfile"; then 
    74437445     # The compiler can only warn and ignore the option if not recognized 
     
    77257727   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 
    77267728   -e 's:$: $lt_compiler_flag:'` 
    7727    (eval echo "\"\$as_me:7727: $lt_compile\"" >&5) 
     7729   (eval echo "\"\$as_me:7729: $lt_compile\"" >&5) 
    77287730   (eval "$lt_compile" 2>conftest.err) 
    77297731   ac_status=$? 
    77307732   cat conftest.err >&5 
    7731    echo "$as_me:7731: \$? = $ac_status" >&5 
     7733   echo "$as_me:7733: \$? = $ac_status" >&5 
    77327734   if (exit $ac_status) && test -s "$ac_outfile"; then 
    77337735     # The compiler can only warn and ignore the option if not recognized 
     
    78297831   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 
    78307832   -e 's:$: $lt_compiler_flag:'` 
    7831    (eval echo "\"\$as_me:7831: $lt_compile\"" >&5) 
     7833   (eval echo "\"\$as_me:7833: $lt_compile\"" >&5) 
    78327834   (eval "$lt_compile" 2>out/conftest.err) 
    78337835   ac_status=$? 
    78347836   cat out/conftest.err >&5 
    7835    echo "$as_me:7835: \$? = $ac_status" >&5 
     7837   echo "$as_me:7837: \$? = $ac_status" >&5 
    78367838   if (exit $ac_status) && test -s out/conftest2.$ac_objext 
    78377839   then 
     
    1019110193  lt_status=$lt_dlunknown 
    1019210194  cat > conftest.$ac_ext <<EOF 
    10193 #line 10193 "configure" 
     10195#line 10195 "configure" 
    1019410196#include "confdefs.h" 
    1019510197 
     
    1029110293  lt_status=$lt_dlunknown 
    1029210294  cat > conftest.$ac_ext <<EOF 
    10293 #line 10293 "configure" 
     10295#line 10295 "configure" 
    1029410296#include "confdefs.h" 
    1029510297 
     
    1271112713   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 
    1271212714   -e 's:$: $lt_compiler_flag:'` 
    12713    (eval echo "\"\$as_me:12713: $lt_compile\"" >&5) 
     12715   (eval echo "\"\$as_me:12715: $lt_compile\"" >&5) 
    1271412716   (eval "$lt_compile" 2>conftest.err) 
    1271512717   ac_status=$? 
    1271612718   cat conftest.err >&5 
    12717    echo "$as_me:12717: \$? = $ac_status" >&5 
     12719   echo "$as_me:12719: \$? = $ac_status" >&5 
    1271812720   if (exit $ac_status) && test -s "$ac_outfile"; then 
    1271912721     # The compiler can only warn and ignore the option if not recognized 
     
    1281512817   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 
    1281612818   -e 's:$: $lt_compiler_flag:'` 
    12817    (eval echo "\"\$as_me:12817: $lt_compile\"" >&5) 
     12819   (eval echo "\"\$as_me:12819: $lt_compile\"" >&5) 
    1281812820   (eval "$lt_compile" 2>out/conftest.err) 
    1281912821   ac_status=$? 
    1282012822   cat out/conftest.err >&5 
    12821    echo "$as_me:12821: \$? = $ac_status" >&5 
     12823   echo "$as_me:12823: \$? = $ac_status" >&5 
    1282212824   if (exit $ac_status) && test -s out/conftest2.$ac_objext 
    1282312825   then 
     
    1439214394   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 
    1439314395   -e 's:$: $lt_compiler_flag:'` 
    14394    (eval echo "\"\$as_me:14394: $lt_compile\"" >&5) 
     14396   (eval echo "\"\$as_me:14396: $lt_compile\"" >&5) 
    1439514397   (eval "$lt_compile" 2>conftest.err) 
    1439614398   ac_status=$? 
    1439714399   cat conftest.err >&5 
    14398    echo "$as_me:14398: \$? = $ac_status" >&5 
     14400   echo "$as_me:14400: \$? = $ac_status" >&5 
    1439914401   if (exit $ac_status) && test -s "$ac_outfile"; then 
    1440014402     # The compiler can only warn and ignore the option if not recognized 
     
    1449614498   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 
    1449714499   -e 's:$: $lt_compiler_flag:'` 
    14498    (eval echo "\"\$as_me:14498: $lt_compile\"" >&5) 
     14500   (eval echo "\"\$as_me:14500: $lt_compile\"" >&5) 
    1449914501   (eval "$lt_compile" 2>out/conftest.err) 
    1450014502   ac_status=$? 
    1450114503   cat out/conftest.err >&5 
    14502    echo "$as_me:14502: \$? = $ac_status" >&5 
     14504   echo "$as_me:14504: \$? = $ac_status" >&5 
    1450314505   if (exit $ac_status) && test -s out/conftest2.$ac_objext 
    1450414506   then 
     
    1669616698   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 
    1669716699   -e 's:$: $lt_compiler_flag:'` 
    16698    (eval echo "\"\$as_me:16698: $lt_compile\"" >&5) 
     16700   (eval echo "\"\$as_me:16700: $lt_compile\"" >&5) 
    1669916701   (eval "$lt_compile" 2>conftest.err) 
    1670016702   ac_status=$? 
    1670116703   cat conftest.err >&5 
    16702    echo "$as_me:16702: \$? = $ac_status" >&5 
     16704   echo "$as_me:16704: \$? = $ac_status" >&5 
    1670316705   if (exit $ac_status) && test -s "$ac_outfile"; then 
    1670416706     # The compiler can only warn and ignore the option if not recognized 
     
    1698616988   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 
    1698716989   -e 's:$: $lt_compiler_flag:'` 
    16988    (eval echo "\"\$as_me:16988: $lt_compile\"" >&5) 
     16990   (eval echo "\"\$as_me:16990: $lt_compile\"" >&5) 
    1698916991   (eval "$lt_compile" 2>conftest.err) 
    1699016992   ac_status=$? 
    1699116993   cat conftest.err >&5 
    16992    echo "$as_me:16992: \$? = $ac_status" >&5 
     16994   echo "$as_me:16994: \$? = $ac_status" >&5 
    1699316995   if (exit $ac_status) && test -s "$ac_outfile"; then 
    1699416996     # The compiler can only warn and ignore the option if not recognized 
     
    1709017092   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 
    1709117093   -e 's:$: $lt_compiler_flag:'` 
    17092    (eval echo "\"\$as_me:17092: $lt_compile\"" >&5) 
     17094   (eval echo "\"\$as_me:17094: $lt_compile\"" >&5) 
    1709317095   (eval "$lt_compile" 2>out/conftest.err) 
    1709417096   ac_status=$? 
    1709517097   cat out/conftest.err >&5 
    17096    echo "$as_me:17096: \$? = $ac_status" >&5 
     17098   echo "$as_me:17098: \$? = $ac_status" >&5 
    1709717099   if (exit $ac_status) && test -s out/conftest2.$ac_objext 
    1709817100   then 
     
    2031620318          found_a= 
    2031720319          if test $use_additional = yes; then 
    20318             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; 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 
    2031920324              found_dir="$additional_libdir" 
    20320               found_so="$additional_libdir/lib$name.$shlibext" 
     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 
    2032120330              if test -f "$additional_libdir/lib$name.la"; then 
    2032220331                found_la="$additional_libdir/lib$name.la" 
     
    2034620355                -L*) 
    2034720356                  dir=`echo "X$x" | sed -e 's/^X-L//'` 
    20348                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then 
     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 
    2034920361                    found_dir="$dir" 
    20350                     found_so="$dir/lib$name.$shlibext" 
     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 
    2035120367                    if test -f "$dir/lib$name.la"; then 
    2035220368                      found_la="$dir/lib$name.la" 
     
    2063120647 
    2063220648 
     20649 
     20650 
     20651 
     20652 
     20653 
     20654 
     20655 
    2063320656    { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5 
    2063420657echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; } 
     
    2076720790  POSUB= 
    2076820791 
     20792    case " $gt_needs " in 
     20793    *" need-formatstring-macros "*) gt_api_version=3 ;; 
     20794    *" need-ngettext "*) gt_api_version=2 ;; 
     20795    *) gt_api_version=1 ;; 
     20796  esac 
     20797  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 
    2076920800    if test "$USE_NLS" = "yes"; then 
    2077020801    gt_use_preinstalled_gnugettext=no 
    2077120802 
    2077220803 
    20773  
    20774  
    20775  
     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 
     20809typedef 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 
    2077620819 
    2077720820        { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5 
    2077820821echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; } 
    20779 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then 
     20822if { as_var=$gt_func_gnugettext_libc; eval "test \"\${$as_var+set}\" = set"; }; then 
    2078020823  echo $ECHO_N "(cached) $ECHO_C" >&6 
    2078120824else 
     
    2078720830/* end confdefs.h.  */ 
    2078820831#include <libintl.h> 
     20832$gt_revision_test_code 
    2078920833extern int _nl_msg_cat_cntr; 
    2079020834extern int *_nl_domain_bindings; 
     
    2079320837{ 
    2079420838bindtextdomain ("", ""); 
    20795 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings 
     20839return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings 
    2079620840  ; 
    2079720841  return 0; 
     
    2081620860       } && test -s conftest$ac_exeext && 
    2081720861       $as_test_x conftest$ac_exeext; then 
    20818   gt_cv_func_gnugettext1_libc=yes 
     20862  eval "$gt_func_gnugettext_libc=yes" 
    2081920863else 
    2082020864  echo "$as_me: failed program was:" >&5 
    2082120865sed 's/^/| /' conftest.$ac_ext >&5 
    2082220866 
    20823         gt_cv_func_gnugettext1_libc=no 
     20867        eval "$gt_func_gnugettext_libc=no" 
    2082420868fi 
    2082520869 
     
    2082720871      conftest$ac_exeext conftest.$ac_ext 
    2082820872fi 
    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 
     20873ac_res=`eval echo '${'$gt_func_gnugettext_libc'}'` 
     20874               { echo "$as_me:$LINENO: result: $ac_res" >&5 
     20875echo "${ECHO_T}$ac_res" >&6; } 
     20876 
     20877        if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then 
    2083320878 
    2083420879 
     
    2107321118          found_a= 
    2107421119          if test $use_additional = yes; then 
    21075             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; 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 
    2107621124              found_dir="$additional_libdir" 
    21077               found_so="$additional_libdir/lib$name.$shlibext" 
     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 
    2107821130              if test -f "$additional_libdir/lib$name.la"; then 
    2107921131                found_la="$additional_libdir/lib$name.la" 
     
    2110321155                -L*) 
    2110421156                  dir=`echo "X$x" | sed -e 's/^X-L//'` 
    21105                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then 
     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 
    2110621161                    found_dir="$dir" 
    21107                     found_so="$dir/lib$name.$shlibext" 
     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 
    2110821167                    if test -f "$dir/lib$name.la"; then 
    2110921168                      found_la="$dir/lib$name.la" 
     
    2137321432          { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5 
    2137421433echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; } 
    21375 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then 
     21434if { as_var=$gt_func_gnugettext_libintl; eval "test \"\${$as_var+set}\" = set"; }; then 
    2137621435  echo $ECHO_N "(cached) $ECHO_C" >&6 
    2137721436else 
     
    2138721446/* end confdefs.h.  */ 
    2138821447#include <libintl.h> 
     21448$gt_revision_test_code 
    2138921449extern int _nl_msg_cat_cntr; 
    2139021450extern 
     
    2139721457{ 
    2139821458bindtextdomain ("", ""); 
    21399 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("") 
     21459return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("") 
    2140021460  ; 
    2140121461  return 0; 
     
    2142021480       } && test -s conftest$ac_exeext && 
    2142121481       $as_test_x conftest$ac_exeext; then 
    21422   gt_cv_func_gnugettext1_libintl=yes 
     21482  eval "$gt_func_gnugettext_libintl=yes" 
    2142321483else 
    2142421484  echo "$as_me: failed program was:" >&5 
    2142521485sed 's/^/| /' conftest.$ac_ext >&5 
    2142621486 
    21427         gt_cv_func_gnugettext1_libintl=no 
     21487        eval "$gt_func_gnugettext_libintl=no" 
    2142821488fi 
    2142921489 
    2143021490rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 
    2143121491      conftest$ac_exeext conftest.$ac_ext 
    21432                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then 
     21492                        if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then 
    2143321493              LIBS="$LIBS $LIBICONV" 
    2143421494              cat >conftest.$ac_ext <<_ACEOF 
     
    2143921499/* end confdefs.h.  */ 
    2144021500#include <libintl.h> 
     21501$gt_revision_test_code 
    2144121502extern int _nl_msg_cat_cntr; 
    2144221503extern 
     
    2144921510{ 
    2145021511bindtextdomain ("", ""); 
    21451 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("") 
     21512return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("") 
    2145221513  ; 
    2145321514  return 0; 
     
    2147421535  LIBINTL="$LIBINTL $LIBICONV" 
    2147521536                LTLIBINTL="$LTLIBINTL $LTLIBICONV" 
    21476                 gt_cv_func_gnugettext1_libintl=yes 
     21537                eval "$gt_func_gnugettext_libintl=yes" 
    2147721538 
    2147821539else 
     
    2148921550            LIBS="$gt_save_LIBS" 
    2149021551fi 
    21491 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5 
    21492 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; } 
     21552ac_res=`eval echo '${'$gt_func_gnugettext_libintl'}'` 
     21553               { echo "$as_me:$LINENO: result: $ac_res" >&5 
     21554echo "${ECHO_T}$ac_res" >&6; } 
    2149321555        fi 
    2149421556 
    21495                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \ 
    21496            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \ 
     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"; } \ 
    2149721559                && test "$PACKAGE" != gettext-runtime \ 
    2149821560                && test "$PACKAGE" != gettext-tools; }; then 
     
    2153421596echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; } 
    2153521597    if test "$gt_use_preinstalled_gnugettext" = "yes"; then 
    21536       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then 
     21598      if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then 
    2153721599        gt_source="external libintl" 
    2153821600      else 
     
    2154921611 
    2155021612    if test "$gt_use_preinstalled_gnugettext" = "yes"; then 
    21551       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then 
     21613      if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then 
    2155221614        { echo "$as_me:$LINENO: checking how to link with libintl" >&5 
    2155321615echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; } 
  • trunk/fm_server/src/Makefile.in

    r212 r217  
    4949DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in 
    5050ACLOCAL_M4 = $(top_srcdir)/aclocal.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 \ 
    56         $(top_srcdir)/configure.in 
     51am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \ 
     52        $(top_srcdir)/configure.ac 
    5753am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ 
    5854        $(ACLOCAL_M4) 
  • trunk/fm_server/src/fm_input_gst/Makefile.in

    r212 r217  
    3636DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in 
    3737ACLOCAL_M4 = $(top_srcdir)/aclocal.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 \ 
    43         $(top_srcdir)/configure.in 
     38am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \ 
     39        $(top_srcdir)/configure.ac 
    4440am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ 
    4541        $(ACLOCAL_M4) 
  • trunk/fm_server/src/fm_song_db/Makefile.in

    r212 r217  
    3636DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in 
    3737ACLOCAL_M4 = $(top_srcdir)/aclocal.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 \ 
    43         $(top_srcdir)/configure.in 
     38am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \ 
     39        $(top_srcdir)/configure.ac 
    4440am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ 
    4541        $(ACLOCAL_M4) 
  • trunk/fm_server/test/Makefile.in

    r212 r217  
    3838DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in 
    3939ACLOCAL_M4 = $(top_srcdir)/aclocal.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 \ 
    45         $(top_srcdir)/configure.in 
     40am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \ 
     41        $(top_srcdir)/configure.ac 
    4642am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ 
    4743        $(ACLOCAL_M4)