ICU-4638 Fix for Solaris x86 with Sun's compiler

X-SVN-Rev: 18191
This commit is contained in:
George Rhoten 2005-07-11 20:27:45 +00:00
parent 6edb932e50
commit f14317a91d
3 changed files with 109 additions and 106 deletions

View File

@ -32,9 +32,6 @@ LD_RPATH_PRE=
## Compiler switch to embed a library name
LD_SONAME = -h $(notdir $(MIDDLE_SO_TARGET))
## The type of assembly needed when pkgdata is used for generating shared libraries.
GENCCODE_ASSEMBLY=-a sun
## Shared object suffix
SO= so
## Non-shared intermediate object suffix

209
icu4c/source/configure vendored
View File

@ -2240,12 +2240,15 @@ i*86-*-linux*|x86_64-*-linux*|powerpc*-*-linux*|i*86-*-*bsd*|i*86-*-solaris*)
if test "$GCC" = yes; then
GENCCODE_ASSEMBLY="-a gcc"
fi ;;
sparc-*-solaris*)
GENCCODE_ASSEMBLY="-a sun"
;;
esac
echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
echo "configure:2249: checking how to run the C preprocessor" >&5
echo "configure:2252: checking how to run the C preprocessor" >&5
# On Suns, sometimes $CPP names a directory.
if test -n "$CPP" && test -d "$CPP"; then
CPP=
@ -2260,13 +2263,13 @@ else
# On the NeXT, cc -E runs the code through the compiler's parser,
# not just through cpp.
cat > conftest.$ac_ext <<EOF
#line 2264 "configure"
#line 2267 "configure"
#include "confdefs.h"
#include <assert.h>
Syntax Error
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:2270: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
{ (eval echo configure:2273: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
:
@ -2277,13 +2280,13 @@ else
rm -rf conftest*
CPP="${CC-cc} -E -traditional-cpp"
cat > conftest.$ac_ext <<EOF
#line 2281 "configure"
#line 2284 "configure"
#include "confdefs.h"
#include <assert.h>
Syntax Error
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:2287: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
{ (eval echo configure:2290: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
:
@ -2294,13 +2297,13 @@ else
rm -rf conftest*
CPP="${CC-cc} -nologo -E"
cat > conftest.$ac_ext <<EOF
#line 2298 "configure"
#line 2301 "configure"
#include "confdefs.h"
#include <assert.h>
Syntax Error
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:2304: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
{ (eval echo configure:2307: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
:
@ -2328,17 +2331,17 @@ for ac_hdr in inttypes.h
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
echo "configure:2332: checking for $ac_hdr" >&5
echo "configure:2335: checking for $ac_hdr" >&5
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
#line 2337 "configure"
#line 2340 "configure"
#include "confdefs.h"
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:2342: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
{ (eval echo configure:2345: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
rm -rf conftest*
@ -2411,16 +2414,16 @@ cross_compiling=$ac_cv_prog_cxx_cross
;;
esac
echo $ac_n "checking iostream usability""... $ac_c" 1>&6
echo "configure:2415: checking iostream usability" >&5
echo "configure:2418: checking iostream usability" >&5
cat > conftest.$ac_ext <<EOF
#line 2417 "configure"
#line 2420 "configure"
#include "confdefs.h"
#include <iostream>
int main() {
; return 0; }
EOF
if { (eval echo configure:2424: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
if { (eval echo configure:2427: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
ac_cv_header_iostream=yes
else
@ -2441,7 +2444,7 @@ rm -f conftest*
else
CXXFLAGS="${OLD_CXXFLAGS}"
echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
echo "configure:2445: checking how to run the C++ preprocessor" >&5
echo "configure:2448: checking how to run the C++ preprocessor" >&5
if test -z "$CXXCPP"; then
if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
@ -2454,12 +2457,12 @@ ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftes
cross_compiling=$ac_cv_prog_cxx_cross
CXXCPP="${CXX-g++} -E"
cat > conftest.$ac_ext <<EOF
#line 2458 "configure"
#line 2461 "configure"
#include "confdefs.h"
#include <stdlib.h>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:2463: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
{ (eval echo configure:2466: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
:
@ -2485,17 +2488,17 @@ echo "$ac_t""$CXXCPP" 1>&6
ac_safe=`echo "iostream.h" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for iostream.h""... $ac_c" 1>&6
echo "configure:2489: checking for iostream.h" >&5
echo "configure:2492: checking for iostream.h" >&5
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
#line 2494 "configure"
#line 2497 "configure"
#include "confdefs.h"
#include <iostream.h>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:2499: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
{ (eval echo configure:2502: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
rm -rf conftest*
@ -2518,19 +2521,19 @@ fi
if test $ac_cv_header_iostream_h = yes; then
echo $ac_n "checking whether ostream is really defined""... $ac_c" 1>&6
echo "configure:2522: checking whether ostream is really defined" >&5
echo "configure:2525: checking whether ostream is really defined" >&5
if eval "test \"`echo '$''{'ac_cv_iostream_ok'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
#line 2527 "configure"
#line 2530 "configure"
#include "confdefs.h"
#include <iostream.h>
int main() {
ostream &testout = cout; testout << "test" << endl;
; return 0; }
EOF
if { (eval echo configure:2534: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
if { (eval echo configure:2537: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
ac_cv_iostream_ok=yes
else
@ -2576,14 +2579,14 @@ cross_compiling=$ac_cv_prog_cc_cross
echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
echo "configure:2580: checking whether byte ordering is bigendian" >&5
echo "configure:2583: checking whether byte ordering is bigendian" >&5
if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
ac_cv_c_bigendian=unknown
# See if sys/param.h defines the BYTE_ORDER macro.
cat > conftest.$ac_ext <<EOF
#line 2587 "configure"
#line 2590 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <sys/param.h>
@ -2594,11 +2597,11 @@ int main() {
#endif
; return 0; }
EOF
if { (eval echo configure:2598: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
if { (eval echo configure:2601: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
# It does; now see whether it defined to BIG_ENDIAN or not.
cat > conftest.$ac_ext <<EOF
#line 2602 "configure"
#line 2605 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <sys/param.h>
@ -2609,7 +2612,7 @@ int main() {
#endif
; return 0; }
EOF
if { (eval echo configure:2613: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
if { (eval echo configure:2616: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
ac_cv_c_bigendian=yes
else
@ -2629,7 +2632,7 @@ if test "$cross_compiling" = yes; then
{ echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
else
cat > conftest.$ac_ext <<EOF
#line 2633 "configure"
#line 2636 "configure"
#include "confdefs.h"
main () {
/* Are we little or big endian? From Harbison&Steele. */
@ -2642,7 +2645,7 @@ main () {
exit (u.c[sizeof (long) - 1] == 1);
}
EOF
if { (eval echo configure:2646: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
if { (eval echo configure:2649: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
then
ac_cv_c_bigendian=no
else
@ -2677,12 +2680,12 @@ fi
U_HAVE_NL_LANGINFO_CODESET=0
U_NL_LANGINFO_CODESET=-1
echo $ac_n "checking for nl_langinfo""... $ac_c" 1>&6
echo "configure:2681: checking for nl_langinfo" >&5
echo "configure:2684: checking for nl_langinfo" >&5
if eval "test \"`echo '$''{'ac_cv_func_nl_langinfo'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
#line 2686 "configure"
#line 2689 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char nl_langinfo(); below. */
@ -2705,7 +2708,7 @@ nl_langinfo();
; return 0; }
EOF
if { (eval echo configure:2709: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
if { (eval echo configure:2712: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_func_nl_langinfo=yes"
else
@ -2728,21 +2731,21 @@ fi
if test $U_HAVE_NL_LANGINFO -eq 1; then
echo $ac_n "checking for nl_langinfo's argument to obtain the codeset""... $ac_c" 1>&6
echo "configure:2732: checking for nl_langinfo's argument to obtain the codeset" >&5
echo "configure:2735: checking for nl_langinfo's argument to obtain the codeset" >&5
if eval "test \"`echo '$''{'ac_cv_nl_langinfo_codeset'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
ac_cv_nl_langinfo_codeset="unknown"
for a in CODESET _NL_CTYPE_CODESET_NAME; do
cat > conftest.$ac_ext <<EOF
#line 2739 "configure"
#line 2742 "configure"
#include "confdefs.h"
#include <langinfo.h>
int main() {
nl_langinfo($a);
; return 0; }
EOF
if { (eval echo configure:2746: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
if { (eval echo configure:2749: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
ac_cv_nl_langinfo_codeset="$a"; break
else
@ -2771,12 +2774,12 @@ ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftes
cross_compiling=$ac_cv_prog_cxx_cross
echo $ac_n "checking for namespace support""... $ac_c" 1>&6
echo "configure:2775: checking for namespace support" >&5
echo "configure:2778: checking for namespace support" >&5
if eval "test \"`echo '$''{'ac_cv_namespace_ok'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
#line 2780 "configure"
#line 2783 "configure"
#include "confdefs.h"
namespace x_version {void f(){}};
namespace x = x_version;
@ -2786,7 +2789,7 @@ int main() {
f();
; return 0; }
EOF
if { (eval echo configure:2790: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
if { (eval echo configure:2793: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
ac_cv_namespace_ok=yes
else
@ -2807,14 +2810,14 @@ fi
echo $ac_n "checking for properly overriding new and delete""... $ac_c" 1>&6
echo "configure:2811: checking for properly overriding new and delete" >&5
echo "configure:2814: checking for properly overriding new and delete" >&5
U_OVERRIDE_CXX_ALLOCATION=0
U_HAVE_PLACEMENT_NEW=0
if eval "test \"`echo '$''{'ac_cv_override_cxx_allocation_ok'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
#line 2818 "configure"
#line 2821 "configure"
#include "confdefs.h"
#include <stdlib.h>
class UMemory {
@ -2829,7 +2832,7 @@ int main() {
; return 0; }
EOF
if { (eval echo configure:2833: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
if { (eval echo configure:2836: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
ac_cv_override_cxx_allocation_ok=yes
else
@ -2846,12 +2849,12 @@ if test $ac_cv_override_cxx_allocation_ok = yes
then
U_OVERRIDE_CXX_ALLOCATION=1
echo $ac_n "checking for placement new and delete""... $ac_c" 1>&6
echo "configure:2850: checking for placement new and delete" >&5
echo "configure:2853: checking for placement new and delete" >&5
if eval "test \"`echo '$''{'ac_cv_override_placement_new_ok'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
#line 2855 "configure"
#line 2858 "configure"
#include "confdefs.h"
#include <stdlib.h>
class UMemory {
@ -2868,7 +2871,7 @@ int main() {
; return 0; }
EOF
if { (eval echo configure:2872: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
if { (eval echo configure:2875: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
ac_cv_override_placement_new_ok=yes
else
@ -2897,12 +2900,12 @@ ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$a
cross_compiling=$ac_cv_prog_cc_cross
echo $ac_n "checking for popen""... $ac_c" 1>&6
echo "configure:2901: checking for popen" >&5
echo "configure:2904: checking for popen" >&5
if eval "test \"`echo '$''{'ac_cv_func_popen'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
#line 2906 "configure"
#line 2909 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char popen(); below. */
@ -2925,7 +2928,7 @@ popen();
; return 0; }
EOF
if { (eval echo configure:2929: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
if { (eval echo configure:2932: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_func_popen=yes"
else
@ -2953,12 +2956,12 @@ fi
echo $ac_n "checking for tzset""... $ac_c" 1>&6
echo "configure:2957: checking for tzset" >&5
echo "configure:2960: checking for tzset" >&5
if eval "test \"`echo '$''{'ac_cv_func_tzset'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
#line 2962 "configure"
#line 2965 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char tzset(); below. */
@ -2981,7 +2984,7 @@ tzset();
; return 0; }
EOF
if { (eval echo configure:2985: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
if { (eval echo configure:2988: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_func_tzset=yes"
else
@ -3007,12 +3010,12 @@ then
U_HAVE_TZSET=1
else
echo $ac_n "checking for _tzset""... $ac_c" 1>&6
echo "configure:3011: checking for _tzset" >&5
echo "configure:3014: checking for _tzset" >&5
if eval "test \"`echo '$''{'ac_cv_func__tzset'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
#line 3016 "configure"
#line 3019 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char _tzset(); below. */
@ -3035,7 +3038,7 @@ _tzset();
; return 0; }
EOF
if { (eval echo configure:3039: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
if { (eval echo configure:3042: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_func__tzset=yes"
else
@ -3065,12 +3068,12 @@ fi
U_HAVE_TZNAME=0
echo $ac_n "checking for tzname""... $ac_c" 1>&6
echo "configure:3069: checking for tzname" >&5
echo "configure:3072: checking for tzname" >&5
if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
#line 3074 "configure"
#line 3077 "configure"
#include "confdefs.h"
#ifndef __USE_POSIX
#define __USE_POSIX
@ -3084,7 +3087,7 @@ int main() {
atoi(*tzname);
; return 0; }
EOF
if { (eval echo configure:3088: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
if { (eval echo configure:3091: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
ac_cv_var_tzname=yes
else
@ -3102,12 +3105,12 @@ if test $ac_cv_var_tzname = yes; then
U_HAVE_TZNAME=1
else
echo $ac_n "checking for _tzname""... $ac_c" 1>&6
echo "configure:3106: checking for _tzname" >&5
echo "configure:3109: checking for _tzname" >&5
if eval "test \"`echo '$''{'ac_cv_var__tzname'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
#line 3111 "configure"
#line 3114 "configure"
#include "confdefs.h"
#include <stdlib.h>
#include <time.h>
@ -3117,7 +3120,7 @@ int main() {
atoi(*_tzname);
; return 0; }
EOF
if { (eval echo configure:3121: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
if { (eval echo configure:3124: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
ac_cv_var__tzname=yes
else
@ -3139,12 +3142,12 @@ fi
echo $ac_n "checking for timezone""... $ac_c" 1>&6
echo "configure:3143: checking for timezone" >&5
echo "configure:3146: checking for timezone" >&5
if eval "test \"`echo '$''{'ac_cv_var_timezone'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
#line 3148 "configure"
#line 3151 "configure"
#include "confdefs.h"
#ifndef __USE_POSIX
#define __USE_POSIX
@ -3158,7 +3161,7 @@ int main() {
timezone = 1;
; return 0; }
EOF
if { (eval echo configure:3162: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
if { (eval echo configure:3165: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
ac_cv_var_timezone=yes
else
@ -3177,12 +3180,12 @@ if test $ac_cv_var_timezone = yes; then
U_HAVE_TIMEZONE=1
else
echo $ac_n "checking for __timezone""... $ac_c" 1>&6
echo "configure:3181: checking for __timezone" >&5
echo "configure:3184: checking for __timezone" >&5
if eval "test \"`echo '$''{'ac_cv_var___timezone'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
#line 3186 "configure"
#line 3189 "configure"
#include "confdefs.h"
#include <time.h>
@ -3190,7 +3193,7 @@ int main() {
__timezone = 1;
; return 0; }
EOF
if { (eval echo configure:3194: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
if { (eval echo configure:3197: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
ac_cv_var___timezone=yes
else
@ -3208,12 +3211,12 @@ echo "$ac_t""$ac_cv_var___timezone" 1>&6
U_HAVE_TIMEZONE=1
else
echo $ac_n "checking for _timezone""... $ac_c" 1>&6
echo "configure:3212: checking for _timezone" >&5
echo "configure:3215: checking for _timezone" >&5
if eval "test \"`echo '$''{'ac_cv_var__timezone'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
#line 3217 "configure"
#line 3220 "configure"
#include "confdefs.h"
#include <time.h>
@ -3221,7 +3224,7 @@ int main() {
_timezone = 1;
; return 0; }
EOF
if { (eval echo configure:3225: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
if { (eval echo configure:3228: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
ac_cv_var__timezone=yes
else
@ -3244,12 +3247,12 @@ fi
echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
echo "configure:3248: checking for ANSI C header files" >&5
echo "configure:3251: checking for ANSI C header files" >&5
if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
#line 3253 "configure"
#line 3256 "configure"
#include "confdefs.h"
#include <stdlib.h>
#include <stdarg.h>
@ -3257,7 +3260,7 @@ else
#include <float.h>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:3261: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
{ (eval echo configure:3264: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
rm -rf conftest*
@ -3274,7 +3277,7 @@ rm -f conftest*
if test $ac_cv_header_stdc = yes; then
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
cat > conftest.$ac_ext <<EOF
#line 3278 "configure"
#line 3281 "configure"
#include "confdefs.h"
#include <string.h>
EOF
@ -3292,7 +3295,7 @@ fi
if test $ac_cv_header_stdc = yes; then
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
cat > conftest.$ac_ext <<EOF
#line 3296 "configure"
#line 3299 "configure"
#include "confdefs.h"
#include <stdlib.h>
EOF
@ -3313,7 +3316,7 @@ if test "$cross_compiling" = yes; then
:
else
cat > conftest.$ac_ext <<EOF
#line 3317 "configure"
#line 3320 "configure"
#include "confdefs.h"
#include <ctype.h>
#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
@ -3324,7 +3327,7 @@ if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
exit (0); }
EOF
if { (eval echo configure:3328: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
if { (eval echo configure:3331: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
then
:
else
@ -3348,12 +3351,12 @@ EOF
fi
echo $ac_n "checking for int8_t""... $ac_c" 1>&6
echo "configure:3352: checking for int8_t" >&5
echo "configure:3355: checking for int8_t" >&5
if eval "test \"`echo '$''{'ac_cv_type_int8_t'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
#line 3357 "configure"
#line 3360 "configure"
#include "confdefs.h"
#include <sys/types.h>
#if STDC_HEADERS
@ -3381,12 +3384,12 @@ EOF
fi
echo $ac_n "checking for uint8_t""... $ac_c" 1>&6
echo "configure:3385: checking for uint8_t" >&5
echo "configure:3388: checking for uint8_t" >&5
if eval "test \"`echo '$''{'ac_cv_type_uint8_t'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
#line 3390 "configure"
#line 3393 "configure"
#include "confdefs.h"
#include <sys/types.h>
#if STDC_HEADERS
@ -3414,12 +3417,12 @@ EOF
fi
echo $ac_n "checking for int16_t""... $ac_c" 1>&6
echo "configure:3418: checking for int16_t" >&5
echo "configure:3421: checking for int16_t" >&5
if eval "test \"`echo '$''{'ac_cv_type_int16_t'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
#line 3423 "configure"
#line 3426 "configure"
#include "confdefs.h"
#include <sys/types.h>
#if STDC_HEADERS
@ -3447,12 +3450,12 @@ EOF
fi
echo $ac_n "checking for uint16_t""... $ac_c" 1>&6
echo "configure:3451: checking for uint16_t" >&5
echo "configure:3454: checking for uint16_t" >&5
if eval "test \"`echo '$''{'ac_cv_type_uint16_t'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
#line 3456 "configure"
#line 3459 "configure"
#include "confdefs.h"
#include <sys/types.h>
#if STDC_HEADERS
@ -3480,12 +3483,12 @@ EOF
fi
echo $ac_n "checking for int32_t""... $ac_c" 1>&6
echo "configure:3484: checking for int32_t" >&5
echo "configure:3487: checking for int32_t" >&5
if eval "test \"`echo '$''{'ac_cv_type_int32_t'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
#line 3489 "configure"
#line 3492 "configure"
#include "confdefs.h"
#include <sys/types.h>
#if STDC_HEADERS
@ -3513,12 +3516,12 @@ EOF
fi
echo $ac_n "checking for uint32_t""... $ac_c" 1>&6
echo "configure:3517: checking for uint32_t" >&5
echo "configure:3520: checking for uint32_t" >&5
if eval "test \"`echo '$''{'ac_cv_type_uint32_t'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
#line 3522 "configure"
#line 3525 "configure"
#include "confdefs.h"
#include <sys/types.h>
#if STDC_HEADERS
@ -3546,12 +3549,12 @@ EOF
fi
echo $ac_n "checking for int64_t""... $ac_c" 1>&6
echo "configure:3550: checking for int64_t" >&5
echo "configure:3553: checking for int64_t" >&5
if eval "test \"`echo '$''{'ac_cv_type_int64_t'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
#line 3555 "configure"
#line 3558 "configure"
#include "confdefs.h"
#include <sys/types.h>
#if STDC_HEADERS
@ -3579,12 +3582,12 @@ EOF
fi
echo $ac_n "checking for uint64_t""... $ac_c" 1>&6
echo "configure:3583: checking for uint64_t" >&5
echo "configure:3586: checking for uint64_t" >&5
if eval "test \"`echo '$''{'ac_cv_type_uint64_t'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
#line 3588 "configure"
#line 3591 "configure"
#include "confdefs.h"
#include <sys/types.h>
#if STDC_HEADERS
@ -3670,17 +3673,17 @@ fi
ac_safe=`echo "wchar.h" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for wchar.h""... $ac_c" 1>&6
echo "configure:3674: checking for wchar.h" >&5
echo "configure:3677: checking for wchar.h" >&5
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
#line 3679 "configure"
#line 3682 "configure"
#include "confdefs.h"
#include <wchar.h>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:3684: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
{ (eval echo configure:3687: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
rm -rf conftest*
@ -3713,14 +3716,14 @@ EOF
U_HAVE_WCHAR_H=1
echo $ac_n "checking for library containing wcscpy""... $ac_c" 1>&6
echo "configure:3717: checking for library containing wcscpy" >&5
echo "configure:3720: checking for library containing wcscpy" >&5
if eval "test \"`echo '$''{'ac_cv_search_wcscpy'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
ac_func_search_save_LIBS="$LIBS"
ac_cv_search_wcscpy="no"
cat > conftest.$ac_ext <<EOF
#line 3724 "configure"
#line 3727 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
@ -3731,7 +3734,7 @@ int main() {
wcscpy()
; return 0; }
EOF
if { (eval echo configure:3735: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
if { (eval echo configure:3738: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
ac_cv_search_wcscpy="none required"
else
@ -3742,7 +3745,7 @@ rm -f conftest*
test "$ac_cv_search_wcscpy" = "no" && for i in wcs w; do
LIBS="-l$i $ac_func_search_save_LIBS"
cat > conftest.$ac_ext <<EOF
#line 3746 "configure"
#line 3749 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
@ -3753,7 +3756,7 @@ int main() {
wcscpy()
; return 0; }
EOF
if { (eval echo configure:3757: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
if { (eval echo configure:3760: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
ac_cv_search_wcscpy="-l$i"
break
@ -3784,7 +3787,7 @@ fi
ac_default_sizeof_wchar_t=4
echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6
echo "configure:3788: checking size of wchar_t" >&5
echo "configure:3791: checking size of wchar_t" >&5
if eval "test \"`echo '$''{'ac_cv_sizeof_wchar_t'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
@ -3792,7 +3795,7 @@ else
ac_cv_sizeof_wchar_t=$ac_default_sizeof_wchar_t
else
cat > conftest.$ac_ext <<EOF
#line 3796 "configure"
#line 3799 "configure"
#include "confdefs.h"
#if STDC_HEADERS
#include <stddef.h>
@ -3810,7 +3813,7 @@ main()
exit(0);
}
EOF
if { (eval echo configure:3814: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
if { (eval echo configure:3817: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
then
ac_cv_sizeof_wchar_t=`cat conftestval`
else
@ -3977,7 +3980,7 @@ esac
echo $ac_n "checking for a library suffix to use""... $ac_c" 1>&6
echo "configure:3981: checking for a library suffix to use" >&5
echo "configure:3984: checking for a library suffix to use" >&5
# Check whether --with-library-suffix or --without-library-suffix was given.
if test "${with_library_suffix+set}" = set; then
withval="$with_library_suffix"

View File

@ -342,6 +342,9 @@ i*86-*-linux*|x86_64-*-linux*|powerpc*-*-linux*|i*86-*-*bsd*|i*86-*-solaris*)
dnl We're using gcc, and the simple -a gcc command line works for genccode
GENCCODE_ASSEMBLY="-a gcc"
fi ;;
sparc-*-solaris*)
GENCCODE_ASSEMBLY="-a sun"
;;
esac
AC_SUBST(GENCCODE_ASSEMBLY)