@@ -7320,24 +7320,32 @@ $as_echo "$as_me: error: Perl not found" >&2;}
73207320{ $as_echo "$as_me:$LINENO: checking for Perl archlibexp" >&5
73217321$as_echo_n "checking for Perl archlibexp... " >&6; }
73227322perl_archlibexp=`$PERL -MConfig -e 'print $Config{archlibexp}'`
7323+ test "$PORTNAME" = "win32" && perl_archlibexp=`echo $perl_archlibexp | sed 's,\\\\,/,g'`
73237324{ $as_echo "$as_me:$LINENO: result: $perl_archlibexp" >&5
73247325$as_echo "$perl_archlibexp" >&6; }
73257326{ $as_echo "$as_me:$LINENO: checking for Perl privlibexp" >&5
73267327$as_echo_n "checking for Perl privlibexp... " >&6; }
73277328perl_privlibexp=`$PERL -MConfig -e 'print $Config{privlibexp}'`
7329+ test "$PORTNAME" = "win32" && perl_privlibexp=`echo $perl_privlibexp | sed 's,\\\\,/,g'`
73287330{ $as_echo "$as_me:$LINENO: result: $perl_privlibexp" >&5
73297331$as_echo "$perl_privlibexp" >&6; }
73307332{ $as_echo "$as_me:$LINENO: checking for Perl useshrplib" >&5
73317333$as_echo_n "checking for Perl useshrplib... " >&6; }
73327334perl_useshrplib=`$PERL -MConfig -e 'print $Config{useshrplib}'`
7335+ test "$PORTNAME" = "win32" && perl_useshrplib=`echo $perl_useshrplib | sed 's,\\\\,/,g'`
73337336{ $as_echo "$as_me:$LINENO: result: $perl_useshrplib" >&5
73347337$as_echo "$perl_useshrplib" >&6; }
73357338
73367339{ $as_echo "$as_me:$LINENO: checking for flags to link embedded Perl" >&5
73377340$as_echo_n "checking for flags to link embedded Perl... " >&6; }
7341+ if test "$PORTNAME" = "win32" ; then
7342+ perl_lib=`basename $perl_archlibexp/CORE/perl[5-9]*.lib .lib`
7343+ test -e "$perl_archlibexp/CORE/$perl_lib.lib" && perl_embed_ldflags="-L$perl_archlibexp/CORE -l$perl_lib"
7344+ else
73387345pgac_tmp1=`$PERL -MExtUtils::Embed -e ldopts`
73397346pgac_tmp2=`$PERL -MConfig -e 'print $Config{ccdlflags}'`
73407347perl_embed_ldflags=`echo X"$pgac_tmp1" | sed -e "s/^X//" -e "s%$pgac_tmp2%%" -e "s/ -arch [-a-zA-Z0-9_]*//g"`
7348+ fi
73417349if test -z "$perl_embed_ldflags" ; then
73427350 { $as_echo "$as_me:$LINENO: result: no" >&5
73437351$as_echo "no" >&6; }
0 commit comments