You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Ideally, the locations of X11 and freetype should be determined by the configure script, and I should be able to override them with configure flags or environment variables.
Asking pkg-config is typically a good way to find where things are installed, except that macOS doesn't come with pkg-config or .pc files so it's no good for finding things included with macOS.
X11 and freetype are not included with macOS. They were available as an optional install in macOS in the distant past, back when it was called Mac OS X, but these days it has to be installed from another source. The popular pre-compiled X11 (including freetype) for macOS is XQuartz. It installs to /opt/X11 but although it does install .pc files it does not install pkg-config. It does install freetype-config.
A user might also install X11 and freetype using a package manager like MacPorts or Homebrew. These would provide both the .pc files and pkg-config. So asking pkg-config is still a good thing to attempt first, just be prepared to fall back to freetype-config and hardcoded locations if it fails.
Ideally, the locations of X11 and freetype should be determined by the configure script, and I should be able to override them with configure flags or environment variables.
And you already do look for X11 and freetype in configure:
# if we have X11 or if we are running on MS Windows check for graphics libs
if test "x$cv_libX11" = xyes -o "ms$unicon_os" = "mswindows" ; then
CHECK_FREETYPE()
And it does find them:
checking if xlib is wanted... yes
checking for X11/Xlib.h... yes
checking for X11/Xos.h... yes
checking for X11/Xutil.h... yes
checking for X11/Xatom.h... yes
checking for X11/Xlib.h... (cached) yes
checking for X11/Xos.h... (cached) yes
checking for X11/Xutil.h... (cached) yes
checking for X11/Xatom.h... (cached) yes
checking for library containing XAllocColorCells... -lX11
checking if freetype is wanted... yes
checking for freetype/fttypes.h... yes
checking for library containing FT_Open_Face... -lfreetype
It might just be a matter of replacing the hardcoded paths in Makefile and ccomp.c with the paths that were found at configure time.
Activity
ryandesign commentedon Mar 31, 2026
Ideally, the locations of X11 and freetype should be determined by the configure script, and I should be able to override them with configure flags or environment variables.
Asking
pkg-configis typically a good way to find where things are installed, except that macOS doesn't come withpkg-configor .pc files so it's no good for finding things included with macOS.X11 and freetype are not included with macOS. They were available as an optional install in macOS in the distant past, back when it was called Mac OS X, but these days it has to be installed from another source. The popular pre-compiled X11 (including freetype) for macOS is XQuartz. It installs to /opt/X11 but although it does install .pc files it does not install
pkg-config. It does installfreetype-config.A user might also install X11 and freetype using a package manager like MacPorts or Homebrew. These would provide both the .pc files and
pkg-config. So askingpkg-configis still a good thing to attempt first, just be prepared to fall back tofreetype-configand hardcoded locations if it fails.ryandesign commentedon Mar 31, 2026
And you already do look for X11 and freetype in configure:
unicon/configure.ac
Lines 632 to 636 in 1c0d0de
And it does find them:
It might just be a matter of replacing the hardcoded paths in Makefile and ccomp.c with the paths that were found at configure time.