summaryrefslogtreecommitdiff
path: root/configure.in
diff options
context:
space:
mode:
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in36
1 files changed, 34 insertions, 2 deletions
diff --git a/configure.in b/configure.in
index 294246dea60d..f378b57fd14a 100644
--- a/configure.in
+++ b/configure.in
@@ -1,11 +1,11 @@
dnl
dnl RCSid:
-dnl $Id: configure.in,v 1.108 2024/07/13 15:27:00 sjg Exp $
+dnl $Id: configure.in,v 1.111 2025/11/11 18:43:59 sjg Exp $
dnl
dnl Process this file with autoconf to produce a configure script
dnl
AC_PREREQ([2.71])
-AC_INIT([bmake],[20240711],[sjg@NetBSD.org])
+AC_INIT([bmake],[20251111],[sjg@NetBSD.org])
AC_CONFIG_HEADERS(config.h)
dnl make srcdir absolute
@@ -18,6 +18,14 @@ dnl get _MAKE_VERSION
. $srcdir/VERSION
OS=`uname -s`
+dnl do not trust return from type
+have() {
+ case `(type "$1") 2>&1` in
+ *" found") return 1;;
+ esac
+ return 0
+}
+
dnl function to set DEFSHELL_INDEX
use_defshell() {
case "$defshell_path$DEFSHELL_INDEX" in
@@ -107,6 +115,7 @@ esac
],
[
case "$OS" in
+Cygwin*|MINGW*) use_filemon=no;;
NetBSD) filemon_h=no use_filemon=ktrace;;
*)
for d in "/usr/include/dev/filemon" "$prefix/include/dev/filemon" "$srcdir/../../sys/dev/filemon"
@@ -187,6 +196,28 @@ do
PATH=$PATH:$d
done
export PATH
+dnl
+dnl if lua is available check it is version 5.2 or later
+lua=$LUA
+AC_ARG_WITH(lua,
+[ --without-lua do not use check-expect.lua],
+[case "${withval}" in
+no) lua=:;;
+yes) lua= ;;
+/*lua*) lua=$withval;;
+*) AC_MSG_ERROR(bad value ${withval} given for lua);;
+esac])
+if test "x$lua" != x:; then
+ if have lua; then
+ lua_version=`${lua:-lua} -v | sed 's/Lua //;s/ *Copy.*//;'`
+ echo $ECHO_N "checking whether lua version ($lua_version) > 5.2... $ECHO_C" >&6
+ case "$lua_version" in
+ 4.*|5.1.*) lua=:; echo no >&6;;
+ *) echo yes >&6;;
+ esac
+ fi
+fi
+dnl
dnl Solaris's signal.h only privides sigset_t etc if one of
dnl _EXTENSIONS_ _POSIX_C_SOURCE or _XOPEN_SOURCE are defined.
dnl The later two seem to cause more problems than they solve so if we
@@ -580,6 +611,7 @@ AC_SUBST(diff_u)
AC_SUBST(use_meta)
AC_SUBST(use_filemon)
AC_SUBST(filemon_h)
+AC_SUBST(lua)
AC_SUBST(_MAKE_VERSION)
AC_SUBST(UTC_1)
bm_outfiles="Makefile.config unit-tests/Makefile.config make-bootstrap.sh"