1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
|
diff -NrU5 mono-tools-2.4.2.orig/configure.in mono-tools-2.4.2/configure.in
--- mono-tools-2.4.2.orig/configure.in 2009-09-02 13:49:47.000000000 +0200
+++ mono-tools-2.4.2/configure.in 2009-09-02 14:14:04.000000000 +0200
@@ -43,54 +43,84 @@
PKG_CHECK_MODULES(GTK_SHARP, gtk-sharp-2.0 glade-sharp-2.0 gnome-sharp-2.0 gconf-sharp-2.0)
#PKG_CHECK_MODULES(GTK_SHARP, gtk-sharp glade-sharp gconf-sharp)
AC_SUBST(GTK_SHARP_LIBS)
-PKG_CHECK_MODULES(GTKHTML_SHARP, gtkhtml-sharp-3.14, enable_gtkhtml=yes, enable_gtkhtml=no)
-if test "x$enable_gtkhtml" = "xyes"; then
-CSHARP_FLAGS="-d:GTKHTML_SHARP_3_14"
-else
-PKG_CHECK_MODULES(GTKHTML_SHARP, gtkhtml-sharp-2.0, enable_gtkhtml=yes, enable_gtkhtml=no)
-CSHARP_FLAGS=
+AC_ARG_ENABLE(gtkhtml,
+ AC_HELP_STRING([--enable-gtkhtml], [Use GTKHTML Browser]),,
+ enable_gtkhtml=yes)
+
+if test "x$enable_gtkhtml" = "xyes" ; then
+ PKG_CHECK_MODULES([GTKHTML_SHARP],
+ [gtkhtml-sharp-3.14],
+ [CSHARP_FLAGS="-d:GTKHTML_SHARP_3_14"],
+ [
+ PKG_CHECK_MODULES([GTKHTML_SHARP],
+ [gtkhtml-sharp-2.0],
+ [CSHARP_FLAGS=""],
+ [])
+ ]
+ )
+ AC_SUBST(GTKHTML_SHARP_LIBS)
+ AC_SUBST(CSHARP_FLAGS)
fi
-AC_SUBST(GTKHTML_SHARP_LIBS)
-AC_SUBST(CSHARP_FLAGS)
+
AM_CONDITIONAL(ENABLE_GTKHTML, test "x$enable_gtkhtml" = "xyes")
-PKG_CHECK_MODULES(GECKO_SHARP, gecko-sharp-2.0, enable_gecko=yes, enable_gecko=no)
-AC_SUBST(GECKO_SHARP_LIBS)
+AC_ARG_ENABLE(gecko,
+ AC_HELP_STRING([--enable-gecko], [Use Gecko / Xulrunner-1.8 browser libs]),,
+ enable_gecko=yes)
+
+if test "x$enable_gecko" = "xyes" ; then
+ PKG_CHECK_MODULES(GECKO_SHARP, gecko-sharp-2.0)
+
+ AC_SUBST(GECKO_SHARP_LIBS)
+
+ # get the mozilla home directory
+ MOZILLA_HOME="`$PKG_CONFIG --variable=libdir mozilla-gtkmozembed`"
+ AC_SUBST(MOZILLA_HOME)
+fi
+
AM_CONDITIONAL(ENABLE_GECKO, test "x$enable_gecko" = "xyes")
-if test "x$enable_gecko" = "xyes"; then
- # get the mozilla home directory
- MOZILLA_HOME="`$PKG_CONFIG --variable=libdir mozilla-gtkmozembed`"
- AC_SUBST(MOZILLA_HOME)
+AC_ARG_ENABLE(webkit,
+ AC_HELP_STRING([--enable-webkit], [Use Webkit browser]),,
+ enable_webkit=yes)
+
+if test "x$enable_webkit" = "xyes" ; then
+ PKG_CHECK_MODULES(WEBKIT_SHARP, webkit-sharp-1.0)
+ AC_SUBST(WEBKIT_SHARP_LIBS)
fi
-PKG_CHECK_MODULES(WEBKIT_SHARP, webkit-sharp-1.0, enable_webkit=yes, enable_webkit=no)
-AC_SUBST(WEBKIT_SHARP_LIBS)
AM_CONDITIONAL(ENABLE_WEBKIT, test "x$enable_webkit" = "xyes")
# PKG_CHECK_MODULES(MONOWEBBROWSER, mono-webbrowser, enable_monowebbrowser=yes, enable_monowebbrowser=no)
# AC_SUBST(MONOWEBBROWSER_LIBS)
-AC_MSG_CHECKING([for Mono.WebBrowser])
-if test "x$GACUTIL" = "xno"
-then
- AC_MSG_RESULT([no])
- if test "x$enable_monowebbrowser" = "x" ; then enable_monowebbrowser=no ; fi
-else
- if $GACUTIL -l Mono.WebBrowser | grep -q "Mono.WebBrowser"
+AC_ARG_ENABLE(monowebbrowser,
+ AC_HELP_STRING([--enable-monowebbrowser], [Use Mono.Webbrowser]),,
+ enable_monowebbrowser=yes)
+
+if test "x$enable_monowebbrowser" = "xyes" ; then
+ AC_MSG_CHECKING([for Mono.WebBrowser])
+ if test "x$GACUTIL" = "xno"
then
- AC_MSG_RESULT([yes])
- enable_monowebbrowser=yes
+ AC_MSG_RESULT([no])
+ if test "x$enable_monowebbrowser" = "x" ; then enable_monowebbrowser=no ; fi
else
- AC_MSG_RESULT([no])
- enable_monowebbrowser=no
- fi
+ if $GACUTIL -l Mono.WebBrowser | grep -q "Mono.WebBrowser"
+ then
+ AC_MSG_RESULT([yes])
+ enable_monowebbrowser=yes
+ MONOWEBBROWSER_LIBS=-r:Mono.WebBrowser
+ else
+ AC_MSG_RESULT([no])
+ enable_monowebbrowser=no
+ fi
+ fi
fi
-MONOWEBBROWSER_LIBS=-r:Mono.WebBrowser
+
AM_CONDITIONAL(ENABLE_MONOWEBBROWSER, test "x$enable_monowebbrowser" = "xyes")
if test "x$enable_gtkhtml$enable_gecko$enable_monowebbrowser$enable_webkit" = "xnononono" ; then
AC_MSG_ERROR([no HTML display found. You need either gtkhtml, gecko, WebKit or Mono.WebBrowser])
fi
|