Support relative --with-pmdir by using FindBin
This commit is contained in:
parent
a6391cd291
commit
47634b9cf1
1 changed files with 4 additions and 1 deletions
|
@ -116,11 +116,14 @@ edit = sed -e 's|[@]PERL[@]|$(PERL)|g' \
|
|||
pmdir_in_INC = \
|
||||
PERL5LIB= $(PERL) -V | \
|
||||
awk '/@INC/ {p=1; next} p==1 {print $$1}' | \
|
||||
grep -q "$(pmdir)"
|
||||
grep -F -q "$(pmdir)"
|
||||
|
||||
calc_use_lib_pmdir = \
|
||||
pmdir="$(pmdir)"; \
|
||||
if $(pmdir_in_INC); then \
|
||||
use_lib_pmdir=""; \
|
||||
elif [ "$${pmdir\#../}" != "$$pmdir" ]; then \
|
||||
use_lib_pmdir="use FindBin; use lib \"\$$FindBin::Bin/$$pmdir\";"; \
|
||||
else \
|
||||
use_lib_pmdir="use lib \"$(pmdir)\";"; \
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue