diff options
author | Bruno Haible <bruno@clisp.org> | 2018-10-09 01:44:07 +0200 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2018-10-09 01:45:47 +0200 |
commit | 744e2d520d6f5cf93f1a9d2bc36b6a6d90f7ea95 (patch) | |
tree | 679d80b883bddb263b8c64ef29720dcbb9a85f77 /build-aux/csharpcomp.sh.in | |
parent | fd04e11fce4658e01685815c10060858ccf0bb25 (diff) | |
download | gnulib-744e2d520d6f5cf93f1a9d2bc36b6a6d90f7ea95.tar.gz |
csharpcomp*, csharpexec*: Remove support for pnet.
* m4/csharpcomp.m4 (gt_CSHARPCOMP): Don't test for cscc. Don't set
HAVE_CSCC.
* build-aux/csharpcomp.sh.in (options_cscc): Remove variable.
Don't test HAVE_CSCC.
* lib/csharpcomp.c (compile_csharp_using_pnet): Remove function.
(compile_csharp_class): Don't invoke it.
* m4/csharpexec.m4 (gt_CSHARPEXEC): Don't test for ilrun. Don't set
HAVE_ILRUN.
* build-aux/csharpexec.sh.in (options_ilrun): Remove variable.
Don't test HAVE_ILRUN.
* lib/csharpexec.c (execute_csharp_using_pnet): Remove function.
(execute_csharp_program): Don't invoke it.
* m4/csharp.m4 (gt_CSHARP_CHOICE): Don't recognize --enable-csharp=pnet
any more.
Diffstat (limited to 'build-aux/csharpcomp.sh.in')
-rw-r--r-- | build-aux/csharpcomp.sh.in | 49 |
1 files changed, 18 insertions, 31 deletions
diff --git a/build-aux/csharpcomp.sh.in b/build-aux/csharpcomp.sh.in index a68ddcf5fe..19c56dd4e0 100644 --- a/build-aux/csharpcomp.sh.in +++ b/build-aux/csharpcomp.sh.in @@ -65,7 +65,6 @@ func_tmpdir () } sed_quote_subst='s/\([|&;<>()$`"'"'"'*?[#~=% \\]\)/\\\1/g' -options_cscc= options_mcs= options_csc="-nologo" sources= @@ -74,7 +73,6 @@ while test $# != 0; do -o) case "$2" in *.dll) - options_cscc="$options_cscc -shared" options_mcs="$options_mcs -target:library" options_csc="$options_csc -target:library" ;; @@ -82,29 +80,24 @@ while test $# != 0; do options_csc="$options_csc -target:exe" ;; esac - options_cscc="$options_cscc -o "`echo "$2" | sed -e "$sed_quote_subst"` options_mcs="$options_mcs -out:"`echo "$2" | sed -e "$sed_quote_subst"` options_csc="$options_csc -out:"`echo "$2" | sed -e "$sed_quote_subst"` shift ;; -L) - options_cscc="$options_cscc -L "`echo "$2" | sed -e "$sed_quote_subst"` options_mcs="$options_mcs -lib:"`echo "$2" | sed -e "$sed_quote_subst"` options_csc="$options_csc -lib:"`echo "$2" | sed -e "$sed_quote_subst"` shift ;; -l) - options_cscc="$options_cscc -l "`echo "$2" | sed -e "$sed_quote_subst"` options_mcs="$options_mcs -reference:"`echo "$2" | sed -e "$sed_quote_subst"` options_csc="$options_csc -reference:"`echo "$2" | sed -e "$sed_quote_subst"`".dll" shift ;; -O) - options_cscc="$options_cscc -O" options_csc="$options_csc -optimize+" ;; -g) - options_cscc="$options_cscc -g" options_mcs="$options_mcs -debug" options_csc="$options_csc -debug+" ;; @@ -113,7 +106,6 @@ while test $# != 0; do exit 1 ;; *.resources) - options_cscc="$options_cscc -fresources="`echo "$1" | sed -e "$sed_quote_subst"` options_mcs="$options_mcs -resource:"`echo "$1" | sed -e "$sed_quote_subst"` options_csc="$options_csc -resource:"`echo "$1" | sed -e "$sed_quote_subst"` ;; @@ -128,31 +120,26 @@ while test $# != 0; do shift done -if test -n "@HAVE_CSCC@"; then - test -z "$CSHARP_VERBOSE" || echo cscc $options_cscc $sources - exec cscc $options_cscc $sources -else - if test -n "@HAVE_MCS@"; then - # mcs prints it errors and warnings to stdout, not stderr. Furthermore it - # adds a useless line "Compilation succeeded..." at the end. Correct both. - sed_drop_success_line='${ +if test -n "@HAVE_MCS@"; then + # mcs prints it errors and warnings to stdout, not stderr. Furthermore it + # adds a useless line "Compilation succeeded..." at the end. Correct both. + sed_drop_success_line='${ /^Compilation succeeded/d }' - func_tmpdir - trap 'rm -rf "$tmp"' 1 2 3 15 - test -z "$CSHARP_VERBOSE" || echo mcs $options_mcs $sources - mcs $options_mcs $sources > "$tmp"/mcs.err - result=$? - sed -e "$sed_drop_success_line" < "$tmp"/mcs.err >&2 - rm -rf "$tmp" - exit $result + func_tmpdir + trap 'rm -rf "$tmp"' 1 2 3 15 + test -z "$CSHARP_VERBOSE" || echo mcs $options_mcs $sources + mcs $options_mcs $sources > "$tmp"/mcs.err + result=$? + sed -e "$sed_drop_success_line" < "$tmp"/mcs.err >&2 + rm -rf "$tmp" + exit $result +else + if test -n "@HAVE_CSC@"; then + test -z "$CSHARP_VERBOSE" || echo csc $options_csc $sources + exec csc $options_csc $sources else - if test -n "@HAVE_CSC@"; then - test -z "$CSHARP_VERBOSE" || echo csc $options_csc $sources - exec csc $options_csc $sources - else - echo 'C# compiler not found, try installing pnet, then reconfigure' 1>&2 - exit 1 - fi + echo 'C# compiler not found, try installing mono, then reconfigure' 1>&2 + exit 1 fi fi |