Mike Gerwitz

Activist for User Freedom

aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Gerwitz <mike.gerwitz@ryansg.com>2019-11-07 16:23:27 -0500
committerMike Gerwitz <mike.gerwitz@ryansg.com>2019-11-07 16:24:19 -0500
commit2bdcacd11f2f3a75742ef5e0adbce1ff622426f0 (patch)
tree709b81b005cf3ae1d6e94a89244a09f618b9822c /configure.ac
parent365fe702cfa8bc34c0d77688ea1a627fbf1d833c (diff)
downloadliza-2bdcacd11f2f3a75742ef5e0adbce1ff622426f0.tar.gz
liza-2bdcacd11f2f3a75742ef5e0adbce1ff622426f0.tar.bz2
liza-2bdcacd11f2f3a75742ef5e0adbce1ff622426f0.zip
package.json.in: @types/node: Use installed node version
This will ensure that the right API version is installed.
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac5
1 files changed, 5 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index a382f2b..298df45 100644
--- a/configure.ac
+++ b/configure.ac
@@ -38,6 +38,11 @@ AC_CHECK_PROGS(NODE, [node nodejs])
test -n "$NODE" || AC_MSG_ERROR([missing Node.js])
+AC_MSG_CHECKING([node version])
+node_version=$($NODE --version | sed 's/^v//')
+AC_SUBST([NODE_VERSION], [$node_version])
+AC_MSG_RESULT([$NODE_VERSION])
+
# graphviz
AC_ARG_VAR([TWOPI], [Graphviz twopi layout])
AC_CHECK_PROGS(TWOPI, [twopi])