Home | History | Annotate | Download | only in nls
      1 #!/bin/sh
      2 
      3 localedir="@localedir@"
      4 build_alias="@build_alias@"
      5 host_alias="@host_alias@"
      6 
      7 binlocaledir="`@PRINT_LOCALEDIR@ 2> /dev/null`"
      8 
      9 if test "${localedir}" = "${binlocaledir}"; then
     10     echo "Makefile and binary agree on localedir \`${localedir}'. Good."
     11     exit 0
     12 else
     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
     25 fi
     26