d55116
diff -up dwdiff-2.0.9/configure.localedir dwdiff-2.0.9/configure
d55116
--- dwdiff-2.0.9/configure.localedir	2014-01-20 10:17:31.037273093 +0100
d55116
+++ dwdiff-2.0.9/configure	2014-01-20 10:17:38.687257366 +0100
4cb2a1
@@ -148,6 +148,8 @@ create_makefile() {
bf503d
 		replace_default prefix "${PREFIX}"
bf503d
 		replace_default mandir "${MANDIR}"
bf503d
 		replace_default CFLAGS "${CFLAGS}"
bf503d
+		replace_default BIND_DIR "${BIND_DIR}"
4cb2a1
+		replace_default DOC_DIR "${DOC_DIR}"
bf503d
 
bf503d
 
bf503d
 		[ -n "${TEST_INSTALL}" ] && replace_default INSTALL "${INSTALL}"
4cb2a1
@@ -216,6 +218,12 @@ EOF
bf503d
 		--prefix=*)
dff640
 			PREFIX=`echo "${PARAM}" | sed 's/^--prefix=//'`
bf503d
 		;;
bf503d
+		--binddir=*)
bf503d
+			BIND_DIR=`echo "${PARAM}" | sed 's/--binddir=//g'`
bf503d
+		;;
4cb2a1
+		--docdir=*)
4cb2a1
+			DOC_DIR=`echo "${PARAM}" | sed 's/--docdir=//g'`
4cb2a1
+		;;
bf503d
 		--mandir=*)
dff640
 			MANDIR=`echo "${PARAM}" | sed 's/^--mandir=//'`
bf503d
 		;;
d55116
diff -up dwdiff-2.0.9/Makefile.in.localedir dwdiff-2.0.9/Makefile.in
d55116
--- dwdiff-2.0.9/Makefile.in.localedir	2014-01-20 10:14:48.205514364 +0100
d55116
+++ dwdiff-2.0.9/Makefile.in	2014-01-20 10:18:25.205169393 +0100
4cb2a1
@@ -34,6 +34,8 @@ GETTEXTLIBS=
d1a2b1
 #  translations.
d1a2b1
 LOCALEDIR=$(prefix)/share/locale
d1a2b1
 LINGUAS=
4cb2a1
+BIND_DIR=$(prefix)/share/locale
4cb2a1
+DOC_DIR=$(prefix)/share/doc/dwdiff
d1a2b1
 
d1a2b1
 # Unicode/ICU config
d1a2b1
 # If unicode support is to be enabled, the following flags should be set
4cb2a1
@@ -54,7 +56,7 @@ DWFILTER=yes
4cb2a1
 
4cb2a1
 # Miscelaneous install paths
4cb2a1
 bindir=$(prefix)/bin
d55116
-docdir=$(prefix)/share/doc/dwdiff-2.0.9
4cb2a1
+docdir=$(prefix)/$(DOC_DIR)
4cb2a1
 mandir=$(prefix)/share/man
4cb2a1
 
4cb2a1
 all: dwdiff $(DWFILTER:yes=dwfilter) linguas
4cb2a1
@@ -73,7 +75,7 @@ dist-clean: clean
c755b0
 	rm -rf dwdiff config.log Makefile
c755b0
 
c755b0
 .c.o:
4cb2a1
-	$(CC) $(CFLAGS) -Isrc $(GETTEXTFLAGS) -DLOCALEDIR=\"$(LOCALEDIR)\" $(ICUFLAGS) -c -o $@ $<
4cb2a1
+	$(CC) $(CFLAGS) -Isrc $(GETTEXTFLAGS) -DLOCALEDIR=\"$(BIND_DIR)\" $(ICUFLAGS) -c -o $@ $<
c755b0
 
405a91
 dwdiff: $(OBJECTS_DWDIFF)
405a91
 	$(CC) $(CFLAGS) $(LDFLAGS) -o dwdiff $(OBJECTS_DWDIFF) $(LDLIBS) $(ICULIBS) $(GETTEXTLIBS)