[Python-checkins] cpython: Attempt to fix OpenIndiana build issue introduced by #19922

christian.heimes python-checkins at python.org
Sun Dec 8 15:21:17 CET 2013


http://hg.python.org/cpython/rev/4221d5d9ac84
changeset:   87830:4221d5d9ac84
user:        Christian Heimes <christian at cheimes.de>
date:        Sun Dec 08 15:21:08 2013 +0100
summary:
  Attempt to fix OpenIndiana build issue introduced by #19922

files:
  configure    |  12 +++++++++---
  configure.ac |  12 +++++++++---
  2 files changed, 18 insertions(+), 6 deletions(-)


diff --git a/configure b/configure
--- a/configure
+++ b/configure
@@ -3447,12 +3447,18 @@
 
 # On HP-UX mbstate_t requires _INCLUDE__STDC_A1_SOURCE
 case $ac_sys_system in
-hp*|HP*)
+  hp*|HP*)
+    define_stdc_a1=yes;;
+  *)
+    define_stdc_a1=no;;
+esac
+
+if test $define_stdc_a1 = yes
+then
 
 $as_echo "#define _INCLUDE__STDC_A1_SOURCE 1" >>confdefs.h
 
-  ;;
-esac
+fi
 
 #
 # SGI compilers allow the specification of the both the ABI and the
diff --git a/configure.ac b/configure.ac
--- a/configure.ac
+++ b/configure.ac
@@ -524,10 +524,16 @@
 
 # On HP-UX mbstate_t requires _INCLUDE__STDC_A1_SOURCE
 case $ac_sys_system in
-hp*|HP*)
+  hp*|HP*)
+    define_stdc_a1=yes;;
+  *)
+    define_stdc_a1=no;;
+esac
+
+if test $define_stdc_a1 = yes
+then
   AC_DEFINE(_INCLUDE__STDC_A1_SOURCE, 1, Define to include mbstate_t for mbrtowc)
-  ;;
-esac
+fi
 
 #
 # SGI compilers allow the specification of the both the ABI and the

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list