From b8629901a25a1e11025add0f20dc650de3756746 Mon Sep 17 00:00:00 2001 From: Michael Jerris Date: Tue, 17 Jun 2014 09:44:17 -0500 Subject: [PATCH] fix dep check for building perl mods --- configure.ac | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index c6ff69b3ae..f41339adee 100644 --- a/configure.ac +++ b/configure.ac @@ -1230,9 +1230,10 @@ AM_CONDITIONAL([HAVE_MYSQL],[test "$found_mysql" = "yes"]) # AC_CHECK_PROG(PERL,perl,[ac_cv_have_perl=yes],[ac_cv_have_perl=no]) -AM_CONDITIONAL([HAVE_PERL],[test "x$ac_cv_have_perl" != "xno"]) +AC_CHECK_HEADER([EXTERN.h], [ac_cv_have_EXTERN_h=yes], [ac_cv_have_EXTERN_h=no]) +AM_CONDITIONAL([HAVE_PERL],[test "x$ac_cv_have_perl" != "xno" -a "x$ac_cv_have_EXTERN_h" != "xno"]) -if test "x$ac_cv_have_perl" != "xno" ; then +if test "x$ac_cv_have_perl" != "xno" -a "x$ac_cv_have_EXTERN_h" != "xno"; then PERL=perl PERL_SITEDIR="`$PERL -MConfig -e 'print $Config{sitelibexp}'`" PERL_LIBDIR="-L`$PERL -MConfig -e 'print $Config{archlib}'`/CORE"