Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitde7ee9e

Browse files
committed
In the configure check for the Python distutils module, use a less obscure
shell construct to hide away the stderr output. Python 3.1 actually coredumps on the current invocation (http://bugs.python.org/issue7111), but thenew version also has the more general advantage of saving the error messagein config.log for analysis.
1 parentea2467d commitde7ee9e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

‎config/python.m4

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#
22
# Autoconf macros for configuring the build of Python extension modules
33
#
4-
# $PostgreSQL: pgsql/config/python.m4,v 1.15 2009/01/04 00:54:15 petere Exp $
4+
# $PostgreSQL: pgsql/config/python.m4,v 1.16 2009/10/14 21:59:15 petere Exp $
55
#
66

77
# PGAC_PATH_PYTHON
@@ -22,7 +22,7 @@ fi
2222
AC_DEFUN([_PGAC_CHECK_PYTHON_DIRS],
2323
[AC_REQUIRE([PGAC_PATH_PYTHON])
2424
AC_MSG_CHECKING([for Python distutils module])
25-
if "${PYTHON}"2>&- -c 'import distutils'
25+
if "${PYTHON}"-c 'import distutils' 2>&AS_MESSAGE_LOG_FD
2626
then
2727
AC_MSG_RESULT(yes)
2828
else

‎configure

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7011,7 +7011,7 @@ fi
70117011

70127012
{ $as_echo "$as_me:$LINENO: checking for Python distutils module" >&5
70137013
$as_echo_n "checking for Python distutils module... " >&6; }
7014-
if "${PYTHON}"2>&- -c 'import distutils'
7014+
if "${PYTHON}"-c 'import distutils' 2>&5
70157015
then
70167016
{ $as_echo "$as_me:$LINENO: result: yes" >&5
70177017
$as_echo "yes" >&6; }

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp