Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 388519
Collapse All | Expand All

(-)autoconf-archive-2011.09.17/m4/ax_python_config_var.m4.orig (-3 / +3 lines)
Lines 64-70 Link Here
64
 fi
64
 fi
65
 py_error="no"
65
 py_error="no"
66
 pyval=`$PYTHON -c "from distutils import sysconfig;dnl
66
 pyval=`$PYTHON -c "from distutils import sysconfig;dnl
67
print sysconfig.get_config_var('$1')"` || py_error="yes"
67
print (sysconfig.get_config_var('$1'))"` || py_error="yes"
68
 if test "$py_error" = "yes"
68
 if test "$py_error" = "yes"
69
 then
69
 then
70
   AC_MSG_RESULT(no - an error occurred)
70
   AC_MSG_RESULT(no - an error occurred)
Lines 84-90 Link Here
84
 fi
84
 fi
85
 py_error="no"
85
 py_error="no"
86
 PY_CONFIG_H=`$PYTHON -c "from distutils import sysconfig;dnl
86
 PY_CONFIG_H=`$PYTHON -c "from distutils import sysconfig;dnl
87
print sysconfig.get_config_h_filename()"` || py_error = "yes"
87
print (sysconfig.get_config_h_filename())"` || py_error = "yes"
88
 if test "$py_error" = "yes"
88
 if test "$py_error" = "yes"
89
 then
89
 then
90
   AC_MSG_RESULT(no - an error occurred)
90
   AC_MSG_RESULT(no - an error occurred)
Lines 103-109 Link Here
103
 fi
103
 fi
104
 py_error="no"
104
 py_error="no"
105
 PY_MAKEFILE=`$PYTHON -c "from distutils import sysconfig;dnl
105
 PY_MAKEFILE=`$PYTHON -c "from distutils import sysconfig;dnl
106
print sysconfig.get_makefile_filename()"` || py_error = "yes"
106
print (sysconfig.get_makefile_filename())"` || py_error = "yes"
107
 if test "$py_error" = "yes"
107
 if test "$py_error" = "yes"
108
 then
108
 then
109
   AC_MSG_RESULT(no - an error occurred)
109
   AC_MSG_RESULT(no - an error occurred)
(-)autoconf-archive-2011.09.17/m4/ax_python_embed.m4.orig (-7 / +7 lines)
Lines 223-241 Link Here
223
    AC_ARG_VAR( [PYTHON], [Python Executable Path] )
223
    AC_ARG_VAR( [PYTHON], [Python Executable Path] )
224
    if test -n "$PYTHON"
224
    if test -n "$PYTHON"
225
    then
225
    then
226
        ax_python_prefix=`${PYTHON} -c "import sys; print sys.prefix"`
226
        ax_python_prefix=`${PYTHON} -c "import sys; print (sys.prefix)"`
227
        if test -z "$ax_python_prefix"
227
        if test -z "$ax_python_prefix"
228
        then
228
        then
229
            AC_MSG_ERROR([Python Prefix is not known])
229
            AC_MSG_ERROR([Python Prefix is not known])
230
        fi
230
        fi
231
        ax_python_execprefix=`${PYTHON} -c "import sys; print sys.exec_prefix"`
231
        ax_python_execprefix=`${PYTHON} -c "import sys; print (sys.exec_prefix)"`
232
        ax_python_version=`$PYTHON -c "import sys; print sys.version[[:3]]"`
232
        ax_python_version=`$PYTHON -c "import sys; print (sys.version[[:3]])"`
233
        ax_python_includespec="-I${ax_python_prefix}/include/python${ax_python_version}"
233
        ax_python_includespec="-I${ax_python_prefix}/include/python${ax_python_version}"
234
        if test x"$python_prefix" != x"$python_execprefix"; then
234
        if test x"$python_prefix" != x"$python_execprefix"; then
235
            ax_python_execspec="-I${ax_python_execprefix}/include/python${ax_python_version}"
235
            ax_python_execspec="-I${ax_python_execprefix}/include/python${ax_python_version}"
236
            ax_python_includespec="${ax_python_includespec} $ax_python_execspec"
236
            ax_python_includespec="${ax_python_includespec} $ax_python_execspec"
237
        fi
237
        fi
238
        ax_python_ccshared=`${PYTHON} -c "import distutils.sysconfig; print distutils.sysconfig.get_config_var('CFLAGSFORSHARED')"`
238
        ax_python_ccshared=`${PYTHON} -c "import distutils.sysconfig; print (distutils.sysconfig.get_config_var('CFLAGSFORSHARED'))"`
239
        ax_python_cspec="${ax_python_ccshared} ${ax_python_includespec}"
239
        ax_python_cspec="${ax_python_ccshared} ${ax_python_includespec}"
240
        AC_SUBST([PYTHON_CSPEC], [${ax_python_cspec}])
240
        AC_SUBST([PYTHON_CSPEC], [${ax_python_cspec}])
241
        AC_MSG_NOTICE([PYTHON_CSPEC=${ax_python_cspec}])
241
        AC_MSG_NOTICE([PYTHON_CSPEC=${ax_python_cspec}])
Lines 305-311 Link Here
305
    if strLibFW and (strLibFW != ""):
305
    if strLibFW and (strLibFW != ""):
306
        strLinkSpec += " -F%s" % (strLibFW)
306
        strLinkSpec += " -F%s" % (strLibFW)
307
strLinkSpec += " %s" % (dictConfig.get('LINKFORSHARED'))
307
strLinkSpec += " %s" % (dictConfig.get('LINKFORSHARED'))
308
print strLinkSpec
308
print (strLinkSpec)
309
        ])
309
        ])
310
        AC_SUBST([PYTHON_LSPEC], [${ax_python_output}])
310
        AC_SUBST([PYTHON_LSPEC], [${ax_python_output}])
311
        AC_MSG_NOTICE([PYTHON_LSPEC=${ax_python_output}])
311
        AC_MSG_NOTICE([PYTHON_LSPEC=${ax_python_output}])
Lines 345-352 Link Here
345
    then
345
    then
346
        AC_MSG_ERROR([Python Executable Path is not known])
346
        AC_MSG_ERROR([Python Executable Path is not known])
347
    fi
347
    fi
348
    ax_python_prefix=`${PYTHON} -c "import sys; print sys.prefix"`
348
    ax_python_prefix=`${PYTHON} -c "import sys; print (sys.prefix)"`
349
    ax_python_execprefix=`${PYTHON} -c "import sys; print sys.exec_prefix"`
349
    ax_python_execprefix=`${PYTHON} -c "import sys; print (sys.exec_prefix)"`
350
    AC_SUBST([PYTHON_PREFIX], ["${ax_python_prefix}"])
350
    AC_SUBST([PYTHON_PREFIX], ["${ax_python_prefix}"])
351
    AC_SUBST([PYTHON_EXECPREFIX], ["${ax_python_execprefix}"])
351
    AC_SUBST([PYTHON_EXECPREFIX], ["${ax_python_execprefix}"])
352
])
352
])

Return to bug 388519