Next: AM_ICONV in iconv.m4, Previous: AM_PO_SUBDIRS in po.m4, Up: Autoconf macros for use in configure.ac [Contents][Index]
The AM_XGETTEXT_OPTION
macro registers a command-line option to be
used in the invocations of xgettext
in the po/ directories
of the package.
For example, if you have a source file that defines a function ‘error_at_line’ whose fifth argument is a format string, you can use
AM_XGETTEXT_OPTION([--flag=error_at_line:5:c-format])
to instruct xgettext
to mark all translatable strings in ‘gettext’
invocations that occur as fifth argument to this function as ‘c-format’.
See Invoking the xgettext
Program for the list of options that xgettext
accepts.
The use of this macro is an alternative to the use of the ‘XGETTEXT_OPTIONS’ variable in po/Makevars.