From: Bruno Haible Date: Tue, 1 Apr 2003 08:02:49 +0000 (+0000) Subject: More VMS support. X-Git-Tag: v0.12~116 X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=4262a47d06b67d9d5cf7a4a371432225077630ef;p=thirdparty%2Fgettext.git More VMS support. --- diff --git a/gettext-tools/src/ChangeLog b/gettext-tools/src/ChangeLog index c80d08e99..55575e2a0 100644 --- a/gettext-tools/src/ChangeLog +++ b/gettext-tools/src/ChangeLog @@ -2,6 +2,7 @@ * Makefile.vms: New file. * Makefile.am (EXTRA_DIST): Add Makefile.vms. + (x-java.c): Prepend a few VMS specific lines. * po-lex.c (mbfile_getc): Change element type of scatchbuf to 'unsigned char'. * write-java.c (string_hashcode, write_java_string): Cast argument of diff --git a/gettext-tools/src/Makefile.am b/gettext-tools/src/Makefile.am index dc43b46b1..0adb58985 100644 --- a/gettext-tools/src/Makefile.am +++ b/gettext-tools/src/Makefile.am @@ -223,9 +223,16 @@ po-gram-gen2.h: po-gram-gen.h $(SED) 's/yy/po_gram_/g' $(srcdir)/po-gram-gen.h > $@-tmp mv $@-tmp $@ +# We must add the '#include ' here, not inside x-java.l, +# because on VMS, must be included before . x-java.c: x-java.l - $(LEX) -o$@-tmp -Px_java_yy $(srcdir)/x-java.l - test "$(LEX)" = ":" || mv $@-tmp $@ + test "$(LEX)" = ":" || { \ + $(LEX) -o$@-tmp -Px_java_yy $(srcdir)/x-java.l && \ + (echo '#ifdef VMS'; echo '#include '; echo '#endif'; \ + cat $@-tmp) > $@-tmq && \ + rm -f $@-tmp && \ + mv $@-tmq $@ ; \ + } # Special rules for installation of auxiliary programs.