Hi,

Resubmitting this PR from a fork this time, so that the checks are run
for it. Hope reviewing it will be easier now.

Thanks a lot for the feedback so far!

Harald

----- Forwarded message from Harald Eilertsen <[email protected]> -----

Date: Mon, 9 Mar 2026 19:28:33 GMT
From: Harald Eilertsen <[email protected]>
To: [email protected]
Subject: [bsd-port:bsd-port] RFR: Add BSD to autoconf scrips

This basically allows configure to complete and set up a configuration suitable 
for building the BSD port for supported platforms (FreeBSD, OpenBSD and NetBSD.)

The flag `_BSDONLY_SOURCE` is defined for all the BSD's _except_ for Apple 
MacOS, while the existing `_ALLBSD_SOURCE` _includes_ Apple MacOS.

For the BSD's we set the `OPENJDK_TARGET_OS_ENV` variable to distinct values 
reflecting the BSD variant being built. This is used to distinguish build 
flags, library locations and what libraries and modules to include for the 
various builds.

As an example, FreeBSD includes the ALSA library, and should build the 
Serviceability Agent, while the other BSD's do not.

This work was sponsored by: The FreeBSD Foundation

-------------

Commit messages:
 - Add BSD to autoconf scrips

Changes: https://git.openjdk.org/bsd-port/pull/4/files
  Webrev: https://webrevs.openjdk.org/?repo=bsd-port&pr=4&range=00
  Stats: 74 lines in 10 files changed: 62 ins; 0 del; 12 mod
  Patch: https://git.openjdk.org/bsd-port/pull/4.diff
  Fetch: git fetch https://git.openjdk.org/bsd-port.git pull/4/head:pull/4

PR: https://git.openjdk.org/bsd-port/pull/4

----- End forwarded message -----

Reply via email to