summaryrefslogtreecommitdiff
path: root/Build/source/utils/xindy-new/xindy-2.4-pre2-PATCHES/patch-13-gzip
blob: 3346a8f5bd1b49ec2569c397278db3918b851f63 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
diff -ur -x Makefile.in xindy.orig/configure.ac xindy/configure.ac
--- xindy.orig/configure.ac	2009-12-03 01:34:16.000000000 +0100
+++ xindy/configure.ac	2009-12-03 11:52:02.000000000 +0100
@@ -57,6 +57,9 @@
 AC_PROG_LEX
 AC_PROG_CC
 
+# Check system type
+AC_CANONICAL_HOST
+
 # On some systems without working iconv, we must use recode.
 AC_ARG_WITH([xindy-recode],
             AS_HELP_STRING([--with-xindy-recode],
@@ -79,12 +82,6 @@
 # No checks for header files. We use stdio.h, unistd.h, and string.h.
 # Today, they are universally available if a C compiler is installed.
 
-dnl # Check system type
-dnl # FIXME: Is that needed for TeX Live compilation? Leave it in comments...
-dnl AC_CANONICAL_HOST
-dnl AC_SUBST(host_cpu)
-dnl AC_SUBST(host_os)
-
 # Checks for typedefs, structures, and compiler characteristics.
 
 # Checks for library functions.
diff -ur -x Makefile.in xindy.orig/src/Makefile.am xindy/src/Makefile.am
--- xindy.orig/src/Makefile.am	2009-12-03 01:38:20.000000000 +0100
+++ xindy/src/Makefile.am	2009-12-03 11:53:59.000000000 +0100
@@ -46,8 +46,10 @@
 xindy.mem: $(DEFAULTS) $(FAS) $(DUMP_XINDY)
 	rm -f $(MEMFILE)
 	$(CLISP) $(srcdir)/$(DUMP_XINDY)
-	gzip $(MEMFILE)
-	mv $(MEMFILE).gz $(MEMFILE)
+	if test "$(host_os)" != "mingw32"; then \
+	  gzip -9n $@; \
+	  mv $@.gz $@; \
+	fi
 
 $(DEFAULTS): $(DEFAULTS).in Makefile
 	sed 's|@MODULEDIR[@]|$(MODULEDIR)|g' <$(srcdir)/$(DEFAULTS).in >$(DEFAULTS)