From 9fb4eb5107a133a4c0492f11f02cdeb014042786 Mon Sep 17 00:00:00 2001 From: Dan Molik Date: Wed, 29 Oct 2014 17:26:53 -0400 Subject: [PATCH] configure: Fix checking for perl Closes #1196 Fixes #1197 --- configure.ac | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index 61feba80..2177e747 100644 --- a/configure.ac +++ b/configure.ac @@ -255,8 +255,11 @@ if test "$perl" = yes; then original_ldflags="$LDFLAGS" CFLAGS="$PERL_CFLAGS" LDFLAGS="$PERL_LDFLAGS" - AC_TRY_LINK([#include - #include ], [], perl_is_usable=yes, perl_is_usable=no) + AC_TRY_LINK([ + #define PERL_NO_INLINE_FUNCTIONS + #include + #include + ], [], perl_is_usable=yes, perl_is_usable=no) CFLAGS="$original_cflags" LDFLAGS="$original_ldflags" if test x$perl_is_usable = xno ; then