Skip to content

Commit

Permalink
Warn on unsupported operating systems
Browse files Browse the repository at this point in the history
  • Loading branch information
sortie committed Nov 2, 2024
1 parent 2f680db commit 4db5917
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -159,3 +159,7 @@ AM_CONDITIONAL([ENABLE_LIBTLS_ONLY], [test "x$enable_libtls_only" = xyes])
AC_REQUIRE_AUX_FILE([tap-driver.sh])

AC_OUTPUT

if test "$HOST_OS" = "unsupported"; then
AC_MSG_WARN([unsupported platform: $host_os])
fi
2 changes: 1 addition & 1 deletion m4/check-os-options.m4
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ char buf[1]; getentropy(buf, 1);
AC_SUBST([PLATFORM_LDADD], ['-ldl -lmd -lnsl -lsocket'])
;;
*)
HOST_OS=$host_os
HOST_OS=unsupported
HOST_ABI=elf
;;
esac
Expand Down

0 comments on commit 4db5917

Please sign in to comment.