exit(0);
}
EOCP
- : Compile and link separately because the used cc might not be
- : able to link the right CRT and libs for pthreading.
- if $cc $ccflags -c try.c >/dev/null 2>&1 &&
- $ld $ldflags -o try try$obj_ext $libs >/dev/null 2>&1; then
+ if $cc $ccflags $ldflags -o try try.c $libs >/dev/null 2>&1; then
yyy=`./try`
+ case "$yyy" in
+ detached)
+ echo "Nope, they aren't."
+ ;;
+ *)
+ echo "Yup, they are."
+ ;;
+ esac
else
echo "(I can't execute the test program--assuming they are.)"
yyy=joinable
case "$yyy" in
detached)
val="$undef"
- echo "Nope, they aren't."
;;
*)
val="$define"
- echo "Yup, they are."
;;
esac
set d_pthreads_created_joinable
$rm -f try try.*
fi
else
- d_pthreads_created_joinable=$undef
+ d_pthreads_created_joinable="$undef"
fi
: see whether the various POSIXish _yields exist within given cccmd
;;
*)
sed -n '/^[A-Za-z]/ s/^/Perl_/p' global.sym interp.sym >> perl.exp
+ expperlvars=/tmp/exp$$pv
+ expthrdvar=/tmp/exp$$tv
+ sed -n 's/^PERLVARI*(G\([^,]*\).*/Perl_\1/p' perlvars.h >> $expperlvars
+ sed -n 's/^PERLVARI*(T\([^,]*\).*/Perl_\1/p' thrdvar.h >> $expthrdvar
+ # The shebang line nicely sorts as the first one.
+ sort -o perl.exp -u perl.exp $expperlvars $expthrdvar
+ rm -f $expperlvars $expthrdvar
;;
esac