• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#!/bin/sh
2# Copyright (C) 2005 Hans Ulrich Niedermann <gp@n-dimensional.de>
3# SPDX-License-Identifier: LGPL-2.0-or-later
4
5localedir="@localedir@"
6build_alias="@build_alias@"
7host_alias="@host_alias@"
8
9binlocaledir="`@PRINT_LOCALEDIR@ 2> /dev/null`"
10
11if test "${localedir}" = "${binlocaledir}"; then
12    echo "Makefile and binary agree on localedir \`${localedir}'. Good."
13    exit 0
14else
15    echo "Makefile and binary disagree on localedir. Bad."
16    echo "  - Makefile says \`${localedir}'."
17    echo "  - binary   says \`${binlocaledir}'."
18
19    if test "${build_alias}" != "${host_alias}"; then
20	echo "However, you are cross-compiling, so this does not necessarily"
21	echo "have consequences."
22	exit 0
23    else
24	echo "Error: Could not determine binary localedir."
25	exit 1
26    fi
27fi
28