bug-gettext
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #66292] msgfmt for Windows compiled in cygwin: can't locate GNU.Get


From: Michele Locati
Subject: [bug #66292] msgfmt for Windows compiled in cygwin: can't locate GNU.Gettext.dll
Date: Sat, 5 Oct 2024 13:16:45 -0400 (EDT)

Follow-up Comment #2, bug #66292 (group gettext):

I've been able to have a "TESTCSHARP = yes" in the Makefile by modifying
gnulib with the following patch:


From 833fe220ade444943ef22d2dcbd79d6243d94b07 Mon Sep 17 00:00:00 2001
From: Michele Locati <michele@locati.it>
Date: Sat, 5 Oct 2024 19:05:08 +0200
Subject: [PATCH 1/1] Recognize working C# exe in Cygwin

---
 m4/csharpexec.m4 | 13 ++++++++++++-
 1 file changed, 12 insertions(+), 1 deletion(-)

diff --git a/m4/csharpexec.m4 b/m4/csharpexec.m4
index 8191579..0c64868 100644
--- a/m4/csharpexec.m4
+++ b/m4/csharpexec.m4
@@ -29,7 +29,7 @@ AC_DEFUN([gt_CSHARPEXEC],
   popdef([AC_MSG_RESULT])dnl
   popdef([AC_CHECKING])dnl
   popdef([AC_MSG_CHECKING])dnl
-  for impl in "$CSHARP_CHOICE" mono no; do
+  for impl in "$CSHARP_CHOICE" mono microsoft no; do
     case "$impl" in
       mono)
         if test -n "$HAVE_MONO_IN_PATH" \
@@ -60,6 +60,17 @@ AC_DEFUN([gt_CSHARPEXEC],
           break
         fi
         ;;
+      microsoft)
+        case $host_os in
+          cygwin* | mingw* | windows* | pw32*)
+            if false \
+               m4_if([$1], , , [|| $2/$1 >/dev/null 2>/dev/null]); then
+              ac_result="microsoft"
+              break 2
+            fi
+            ;;
+        esac
+        ;;
       no)
         HAVE_CSHARPEXEC=
         ac_result="no"
-- 
2.43.0



Please remark that gt_CSHARPEXEC recognizes "microsoft" as a working
CSHARP_CHOICE in Cygwin only if it receives the arguments (that is, the .exe
name and its path).

Also, as I already wrote, this only works if the .exe has the executable bit
set. So, what about running chmod +x gettext-tools/m4/csharpexec-test.exe and
committing it to the gettext repo?
I know that it's not a posix executable, but would that hurt posix users?




    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?66292>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/

Attachment: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]