Skip to content

Commit f97ec35

Browse files
committed
8255785: X11 libraries should not be required by configure for headless only
Reviewed-by: mikael, prr
1 parent 184db64 commit f97ec35

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

make/autoconf/libraries.m4

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,11 @@ AC_DEFUN_ONCE([LIB_DETERMINE_DEPENDENCIES],
4343
if test "x$OPENJDK_TARGET_OS" = xwindows || test "x$OPENJDK_TARGET_OS" = xmacosx; then
4444
# No X11 support on windows or macosx
4545
NEEDS_LIB_X11=false
46+
elif test "x$ENABLE_HEADLESS_ONLY" = xtrue; then
47+
# No X11 support needed when building headless only
48+
NEEDS_LIB_X11=false
4649
else
47-
# All other instances need X11, even if building headless only, libawt still
48-
# needs X11 headers.
50+
# All other instances need X11
4951
NEEDS_LIB_X11=true
5052
fi
5153

0 commit comments

Comments
 (0)