Commits
Bryan Blackburn authored ac81e70f4af
1 - | --- configure.orig 2009-04-15 01:06:28.000000000 +0200 |
2 - | +++ configure 2009-09-01 18:40:50.000000000 +0200 |
3 - | |
4 - | from distutils import sysconfig; \ |
5 - | stdout.write(sysconfig.get_config_var("PYTHONFRAMEWORK"))'` |
6 - | |
7 - | -if test "${PYTHONFRAMEWORKDIR}" = "no-framework"; then |
8 - | LDFLAGS1="-L${PYTHONLIBDIR}" |
9 - | LDFLAGS2="-L${PYTHONCFGDIR}" |
10 - | |
11 - | |
12 - | LDLIBS3=`${PYTHON} -c 'from sys import stdout; \ |
13 - | from distutils import sysconfig; \ |
14 - | stdout.write(sysconfig.get_config_var("SYSLIBS"))'` |
15 - | -else |
16 - | - if test -f "${PYTHONCFGDIR}/libpython${PYTHON_VERSION}.a"; then |
17 - | - LDFLAGS2="-L${PYTHONCFGDIR}" |
18 - | - |
19 - | - LDLIBS1="-lpython${PYTHON_VERSION}" |
20 - | - LDLIBS2=`${PYTHON} -c 'from sys import stdout; \ |
21 - | - from distutils import sysconfig; \ |
22 - | - stdout.write(sysconfig.get_config_var("LIBS"))'` |
23 - | - LDLIBS3=`${PYTHON} -c 'from sys import stdout; \ |
24 - | - from distutils import sysconfig; \ |
25 - | - stdout.write(sysconfig.get_config_var("SYSLIBS"))'` |
26 - | - else |
27 - | - LDFLAGS1="-F${PYTHONFRAMEWORKPREFIX} -framework ${PYTHONFRAMEWORK}" |
28 - | - |
29 - | - VERSION="${PYTHON_VERSION}" |
30 - | - STRING="${PYTHONFRAMEWORKDIR}/Versions/${VERSION}/${PYTHONFRAMEWORK}" |
31 - | - LDFLAGS2=`${PYTHON} -c "from sys import stdout; \ |
32 - | - from distutils import sysconfig; \ |
33 - | - stdout.write(sysconfig.get_config_var( |
34 - | - \"LINKFORSHARED\").replace(\"${STRING}\", ''))"` |
35 - | - |
36 - | - LDLIBS1=`${PYTHON} -c 'from sys import stdout; \ |
37 - | - from distutils import sysconfig; \ |
38 - | - stdout.write(sysconfig.get_config_var("LIBS"))'` |
39 - | - fi |
40 - | -fi |
41 - | |
42 - | CFLAGS="" |
43 - | if test -x /usr/bin/lipo; then |