From c6ee37c52f2ca9e544af4866d4237b0404bcddb7 Mon Sep 17 00:00:00 2001 From: Malcolm Beattie Date: Wed, 10 Dec 1997 13:43:32 +0000 Subject: Fix perl_os_thread typedef for pthreads. Tweak SvTAINT so that sv_setfoo functions go back to not needing dTHR. Fix Configure to check for already-existing -thread on archname and to check better for d_pthread_created_joinable. p4raw-id: //depot/perl@356 --- Configure | 29 +++++++++++++++-------------- 1 file changed, 15 insertions(+), 14 deletions(-) (limited to 'Configure') diff --git a/Configure b/Configure index 36cb6d4cab..934958b4ce 100755 --- a/Configure +++ b/Configure @@ -2099,8 +2099,15 @@ esac rp='What is your architecture name' . ./myread case "$usethreads" in -$define) archname="$ans-thread" - echo "Threads selected... architecture name is now $archname." >&4 +$define) echo "Threads selected." >&4 + case "$ans" in + *-thread) echo "...and architecture name already ends in -thread." >&4 + archname="$ans" + ;; + *) archname="$ans-thread" + echo "...setting architecture name to $archname." >&4 + ;; + esac ;; *) archname="$ans" ;; esac @@ -9913,12 +9920,6 @@ if test "X$usethreads" != X; then if test "X$d_pthreads_created_joinable" = X; then echo >&4 "Checking whether pthreads are created joinable." $cat >try.c < #include int main() { @@ -9935,21 +9936,21 @@ 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 $lddlflags $ldflags -o try try$obj_ext $libs >/dev/null 2>&1; then + $ld $ldflags -o try try$obj_ext $libs >/dev/null 2>&1; then yyy=`./try` else echo "(I can't execute the test program--assuming they are.)" yyy=joinable fi case "$yyy" in - joinable) + detached) + val="$undef" + echo "Nope, they aren't." + ;; + *) val="$define" echo "Yup, they are." ;; - *) - val="$undef" - echo "Nope, they aren't." - ;; esac set d_pthreads_created_joinable eval $setvar -- cgit v1.2.1