Skip to content

Commit cccd9fa

Browse files
committed
Add vi_cv_dll_name_perl to pass libperl.dylib path
1 parent 0dbb762 commit cccd9fa

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

src/auto/configure

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5755,7 +5755,13 @@ $as_echo ">>> too old; need Perl version 5.003_01 or later <<<" >&6; }
57555755
if test "$perl_ok" = "yes" -a "X$libperl" != "X"; then
57565756
$as_echo "#define DYNAMIC_PERL 1" >>confdefs.h
57575757

5758-
PERL_CFLAGS="-DDYNAMIC_PERL_DLL=\\\"$libperl\\\" $PERL_CFLAGS"
5758+
if ${vi_cv_dll_name_perl+:} false; then :
5759+
$as_echo_n "(cached) " >&6
5760+
else
5761+
vi_cv_dll_name_perl="$libperl"
5762+
fi
5763+
5764+
PERL_CFLAGS="-DDYNAMIC_PERL_DLL=\\\"$vi_cv_dll_name_perl\\\" $PERL_CFLAGS"
57595765
fi
57605766
fi
57615767

src/configure.in

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1051,7 +1051,8 @@ if test "$enable_perlinterp" = "yes" -o "$enable_perlinterp" = "dynamic"; then
10511051
if test "$enable_perlinterp" = "dynamic"; then
10521052
if test "$perl_ok" = "yes" -a "X$libperl" != "X"; then
10531053
AC_DEFINE(DYNAMIC_PERL)
1054-
PERL_CFLAGS="-DDYNAMIC_PERL_DLL=\\\"$libperl\\\" $PERL_CFLAGS"
1054+
AC_CACHE_VAL(vi_cv_dll_name_perl, [vi_cv_dll_name_perl="$libperl"])
1055+
PERL_CFLAGS="-DDYNAMIC_PERL_DLL=\\\"$vi_cv_dll_name_perl\\\" $PERL_CFLAGS"
10551056
fi
10561057
fi
10571058

0 commit comments

Comments
 (0)