From 08d4ab78e5839a64a689d2dfafe16d57fe43e0d3 Mon Sep 17 00:00:00 2001 From: VincentWei Date: Thu, 29 May 2025 11:25:25 +0800 Subject: [PATCH] do not check `pciaccess` library if the cpu is not i386 --- RELEASE-NOTES.md | 4 ++++ configure.ac | 11 ++++++++--- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/RELEASE-NOTES.md b/RELEASE-NOTES.md index b0bf4306..daebacd9 100644 --- a/RELEASE-NOTES.md +++ b/RELEASE-NOTES.md @@ -44,6 +44,10 @@ which is a bugfix release with some minor enhancements of MiniGUI 5.0.x. * BUGFIXING: - The desktop thread can not handle the request from other threads as soon as possible. - The `MSG_TIMEOUT` message can not be fired correctly under MiniGUI-Threads mode. + - Bad subpixel rendering when background color is RGBA0000. +* TUNING: + - Tune `configure.ac` and `Makefile.am` to use the system libtool scripts. + - Do not check `pciaccess` if the target architecture is not `i386`. ## Version 5.0.15 diff --git a/configure.ac b/configure.ac index f929a662..c030fd22 100644 --- a/configure.ac +++ b/configure.ac @@ -896,9 +896,13 @@ CheckFBCON() VIDEO_SUBDIRS="$VIDEO_SUBDIRS fbcon" VIDEO_DRIVERS="$VIDEO_DRIVERS fbcon/libvideo_fbcon.la" - have_pciaccess="yes" - AC_CHECK_LIB(pciaccess, pci_system_init, - DEP_LIBS="$DEP_LIBS -lpciaccess", have_pciaccess="no") + if test "x$target_cpu" = "xi386"; then + have_pciaccess="yes" + AC_CHECK_LIB(pciaccess, pci_system_init, + DEP_LIBS="$DEP_LIBS -lpciaccess", have_pciaccess="no") + else + have_pciaccess="no" + fi if test "x$have_pciaccess" = "xyes"; then AC_DEFINE(_MGHAVE_PCIACCESS, 1, @@ -2762,6 +2766,7 @@ AC_MSG_NOTICE([ # Main building configuration: ## Global Features: + * Architecture: ${target_cpu} * Operating system: ${osname} * Runtime mode: ${runtime_mode} * Virtual Window: ${virtual_window}