build: Add option to specify path to perl binary

This commit is contained in:
Rainer Müller authored and TingPing committed 2018-03-23 09:14:45 +00:00
1 parent ee85129a9b
commit ed6f544572
4 files changed
+5 -5

No files matched your search

+1 -1
View File
@@ -26,7 +26,7 @@ if get_option('with-lua') != 'false'
subdir('lua')
endif
if get_option('with-perl')
if get_option('with-perl') != 'false'
subdir('perl')
endif
+1 -1
View File
@@ -25,7 +25,7 @@ if get_option('with-perl-legacy-api')
perl_cflags += '-DOLD_PERL'
endif
perl = find_program('perl')
perl = find_program(get_option('with-perl'))
ret = run_command([perl, '-MExtUtils::Embed', '-e', 'ccopts'])
if ret.returncode() != 0