summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2024-06-02 22:07:03 +0000
committermidipix <writeonce@midipix.org>2024-06-02 22:07:03 +0000
commita50ee744ea3b86f7a0fea4df889d4662dbe9bfe2 (patch)
tree96630e12ccca731f5ae5fec8b1d74b36a4694696
parent3c7f9b82126ab334db4f2c16bb9e92ed3c916e3e (diff)
downloadslibtool-a50ee744ea3b86f7a0fea4df889d4662dbe9bfe2.tar.bz2
slibtool-a50ee744ea3b86f7a0fea4df889d4662dbe9bfe2.tar.xz
slibtool.m4: SLIBTOOL_PROG_LEX: initialize and propagate LEX_OUTPUT_ROOT.
-rw-r--r--m4/slibtool.m43
1 files changed, 3 insertions, 0 deletions
diff --git a/m4/slibtool.m4 b/m4/slibtool.m4
index 25c37a3..bf1c4e1 100644
--- a/m4/slibtool.m4
+++ b/m4/slibtool.m4
@@ -402,8 +402,11 @@ if [[ -z "${LEX}" ]]; then
AC_CHECK_PROG([LEX],[lex],[lex])
fi
+slibtool_lex_output_root="${ac_cv_prog_lex_root:-lex.yy}"
+
AC_SUBST([LEX])
AC_SUBST([LEXLIB])
+AC_SUBST([LEX_OUTPUT_ROOT],["${slibtool_lex_output_root}"])
])