comparison configure.ac @ 11660:a3302d271199

[gaim-migrate @ 13945] Thanks to the hard work of Eoin 'ecoffey' Coffey, here is the mono plugin loader. It needs a lot of api wrapping a bit more autotools loving, but with the basic API that is wrapped, it works quite well. committer: Tailor Script <tailor@pidgin.im>
author Gary Kramlich <grim@reaperworld.com>
date Fri, 14 Oct 2005 05:00:17 +0000
parents 39786dfdf6a2
children 4117f696638e
comparison
equal deleted inserted replaced
11659:d9a7befbc3f1 11660:a3302d271199
292 AM_CONDITIONAL(DYNAMIC_TREPIA, test "x$dynamic_trepia" = "xyes") 292 AM_CONDITIONAL(DYNAMIC_TREPIA, test "x$dynamic_trepia" = "xyes")
293 AM_CONDITIONAL(DYNAMIC_YAHOO, test "x$dynamic_yahoo" = "xyes") 293 AM_CONDITIONAL(DYNAMIC_YAHOO, test "x$dynamic_yahoo" = "xyes")
294 AM_CONDITIONAL(DYNAMIC_ZEPHYR, test "x$dynamic_zephyr" = "xyes") 294 AM_CONDITIONAL(DYNAMIC_ZEPHYR, test "x$dynamic_zephyr" = "xyes")
295 295
296 AC_ARG_ENABLE(audio, [ --disable-audio compile without libao/libaudiofile for sound playing],,enable_audio=yes) 296 AC_ARG_ENABLE(audio, [ --disable-audio compile without libao/libaudiofile for sound playing],,enable_audio=yes)
297 AC_ARG_ENABLE(mono, [ --disable-mono compile without Mono runtime support],,enable_mono=yes)
297 AC_ARG_ENABLE(plugins, [ --disable-plugins compile without plugin support],,enable_plugins=yes) 298 AC_ARG_ENABLE(plugins, [ --disable-plugins compile without plugin support],,enable_plugins=yes)
298 AC_ARG_ENABLE(perl, [ --disable-perl compile without perl scripting],,enable_perl=yes) 299 AC_ARG_ENABLE(perl, [ --disable-perl compile without perl scripting],,enable_perl=yes)
299 AC_ARG_ENABLE(tcl, [ --disable-tcl compile without Tcl scripting],,enable_tcl=yes) 300 AC_ARG_ENABLE(tcl, [ --disable-tcl compile without Tcl scripting],,enable_tcl=yes)
300 AC_ARG_WITH(tclconfig, [ --with-tclconfig=DIR directory containing tclConfig.sh]) 301 AC_ARG_WITH(tclconfig, [ --with-tclconfig=DIR directory containing tclConfig.sh])
301 AC_ARG_ENABLE(tk, [ --disable-tk compile without Tcl support for Tk],,enable_tk=yes) 302 AC_ARG_ENABLE(tk, [ --disable-tk compile without Tcl support for Tk],,enable_tk=yes)
569 fi 570 fi
570 ]) 571 ])
571 572
572 GC_TM_GMTOFF 573 GC_TM_GMTOFF
573 574
575 dnl #######################################################################
576 dnl # Check for Mono support
577 dnl #######################################################################
578
579 if test "$enable_mono" = yes ; then
580 AC_MSG_CHECKING(for Mono compile flags)
581 MONO_CFLAGS=`pkg-config --cflags mono 2> /dev/null`
582 if test $? != 0 ; then
583 AC_MSG_RESULT([not found, building without mono.])
584 MONO_CFLAGS=
585 MONO_LIBS=
586 enable_mono = no
587 else
588 MONO_LIBS=`pkg-config --libs mono 2> /dev/null`
589 AC_MSG_RESULT(ok)
590
591 oldLIBS="$LIBS"
592 LIBS="$LIBS $MONO_LIBS"
593 AC_MSG_CHECKING(for libmono)
594 AC_CHECK_FUNCS(mono_jit_init, [], enable_mono=no)
595 LIBS="$oldLIBS"
596
597 oldCPPFLAGS="$CPPFLAGS"
598 CPPFLAGS="$CPPFLAGS $MONO_CFLAGS"
599 AC_CHECK_HEADERS(mono/jit/jit.h, [], enable_mono=no)
600 AC_CHECK_HEADERS(mono/metadata/object.h, [], enable_mono=no)
601 CPPFLAGS="$oldCPPFLAGS"
602
603 AC_DEFINE(ENABLE_MONO, 1, [Define if mono enabled.])
604 fi
605 else
606 MONO_CFLAGS=
607 MONO_LIBS=
608 enable_mono = no
609 fi
610
611 AC_SUBST(MONO_CFLAGS)
612 AC_SUBST(MONO_LIBS)
613 AM_CONDITIONAL(USE_MONO, test "x$enable_mono" = "xyes")
574 614
575 dnl ####################################################################### 615 dnl #######################################################################
576 dnl # Check for Perl support 616 dnl # Check for Perl support
577 dnl ####################################################################### 617 dnl #######################################################################
578 if test "$enable_plugins" = no ; then 618 if test "$enable_plugins" = no ; then
1377 pixmaps/status/default/Makefile 1417 pixmaps/status/default/Makefile
1378 plugins/Makefile 1418 plugins/Makefile
1379 plugins/docklet/Makefile 1419 plugins/docklet/Makefile
1380 plugins/gevolution/Makefile 1420 plugins/gevolution/Makefile
1381 plugins/gestures/Makefile 1421 plugins/gestures/Makefile
1422 plugins/mono/Makefile
1423 plugins/mono/api/Makefile
1424 plugins/mono/loader/Makefile
1382 plugins/musicmessaging/Makefile 1425 plugins/musicmessaging/Makefile
1383 plugins/perl/Makefile 1426 plugins/perl/Makefile
1384 plugins/perl/common/Makefile.PL 1427 plugins/perl/common/Makefile.PL
1385 plugins/ssl/Makefile 1428 plugins/ssl/Makefile
1386 plugins/tcl/Makefile 1429 plugins/tcl/Makefile
1419 echo 1462 echo
1420 echo UI Library.................... : GTK+ 2.x 1463 echo UI Library.................... : GTK+ 2.x
1421 echo SSL Library/Libraries......... : $msg_ssl 1464 echo SSL Library/Libraries......... : $msg_ssl
1422 echo 1465 echo
1423 echo Build with Plugin support..... : $enable_plugins 1466 echo Build with Plugin support..... : $enable_plugins
1467 echo Build with Mono support....... : $enable_mono
1424 echo Build with Perl support....... : $enable_perl 1468 echo Build with Perl support....... : $enable_perl
1425 echo Build with Tcl support........ : $enable_tcl 1469 echo Build with Tcl support........ : $enable_tcl
1426 echo Build with Tk support......... : $enable_tk 1470 echo Build with Tk support......... : $enable_tk
1427 echo Build with Audio support...... : $enable_audio 1471 echo Build with Audio support...... : $enable_audio
1428 echo Build with GtkSpell support... : $enable_gtkspell 1472 echo Build with GtkSpell support... : $enable_gtkspell