]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Defend against pnet installations with missing pnetlib.
authorBruno Haible <bruno@clisp.org>
Tue, 3 May 2005 10:42:29 +0000 (10:42 +0000)
committerBruno Haible <bruno@clisp.org>
Tue, 23 Jun 2009 10:12:33 +0000 (12:12 +0200)
gettext-tools/m4/ChangeLog
gettext-tools/m4/csharpcomp.m4

index f96cd6bb6a2a669f4fd621524d2b65f9c304b173..ca819c4a54f7f3544f2a2bccf1d73e95cd9e1772 100644 (file)
@@ -1,3 +1,9 @@
+2005-05-01  Bruno Haible  <bruno@clisp.org>
+
+       * csharpcomp.m4 (gt_CSHARPCOMP): Check that cscc can actually compile
+       a trivial program.
+       Reported by Pierre <pierre42d@9online.fr>.
+
 2005-04-11  Bruno Haible  <bruno@clisp.org>
 
        * gettext-0.14.4 released.
index fc6edcc57522a0731365c4bd0a4ed67ccae66e6e..b107f9f55ac1b835612e791eb2857713cfc3966a 100644 (file)
@@ -1,4 +1,4 @@
-# csharpcomp.m4 serial 4 (gettext-0.14.2)
+# csharpcomp.m4 serial 5 (gettext-0.15)
 dnl Copyright (C) 2003-2005 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -25,7 +25,15 @@ AC_DEFUN([gt_CSHARPCOMP],
     case "$impl" in
       pnet)
         if test -n "$HAVE_CSCC_IN_PATH" \
-           && cscc --version >/dev/null 2>/dev/null; then
+           && cscc --version >/dev/null 2>/dev/null \
+           && (
+             # See if pnetlib is well installed.
+             echo 'class ConfTest { static void Main() { } }' > conftest.cs
+             cscc -o conftest.exe conftest.cs 2>/dev/null
+             error=$?
+             rm -f conftest.cs conftest.exe
+             exit $error
+            ); then
           HAVE_CSCC=1
           ac_result="cscc"
           break