Notify xgettext about functions that have a format string argument.
[pspp] / modules / verror
index 4b4b621e7fdba9c84ae89f307367b42027fa23d0..5c43dfe427a82072a627e2fcfd84e97de01d615c 100644 (file)
@@ -1,6 +1,11 @@
 Description:
 verror() and verror_at_line() functions: Error reporting with va_list.
 
+Notice:
+If you are using GNU gettext version 0.16.1 or older, add the following options
+to XGETTEXT_OPTIONS in your po/Makevars:
+  --flag=verror:3:c-format --flag=verror_at_line:5:c-format
+
 Files:
 lib/verror.h
 lib/verror.c
@@ -10,6 +15,9 @@ error
 xvasprintf
 
 configure.ac:
+m4_ifdef([AM_XGETTEXT_OPTION],
+  [AM_XGETTEXT_OPTION([--flag=verror:3:c-format])
+   AM_XGETTEXT_OPTION([--flag=verror_at_line:5:c-format])])
 
 Makefile.am:
 lib_SOURCES += verror.h verror.c