Changeset 200 for trunk/src/gmake


Ignore:
Timestamp:
Dec 17, 2004, 3:05:38 PM (21 years ago)
Author:
bird
Message:

Renaming some files.

Location:
trunk/src/gmake
Files:
2 added
2 deleted
10 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/gmake/Makefile.in

    r151 r200  
    1 # Makefile.in generated by automake 1.8.2 from Makefile.am.
     1# Makefile.in generated by automake 1.8.3 from Makefile.am.
    22# @configure_input@
    33
     
    4545noinst_PROGRAMS = loadavg$(EXEEXT)
    4646subdir = .
    47 DIST_COMMON = $(am__configure_deps) $(noinst_HEADERS) \
     47DIST_COMMON = README $(am__configure_deps) $(noinst_HEADERS) \
    4848        $(srcdir)/Makefile.am $(srcdir)/Makefile.in \
    4949        $(srcdir)/build.sh.in $(srcdir)/config.h.in \
     
    5151        INSTALL NEWS alloca.c ansi2knr.1 ansi2knr.c getloadavg.c
    5252ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
    53 am__aclocal_m4_deps = $(top_srcdir)/config/dospaths.m4 \
    54         $(top_srcdir)/config/gettext.m4 $(top_srcdir)/config/iconv.m4 \
    55         $(top_srcdir)/config/lib-ld.m4 \
    56         $(top_srcdir)/config/lib-link.m4 \
    57         $(top_srcdir)/config/lib-prefix.m4 $(top_srcdir)/config/nls.m4 \
    58         $(top_srcdir)/config/po.m4 $(top_srcdir)/config/progtest.m4 \
    59         $(top_srcdir)/acinclude.m4 $(top_srcdir)/configure.in
     53am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \
     54        $(top_srcdir)/configure.in
    6055am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
    6156        $(ACLOCAL_M4)
     
    6560CONFIG_HEADER = config.h
    6661CONFIG_CLEAN_FILES = build.sh
    67 am__installdirs = $(DESTDIR)$(bindir) $(DESTDIR)$(man1dir)
     62am__installdirs = "$(DESTDIR)$(bindir)" "$(DESTDIR)$(man1dir)"
    6863binPROGRAMS_INSTALL = $(INSTALL_PROGRAM)
    6964PROGRAMS = $(bin_PROGRAMS) $(noinst_PROGRAMS)
     
    7368am__make_SOURCES_DIST = ar.c arscan.c commands.c default.c dir.c \
    7469        expand.c file.c function.c getopt.c getopt1.c implicit.c job.c \
    75         main.c misc.c read.c remake.c remote-stub.c rule.c signame.c \
    76         variable.c version.c vpath.c hash.c
     70        main.c misc.c read.c remake.c remote-stub.c remote-cstms.c \
     71        rule.c signame.c variable.c version.c vpath.c hash.c
    7772@USE_CUSTOMS_FALSE@am__objects_1 = remote-stub$U.$(OBJEXT)
    7873@USE_CUSTOMS_TRUE@am__objects_1 = remote-cstms$U.$(OBJEXT)
     
    363358install-binPROGRAMS: $(bin_PROGRAMS)
    364359        @$(NORMAL_INSTALL)
    365         $(mkdir_p) $(DESTDIR)$(bindir)
     360        test -z "$(bindir)" || $(mkdir_p) "$(DESTDIR)$(bindir)"
    366361        @list='$(bin_PROGRAMS)'; for p in $$list; do \
    367362          p1=`echo $$p|sed 's/$(EXEEXT)$$//'`; \
     
    369364          ; then \
    370365            f=`echo "$$p1" | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'`; \
    371            echo " $(INSTALL_PROGRAM_ENV) $(binPROGRAMS_INSTALL) $$p $(DESTDIR)$(bindir)/$$f"; \
    372            $(INSTALL_PROGRAM_ENV) $(binPROGRAMS_INSTALL) $$p $(DESTDIR)$(bindir)/$$f || exit 1; \
     366           echo " $(INSTALL_PROGRAM_ENV) $(binPROGRAMS_INSTALL) '$$p' '$(DESTDIR)$(bindir)/$$f'"; \
     367           $(INSTALL_PROGRAM_ENV) $(binPROGRAMS_INSTALL) "$$p" "$(DESTDIR)$(bindir)/$$f" || exit 1; \
    373368          else :; fi; \
    374369        done
     
    378373        @list='$(bin_PROGRAMS)'; for p in $$list; do \
    379374          f=`echo "$$p" | sed 's,^.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/'`; \
    380           echo " rm -f $(DESTDIR)$(bindir)/$$f"; \
    381           rm -f $(DESTDIR)$(bindir)/$$f; \
     375          echo " rm -f '$(DESTDIR)$(bindir)/$$f'"; \
     376          rm -f "$(DESTDIR)$(bindir)/$$f"; \
    382377        done
    383378
     
    531526install-man1: $(man1_MANS) $(man_MANS)
    532527        @$(NORMAL_INSTALL)
    533         $(mkdir_p) $(DESTDIR)$(man1dir)
     528        test -z "$(man1dir)" || $(mkdir_p) "$(DESTDIR)$(man1dir)"
    534529        @list='$(man1_MANS) $(dist_man1_MANS) $(nodist_man1_MANS)'; \
    535530        l2='$(man_MANS) $(dist_man_MANS) $(nodist_man_MANS)'; \
     
    550545          inst=`echo $$inst | sed -e 's/^.*\///'`; \
    551546          inst=`echo $$inst | sed '$(transform)'`.$$ext; \
    552           echo " $(INSTALL_DATA) $$file $(DESTDIR)$(man1dir)/$$inst"; \
    553           $(INSTALL_DATA) $$file $(DESTDIR)$(man1dir)/$$inst; \
     547          echo " $(INSTALL_DATA) '$$file' '$(DESTDIR)$(man1dir)/$$inst'"; \
     548          $(INSTALL_DATA) "$$file" "$(DESTDIR)$(man1dir)/$$inst"; \
    554549        done
    555550uninstall-man1:
     
    571566          inst=`echo $$inst | sed -e 's/^.*\///'`; \
    572567          inst=`echo $$inst | sed '$(transform)'`.$$ext; \
    573           echo " rm -f $(DESTDIR)$(man1dir)/$$inst"; \
    574           rm -f $(DESTDIR)$(man1dir)/$$inst; \
     568          echo " rm -f '$(DESTDIR)$(man1dir)/$$inst'"; \
     569          rm -f "$(DESTDIR)$(man1dir)/$$inst"; \
    575570        done
    576571
     
    700695        $(am__remove_distdir)
    701696        mkdir $(distdir)
    702         $(mkdir_p) $(distdir)/. $(distdir)/config $(distdir)/po
     697        $(mkdir_p) $(distdir)/. $(distdir)/po
    703698        @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
    704699        topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
     
    808803          && chmod -R a-w "$$dc_install_base" \
    809804          && ({ \
    810                (cd ../.. && $(mkdir_p) "$$dc_destdir") \
     805               (cd ../.. && umask 077 && mkdir "$$dc_destdir") \
    811806               && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \
    812807               && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \
     
    846841installdirs: installdirs-recursive
    847842installdirs-am:
    848         $(mkdir_p) $(DESTDIR)$(bindir) $(DESTDIR)$(man1dir)
     843        for dir in "$(DESTDIR)$(bindir)" "$(DESTDIR)$(man1dir)"; do \
     844          test -z "$$dir" || $(mkdir_p) "$$dir"; \
     845        done
    849846install: install-recursive
    850847install-exec: install-exec-recursive
  • trunk/src/gmake/Makefile.kmk

    r197 r200  
    5151include $(PATH_KBUILD)/rules.kmk
    5252
    53 $(PATH_TARGET)/config.h: config.h.OS2.libc
     53$(PATH_TARGET)/config.h: config.h.$(BUILD_TARGET)
    5454        $(CP) $^ $@
    5555
  • trunk/src/gmake/aclocal.m4

    r151 r200  
    1 # generated automatically by aclocal 1.8.2 -*- Autoconf -*-
     1# generated automatically by aclocal 1.8.3 -*- Autoconf -*-
    22
    33# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004
     
    1212# PARTICULAR PURPOSE.
    1313
     14# gettext.m4 serial 20 (gettext-0.12)
     15dnl Copyright (C) 1995-2003 Free Software Foundation, Inc.
     16dnl This file is free software, distributed under the terms of the GNU
     17dnl General Public License.  As a special exception to the GNU General
     18dnl Public License, this file may be distributed as part of a program
     19dnl that contains a configuration script generated by Autoconf, under
     20dnl the same distribution terms as the rest of that program.
     21dnl
     22dnl This file can can be used in projects which are not available under
     23dnl the GNU General Public License or the GNU Library General Public
     24dnl License but which still want to provide support for the GNU gettext
     25dnl functionality.
     26dnl Please note that the actual code of the GNU gettext library is covered
     27dnl by the GNU Library General Public License, and the rest of the GNU
     28dnl gettext package package is covered by the GNU General Public License.
     29dnl They are *not* in the public domain.
     30
     31dnl Authors:
     32dnl   Ulrich Drepper <drepper@cygnus.com>, 1995-2000.
     33dnl   Bruno Haible <haible@clisp.cons.org>, 2000-2003.
     34
     35dnl Macro to add for using GNU gettext.
     36
     37dnl Usage: AM_GNU_GETTEXT([INTLSYMBOL], [NEEDSYMBOL], [INTLDIR]).
     38dnl INTLSYMBOL can be one of 'external', 'no-libtool', 'use-libtool'. The
     39dnl    default (if it is not specified or empty) is 'no-libtool'.
     40dnl    INTLSYMBOL should be 'external' for packages with no intl directory,
     41dnl    and 'no-libtool' or 'use-libtool' for packages with an intl directory.
     42dnl    If INTLSYMBOL is 'use-libtool', then a libtool library
     43dnl    $(top_builddir)/intl/libintl.la will be created (shared and/or static,
     44dnl    depending on --{enable,disable}-{shared,static} and on the presence of
     45dnl    AM-DISABLE-SHARED). If INTLSYMBOL is 'no-libtool', a static library
     46dnl    $(top_builddir)/intl/libintl.a will be created.
     47dnl If NEEDSYMBOL is specified and is 'need-ngettext', then GNU gettext
     48dnl    implementations (in libc or libintl) without the ngettext() function
     49dnl    will be ignored.  If NEEDSYMBOL is specified and is
     50dnl    'need-formatstring-macros', then GNU gettext implementations that don't
     51dnl    support the ISO C 99 <inttypes.h> formatstring macros will be ignored.
     52dnl INTLDIR is used to find the intl libraries.  If empty,
     53dnl    the value `$(top_builddir)/intl/' is used.
     54dnl
     55dnl The result of the configuration is one of three cases:
     56dnl 1) GNU gettext, as included in the intl subdirectory, will be compiled
     57dnl    and used.
     58dnl    Catalog format: GNU --> install in $(datadir)
     59dnl    Catalog extension: .mo after installation, .gmo in source tree
     60dnl 2) GNU gettext has been found in the system's C library.
     61dnl    Catalog format: GNU --> install in $(datadir)
     62dnl    Catalog extension: .mo after installation, .gmo in source tree
     63dnl 3) No internationalization, always use English msgid.
     64dnl    Catalog format: none
     65dnl    Catalog extension: none
     66dnl If INTLSYMBOL is 'external', only cases 2 and 3 can occur.
     67dnl The use of .gmo is historical (it was needed to avoid overwriting the
     68dnl GNU format catalogs when building on a platform with an X/Open gettext),
     69dnl but we keep it in order not to force irrelevant filename changes on the
     70dnl maintainers.
     71dnl
     72AC_DEFUN([AM_GNU_GETTEXT],
     73[
     74  dnl Argument checking.
     75  ifelse([$1], [], , [ifelse([$1], [external], , [ifelse([$1], [no-libtool], , [ifelse([$1], [use-libtool], ,
     76    [errprint([ERROR: invalid first argument to AM_GNU_GETTEXT
     77])])])])])
     78  ifelse([$2], [], , [ifelse([$2], [need-ngettext], , [ifelse([$2], [need-formatstring-macros], ,
     79    [errprint([ERROR: invalid second argument to AM_GNU_GETTEXT
     80])])])])
     81  define(gt_included_intl, ifelse([$1], [external], [no], [yes]))
     82  define(gt_libtool_suffix_prefix, ifelse([$1], [use-libtool], [l], []))
     83
     84  AC_REQUIRE([AM_PO_SUBDIRS])dnl
     85  ifelse(gt_included_intl, yes, [
     86    AC_REQUIRE([AM_INTL_SUBDIR])dnl
     87  ])
     88
     89  dnl Prerequisites of AC_LIB_LINKFLAGS_BODY.
     90  AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
     91  AC_REQUIRE([AC_LIB_RPATH])
     92
     93  dnl Sometimes libintl requires libiconv, so first search for libiconv.
     94  dnl Ideally we would do this search only after the
     95  dnl      if test "$USE_NLS" = "yes"; then
     96  dnl        if test "$gt_cv_func_gnugettext_libc" != "yes"; then
     97  dnl tests. But if configure.in invokes AM_ICONV after AM_GNU_GETTEXT
     98  dnl the configure script would need to contain the same shell code
     99  dnl again, outside any 'if'. There are two solutions:
     100  dnl - Invoke AM_ICONV_LINKFLAGS_BODY here, outside any 'if'.
     101  dnl - Control the expansions in more detail using AC_PROVIDE_IFELSE.
     102  dnl Since AC_PROVIDE_IFELSE is only in autoconf >= 2.52 and not
     103  dnl documented, we avoid it.
     104  ifelse(gt_included_intl, yes, , [
     105    AC_REQUIRE([AM_ICONV_LINKFLAGS_BODY])
     106  ])
     107
     108  dnl Set USE_NLS.
     109  AM_NLS
     110
     111  ifelse(gt_included_intl, yes, [
     112    BUILD_INCLUDED_LIBINTL=no
     113    USE_INCLUDED_LIBINTL=no
     114  ])
     115  LIBINTL=
     116  LTLIBINTL=
     117  POSUB=
     118
     119  dnl If we use NLS figure out what method
     120  if test "$USE_NLS" = "yes"; then
     121    gt_use_preinstalled_gnugettext=no
     122    ifelse(gt_included_intl, yes, [
     123      AC_MSG_CHECKING([whether included gettext is requested])
     124      AC_ARG_WITH(included-gettext,
     125        [  --with-included-gettext use the GNU gettext library included here],
     126        nls_cv_force_use_gnu_gettext=$withval,
     127        nls_cv_force_use_gnu_gettext=no)
     128      AC_MSG_RESULT($nls_cv_force_use_gnu_gettext)
     129
     130      nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
     131      if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
     132    ])
     133        dnl User does not insist on using GNU NLS library.  Figure out what
     134        dnl to use.  If GNU gettext is available we use this.  Else we have
     135        dnl to fall back to GNU NLS library.
     136
     137        dnl Add a version number to the cache macros.
     138        define([gt_api_version], ifelse([$2], [need-formatstring-macros], 3, ifelse([$2], [need-ngettext], 2, 1)))
     139        define([gt_cv_func_gnugettext_libc], [gt_cv_func_gnugettext]gt_api_version[_libc])
     140        define([gt_cv_func_gnugettext_libintl], [gt_cv_func_gnugettext]gt_api_version[_libintl])
     141
     142        AC_CACHE_CHECK([for GNU gettext in libc], gt_cv_func_gnugettext_libc,
     143         [AC_TRY_LINK([#include <libintl.h>
     144]ifelse([$2], [need-formatstring-macros],
     145[#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
     146#define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
     147#endif
     148changequote(,)dnl
     149typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
     150changequote([,])dnl
     151], [])[extern int _nl_msg_cat_cntr;
     152extern int *_nl_domain_bindings;],
     153            [bindtextdomain ("", "");
     154return (int) gettext ("")]ifelse([$2], [need-ngettext], [ + (int) ngettext ("", "", 0)], [])[ + _nl_msg_cat_cntr + *_nl_domain_bindings],
     155            gt_cv_func_gnugettext_libc=yes,
     156            gt_cv_func_gnugettext_libc=no)])
     157
     158        if test "$gt_cv_func_gnugettext_libc" != "yes"; then
     159          dnl Sometimes libintl requires libiconv, so first search for libiconv.
     160          ifelse(gt_included_intl, yes, , [
     161            AM_ICONV_LINK
     162          ])
     163          dnl Search for libintl and define LIBINTL, LTLIBINTL and INCINTL
     164          dnl accordingly. Don't use AC_LIB_LINKFLAGS_BODY([intl],[iconv])
     165          dnl because that would add "-liconv" to LIBINTL and LTLIBINTL
     166          dnl even if libiconv doesn't exist.
     167          AC_LIB_LINKFLAGS_BODY([intl])
     168          AC_CACHE_CHECK([for GNU gettext in libintl],
     169            gt_cv_func_gnugettext_libintl,
     170           [gt_save_CPPFLAGS="$CPPFLAGS"
     171            CPPFLAGS="$CPPFLAGS $INCINTL"
     172            gt_save_LIBS="$LIBS"
     173            LIBS="$LIBS $LIBINTL"
     174            dnl Now see whether libintl exists and does not depend on libiconv.
     175            AC_TRY_LINK([#include <libintl.h>
     176]ifelse([$2], [need-formatstring-macros],
     177[#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
     178#define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
     179#endif
     180changequote(,)dnl
     181typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
     182changequote([,])dnl
     183], [])[extern int _nl_msg_cat_cntr;
     184extern
     185#ifdef __cplusplus
     186"C"
     187#endif
     188const char *_nl_expand_alias ();],
     189              [bindtextdomain ("", "");
     190return (int) gettext ("")]ifelse([$2], [need-ngettext], [ + (int) ngettext ("", "", 0)], [])[ + _nl_msg_cat_cntr + *_nl_expand_alias (0)],
     191              gt_cv_func_gnugettext_libintl=yes,
     192              gt_cv_func_gnugettext_libintl=no)
     193            dnl Now see whether libintl exists and depends on libiconv.
     194            if test "$gt_cv_func_gnugettext_libintl" != yes && test -n "$LIBICONV"; then
     195              LIBS="$LIBS $LIBICONV"
     196              AC_TRY_LINK([#include <libintl.h>
     197]ifelse([$2], [need-formatstring-macros],
     198[#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
     199#define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
     200#endif
     201changequote(,)dnl
     202typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
     203changequote([,])dnl
     204], [])[extern int _nl_msg_cat_cntr;
     205extern
     206#ifdef __cplusplus
     207"C"
     208#endif
     209const char *_nl_expand_alias ();],
     210                [bindtextdomain ("", "");
     211return (int) gettext ("")]ifelse([$2], [need-ngettext], [ + (int) ngettext ("", "", 0)], [])[ + _nl_msg_cat_cntr + *_nl_expand_alias (0)],
     212               [LIBINTL="$LIBINTL $LIBICONV"
     213                LTLIBINTL="$LTLIBINTL $LTLIBICONV"
     214                gt_cv_func_gnugettext_libintl=yes
     215               ])
     216            fi
     217            CPPFLAGS="$gt_save_CPPFLAGS"
     218            LIBS="$gt_save_LIBS"])
     219        fi
     220
     221        dnl If an already present or preinstalled GNU gettext() is found,
     222        dnl use it.  But if this macro is used in GNU gettext, and GNU
     223        dnl gettext is already preinstalled in libintl, we update this
     224        dnl libintl.  (Cf. the install rule in intl/Makefile.in.)
     225        if test "$gt_cv_func_gnugettext_libc" = "yes" \
     226           || { test "$gt_cv_func_gnugettext_libintl" = "yes" \
     227                && test "$PACKAGE" != gettext-runtime \
     228                && test "$PACKAGE" != gettext-tools; }; then
     229          gt_use_preinstalled_gnugettext=yes
     230        else
     231          dnl Reset the values set by searching for libintl.
     232          LIBINTL=
     233          LTLIBINTL=
     234          INCINTL=
     235        fi
     236
     237    ifelse(gt_included_intl, yes, [
     238        if test "$gt_use_preinstalled_gnugettext" != "yes"; then
     239          dnl GNU gettext is not found in the C library.
     240          dnl Fall back on included GNU gettext library.
     241          nls_cv_use_gnu_gettext=yes
     242        fi
     243      fi
     244
     245      if test "$nls_cv_use_gnu_gettext" = "yes"; then
     246        dnl Mark actions used to generate GNU NLS library.
     247        BUILD_INCLUDED_LIBINTL=yes
     248        USE_INCLUDED_LIBINTL=yes
     249        LIBINTL="ifelse([$3],[],\${top_builddir}/intl,[$3])/libintl.[]gt_libtool_suffix_prefix[]a $LIBICONV"
     250        LTLIBINTL="ifelse([$3],[],\${top_builddir}/intl,[$3])/libintl.[]gt_libtool_suffix_prefix[]a $LTLIBICONV"
     251        LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
     252      fi
     253
     254      if test "$gt_use_preinstalled_gnugettext" = "yes" \
     255         || test "$nls_cv_use_gnu_gettext" = "yes"; then
     256        dnl Mark actions to use GNU gettext tools.
     257        CATOBJEXT=.gmo
     258      fi
     259    ])
     260
     261    if test "$gt_use_preinstalled_gnugettext" = "yes" \
     262       || test "$nls_cv_use_gnu_gettext" = "yes"; then
     263      AC_DEFINE(ENABLE_NLS, 1,
     264        [Define to 1 if translation of program messages to the user's native language
     265   is requested.])
     266    else
     267      USE_NLS=no
     268    fi
     269  fi
     270
     271  AC_MSG_CHECKING([whether to use NLS])
     272  AC_MSG_RESULT([$USE_NLS])
     273  if test "$USE_NLS" = "yes"; then
     274    AC_MSG_CHECKING([where the gettext function comes from])
     275    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
     276      if test "$gt_cv_func_gnugettext_libintl" = "yes"; then
     277        gt_source="external libintl"
     278      else
     279        gt_source="libc"
     280      fi
     281    else
     282      gt_source="included intl directory"
     283    fi
     284    AC_MSG_RESULT([$gt_source])
     285  fi
     286
     287  if test "$USE_NLS" = "yes"; then
     288
     289    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
     290      if test "$gt_cv_func_gnugettext_libintl" = "yes"; then
     291        AC_MSG_CHECKING([how to link with libintl])
     292        AC_MSG_RESULT([$LIBINTL])
     293        AC_LIB_APPENDTOVAR([CPPFLAGS], [$INCINTL])
     294      fi
     295
     296      dnl For backward compatibility. Some packages may be using this.
     297      AC_DEFINE(HAVE_GETTEXT, 1,
     298       [Define if the GNU gettext() function is already present or preinstalled.])
     299      AC_DEFINE(HAVE_DCGETTEXT, 1,
     300       [Define if the GNU dcgettext() function is already present or preinstalled.])
     301    fi
     302
     303    dnl We need to process the po/ directory.
     304    POSUB=po
     305  fi
     306
     307  ifelse(gt_included_intl, yes, [
     308    dnl If this is used in GNU gettext we have to set BUILD_INCLUDED_LIBINTL
     309    dnl to 'yes' because some of the testsuite requires it.
     310    if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
     311      BUILD_INCLUDED_LIBINTL=yes
     312    fi
     313
     314    dnl Make all variables we use known to autoconf.
     315    AC_SUBST(BUILD_INCLUDED_LIBINTL)
     316    AC_SUBST(USE_INCLUDED_LIBINTL)
     317    AC_SUBST(CATOBJEXT)
     318
     319    dnl For backward compatibility. Some configure.ins may be using this.
     320    nls_cv_header_intl=
     321    nls_cv_header_libgt=
     322
     323    dnl For backward compatibility. Some Makefiles may be using this.
     324    DATADIRNAME=share
     325    AC_SUBST(DATADIRNAME)
     326
     327    dnl For backward compatibility. Some Makefiles may be using this.
     328    INSTOBJEXT=.mo
     329    AC_SUBST(INSTOBJEXT)
     330
     331    dnl For backward compatibility. Some Makefiles may be using this.
     332    GENCAT=gencat
     333    AC_SUBST(GENCAT)
     334
     335    dnl For backward compatibility. Some Makefiles may be using this.
     336    if test "$USE_INCLUDED_LIBINTL" = yes; then
     337      INTLOBJS="\$(GETTOBJS)"
     338    fi
     339    AC_SUBST(INTLOBJS)
     340
     341    dnl Enable libtool support if the surrounding package wishes it.
     342    INTL_LIBTOOL_SUFFIX_PREFIX=gt_libtool_suffix_prefix
     343    AC_SUBST(INTL_LIBTOOL_SUFFIX_PREFIX)
     344  ])
     345
     346  dnl For backward compatibility. Some Makefiles may be using this.
     347  INTLLIBS="$LIBINTL"
     348  AC_SUBST(INTLLIBS)
     349
     350  dnl Make all documented variables known to autoconf.
     351  AC_SUBST(LIBINTL)
     352  AC_SUBST(LTLIBINTL)
     353  AC_SUBST(POSUB)
     354])
     355
     356
     357dnl Checks for all prerequisites of the intl subdirectory,
     358dnl except for INTL_LIBTOOL_SUFFIX_PREFIX (and possibly LIBTOOL), INTLOBJS,
     359dnl            USE_INCLUDED_LIBINTL, BUILD_INCLUDED_LIBINTL.
     360AC_DEFUN([AM_INTL_SUBDIR],
     361[
     362  AC_REQUIRE([AC_PROG_INSTALL])dnl
     363  AC_REQUIRE([AM_MKINSTALLDIRS])dnl
     364  AC_REQUIRE([AC_PROG_CC])dnl
     365  AC_REQUIRE([AC_CANONICAL_HOST])dnl
     366  AC_REQUIRE([AC_PROG_RANLIB])dnl
     367  AC_REQUIRE([AC_ISC_POSIX])dnl
     368  AC_REQUIRE([AC_HEADER_STDC])dnl
     369  AC_REQUIRE([AC_C_CONST])dnl
     370  AC_REQUIRE([AC_C_INLINE])dnl
     371  AC_REQUIRE([AC_TYPE_OFF_T])dnl
     372  AC_REQUIRE([AC_TYPE_SIZE_T])dnl
     373  AC_REQUIRE([AC_FUNC_ALLOCA])dnl
     374  AC_REQUIRE([AC_FUNC_MMAP])dnl
     375  AC_REQUIRE([jm_GLIBC21])dnl
     376  AC_REQUIRE([gt_INTDIV0])dnl
     377  AC_REQUIRE([jm_AC_TYPE_UINTMAX_T])dnl
     378  AC_REQUIRE([gt_HEADER_INTTYPES_H])dnl
     379  AC_REQUIRE([gt_INTTYPES_PRI])dnl
     380
     381  AC_CHECK_HEADERS([argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
     382stdlib.h string.h unistd.h sys/param.h])
     383  AC_CHECK_FUNCS([feof_unlocked fgets_unlocked getc_unlocked getcwd getegid \
     384geteuid getgid getuid mempcpy munmap putenv setenv setlocale stpcpy \
     385strcasecmp strdup strtoul tsearch __argz_count __argz_stringify __argz_next \
     386__fsetlocking])
     387
     388  AM_ICONV
     389  AM_LANGINFO_CODESET
     390  if test $ac_cv_header_locale_h = yes; then
     391    AM_LC_MESSAGES
     392  fi
     393
     394  dnl intl/plural.c is generated from intl/plural.y. It requires bison,
     395  dnl because plural.y uses bison specific features. It requires at least
     396  dnl bison-1.26 because earlier versions generate a plural.c that doesn't
     397  dnl compile.
     398  dnl bison is only needed for the maintainer (who touches plural.y). But in
     399  dnl order to avoid separate Makefiles or --enable-maintainer-mode, we put
     400  dnl the rule in general Makefile. Now, some people carelessly touch the
     401  dnl files or have a broken "make" program, hence the plural.c rule will
     402  dnl sometimes fire. To avoid an error, defines BISON to ":" if it is not
     403  dnl present or too old.
     404  AC_CHECK_PROGS([INTLBISON], [bison])
     405  if test -z "$INTLBISON"; then
     406    ac_verc_fail=yes
     407  else
     408    dnl Found it, now check the version.
     409    AC_MSG_CHECKING([version of bison])
     410changequote(<<,>>)dnl
     411    ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
     412    case $ac_prog_version in
     413      '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
     414      1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
     415changequote([,])dnl
     416         ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
     417      *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
     418    esac
     419    AC_MSG_RESULT([$ac_prog_version])
     420  fi
     421  if test $ac_verc_fail = yes; then
     422    INTLBISON=:
     423  fi
     424])
     425
     426
     427dnl Usage: AM_GNU_GETTEXT_VERSION([gettext-version])
     428AC_DEFUN([AM_GNU_GETTEXT_VERSION], [])
     429
     430# iconv.m4 serial AM4 (gettext-0.11.3)
     431dnl Copyright (C) 2000-2002 Free Software Foundation, Inc.
     432dnl This file is free software, distributed under the terms of the GNU
     433dnl General Public License.  As a special exception to the GNU General
     434dnl Public License, this file may be distributed as part of a program
     435dnl that contains a configuration script generated by Autoconf, under
     436dnl the same distribution terms as the rest of that program.
     437
     438dnl From Bruno Haible.
     439
     440AC_DEFUN([AM_ICONV_LINKFLAGS_BODY],
     441[
     442  dnl Prerequisites of AC_LIB_LINKFLAGS_BODY.
     443  AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
     444  AC_REQUIRE([AC_LIB_RPATH])
     445
     446  dnl Search for libiconv and define LIBICONV, LTLIBICONV and INCICONV
     447  dnl accordingly.
     448  AC_LIB_LINKFLAGS_BODY([iconv])
     449])
     450
     451AC_DEFUN([AM_ICONV_LINK],
     452[
     453  dnl Some systems have iconv in libc, some have it in libiconv (OSF/1 and
     454  dnl those with the standalone portable GNU libiconv installed).
     455
     456  dnl Search for libiconv and define LIBICONV, LTLIBICONV and INCICONV
     457  dnl accordingly.
     458  AC_REQUIRE([AM_ICONV_LINKFLAGS_BODY])
     459
     460  dnl Add $INCICONV to CPPFLAGS before performing the following checks,
     461  dnl because if the user has installed libiconv and not disabled its use
     462  dnl via --without-libiconv-prefix, he wants to use it. The first
     463  dnl AC_TRY_LINK will then fail, the second AC_TRY_LINK will succeed.
     464  am_save_CPPFLAGS="$CPPFLAGS"
     465  AC_LIB_APPENDTOVAR([CPPFLAGS], [$INCICONV])
     466
     467  AC_CACHE_CHECK(for iconv, am_cv_func_iconv, [
     468    am_cv_func_iconv="no, consider installing GNU libiconv"
     469    am_cv_lib_iconv=no
     470    AC_TRY_LINK([#include <stdlib.h>
     471#include <iconv.h>],
     472      [iconv_t cd = iconv_open("","");
     473       iconv(cd,NULL,NULL,NULL,NULL);
     474       iconv_close(cd);],
     475      am_cv_func_iconv=yes)
     476    if test "$am_cv_func_iconv" != yes; then
     477      am_save_LIBS="$LIBS"
     478      LIBS="$LIBS $LIBICONV"
     479      AC_TRY_LINK([#include <stdlib.h>
     480#include <iconv.h>],
     481        [iconv_t cd = iconv_open("","");
     482         iconv(cd,NULL,NULL,NULL,NULL);
     483         iconv_close(cd);],
     484        am_cv_lib_iconv=yes
     485        am_cv_func_iconv=yes)
     486      LIBS="$am_save_LIBS"
     487    fi
     488  ])
     489  if test "$am_cv_func_iconv" = yes; then
     490    AC_DEFINE(HAVE_ICONV, 1, [Define if you have the iconv() function.])
     491  fi
     492  if test "$am_cv_lib_iconv" = yes; then
     493    AC_MSG_CHECKING([how to link with libiconv])
     494    AC_MSG_RESULT([$LIBICONV])
     495  else
     496    dnl If $LIBICONV didn't lead to a usable library, we don't need $INCICONV
     497    dnl either.
     498    CPPFLAGS="$am_save_CPPFLAGS"
     499    LIBICONV=
     500    LTLIBICONV=
     501  fi
     502  AC_SUBST(LIBICONV)
     503  AC_SUBST(LTLIBICONV)
     504])
     505
     506AC_DEFUN([AM_ICONV],
     507[
     508  AM_ICONV_LINK
     509  if test "$am_cv_func_iconv" = yes; then
     510    AC_MSG_CHECKING([for iconv declaration])
     511    AC_CACHE_VAL(am_cv_proto_iconv, [
     512      AC_TRY_COMPILE([
     513#include <stdlib.h>
     514#include <iconv.h>
     515extern
     516#ifdef __cplusplus
     517"C"
     518#endif
     519#if defined(__STDC__) || defined(__cplusplus)
     520size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
     521#else
     522size_t iconv();
     523#endif
     524], [], am_cv_proto_iconv_arg1="", am_cv_proto_iconv_arg1="const")
     525      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);"])
     526    am_cv_proto_iconv=`echo "[$]am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
     527    AC_MSG_RESULT([$]{ac_t:-
     528         }[$]am_cv_proto_iconv)
     529    AC_DEFINE_UNQUOTED(ICONV_CONST, $am_cv_proto_iconv_arg1,
     530      [Define as const if the declaration of iconv() needs const.])
     531  fi
     532])
     533
     534# lib-ld.m4 serial 2 (gettext-0.12)
     535dnl Copyright (C) 1996-2003 Free Software Foundation, Inc.
     536dnl This file is free software, distributed under the terms of the GNU
     537dnl General Public License.  As a special exception to the GNU General
     538dnl Public License, this file may be distributed as part of a program
     539dnl that contains a configuration script generated by Autoconf, under
     540dnl the same distribution terms as the rest of that program.
     541
     542dnl Subroutines of libtool.m4,
     543dnl with replacements s/AC_/AC_LIB/ and s/lt_cv/acl_cv/ to avoid collision
     544dnl with libtool.m4.
     545
     546dnl From libtool-1.4. Sets the variable with_gnu_ld to yes or no.
     547AC_DEFUN([AC_LIB_PROG_LD_GNU],
     548[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], acl_cv_prog_gnu_ld,
     549[# I'd rather use --version here, but apparently some GNU ld's only accept -v.
     550if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
     551  acl_cv_prog_gnu_ld=yes
     552else
     553  acl_cv_prog_gnu_ld=no
     554fi])
     555with_gnu_ld=$acl_cv_prog_gnu_ld
     556])
     557
     558dnl From libtool-1.4. Sets the variable LD.
     559AC_DEFUN([AC_LIB_PROG_LD],
     560[AC_ARG_WITH(gnu-ld,
     561[  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]],
     562test "$withval" = no || with_gnu_ld=yes, with_gnu_ld=no)
     563AC_REQUIRE([AC_PROG_CC])dnl
     564AC_REQUIRE([AC_CANONICAL_HOST])dnl
     565# Prepare PATH_SEPARATOR.
     566# The user is always right.
     567if test "${PATH_SEPARATOR+set}" != set; then
     568  echo "#! /bin/sh" >conf$$.sh
     569  echo  "exit 0"   >>conf$$.sh
     570  chmod +x conf$$.sh
     571  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
     572    PATH_SEPARATOR=';'
     573  else
     574    PATH_SEPARATOR=:
     575  fi
     576  rm -f conf$$.sh
     577fi
     578ac_prog=ld
     579if test "$GCC" = yes; then
     580  # Check if gcc -print-prog-name=ld gives a path.
     581  AC_MSG_CHECKING([for ld used by GCC])
     582  case $host in
     583  *-*-mingw*)
     584    # gcc leaves a trailing carriage return which upsets mingw
     585    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
     586  *)
     587    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
     588  esac
     589  case $ac_prog in
     590    # Accept absolute paths.
     591    [[\\/]* | [A-Za-z]:[\\/]*)]
     592      [re_direlt='/[^/][^/]*/\.\./']
     593      # Canonicalize the path of ld
     594      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
     595      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
     596        ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
     597      done
     598      test -z "$LD" && LD="$ac_prog"
     599      ;;
     600  "")
     601    # If it fails, then pretend we aren't using GCC.
     602    ac_prog=ld
     603    ;;
     604  *)
     605    # If it is relative, then search for the first ld in PATH.
     606    with_gnu_ld=unknown
     607    ;;
     608  esac
     609elif test "$with_gnu_ld" = yes; then
     610  AC_MSG_CHECKING([for GNU ld])
     611else
     612  AC_MSG_CHECKING([for non-GNU ld])
     613fi
     614AC_CACHE_VAL(acl_cv_path_LD,
     615[if test -z "$LD"; then
     616  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
     617  for ac_dir in $PATH; do
     618    test -z "$ac_dir" && ac_dir=.
     619    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
     620      acl_cv_path_LD="$ac_dir/$ac_prog"
     621      # Check to see if the program is GNU ld.  I'd rather use --version,
     622      # but apparently some GNU ld's only accept -v.
     623      # Break only if it was the GNU/non-GNU ld that we prefer.
     624      if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
     625        test "$with_gnu_ld" != no && break
     626      else
     627        test "$with_gnu_ld" != yes && break
     628      fi
     629    fi
     630  done
     631  IFS="$ac_save_ifs"
     632else
     633  acl_cv_path_LD="$LD" # Let the user override the test with a path.
     634fi])
     635LD="$acl_cv_path_LD"
     636if test -n "$LD"; then
     637  AC_MSG_RESULT($LD)
     638else
     639  AC_MSG_RESULT(no)
     640fi
     641test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
     642AC_LIB_PROG_LD_GNU
     643])
     644
     645# lib-link.m4 serial 4 (gettext-0.12)
     646dnl Copyright (C) 2001-2003 Free Software Foundation, Inc.
     647dnl This file is free software, distributed under the terms of the GNU
     648dnl General Public License.  As a special exception to the GNU General
     649dnl Public License, this file may be distributed as part of a program
     650dnl that contains a configuration script generated by Autoconf, under
     651dnl the same distribution terms as the rest of that program.
     652
     653dnl From Bruno Haible.
     654
     655dnl AC_LIB_LINKFLAGS(name [, dependencies]) searches for libname and
     656dnl the libraries corresponding to explicit and implicit dependencies.
     657dnl Sets and AC_SUBSTs the LIB${NAME} and LTLIB${NAME} variables and
     658dnl augments the CPPFLAGS variable.
     659AC_DEFUN([AC_LIB_LINKFLAGS],
     660[
     661  AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
     662  AC_REQUIRE([AC_LIB_RPATH])
     663  define([Name],[translit([$1],[./-], [___])])
     664  define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-],
     665                               [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])])
     666  AC_CACHE_CHECK([how to link with lib[]$1], [ac_cv_lib[]Name[]_libs], [
     667    AC_LIB_LINKFLAGS_BODY([$1], [$2])
     668    ac_cv_lib[]Name[]_libs="$LIB[]NAME"
     669    ac_cv_lib[]Name[]_ltlibs="$LTLIB[]NAME"
     670    ac_cv_lib[]Name[]_cppflags="$INC[]NAME"
     671  ])
     672  LIB[]NAME="$ac_cv_lib[]Name[]_libs"
     673  LTLIB[]NAME="$ac_cv_lib[]Name[]_ltlibs"
     674  INC[]NAME="$ac_cv_lib[]Name[]_cppflags"
     675  AC_LIB_APPENDTOVAR([CPPFLAGS], [$INC]NAME)
     676  AC_SUBST([LIB]NAME)
     677  AC_SUBST([LTLIB]NAME)
     678  dnl Also set HAVE_LIB[]NAME so that AC_LIB_HAVE_LINKFLAGS can reuse the
     679  dnl results of this search when this library appears as a dependency.
     680  HAVE_LIB[]NAME=yes
     681  undefine([Name])
     682  undefine([NAME])
     683])
     684
     685dnl AC_LIB_HAVE_LINKFLAGS(name, dependencies, includes, testcode)
     686dnl searches for libname and the libraries corresponding to explicit and
     687dnl implicit dependencies, together with the specified include files and
     688dnl the ability to compile and link the specified testcode. If found, it
     689dnl sets and AC_SUBSTs HAVE_LIB${NAME}=yes and the LIB${NAME} and
     690dnl LTLIB${NAME} variables and augments the CPPFLAGS variable, and
     691dnl #defines HAVE_LIB${NAME} to 1. Otherwise, it sets and AC_SUBSTs
     692dnl HAVE_LIB${NAME}=no and LIB${NAME} and LTLIB${NAME} to empty.
     693AC_DEFUN([AC_LIB_HAVE_LINKFLAGS],
     694[
     695  AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
     696  AC_REQUIRE([AC_LIB_RPATH])
     697  define([Name],[translit([$1],[./-], [___])])
     698  define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-],
     699                               [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])])
     700
     701  dnl Search for lib[]Name and define LIB[]NAME, LTLIB[]NAME and INC[]NAME
     702  dnl accordingly.
     703  AC_LIB_LINKFLAGS_BODY([$1], [$2])
     704
     705  dnl Add $INC[]NAME to CPPFLAGS before performing the following checks,
     706  dnl because if the user has installed lib[]Name and not disabled its use
     707  dnl via --without-lib[]Name-prefix, he wants to use it.
     708  ac_save_CPPFLAGS="$CPPFLAGS"
     709  AC_LIB_APPENDTOVAR([CPPFLAGS], [$INC]NAME)
     710
     711  AC_CACHE_CHECK([for lib[]$1], [ac_cv_lib[]Name], [
     712    ac_save_LIBS="$LIBS"
     713    LIBS="$LIBS $LIB[]NAME"
     714    AC_TRY_LINK([$3], [$4], [ac_cv_lib[]Name=yes], [ac_cv_lib[]Name=no])
     715    LIBS="$ac_save_LIBS"
     716  ])
     717  if test "$ac_cv_lib[]Name" = yes; then
     718    HAVE_LIB[]NAME=yes
     719    AC_DEFINE([HAVE_LIB]NAME, 1, [Define if you have the $1 library.])
     720    AC_MSG_CHECKING([how to link with lib[]$1])
     721    AC_MSG_RESULT([$LIB[]NAME])
     722  else
     723    HAVE_LIB[]NAME=no
     724    dnl If $LIB[]NAME didn't lead to a usable library, we don't need
     725    dnl $INC[]NAME either.
     726    CPPFLAGS="$ac_save_CPPFLAGS"
     727    LIB[]NAME=
     728    LTLIB[]NAME=
     729  fi
     730  AC_SUBST([HAVE_LIB]NAME)
     731  AC_SUBST([LIB]NAME)
     732  AC_SUBST([LTLIB]NAME)
     733  undefine([Name])
     734  undefine([NAME])
     735])
     736
     737dnl Determine the platform dependent parameters needed to use rpath:
     738dnl libext, shlibext, hardcode_libdir_flag_spec, hardcode_libdir_separator,
     739dnl hardcode_direct, hardcode_minus_L.
     740AC_DEFUN([AC_LIB_RPATH],
     741[
     742  AC_REQUIRE([AC_PROG_CC])                dnl we use $CC, $GCC, $LDFLAGS
     743  AC_REQUIRE([AC_LIB_PROG_LD])            dnl we use $LD, $with_gnu_ld
     744  AC_REQUIRE([AC_CANONICAL_HOST])         dnl we use $host
     745  AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT]) dnl we use $ac_aux_dir
     746  AC_CACHE_CHECK([for shared library run path origin], acl_cv_rpath, [
     747    CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
     748    ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
     749    . ./conftest.sh
     750    rm -f ./conftest.sh
     751    acl_cv_rpath=done
     752  ])
     753  wl="$acl_cv_wl"
     754  libext="$acl_cv_libext"
     755  shlibext="$acl_cv_shlibext"
     756  hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
     757  hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
     758  hardcode_direct="$acl_cv_hardcode_direct"
     759  hardcode_minus_L="$acl_cv_hardcode_minus_L"
     760  dnl Determine whether the user wants rpath handling at all.
     761  AC_ARG_ENABLE(rpath,
     762    [  --disable-rpath         do not hardcode runtime library paths],
     763    :, enable_rpath=yes)
     764])
     765
     766dnl AC_LIB_LINKFLAGS_BODY(name [, dependencies]) searches for libname and
     767dnl the libraries corresponding to explicit and implicit dependencies.
     768dnl Sets the LIB${NAME}, LTLIB${NAME} and INC${NAME} variables.
     769AC_DEFUN([AC_LIB_LINKFLAGS_BODY],
     770[
     771  define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-],
     772                               [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])])
     773  dnl By default, look in $includedir and $libdir.
     774  use_additional=yes
     775  AC_LIB_WITH_FINAL_PREFIX([
     776    eval additional_includedir=\"$includedir\"
     777    eval additional_libdir=\"$libdir\"
     778  ])
     779  AC_LIB_ARG_WITH([lib$1-prefix],
     780[  --with-lib$1-prefix[=DIR]  search for lib$1 in DIR/include and DIR/lib
     781  --without-lib$1-prefix     don't search for lib$1 in includedir and libdir],
     782[
     783    if test "X$withval" = "Xno"; then
     784      use_additional=no
     785    else
     786      if test "X$withval" = "X"; then
     787        AC_LIB_WITH_FINAL_PREFIX([
     788          eval additional_includedir=\"$includedir\"
     789          eval additional_libdir=\"$libdir\"
     790        ])
     791      else
     792        additional_includedir="$withval/include"
     793        additional_libdir="$withval/lib"
     794      fi
     795    fi
     796])
     797  dnl Search the library and its dependencies in $additional_libdir and
     798  dnl $LDFLAGS. Using breadth-first-seach.
     799  LIB[]NAME=
     800  LTLIB[]NAME=
     801  INC[]NAME=
     802  rpathdirs=
     803  ltrpathdirs=
     804  names_already_handled=
     805  names_next_round='$1 $2'
     806  while test -n "$names_next_round"; do
     807    names_this_round="$names_next_round"
     808    names_next_round=
     809    for name in $names_this_round; do
     810      already_handled=
     811      for n in $names_already_handled; do
     812        if test "$n" = "$name"; then
     813          already_handled=yes
     814          break
     815        fi
     816      done
     817      if test -z "$already_handled"; then
     818        names_already_handled="$names_already_handled $name"
     819        dnl See if it was already located by an earlier AC_LIB_LINKFLAGS
     820        dnl or AC_LIB_HAVE_LINKFLAGS call.
     821        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
     822        eval value=\"\$HAVE_LIB$uppername\"
     823        if test -n "$value"; then
     824          if test "$value" = yes; then
     825            eval value=\"\$LIB$uppername\"
     826            test -z "$value" || LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$value"
     827            eval value=\"\$LTLIB$uppername\"
     828            test -z "$value" || LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }$value"
     829          else
     830            dnl An earlier call to AC_LIB_HAVE_LINKFLAGS has determined
     831            dnl that this library doesn't exist. So just drop it.
     832            :
     833          fi
     834        else
     835          dnl Search the library lib$name in $additional_libdir and $LDFLAGS
     836          dnl and the already constructed $LIBNAME/$LTLIBNAME.
     837          found_dir=
     838          found_la=
     839          found_so=
     840          found_a=
     841          if test $use_additional = yes; then
     842            if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
     843              found_dir="$additional_libdir"
     844              found_so="$additional_libdir/lib$name.$shlibext"
     845              if test -f "$additional_libdir/lib$name.la"; then
     846                found_la="$additional_libdir/lib$name.la"
     847              fi
     848            else
     849              if test -f "$additional_libdir/lib$name.$libext"; then
     850                found_dir="$additional_libdir"
     851                found_a="$additional_libdir/lib$name.$libext"
     852                if test -f "$additional_libdir/lib$name.la"; then
     853                  found_la="$additional_libdir/lib$name.la"
     854                fi
     855              fi
     856            fi
     857          fi
     858          if test "X$found_dir" = "X"; then
     859            for x in $LDFLAGS $LTLIB[]NAME; do
     860              AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
     861              case "$x" in
     862                -L*)
     863                  dir=`echo "X$x" | sed -e 's/^X-L//'`
     864                  if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
     865                    found_dir="$dir"
     866                    found_so="$dir/lib$name.$shlibext"
     867                    if test -f "$dir/lib$name.la"; then
     868                      found_la="$dir/lib$name.la"
     869                    fi
     870                  else
     871                    if test -f "$dir/lib$name.$libext"; then
     872                      found_dir="$dir"
     873                      found_a="$dir/lib$name.$libext"
     874                      if test -f "$dir/lib$name.la"; then
     875                        found_la="$dir/lib$name.la"
     876                      fi
     877                    fi
     878                  fi
     879                  ;;
     880              esac
     881              if test "X$found_dir" != "X"; then
     882                break
     883              fi
     884            done
     885          fi
     886          if test "X$found_dir" != "X"; then
     887            dnl Found the library.
     888            LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-L$found_dir -l$name"
     889            if test "X$found_so" != "X"; then
     890              dnl Linking with a shared library. We attempt to hardcode its
     891              dnl directory into the executable's runpath, unless it's the
     892              dnl standard /usr/lib.
     893              if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
     894                dnl No hardcoding is needed.
     895                LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
     896              else
     897                dnl Use an explicit option to hardcode DIR into the resulting
     898                dnl binary.
     899                dnl Potentially add DIR to ltrpathdirs.
     900                dnl The ltrpathdirs will be appended to $LTLIBNAME at the end.
     901                haveit=
     902                for x in $ltrpathdirs; do
     903                  if test "X$x" = "X$found_dir"; then
     904                    haveit=yes
     905                    break
     906                  fi
     907                done
     908                if test -z "$haveit"; then
     909                  ltrpathdirs="$ltrpathdirs $found_dir"
     910                fi
     911                dnl The hardcoding into $LIBNAME is system dependent.
     912                if test "$hardcode_direct" = yes; then
     913                  dnl Using DIR/libNAME.so during linking hardcodes DIR into the
     914                  dnl resulting binary.
     915                  LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
     916                else
     917                  if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
     918                    dnl Use an explicit option to hardcode DIR into the resulting
     919                    dnl binary.
     920                    LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
     921                    dnl Potentially add DIR to rpathdirs.
     922                    dnl The rpathdirs will be appended to $LIBNAME at the end.
     923                    haveit=
     924                    for x in $rpathdirs; do
     925                      if test "X$x" = "X$found_dir"; then
     926                        haveit=yes
     927                        break
     928                      fi
     929                    done
     930                    if test -z "$haveit"; then
     931                      rpathdirs="$rpathdirs $found_dir"
     932                    fi
     933                  else
     934                    dnl Rely on "-L$found_dir".
     935                    dnl But don't add it if it's already contained in the LDFLAGS
     936                    dnl or the already constructed $LIBNAME
     937                    haveit=
     938                    for x in $LDFLAGS $LIB[]NAME; do
     939                      AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
     940                      if test "X$x" = "X-L$found_dir"; then
     941                        haveit=yes
     942                        break
     943                      fi
     944                    done
     945                    if test -z "$haveit"; then
     946                      LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$found_dir"
     947                    fi
     948                    if test "$hardcode_minus_L" != no; then
     949                      dnl FIXME: Not sure whether we should use
     950                      dnl "-L$found_dir -l$name" or "-L$found_dir $found_so"
     951                      dnl here.
     952                      LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
     953                    else
     954                      dnl We cannot use $hardcode_runpath_var and LD_RUN_PATH
     955                      dnl here, because this doesn't fit in flags passed to the
     956                      dnl compiler. So give up. No hardcoding. This affects only
     957                      dnl very old systems.
     958                      dnl FIXME: Not sure whether we should use
     959                      dnl "-L$found_dir -l$name" or "-L$found_dir $found_so"
     960                      dnl here.
     961                      LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-l$name"
     962                    fi
     963                  fi
     964                fi
     965              fi
     966            else
     967              if test "X$found_a" != "X"; then
     968                dnl Linking with a static library.
     969                LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_a"
     970              else
     971                dnl We shouldn't come here, but anyway it's good to have a
     972                dnl fallback.
     973                LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$found_dir -l$name"
     974              fi
     975            fi
     976            dnl Assume the include files are nearby.
     977            additional_includedir=
     978            case "$found_dir" in
     979              */lib | */lib/)
     980                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
     981                additional_includedir="$basedir/include"
     982                ;;
     983            esac
     984            if test "X$additional_includedir" != "X"; then
     985              dnl Potentially add $additional_includedir to $INCNAME.
     986              dnl But don't add it
     987              dnl   1. if it's the standard /usr/include,
     988              dnl   2. if it's /usr/local/include and we are using GCC on Linux,
     989              dnl   3. if it's already present in $CPPFLAGS or the already
     990              dnl      constructed $INCNAME,
     991              dnl   4. if it doesn't exist as a directory.
     992              if test "X$additional_includedir" != "X/usr/include"; then
     993                haveit=
     994                if test "X$additional_includedir" = "X/usr/local/include"; then
     995                  if test -n "$GCC"; then
     996                    case $host_os in
     997                      linux*) haveit=yes;;
     998                    esac
     999                  fi
     1000                fi
     1001                if test -z "$haveit"; then
     1002                  for x in $CPPFLAGS $INC[]NAME; do
     1003                    AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
     1004                    if test "X$x" = "X-I$additional_includedir"; then
     1005                      haveit=yes
     1006                      break
     1007                    fi
     1008                  done
     1009                  if test -z "$haveit"; then
     1010                    if test -d "$additional_includedir"; then
     1011                      dnl Really add $additional_includedir to $INCNAME.
     1012                      INC[]NAME="${INC[]NAME}${INC[]NAME:+ }-I$additional_includedir"
     1013                    fi
     1014                  fi
     1015                fi
     1016              fi
     1017            fi
     1018            dnl Look for dependencies.
     1019            if test -n "$found_la"; then
     1020              dnl Read the .la file. It defines the variables
     1021              dnl dlname, library_names, old_library, dependency_libs, current,
     1022              dnl age, revision, installed, dlopen, dlpreopen, libdir.
     1023              save_libdir="$libdir"
     1024              case "$found_la" in
     1025                */* | *\\*) . "$found_la" ;;
     1026                *) . "./$found_la" ;;
     1027              esac
     1028              libdir="$save_libdir"
     1029              dnl We use only dependency_libs.
     1030              for dep in $dependency_libs; do
     1031                case "$dep" in
     1032                  -L*)
     1033                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
     1034                    dnl Potentially add $additional_libdir to $LIBNAME and $LTLIBNAME.
     1035                    dnl But don't add it
     1036                    dnl   1. if it's the standard /usr/lib,
     1037                    dnl   2. if it's /usr/local/lib and we are using GCC on Linux,
     1038                    dnl   3. if it's already present in $LDFLAGS or the already
     1039                    dnl      constructed $LIBNAME,
     1040                    dnl   4. if it doesn't exist as a directory.
     1041                    if test "X$additional_libdir" != "X/usr/lib"; then
     1042                      haveit=
     1043                      if test "X$additional_libdir" = "X/usr/local/lib"; then
     1044                        if test -n "$GCC"; then
     1045                          case $host_os in
     1046                            linux*) haveit=yes;;
     1047                          esac
     1048                        fi
     1049                      fi
     1050                      if test -z "$haveit"; then
     1051                        haveit=
     1052                        for x in $LDFLAGS $LIB[]NAME; do
     1053                          AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
     1054                          if test "X$x" = "X-L$additional_libdir"; then
     1055                            haveit=yes
     1056                            break
     1057                          fi
     1058                        done
     1059                        if test -z "$haveit"; then
     1060                          if test -d "$additional_libdir"; then
     1061                            dnl Really add $additional_libdir to $LIBNAME.
     1062                            LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$additional_libdir"
     1063                          fi
     1064                        fi
     1065                        haveit=
     1066                        for x in $LDFLAGS $LTLIB[]NAME; do
     1067                          AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
     1068                          if test "X$x" = "X-L$additional_libdir"; then
     1069                            haveit=yes
     1070                            break
     1071                          fi
     1072                        done
     1073                        if test -z "$haveit"; then
     1074                          if test -d "$additional_libdir"; then
     1075                            dnl Really add $additional_libdir to $LTLIBNAME.
     1076                            LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-L$additional_libdir"
     1077                          fi
     1078                        fi
     1079                      fi
     1080                    fi
     1081                    ;;
     1082                  -R*)
     1083                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
     1084                    if test "$enable_rpath" != no; then
     1085                      dnl Potentially add DIR to rpathdirs.
     1086                      dnl The rpathdirs will be appended to $LIBNAME at the end.
     1087                      haveit=
     1088                      for x in $rpathdirs; do
     1089                        if test "X$x" = "X$dir"; then
     1090                          haveit=yes
     1091                          break
     1092                        fi
     1093                      done
     1094                      if test -z "$haveit"; then
     1095                        rpathdirs="$rpathdirs $dir"
     1096                      fi
     1097                      dnl Potentially add DIR to ltrpathdirs.
     1098                      dnl The ltrpathdirs will be appended to $LTLIBNAME at the end.
     1099                      haveit=
     1100                      for x in $ltrpathdirs; do
     1101                        if test "X$x" = "X$dir"; then
     1102                          haveit=yes
     1103                          break
     1104                        fi
     1105                      done
     1106                      if test -z "$haveit"; then
     1107                        ltrpathdirs="$ltrpathdirs $dir"
     1108                      fi
     1109                    fi
     1110                    ;;
     1111                  -l*)
     1112                    dnl Handle this in the next round.
     1113                    names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
     1114                    ;;
     1115                  *.la)
     1116                    dnl Handle this in the next round. Throw away the .la's
     1117                    dnl directory; it is already contained in a preceding -L
     1118                    dnl option.
     1119                    names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
     1120                    ;;
     1121                  *)
     1122                    dnl Most likely an immediate library name.
     1123                    LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$dep"
     1124                    LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }$dep"
     1125                    ;;
     1126                esac
     1127              done
     1128            fi
     1129          else
     1130            dnl Didn't find the library; assume it is in the system directories
     1131            dnl known to the linker and runtime loader. (All the system
     1132            dnl directories known to the linker should also be known to the
     1133            dnl runtime loader, otherwise the system is severely misconfigured.)
     1134            LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-l$name"
     1135            LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-l$name"
     1136          fi
     1137        fi
     1138      fi
     1139    done
     1140  done
     1141  if test "X$rpathdirs" != "X"; then
     1142    if test -n "$hardcode_libdir_separator"; then
     1143      dnl Weird platform: only the last -rpath option counts, the user must
     1144      dnl pass all path elements in one option. We can arrange that for a
     1145      dnl single library, but not when more than one $LIBNAMEs are used.
     1146      alldirs=
     1147      for found_dir in $rpathdirs; do
     1148        alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
     1149      done
     1150      dnl Note: hardcode_libdir_flag_spec uses $libdir and $wl.
     1151      acl_save_libdir="$libdir"
     1152      libdir="$alldirs"
     1153      eval flag=\"$hardcode_libdir_flag_spec\"
     1154      libdir="$acl_save_libdir"
     1155      LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$flag"
     1156    else
     1157      dnl The -rpath options are cumulative.
     1158      for found_dir in $rpathdirs; do
     1159        acl_save_libdir="$libdir"
     1160        libdir="$found_dir"
     1161        eval flag=\"$hardcode_libdir_flag_spec\"
     1162        libdir="$acl_save_libdir"
     1163        LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$flag"
     1164      done
     1165    fi
     1166  fi
     1167  if test "X$ltrpathdirs" != "X"; then
     1168    dnl When using libtool, the option that works for both libraries and
     1169    dnl executables is -R. The -R options are cumulative.
     1170    for found_dir in $ltrpathdirs; do
     1171      LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-R$found_dir"
     1172    done
     1173  fi
     1174])
     1175
     1176dnl AC_LIB_APPENDTOVAR(VAR, CONTENTS) appends the elements of CONTENTS to VAR,
     1177dnl unless already present in VAR.
     1178dnl Works only for CPPFLAGS, not for LIB* variables because that sometimes
     1179dnl contains two or three consecutive elements that belong together.
     1180AC_DEFUN([AC_LIB_APPENDTOVAR],
     1181[
     1182  for element in [$2]; do
     1183    haveit=
     1184    for x in $[$1]; do
     1185      AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
     1186      if test "X$x" = "X$element"; then
     1187        haveit=yes
     1188        break
     1189      fi
     1190    done
     1191    if test -z "$haveit"; then
     1192      [$1]="${[$1]}${[$1]:+ }$element"
     1193    fi
     1194  done
     1195])
     1196
     1197# lib-prefix.m4 serial 2 (gettext-0.12)
     1198dnl Copyright (C) 2001-2003 Free Software Foundation, Inc.
     1199dnl This file is free software, distributed under the terms of the GNU
     1200dnl General Public License.  As a special exception to the GNU General
     1201dnl Public License, this file may be distributed as part of a program
     1202dnl that contains a configuration script generated by Autoconf, under
     1203dnl the same distribution terms as the rest of that program.
     1204
     1205dnl From Bruno Haible.
     1206
     1207dnl AC_LIB_ARG_WITH is synonymous to AC_ARG_WITH in autoconf-2.13, and
     1208dnl similar to AC_ARG_WITH in autoconf 2.52...2.57 except that is doesn't
     1209dnl require excessive bracketing.
     1210ifdef([AC_HELP_STRING],
     1211[AC_DEFUN([AC_LIB_ARG_WITH], [AC_ARG_WITH([$1],[[$2]],[$3],[$4])])],
     1212[AC_DEFUN([AC_LIB_ARG_WITH], [AC_ARG_WITH([$1],[$2],[$3],[$4])])])
     1213
     1214dnl AC_LIB_PREFIX adds to the CPPFLAGS and LDFLAGS the flags that are needed
     1215dnl to access previously installed libraries. The basic assumption is that
     1216dnl a user will want packages to use other packages he previously installed
     1217dnl with the same --prefix option.
     1218dnl This macro is not needed if only AC_LIB_LINKFLAGS is used to locate
     1219dnl libraries, but is otherwise very convenient.
     1220AC_DEFUN([AC_LIB_PREFIX],
     1221[
     1222  AC_BEFORE([$0], [AC_LIB_LINKFLAGS])
     1223  AC_REQUIRE([AC_PROG_CC])
     1224  AC_REQUIRE([AC_CANONICAL_HOST])
     1225  AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
     1226  dnl By default, look in $includedir and $libdir.
     1227  use_additional=yes
     1228  AC_LIB_WITH_FINAL_PREFIX([
     1229    eval additional_includedir=\"$includedir\"
     1230    eval additional_libdir=\"$libdir\"
     1231  ])
     1232  AC_LIB_ARG_WITH([lib-prefix],
     1233[  --with-lib-prefix[=DIR] search for libraries in DIR/include and DIR/lib
     1234  --without-lib-prefix    don't search for libraries in includedir and libdir],
     1235[
     1236    if test "X$withval" = "Xno"; then
     1237      use_additional=no
     1238    else
     1239      if test "X$withval" = "X"; then
     1240        AC_LIB_WITH_FINAL_PREFIX([
     1241          eval additional_includedir=\"$includedir\"
     1242          eval additional_libdir=\"$libdir\"
     1243        ])
     1244      else
     1245        additional_includedir="$withval/include"
     1246        additional_libdir="$withval/lib"
     1247      fi
     1248    fi
     1249])
     1250  if test $use_additional = yes; then
     1251    dnl Potentially add $additional_includedir to $CPPFLAGS.
     1252    dnl But don't add it
     1253    dnl   1. if it's the standard /usr/include,
     1254    dnl   2. if it's already present in $CPPFLAGS,
     1255    dnl   3. if it's /usr/local/include and we are using GCC on Linux,
     1256    dnl   4. if it doesn't exist as a directory.
     1257    if test "X$additional_includedir" != "X/usr/include"; then
     1258      haveit=
     1259      for x in $CPPFLAGS; do
     1260        AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
     1261        if test "X$x" = "X-I$additional_includedir"; then
     1262          haveit=yes
     1263          break
     1264        fi
     1265      done
     1266      if test -z "$haveit"; then
     1267        if test "X$additional_includedir" = "X/usr/local/include"; then
     1268          if test -n "$GCC"; then
     1269            case $host_os in
     1270              linux*) haveit=yes;;
     1271            esac
     1272          fi
     1273        fi
     1274        if test -z "$haveit"; then
     1275          if test -d "$additional_includedir"; then
     1276            dnl Really add $additional_includedir to $CPPFLAGS.
     1277            CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }-I$additional_includedir"
     1278          fi
     1279        fi
     1280      fi
     1281    fi
     1282    dnl Potentially add $additional_libdir to $LDFLAGS.
     1283    dnl But don't add it
     1284    dnl   1. if it's the standard /usr/lib,
     1285    dnl   2. if it's already present in $LDFLAGS,
     1286    dnl   3. if it's /usr/local/lib and we are using GCC on Linux,
     1287    dnl   4. if it doesn't exist as a directory.
     1288    if test "X$additional_libdir" != "X/usr/lib"; then
     1289      haveit=
     1290      for x in $LDFLAGS; do
     1291        AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
     1292        if test "X$x" = "X-L$additional_libdir"; then
     1293          haveit=yes
     1294          break
     1295        fi
     1296      done
     1297      if test -z "$haveit"; then
     1298        if test "X$additional_libdir" = "X/usr/local/lib"; then
     1299          if test -n "$GCC"; then
     1300            case $host_os in
     1301              linux*) haveit=yes;;
     1302            esac
     1303          fi
     1304        fi
     1305        if test -z "$haveit"; then
     1306          if test -d "$additional_libdir"; then
     1307            dnl Really add $additional_libdir to $LDFLAGS.
     1308            LDFLAGS="${LDFLAGS}${LDFLAGS:+ }-L$additional_libdir"
     1309          fi
     1310        fi
     1311      fi
     1312    fi
     1313  fi
     1314])
     1315
     1316dnl AC_LIB_PREPARE_PREFIX creates variables acl_final_prefix,
     1317dnl acl_final_exec_prefix, containing the values to which $prefix and
     1318dnl $exec_prefix will expand at the end of the configure script.
     1319AC_DEFUN([AC_LIB_PREPARE_PREFIX],
     1320[
     1321  dnl Unfortunately, prefix and exec_prefix get only finally determined
     1322  dnl at the end of configure.
     1323  if test "X$prefix" = "XNONE"; then
     1324    acl_final_prefix="$ac_default_prefix"
     1325  else
     1326    acl_final_prefix="$prefix"
     1327  fi
     1328  if test "X$exec_prefix" = "XNONE"; then
     1329    acl_final_exec_prefix='${prefix}'
     1330  else
     1331    acl_final_exec_prefix="$exec_prefix"
     1332  fi
     1333  acl_save_prefix="$prefix"
     1334  prefix="$acl_final_prefix"
     1335  eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
     1336  prefix="$acl_save_prefix"
     1337])
     1338
     1339dnl AC_LIB_WITH_FINAL_PREFIX([statement]) evaluates statement, with the
     1340dnl variables prefix and exec_prefix bound to the values they will have
     1341dnl at the end of the configure script.
     1342AC_DEFUN([AC_LIB_WITH_FINAL_PREFIX],
     1343[
     1344  acl_save_prefix="$prefix"
     1345  prefix="$acl_final_prefix"
     1346  acl_save_exec_prefix="$exec_prefix"
     1347  exec_prefix="$acl_final_exec_prefix"
     1348  $1
     1349  exec_prefix="$acl_save_exec_prefix"
     1350  prefix="$acl_save_prefix"
     1351])
     1352
     1353# nls.m4 serial 1 (gettext-0.12)
     1354dnl Copyright (C) 1995-2003 Free Software Foundation, Inc.
     1355dnl This file is free software, distributed under the terms of the GNU
     1356dnl General Public License.  As a special exception to the GNU General
     1357dnl Public License, this file may be distributed as part of a program
     1358dnl that contains a configuration script generated by Autoconf, under
     1359dnl the same distribution terms as the rest of that program.
     1360dnl
     1361dnl This file can can be used in projects which are not available under
     1362dnl the GNU General Public License or the GNU Library General Public
     1363dnl License but which still want to provide support for the GNU gettext
     1364dnl functionality.
     1365dnl Please note that the actual code of the GNU gettext library is covered
     1366dnl by the GNU Library General Public License, and the rest of the GNU
     1367dnl gettext package package is covered by the GNU General Public License.
     1368dnl They are *not* in the public domain.
     1369
     1370dnl Authors:
     1371dnl   Ulrich Drepper <drepper@cygnus.com>, 1995-2000.
     1372dnl   Bruno Haible <haible@clisp.cons.org>, 2000-2003.
     1373
     1374AC_DEFUN([AM_NLS],
     1375[
     1376  AC_MSG_CHECKING([whether NLS is requested])
     1377  dnl Default is enabled NLS
     1378  AC_ARG_ENABLE(nls,
     1379    [  --disable-nls           do not use Native Language Support],
     1380    USE_NLS=$enableval, USE_NLS=yes)
     1381  AC_MSG_RESULT($USE_NLS)
     1382  AC_SUBST(USE_NLS)
     1383])
     1384
     1385AC_DEFUN([AM_MKINSTALLDIRS],
     1386[
     1387  dnl If the AC_CONFIG_AUX_DIR macro for autoconf is used we possibly
     1388  dnl find the mkinstalldirs script in another subdir but $(top_srcdir).
     1389  dnl Try to locate it.
     1390  MKINSTALLDIRS=
     1391  if test -n "$ac_aux_dir"; then
     1392    case "$ac_aux_dir" in
     1393      /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
     1394      *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
     1395    esac
     1396  fi
     1397  if test -z "$MKINSTALLDIRS"; then
     1398    MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
     1399  fi
     1400  AC_SUBST(MKINSTALLDIRS)
     1401])
     1402
     1403# po.m4 serial 1 (gettext-0.12)
     1404dnl Copyright (C) 1995-2003 Free Software Foundation, Inc.
     1405dnl This file is free software, distributed under the terms of the GNU
     1406dnl General Public License.  As a special exception to the GNU General
     1407dnl Public License, this file may be distributed as part of a program
     1408dnl that contains a configuration script generated by Autoconf, under
     1409dnl the same distribution terms as the rest of that program.
     1410dnl
     1411dnl This file can can be used in projects which are not available under
     1412dnl the GNU General Public License or the GNU Library General Public
     1413dnl License but which still want to provide support for the GNU gettext
     1414dnl functionality.
     1415dnl Please note that the actual code of the GNU gettext library is covered
     1416dnl by the GNU Library General Public License, and the rest of the GNU
     1417dnl gettext package package is covered by the GNU General Public License.
     1418dnl They are *not* in the public domain.
     1419
     1420dnl Authors:
     1421dnl   Ulrich Drepper <drepper@cygnus.com>, 1995-2000.
     1422dnl   Bruno Haible <haible@clisp.cons.org>, 2000-2003.
     1423
     1424dnl Checks for all prerequisites of the po subdirectory.
     1425AC_DEFUN([AM_PO_SUBDIRS],
     1426[
     1427  AC_REQUIRE([AC_PROG_MAKE_SET])dnl
     1428  AC_REQUIRE([AC_PROG_INSTALL])dnl
     1429  AC_REQUIRE([AM_MKINSTALLDIRS])dnl
     1430  AC_REQUIRE([AM_NLS])dnl
     1431
     1432  dnl Perform the following tests also if --disable-nls has been given,
     1433  dnl because they are needed for "make dist" to work.
     1434
     1435  dnl Search for GNU msgfmt in the PATH.
     1436  dnl The first test excludes Solaris msgfmt and early GNU msgfmt versions.
     1437  dnl The second test excludes FreeBSD msgfmt.
     1438  AM_PATH_PROG_WITH_TEST(MSGFMT, msgfmt,
     1439    [$ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
     1440     (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi)],
     1441    :)
     1442  AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)
     1443
     1444  dnl Search for GNU xgettext 0.12 or newer in the PATH.
     1445  dnl The first test excludes Solaris xgettext and early GNU xgettext versions.
     1446  dnl The second test excludes FreeBSD xgettext.
     1447  AM_PATH_PROG_WITH_TEST(XGETTEXT, xgettext,
     1448    [$ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
     1449     (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)],
     1450    :)
     1451  dnl Remove leftover from FreeBSD xgettext call.
     1452  rm -f messages.po
     1453
     1454  dnl Search for GNU msgmerge 0.11 or newer in the PATH.
     1455  AM_PATH_PROG_WITH_TEST(MSGMERGE, msgmerge,
     1456    [$ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1], :)
     1457
     1458  dnl This could go away some day; the PATH_PROG_WITH_TEST already does it.
     1459  dnl Test whether we really found GNU msgfmt.
     1460  if test "$GMSGFMT" != ":"; then
     1461    dnl If it is no GNU msgfmt we define it as : so that the
     1462    dnl Makefiles still can work.
     1463    if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
     1464       (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
     1465      : ;
     1466    else
     1467      GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
     1468      AC_MSG_RESULT(
     1469        [found $GMSGFMT program is not GNU msgfmt; ignore it])
     1470      GMSGFMT=":"
     1471    fi
     1472  fi
     1473
     1474  dnl This could go away some day; the PATH_PROG_WITH_TEST already does it.
     1475  dnl Test whether we really found GNU xgettext.
     1476  if test "$XGETTEXT" != ":"; then
     1477    dnl If it is no GNU xgettext we define it as : so that the
     1478    dnl Makefiles still can work.
     1479    if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
     1480       (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
     1481      : ;
     1482    else
     1483      AC_MSG_RESULT(
     1484        [found xgettext program is not GNU xgettext; ignore it])
     1485      XGETTEXT=":"
     1486    fi
     1487    dnl Remove leftover from FreeBSD xgettext call.
     1488    rm -f messages.po
     1489  fi
     1490
     1491  AC_OUTPUT_COMMANDS([
     1492    for ac_file in $CONFIG_FILES; do
     1493      # Support "outfile[:infile[:infile...]]"
     1494      case "$ac_file" in
     1495        *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
     1496      esac
     1497      # PO directories have a Makefile.in generated from Makefile.in.in.
     1498      case "$ac_file" in */Makefile.in)
     1499        # Adjust a relative srcdir.
     1500        ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
     1501        ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
     1502        ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
     1503        # In autoconf-2.13 it is called $ac_given_srcdir.
     1504        # In autoconf-2.50 it is called $srcdir.
     1505        test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
     1506        case "$ac_given_srcdir" in
     1507          .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
     1508          /*) top_srcdir="$ac_given_srcdir" ;;
     1509          *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
     1510        esac
     1511        if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
     1512          rm -f "$ac_dir/POTFILES"
     1513          test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
     1514          cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
     1515          POMAKEFILEDEPS="POTFILES.in"
     1516          # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
     1517          # on $ac_dir but don't depend on user-specified configuration
     1518          # parameters.
     1519          if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
     1520            # The LINGUAS file contains the set of available languages.
     1521            if test -n "$OBSOLETE_ALL_LINGUAS"; then
     1522              test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
     1523            fi
     1524            ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
     1525            # Hide the ALL_LINGUAS assigment from automake.
     1526            eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
     1527            POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
     1528          else
     1529            # The set of available languages was given in configure.in.
     1530            eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
     1531          fi
     1532          case "$ac_given_srcdir" in
     1533            .) srcdirpre= ;;
     1534            *) srcdirpre='$(srcdir)/' ;;
     1535          esac
     1536          POFILES=
     1537          GMOFILES=
     1538          UPDATEPOFILES=
     1539          DUMMYPOFILES=
     1540          for lang in $ALL_LINGUAS; do
     1541            POFILES="$POFILES $srcdirpre$lang.po"
     1542            GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
     1543            UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
     1544            DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
     1545          done
     1546          # CATALOGS depends on both $ac_dir and the user's LINGUAS
     1547          # environment variable.
     1548          INST_LINGUAS=
     1549          if test -n "$ALL_LINGUAS"; then
     1550            for presentlang in $ALL_LINGUAS; do
     1551              useit=no
     1552              if test "%UNSET%" != "$LINGUAS"; then
     1553                desiredlanguages="$LINGUAS"
     1554              else
     1555                desiredlanguages="$ALL_LINGUAS"
     1556              fi
     1557              for desiredlang in $desiredlanguages; do
     1558                # Use the presentlang catalog if desiredlang is
     1559                #   a. equal to presentlang, or
     1560                #   b. a variant of presentlang (because in this case,
     1561                #      presentlang can be used as a fallback for messages
     1562                #      which are not translated in the desiredlang catalog).
     1563                case "$desiredlang" in
     1564                  "$presentlang"*) useit=yes;;
     1565                esac
     1566              done
     1567              if test $useit = yes; then
     1568                INST_LINGUAS="$INST_LINGUAS $presentlang"
     1569              fi
     1570            done
     1571          fi
     1572          CATALOGS=
     1573          if test -n "$INST_LINGUAS"; then
     1574            for lang in $INST_LINGUAS; do
     1575              CATALOGS="$CATALOGS $lang.gmo"
     1576            done
     1577          fi
     1578          test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
     1579          sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
     1580          for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
     1581            if test -f "$f"; then
     1582              case "$f" in
     1583                *.orig | *.bak | *~) ;;
     1584                *) cat "$f" >> "$ac_dir/Makefile" ;;
     1585              esac
     1586            fi
     1587          done
     1588        fi
     1589        ;;
     1590      esac
     1591    done],
     1592   [# Capture the value of obsolete ALL_LINGUAS because we need it to compute
     1593    # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
     1594    # from automake.
     1595    eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
     1596    # Capture the value of LINGUAS because we need it to compute CATALOGS.
     1597    LINGUAS="${LINGUAS-%UNSET%}"
     1598   ])
     1599])
     1600
     1601# progtest.m4 serial 3 (gettext-0.12)
     1602dnl Copyright (C) 1996-2003 Free Software Foundation, Inc.
     1603dnl This file is free software, distributed under the terms of the GNU
     1604dnl General Public License.  As a special exception to the GNU General
     1605dnl Public License, this file may be distributed as part of a program
     1606dnl that contains a configuration script generated by Autoconf, under
     1607dnl the same distribution terms as the rest of that program.
     1608dnl
     1609dnl This file can can be used in projects which are not available under
     1610dnl the GNU General Public License or the GNU Library General Public
     1611dnl License but which still want to provide support for the GNU gettext
     1612dnl functionality.
     1613dnl Please note that the actual code of the GNU gettext library is covered
     1614dnl by the GNU Library General Public License, and the rest of the GNU
     1615dnl gettext package package is covered by the GNU General Public License.
     1616dnl They are *not* in the public domain.
     1617
     1618dnl Authors:
     1619dnl   Ulrich Drepper <drepper@cygnus.com>, 1996.
     1620
     1621# Search path for a program which passes the given test.
     1622
     1623dnl AM_PATH_PROG_WITH_TEST(VARIABLE, PROG-TO-CHECK-FOR,
     1624dnl   TEST-PERFORMED-ON-FOUND_PROGRAM [, VALUE-IF-NOT-FOUND [, PATH]])
     1625AC_DEFUN([AM_PATH_PROG_WITH_TEST],
     1626[
     1627# Prepare PATH_SEPARATOR.
     1628# The user is always right.
     1629if test "${PATH_SEPARATOR+set}" != set; then
     1630  echo "#! /bin/sh" >conf$$.sh
     1631  echo  "exit 0"   >>conf$$.sh
     1632  chmod +x conf$$.sh
     1633  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
     1634    PATH_SEPARATOR=';'
     1635  else
     1636    PATH_SEPARATOR=:
     1637  fi
     1638  rm -f conf$$.sh
     1639fi
     1640
     1641# Find out how to test for executable files. Don't use a zero-byte file,
     1642# as systems may use methods other than mode bits to determine executability.
     1643cat >conf$$.file <<_ASEOF
     1644#! /bin/sh
     1645exit 0
     1646_ASEOF
     1647chmod +x conf$$.file
     1648if test -x conf$$.file >/dev/null 2>&1; then
     1649  ac_executable_p="test -x"
     1650else
     1651  ac_executable_p="test -f"
     1652fi
     1653rm -f conf$$.file
     1654
     1655# Extract the first word of "$2", so it can be a program name with args.
     1656set dummy $2; ac_word=[$]2
     1657AC_MSG_CHECKING([for $ac_word])
     1658AC_CACHE_VAL(ac_cv_path_$1,
     1659[case "[$]$1" in
     1660  [[\\/]]* | ?:[[\\/]]*)
     1661    ac_cv_path_$1="[$]$1" # Let the user override the test with a path.
     1662    ;;
     1663  *)
     1664    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
     1665    for ac_dir in ifelse([$5], , $PATH, [$5]); do
     1666      IFS="$ac_save_IFS"
     1667      test -z "$ac_dir" && ac_dir=.
     1668      for ac_exec_ext in '' $ac_executable_extensions; do
     1669        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
     1670          if [$3]; then
     1671            ac_cv_path_$1="$ac_dir/$ac_word$ac_exec_ext"
     1672            break 2
     1673          fi
     1674        fi
     1675      done
     1676    done
     1677    IFS="$ac_save_IFS"
     1678dnl If no 4th arg is given, leave the cache variable unset,
     1679dnl so AC_PATH_PROGS will keep looking.
     1680ifelse([$4], , , [  test -z "[$]ac_cv_path_$1" && ac_cv_path_$1="$4"
     1681])dnl
     1682    ;;
     1683esac])dnl
     1684$1="$ac_cv_path_$1"
     1685if test ifelse([$4], , [-n "[$]$1"], ["[$]$1" != "$4"]); then
     1686  AC_MSG_RESULT([$]$1)
     1687else
     1688  AC_MSG_RESULT(no)
     1689fi
     1690AC_SUBST($1)dnl
     1691])
     1692
    141693#                                                        -*- Autoconf -*-
    151694# Copyright (C) 2002, 2003  Free Software Foundation, Inc.
     
    411720# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
    421721AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
    43          [AM_AUTOMAKE_VERSION([1.8.2])])
     1722         [AM_AUTOMAKE_VERSION([1.8.3])])
    441723
    451724# AM_AUX_DIR_EXPAND
     
    1501829fi])])
    1511830
    152 # serial 6                                              -*- Autoconf -*-
     1831# serial 7                                              -*- Autoconf -*-
    1531832
    1541833# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004
     
    2371916    for i in 1 2 3 4 5 6; do
    2381917      echo '#include "conftst'$i'.h"' >> sub/conftest.c
    239       : > sub/conftst$i.h
     1918      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
     1919      # Solaris 8's {/usr,}/bin/sh.
     1920      touch sub/conftst$i.h
    2401921    done
    2411922    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
     
    3131994# Generate code to set up dependency tracking.   -*- Autoconf -*-
    3141995
    315 # Copyright (C) 1999, 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
     1996# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc.
    3161997
    3171998# This program is free software; you can redistribute it and/or modify
     
    3522033  # Extract the definition of DEP_FILES from the Makefile without
    3532034  # running `make'.
    354   DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
     2035  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
    3552036  test -z "$DEPDIR" && continue
    3562037  # When using ansi2knr, U may be empty or an underscore; expand it
    357   U=`sed -n -e '/^U = / s///p' < "$mf"`
     2038  U=`sed -n 's/^U = //p' < "$mf"`
    3582039  test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
    3592040  # We invoke sed twice because it is the simplest approach to
    3602041  # changing $(DEPDIR) to its actual value in the expansion.
    361   for file in `sed -n -e '
     2042  for file in `sed -n '
    3622043    /^DEP_FILES = .*\\\\$/ {
    3632044      s/^DEP_FILES = //
     
    7972478# Do not use -m 0755 and let people choose whatever they expect by
    7982479# setting umask.
     2480#
     2481# We cannot accept any implementation of `mkdir' that recognizes `-p'.
     2482# Some implementations (such as Solaris 8's) are not thread-safe: if a
     2483# parallel make tries to run `mkdir -p a/b' and `mkdir -p a/c'
     2484# concurrently, both version can detect that a/ is missing, but only
     2485# one can create it and the other will error out.  Consequently we
     2486# restrict ourselves to GNU make (using the --version option ensures
     2487# this.)
    7992488AC_DEFUN([AM_PROG_MKDIR_P],
    800 [if mkdir -p -- . 2>/dev/null; then
     2489[if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
    8012490  # Keeping the `.' argument allows $(mkdir_p) to be used without
    8022491  # argument.  Indeed, we sometimes output rules like
     
    8112500  # directories to create, and then abort because `.' already
    8122501  # exists.
    813   for d in ./-p ./--;
     2502  for d in ./-p ./--version;
    8142503  do
    8152504    test -d $d && rmdir $d
     
    10082697AC_SUBST([INSTALL_STRIP_PROGRAM])])
    10092698
    1010 m4_include([config/dospaths.m4])
    1011 m4_include([config/gettext.m4])
    1012 m4_include([config/iconv.m4])
    1013 m4_include([config/lib-ld.m4])
    1014 m4_include([config/lib-link.m4])
    1015 m4_include([config/lib-prefix.m4])
    1016 m4_include([config/nls.m4])
    1017 m4_include([config/po.m4])
    1018 m4_include([config/progtest.m4])
    10192699m4_include([acinclude.m4])
  • trunk/src/gmake/config/Makefile.in

    r151 r200  
    1 # Makefile.in generated by automake 1.8.2 from Makefile.am.
     1# Makefile.in generated by automake 1.8.3 from Makefile.am.
    22# @configure_input@
    33
     
    4242        install-sh missing mkinstalldirs texinfo.tex
    4343ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
    44 am__aclocal_m4_deps = $(top_srcdir)/config/dospaths.m4 \
    45         $(top_srcdir)/config/gettext.m4 $(top_srcdir)/config/iconv.m4 \
    46         $(top_srcdir)/config/lib-ld.m4 \
    47         $(top_srcdir)/config/lib-link.m4 \
    48         $(top_srcdir)/config/lib-prefix.m4 $(top_srcdir)/config/nls.m4 \
    49         $(top_srcdir)/config/po.m4 $(top_srcdir)/config/progtest.m4 \
    50         $(top_srcdir)/acinclude.m4 $(top_srcdir)/configure.in
     44am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \
     45        $(top_srcdir)/configure.in
    5146am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
    5247        $(ACLOCAL_M4)
  • trunk/src/gmake/configure

    r151 r200  
    15181518fi
    15191519
    1520 if mkdir -p -- . 2>/dev/null; then
     1520if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
    15211521  # Keeping the `.' argument allows $(mkdir_p) to be used without
    15221522  # argument.  Indeed, we sometimes output rules like
     
    15311531  # directories to create, and then abort because `.' already
    15321532  # exists.
    1533   for d in ./-p ./--;
     1533  for d in ./-p ./--version;
    15341534  do
    15351535    test -d $d && rmdir $d
     
    28052805    for i in 1 2 3 4 5 6; do
    28062806      echo '#include "conftst'$i'.h"' >> sub/conftest.c
    2807       : > sub/conftst$i.h
     2807      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
     2808      # Solaris 8's {/usr,}/bin/sh.
     2809      touch sub/conftst$i.h
    28082810    done
    28092811    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
     
    45404542      # but apparently some GNU ld's only accept -v.
    45414543      # Break only if it was the GNU/non-GNU ld that we prefer.
    4542       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
    4543       *GNU* | *'with BFD'*)
    4544         test "$with_gnu_ld" != no && break ;;
    4545       *)
    4546         test "$with_gnu_ld" != yes && break ;;
    4547       esac
     4544      if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
     4545        test "$with_gnu_ld" != no && break
     4546      else
     4547        test "$with_gnu_ld" != yes && break
     4548      fi
    45484549    fi
    45494550  done
     
    45714572else
    45724573  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
    4573 case `$LD -v 2>&1 </dev/null` in
    4574 *GNU* | *'with BFD'*)
    4575   acl_cv_prog_gnu_ld=yes ;;
    4576 *)
    4577   acl_cv_prog_gnu_ld=no ;;
    4578 esac
     4574if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
     4575  acl_cv_prog_gnu_ld=yes
     4576else
     4577  acl_cv_prog_gnu_ld=no
     4578fi
    45794579fi
    45804580echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
     
    81158115
    81168116# Check for DOS-style pathnames.
    8117 
    8118     echo "$as_me:$LINENO: checking whether system uses MSDOS-style paths" >&5
    8119 echo $ECHO_N "checking whether system uses MSDOS-style paths... $ECHO_C" >&6
    8120 if test "${ac_cv_dos_paths+set}" = set; then
    8121   echo $ECHO_N "(cached) $ECHO_C" >&6
    8122 else
    8123 
    8124         cat >conftest.$ac_ext <<_ACEOF
    8125 
    8126 #if !defined _WIN32 && !defined __WIN32__ && !defined __MSDOS__ && !defined __EMX__
    8127 neither MSDOS nor Windows nor OS2
    8128 #endif
    8129 
    8130 _ACEOF
    8131 rm -f conftest.$ac_objext
    8132 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    8133   (eval $ac_compile) 2>conftest.er1
    8134   ac_status=$?
    8135   grep -v '^ *+' conftest.er1 >conftest.err
    8136   rm -f conftest.er1
    8137   cat conftest.err >&5
    8138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    8139   (exit $ac_status); } &&
    8140          { ac_try='test -z "$ac_c_werror_flag"
    8141                          || test ! -s conftest.err'
    8142   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    8143   (eval $ac_try) 2>&5
    8144   ac_status=$?
    8145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    8146   (exit $ac_status); }; } &&
    8147          { ac_try='test -s conftest.$ac_objext'
    8148   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    8149   (eval $ac_try) 2>&5
    8150   ac_status=$?
    8151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    8152   (exit $ac_status); }; }; then
    8153   ac_cv_dos_paths=yes
    8154 else
    8155   echo "$as_me: failed program was:" >&5
    8156 sed 's/^/| /' conftest.$ac_ext >&5
    8157 
    8158 ac_cv_dos_paths=no
    8159 fi
    8160 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    8161 
    8162 fi
    8163 echo "$as_me:$LINENO: result: $ac_cv_dos_paths" >&5
    8164 echo "${ECHO_T}$ac_cv_dos_paths" >&6
    8165 
    8166     if test x"$ac_cv_dos_paths" = xyes; then
    8167 
    8168 cat >>confdefs.h <<_ACEOF
    8169 #define HAVE_DOS_PATHS 1
    8170 _ACEOF
    8171 
    8172     fi
    8173 
     8117pds_AC_DOS_PATHS
    81748118
    81758119# See if we have a standard version of gettimeofday().  Since actual
     
    1418614130AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
    1418714131# Capture the value of obsolete ALL_LINGUAS because we need it to compute
    14188     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
     14132    # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
    1418914133    # from automake.
    1419014134    eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
     
    1500114945  # Extract the definition of DEP_FILES from the Makefile without
    1500214946  # running `make'.
    15003   DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
     14947  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
    1500414948  test -z "$DEPDIR" && continue
    1500514949  # When using ansi2knr, U may be empty or an underscore; expand it
    15006   U=`sed -n -e '/^U = / s///p' < "$mf"`
     14950  U=`sed -n 's/^U = //p' < "$mf"`
    1500714951  test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
    1500814952  # We invoke sed twice because it is the simplest approach to
    1500914953  # changing $(DEPDIR) to its actual value in the expansion.
    15010   for file in `sed -n -e '
     14954  for file in `sed -n '
    1501114955    /^DEP_FILES = .*\\\\$/ {
    1501214956      s/^DEP_FILES = //
     
    1508915033          cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
    1509015034          POMAKEFILEDEPS="POTFILES.in"
    15091           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
     15035          # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
    1509215036          # on $ac_dir but don't depend on user-specified configuration
    1509315037          # parameters.
     
    1510515049            eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
    1510615050          fi
    15107           # Compute POFILES
    15108           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
    15109           # Compute UPDATEPOFILES
    15110           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
    15111           # Compute DUMMYPOFILES
    15112           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
    15113           # Compute GMOFILES
    15114           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
    1511515051          case "$ac_given_srcdir" in
    1511615052            .) srcdirpre= ;;
     
    1511815054          esac
    1511915055          POFILES=
     15056          GMOFILES=
    1512015057          UPDATEPOFILES=
    1512115058          DUMMYPOFILES=
    15122           GMOFILES=
    1512315059          for lang in $ALL_LINGUAS; do
    1512415060            POFILES="$POFILES $srcdirpre$lang.po"
     15061            GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
    1512515062            UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
    1512615063            DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
    15127             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
    1512815064          done
    1512915065          # CATALOGS depends on both $ac_dir and the user's LINGUAS
     
    1516015096          fi
    1516115097          test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
    15162           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"
     15098          sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
    1516315099          for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
    1516415100            if test -f "$f"; then
  • trunk/src/gmake/doc/Makefile.in

    r151 r200  
    1 # Makefile.in generated by automake 1.8.2 from Makefile.am.
     1# Makefile.in generated by automake 1.8.3 from Makefile.am.
    22# @configure_input@
    33
     
    4141        $(srcdir)/Makefile.in
    4242ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
    43 am__aclocal_m4_deps = $(top_srcdir)/config/dospaths.m4 \
    44         $(top_srcdir)/config/gettext.m4 $(top_srcdir)/config/iconv.m4 \
    45         $(top_srcdir)/config/lib-ld.m4 \
    46         $(top_srcdir)/config/lib-link.m4 \
    47         $(top_srcdir)/config/lib-prefix.m4 $(top_srcdir)/config/nls.m4 \
    48         $(top_srcdir)/config/po.m4 $(top_srcdir)/config/progtest.m4 \
    49         $(top_srcdir)/acinclude.m4 $(top_srcdir)/configure.in
     43am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \
     44        $(top_srcdir)/configure.in
    5045am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
    5146        $(ACLOCAL_M4)
     
    6863AM_MAKEINFOHTMLFLAGS = $(AM_MAKEINFOFLAGS)
    6964DVIPS = dvips
    70 am__installdirs = $(DESTDIR)$(infodir)
     65am__installdirs = "$(DESTDIR)$(infodir)"
    7166DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
    7267ACLOCAL = @ACLOCAL@
     
    269264          for file in $$list; do \
    270265            relfile=`echo "$$file" | sed 's|^.*/||'`; \
    271             echo " install-info --info-dir=$(DESTDIR)$(infodir) --remove $(DESTDIR)$(infodir)/$$relfile"; \
    272             install-info --info-dir=$(DESTDIR)$(infodir) --remove $(DESTDIR)$(infodir)/$$relfile; \
     266            echo " install-info --info-dir='$(DESTDIR)$(infodir)' --remove '$(DESTDIR)$(infodir)/$$relfile'"; \
     267            install-info --info-dir="$(DESTDIR)$(infodir)" --remove "$(DESTDIR)$(infodir)/$$relfile"; \
    273268          done; \
    274269        else :; fi
     
    278273          relfile=`echo "$$file" | sed 's|^.*/||'`; \
    279274          relfile_i=`echo "$$relfile" | sed 's|\.info$$||;s|$$|.i|'`; \
    280           (if cd $(DESTDIR)$(infodir); then \
     275          (if cd "$(DESTDIR)$(infodir)"; then \
    281276             echo " rm -f $$relfile $$relfile-[0-9] $$relfile-[0-9][0-9] $$relfile_i[0-9] $$relfile_i[0-9][0-9])"; \
    282277             rm -f $$relfile $$relfile-[0-9] $$relfile-[0-9][0-9] $$relfile_i[0-9] $$relfile_i[0-9][0-9]; \
     
    351346all-am: Makefile $(INFO_DEPS)
    352347installdirs:
    353         $(mkdir_p) $(DESTDIR)$(infodir)
     348        for dir in "$(DESTDIR)$(infodir)"; do \
     349          test -z "$$dir" || $(mkdir_p) "$$dir"; \
     350        done
    354351install: install-am
    355352install-exec: install-exec-am
     
    403400install-info-am: $(INFO_DEPS)
    404401        @$(NORMAL_INSTALL)
    405         $(mkdir_p) $(DESTDIR)$(infodir)
     402        test -z "$(infodir)" || $(mkdir_p) "$(DESTDIR)$(infodir)"
    406403        @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
    407404        list='$(INFO_DEPS)'; \
     
    416413            if test -f $$ifile; then \
    417414              relfile=`echo "$$ifile" | sed 's|^.*/||'`; \
    418               echo " $(INSTALL_DATA) $$ifile $(DESTDIR)$(infodir)/$$relfile"; \
    419               $(INSTALL_DATA) $$ifile $(DESTDIR)$(infodir)/$$relfile; \
     415              echo " $(INSTALL_DATA) '$$ifile' '$(DESTDIR)$(infodir)/$$relfile'"; \
     416              $(INSTALL_DATA) "$$ifile" "$(DESTDIR)$(infodir)/$$relfile"; \
    420417            else : ; fi; \
    421418          done; \
     
    427424          for file in $$list; do \
    428425            relfile=`echo "$$file" | sed 's|^.*/||'`; \
    429             echo " install-info --info-dir=$(DESTDIR)$(infodir) $(DESTDIR)$(infodir)/$$relfile";\
    430             install-info --info-dir=$(DESTDIR)$(infodir) $(DESTDIR)$(infodir)/$$relfile || :;\
     426            echo " install-info --info-dir='$(DESTDIR)$(infodir)' '$(DESTDIR)$(infodir)/$$relfile'";\
     427            install-info --info-dir="$(DESTDIR)$(infodir)" "$(DESTDIR)$(infodir)/$$relfile" || :;\
    431428          done; \
    432429        else : ; fi
  • trunk/src/gmake/doc/make.info

    r151 r200  
    1 This is make.info, produced by makeinfo version 4.6 from make.texi.
     1This is ../../doc/make.info, produced by makeinfo version 4.6 from
     2../../doc/make.texi.
    23
    34INFO-DIR-SECTION GNU Packages
     
    2526
    2627Indirect:
    27 make.info-1: 997
    28 make.info-2: 300500
     28make.info-1: 1017
     29make.info-2: 300520
    2930
    3031Tag Table:
    3132(Indirect)
    32 Node: Top997
    33 Node: Overview13531
    34 Node: Preparing14535
    35 Node: Reading15507
    36 Node: Bugs16426
    37 Node: Introduction18248
    38 Node: Rule Introduction19832
    39 Node: Simple Makefile21568
    40 Node: How Make Works25189
    41 Node: Variables Simplify27677
    42 Node: make Deduces29880
    43 Node: Combine By Prerequisite31627
    44 Node: Cleanup32658
    45 Node: Makefiles34069
    46 Node: Makefile Contents34952
    47 Node: Makefile Names37899
    48 Node: Include39498
    49 Ref: Include-Footnote-143049
    50 Node: MAKEFILES Variable43183
    51 Node: MAKEFILE_LIST Variable44685
    52 Node: Special Variables46004
    53 Node: Remaking Makefiles46739
    54 Node: Overriding Makefiles50981
    55 Node: Reading Makefiles53031
    56 Node: Rules55558
    57 Node: Rule Example58226
    58 Node: Rule Syntax59075
    59 Node: Prerequisite Types61296
    60 Node: Wildcards63064
    61 Node: Wildcard Examples64747
    62 Node: Wildcard Pitfall65991
    63 Node: Wildcard Function67773
    64 Node: Directory Search69550
    65 Node: General Search70684
    66 Node: Selective Search72387
    67 Node: Search Algorithm75363
    68 Node: Commands/Search77870
    69 Node: Implicit/Search79205
    70 Node: Libraries/Search80137
    71 Node: Phony Targets82219
    72 Node: Force Targets87195
    73 Node: Empty Targets88232
    74 Node: Special Targets89519
    75 Node: Multiple Targets96215
    76 Node: Multiple Rules98075
    77 Node: Static Pattern100301
    78 Node: Static Usage100943
    79 Node: Static versus Implicit104664
    80 Node: Double-Colon106394
    81 Node: Automatic Prerequisites108041
    82 Node: Commands112295
    83 Node: Echoing113984
    84 Node: Execution115262
    85 Ref: Execution-Footnote-1119688
    86 Node: Parallel119834
    87 Node: Errors123417
    88 Node: Interrupts127053
    89 Node: Recursion128632
    90 Node: MAKE Variable130715
    91 Node: Variables/Recursion132966
    92 Node: Options/Recursion138111
    93 Node: -w Option143264
    94 Node: Sequences144247
    95 Node: Empty Commands147248
    96 Node: Using Variables148414
    97 Node: Reference151521
    98 Node: Flavors153077
    99 Node: Advanced158861
    100 Node: Substitution Refs159358
    101 Node: Computed Names160904
    102 Node: Values165471
    103 Node: Setting166376
    104 Node: Appending168404
    105 Node: Override Directive172319
    106 Node: Defining173695
    107 Node: Environment176151
    108 Node: Target-specific178423
    109 Node: Pattern-specific181380
    110 Node: Conditionals182772
    111 Node: Conditional Example183478
    112 Node: Conditional Syntax186062
    113 Node: Testing Flags190930
    114 Node: Functions192024
    115 Node: Syntax of Functions193366
    116 Node: Text Functions195557
    117 Node: File Name Functions203707
    118 Node: Foreach Function208146
    119 Node: If Function211346
    120 Node: Call Function212614
    121 Node: Value Function215496
    122 Node: Eval Function216930
    123 Node: Origin Function219236
    124 Node: Shell Function222445
    125 Node: Make Control Functions224026
    126 Node: Running225456
    127 Node: Makefile Arguments227441
    128 Node: Goals228149
    129 Node: Instead of Execution232704
    130 Node: Avoiding Compilation235982
    131 Node: Overriding237949
    132 Node: Testing240239
    133 Node: Options Summary242116
    134 Node: Implicit Rules251547
    135 Node: Using Implicit253691
    136 Node: Catalogue of Rules257220
    137 Node: Implicit Variables266203
    138 Node: Chained Rules270429
    139 Node: Pattern Rules274428
    140 Node: Pattern Intro275954
    141 Node: Pattern Examples278802
    142 Node: Automatic Variables280597
    143 Node: Pattern Match288760
    144 Node: Match-Anything Rules290381
    145 Node: Canceling Rules294242
    146 Node: Last Resort294944
    147 Node: Suffix Rules296781
    148 Node: Implicit Rule Search300500
    149 Node: Archives304009
    150 Node: Archive Members304701
    151 Node: Archive Update306297
    152 Node: Archive Symbols308201
    153 Node: Archive Pitfalls309421
    154 Node: Archive Suffix Rules310134
    155 Node: Features311671
    156 Node: Missing320218
    157 Node: Makefile Conventions323948
    158 Node: Makefile Basics324728
    159 Node: Utilities in Makefiles327885
    160 Node: Command Variables330013
    161 Node: Directory Variables333573
    162 Node: Standard Targets344450
    163 Ref: Standard Targets-Footnote-1355704
    164 Node: Install Command Categories355804
    165 Node: Quick Reference360369
    166 Node: Error Messages370113
    167 Node: Complex Makefile377782
    168 Node: GNU Free Documentation License386462
    169 Node: Concept Index406354
    170 Node: Name Index451260
     33Node: Top1017
     34Node: Overview13551
     35Node: Preparing14555
     36Node: Reading15527
     37Node: Bugs16446
     38Node: Introduction18268
     39Node: Rule Introduction19852
     40Node: Simple Makefile21588
     41Node: How Make Works25209
     42Node: Variables Simplify27697
     43Node: make Deduces29900
     44Node: Combine By Prerequisite31647
     45Node: Cleanup32678
     46Node: Makefiles34089
     47Node: Makefile Contents34972
     48Node: Makefile Names37919
     49Node: Include39518
     50Ref: Include-Footnote-143069
     51Node: MAKEFILES Variable43203
     52Node: MAKEFILE_LIST Variable44705
     53Node: Special Variables46024
     54Node: Remaking Makefiles46759
     55Node: Overriding Makefiles51001
     56Node: Reading Makefiles53051
     57Node: Rules55578
     58Node: Rule Example58246
     59Node: Rule Syntax59095
     60Node: Prerequisite Types61316
     61Node: Wildcards63084
     62Node: Wildcard Examples64767
     63Node: Wildcard Pitfall66011
     64Node: Wildcard Function67793
     65Node: Directory Search69570
     66Node: General Search70704
     67Node: Selective Search72407
     68Node: Search Algorithm75383
     69Node: Commands/Search77890
     70Node: Implicit/Search79225
     71Node: Libraries/Search80157
     72Node: Phony Targets82239
     73Node: Force Targets87215
     74Node: Empty Targets88252
     75Node: Special Targets89539
     76Node: Multiple Targets96235
     77Node: Multiple Rules98095
     78Node: Static Pattern100321
     79Node: Static Usage100963
     80Node: Static versus Implicit104684
     81Node: Double-Colon106414
     82Node: Automatic Prerequisites108061
     83Node: Commands112315
     84Node: Echoing114004
     85Node: Execution115282
     86Ref: Execution-Footnote-1119708
     87Node: Parallel119854
     88Node: Errors123437
     89Node: Interrupts127073
     90Node: Recursion128652
     91Node: MAKE Variable130735
     92Node: Variables/Recursion132986
     93Node: Options/Recursion138131
     94Node: -w Option143284
     95Node: Sequences144267
     96Node: Empty Commands147268
     97Node: Using Variables148434
     98Node: Reference151541
     99Node: Flavors153097
     100Node: Advanced158881
     101Node: Substitution Refs159378
     102Node: Computed Names160924
     103Node: Values165491
     104Node: Setting166396
     105Node: Appending168424
     106Node: Override Directive172339
     107Node: Defining173715
     108Node: Environment176171
     109Node: Target-specific178443
     110Node: Pattern-specific181400
     111Node: Conditionals182792
     112Node: Conditional Example183498
     113Node: Conditional Syntax186082
     114Node: Testing Flags190950
     115Node: Functions192044
     116Node: Syntax of Functions193386
     117Node: Text Functions195577
     118Node: File Name Functions203727
     119Node: Foreach Function208166
     120Node: If Function211366
     121Node: Call Function212634
     122Node: Value Function215516
     123Node: Eval Function216950
     124Node: Origin Function219256
     125Node: Shell Function222465
     126Node: Make Control Functions224046
     127Node: Running225476
     128Node: Makefile Arguments227461
     129Node: Goals228169
     130Node: Instead of Execution232724
     131Node: Avoiding Compilation236002
     132Node: Overriding237969
     133Node: Testing240259
     134Node: Options Summary242136
     135Node: Implicit Rules251567
     136Node: Using Implicit253711
     137Node: Catalogue of Rules257240
     138Node: Implicit Variables266223
     139Node: Chained Rules270449
     140Node: Pattern Rules274448
     141Node: Pattern Intro275974
     142Node: Pattern Examples278822
     143Node: Automatic Variables280617
     144Node: Pattern Match288780
     145Node: Match-Anything Rules290401
     146Node: Canceling Rules294262
     147Node: Last Resort294964
     148Node: Suffix Rules296801
     149Node: Implicit Rule Search300520
     150Node: Archives304029
     151Node: Archive Members304721
     152Node: Archive Update306317
     153Node: Archive Symbols308221
     154Node: Archive Pitfalls309441
     155Node: Archive Suffix Rules310154
     156Node: Features311691
     157Node: Missing320238
     158Node: Makefile Conventions323968
     159Node: Makefile Basics324748
     160Node: Utilities in Makefiles327905
     161Node: Command Variables330033
     162Node: Directory Variables333593
     163Node: Standard Targets344470
     164Ref: Standard Targets-Footnote-1355724
     165Node: Install Command Categories355824
     166Node: Quick Reference360389
     167Node: Error Messages370133
     168Node: Complex Makefile377802
     169Node: GNU Free Documentation License386482
     170Node: Concept Index406374
     171Node: Name Index451280
    171172
    172173End Tag Table
  • trunk/src/gmake/doc/make.info-1

    r151 r200  
    1 This is make.info, produced by makeinfo version 4.6 from make.texi.
     1This is ../../doc/make.info, produced by makeinfo version 4.6 from
     2../../doc/make.texi.
    23
    34INFO-DIR-SECTION GNU Packages
  • trunk/src/gmake/doc/make.info-2

    r151 r200  
    1 This is make.info, produced by makeinfo version 4.6 from make.texi.
     1This is ../../doc/make.info, produced by makeinfo version 4.6 from
     2../../doc/make.texi.
    23
    34INFO-DIR-SECTION GNU Packages
  • trunk/src/gmake/glob/Makefile.in

    r151 r200  
    1 # Makefile.in generated by automake 1.8.2 from Makefile.am.
     1# Makefile.in generated by automake 1.8.3 from Makefile.am.
    22# @configure_input@
    33
     
    4444        ChangeLog
    4545ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
    46 am__aclocal_m4_deps = $(top_srcdir)/config/dospaths.m4 \
    47         $(top_srcdir)/config/gettext.m4 $(top_srcdir)/config/iconv.m4 \
    48         $(top_srcdir)/config/lib-ld.m4 \
    49         $(top_srcdir)/config/lib-link.m4 \
    50         $(top_srcdir)/config/lib-prefix.m4 $(top_srcdir)/config/nls.m4 \
    51         $(top_srcdir)/config/po.m4 $(top_srcdir)/config/progtest.m4 \
    52         $(top_srcdir)/acinclude.m4 $(top_srcdir)/configure.in
     46am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \
     47        $(top_srcdir)/configure.in
    5348am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
    5449        $(ACLOCAL_M4)
Note: See TracChangeset for help on using the changeset viewer.