summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAkinori Hattori <hattya@gentoo.org>2024-06-27 23:00:12 +0900
committerAkinori Hattori <hattya@gentoo.org>2024-06-27 23:02:14 +0900
commit446b674ce958254f9deb2016511722bf92d6255a (patch)
tree982e9aeeb3b35a2a4e784a1b15d0db7f3b2e812a /dev-libs
parentmedia-gfx/prusaslicer: bump to 2.8.0 (diff)
downloadgentoo-446b674ce958254f9deb2016511722bf92d6255a.tar.gz
gentoo-446b674ce958254f9deb2016511722bf92d6255a.tar.bz2
gentoo-446b674ce958254f9deb2016511722bf92d6255a.zip
dev-libs/m17n-lib: fix build with USE=-X
Closes: https://bugs.gentoo.org/935015 Signed-off-by: Akinori Hattori <hattya@gentoo.org>
Diffstat (limited to 'dev-libs')
-rw-r--r--dev-libs/m17n-lib/files/m17n-lib-configure.patch15
1 files changed, 13 insertions, 2 deletions
diff --git a/dev-libs/m17n-lib/files/m17n-lib-configure.patch b/dev-libs/m17n-lib/files/m17n-lib-configure.patch
index 27a05fd97865..90cfc774b806 100644
--- a/dev-libs/m17n-lib/files/m17n-lib-configure.patch
+++ b/dev-libs/m17n-lib/files/m17n-lib-configure.patch
@@ -1,17 +1,28 @@
--- a/configure.ac
+++ b/configure.ac
-@@ -96,8 +96,8 @@
+@@ -96,8 +96,11 @@
dnl Checks which levels of APIs should be compiled.
-AC_ARG_ENABLE(gui,
- AS_HELP_STRING([--enable-gui],[enable GUI level APIs (default is YES)]))
++PKG_PROG_PKG_CONFIG
++AM_CONDITIONAL([HAVE_PKG_CONFIG], [test "x$PKG_CONFIG" != x])
++
+AC_ARG_WITH(gui,
+ AS_HELP_STRING([--with-gui],[enable GUI level APIs (default is YES)]))
AM_CONDITIONAL(WITH_GUI, test x$with_gui != xno)
-@@ -125,6 +125,9 @@
+@@ -117,14 +120,14 @@
+
+ M17N_EXT_LIBS=
+
+-PKG_PROG_PKG_CONFIG
+-AM_CONDITIONAL([HAVE_PKG_CONFIG], [test "x$PKG_CONFIG" != x])
+-
+ if test "x$no_x" != "xyes"; then
+ AC_DEFINE(HAVE_X11, 1, [Define to 1 if you have X11.])
X11_LD_FLAGS="-lXt -lX11"
M17N_EXT_LIBS="$M17N_EXT_LIBS X11"