sod.m4: The ACTION-IF-LIBRARY-FOUND should replace the default.
authorMark Wooding <mdw@distorted.org.uk>
Wed, 21 Aug 2019 13:36:01 +0000 (14:36 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Wed, 21 Aug 2019 13:36:01 +0000 (14:36 +0100)
This is the behaviour I documented, but I failed to update the code to
match.

sod.m4

diff --git a/sod.m4 b/sod.m4
index 372c14b..c90b7a3 100644 (file)
--- a/sod.m4
+++ b/sod.m4
@@ -49,8 +49,7 @@ AC_DEFUN([SOD_CHECK],
      SOD="echo >&2 \"Sod translator not found!  Can't rebuild \\\`\$[]@'.\" && exit 2; \\#"
    fi
    PKG_CHECK_MODULES([SOD], [sod],
-     [AM_CFLAGS="$AM_CFLAGS $SOD_CFLAGS"
-      $1],
+     [m4_default([$1], [AM_CFLAGS="$AM_CFLAGS $SOD_CFLAGS"])],
      [$2])])
 
 dnl ----- That's all, folks -------------------------------------------------