# HG changeset patch # User john.levon@sun.com # Date 1167322006 28800 # Node ID f3f61b16da6af94e08390c2f1dce4c9ffd786777 # Parent a00bf3c8f7bc8cb8537b153c61e6d09c9b494459 Use GNU msgfmt on non-GNU systems. Signed-off-by: John Levon <john.levon@sun.com> diff --git a/config/StdGNU.mk b/config/StdGNU.mk --- a/config/StdGNU.mk +++ b/config/StdGNU.mk @@ -8,6 +8,7 @@ STRIP = $(CROSS_COMPILE)strip STRIP = $(CROSS_COMPILE)strip OBJCOPY = $(CROSS_COMPILE)objcopy OBJDUMP = $(CROSS_COMPILE)objdump +MSGFMT = msgfmt INSTALL = install INSTALL_DIR = $(INSTALL) -d -m0755 diff --git a/config/SunOS.mk b/config/SunOS.mk --- a/config/SunOS.mk +++ b/config/SunOS.mk @@ -8,6 +8,7 @@ STRIP = $(CROSS_COMPILE)gstrip STRIP = $(CROSS_COMPILE)gstrip OBJCOPY = $(CROSS_COMPILE)gobjcopy OBJDUMP = $(CROSS_COMPILE)gobjdump +MSGFMT = gmsgfmt SHELL = bash diff --git a/tools/python/Makefile b/tools/python/Makefile --- a/tools/python/Makefile +++ b/tools/python/Makefile @@ -7,12 +7,12 @@ all: build .PHONY: build build: CC="$(CC)" CFLAGS="$(CFLAGS)" python setup.py build - if which msgfmt >/dev/null ; then \ + if which $(MSGFMT) >/dev/null ; then \ for file in `cd xen/xm; find messages -name xen-xm.po`; do \ dest=`echo "build/$$file" | \ sed -e ''s#xen-xm.po#LC_MESSAGES/xen-xm.mo#''`; \ mkdir -p `dirname "$$dest"`; \ - msgfmt -c -o "$$dest" "xen/xm/$$file"; \ + $(MSGFMT) -c -o "$$dest" "xen/xm/$$file"; \ done; \ fi @@ -26,7 +26,7 @@ endif endif install-messages: all - if which msgfmt >/dev/null ; then \ + if which $(MSGFMT) >/dev/null ; then \ mkdir -p "$(DESTDIR)/usr/share/locale"; \ cp -R build/messages/* "$(DESTDIR)/usr/share/locale/"; \ fi _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel