From ke@solvo.ru Tue Jul 31 14:23:13 2001
Received: from grace.solvo.ru (root@grace.solvo.ru [195.201.44.100])
	by swi.psy.uva.nl (8.11.2/8.11.2) with ESMTP id f6VCNBb07537
	for <prolog@swi.psy.uva.nl>; Tue, 31 Jul 2001 14:23:11 +0200 (MET DST)
Received: from eagle.solvo.ru (eagle.solvo.ru [195.201.44.213])
	by grace.solvo.ru (8.8.8/8.8.8) with ESMTP id QAA13785
	for <prolog@swi.psy.uva.nl>; Tue, 31 Jul 2001 16:23:09 +0400
Received: (from ke@localhost)
	by eagle.solvo.ru (8.9.3/8.9.3) id QAA09585
	for prolog@swi.psy.uva.nl; Tue, 31 Jul 2001 16:23:04 +0400
X-Authentication-Warning: eagle.solvo.ru: ke set sender to ke@solvo.ru using -f
Date: Tue, 31 Jul 2001 16:23:03 +0400
From: Kirill Evstigneev <ke@solvo.ru>
To: prolog@swi.psy.uva.nl
Message-ID: <20010731162303.H20285@solvo.ru>
Mime-Version: 1.0
Content-Type: multipart/mixed; boundary="St7VIuEGZ6dlpu13"
Content-Disposition: inline
User-Agent: Mutt/1.2.5i
Organization: Solvo Ltd.
Subject: [SWIPL] SWI-Prolog: plld ignores multithreading


--St7VIuEGZ6dlpu13
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

Good daytime.

It seems there is a small mistype in src/plld.c. Because of it plld
cannot detect if the current pl executable is multithreaded or not.
`pl -dump-runtime-variables' returns
...
PLTHREADS="yes";
           ^^^
but plld expects "true".

The patch attached.

-- 
 * Kirill Evstigneev, Solvo Ltd (ke@solvo.ru)

--St7VIuEGZ6dlpu13
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="pl-4.0.9-plld.patch"

--- pl-4.0.9.orig/src/plld.c	Wed Jun 20 19:11:10 2001
+++ pl-4.0.9/src/plld.c	Tue Jul 31 15:49:12 2001
@@ -859,7 +859,7 @@
 	  appendArgList(&ldoptions, v);
 	else if ( streq(name, "PLSOEXT") )
 	  soext = strdup(v);
-	else if ( streq(name, "PLTHREADS") && streq(v, "true") )
+	else if ( streq(name, "PLTHREADS") && streq(v, "yes") )
 	{ ensureOption(&coptions, "-D_REENTRANT");
 	  ensureOption(&cppoptions, "-D_REENTRANT");
 	  pllib = LIB_PLMT;

--St7VIuEGZ6dlpu13--

