]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
build: Don't hint to --with-installed-csharp-dll when C# support is disabled.
authorBruno Haible <bruno@clisp.org>
Mon, 13 Feb 2023 00:31:53 +0000 (01:31 +0100)
committerBruno Haible <bruno@clisp.org>
Mon, 13 Feb 2023 00:31:53 +0000 (01:31 +0100)
When --disable-csharp was specified, gettext-tools/src/Makefile.am does not
produce msgunfmt.net.exe. Therefore it is irrelevant whether the condition
USE_INSTALLED_CSHARP_DLL evaluates to true or false. Thus the message
"WARNING: When building the gettext-tools package without building the entire
 gettext package, you need to pass the --with-installed-csharp-dll option to
 configure."
is pointless.

Reported by Ryan Schmidt in <https://savannah.gnu.org/bugs/?58668>.

* gettext-tools/configure.ac: Don't emit hint to use --with-installed-csharp-dll
when BUILDCSHARP is not 'yes'.

gettext-tools/configure.ac

index 449cd284fcf7ab1f43970592eb81210b4ed25a44..feb1a092640cb7313d892ff44dae7eeae99540f5 100644 (file)
@@ -154,7 +154,7 @@ AC_ARG_WITH([installed-csharp-dll],
      [Use an already installed C# DLL.])],
   [gt_use_installed_csharp_dll=$withval],
   [gt_use_installed_csharp_dll=no])
-if test "$gt_use_installed_csharp_dll" = no; then
+if test $BUILDCSHARP = yes && test "$gt_use_installed_csharp_dll" = no; then
   test -f ../gettext-runtime/intl-csharp/Makefile || {
     AC_MSG_WARN([When building the gettext-tools package without building the entire gettext package, you need to pass the --with-installed-csharp-dll option to configure.])
   }