# Assumes an fr_FR locale is installed.
# Assumes the following packages are installed: mono, mcs.
+# Note: This test fails when a GNU gettext version < 0.17 is installed with
+# the same --prefix as mcs. mcs apparently searches ${prefix}/lib before
+# searching the directory specified on the command line:
+# $ mcs -out:program.exe -lib:../../gettext-runtime/intl-csharp -reference:GNU.Gettext program.cs
+# program.cs(17,45): error CS0117: `GNU.Gettext.GettextResourceManager' does not contain a definition for `GetParticularPluralString'
+# /usr/local/lib/GNU.Gettext.dll (Location of the symbol related to previous error)
+# program.cs(18,45): error CS0117: `GNU.Gettext.GettextResourceManager' does not contain a definition for `GetParticularString'
+# /usr/local/lib/GNU.Gettext.dll (Location of the symbol related to previous error)
+# Compilation failed: 2 error(s), 0 warnings
+# The workaround is to install GNU gettext with the same --prefix, despite
+# the test failure, and run "make check" afterwards.
+
# Test whether we can build and test C# programs.
test "${CSHARP_CHOICE}" != no || {
echo "Skipping test: configured with --disable-csharp"