152 dnl +--------------------------------------+ |
152 dnl +--------------------------------------+ |
153 |
153 |
154 dnl -------------- |
154 dnl -------------- |
155 dnl | mono setup |-------------------------------------------- |
155 dnl | mono setup |-------------------------------------------- |
156 dnl -------------- |
156 dnl -------------- |
157 AC_ARG_ENABLE(mono, [ --enable-mono build mono bindings [default=auto]], enable_mono="$enableval", enable_mono=auto) |
157 dnl AC_ARG_ENABLE(mono, [ --enable-mono build mono bindings [default=auto]], enable_mono="$enableval", enable_mono=auto) |
158 |
158 |
159 if test "x$enable_mono" != "xno"; then |
159 dnl if test "x$enable_mono" != "xno"; then |
160 PKG_CHECK_MODULES(,gtk-sharp,have_mono=yes,have_mono=no) |
160 dnl PKG_CHECK_MODULES(,gtk-sharp,have_mono=yes,have_mono=no) |
161 |
161 |
162 if test "x$have_mono" = "xyes"; then |
162 dnl if test "x$have_mono" = "xyes"; then |
163 AC_PATH_PROG(MCS, mcs, no) |
163 dnl AC_PATH_PROG(MCS, mcs, no) |
164 AC_PATH_PROG(MONO, mono, no) |
164 dnl AC_PATH_PROG(MONO, mono, no) |
165 fi |
165 dnl fi |
166 else |
166 dnl else |
167 have_mono=no |
167 dnl have_mono=no |
168 fi |
168 dnl fi |
169 |
169 |
170 if test "x$enable_mono" = "xyes"; then |
170 dnl if test "x$enable_mono" = "xyes"; then |
171 AC_MSG_CHECKING(for mono environment) |
171 dnl AC_MSG_CHECKING(for mono environment) |
172 if test "x$have_mono" = "xno"; then |
172 dnl if test "x$have_mono" = "xno"; then |
173 AC_MSG_ERROR([not found]) |
173 dnl AC_MSG_ERROR([not found]) |
174 fi |
174 dnl fi |
175 fi |
175 dnl fi |
176 |
176 |
177 AM_CONDITIONAL(HAVE_MONO, test x$have_mono = xyes) |
177 dnl AM_CONDITIONAL(HAVE_MONO, test x$have_mono = xyes) |
178 |
178 |
179 AC_OUTPUT([ |
179 AC_OUTPUT([ |
180 Makefile |
180 Makefile |
181 docs/Makefile |
181 docs/Makefile |
182 docs/reference/Makefile |
182 docs/reference/Makefile |
186 loudmouth.spec]) |
186 loudmouth.spec]) |
187 |
187 |
188 dnl ========================================================================== |
188 dnl ========================================================================== |
189 echo " |
189 echo " |
190 |
190 |
191 Loudmouth $VERSION from Imendio AB |
191 Loudmouth $VERSION from Imendio AB |
192 ================================== |
192 ===================================== |
193 |
193 |
194 prefix: ${prefix} |
194 prefix: ${prefix} |
195 compiler: ${CC} |
195 compiler: ${CC} |
196 " |
196 Enable SSL ${enable_ssl} |
197 |
197 Enable Debug: ${enable_debug} |
198 if test x$enable_mono = xyes ; then |
198 |
199 echo \ |
199 Now type 'make' to build Loudmouth |
200 " mcs: ${MCS} |
|
201 mcsflags: ${MCSFLAGS} |
|
202 " |
200 " |
203 else |
201 |
204 echo \ |
|
205 " mcs: (not enabled) |
|
206 " |
|
207 fi |
|
208 |
|
209 |
|
210 echo \ |
|
211 " Enable SSL ${enable_ssl}" |
|
212 echo \ |
|
213 " Enable Debug: ${enable_debug} |
|
214 " |
|
215 echo \ |
|
216 " Now type 'make' to build Loudmouth |
|
217 " |
|
218 |
|