From dabb11b2a24ba79e3f6606829e29306e6ef518e9 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Tue, 11 Oct 1994 15:04:27 +0000 Subject: [PATCH] add test for volatile --- acconfig.h | 3 +++ config.h.in | 3 +++ configure | 31 +++++++++++++++++++++++++++++-- configure.in | 4 +++- 4 files changed, 38 insertions(+), 3 deletions(-) diff --git a/acconfig.h b/acconfig.h index 494dea2908d..a68c11ca05d 100644 --- a/acconfig.h +++ b/acconfig.h @@ -63,5 +63,8 @@ /* Define if you want to use the GNU readline library */ #undef WITH_READLINE +/* Define to empty if the keyword does not work. */ +#undef volatile + /* Leave that blank line there-- autoheader needs it! */ diff --git a/config.h.in b/config.h.in index a3fc5062cdf..d91fbd90497 100644 --- a/config.h.in +++ b/config.h.in @@ -138,6 +138,9 @@ /* Define if you want to use the GNU readline library */ #undef WITH_READLINE +/* Define to empty if the keyword does not work. */ +#undef volatile + /* Define if you have chown. */ #undef HAVE_CHOWN diff --git a/configure b/configure index 656c5753361..981af9d0865 100755 --- a/configure +++ b/configure @@ -1,5 +1,5 @@ #!/bin/sh -# From configure.in Revision: 1.6 +# From configure.in Revision: 1.8 #!/bin/sh # Guess values for system-dependent variables and create Makefiles. # Generated automatically using autoconf version 1.11 @@ -1916,7 +1916,34 @@ fi rm -f conftest* -test -n "$silent" || echo "checking for signed char" +test -n "$silent" || echo "checking for lack of working volatile" +cat > conftest.${ac_ext} <> confdefs.h +DEFS="$DEFS -Dvolatile=" +ac_sed_defs="${ac_sed_defs}\${ac_dA}volatile\${ac_dB}volatile\${ac_dC}\${ac_dD} +\${ac_uA}volatile\${ac_uB}volatile\${ac_uC}\${ac_uD} +\${ac_eA}volatile\${ac_eB}volatile\${ac_eC}\${ac_eD} +" +} + +fi +rm -f conftest* + + +test -n "$silent" || echo "checking for lack of working signed char" cat > conftest.${ac_ext} <