diff options
author | Russ Allbery <eagle@eyrie.org> | 2018-06-03 17:42:07 -0700 |
---|---|---|
committer | Russ Allbery <eagle@eyrie.org> | 2018-06-03 17:42:07 -0700 |
commit | 9ab7e03e968734819a717354d4bc91295404fafd (patch) | |
tree | 3d4d5a64a0a3af449d236c5c350183109bdb2abc /m4/perl.m4 | |
parent | edf31eba414d9a105791c076fb1444a78d210dff (diff) | |
parent | b320ea60b2761fc984fe2870a718da1ef7fc7440 (diff) |
New upstream version 1.4
Diffstat (limited to 'm4/perl.m4')
-rw-r--r-- | m4/perl.m4 | 12 |
1 files changed, 11 insertions, 1 deletions
@@ -104,4 +104,14 @@ AC_DEFUN([RRA_LIB_PERL], rra_perl_core_libs=`echo "$rra_perl_core_libs" | sed 's/ *$//'` PERL_CPPFLAGS="$rra_perl_core_flags" PERL_LIBS="$rra_perl_core_libs" - AC_MSG_RESULT([$PERL_LIBS])]) + AC_MSG_RESULT([$PERL_LIBS]) + rra_perl_save_CPPFLAGS="$CPPFLAGS" + rra_perl_save_LIBS="$LIBS" + CPPFLAGS="$PERL_CPPFLAGS $CPPFLAGS" + LIBS="$PERL_LIBS $LIBS" + AC_CHECK_HEADER([EXTERN.h], [], + [AC_MSG_FAILURE([unable to compile with EXTERN.h])]) + AC_CHECK_FUNC([perl_alloc], [], + [AC_MSG_FAILURE([unable to link with Perl library])]) + CPPFLAGS="$rra_perl_save_CPPFLAGS" + LIBS="$rra_perl_save_LIBS"]) |