From 548be28694f1afa0cc8f6f79cfec33f81872b339 Mon Sep 17 00:00:00 2001 From: Michael Jerris Date: Tue, 17 Jun 2014 11:44:18 -0500 Subject: [PATCH] FS-6602: check for libperl libstalled and linkable too --- configure.ac | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index a3b8b75a95..b257069443 100644 --- a/configure.ac +++ b/configure.ac @@ -1248,6 +1248,11 @@ if test "x$ac_cv_have_perl" != "xno"; then # include ]]) CFLAGS="$save_CFLAGS" + save_LDFLAGS="$LDFLAGS" + LDFLAGS="$PERL_LDFLAGS" + AC_CHECK_LIB([perl], [perl_alloc], ac_cv_use_libperl=yes, ac_cv_use_libperl=no) + LDFLAGS="$save_LDFLAGS" + AC_SUBST(PERL_SITEDIR) AC_SUBST(PERL_LIBDIR) AC_SUBST(PERL_LIBS) @@ -1256,7 +1261,7 @@ if test "x$ac_cv_have_perl" != "xno"; then AC_SUBST(PERL_INC) fi -AM_CONDITIONAL([HAVE_PERL],[test "x$ac_cv_have_perl" != "xno" -a "x$ac_cv_have_EXTERN_h" != "xno"]) +AM_CONDITIONAL([HAVE_PERL],[test "x$ac_cv_have_perl" != "xno" -a "x$ac_cv_have_EXTERN_h" != "xno" -a "x$ac_cv_use_libperl" != "xno"]) # # php checks