changeset 3931:98faba851ea9

[gaim-migrate @ 4103] Thanks, Evan. committer: Tailor Script <tailor@pidgin.im>
author Sean Egan <seanegan@gmail.com>
date Fri, 08 Nov 2002 18:08:41 +0000
parents 22e3bbbd9a32
children 912a580f09dd
files configure.ac
diffstat 1 files changed, 19 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/configure.ac	Fri Nov 08 07:51:28 2002 +0000
+++ b/configure.ac	Fri Nov 08 18:08:41 2002 +0000
@@ -204,13 +204,28 @@
 		fi
 		PERL_LIBS=`echo $PERL_LIBS |$sedpath 's/-lc //'`
 		AC_MSG_RESULT(ok)
-		AC_SUBST(PERL_CFLAGS)
-		AC_SUBST(PERL_LIBS)
-		AC_DEFINE(USE_PERL, 1, [Define if Perl is enabled.])
-		AC_CHECK_FUNCS(Perl_eval_pv)
+
+		oldLIBS=$LIBS
+		LIBS="$LIBS $PERL_LIBS"
+		AC_MSG_CHECKING(for libperl)
+		AC_CHECK_FUNCS(perl_run, [], enable_perl=no)
+		LIBS=$oldLIBS
 	fi
 fi
 
+if test "$enable_perl" = yes ; then
+	AC_SUBST(PERL_CFLAGS)
+	AC_SUBST(PERL_LIBS)
+	AC_DEFINE(USE_PERL, 1, [Define if Perl is enabled.])
+
+	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)
+else
+	PERL_CFLAGS=
+	PERL_LIBS=
+fi
+
 dnl Thanks, Evan.
 if test "$enable_gtkspell" = yes ; then
 	PKG_CHECK_MODULES(GTKSPELL, gtkspell-2.0 >= 2.0.2, , enable_gtkspell=no)