Next: , Previous: mkinstalldirs, Up: Adjusting Files

13.4.8 aclocal.m4 at top level

If you do not have an aclocal.m4 file in your distribution, the simplest is to concatenate the files codeset.m4, fcntl-o.m4, gettext.m4, glibc2.m4, glibc21.m4, iconv.m4, intdiv0.m4, intl.m4, intldir.m4, intlmacosx.m4, intmax.m4, inttypes_h.m4, inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4, lock.m4, longlong.m4, nls.m4, po.m4, printf-posix.m4, progtest.m4, size_max.m4, stdint_h.m4, threadlib.m4, uintmax_t.m4, visibility.m4, wchar_t.m4, wint_t.m4, xsize.m4 from GNU gettext's m4/ directory into a single file. If you have suppressed the intl/ directory, only gettext.m4, iconv.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4, nls.m4, po.m4, progtest.m4 need to be concatenated.

If you are not using GNU automake 1.8 or newer, you will need to add a file mkdirp.m4 from a newer automake distribution to the list of files above.

If you already have an aclocal.m4 file, then you will have to merge the said macro files into your aclocal.m4. Note that if you are upgrading from a previous release of GNU gettext, you should most probably replace the macros (AM_GNU_GETTEXT, etc.), as they usually change a little from one release of GNU gettext to the next. Their contents may vary as we get more experience with strange systems out there.

If you are using GNU automake 1.5 or newer, it is enough to put these macro files into a subdirectory named m4/ and add the line


to your top level

If you are using GNU automake 1.10 or newer, it is even easier: Add the line

     ACLOCAL_AMFLAGS = --install -I m4

to your top level, and run ‘aclocal --install -I m4’. This will copy the needed files to the m4/ subdirectory automatically, before updating aclocal.m4.

These macros check for the internationalization support functions and related informations. Hopefully, once stabilized, these macros might be integrated in the standard Autoconf set, because this piece of m4 code will be the same for all projects using GNU gettext.