Skip to content

Commit fc96f1e

Browse files
authored
remove configure check for 'volatile' (#3281)
This is a required feature is C99, which we require.
1 parent 1c1f8f3 commit fc96f1e

File tree

3 files changed

+3
-37
lines changed

3 files changed

+3
-37
lines changed

configure

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -13543,32 +13543,6 @@ $as_echo "#define const /**/" >>confdefs.h
1354313543
fi
1354413544

1354513545

13546-
works=no
13547-
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
13548-
$as_echo_n "checking for working volatile... " >&6; }
13549-
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13550-
/* end confdefs.h. */
13551-
13552-
int
13553-
main ()
13554-
{
13555-
volatile int x; x = 0;
13556-
;
13557-
return 0;
13558-
}
13559-
_ACEOF
13560-
if ac_fn_c_try_compile "$LINENO"; then :
13561-
works=yes
13562-
else
13563-
13564-
$as_echo "#define volatile /**/" >>confdefs.h
13565-
13566-
13567-
fi
13568-
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13569-
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $works" >&5
13570-
$as_echo "$works" >&6; }
13571-
1357213546
works=no
1357313547
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working signed char" >&5
1357413548
$as_echo_n "checking for working signed char... " >&6; }

configure.ac

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4080,14 +4080,6 @@ fi
40804080
AC_C_CHAR_UNSIGNED
40814081
AC_C_CONST
40824082

4083-
works=no
4084-
AC_MSG_CHECKING(for working volatile)
4085-
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]], [[volatile int x; x = 0;]])],
4086-
[works=yes],
4087-
[AC_DEFINE(volatile, , [Define to empty if the keyword does not work.])]
4088-
)
4089-
AC_MSG_RESULT($works)
4090-
40914083
works=no
40924084
AC_MSG_CHECKING(for working signed char)
40934085
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]], [[signed char c;]])],

pyconfig.h.in

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -775,6 +775,9 @@
775775
/* Define to 1 if you have the `sched_setscheduler' function. */
776776
#undef HAVE_SCHED_SETSCHEDULER
777777

778+
/* Define to 1 if you have the `select' function. */
779+
#undef HAVE_SELECT
780+
778781
/* Define to 1 if you have the `sem_getvalue' function. */
779782
#undef HAVE_SEM_GETVALUE
780783

@@ -1505,9 +1508,6 @@
15051508
/* Define to `int' if <sys/types.h> doesn't define. */
15061509
#undef uid_t
15071510

1508-
/* Define to empty if the keyword does not work. */
1509-
#undef volatile
1510-
15111511

15121512
/* Define the macros needed if on a UnixWare 7.x system. */
15131513
#if defined(__USLC__) && defined(__SCO_VERSION__)

0 commit comments

Comments
 (0)