]> granicus.if.org Git - icu/commitdiff
ICU-9390 Fix some build issues with Solaris GCC and z
authorMichael Ow <mow@svn.icu-project.org>
Fri, 22 Jun 2012 19:57:50 +0000 (19:57 +0000)
committerMichael Ow <mow@svn.icu-project.org>
Fri, 22 Jun 2012 19:57:50 +0000 (19:57 +0000)
X-SVN-Rev: 31983

icu4c/source/aclocal.m4
icu4c/source/common/uposixdefs.h
icu4c/source/configure

index 95c9292337dedb661994a2e7a1db15aab521bf3a..c614985d1247b12bfb784e668ca3cee1740a9d91 100644 (file)
@@ -1,5 +1,5 @@
 # aclocal.m4 for ICU
-# Copyright (c) 1999-2011, International Business Machines Corporation and
+# Copyright (c) 1999-2012, International Business Machines Corporation and
 # others. All Rights Reserved.
 # Stephen F. Booth
 
@@ -455,7 +455,7 @@ AC_DEFUN(AC_CHECK_STRICT_COMPILE,
             case "${host}" in
             *-*-solaris*)
                 CFLAGS="$CFLAGS -Wall -ansi -pedantic -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -Wno-long-long"
-                CFLAGS="$CFLAGS -D__STDC__=0";;
+                CFLAGS="$CFLAGS -std=c99";;
             *-*-hpux*)
                 echo "# Note: We are not using '-ansi' with HP/UX GCC because int64_t broke, see <http://bugs.icu-project.org/trac/ticket/8493>"
                 CFLAGS="$CFLAGS -Wall -pedantic -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -Wno-long-long";;
@@ -474,10 +474,6 @@ AC_DEFUN(AC_CHECK_STRICT_COMPILE,
         if test "$GXX" = yes
         then
             CXXFLAGS="$CXXFLAGS -W -Wall -ansi -pedantic -Wpointer-arith -Wwrite-strings -Wno-long-long"
-            case "${host}" in
-            *-*-solaris*)
-                CXXFLAGS="$CXXFLAGS -D__STDC__=0";;
-            esac
         else
             case "${host}" in
             *-*-cygwin)
index c1ab8991ed6a503b9a06295b32b5bba66445f9e5..736220772dadd60b21df2cbc3302c5777e10a442 100644 (file)
@@ -1,6 +1,6 @@
 /*
 *******************************************************************************
-*   Copyright (C) 2011, International Business Machines
+*   Copyright (C) 2012, International Business Machines
 *   Corporation and others.  All Rights Reserved.
 *******************************************************************************
 *   file name:  uposixdefs.h
@@ -52,7 +52,7 @@
  *
  * z/OS needs this definition for timeval and to get usleep.
  */
-#if !defined(_XOPEN_SOURCE_EXTENDED)
+#if !defined(_XOPEN_SOURCE_EXTENDED) && (defined(__IBMC__) || defined(__IBMCPP__))
 #   define _XOPEN_SOURCE_EXTENDED 1
 #endif
 
index 065a1c19c35deedb3ef00c73f07a0471796c13e6..f87110631a18ff3669623b71c76e550dcb3815a7 100755 (executable)
@@ -4260,7 +4260,7 @@ $as_echo "$ac_use_strict_options" >&6; }
             case "${host}" in
             *-*-solaris*)
                 CFLAGS="$CFLAGS -Wall -ansi -pedantic -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -Wno-long-long"
-                CFLAGS="$CFLAGS -D__STDC__=0";;
+                CFLAGS="$CFLAGS -std=c99";;
             *-*-hpux*)
                 echo "# Note: We are not using '-ansi' with HP/UX GCC because int64_t broke, see <http://bugs.icu-project.org/trac/ticket/8493>"
                 CFLAGS="$CFLAGS -Wall -pedantic -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -Wno-long-long";;
@@ -4279,10 +4279,6 @@ $as_echo "$ac_use_strict_options" >&6; }
         if test "$GXX" = yes
         then
             CXXFLAGS="$CXXFLAGS -W -Wall -ansi -pedantic -Wpointer-arith -Wwrite-strings -Wno-long-long"
-            case "${host}" in
-            *-*-solaris*)
-                CXXFLAGS="$CXXFLAGS -D__STDC__=0";;
-            esac
         else
             case "${host}" in
             *-*-cygwin)
@@ -6039,8 +6035,6 @@ fi
   esac
 fi
 
-
-
 # Check whether --enable-weak-threads was given.
 if test "${enable_weak_threads+set}" = set; then :
   enableval=$enable_weak_threads; case "${enableval}" in