forked from mia/Aegisub
Add a run check for Perl support.
Originally committed to SVN as r2133.
This commit is contained in:
parent
5c66e27c9b
commit
faff96d0f6
1 changed files with 16 additions and 0 deletions
16
configure.in
16
configure.in
|
@ -608,11 +608,27 @@ if test -z "$perl_disabled"; then
|
|||
AC_MSG_CHECKING([$PERL_BIN libs])
|
||||
PERL_LDFLAGS=`$PERL_BIN -MExtUtils::Embed -eldopts`
|
||||
AC_MSG_RESULT([$PERL_LDFLAGS])
|
||||
|
||||
AC_AGI_COMPILE([Perl], [perl], [$PERL_CFLAGS], [$PERL_LDFLAGS],[
|
||||
#include <EXTERN.h>
|
||||
#include <perl.h>
|
||||
int main(int argc, char **argv) {
|
||||
static PerlInterpreter *my_perl;
|
||||
PERL_SYS_INIT3(&argc,&argv,&env);
|
||||
my_perl = perl_alloc();
|
||||
if (!my_perl) return 1;
|
||||
return 0;
|
||||
}])
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
||||
|
||||
if test "$agi_with_perl" = "no" && test "$with_perl" = "yes"; then
|
||||
AC_MSG_WARN([Perl detected, but it doesn't work..])
|
||||
with_perl="no"
|
||||
fi
|
||||
|
||||
AC_SUBST(PERL_CFLAGS)
|
||||
AC_SUBST(PERL_LDFLAGS)
|
||||
|
||||
|
|
Loading…
Reference in a new issue