• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1dnl Configuration for the gettext-tools directory of GNU gettext
2dnl Copyright (C) 1995-2020 Free Software Foundation, Inc.
3dnl
4dnl This program is free software: you can redistribute it and/or modify
5dnl it under the terms of the GNU General Public License as published by
6dnl the Free Software Foundation; either version 3 of the License, or
7dnl (at your option) any later version.
8dnl
9dnl This program is distributed in the hope that it will be useful,
10dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
11dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12dnl GNU General Public License for more details.
13dnl
14dnl You should have received a copy of the GNU General Public License
15dnl along with this program.  If not, see <https://www.gnu.org/licenses/>.
16
17dnl Process this file with autoconf to produce a configure script.
18
19AC_PREREQ([2.63])
20AC_INIT([gettext-tools],
21	m4_esyscmd([../build-aux/git-version-gen ../.tarball-version]),
22	[bug-gettext@gnu.org])
23AC_CONFIG_SRCDIR([src/msgfmt.c])
24AC_CONFIG_AUX_DIR([../build-aux])
25AM_INIT_AUTOMAKE([1.11.1 silent-rules parallel-tests])
26AC_CONFIG_HEADERS([config.h])
27
28dnl Installation directories.
29test "$docdir" != '${datarootdir}/doc/${PACKAGE_TARNAME}' || docdir='${datarootdir}/doc/gettext'
30
31dnl Checks for programs.
32AC_PROG_CC
33AC_PROG_INSTALL
34
35gt_JAVA_CHOICE
36
37gt_JAVAEXEC
38gt_JAVACOMP([1.5])
39AC_CHECK_PROG([JAR], [jar], [jar])
40if test -n "$HAVE_JAVACOMP" && test -n "$JAR" && test "$JAVA_CHOICE" != no; then
41  BUILDJAVA=yes
42else
43  BUILDJAVA=no
44fi
45AC_SUBST([BUILDJAVA])
46if test -n "$HAVE_JAVAEXEC" && test $BUILDJAVA = yes; then
47  TESTJAVA=yes
48else
49  TESTJAVA=no
50fi
51AC_SUBST([TESTJAVA])
52
53gt_CSHARPCOMP
54if test -n "$HAVE_CSHARPCOMP" && test "$CSHARP_CHOICE" != no; then
55  BUILDCSHARP=yes
56else
57  BUILDCSHARP=no
58fi
59AC_SUBST([BUILDCSHARP])
60
61gt_CSHARPEXEC([csharpexec-test.exe], [$srcdir/m4])
62if test -n "$HAVE_CSHARPEXEC" && test $BUILDCSHARP = yes; then
63  TESTCSHARP=yes
64else
65  TESTCSHARP=no
66fi
67AC_SUBST([TESTCSHARP])
68
69dnl Check for host type.
70AC_CANONICAL_HOST
71
72dnl Checks for compiler output filename suffixes.
73AC_OBJEXT
74AC_EXEEXT
75
76dnl For a 64-bit build on AIX, AC_PROG_RANLIB is not sufficient.
77gl_PROG_AR_RANLIB
78
79dnl Set preferences for the gnulib module 'threadlib'.
80gl_AVOID_WINPTHREAD
81
82dnl Make sure we see all GNU and Solaris extensions.
83gl_EARLY
84grgl_EARLY
85gtpo_EARLY
86
87dnl Check for build configuration.
88
89gl_WOE32_DLL
90
91LT_INIT([win32-dll])
92
93dnl Prepares the libtool configuration for handling of Windows resources, and
94dnl sets the RC variable to a program that compiles Windows resource files.
95LT_LANG([Windows Resource])
96
97dnl On mingw and Cygwin, we can activate special Makefile rules which add
98dnl version information to the shared libraries and executables.
99case "$host_os" in
100  mingw* | cygwin*) special_makefile_rules=woe32 ;;
101  os2*) special_makefile_rules=os2 ;;
102  *) special_makefile_rules=none ;;
103esac
104AM_CONDITIONAL([WOE32], [test $special_makefile_rules = woe32])
105AM_CONDITIONAL([OS2], [test $special_makefile_rules = os2])
106
107dnl Some code is only meant to be compiled on native Windows.
108case "$host_os" in
109  mingw*) is_windows_native=yes ;;
110  *) is_windows_native=no ;;
111esac
112AM_CONDITIONAL([WINDOWS_NATIVE], [test $is_windows_native = yes])
113
114dnl On Cygwin 1.7.10-1 or later, error_* variables are defined in the
115dnl Cygwin DLL.  To avoid any conflict with gettext DLLs, always link
116dnl to gnulib's error.c.  See GETTEXTLIB_EXPORTS_FLAGS setting below.
117case "$host_os" in
118  cygwin*) ac_cv_lib_error_at_line=no ;;
119esac
120
121dnl Checks for libraries.
122
123dnl These are the only lines required to internationalize the package.
124dnl (OK, not quite, the AC_CONFIG_FILES has also some parts.)
125AM_GNU_GETTEXT([use-libtool], [need-ngettext])
126dnl Conditionals for the intl/ directory.
127AM_CONDITIONAL([USE_INCLUDED_LIBINTL], [test $USE_INCLUDED_LIBINTL = yes])
128AM_CONDITIONAL([BUILD_INCLUDED_LIBINTL], [test $BUILD_INCLUDED_LIBINTL = yes])
129AM_CONDITIONAL([PACKAGE_IS_GETTEXT_TOOLS], [true])
130AM_CONDITIONAL([PRELOADABLE_LIBINTL],
131  [test $USE_INCLUDED_LIBINTL = no && test $GLIBC2 = yes && test "$enable_shared" = yes])
132
133dnl This option allows to build gettext-tools without (re)building libtextstyle.
134AC_ARG_WITH([installed-libtextstyle],
135  [AS_HELP_STRING([--with-installed-libtextstyle],
136     [Use an already installed libtextstyle.])],
137  [gt_use_installed_libtextstyle=$withval],
138  [gt_use_installed_libtextstyle=no])
139if test "$gt_use_installed_libtextstyle" != no; then
140  gl_LIBTEXTSTYLE
141else
142  test -f ../libtextstyle/Makefile || {
143    AC_MSG_WARN([When building the gettext-tools package without building the entire gettext package, you need to pass the --with-installed-libtextstyle option to configure.])
144  }
145fi
146AM_CONDITIONAL([USE_INSTALLED_LIBTEXTSTYLE],
147  [test "$gt_use_installed_libtextstyle" != no])
148
149dnl This option allows to build gettext-tools without (re)building GNU.Gettext.dll.
150AC_ARG_WITH([installed-csharp-dll],
151  [AS_HELP_STRING([--with-installed-csharp-dll],
152     [Use an already installed C# DLL.])],
153  [gt_use_installed_csharp_dll=$withval],
154  [gt_use_installed_csharp_dll=no])
155if test "$gt_use_installed_csharp_dll" = no; then
156  test -f ../gettext-runtime/intl-csharp/Makefile || {
157    AC_MSG_WARN([When building the gettext-tools package without building the entire gettext package, you need to pass the --with-installed-csharp-dll option to configure.])
158  }
159fi
160AM_CONDITIONAL([USE_INSTALLED_CSHARP_DLL],
161  [test "$gt_use_installed_csharp_dll" != no])
162
163dnl Check for bison. (cldr-plural.y requires bison >= 3.0.)
164gl_PROG_BISON([TOOLS_BISON], [3.0])
165gl_BISON
166dnl This line internationalizes the bison generated parsers.
167BISON_I18N
168
169dnl Test whether msgmerge must be linked against libm. This is the case on
170dnl most systems; but BeOS has all <math.h> functions in libc and doesn't have
171dnl a libm.
172MSGMERGE_LIBM=?
173AC_TRY_LINK([
174   #ifndef __NO_MATH_INLINES
175   # define __NO_MATH_INLINES 1 /* for glibc */
176   #endif
177   #include <math.h>
178   double x;],
179  [x = ceil(x); x = sqrt(x);],
180  [MSGMERGE_LIBM=])
181if test "$MSGMERGE_LIBM" = "?"; then
182  save_LIBS="$LIBS"
183  LIBS="$LIBS -lm"
184  AC_TRY_LINK([
185     #ifndef __NO_MATH_INLINES
186     # define __NO_MATH_INLINES 1 /* for glibc */
187     #endif
188     #include <math.h>
189     double x;],
190    [x = ceil(x); x = sqrt(x);],
191    [MSGMERGE_LIBM="-lm"])
192  LIBS="$save_LIBS"
193fi
194if test "$MSGMERGE_LIBM" = "?"; then
195  MSGMERGE_LIBM=
196fi
197AC_SUBST([MSGMERGE_LIBM])
198
199dnl Test whether msgmerge can make use of OpenMP.
200AC_OPENMP
201
202dnl Checks for header files, functions and declarations.
203gl_INIT
204grgl_INIT
205gtpo_INIT
206
207dnl Checks for header files.
208AC_CHECK_HEADERS([pwd.h])
209
210dnl Checks for typedefs, structures, and compiler characteristics.
211AC_C_INLINE
212AC_TYPE_UNSIGNED_LONG_LONG_INT
213AC_TYPE_SIZE_T
214AC_CHECK_TYPES([ptrdiff_t])
215gt_TYPE_SSIZE_T
216AC_TYPE_PID_T
217gl_GLIBC21
218
219dnl Checks for library functions.
220AC_CHECK_FUNCS([select])
221AC_FUNC_VFORK
222gt_SIGINFO
223gt_SETLOCALE
224
225AC_C_BIGENDIAN([endianness=1], [endianness=0],
226  [echo "AC-C-BIGENDIAN fails to work on your system." | sed -e 's,-,_,g' 1>&2
227   echo "Please report this as a bug to bug-autoconf@gnu.org" 1>&2
228   exit 1],
229  [endianness=universal])
230if test $endianness != universal; then
231  AC_DEFINE_UNQUOTED([ENDIANNESS], [$endianness],
232    [Define according to the byte order of the target machine: 1 for big endian, 0 for little endian.])
233fi
234dnl For possibly universal binaries, it's not possible to determine the
235dnl endianness at configure time. So determine it at compile time.
236AH_BOTTOM([
237#ifndef ENDIANNESS
238# if defined __BIG_ENDIAN__
239#  define ENDIANNESS 1
240# endif
241# if defined __LITTLE_ENDIAN__
242#  define ENDIANNESS 0
243# endif
244#endif
245])
246
247gt_PREREQ_HOSTNAME
248
249dnl Parameterization of the 'libxml' module:
250dnl When INCLUDED_LIBXML is true and building static libraries, tell
251dnl libxml's xmlexports.h to omit '__declspec(dllimport)' on mingw and Cygwin.
252if test "$gl_cv_libxml_use_included" = yes && test "$enable_shared" != yes; then
253  AC_DEFINE([LIBXML_STATIC], [1],
254    [Define if libxml is being used as a static library.])
255fi
256
257dnl Compilation on mingw and Cygwin needs special Makefile rules, because
258dnl 1. when we install a shared library, we must arrange to export
259dnl    auxiliary pointer variables for every exported variable,
260dnl 2. when we install a shared library and a static library simultaneously,
261dnl    the include file specifies __declspec(dllimport) and therefore we
262dnl    must arrange to define the auxiliary pointer variables for the
263dnl    exported variables _also_ in the static library.
264if test "$enable_shared" = yes; then
265  case "$host_os" in
266    mingw* | cygwin*) is_woe32dll=yes ;;
267    *) is_woe32dll=no ;;
268  esac
269else
270  is_woe32dll=no
271fi
272AM_CONDITIONAL([WOE32DLL], [test $is_woe32dll = yes])
273if test $is_woe32dll = yes; then
274  AC_DEFINE([WOE32DLL], [1],
275    [Define when --enable-shared is used on mingw or Cygwin.])
276fi
277
278GETTEXTLIB_EXPORTS_FLAGS=
279dnl woe32dll/gettextlib-exports.c needs to know whether the getopt facility
280dnl is replaced by gnulib. GETOPT_H is set by gl_FUNC_GETOPT_POSIX, inside
281dnl gl_INIT.
282if test -n "$GETOPT_H"; then
283  GETTEXTLIB_EXPORTS_FLAGS="-DGNULIB_DEFINED_GETOPT $GETTEXTLIB_EXPORTS_FLAGS"
284fi
285dnl woe32dll/gettextlib-exports.c needs to know whether the error
286dnl facility is replaced by gnulib. ac_cv_lib_error_at_line is set by
287dnl gl_ERROR, inside gl_INIT.
288if test "$ac_cv_lib_error_at_line" = no; then
289  GETTEXTLIB_EXPORTS_FLAGS="-DGNULIB_DEFINED_ERROR $GETTEXTLIB_EXPORTS_FLAGS"
290fi
291
292dnl 64-bit mingw does not prepend an underscore to C symbols.
293dnl USER_LABEL_PREFIX is set by gl_ASM_SYMBOL_PREFIX, inside gl_INIT.
294if test "$USER_LABEL_PREFIX" = _; then
295  GETTEXTLIB_EXPORTS_FLAGS="-DUSER_LABEL_PREFIX_UNDERSCORE $GETTEXTLIB_EXPORTS_FLAGS"
296fi
297AC_SUBST([GETTEXTLIB_EXPORTS_FLAGS])
298
299dnl Tell the source files that the error facility is replaced by
300dnl gnulib, to make sure to prepend "rpl_" prefix to the error_*
301dnl symbols.
302if test "$ac_cv_lib_error_at_line" = no; then
303  AC_DEFINE([GNULIB_REPLACE_ERROR], [1],
304    [Define when the error facility is replaced by gnulib.])
305fi
306
307dnl Put some default definitions into config.h.
308AH_TOP([
309/* Default value for alignment of strings in .mo file.  */
310#define DEFAULT_OUTPUT_ALIGNMENT 1
311])
312AH_BOTTOM([
313/* A file name cannot consist of any character possible.  INVALID_PATH_CHAR
314   contains the characters not allowed.  */
315#if defined _MSC_VER || defined __MINGW32__
316/* Woe32.  This string is valid for Windows NT/2000.  On Windows 95/98/ME some
317   few characters in the range 0x80..0xff are invalid as well, but this doesn't
318   matter much for our purposes.  */
319# define INVALID_PATH_CHAR "\001\002\003\004\005\006\007\010\011\012\013\014\015\016\017\020\021\022\023\024\025\026\027\030\031\032\033\034\035\036\037\"*/:<>?\\|"
320#elif defined MSDOS
321/* Something like this for MSDOG.  */
322# define INVALID_PATH_CHAR "\001\002\003\004\005\006\007\010\011\012\013\014\015\016\017\020\021\022\023\024\025\026\027\030\031\032\033\034\035\036\037 \177\\:."
323#else
324/* Unix.  */
325# define INVALID_PATH_CHAR "\001\002\003\004\005\006\007\010\011\012\013\014\015\016\017\020\021\022\023\024\025\026\027\030\031\032\033\034\035\036\037 \177/"
326#endif
327
328/* This is the page width for the message_print function.  It should
329   not be set to more than 79 characters (Emacs users will appreciate
330   it).  It is used to wrap the msgid and msgstr strings, and also to
331   wrap the file position (#:) comments.  */
332#define PAGE_WIDTH 79
333
334/* On Windows, variables that may be in a DLL must be marked specially.  */
335#if defined WOE32DLL && !defined IN_RELOCWRAPPER
336# define DLL_VARIABLE __declspec (dllimport)
337#else
338# define DLL_VARIABLE
339#endif
340
341/* Extra OS/2 (emx+gcc) defines.  */
342#if defined __EMX__ && !defined __KLIBC__
343# include "intl/os2compat.h"
344#endif
345])
346
347dnl Check for nm output filter that yields the exported symbols.
348gt_GLOBAL_SYMBOL_PIPE
349
350dnl Check for Emacs and where to install .elc files.
351dnl Sometimes Emacs is badly installed. Allow the user to work around it.
352AC_ARG_WITH([emacs],
353  [  --without-emacs         do not use Emacs, don't install po-mode],
354  [gt_use_emacs=$withval],
355  [gt_use_emacs=yes])
356if test "$EMACS" != no; then
357  AC_MSG_CHECKING([whether Emacs support is requested])
358  AC_MSG_RESULT([$gt_use_emacs])
359  if test "$gt_use_emacs" = no; then
360    EMACS=no
361  fi
362fi
363dnl If $EMACS = no, we won't install any Emacs Lisp (*.el) files,
364dnl therefore it's useless to determine $(lispdir).
365if test "$EMACS" != no; then
366  AM_PATH_LISPDIR
367fi
368
369aclocaldir='${datadir}/aclocal'
370AC_SUBST([aclocaldir])
371
372dnl Check how to install the set of previous versions, for autopoint.
373AC_ARG_WITH([git],
374  [  --without-git           don't use git to compress the infrastructure archive],
375  [gt_use_git=$withval],
376  [gt_use_git=maybe])
377AC_ARG_WITH([cvs],
378  [  --with-cvs              use cvs to compress the infrastructure archive
379                          (deprecated)],
380  [gt_use_cvs=$withval],
381  [gt_use_cvs=no])
382AC_ARG_WITH([bzip2],
383  [  --without-bzip2         don't use bzip2 to compress the infrastructure archive],
384  [gt_use_bzip2=$withval],
385  [gt_use_bzip2=maybe])
386AC_ARG_WITH([xz],
387  [  --without-xz            don't use xz to compress the infrastructure archive],
388  [gt_use_xz=$withval],
389  [gt_use_xz=maybe])
390# The CVS format is deprecated, because "cvs init" does not work in all
391# circumstances
392# (see <https://lists.gnu.org/archive/html/bug-cvs/2010-05/msg00003.html>)
393# and we are not allowed to distribute the cvs infrastructure files ourselves
394# (see <https://lists.gnu.org/archive/html/bug-cvs/2010-06/msg00011.html>).
395#
396# With the archive from version 0.18.1, we can observe the following
397# compression rates:
398#    Size           File
399#  16916480   archive.dir.tar
400#   3528757   archive.dir.tar.gz
401#   2621440   archive.cvs.tar
402#   2082492   archive.dir.tar.bz2
403#    696320   archive.git.tar
404#    599046   archive.git.tar.bz2
405#    592989   archive.git.tar.gz
406#    588124   archive.git.tar.xz
407#    457190   archive.cvs.tar.gz
408#    335808   archive.cvs.tar.bz2
409#    308880   archive.dir.tar.xz
410#    299124   archive.cvs.tar.xz
411# Among these:
412#   - We don't offer the uncompressed ones, because at least gzip can be
413#     assumed to be present everywhere.
414#   - Among archive.git.tar.*, all have approximately the same size, because
415#     git already compresses most of its repository data. Offer only .gz here.
416#   - Among archive.cvs.tar.*, offer only .gz, for simplicity, since --with-cvs
417#     is deprecated.
418# The remaining ones are:
419#    Size           File            ARCHIVE_FORMAT
420#   3528757   archive.dir.tar.gz      dirgz
421#   2082492   archive.dir.tar.bz2     dirbz2
422#    592989   archive.git.tar.gz      git
423#    457190   archive.cvs.tar.gz      cvs
424#    308880   archive.dir.tar.xz      dirxz
425if test "$gt_use_xz" != no && test "$gt_use_xz" != maybe; then
426  # --with-xz is specified. Even if --with-git or --with-cvs or --with-bzip2 is
427  # also specified, we use the dirxz format.
428  ARCHIVE_FORMAT=dirxz
429else
430  if test "$gt_use_git" != no && test "$gt_use_git" != maybe; then
431    # --with-git is specified. Even if --with-cvs or --with-bzip2 is also
432    # specified, we use the git format.
433    ARCHIVE_FORMAT=git
434  else
435    if test "$gt_use_cvs" != no; then
436      # --with-cvs is specified. Even if --with-bzip2 is also specified, we use
437      # the cvs format.
438      ARCHIVE_FORMAT=cvs
439    else
440      if test "$gt_use_bzip2" != no && test "$gt_use_bzip2" != maybe; then
441        # --with-bzip2 is specified. We use the dirbz2 format.
442        ARCHIVE_FORMAT=dirbz2
443      else
444        # Neither --with-git nor --with-cvs nor --with-bzip2 nor --with-xz is
445        # specified. Determine which programs are present.
446        if test "$gt_use_xz" != no \
447           && (xz --version) >/dev/null 2>&1 \
448           && xz --version | grep lzma >/dev/null; then
449          # --without-xz is not specified, and the xz program exists.
450          ARCHIVE_FORMAT=dirxz
451        else
452          # --without-xz is specified, or the xz program is missing.
453changequote(,)dnl
454          if test "$gt_use_git" != no \
455             && (git --version) >/dev/null 2>&1 \
456             && { case `git --version | sed -e 's/^[^0-9]*//'` in
457                    0.* | 1.[0-5].*) false ;;
458                    *) true ;;
459                  esac
460                }; then
461changequote([,])dnl
462            # --without-git is not specified, and the git program exists
463            # in version 1.6 or newer. Use git format.
464            ARCHIVE_FORMAT=git
465          else
466            # --without-git is specified, or the git program is missing.
467changequote(,)dnl
468            if test "$gt_use_bzip2" != no \
469               && (: | bzip2 --version) >/dev/null 2>&1 \
470               && { sed_bzip2_version1='s/ \([0-9][0-9.]*\).*/ \1/'
471                    sed_bzip2_version2='s/^.* //'
472                    case `(: | bzip2 --version) 2>&1 \
473                          | sed -e 1q \
474                          | sed -e "$sed_bzip2_version1" -e "$sed_bzip2_version2"` in
475                      0.*) false ;;
476                      *) true ;;
477                    esac
478                  }; then
479changequote([,])dnl
480              # --without-bzip2 is not specified, and the bzip2 program exists
481              # in version 1.0 or newer. Use dirbz2 format.
482              ARCHIVE_FORMAT=dirbz2
483            else
484              # --without-bzip2 is specified, or the bzip2 program is missing.
485              ARCHIVE_FORMAT=dirgz
486            fi
487          fi
488        fi
489      fi
490    fi
491  fi
492fi
493AC_SUBST([ARCHIVE_FORMAT])
494
495ARCHIVE_VERSION=0.21
496AC_SUBST([ARCHIVE_VERSION])
497
498PACKAGE_SUFFIX="-$ARCHIVE_VERSION"
499AC_SUBST([PACKAGE_SUFFIX])
500AC_DEFINE_UNQUOTED(PACKAGE_SUFFIX, "$PACKAGE_SUFFIX",
501  [Define to the suffix of this package])
502
503dnl Check for tools needed for formatting the documentation.
504ac_aux_dir_abs=`cd $ac_aux_dir && pwd`
505AC_PATH_PROG([DVIPS], [dvips], [$ac_aux_dir_abs/missing dvips])
506AC_PATH_PROG([TEXI2PDF], [texi2pdf], [$ac_aux_dir_abs/missing texi2pdf])
507AC_PATH_PROG([PERL], [perl], [$ac_aux_dir_abs/missing perl])
508
509dnl Check for tools needed for formatting man pages.
510CROSS_COMPILING=$cross_compiling
511AC_SUBST([CROSS_COMPILING])
512
513dnl Checks for optional programs for the tests/lang-*, tests/recode-* tests.
514gl_PROG_ANSI_CXX([CXX], [ANSICXX])
515gt_LOCALE_FR
516gt_LOCALE_FR_UTF8
517gt_LOCALE_JA
518gt_LOCALE_DE_UTF8
519
520dnl Checks for functions for the tests/*.c tests.
521AC_CHECK_FUNCS_ONCE([getrlimit setrlimit uselocale])
522
523dnl Prepares the libtool configuration for languages used by the tests.
524LT_LANG([C++])
525
526dnl Check whether to execute tests that rely on libasprintf.
527dnl This test must be consistent with gettext-runtime/configure.ac.
528if test "${enable_libasprintf+set}" = set; then
529  if test "$enable_libasprintf" != no; then
530    TESTLIBASPRINTF=yes
531  else
532    TESTLIBASPRINTF=no
533  fi
534else
535  TESTLIBASPRINTF=yes
536fi
537if test "$CXX" = no; then
538  TESTLIBASPRINTF=no
539fi
540AC_SUBST([TESTLIBASPRINTF])
541
542dnl Check whether to execute tests of the system (vendor-provided) libintl API.
543dnl We execute these tests if and only if we don't install our own libintl.
544AM_CONDITIONAL([TEST_SYSTEM_LIBINTL], [test $USE_INCLUDED_LIBINTL = no])
545
546AC_CONFIG_SUBDIRS([examples])
547
548AC_CONFIG_FILES([Makefile])
549
550AC_CONFIG_FILES([doc/Makefile])
551
552AC_CONFIG_FILES([intl/Makefile], [
553  # Change srcdir variable so that it points to ../gettext-runtime/intl.
554  sed -e 's|^srcdir =.*$|srcdir = $(top_srcdir)/../gettext-runtime/intl|' \
555      -e 's|^VPATH =.*$||' \
556      -e 's|^DISTFILES =.*|DISTFILES =|' \
557    < intl/Makefile > intl/Makefile.tmp
558  mv intl/Makefile.tmp intl/Makefile
559  ])
560
561AC_CONFIG_FILES([its/Makefile])
562
563AC_CONFIG_FILES([gnulib-lib/Makefile])
564
565AC_CONFIG_FILES([libgrep/Makefile])
566
567AC_CONFIG_FILES([src/Makefile])
568AC_CONFIG_FILES([src/user-email:src/user-email.sh.in])
569
570AC_CONFIG_FILES([libgettextpo/Makefile])
571AC_CONFIG_FILES([libgettextpo/exported.sh])
572
573AC_CONFIG_FILES([po/Makefile.in])
574
575AC_CONFIG_FILES([projects/Makefile])
576
577AC_CONFIG_FILES([styles/Makefile])
578
579AC_CONFIG_FILES([emacs/Makefile])
580
581AC_CONFIG_FILES([misc/Makefile])
582AC_CONFIG_FILES([misc/gettextize], [chmod a+x misc/gettextize])
583AC_CONFIG_FILES([misc/autopoint], [chmod a+x misc/autopoint])
584AC_CONFIG_FILES([misc/convert-archive], [chmod a+x misc/convert-archive])
585
586AC_CONFIG_FILES([man/Makefile],
587                [FIX_MAKEFILE_DISTRIB])
588AC_CONFIG_FILES([man/x-to-1])
589
590AC_CONFIG_FILES([m4/Makefile])
591
592AC_CONFIG_FILES([tests/Makefile])
593AC_CONFIG_FILES([tests/init-env])
594
595AC_CONFIG_FILES([system-tests/Makefile])
596
597AC_CONFIG_FILES([gnulib-tests/Makefile])
598
599AC_OUTPUT
600