@@ -7320,24 +7320,32 @@ $as_echo "$as_me: error: Perl not found" >&2;}
7320
7320
{ $as_echo "$as_me:$LINENO: checking for Perl archlibexp" >&5
7321
7321
$as_echo_n "checking for Perl archlibexp... " >&6; }
7322
7322
perl_archlibexp=`$PERL -MConfig -e 'print $Config{archlibexp}'`
7323
+ test "$PORTNAME" = "win32" && perl_archlibexp=`echo $perl_archlibexp | sed 's,\\\\,/,g'`
7323
7324
{ $as_echo "$as_me:$LINENO: result: $perl_archlibexp" >&5
7324
7325
$as_echo "$perl_archlibexp" >&6; }
7325
7326
{ $as_echo "$as_me:$LINENO: checking for Perl privlibexp" >&5
7326
7327
$as_echo_n "checking for Perl privlibexp... " >&6; }
7327
7328
perl_privlibexp=`$PERL -MConfig -e 'print $Config{privlibexp}'`
7329
+ test "$PORTNAME" = "win32" && perl_privlibexp=`echo $perl_privlibexp | sed 's,\\\\,/,g'`
7328
7330
{ $as_echo "$as_me:$LINENO: result: $perl_privlibexp" >&5
7329
7331
$as_echo "$perl_privlibexp" >&6; }
7330
7332
{ $as_echo "$as_me:$LINENO: checking for Perl useshrplib" >&5
7331
7333
$as_echo_n "checking for Perl useshrplib... " >&6; }
7332
7334
perl_useshrplib=`$PERL -MConfig -e 'print $Config{useshrplib}'`
7335
+ test "$PORTNAME" = "win32" && perl_useshrplib=`echo $perl_useshrplib | sed 's,\\\\,/,g'`
7333
7336
{ $as_echo "$as_me:$LINENO: result: $perl_useshrplib" >&5
7334
7337
$as_echo "$perl_useshrplib" >&6; }
7335
7338
7336
7339
{ $as_echo "$as_me:$LINENO: checking for flags to link embedded Perl" >&5
7337
7340
$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
7338
7345
pgac_tmp1=`$PERL -MExtUtils::Embed -e ldopts`
7339
7346
pgac_tmp2=`$PERL -MConfig -e 'print $Config{ccdlflags}'`
7340
7347
perl_embed_ldflags=`echo X"$pgac_tmp1" | sed -e "s/^X//" -e "s%$pgac_tmp2%%" -e "s/ -arch [-a-zA-Z0-9_]*//g"`
7348
+ fi
7341
7349
if test -z "$perl_embed_ldflags" ; then
7342
7350
{ $as_echo "$as_me:$LINENO: result: no" >&5
7343
7351
$as_echo "no" >&6; }
0 commit comments