summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1994-10-11 15:04:27 (GMT)
committerGuido van Rossum <guido@python.org>1994-10-11 15:04:27 (GMT)
commitdabb11b2a24ba79e3f6606829e29306e6ef518e9 (patch)
tree5cfd0224c74b6bc8dcab07de71eee22100293b5a /configure
parent6b111b0aefc1b9a2ae22dc10bdba870e92123a1f (diff)
downloadcpython-dabb11b2a24ba79e3f6606829e29306e6ef518e9.zip
cpython-dabb11b2a24ba79e3f6606829e29306e6ef518e9.tar.gz
cpython-dabb11b2a24ba79e3f6606829e29306e6ef518e9.tar.bz2
add test for volatile
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure31
1 files changed, 29 insertions, 2 deletions
diff --git a/configure b/configure
index 656c575..981af9d 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} <<EOF
+#include "confdefs.h"
+
+int main() { return 0; }
+int t() { volatile int x; x = 0;; return 0; }
+EOF
+if eval $ac_compile; then
+ :
+else
+ rm -rf conftest*
+
+{
+test -n "$verbose" && \
+echo " defining" volatile to be empty
+echo "#define" volatile "" >> 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} <<EOF
#include "confdefs.h"