1
0
mirror of https://github.com/irssi/irssi.git synced 2024-06-16 06:25:24 +00:00

Merge pull request #1244 from ailin-nemui/empty-perl-lib

error out on empty perlmodlib, for example non-existant vendor
This commit is contained in:
ailin-nemui 2021-01-04 00:48:19 +01:00 committed by GitHub
commit cfc2ddf56a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -403,6 +403,7 @@ int main()
with_perl_lib = 'vendor'
endif
endif
perlmoddir = ''
if with_perl_lib in ['site', 'vendor', 'module']
set_perl_use_lib = false
perl_library_dir = with_perl_lib + ' default'
@ -426,7 +427,8 @@ int main()
set_perl_use_lib = true
perl_library_dir = 'custom'
perlmoddir = with_perl_lib
else
endif
if perlmoddir == ''
error('Unrecognised with-perl-lib value: ' + with_perl_lib)
endif