summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2017-09-04 17:09:12 (GMT)
committerGitHub <noreply@github.com>2017-09-04 17:09:12 (GMT)
commitfc96f1e95ef1d6edd1eb4538da40259866422c5a (patch)
treea95637327b785d049142b74c452a8d127676705a
parent1c1f8f30c03ca11952856f70ac5f0f7f8dcfd582 (diff)
downloadcpython-fc96f1e95ef1d6edd1eb4538da40259866422c5a.zip
cpython-fc96f1e95ef1d6edd1eb4538da40259866422c5a.tar.gz
cpython-fc96f1e95ef1d6edd1eb4538da40259866422c5a.tar.bz2
remove configure check for 'volatile' (#3281)
This is a required feature is C99, which we require.
-rwxr-xr-xconfigure26
-rw-r--r--configure.ac8
-rw-r--r--pyconfig.h.in6
3 files changed, 3 insertions, 37 deletions
diff --git a/configure b/configure
index a6f7d2b..c242ac4 100755
--- a/configure
+++ b/configure
@@ -13544,32 +13544,6 @@ fi
works=no
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
-$as_echo_n "checking for working volatile... " >&6; }
-cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h. */
-
-int
-main ()
-{
-volatile int x; x = 0;
- ;
- return 0;
-}
-_ACEOF
-if ac_fn_c_try_compile "$LINENO"; then :
- works=yes
-else
-
-$as_echo "#define volatile /**/" >>confdefs.h
-
-
-fi
-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $works" >&5
-$as_echo "$works" >&6; }
-
-works=no
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working signed char" >&5
$as_echo_n "checking for working signed char... " >&6; }
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
diff --git a/configure.ac b/configure.ac
index a5da830..af1cb8c 100644
--- a/configure.ac
+++ b/configure.ac
@@ -4081,14 +4081,6 @@ AC_C_CHAR_UNSIGNED
AC_C_CONST
works=no
-AC_MSG_CHECKING(for working volatile)
-AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]], [[volatile int x; x = 0;]])],
- [works=yes],
- [AC_DEFINE(volatile, , [Define to empty if the keyword does not work.])]
-)
-AC_MSG_RESULT($works)
-
-works=no
AC_MSG_CHECKING(for working signed char)
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]], [[signed char c;]])],
[works=yes],
diff --git a/pyconfig.h.in b/pyconfig.h.in
index 0dd05aa..64b5f03 100644
--- a/pyconfig.h.in
+++ b/pyconfig.h.in
@@ -775,6 +775,9 @@
/* Define to 1 if you have the `sched_setscheduler' function. */
#undef HAVE_SCHED_SETSCHEDULER
+/* Define to 1 if you have the `select' function. */
+#undef HAVE_SELECT
+
/* Define to 1 if you have the `sem_getvalue' function. */
#undef HAVE_SEM_GETVALUE
@@ -1505,9 +1508,6 @@
/* Define to `int' if <sys/types.h> doesn't define. */
#undef uid_t
-/* Define to empty if the keyword does not work. */
-#undef volatile
-
/* Define the macros needed if on a UnixWare 7.x system. */
#if defined(__USLC__) && defined(__SCO_VERSION__)