]> granicus.if.org Git - psmisc/commitdiff
build-sys: add missing po4a macro
authorCraig Small <csmall@dropbear.xyz>
Mon, 2 Mar 2020 10:12:46 +0000 (21:12 +1100)
committerCraig Small <csmall@dropbear.xyz>
Mon, 2 Mar 2020 10:12:46 +0000 (21:12 +1100)
configure.ac

index 5328b237e8041df53f56cbdd4b5c26ff123e0552..3ab7645b063a185b60fc627d4d5919ff39ce9f90 100644 (file)
@@ -15,6 +15,17 @@ AC_PROG_CXX
 AC_PROG_LN_S
 AC_PROG_CC
 AC_PROG_CC_STDC
+
+AC_DEFUN([PSMISC_PROG_PO4A], [
+  AC_REQUIRE([AM_NLS])
+  AC_CHECK_PROGS([PO4A], [po4a])
+  AS_IF([test "$USE_NLS" = "yes" && test -n "$PO4A"], [
+    USE_PO4A=yes
+  ], [
+    USE_PO4A=no
+  ])
+  AC_SUBST([USE_PO4A])
+])
 PSMISC_PROG_PO4A
 
 dnl checks for options