summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrédéric Péters <fpeters@entrouvert.com>2014-03-28 16:45:00 +0100
committerBenjamin Dauvergne <bdauvergne@entrouvert.com>2014-03-31 10:55:58 +0200
commit190c7743c28ffb6113b6b1e86600923611adb7eb (patch)
treeb9d110487174de67beee135cb877060a96d0825f
parentc141a04ec02c3878a26f1144841a9ac73e643cd4 (diff)
downloadlasso-190c7743c28ffb6113b6b1e86600923611adb7eb.tar.gz
lasso-190c7743c28ffb6113b6b1e86600923611adb7eb.tar.xz
lasso-190c7743c28ffb6113b6b1e86600923611adb7eb.zip
perl: get required CFLAGS from $(perl -V::ccflags:)
-rw-r--r--configure.ac3
1 files changed, 3 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 674a6158..0f32ad31 100644
--- a/configure.ac
+++ b/configure.ac
@@ -531,12 +531,15 @@ AC_ARG_ENABLE(perl, [ --disable-perl disable the Perl binding],,
if test "X$PERL" != "X"; then
PERLINSTALLSITEARCH=`$PERL -MConfig -e 'print $Config{installsitearch};'`
PERLMAN3DIR=`$PERL -MConfig -e 'print $Config{man3dir};'`
+ PERL_CFLAGS=$($PERL -V::ccflags:)
else
PERLINSTALLSITEARCH=none
PERLMAN3DIR=none
+ PERL_CFLAGS=
fi
AC_SUBST(PERLINSTALLSITEARCH)
AC_SUBST(PERLMAN3DIR)
+AC_SUBST(PERL_CFLAGS)
AC_MSG_CHECKING(for Perl API)
if test "X$enable_perl" != "Xno" ; then