From: Paul Floyd Date: Sun, 2 Jul 2023 10:59:40 +0000 (+0200) Subject: FreeBSD: add default to configure.ac FreeBSD 13 versions X-Git-Tag: VALGRIND_3_22_0~138 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=73ec73ed7fe20ec6427dba63e52534136f3c19bd;p=thirdparty%2Fvalgrind.git FreeBSD: add default to configure.ac FreeBSD 13 versions Also add comment to README.freebsd about ensuring that jails set "uname -r" to be something compatible with the normal RELEASE/STABLE/CURRENT releases. --- diff --git a/README.freebsd b/README.freebsd index 90eefc89b9..d197efcaf3 100644 --- a/README.freebsd +++ b/README.freebsd @@ -21,6 +21,10 @@ $ ./configure --prefix=/where/ever $ gmake $ gmake install +If you are using a jail for building, make sure that it is configured so that +"uname -r" returns a string that matches the pattern "XX.Y-*" where XX is the +major version (12, 13, 14 ...) and Y is the minor version (0, 1, 2, 3). + Known Limitations (June 2022) 0. Be aware that if you use a wrapper script and run Valgrind on the wrapper diff --git a/configure.ac b/configure.ac index 1d4164a7d8..4dbb1753c7 100755 --- a/configure.ac +++ b/configure.ac @@ -444,6 +444,10 @@ case "${host_os}" in AC_DEFINE([FREEBSD_VERS], FREEBSD_13_2, [FreeBSD version]) freebsd_vers=$freebsd_13_2 ;; + *) + AC_MSG_RESULT([unsupported (${kernel})]) + AC_MSG_ERROR([Valgrind works on FreeBSD 10.x to 14.x]) + ;; esac ;; 14.*)