]> git.draconx.ca Git - dxcommon.git/blobdiff - m4/linguas.m4
Use AC_PROG_AWK and $AWK in DX_LINGUAS.
[dxcommon.git] / m4 / linguas.m4
index fce4e0c07c919569360b3ca7ebdfd5cbef2c0d7a..f1cc4b18585db578d972c517a3a6c81afa203578 100644 (file)
@@ -1,4 +1,4 @@
-dnl Copyright © 2011, 2021-2022 Nick Bowler
+dnl Copyright © 2011, 2021-2023 Nick Bowler
 dnl
 dnl Computes the set of .po and .mo files based on the LINGUAS environment
 dnl variable.  The variable POFILES is set to the complete list of .po files,
@@ -13,12 +13,13 @@ dnl There is NO WARRANTY, to the extent permitted by law.
 AC_DEFUN([DX_LINGUAS],
 [AC_REQUIRE([AM_GNU_GETTEXT])dnl
 AC_REQUIRE([DX_PROG_JOIN])dnl
+AC_REQUIRE([AC_PROG_AWK])dnl
 
 POFILES=
 MOFILES=
 
 if test -f "$srcdir/po/LINGUAS"; then
-  awk '{ sub(/#.*$/, "")
+  $AWK '{ sub(/#.*$/, "")
     for (i = 1; i <= NF; i++) {
       print $(i)
     }