[Python-Dev] Why is python linked with c++?

Skip Montanaro skip@pobox.com
Thu, 10 Jul 2003 09:17:00 -0500


--z/AYhL4hXj
Content-Type: text/plain; charset=us-ascii
Content-Description: message body text
Content-Transfer-Encoding: 7bit


    Martin> Can you find out what the value of ac_cv_pthread_is_default is
    Martin> inside configure on your system?

Sure.  From config.log:

    configure:4205: checking whether pthreads are available without options
    configure:4235: gcc -o conftest -g -O2  -pg  conftest.c  >&5
    configure:4238: $? = 0
    configure:4240: ./conftest
    configure:4243: $? = 0
    configure:4259: result: yes

That suggests the following tests for -Kthread or -pthread are superfluous.
I tried modifying configure.in in an obvious way (diff attached), but the
generated configure file doesn't work, spewing a bunch of '=' characters to
the display until I kill the process.  The config.log doesn't show anything
helpful.

Skip


--z/AYhL4hXj
Content-Type: application/octet-stream
Content-Disposition: attachment;
        filename="configure.in.diff"
Content-Transfer-Encoding: base64

KioqIC90bXAvc2tpcC9jb25maWd1cmUuaW4ufjEuNDIzfjZmR080SglUaHUgSnVsIDEwIDA5
OjE0OjIzIDIwMDMKLS0tIC90bXAvc2tpcC9jb25maWd1cmUuaW42ZkdiQ1EJVGh1IEp1bCAx
MCAwOToxNDoyMyAyMDAzCioqKioqKioqKioqKioqKgoqKiogNzkxLDc5NyAqKioqCiAgQUNf
TVNHX1JFU1VMVCgkYWNfY3Zfa3B0aHJlYWQpCiAgZmkKICAKISBpZiB0ZXN0ICRhY19jdl9r
cHRocmVhZCA9IG5vCiAgdGhlbgogICMgLUt0aHJlYWQsIGlmIGF2YWlsYWJsZSwgcHJvdmlk
ZXMgdGhlIHJpZ2h0ICNkZWZpbmVzCiAgIyBhbmQgbGlua2VyIG9wdGlvbnMgdG8gbWFrZSBw
dGhyZWFkX2NyZWF0ZSBhdmFpbGFibGUKLS0tIDc5MSw4MDAgLS0tLQogIEFDX01TR19SRVNV
TFQoJGFjX2N2X2twdGhyZWFkKQogIGZpCiAgCiEgaWYgJGFjX2N2X3B0aHJlYWRfaXNfZGVm
YXVsdCA9I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