Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
1068307f
Commit
1068307f
authored
Apr 18, 2009
by
Mark Dickinson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move configure check for broken sem_getvalue outside the
LIBS="$LIBS $LIBM" section.
parent
ae937c02
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
115 additions
and
117 deletions
+115
-117
configure
configure
+87
-89
configure.in
configure.in
+28
-28
No files found.
configure
View file @
1068307f
#! /bin/sh
# From configure.in Revision: 717
04
.
# From configure.in Revision: 717
23
.
# Guess values for system-dependent variables and create Makefiles.
# Generated by GNU Autoconf 2.61 for python 3.1.
#
...
...
@@ -21828,17 +21828,15 @@ _ACEOF
fi
# The short float repr introduced in Python 3.1 requires the
# correctly-rounded string <-> double conversion functions
in
# correctly-rounded string <-> double conversion functions
from
# Python/dtoa.c, which in turn require that the FPU uses 53-bit
# rounding; this is a particular problem on x86, where the x87 FPU has
# a default rounding precision of 64 bits. For gcc/x86, we try to fix
# this by using inline assembler to get and set the x87 FPU control
# word.
# rounding; this is a problem on x86, where the x87 FPU has a default
# rounding precision of 64 bits. For gcc/x86, we try to fix this by
# using inline assembler to get and set the x87 FPU control word.
if
test
"
$GCC
"
=
yes
&&
test
-n
"
`
$CC
-dM
-E
- </dev/null |
grep
i386
`
"
then
# Check that it's okay to use gcc inline assembler to get and set
# x87 control word
# x87 control word
. It should be, but you never know...
{
echo
"
$as_me
:
$LINENO
: checking whether we can use gcc inline assembler to get and set x87 control word"
>
&5
echo
$ECHO_N
"checking whether we can use gcc inline assembler to get and set x87 control word...
$ECHO_C
"
>
&6
;
}
cat
>
conftest.
$ac_ext
<<
_ACEOF
...
...
@@ -21990,87 +21988,6 @@ fi
LIBS_SAVE
=
$LIBS
LIBS
=
"
$LIBS
$LIBM
"
# Multiprocessing check for broken sem_getvalue
{
echo
"
$as_me
:
$LINENO
: checking for broken sem_getvalue"
>
&5
echo
$ECHO_N
"checking for broken sem_getvalue...
$ECHO_C
"
>
&6
;
}
if
test
"
$cross_compiling
"
=
yes
;
then
{
{
echo
"
$as_me
:
$LINENO
: error: cannot run test program while cross compiling
See
\`
config.log' for more details."
>
&5
echo
"
$as_me
: error: cannot run test program while cross compiling
See
\`
config.log' for more details."
>
&2
;
}
{
(
exit
1
)
;
exit
1
;
}
;
}
else
cat
>
conftest.
$ac_ext
<<
_ACEOF
/* confdefs.h. */
_ACEOF
cat
confdefs.h
>>
conftest.
$ac_ext
cat
>>
conftest.
$ac_ext
<<
_ACEOF
/* end confdefs.h. */
#include <unistd.h>
#include <fcntl.h>
#include <stdio.h>
#include <semaphore.h>
#include <sys/stat.h>
int main(void){
sem_t *a = sem_open("/autoconf", O_CREAT, S_IRUSR|S_IWUSR, 0);
int count;
int res;
if(a==SEM_FAILED){
perror("sem_open");
return 1;
}
res = sem_getvalue(a, &count);
sem_close(a);
return res==-1 ? 1 : 0;
}
_ACEOF
rm
-f
conftest
$ac_exeext
if
{
(
ac_try
=
"
$ac_link
"
case
"((
$ac_try
"
in
*
\"
*
|
*
\`
*
|
*
\\
*
)
ac_try_echo
=
\$
ac_try
;;
*
)
ac_try_echo
=
$ac_try
;;
esac
eval
"echo
\"\$
as_me:
$LINENO
:
$ac_try_echo
\"
"
)
>
&5
(
eval
"
$ac_link
"
)
2>&5
ac_status
=
$?
echo
"
$as_me
:
$LINENO
:
\$
? =
$ac_status
"
>
&5
(
exit
$ac_status
)
;
}
&&
{
ac_try
=
'./conftest$ac_exeext'
{
(
case
"((
$ac_try
"
in
*
\"
*
|
*
\`
*
|
*
\\
*
)
ac_try_echo
=
\$
ac_try
;;
*
)
ac_try_echo
=
$ac_try
;;
esac
eval
"echo
\"\$
as_me:
$LINENO
:
$ac_try_echo
\"
"
)
>
&5
(
eval
"
$ac_try
"
)
2>&5
ac_status
=
$?
echo
"
$as_me
:
$LINENO
:
\$
? =
$ac_status
"
>
&5
(
exit
$ac_status
)
;
}
;
}
;
then
{
echo
"
$as_me
:
$LINENO
: result: no"
>
&5
echo
"
${
ECHO_T
}
no"
>
&6
;
}
else
echo
"
$as_me
: program exited with status
$ac_status
"
>
&5
echo
"
$as_me
: failed program was:"
>
&5
sed
's/^/| /'
conftest.
$ac_ext
>
&5
(
exit
$ac_status
)
{
echo
"
$as_me
:
$LINENO
: result: yes"
>
&5
echo
"
${
ECHO_T
}
yes"
>
&6
;
}
cat
>>
confdefs.h
<<
\
_ACEOF
#define HAVE_BROKEN_SEM_GETVALUE 1
_ACEOF
fi
rm
-f
core
*
.core core.conftest.
*
gmon.out bb.out conftest
$ac_exeext
conftest.
$ac_objext
conftest.
$ac_ext
fi
# On FreeBSD 6.2, it appears that tanh(-0.) returns 0. instead of
# -0. on some architectures.
{
echo
"
$as_me
:
$LINENO
: checking whether tanh preserves the sign of zero"
>
&5
...
...
@@ -22455,6 +22372,87 @@ fi
LIBS
=
$LIBS_SAVE
# Multiprocessing check for broken sem_getvalue
{
echo
"
$as_me
:
$LINENO
: checking for broken sem_getvalue"
>
&5
echo
$ECHO_N
"checking for broken sem_getvalue...
$ECHO_C
"
>
&6
;
}
if
test
"
$cross_compiling
"
=
yes
;
then
{
{
echo
"
$as_me
:
$LINENO
: error: cannot run test program while cross compiling
See
\`
config.log' for more details."
>
&5
echo
"
$as_me
: error: cannot run test program while cross compiling
See
\`
config.log' for more details."
>
&2
;
}
{
(
exit
1
)
;
exit
1
;
}
;
}
else
cat
>
conftest.
$ac_ext
<<
_ACEOF
/* confdefs.h. */
_ACEOF
cat
confdefs.h
>>
conftest.
$ac_ext
cat
>>
conftest.
$ac_ext
<<
_ACEOF
/* end confdefs.h. */
#include <unistd.h>
#include <fcntl.h>
#include <stdio.h>
#include <semaphore.h>
#include <sys/stat.h>
int main(void){
sem_t *a = sem_open("/autoconf", O_CREAT, S_IRUSR|S_IWUSR, 0);
int count;
int res;
if(a==SEM_FAILED){
perror("sem_open");
return 1;
}
res = sem_getvalue(a, &count);
sem_close(a);
return res==-1 ? 1 : 0;
}
_ACEOF
rm
-f
conftest
$ac_exeext
if
{
(
ac_try
=
"
$ac_link
"
case
"((
$ac_try
"
in
*
\"
*
|
*
\`
*
|
*
\\
*
)
ac_try_echo
=
\$
ac_try
;;
*
)
ac_try_echo
=
$ac_try
;;
esac
eval
"echo
\"\$
as_me:
$LINENO
:
$ac_try_echo
\"
"
)
>
&5
(
eval
"
$ac_link
"
)
2>&5
ac_status
=
$?
echo
"
$as_me
:
$LINENO
:
\$
? =
$ac_status
"
>
&5
(
exit
$ac_status
)
;
}
&&
{
ac_try
=
'./conftest$ac_exeext'
{
(
case
"((
$ac_try
"
in
*
\"
*
|
*
\`
*
|
*
\\
*
)
ac_try_echo
=
\$
ac_try
;;
*
)
ac_try_echo
=
$ac_try
;;
esac
eval
"echo
\"\$
as_me:
$LINENO
:
$ac_try_echo
\"
"
)
>
&5
(
eval
"
$ac_try
"
)
2>&5
ac_status
=
$?
echo
"
$as_me
:
$LINENO
:
\$
? =
$ac_status
"
>
&5
(
exit
$ac_status
)
;
}
;
}
;
then
{
echo
"
$as_me
:
$LINENO
: result: no"
>
&5
echo
"
${
ECHO_T
}
no"
>
&6
;
}
else
echo
"
$as_me
: program exited with status
$ac_status
"
>
&5
echo
"
$as_me
: failed program was:"
>
&5
sed
's/^/| /'
conftest.
$ac_ext
>
&5
(
exit
$ac_status
)
{
echo
"
$as_me
:
$LINENO
: result: yes"
>
&5
echo
"
${
ECHO_T
}
yes"
>
&6
;
}
cat
>>
confdefs.h
<<
\
_ACEOF
#define HAVE_BROKEN_SEM_GETVALUE 1
_ACEOF
fi
rm
-f
core
*
.core core.conftest.
*
gmon.out bb.out conftest
$ac_exeext
conftest.
$ac_objext
conftest.
$ac_ext
fi
# determine what size digit to use for Python's longs
{
echo
"
$as_me
:
$LINENO
: checking digit size for Python's longs"
>
&5
echo
$ECHO_N
"checking digit size for Python's longs...
$ECHO_C
"
>
&6
;
}
...
...
configure.in
View file @
1068307f
...
...
@@ -3214,34 +3214,6 @@ fi
LIBS_SAVE=$LIBS
LIBS="$LIBS $LIBM"
# Multiprocessing check for broken sem_getvalue
AC_MSG_CHECKING(for broken sem_getvalue)
AC_TRY_RUN([
#include <unistd.h>
#include <fcntl.h>
#include <stdio.h>
#include <semaphore.h>
#include <sys/stat.h>
int main(void){
sem_t *a = sem_open("/autoconf", O_CREAT, S_IRUSR|S_IWUSR, 0);
int count;
int res;
if(a==SEM_FAILED){
perror("sem_open");
return 1;
}
res = sem_getvalue(a, &count);
sem_close(a);
return res==-1 ? 1 : 0;
}
]
,AC_MSG_RESULT(no),
AC_MSG_RESULT(yes)
AC_DEFINE(HAVE_BROKEN_SEM_GETVALUE, 1, define to 1 if your sem_getvalue is broken.)
)
# On FreeBSD 6.2, it appears that tanh(-0.) returns 0. instead of
# -0. on some architectures.
AC_MSG_CHECKING(whether tanh preserves the sign of zero)
...
...
@@ -3273,6 +3245,34 @@ AC_CHECK_DECLS([isinf, isnan, isfinite], [], [], [[#include <math.h>]])
LIBS=$LIBS_SAVE
# Multiprocessing check for broken sem_getvalue
AC_MSG_CHECKING(for broken sem_getvalue)
AC_TRY_RUN([
#include <unistd.h>
#include <fcntl.h>
#include <stdio.h>
#include <semaphore.h>
#include <sys/stat.h>
int main(void){
sem_t *a = sem_open("/autoconf", O_CREAT, S_IRUSR|S_IWUSR, 0);
int count;
int res;
if(a==SEM_FAILED){
perror("sem_open");
return 1;
}
res = sem_getvalue(a, &count);
sem_close(a);
return res==-1 ? 1 : 0;
}
]
,AC_MSG_RESULT(no),
AC_MSG_RESULT(yes)
AC_DEFINE(HAVE_BROKEN_SEM_GETVALUE, 1, define to 1 if your sem_getvalue is broken.)
)
# determine what size digit to use for Python's longs
AC_MSG_CHECKING([digit size for Python's longs])
AC_ARG_ENABLE(big-digits,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment