aboutsummaryrefslogtreecommitdiff
path: root/m4
diff options
context:
space:
mode:
authorRuss Allbery <eagle@eyrie.org>2018-06-03 17:36:30 -0700
committerRuss Allbery <eagle@eyrie.org>2018-06-03 17:39:28 -0700
commitf31585af9ec404b3fc63738d48d6e9bfb6e7db25 (patch)
tree898350ed1b6009ba86d01fbd5c9d1e7e4c2a2897 /m4
parent68c4b05c268cd6e358cc41c8feb44bc2c7fcb898 (diff)
Resync files with rra-c-util
Mostly comment and copyright changes, nothing that affects this package.
Diffstat (limited to 'm4')
-rw-r--r--m4/perl.m412
1 files changed, 11 insertions, 1 deletions
diff --git a/m4/perl.m4 b/m4/perl.m4
index 6080c3d..432913c 100644
--- a/m4/perl.m4
+++ b/m4/perl.m4
@@ -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"])