configure.ac

changeset 4298
af01cbb94efe
parent 4252
06a5761c6d5c
child 4390
590cb1708f57
equal deleted inserted replaced
4297:e44e2f176ca8 4298:af01cbb94efe
238 AC_DEFINE(USE_PERL, 1, [Define if Perl is enabled.]) 238 AC_DEFINE(USE_PERL, 1, [Define if Perl is enabled.])
239 239
240 dnl This is almost definitely wrong, but in case there's 240 dnl This is almost definitely wrong, but in case there's
241 dnl something I'm missing, I'll leave it in. 241 dnl something I'm missing, I'll leave it in.
242 AC_CHECK_FUNCS(Perl_eval_pv) 242 AC_CHECK_FUNCS(Perl_eval_pv)
243
244 AC_MSG_CHECKING(for old perl)
245 PERL_OLD=`$perlpath -e 'if($]<5.006){printf"yes\n";}else{printf"no\n";}'`
246
247 if test "$PERL_OLD" = "yes"; then
248 AC_DEFINE(OLD_PERL, 1, [Define if old perl is installed.])
249 AC_MSG_RESULT(yes)
250 else
251 AC_MSG_RESULT(no)
252 fi
243 else 253 else
244 PERL_CFLAGS= 254 PERL_CFLAGS=
245 PERL_LIBS= 255 PERL_LIBS=
246 fi 256 fi
247 257

mercurial