$NetBSD: patch-ag,v 1.3 2008/04/17 12:33:56 wiz Exp $ --- src/Makefile.in.orig 2008-03-06 20:48:51.000000000 +0000 +++ src/Makefile.in @@ -512,6 +512,8 @@ libX11_la_LIBADD = \ $(X11_LIBS) \ $(XDMCP_LIBS) +@CROSS_COMPILING_FALSE@MAKEKEYS = $(top_builddir)/src/util/makekeys +@CROSS_COMPILING_TRUE@MAKEKEYS = $(top_builddir)/src/util/xmakekeys # Check source code with tools like lint & sparse @LINT_TRUE@ALL_LINT_FLAGS = $(LINT_FLAGS) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ @@ -1243,7 +1245,7 @@ preprocess: $(patsubst %.c,%.ii,$(libX11 @MAKE_LINT_LIB_TRUE@ $(LINT) -y -oX11 -x $(ALL_LINT_FLAGS) $(lintlib_src) ks_tables.h: $(KEYSYMDEF) $(top_builddir)/src/util/makekeys$(EXEEXT) - $(top_builddir)/src/util/makekeys < $(KEYSYMDEF) > ks_tables_h + $(MAKEKEYS) < $(KEYSYMDEF) > ks_tables_h mv ks_tables_h $@ $(top_builddir)/src/util/makekeys$(EXEEXT): force