# HG changeset patch # User Mike Becker # Date 1705695836 -3600 # Node ID bc7837852b7c97cd9dbaf1e9096d07dfcaf17337 # Parent 7f40964bf1e927d96f52098dcb90da0502b7f4f1 add OpenBSD and NetBSD platform detection diff -r 7f40964bf1e9 -r bc7837852b7c src/main/resources/make/configure.vm --- a/src/main/resources/make/configure.vm Fri Jan 19 21:14:22 2024 +0100 +++ b/src/main/resources/make/configure.vm Fri Jan 19 21:23:56 2024 +0100 @@ -186,17 +186,17 @@ printf "detect platform... " if [ "$OS" = "SunOS" ]; then PLATFORM="solaris sunos unix svr4" -fi -if [ "$OS" = "Linux" ]; then +elif [ "$OS" = "Linux" ]; then PLATFORM="linux unix" -fi -if [ "$OS" = "FreeBSD" ]; then +elif [ "$OS" = "FreeBSD" ]; then PLATFORM="freebsd bsd unix" -fi -if [ "$OS" = "Darwin" ]; then +elif [ "$OS" = "OpenBSD" ]; then + PLATFORM="openbsd bsd unix" +elif [ "$OS" = "NetBSD" ]; then + PLATFORM="netbsd bsd unix" +elif [ "$OS" = "Darwin" ]; then PLATFORM="macos osx bsd unix" -fi -if echo "$OS" | grep -i "MINGW" > /dev/null; then +elif echo "$OS" | grep -i "MINGW" > /dev/null; then PLATFORM="windows mingw" fi : ${PLATFORM:="unix"} diff -r 7f40964bf1e9 -r bc7837852b7c test/configure --- a/test/configure Fri Jan 19 21:14:22 2024 +0100 +++ b/test/configure Fri Jan 19 21:23:56 2024 +0100 @@ -158,20 +158,17 @@ printf "detect platform... " if [ "$OS" = "SunOS" ]; then PLATFORM="solaris sunos unix svr4" -fi -if [ "$OS" = "Linux" ]; then +elif [ "$OS" = "Linux" ]; then PLATFORM="linux unix" -fi -if [ "$OS" = "FreeBSD" ]; then +elif [ "$OS" = "FreeBSD" ]; then PLATFORM="freebsd bsd unix" -fi -if [ "$OS" = "OpenBSD" ]; then +elif [ "$OS" = "OpenBSD" ]; then PLATFORM="openbsd bsd unix" -fi -if [ "$OS" = "Darwin" ]; then +elif [ "$OS" = "NetBSD" ]; then + PLATFORM="netbsd bsd unix" +elif [ "$OS" = "Darwin" ]; then PLATFORM="macos osx bsd unix" -fi -if echo "$OS" | grep -i "MINGW" > /dev/null; then +elif echo "$OS" | grep -i "MINGW" > /dev/null; then PLATFORM="windows mingw" fi : ${PLATFORM:="unix"} diff -r 7f40964bf1e9 -r bc7837852b7c test/configure2 --- a/test/configure2 Fri Jan 19 21:14:22 2024 +0100 +++ b/test/configure2 Fri Jan 19 21:23:56 2024 +0100 @@ -168,17 +168,17 @@ printf "detect platform... " if [ "$OS" = "SunOS" ]; then PLATFORM="solaris sunos unix svr4" -fi -if [ "$OS" = "Linux" ]; then +elif [ "$OS" = "Linux" ]; then PLATFORM="linux unix" -fi -if [ "$OS" = "FreeBSD" ]; then +elif [ "$OS" = "FreeBSD" ]; then PLATFORM="freebsd bsd unix" -fi -if [ "$OS" = "Darwin" ]; then +elif [ "$OS" = "OpenBSD" ]; then + PLATFORM="openbsd bsd unix" +elif [ "$OS" = "NetBSD" ]; then + PLATFORM="netbsd bsd unix" +elif [ "$OS" = "Darwin" ]; then PLATFORM="macos osx bsd unix" -fi -if echo "$OS" | grep -i "MINGW" > /dev/null; then +elif echo "$OS" | grep -i "MINGW" > /dev/null; then PLATFORM="windows mingw" fi : ${PLATFORM:="unix"} diff -r 7f40964bf1e9 -r bc7837852b7c test/make/configure.vm --- a/test/make/configure.vm Fri Jan 19 21:14:22 2024 +0100 +++ b/test/make/configure.vm Fri Jan 19 21:23:56 2024 +0100 @@ -186,17 +186,17 @@ printf "detect platform... " if [ "$OS" = "SunOS" ]; then PLATFORM="solaris sunos unix svr4" -fi -if [ "$OS" = "Linux" ]; then +elif [ "$OS" = "Linux" ]; then PLATFORM="linux unix" -fi -if [ "$OS" = "FreeBSD" ]; then +elif [ "$OS" = "FreeBSD" ]; then PLATFORM="freebsd bsd unix" -fi -if [ "$OS" = "Darwin" ]; then +elif [ "$OS" = "OpenBSD" ]; then + PLATFORM="openbsd bsd unix" +elif [ "$OS" = "NetBSD" ]; then + PLATFORM="netbsd bsd unix" +elif [ "$OS" = "Darwin" ]; then PLATFORM="macos osx bsd unix" -fi -if echo "$OS" | grep -i "MINGW" > /dev/null; then +elif echo "$OS" | grep -i "MINGW" > /dev/null; then PLATFORM="windows mingw" fi : ${PLATFORM:="unix"}