1#!/bin/sh
2
3localedir="@localedir@"
4build_alias="@build_alias@"
5host_alias="@host_alias@"
6
7binlocaledir="`@PRINT_LOCALEDIR@ 2> /dev/null`"
8
9if test "${localedir}" = "${binlocaledir}"; then
10    echo "Makefile and binary agree on localedir \`${localedir}'. Good."
11    exit 0
12else
13    echo "Makefile and binary disagree on localedir. Bad."
14    echo "  - Makefile says \`${localedir}'."
15    echo "  - binary   says \`${binlocaledir}'."
16
17    if test "${build_alias}" != "${host_alias}"; then
18	echo "However, you are cross-compiling, so this does not necessarily"
19	echo "have consequences."
20	exit 0
21    else
22	echo "Error: Could not determine binary localedir."
23	exit 1
24    fi
25fi
26