/soc/2013/ankitkv/gobjectification: 7f6509afc91e: disabled perl,...

Ankit Vani a at nevitus.org
Tue Sep 24 11:25:08 EDT 2013


Changeset: 7f6509afc91e8fe8539a52705d57af1747839730
Author:	 Ankit Vani <a at nevitus.org>
Date:	 2013-09-24 20:52 +0530
Branch:	 soc.2013.gobjectification.plugins
URL: https://hg.pidgin.im/soc/2013/ankitkv/gobjectification/rev/7f6509afc91e

Description:

disabled perl, tcl, mono loaders. this will be handled by gplugin.

diffstat:

 configure.ac                  |  321 +-----------------------------------------
 libpurple/Makefile.am         |    2 -
 libpurple/plugins/Makefile.am |   17 +--
 pidgin/plugins/Makefile.am    |    7 +-
 4 files changed, 8 insertions(+), 339 deletions(-)

diffs (truncated from 451 to 300 lines):

diff --git a/configure.ac b/configure.ac
--- a/configure.ac
+++ b/configure.ac
@@ -1693,7 +1693,6 @@ AM_CONDITIONAL(ENABLE_KWALLET, test "x$e
 dnl #######################################################################
 dnl # Check for GPlugin 0.0.9
 dnl #######################################################################
-GOBJECT_INTROSPECTION_CHECK([1.30.0])
 if test "x$enable_plugins" = "xyes" ; then
 	PKG_CHECK_MODULES(GPLUGIN, [gplugin >= 0.0.9 gmodule-2.0], , [
 		AC_MSG_RESULT(no)
@@ -1704,8 +1703,13 @@ if test "x$enable_plugins" = "xyes" ; th
 	])])
 	AC_SUBST(GPLUGIN_CFLAGS)
 	AC_SUBST(GPLUGIN_LIBS)
+else
+	enable_introspection=no
 fi
 
+dnl # Check for gobject introspection
+GOBJECT_INTROSPECTION_CHECK([1.30.0])
+
 dnl #######################################################################
 dnl # Check for Python
 dnl #######################################################################
@@ -1836,167 +1840,6 @@ AC_SUBST(PY_CFLAGS)
 AC_SUBST(PY_LIBS)
 
 dnl #######################################################################
-dnl # Check for Mono support
-dnl #######################################################################
-AC_ARG_ENABLE(mono, [AS_HELP_STRING([--enable-mono], [compile with Mono runtime support (experimental)])], , enable_mono=no)
-if test x"$enable_mono" = x"yes" ; then
-	PKG_CHECK_MODULES(MONO, mono, [
-		AC_SUBST(MONO_CFLAGS)
-		AC_SUBST(MONO_LIBS)
-		enable_mono=yes
-	], [
-		AC_MSG_RESULT(no)
-		AC_MSG_ERROR([
-Mono development headers not found.
-Use --disable-mono if you do not need Mono support.
-])
-	])
-	if test x"$enable_mono" = x"yes"; then
-		oldLIBS="$LIBS"
-		LIBS="$LIBS $MONO_LIBS"
-		AC_MSG_CHECKING(for libmono)
-		AC_CHECK_FUNCS(mono_jit_init, [], enable_mono=no)
-		LIBS="$oldLIBS"
-
-		oldCPPFLAGS="$CPPFLAGS"
-		CPPFLAGS="$CPPFLAGS $MONO_CFLAGS"
-		AC_CHECK_HEADERS(mono/jit/jit.h, [], enable_mono=no)
-		AC_CHECK_HEADERS(mono/metadata/object.h, [], enable_mono=no)
-		CPPFLAGS="$oldCPPFLAGS"
-
-		AC_DEFINE(ENABLE_MONO, 1, [Define if mono enabled.])
-	fi
-else
-	MONO_CFLAGS=
-	MONO_LIBS=
-	enable_mono=no
-fi
-
-AC_SUBST(MONO_CFLAGS)
-AC_SUBST(MONO_LIBS)
-AM_CONDITIONAL(USE_MONO, test x"$enable_mono" = x"yes")
-
-dnl #######################################################################
-dnl # Check for Perl support
-dnl #######################################################################
-AC_ARG_ENABLE(perl, [AS_HELP_STRING([--disable-perl], [compile without perl scripting])], , enable_perl=yes)
-
-if test "$enable_plugins" = no ; then
-	enable_perl=no
-fi
-looked_for_perl="no"
-if test "$enable_perl" = yes ; then
-	looked_for_perl="yes"
-	AC_PATH_PROG(perlpath, perl)
-	AC_MSG_CHECKING(for Perl compile flags)
-	PERL_CFLAGS=`$perlpath -MExtUtils::Embed -e ccopts 2>/dev/null`
-	if test "_$PERL_CFLAGS" = _ ; then
-		AC_MSG_RESULT([not found, building without perl.])
-		enable_perl=no
-	else
-		PERL_LIBS=`$perlpath -MExtUtils::Embed -e ldopts 2>/dev/null |$sedpath 's/-lgdbm //'`
-		PERL_LIBS=`echo $PERL_LIBS |$sedpath 's/-ldb //'`
-		PERL_LIBS=`echo $PERL_LIBS |$sedpath 's/-lndbm //'`
-		if test "$system" = "Linux"; then
-			PERL_LIBS=`echo $PERL_LIBS |$sedpath 's/-lnsl //'`
-			PERL_LIBS=`echo $PERL_LIBS |$sedpath 's/-lposix //'`
-		fi
-		PERL_LIBS=`echo $PERL_LIBS |$sedpath 's/-lc //'`
-		AC_MSG_RESULT(ok)
-
-		oldLIBS="$LIBS"
-		LIBS="$LIBS $PERL_LIBS"
-		AC_MSG_CHECKING(for libperl)
-		AC_CHECK_FUNCS(perl_run, [], enable_perl=no)
-		LIBS="$oldLIBS"
-
-		oldCPPFLAGS="$CPPFLAGS"
-		CPPFLAGS="$CPPFLAGS $PERL_CFLAGS"
-		AC_CHECK_HEADERS(EXTERN.h)
-		AC_CHECK_HEADERS(perl.h, [], enable_perl=no,
-		[#if HAVE_EXTERN_H
-		 # include <EXTERN.h>
-		 #endif])
-		CPPFLAGS="$oldCPPFLAGS"
-	fi
-fi
-
-if test "$enable_perl" = yes ; then
-	AC_PROG_PERL_MODULES(ExtUtils::MakeMaker, , have_makemaker=no)
-
-	if test "x$have_makemaker" = "xno"; then
-		enable_perl=no
-		PERL_CFLAGS=
-		PERL_LIBS=
-		AM_CONDITIONAL(USE_PERL, false)
-		AC_MSG_WARN(Compiling perl requires ExtUtils::MakeMaker)
-	else
-		AC_DEFINE(HAVE_PERL, [1], [Compile with support for perl])
-		AC_SUBST(PERL_CFLAGS)
-		AC_SUBST(PERL_LIBS)
-		AM_CONDITIONAL(USE_PERL, true)
-
-		dnl This is almost definitely wrong, but in case there's
-		dnl something I'm missing, I'll leave it in.
-		AC_CHECK_FUNCS(Perl_eval_pv)
-
-		AC_MSG_CHECKING(for old perl)
-		PERL_OLD=`$perlpath -e 'if($]<5.006){printf"yes\n";}else{printf"no\n";}'`
-
-		if test "x$PERL_OLD" = "xyes"; then
-			AC_DEFINE(OLD_PERL, 1, [Define if old perl is installed.])
-			AC_MSG_RESULT(yes)
-		else
-			AC_MSG_RESULT(no)
-		fi
-
-		AC_MSG_CHECKING(for DynaLoader.a)
-		DYNALOADER_A=`echo $PERL_LDFLAGS | $perlpath -pe 's/^(.* )*([[^ ]]*DynaLoader\.a).*/\2/'`
-
-		dnl Don't check libperl.a if dynaloader.a wasn't found.
-		if test -n "$DYNALOADER_A"; then
-			AC_MSG_RESULT(yes)
-
-			dnl Find either libperl.a or libperl.so
-			AC_MSG_CHECKING(for libperl.a or libperl.so)
-			LIBPERL_A=`echo "$PERL_LDFLAGS -L/usr/lib"|$perlpath -e 'foreach (split(/ /, <STDIN>)) { if (/^-L(.*)/) { my $dir=$1; if (\`ls $dir/libperl.so* 2>/dev/null\`) { print "-lperl"; last; }; if (-e "$dir/libperl.a") { print "$dir/libperl.a"; last } } };'`
-			if test -z "$LIBPERL_A"; then
-				AC_MSG_RESULT(no)
-				DYNALOADER_A=
-			else
-				AC_MSG_RESULT(yes)
-
-				if test "$LIBPERL_A" = "-lperl"; then
-					LIBPERL_A=
-				fi
-			fi
-
-			PERL_LIBS=`echo $PERL_LIBS | $perlpath -pe 's/^(.* )*[[^ ]]*DynaLoader\.a/\1libperl_dynaloader.la/'`
-
-			if test -n "$LIBPERL_A"; then
-				PERL_LIBS=`echo $PERL_LDFLAGS | $sedpath -e 's/-lperl /libperl_orig.la /' -e 's/-lperl$/libperl_orig.la$/'`
-			fi
-
-			AC_SUBST(DYNALOADER_A)
-			AC_SUBST(LIBPERL_A)
-		else
-			AC_MSG_RESULT(no)
-		fi
-	fi
-else
-	PERL_CFLAGS=
-	PERL_LIBS=
-	AM_CONDITIONAL(USE_PERL, false)
-fi
-
-if test "x$looked_for_perl" = "xyes" -a "x$enable_perl" = "xno" -a "x$force_deps" = "xyes"; then
-	AC_MSG_ERROR([
-Perl development headers not found.
-Use --disable-perl if you do not need Perl scripting support.
-])
-fi
-
-dnl #######################################################################
 dnl # SSL support
 dnl #
 dnl # Thanks go to Evolution for the checks.
@@ -2456,147 +2299,6 @@ MSN, Yahoo!, Novell Groupwise and Google
 ])
 fi
 
-dnl #######################################################################
-dnl # Check for Tcl
-dnl #######################################################################
-AC_ARG_ENABLE(tcl, [AS_HELP_STRING([--disable-tcl],
-	[compile without Tcl scripting])], enable_tcl="$enableval", enable_tcl="yes")
-AC_ARG_WITH(tclconfig, [AS_HELP_STRING([--with-tclconfig=DIR],
-	[directory containing tclConfig.sh])])
-
-if test "$enable_plugins" = no; then
-	enable_tcl=no
-fi
-
-if test "$enable_tcl" = yes; then
-	AC_MSG_CHECKING([for tclConfig.sh])
-	TCLCONFIG=no
-	TCLCONFIGDIRS="/usr/lib \
-			/usr/lib64 \
-			/usr/lib/tcl8.5 \
-			/usr/lib/tcl8.4 \
-			/usr/lib/tcl8.3 \
-			/usr/lib/tcl8.2 \
-			/usr/lib64/tcl8.5 \
-			/usr/lib64/tcl8.4 \
-			/System/Library/Tcl/8.3 \
-			/usr/local/lib"
-	for dir in $with_tclconfig $TCLCONFIGDIRS; do
-		if test -f $dir/tclConfig.sh; then
-			TCLCONFIG=$dir/tclConfig.sh
-			AC_MSG_RESULT([yes ($TCLCONFIG)])
-			break
-		fi
-	done
-	if test "$TCLCONFIG" = "no"; then
-		AC_MSG_RESULT([no])
-		enable_tcl=no
-		if test "x$force_deps" = "xyes" ; then
-			AC_MSG_ERROR([
-Tcl development headers not found.
-Use --disable-tcl if you do not need Tcl scripting support.
-])
-		fi
-	else
-		. $TCLCONFIG
-		AC_MSG_CHECKING([Tcl version compatability])
-		if test "$TCL_MAJOR_VERSION" -ne 8 -o "$TCL_MINOR_VERSION" -lt 3; then
-			AC_MSG_RESULT([bad, $TCL_VERSION found but 8.3 or later required])
-			enable_tcl=no
-		else
-			AC_MSG_RESULT([ok, $TCL_VERSION])
-			eval "TCL_LIB_SPEC=\"$TCL_LIB_SPEC\""
-			AC_MSG_CHECKING([for Tcl linkability])
-			oldCPPFLAGS=$CPPFLAGS
-			CPPFLAGS="$CPPFLAGS $TCL_INCLUDE_SPEC -I$TCL_PREFIX/include"
-			oldLIBS=$LIBS
-			LIBS="$LIBS $TCL_LIB_SPEC"
-			AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <tcl.h>]],
-				[[Tcl_Interp *interp=NULL; Tcl_Init(interp)]])],
-				[AC_MSG_RESULT([yes]);enable_tcl=yes],
-				[AC_MSG_RESULT([no]);enable_tcl=no])
-			CPPFLAGS="$oldCPPFLAGS"
-			LIBS="$oldLIBS"
-		fi
-	fi
-fi
-
-if test "$enable_tcl" = yes; then
-	AM_CONDITIONAL(USE_TCL, true)
-	TCL_LIBS=$TCL_LIB_SPEC
-	AC_DEFINE(HAVE_TCL, [1], [Compile with support for the Tcl toolkit])
-	AC_SUBST(TCL_LIBS)
-	TCL_CFLAGS="$TCL_INCLUDE_SPEC -I$TCL_PREFIX/include"
-	if test "x$GCC" = "xyes"; then
-		TCL_CFLAGS="$TCL_CFLAGS -fno-strict-aliasing"
-	fi
-	AC_SUBST(TCL_CFLAGS)
-else
-	AM_CONDITIONAL(USE_TCL, false)
-fi
-
-dnl #######################################################################
-dnl # Check for Tk
-dnl #######################################################################
-AC_ARG_ENABLE(tk, [AS_HELP_STRING([--disable-tk],
-	[compile without Tcl support for Tk])], enable_tk="$enableval", enable_tk="yes")
-AC_ARG_WITH(tkconfig, [AS_HELP_STRING([--with-tkconfig=DIR],
-	[directory containing tkConfig.sh])])
-
-if test "$enable_tcl" = yes -a "$enable_tk" = yes; then
-	AC_MSG_CHECKING([for tkConfig.sh])
-	TKCONFIG=no
-	TKCONFIGDIRS="/usr/lib \
-			/usr/lib64 \
-			/usr/lib/tk8.5 \
-			/usr/lib/tk8.4 \
-			/usr/lib/tk8.3 \
-			/usr/lib/tk8.2 \
-			/usr/local/lib"
-	for dir in $with_tkconfig $TKCONFIGDIRS; do
-		if test -f $dir/tkConfig.sh; then
-			TKCONFIG=$dir/tkConfig.sh
-			AC_MSG_RESULT([yes ($TKCONFIG)])
-			break
-		fi



More information about the Commits mailing list