Skip to content

Commit

Permalink
* configure.in, tool/mlconfig/Makefile.in: Set X_LIBS_FOR_MLCONFIG
Browse files Browse the repository at this point in the history
  if the version of gtk+ is 2.x to build gtkxlfdsel.c.
  • Loading branch information
arakiken committed Aug 16, 2024
1 parent d9e8b10 commit 4c0fb3d
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 3 deletions.
5 changes: 5 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
2024-08-17 Araki Ken <arakiken@users.sf.net>

* configure.in, tool/mlconfig/Makefile.in: Set X_LIBS_FOR_MLCONFIG
if the version of gtk+ is 2.x to build gtkxlfdsel.c.

2024-08-16 Araki Ken <arakiken@users.sf.net>

* Merge https://github.com/arakiken/mlterm/issues/107
Expand Down
6 changes: 6 additions & 0 deletions configure
Original file line number Diff line number Diff line change
Expand Up @@ -704,6 +704,7 @@ LIBPNG_CFLAGS
PERL
GTK_LIBS_FOR_MLCONFIG
GTK_CFLAGS_FOR_MLCONFIG
X_LIBS_FOR_MLCONFIG
MKINSTALLDIRS
POSUB
POFILES
Expand Down Expand Up @@ -21622,11 +21623,16 @@ $as_echo "$LINGUAS" >&6; }
GTK_CFLAGS_FOR_MLCONFIG=$GTK4_CFLAGS
GTK_LIBS_FOR_MLCONFIG=$GTK4_LIBS
else
if test "$gtk_version" = "2.0"; then
# for gtkxlfdsel.c
X_LIBS_FOR_MLCONFIG=$X_LIBS
fi
GTK_CFLAGS_FOR_MLCONFIG=$GTK_CFLAGS
GTK_LIBS_FOR_MLCONFIG=$GTK_LIBS
fi



else
echo ""
echo "** WARNING **"
Expand Down
5 changes: 5 additions & 0 deletions configure.in
Original file line number Diff line number Diff line change
Expand Up @@ -1132,9 +1132,14 @@ mlconfig)
GTK_CFLAGS_FOR_MLCONFIG=$GTK4_CFLAGS
GTK_LIBS_FOR_MLCONFIG=$GTK4_LIBS
else
if test "$gtk_version" = "2.0"; then
# for gtkxlfdsel.c
X_LIBS_FOR_MLCONFIG=$X_LIBS
fi
GTK_CFLAGS_FOR_MLCONFIG=$GTK_CFLAGS
GTK_LIBS_FOR_MLCONFIG=$GTK_LIBS
fi
AC_SUBST(X_LIBS_FOR_MLCONFIG)
AC_SUBST(GTK_CFLAGS_FOR_MLCONFIG)
AC_SUBST(GTK_LIBS_FOR_MLCONFIG)
else
Expand Down
6 changes: 3 additions & 3 deletions tool/mlconfig/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,11 @@ CFLAGS = $(CFLAGS_LOCAL) @GTK_CFLAGS_FOR_MLCONFIG@ @IMAGELIB_CFLAGS@ @DEB_CFLAGS
LIBS1 = $(LIBS_LOCAL) @INTL_LIBS@ @DL_SELF@ @DL_LIBS_IM@ @GTK_LIBS_FOR_MLCONFIG@

# -lX11 is for http://fedoraproject.org/wiki/Features/ChangeInImplicitDSOLinking
LIBS2_xlib = $(LPOBL) @X_LIBS@
LIBS2_xlib = $(LPOBL) @X_LIBS_FOR_MLCONFIG@

LIBS2_wayland = $(LPOBL)
LIBS2_wayland = $(LPOBL) @X_LIBS_FOR_MLCONFIG@

LIBS2_sdl2 = $(LPOBL)
LIBS2_sdl2 = $(LPOBL) @X_LIBS_FOR_MLCONFIG@

# mlconfig is statically linked with libpobl.
# Then it works if installed libpobl.dll is compiled with USE_WIN32API or not.
Expand Down

0 comments on commit 4c0fb3d

Please sign in to comment.