Skip to content

Commit 72cf592

Browse files
author
Erlend E. Aasland
committed
Add special-case for FreeBSD
1 parent f835d6d commit 72cf592

File tree

2 files changed

+119
-0
lines changed

2 files changed

+119
-0
lines changed

configure

Lines changed: 109 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

configure.ac

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3519,6 +3519,16 @@ AS_VAR_IF([found_tcltk], [no], [
35193519
TCLTK_LIBS=${TCLTK_LIBS-""}
35203520
])
35213521

3522+
dnl FreeBSD has an X11 dependency which is not implicitly resolved.
3523+
AS_CASE([$ac_sys_system],
3524+
[FreeBSD*], [
3525+
PKG_CHECK_MODULES([X11], [x11], [
3526+
TCLTK_CFLAGS="$TCLTK_CFLAGS $X11_CFLAGS"
3527+
TCLTK_LIBS="$TCLTK_LIBS $X11_LIBS"
3528+
])
3529+
]
3530+
)
3531+
35223532
WITH_SAVE_ENV([
35233533
CPPFLAGS="$TCLTK_CFLAGS $CFLAGS"
35243534
LIBS="$TCLTK_LIBS $LDFLAGS"

0 commit comments

Comments
 (0)