~cszikszoy/do-plugins/fix-confluence

« back to all changes in this revision

Viewing changes to m4/shamrock/mono.m4

  • Committer: Christopher James Halse Rogers
  • Date: 2008-07-25 06:31:03 UTC
  • Revision ID: raof@cowboylaputopu.cooperteam.net-20080725063103-r77k514l0z7kfw03
Start making autotools work again; all the plugins that currently have autofoo should be working

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
AC_DEFUN([SHAMROCK_FIND_MONO_1_0_COMPILER],
 
2
[
 
3
        SHAMROCK_FIND_PROGRAM_OR_BAIL(MCS, mcs)
 
4
])
 
5
 
 
6
AC_DEFUN([SHAMROCK_FIND_MONO_2_0_COMPILER],
 
7
[
 
8
        SHAMROCK_FIND_PROGRAM_OR_BAIL(MCS, gmcs)
 
9
])
 
10
 
 
11
AC_DEFUN([SHAMROCK_FIND_MONO_RUNTIME],
 
12
[
 
13
        SHAMROCK_FIND_PROGRAM_OR_BAIL(MONO, mono)
 
14
])
 
15
 
 
16
AC_DEFUN([SHAMROCK_CHECK_MONO_MODULE],
 
17
[
 
18
        PKG_CHECK_MODULES(MONO_MODULE, mono >= $1)
 
19
])
 
20
 
 
21
AC_DEFUN([SHAMROCK_CHECK_MONO_MODULE_NOBAIL],
 
22
[
 
23
        PKG_CHECK_MODULES(MONO_MODULE, mono >= $1, 
 
24
                HAVE_MONO_MODULE=yes, HAVE_MONO_MODULE=no)
 
25
        AC_SUBST(HAVE_MONO_MODULE)
 
26
])
 
27
 
 
28
AC_DEFUN([SHAMROCK_CHECK_LINQ_FLAG],
 
29
[
 
30
        AC_MSG_CHECKING([for LINQ flag for mcs])
 
31
        if $PKG_CONFIG --atleast-version=1.9 mono ; then
 
32
           AC_MSG_RESULT([none needed])
 
33
           MCS_LINQ_FLAG=
 
34
        else
 
35
           AC_MSG_RESULT([-langversion:linq])
 
36
           MCS_LINQ_FLAG=-langversion:linq
 
37
        fi
 
38
        AC_SUBST(MCS_LINQ_FLAG)         
 
39
])
 
40
 
 
41
AC_DEFUN([_SHAMROCK_CHECK_MONO_GAC_ASSEMBLIES],
 
42
[
 
43
        for asm in $(echo "$*" | cut -d, -f2- | sed 's/\,/ /g')
 
44
        do
 
45
                AC_MSG_CHECKING([for Mono $1 GAC for $asm.dll])
 
46
                if test \
 
47
                        -e "$($PKG_CONFIG --variable=libdir mono)/mono/$1/$asm.dll" -o \
 
48
                        -e "$($PKG_CONFIG --variable=prefix mono)/lib/mono/$1/$asm.dll"; \
 
49
                        then \
 
50
                        AC_MSG_RESULT([found])
 
51
                else
 
52
                        AC_MSG_RESULT([not found])
 
53
                        AC_MSG_ERROR([missing reqired Mono $1 assembly: $asm.dll])
 
54
                fi
 
55
        done
 
56
])
 
57
 
 
58
AC_DEFUN([SHAMROCK_CHECK_MONO_1_0_GAC_ASSEMBLIES],
 
59
[
 
60
        _SHAMROCK_CHECK_MONO_GAC_ASSEMBLIES(1.0, $*)
 
61
])
 
62
 
 
63
AC_DEFUN([SHAMROCK_CHECK_MONO_2_0_GAC_ASSEMBLIES],
 
64
[
 
65
        _SHAMROCK_CHECK_MONO_GAC_ASSEMBLIES(2.0, $*)
 
66
])
 
67
 
 
68