1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.59. 4# 5# Copyright (C) 2003 Free Software Foundation, Inc. 6# This configure script is free software; the Free Software Foundation 7# gives unlimited permission to copy, distribute and modify it. 8## --------------------- ## 9## M4sh Initialization. ## 10## --------------------- ## 11 12# Be Bourne compatible 13if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 14 emulate sh 15 NULLCMD=: 16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 17 # is contrary to our usage. Disable this feature. 18 alias -g '${1+"$@"}'='"$@"' 19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 20 set -o posix 21fi 22DUALCASE=1; export DUALCASE # for MKS sh 23 24# Support unset when possible. 25if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 26 as_unset=unset 27else 28 as_unset=false 29fi 30 31 32# Work around bugs in pre-3.0 UWIN ksh. 33$as_unset ENV MAIL MAILPATH 34PS1='$ ' 35PS2='> ' 36PS4='+ ' 37 38# NLS nuisances. 39for as_var in \ 40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 42 LC_TELEPHONE LC_TIME 43do 44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 45 eval $as_var=C; export $as_var 46 else 47 $as_unset $as_var 48 fi 49done 50 51# Required to use basename. 52if expr a : '\(a\)' >/dev/null 2>&1; then 53 as_expr=expr 54else 55 as_expr=false 56fi 57 58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 59 as_basename=basename 60else 61 as_basename=false 62fi 63 64 65# Name of the executable. 66as_me=`$as_basename "$0" || 67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 68 X"$0" : 'X\(//\)$' \| \ 69 X"$0" : 'X\(/\)$' \| \ 70 . : '\(.\)' 2>/dev/null || 71echo X/"$0" | 72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 73 /^X\/\(\/\/\)$/{ s//\1/; q; } 74 /^X\/\(\/\).*/{ s//\1/; q; } 75 s/.*/./; q'` 76 77 78# PATH needs CR, and LINENO needs CR and PATH. 79# Avoid depending upon Character Ranges. 80as_cr_letters='abcdefghijklmnopqrstuvwxyz' 81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 82as_cr_Letters=$as_cr_letters$as_cr_LETTERS 83as_cr_digits='0123456789' 84as_cr_alnum=$as_cr_Letters$as_cr_digits 85 86# The user is always right. 87if test "${PATH_SEPARATOR+set}" != set; then 88 echo "#! /bin/sh" >conf$$.sh 89 echo "exit 0" >>conf$$.sh 90 chmod +x conf$$.sh 91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 92 PATH_SEPARATOR=';' 93 else 94 PATH_SEPARATOR=: 95 fi 96 rm -f conf$$.sh 97fi 98 99 100 as_lineno_1=$LINENO 101 as_lineno_2=$LINENO 102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 103 test "x$as_lineno_1" != "x$as_lineno_2" && 104 test "x$as_lineno_3" = "x$as_lineno_2" || { 105 # Find who we are. Look in the path if we contain no path at all 106 # relative or not. 107 case $0 in 108 *[\\/]* ) as_myself=$0 ;; 109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 110for as_dir in $PATH 111do 112 IFS=$as_save_IFS 113 test -z "$as_dir" && as_dir=. 114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 115done 116 117 ;; 118 esac 119 # We did not find ourselves, most probably we were run as `sh COMMAND' 120 # in which case we are not to be found in the path. 121 if test "x$as_myself" = x; then 122 as_myself=$0 123 fi 124 if test ! -f "$as_myself"; then 125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 126 { (exit 1); exit 1; }; } 127 fi 128 case $CONFIG_SHELL in 129 '') 130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 132do 133 IFS=$as_save_IFS 134 test -z "$as_dir" && as_dir=. 135 for as_base in sh bash ksh sh5; do 136 case $as_dir in 137 /*) 138 if ("$as_dir/$as_base" -c ' 139 as_lineno_1=$LINENO 140 as_lineno_2=$LINENO 141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 142 test "x$as_lineno_1" != "x$as_lineno_2" && 143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 146 CONFIG_SHELL=$as_dir/$as_base 147 export CONFIG_SHELL 148 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 149 fi;; 150 esac 151 done 152done 153;; 154 esac 155 156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 157 # uniformly replaced by the line number. The first 'sed' inserts a 158 # line-number line before each line; the second 'sed' does the real 159 # work. The second script uses 'N' to pair each line-number line 160 # with the numbered line, and appends trailing '-' during 161 # substitution so that $LINENO is not a special case at line end. 162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 164 sed '=' <$as_myself | 165 sed ' 166 N 167 s,$,-, 168 : loop 169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 170 t loop 171 s,-$,, 172 s,^['$as_cr_digits']*\n,, 173 ' >$as_me.lineno && 174 chmod +x $as_me.lineno || 175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 176 { (exit 1); exit 1; }; } 177 178 # Don't try to exec as it changes $[0], causing all sort of problems 179 # (the dirname of $[0] is not the place where we might find the 180 # original and so on. Autoconf is especially sensible to this). 181 . ./$as_me.lineno 182 # Exit status is that of the last command. 183 exit 184} 185 186 187case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 188 *c*,-n*) ECHO_N= ECHO_C=' 189' ECHO_T=' ' ;; 190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 192esac 193 194if expr a : '\(a\)' >/dev/null 2>&1; then 195 as_expr=expr 196else 197 as_expr=false 198fi 199 200rm -f conf$$ conf$$.exe conf$$.file 201echo >conf$$.file 202if ln -s conf$$.file conf$$ 2>/dev/null; then 203 # We could just check for DJGPP; but this test a) works b) is more generic 204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 205 if test -f conf$$.exe; then 206 # Don't use ln at all; we don't have any links 207 as_ln_s='cp -p' 208 else 209 as_ln_s='ln -s' 210 fi 211elif ln conf$$.file conf$$ 2>/dev/null; then 212 as_ln_s=ln 213else 214 as_ln_s='cp -p' 215fi 216rm -f conf$$ conf$$.exe conf$$.file 217 218if mkdir -p . 2>/dev/null; then 219 as_mkdir_p=: 220else 221 test -d ./-p && rmdir ./-p 222 as_mkdir_p=false 223fi 224 225as_executable_p="test -f" 226 227# Sed expression to map a string onto a valid CPP name. 228as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 229 230# Sed expression to map a string onto a valid variable name. 231as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 232 233 234# IFS 235# We need space, tab and new line, in precisely that order. 236as_nl=' 237' 238IFS=" $as_nl" 239 240# CDPATH. 241$as_unset CDPATH 242 243 244# Name of the host. 245# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 246# so uname gets run too. 247ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 248 249exec 6>&1 250 251# 252# Initializations. 253# 254ac_default_prefix=/usr/local 255ac_config_libobj_dir=. 256cross_compiling=no 257subdirs= 258MFLAGS= 259MAKEFLAGS= 260SHELL=${CONFIG_SHELL-/bin/sh} 261 262# Maximum number of lines to put in a shell here document. 263# This variable seems obsolete. It should probably be removed, and 264# only ac_max_sed_lines should be used. 265: ${ac_max_here_lines=38} 266 267# Identity of this package. 268PACKAGE_NAME= 269PACKAGE_TARNAME= 270PACKAGE_VERSION= 271PACKAGE_STRING= 272PACKAGE_BUGREPORT= 273 274ac_unique_file="common/unicode/utypes.h" 275# Factoring default headers for most tests. 276ac_includes_default="\ 277#include <stdio.h> 278#if HAVE_SYS_TYPES_H 279# include <sys/types.h> 280#endif 281#if HAVE_SYS_STAT_H 282# include <sys/stat.h> 283#endif 284#if STDC_HEADERS 285# include <stdlib.h> 286# include <stddef.h> 287#else 288# if HAVE_STDLIB_H 289# include <stdlib.h> 290# endif 291#endif 292#if HAVE_STRING_H 293# if !STDC_HEADERS && HAVE_MEMORY_H 294# include <memory.h> 295# endif 296# include <string.h> 297#endif 298#if HAVE_STRINGS_H 299# include <strings.h> 300#endif 301#if HAVE_INTTYPES_H 302# include <inttypes.h> 303#else 304# if HAVE_STDINT_H 305# include <stdint.h> 306# endif 307#endif 308#if HAVE_UNISTD_H 309# include <unistd.h> 310#endif" 311 312ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS PACKAGE VERSION LIB_VERSION LIB_VERSION_MAJOR UNICODE_VERSION build build_cpu build_vendor build_os host host_cpu host_vendor host_os CPPFLAGS CC CFLAGS LDFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA U_MAKE DOXYGEN ARFLAGS COMPILE_LINK_ENVVAR LIB_M ENABLE_SHARED ENABLE_STATIC ENABLE_DEBUG ENABLE_RELEASE U_DEFAULT_SHOW_DRAFT U_USE_GCC_VISIBILITY_ATTRIBUTE LIBCFLAGS LIBCXXFLAGS RANLIB ac_ct_RANLIB AR U_DISABLE_RENAMING U_ENABLE_TRACING ENABLE_RPATH U_INLINE THREADS_TRUE ICU_USE_THREADS LIB_THREAD HAVE_MMAP GENCCODE_ASSEMBLY CPP EGREP U_HAVE_INTTYPES_H U_IOSTREAM_SOURCE U_IS_BIG_ENDIAN U_HAVE_NL_LANGINFO_CODESET U_NL_LANGINFO_CODESET U_HAVE_NAMESPACE U_OVERRIDE_CXX_ALLOCATION U_HAVE_PLACEMENT_NEW U_HAVE_POPEN U_HAVE_TZSET U_TZSET U_HAVE_TZNAME U_TZNAME U_HAVE_TIMEZONE U_TIMEZONE HAVE_INT8_T HAVE_UINT8_T HAVE_INT16_T HAVE_UINT16_T HAVE_INT32_T HAVE_UINT32_T HAVE_INT64_T HAVE_UINT64_T U_HAVE_WCHAR_H U_HAVE_WCSCPY U_SIZEOF_WCHAR_T U_CHECK_UTF16_STRING EXTRAS_TRUE ICUIO_TRUE LAYOUT_TRUE pkgicudatadir thepkgicudatadir DATA_PACKAGING_MODE ICULIBSUFFIX U_HAVE_LIB_SUFFIX ICULIBSUFFIXCNAME TESTS_TRUE SAMPLES_TRUE ICUDATA_CHAR platform platform_make_fragment_name platform_make_fragment LIBOBJS LTLIBOBJS' 313ac_subst_files='' 314 315# Initialize some variables set by options. 316ac_init_help= 317ac_init_version=false 318# The variables have the same names as the options, with 319# dashes changed to underlines. 320cache_file=/dev/null 321exec_prefix=NONE 322no_create= 323no_recursion= 324prefix=NONE 325program_prefix=NONE 326program_suffix=NONE 327program_transform_name=s,x,x, 328silent= 329site= 330srcdir= 331verbose= 332x_includes=NONE 333x_libraries=NONE 334 335# Installation directory options. 336# These are left unexpanded so users can "make install exec_prefix=/foo" 337# and all the variables that are supposed to be based on exec_prefix 338# by default will actually change. 339# Use braces instead of parens because sh, perl, etc. also accept them. 340bindir='${exec_prefix}/bin' 341sbindir='${exec_prefix}/sbin' 342libexecdir='${exec_prefix}/libexec' 343datadir='${prefix}/share' 344sysconfdir='${prefix}/etc' 345sharedstatedir='${prefix}/com' 346localstatedir='${prefix}/var' 347libdir='${exec_prefix}/lib' 348includedir='${prefix}/include' 349oldincludedir='/usr/include' 350infodir='${prefix}/info' 351mandir='${prefix}/man' 352 353ac_prev= 354for ac_option 355do 356 # If the previous option needs an argument, assign it. 357 if test -n "$ac_prev"; then 358 eval "$ac_prev=\$ac_option" 359 ac_prev= 360 continue 361 fi 362 363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` 364 365 # Accept the important Cygnus configure options, so we can diagnose typos. 366 367 case $ac_option in 368 369 -bindir | --bindir | --bindi | --bind | --bin | --bi) 370 ac_prev=bindir ;; 371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 372 bindir=$ac_optarg ;; 373 374 -build | --build | --buil | --bui | --bu) 375 ac_prev=build_alias ;; 376 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 377 build_alias=$ac_optarg ;; 378 379 -cache-file | --cache-file | --cache-fil | --cache-fi \ 380 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 381 ac_prev=cache_file ;; 382 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 383 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 384 cache_file=$ac_optarg ;; 385 386 --config-cache | -C) 387 cache_file=config.cache ;; 388 389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da) 390 ac_prev=datadir ;; 391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ 392 | --da=*) 393 datadir=$ac_optarg ;; 394 395 -disable-* | --disable-*) 396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 397 # Reject names that are not valid shell variable names. 398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 400 { (exit 1); exit 1; }; } 401 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 402 eval "enable_$ac_feature=no" ;; 403 404 -enable-* | --enable-*) 405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 406 # Reject names that are not valid shell variable names. 407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 409 { (exit 1); exit 1; }; } 410 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 411 case $ac_option in 412 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 413 *) ac_optarg=yes ;; 414 esac 415 eval "enable_$ac_feature='$ac_optarg'" ;; 416 417 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 418 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 419 | --exec | --exe | --ex) 420 ac_prev=exec_prefix ;; 421 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 422 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 423 | --exec=* | --exe=* | --ex=*) 424 exec_prefix=$ac_optarg ;; 425 426 -gas | --gas | --ga | --g) 427 # Obsolete; use --with-gas. 428 with_gas=yes ;; 429 430 -help | --help | --hel | --he | -h) 431 ac_init_help=long ;; 432 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 433 ac_init_help=recursive ;; 434 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 435 ac_init_help=short ;; 436 437 -host | --host | --hos | --ho) 438 ac_prev=host_alias ;; 439 -host=* | --host=* | --hos=* | --ho=*) 440 host_alias=$ac_optarg ;; 441 442 -includedir | --includedir | --includedi | --included | --include \ 443 | --includ | --inclu | --incl | --inc) 444 ac_prev=includedir ;; 445 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 446 | --includ=* | --inclu=* | --incl=* | --inc=*) 447 includedir=$ac_optarg ;; 448 449 -infodir | --infodir | --infodi | --infod | --info | --inf) 450 ac_prev=infodir ;; 451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 452 infodir=$ac_optarg ;; 453 454 -libdir | --libdir | --libdi | --libd) 455 ac_prev=libdir ;; 456 -libdir=* | --libdir=* | --libdi=* | --libd=*) 457 libdir=$ac_optarg ;; 458 459 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 460 | --libexe | --libex | --libe) 461 ac_prev=libexecdir ;; 462 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 463 | --libexe=* | --libex=* | --libe=*) 464 libexecdir=$ac_optarg ;; 465 466 -localstatedir | --localstatedir | --localstatedi | --localstated \ 467 | --localstate | --localstat | --localsta | --localst \ 468 | --locals | --local | --loca | --loc | --lo) 469 ac_prev=localstatedir ;; 470 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 471 | --localstate=* | --localstat=* | --localsta=* | --localst=* \ 472 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) 473 localstatedir=$ac_optarg ;; 474 475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 476 ac_prev=mandir ;; 477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 478 mandir=$ac_optarg ;; 479 480 -nfp | --nfp | --nf) 481 # Obsolete; use --without-fp. 482 with_fp=no ;; 483 484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 485 | --no-cr | --no-c | -n) 486 no_create=yes ;; 487 488 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 489 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 490 no_recursion=yes ;; 491 492 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 493 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 494 | --oldin | --oldi | --old | --ol | --o) 495 ac_prev=oldincludedir ;; 496 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 497 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 498 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 499 oldincludedir=$ac_optarg ;; 500 501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 502 ac_prev=prefix ;; 503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 504 prefix=$ac_optarg ;; 505 506 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 507 | --program-pre | --program-pr | --program-p) 508 ac_prev=program_prefix ;; 509 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 510 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 511 program_prefix=$ac_optarg ;; 512 513 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 514 | --program-suf | --program-su | --program-s) 515 ac_prev=program_suffix ;; 516 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 517 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 518 program_suffix=$ac_optarg ;; 519 520 -program-transform-name | --program-transform-name \ 521 | --program-transform-nam | --program-transform-na \ 522 | --program-transform-n | --program-transform- \ 523 | --program-transform | --program-transfor \ 524 | --program-transfo | --program-transf \ 525 | --program-trans | --program-tran \ 526 | --progr-tra | --program-tr | --program-t) 527 ac_prev=program_transform_name ;; 528 -program-transform-name=* | --program-transform-name=* \ 529 | --program-transform-nam=* | --program-transform-na=* \ 530 | --program-transform-n=* | --program-transform-=* \ 531 | --program-transform=* | --program-transfor=* \ 532 | --program-transfo=* | --program-transf=* \ 533 | --program-trans=* | --program-tran=* \ 534 | --progr-tra=* | --program-tr=* | --program-t=*) 535 program_transform_name=$ac_optarg ;; 536 537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 538 | -silent | --silent | --silen | --sile | --sil) 539 silent=yes ;; 540 541 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 542 ac_prev=sbindir ;; 543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 544 | --sbi=* | --sb=*) 545 sbindir=$ac_optarg ;; 546 547 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 548 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 549 | --sharedst | --shareds | --shared | --share | --shar \ 550 | --sha | --sh) 551 ac_prev=sharedstatedir ;; 552 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 553 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 554 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 555 | --sha=* | --sh=*) 556 sharedstatedir=$ac_optarg ;; 557 558 -site | --site | --sit) 559 ac_prev=site ;; 560 -site=* | --site=* | --sit=*) 561 site=$ac_optarg ;; 562 563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 564 ac_prev=srcdir ;; 565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 566 srcdir=$ac_optarg ;; 567 568 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 569 | --syscon | --sysco | --sysc | --sys | --sy) 570 ac_prev=sysconfdir ;; 571 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 572 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 573 sysconfdir=$ac_optarg ;; 574 575 -target | --target | --targe | --targ | --tar | --ta | --t) 576 ac_prev=target_alias ;; 577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 578 target_alias=$ac_optarg ;; 579 580 -v | -verbose | --verbose | --verbos | --verbo | --verb) 581 verbose=yes ;; 582 583 -version | --version | --versio | --versi | --vers | -V) 584 ac_init_version=: ;; 585 586 -with-* | --with-*) 587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 588 # Reject names that are not valid shell variable names. 589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 590 { echo "$as_me: error: invalid package name: $ac_package" >&2 591 { (exit 1); exit 1; }; } 592 ac_package=`echo $ac_package| sed 's/-/_/g'` 593 case $ac_option in 594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 595 *) ac_optarg=yes ;; 596 esac 597 eval "with_$ac_package='$ac_optarg'" ;; 598 599 -without-* | --without-*) 600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 601 # Reject names that are not valid shell variable names. 602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 603 { echo "$as_me: error: invalid package name: $ac_package" >&2 604 { (exit 1); exit 1; }; } 605 ac_package=`echo $ac_package | sed 's/-/_/g'` 606 eval "with_$ac_package=no" ;; 607 608 --x) 609 # Obsolete; use --with-x. 610 with_x=yes ;; 611 612 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 613 | --x-incl | --x-inc | --x-in | --x-i) 614 ac_prev=x_includes ;; 615 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 616 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 617 x_includes=$ac_optarg ;; 618 619 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 620 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 621 ac_prev=x_libraries ;; 622 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 623 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 624 x_libraries=$ac_optarg ;; 625 626 -*) { echo "$as_me: error: unrecognized option: $ac_option 627Try \`$0 --help' for more information." >&2 628 { (exit 1); exit 1; }; } 629 ;; 630 631 *=*) 632 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 633 # Reject names that are not valid shell variable names. 634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 636 { (exit 1); exit 1; }; } 637 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` 638 eval "$ac_envvar='$ac_optarg'" 639 export $ac_envvar ;; 640 641 *) 642 # FIXME: should be removed in autoconf 3.0. 643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 647 ;; 648 649 esac 650done 651 652if test -n "$ac_prev"; then 653 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 654 { echo "$as_me: error: missing argument to $ac_option" >&2 655 { (exit 1); exit 1; }; } 656fi 657 658# Be sure to have absolute paths. 659for ac_var in exec_prefix prefix 660do 661 eval ac_val=$`echo $ac_var` 662 case $ac_val in 663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;; 664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 665 { (exit 1); exit 1; }; };; 666 esac 667done 668 669# Be sure to have absolute paths. 670for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ 671 localstatedir libdir includedir oldincludedir infodir mandir 672do 673 eval ac_val=$`echo $ac_var` 674 case $ac_val in 675 [\\/$]* | ?:[\\/]* ) ;; 676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 677 { (exit 1); exit 1; }; };; 678 esac 679done 680 681# There might be people who depend on the old broken behavior: `$host' 682# used to hold the argument of --host etc. 683# FIXME: To remove some day. 684build=$build_alias 685host=$host_alias 686target=$target_alias 687 688# FIXME: To remove some day. 689if test "x$host_alias" != x; then 690 if test "x$build_alias" = x; then 691 cross_compiling=maybe 692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 693 If a cross compiler is detected then cross compile mode will be used." >&2 694 elif test "x$build_alias" != "x$host_alias"; then 695 cross_compiling=yes 696 fi 697fi 698 699ac_tool_prefix= 700test -n "$host_alias" && ac_tool_prefix=$host_alias- 701 702test "$silent" = yes && exec 6>/dev/null 703 704 705# Find the source files, if location was not specified. 706if test -z "$srcdir"; then 707 ac_srcdir_defaulted=yes 708 # Try the directory containing this script, then its parent. 709 ac_confdir=`(dirname "$0") 2>/dev/null || 710$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 711 X"$0" : 'X\(//\)[^/]' \| \ 712 X"$0" : 'X\(//\)$' \| \ 713 X"$0" : 'X\(/\)' \| \ 714 . : '\(.\)' 2>/dev/null || 715echo X"$0" | 716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 717 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 718 /^X\(\/\/\)$/{ s//\1/; q; } 719 /^X\(\/\).*/{ s//\1/; q; } 720 s/.*/./; q'` 721 srcdir=$ac_confdir 722 if test ! -r $srcdir/$ac_unique_file; then 723 srcdir=.. 724 fi 725else 726 ac_srcdir_defaulted=no 727fi 728if test ! -r $srcdir/$ac_unique_file; then 729 if test "$ac_srcdir_defaulted" = yes; then 730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 731 { (exit 1); exit 1; }; } 732 else 733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 734 { (exit 1); exit 1; }; } 735 fi 736fi 737(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || 738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 739 { (exit 1); exit 1; }; } 740srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` 741ac_env_build_alias_set=${build_alias+set} 742ac_env_build_alias_value=$build_alias 743ac_cv_env_build_alias_set=${build_alias+set} 744ac_cv_env_build_alias_value=$build_alias 745ac_env_host_alias_set=${host_alias+set} 746ac_env_host_alias_value=$host_alias 747ac_cv_env_host_alias_set=${host_alias+set} 748ac_cv_env_host_alias_value=$host_alias 749ac_env_target_alias_set=${target_alias+set} 750ac_env_target_alias_value=$target_alias 751ac_cv_env_target_alias_set=${target_alias+set} 752ac_cv_env_target_alias_value=$target_alias 753ac_env_CC_set=${CC+set} 754ac_env_CC_value=$CC 755ac_cv_env_CC_set=${CC+set} 756ac_cv_env_CC_value=$CC 757ac_env_CFLAGS_set=${CFLAGS+set} 758ac_env_CFLAGS_value=$CFLAGS 759ac_cv_env_CFLAGS_set=${CFLAGS+set} 760ac_cv_env_CFLAGS_value=$CFLAGS 761ac_env_LDFLAGS_set=${LDFLAGS+set} 762ac_env_LDFLAGS_value=$LDFLAGS 763ac_cv_env_LDFLAGS_set=${LDFLAGS+set} 764ac_cv_env_LDFLAGS_value=$LDFLAGS 765ac_env_CPPFLAGS_set=${CPPFLAGS+set} 766ac_env_CPPFLAGS_value=$CPPFLAGS 767ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} 768ac_cv_env_CPPFLAGS_value=$CPPFLAGS 769ac_env_CXX_set=${CXX+set} 770ac_env_CXX_value=$CXX 771ac_cv_env_CXX_set=${CXX+set} 772ac_cv_env_CXX_value=$CXX 773ac_env_CXXFLAGS_set=${CXXFLAGS+set} 774ac_env_CXXFLAGS_value=$CXXFLAGS 775ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set} 776ac_cv_env_CXXFLAGS_value=$CXXFLAGS 777ac_env_CPP_set=${CPP+set} 778ac_env_CPP_value=$CPP 779ac_cv_env_CPP_set=${CPP+set} 780ac_cv_env_CPP_value=$CPP 781 782# 783# Report the --help message. 784# 785if test "$ac_init_help" = "long"; then 786 # Omit some internal or obsolete options to make the list less imposing. 787 # This message is too long to be a string in the A/UX 3.1 sh. 788 cat <<_ACEOF 789\`configure' configures this package to adapt to many kinds of systems. 790 791Usage: $0 [OPTION]... [VAR=VALUE]... 792 793To assign environment variables (e.g., CC, CFLAGS...), specify them as 794VAR=VALUE. See below for descriptions of some of the useful variables. 795 796Defaults for the options are specified in brackets. 797 798Configuration: 799 -h, --help display this help and exit 800 --help=short display options specific to this package 801 --help=recursive display the short help of all the included packages 802 -V, --version display version information and exit 803 -q, --quiet, --silent do not print \`checking...' messages 804 --cache-file=FILE cache test results in FILE [disabled] 805 -C, --config-cache alias for \`--cache-file=config.cache' 806 -n, --no-create do not create output files 807 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 808 809_ACEOF 810 811 cat <<_ACEOF 812Installation directories: 813 --prefix=PREFIX install architecture-independent files in PREFIX 814 [$ac_default_prefix] 815 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 816 [PREFIX] 817 818By default, \`make install' will install all the files in 819\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 820an installation prefix other than \`$ac_default_prefix' using \`--prefix', 821for instance \`--prefix=\$HOME'. 822 823For better control, use the options below. 824 825Fine tuning of the installation directories: 826 --bindir=DIR user executables [EPREFIX/bin] 827 --sbindir=DIR system admin executables [EPREFIX/sbin] 828 --libexecdir=DIR program executables [EPREFIX/libexec] 829 --datadir=DIR read-only architecture-independent data [PREFIX/share] 830 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 831 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 832 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 833 --libdir=DIR object code libraries [EPREFIX/lib] 834 --includedir=DIR C header files [PREFIX/include] 835 --oldincludedir=DIR C header files for non-gcc [/usr/include] 836 --infodir=DIR info documentation [PREFIX/info] 837 --mandir=DIR man documentation [PREFIX/man] 838_ACEOF 839 840 cat <<\_ACEOF 841 842System types: 843 --build=BUILD configure for building on BUILD [guessed] 844 --host=HOST cross-compile to build programs to run on HOST [BUILD] 845_ACEOF 846fi 847 848if test -n "$ac_init_help"; then 849 850 cat <<\_ACEOF 851 852Optional Features: 853 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 854 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 855 --enable-strict compile with strict compiler options default=no 856 --enable-64bit-libs build 64-bit libraries default=yes 857 --enable-shared build shared libraries default=yes 858 --enable-static build static libraries default=no 859 --enable-debug build debug libraries default=no 860 --enable-release build release libraries default=yes 861 --enable-draft enable draft APIs default=yes 862 --enable-renaming add a version suffix to symbols default=yes 863 --enable-tracing enable function and data tracing default=no 864 --enable-rpath use rpath when linking default is only if necessary 865 --enable-threads build ICU with thread safety default=yes 866 --enable-weak-threads weakly reference the threading library default=no 867 --enable-extras build ICU extras default=yes 868 --enable-icuio build ICU's icuio library default=yes 869 --enable-layout build ICU's layout library default=yes 870 --enable-tests build ICU tests default=yes 871 --enable-samples build ICU samples default=yes 872 873Additionally, the variable FORCE_LIBS may be set before calling configure. 874If set, it will REPLACE any automatic list of libraries. 875 876Optional Packages: 877 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 878 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 879 --with-iostream=version specify the version of iostream to use (none, old, std, auto) default=auto 880 --with-data-packaging=type specify how to package ICU data (files, archive, library, auto) default=auto 881 --with-library-suffix=suffix tag a suffix to the library names default= 882 883Some influential environment variables: 884 CC C compiler command 885 CFLAGS C compiler flags 886 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 887 nonstandard directory <lib dir> 888 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have 889 headers in a nonstandard directory <include dir> 890 CXX C++ compiler command 891 CXXFLAGS C++ compiler flags 892 CPP C preprocessor 893 894Use these variables to override the choices made by `configure' or to help 895it to find libraries and programs with nonstandard names/locations. 896 897_ACEOF 898fi 899 900if test "$ac_init_help" = "recursive"; then 901 # If there are subdirs, report their specific --help. 902 ac_popdir=`pwd` 903 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 904 test -d $ac_dir || continue 905 ac_builddir=. 906 907if test "$ac_dir" != .; then 908 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 909 # A "../" for each directory in $ac_dir_suffix. 910 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 911else 912 ac_dir_suffix= ac_top_builddir= 913fi 914 915case $srcdir in 916 .) # No --srcdir option. We are building in place. 917 ac_srcdir=. 918 if test -z "$ac_top_builddir"; then 919 ac_top_srcdir=. 920 else 921 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 922 fi ;; 923 [\\/]* | ?:[\\/]* ) # Absolute path. 924 ac_srcdir=$srcdir$ac_dir_suffix; 925 ac_top_srcdir=$srcdir ;; 926 *) # Relative path. 927 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 928 ac_top_srcdir=$ac_top_builddir$srcdir ;; 929esac 930 931# Do not use `cd foo && pwd` to compute absolute paths, because 932# the directories may not exist. 933case `pwd` in 934.) ac_abs_builddir="$ac_dir";; 935*) 936 case "$ac_dir" in 937 .) ac_abs_builddir=`pwd`;; 938 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 939 *) ac_abs_builddir=`pwd`/"$ac_dir";; 940 esac;; 941esac 942case $ac_abs_builddir in 943.) ac_abs_top_builddir=${ac_top_builddir}.;; 944*) 945 case ${ac_top_builddir}. in 946 .) ac_abs_top_builddir=$ac_abs_builddir;; 947 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 948 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 949 esac;; 950esac 951case $ac_abs_builddir in 952.) ac_abs_srcdir=$ac_srcdir;; 953*) 954 case $ac_srcdir in 955 .) ac_abs_srcdir=$ac_abs_builddir;; 956 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 957 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 958 esac;; 959esac 960case $ac_abs_builddir in 961.) ac_abs_top_srcdir=$ac_top_srcdir;; 962*) 963 case $ac_top_srcdir in 964 .) ac_abs_top_srcdir=$ac_abs_builddir;; 965 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 966 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 967 esac;; 968esac 969 970 cd $ac_dir 971 # Check for guested configure; otherwise get Cygnus style configure. 972 if test -f $ac_srcdir/configure.gnu; then 973 echo 974 $SHELL $ac_srcdir/configure.gnu --help=recursive 975 elif test -f $ac_srcdir/configure; then 976 echo 977 $SHELL $ac_srcdir/configure --help=recursive 978 elif test -f $ac_srcdir/configure.ac || 979 test -f $ac_srcdir/configure.in; then 980 echo 981 $ac_configure --help 982 else 983 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 984 fi 985 cd $ac_popdir 986 done 987fi 988 989test -n "$ac_init_help" && exit 0 990if $ac_init_version; then 991 cat <<\_ACEOF 992 993Copyright (C) 2003 Free Software Foundation, Inc. 994This configure script is free software; the Free Software Foundation 995gives unlimited permission to copy, distribute and modify it. 996_ACEOF 997 exit 0 998fi 999exec 5>config.log 1000cat >&5 <<_ACEOF 1001This file contains any messages produced by compilers while 1002running configure, to aid debugging if configure makes a mistake. 1003 1004It was created by $as_me, which was 1005generated by GNU Autoconf 2.59. Invocation command line was 1006 1007 $ $0 $@ 1008 1009_ACEOF 1010{ 1011cat <<_ASUNAME 1012## --------- ## 1013## Platform. ## 1014## --------- ## 1015 1016hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1017uname -m = `(uname -m) 2>/dev/null || echo unknown` 1018uname -r = `(uname -r) 2>/dev/null || echo unknown` 1019uname -s = `(uname -s) 2>/dev/null || echo unknown` 1020uname -v = `(uname -v) 2>/dev/null || echo unknown` 1021 1022/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1023/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1024 1025/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1026/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1027/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1028hostinfo = `(hostinfo) 2>/dev/null || echo unknown` 1029/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1030/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1031/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1032 1033_ASUNAME 1034 1035as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1036for as_dir in $PATH 1037do 1038 IFS=$as_save_IFS 1039 test -z "$as_dir" && as_dir=. 1040 echo "PATH: $as_dir" 1041done 1042 1043} >&5 1044 1045cat >&5 <<_ACEOF 1046 1047 1048## ----------- ## 1049## Core tests. ## 1050## ----------- ## 1051 1052_ACEOF 1053 1054 1055# Keep a trace of the command line. 1056# Strip out --no-create and --no-recursion so they do not pile up. 1057# Strip out --silent because we don't want to record it for future runs. 1058# Also quote any args containing shell meta-characters. 1059# Make two passes to allow for proper duplicate-argument suppression. 1060ac_configure_args= 1061ac_configure_args0= 1062ac_configure_args1= 1063ac_sep= 1064ac_must_keep_next=false 1065for ac_pass in 1 2 1066do 1067 for ac_arg 1068 do 1069 case $ac_arg in 1070 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1071 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1072 | -silent | --silent | --silen | --sile | --sil) 1073 continue ;; 1074 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1075 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1076 esac 1077 case $ac_pass in 1078 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1079 2) 1080 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1081 if test $ac_must_keep_next = true; then 1082 ac_must_keep_next=false # Got value, back to normal. 1083 else 1084 case $ac_arg in 1085 *=* | --config-cache | -C | -disable-* | --disable-* \ 1086 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1087 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1088 | -with-* | --with-* | -without-* | --without-* | --x) 1089 case "$ac_configure_args0 " in 1090 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1091 esac 1092 ;; 1093 -* ) ac_must_keep_next=true ;; 1094 esac 1095 fi 1096 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" 1097 # Get rid of the leading space. 1098 ac_sep=" " 1099 ;; 1100 esac 1101 done 1102done 1103$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1104$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1105 1106# When interrupted or exit'd, cleanup temporary files, and complete 1107# config.log. We remove comments because anyway the quotes in there 1108# would cause problems or look ugly. 1109# WARNING: Be sure not to use single quotes in there, as some shells, 1110# such as our DU 5.0 friend, will then `close' the trap. 1111trap 'exit_status=$? 1112 # Save into config.log some information that might help in debugging. 1113 { 1114 echo 1115 1116 cat <<\_ASBOX 1117## ---------------- ## 1118## Cache variables. ## 1119## ---------------- ## 1120_ASBOX 1121 echo 1122 # The following way of writing the cache mishandles newlines in values, 1123{ 1124 (set) 2>&1 | 1125 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in 1126 *ac_space=\ *) 1127 sed -n \ 1128 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; 1129 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" 1130 ;; 1131 *) 1132 sed -n \ 1133 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 1134 ;; 1135 esac; 1136} 1137 echo 1138 1139 cat <<\_ASBOX 1140## ----------------- ## 1141## Output variables. ## 1142## ----------------- ## 1143_ASBOX 1144 echo 1145 for ac_var in $ac_subst_vars 1146 do 1147 eval ac_val=$`echo $ac_var` 1148 echo "$ac_var='"'"'$ac_val'"'"'" 1149 done | sort 1150 echo 1151 1152 if test -n "$ac_subst_files"; then 1153 cat <<\_ASBOX 1154## ------------- ## 1155## Output files. ## 1156## ------------- ## 1157_ASBOX 1158 echo 1159 for ac_var in $ac_subst_files 1160 do 1161 eval ac_val=$`echo $ac_var` 1162 echo "$ac_var='"'"'$ac_val'"'"'" 1163 done | sort 1164 echo 1165 fi 1166 1167 if test -s confdefs.h; then 1168 cat <<\_ASBOX 1169## ----------- ## 1170## confdefs.h. ## 1171## ----------- ## 1172_ASBOX 1173 echo 1174 sed "/^$/d" confdefs.h | sort 1175 echo 1176 fi 1177 test "$ac_signal" != 0 && 1178 echo "$as_me: caught signal $ac_signal" 1179 echo "$as_me: exit $exit_status" 1180 } >&5 1181 rm -f core *.core && 1182 rm -rf conftest* confdefs* conf$$* $ac_clean_files && 1183 exit $exit_status 1184 ' 0 1185for ac_signal in 1 2 13 15; do 1186 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1187done 1188ac_signal=0 1189 1190# confdefs.h avoids OS command line length limits that DEFS can exceed. 1191rm -rf conftest* confdefs.h 1192# AIX cpp loses on an empty file, so make sure it contains at least a newline. 1193echo >confdefs.h 1194 1195# Predefined preprocessor variables. 1196 1197cat >>confdefs.h <<_ACEOF 1198#define PACKAGE_NAME "$PACKAGE_NAME" 1199_ACEOF 1200 1201 1202cat >>confdefs.h <<_ACEOF 1203#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1204_ACEOF 1205 1206 1207cat >>confdefs.h <<_ACEOF 1208#define PACKAGE_VERSION "$PACKAGE_VERSION" 1209_ACEOF 1210 1211 1212cat >>confdefs.h <<_ACEOF 1213#define PACKAGE_STRING "$PACKAGE_STRING" 1214_ACEOF 1215 1216 1217cat >>confdefs.h <<_ACEOF 1218#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1219_ACEOF 1220 1221 1222# Let the site file select an alternate cache file if it wants to. 1223# Prefer explicitly selected file to automatically selected ones. 1224if test -z "$CONFIG_SITE"; then 1225 if test "x$prefix" != xNONE; then 1226 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" 1227 else 1228 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 1229 fi 1230fi 1231for ac_site_file in $CONFIG_SITE; do 1232 if test -r "$ac_site_file"; then 1233 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1234echo "$as_me: loading site script $ac_site_file" >&6;} 1235 sed 's/^/| /' "$ac_site_file" >&5 1236 . "$ac_site_file" 1237 fi 1238done 1239 1240if test -r "$cache_file"; then 1241 # Some versions of bash will fail to source /dev/null (special 1242 # files actually), so we avoid doing that. 1243 if test -f "$cache_file"; then 1244 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1245echo "$as_me: loading cache $cache_file" >&6;} 1246 case $cache_file in 1247 [\\/]* | ?:[\\/]* ) . $cache_file;; 1248 *) . ./$cache_file;; 1249 esac 1250 fi 1251else 1252 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1253echo "$as_me: creating cache $cache_file" >&6;} 1254 >$cache_file 1255fi 1256 1257# Check that the precious variables saved in the cache have kept the same 1258# value. 1259ac_cache_corrupted=false 1260for ac_var in `(set) 2>&1 | 1261 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do 1262 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1263 eval ac_new_set=\$ac_env_${ac_var}_set 1264 eval ac_old_val="\$ac_cv_env_${ac_var}_value" 1265 eval ac_new_val="\$ac_env_${ac_var}_value" 1266 case $ac_old_set,$ac_new_set in 1267 set,) 1268 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1269echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1270 ac_cache_corrupted=: ;; 1271 ,set) 1272 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1273echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1274 ac_cache_corrupted=: ;; 1275 ,);; 1276 *) 1277 if test "x$ac_old_val" != "x$ac_new_val"; then 1278 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1279echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1280 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1281echo "$as_me: former value: $ac_old_val" >&2;} 1282 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1283echo "$as_me: current value: $ac_new_val" >&2;} 1284 ac_cache_corrupted=: 1285 fi;; 1286 esac 1287 # Pass precious variables to config.status. 1288 if test "$ac_new_set" = set; then 1289 case $ac_new_val in 1290 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1291 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1292 *) ac_arg=$ac_var=$ac_new_val ;; 1293 esac 1294 case " $ac_configure_args " in 1295 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1296 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1297 esac 1298 fi 1299done 1300if $ac_cache_corrupted; then 1301 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1302echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1303 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1304echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1305 { (exit 1); exit 1; }; } 1306fi 1307 1308ac_ext=c 1309ac_cpp='$CPP $CPPFLAGS' 1310ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1311ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1312ac_compiler_gnu=$ac_cv_c_compiler_gnu 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 ac_config_headers="$ac_config_headers common/icucfg.h" 1334 1335PACKAGE="icu" 1336 1337 1338echo "$as_me:$LINENO: checking for ICU version numbers" >&5 1339echo $ECHO_N "checking for ICU version numbers... $ECHO_C" >&6 1340 1341geticuversion() { 1342 sed -n 's/^[ ]*#[ ]*define[ ]*U_ICU_VERSION[ ]*"\([^"]*\)".*/\1/p' "$@" 1343} 1344VERSION=`geticuversion $srcdir/common/unicode/uversion.h` 1345if test x"$VERSION" = x; then 1346 VERSION=`geticuversion $srcdir/common/unicode/*.h` 1347 if test x"$VERSION" = x; then 1348 { { echo "$as_me:$LINENO: error: Cannot determine ICU version number from header files" >&5 1349echo "$as_me: error: Cannot determine ICU version number from header files" >&2;} 1350 { (exit 1); exit 1; }; } 1351 fi 1352fi 1353LIB_VERSION=`echo $VERSION | sed -e 's/\.//' -e 's/^\([^.]*\)$/\1.0/'` 1354LIB_VERSION_MAJOR=`echo $LIB_VERSION | sed 's/\..*//'` 1355 1356 1357 1358echo "$as_me:$LINENO: result: release $VERSION, library $LIB_VERSION" >&5 1359echo "${ECHO_T}release $VERSION, library $LIB_VERSION" >&6 1360 1361UNICODE_VERSION="5.0" 1362 1363 1364ac_aux_dir= 1365for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do 1366 if test -f $ac_dir/install-sh; then 1367 ac_aux_dir=$ac_dir 1368 ac_install_sh="$ac_aux_dir/install-sh -c" 1369 break 1370 elif test -f $ac_dir/install.sh; then 1371 ac_aux_dir=$ac_dir 1372 ac_install_sh="$ac_aux_dir/install.sh -c" 1373 break 1374 elif test -f $ac_dir/shtool; then 1375 ac_aux_dir=$ac_dir 1376 ac_install_sh="$ac_aux_dir/shtool install -c" 1377 break 1378 fi 1379done 1380if test -z "$ac_aux_dir"; then 1381 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 1382echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} 1383 { (exit 1); exit 1; }; } 1384fi 1385ac_config_guess="$SHELL $ac_aux_dir/config.guess" 1386ac_config_sub="$SHELL $ac_aux_dir/config.sub" 1387ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. 1388 1389# Make sure we can run config.sub. 1390$ac_config_sub sun4 >/dev/null 2>&1 || 1391 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 1392echo "$as_me: error: cannot run $ac_config_sub" >&2;} 1393 { (exit 1); exit 1; }; } 1394 1395echo "$as_me:$LINENO: checking build system type" >&5 1396echo $ECHO_N "checking build system type... $ECHO_C" >&6 1397if test "${ac_cv_build+set}" = set; then 1398 echo $ECHO_N "(cached) $ECHO_C" >&6 1399else 1400 ac_cv_build_alias=$build_alias 1401test -z "$ac_cv_build_alias" && 1402 ac_cv_build_alias=`$ac_config_guess` 1403test -z "$ac_cv_build_alias" && 1404 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 1405echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 1406 { (exit 1); exit 1; }; } 1407ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || 1408 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 1409echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} 1410 { (exit 1); exit 1; }; } 1411 1412fi 1413echo "$as_me:$LINENO: result: $ac_cv_build" >&5 1414echo "${ECHO_T}$ac_cv_build" >&6 1415build=$ac_cv_build 1416build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 1417build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 1418build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 1419 1420 1421echo "$as_me:$LINENO: checking host system type" >&5 1422echo $ECHO_N "checking host system type... $ECHO_C" >&6 1423if test "${ac_cv_host+set}" = set; then 1424 echo $ECHO_N "(cached) $ECHO_C" >&6 1425else 1426 ac_cv_host_alias=$host_alias 1427test -z "$ac_cv_host_alias" && 1428 ac_cv_host_alias=$ac_cv_build_alias 1429ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || 1430 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 1431echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} 1432 { (exit 1); exit 1; }; } 1433 1434fi 1435echo "$as_me:$LINENO: result: $ac_cv_host" >&5 1436echo "${ECHO_T}$ac_cv_host" >&6 1437host=$ac_cv_host 1438host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 1439host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 1440host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 1441 1442 1443 1444 1445 1446_CXX_CXXSUFFIX=cc 1447export _CXX_CXXSUFFIX 1448ac_ext=c 1449ac_cpp='$CPP $CPPFLAGS' 1450ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1451ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1452ac_compiler_gnu=$ac_cv_c_compiler_gnu 1453if test -n "$ac_tool_prefix"; then 1454 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 1455set dummy ${ac_tool_prefix}gcc; ac_word=$2 1456echo "$as_me:$LINENO: checking for $ac_word" >&5 1457echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1458if test "${ac_cv_prog_CC+set}" = set; then 1459 echo $ECHO_N "(cached) $ECHO_C" >&6 1460else 1461 if test -n "$CC"; then 1462 ac_cv_prog_CC="$CC" # Let the user override the test. 1463else 1464as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1465for as_dir in $PATH 1466do 1467 IFS=$as_save_IFS 1468 test -z "$as_dir" && as_dir=. 1469 for ac_exec_ext in '' $ac_executable_extensions; do 1470 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1471 ac_cv_prog_CC="${ac_tool_prefix}gcc" 1472 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1473 break 2 1474 fi 1475done 1476done 1477 1478fi 1479fi 1480CC=$ac_cv_prog_CC 1481if test -n "$CC"; then 1482 echo "$as_me:$LINENO: result: $CC" >&5 1483echo "${ECHO_T}$CC" >&6 1484else 1485 echo "$as_me:$LINENO: result: no" >&5 1486echo "${ECHO_T}no" >&6 1487fi 1488 1489fi 1490if test -z "$ac_cv_prog_CC"; then 1491 ac_ct_CC=$CC 1492 # Extract the first word of "gcc", so it can be a program name with args. 1493set dummy gcc; ac_word=$2 1494echo "$as_me:$LINENO: checking for $ac_word" >&5 1495echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1496if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1497 echo $ECHO_N "(cached) $ECHO_C" >&6 1498else 1499 if test -n "$ac_ct_CC"; then 1500 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1501else 1502as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1503for as_dir in $PATH 1504do 1505 IFS=$as_save_IFS 1506 test -z "$as_dir" && as_dir=. 1507 for ac_exec_ext in '' $ac_executable_extensions; do 1508 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1509 ac_cv_prog_ac_ct_CC="gcc" 1510 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1511 break 2 1512 fi 1513done 1514done 1515 1516fi 1517fi 1518ac_ct_CC=$ac_cv_prog_ac_ct_CC 1519if test -n "$ac_ct_CC"; then 1520 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1521echo "${ECHO_T}$ac_ct_CC" >&6 1522else 1523 echo "$as_me:$LINENO: result: no" >&5 1524echo "${ECHO_T}no" >&6 1525fi 1526 1527 CC=$ac_ct_CC 1528else 1529 CC="$ac_cv_prog_CC" 1530fi 1531 1532if test -z "$CC"; then 1533 if test -n "$ac_tool_prefix"; then 1534 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 1535set dummy ${ac_tool_prefix}cc; ac_word=$2 1536echo "$as_me:$LINENO: checking for $ac_word" >&5 1537echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1538if test "${ac_cv_prog_CC+set}" = set; then 1539 echo $ECHO_N "(cached) $ECHO_C" >&6 1540else 1541 if test -n "$CC"; then 1542 ac_cv_prog_CC="$CC" # Let the user override the test. 1543else 1544as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1545for as_dir in $PATH 1546do 1547 IFS=$as_save_IFS 1548 test -z "$as_dir" && as_dir=. 1549 for ac_exec_ext in '' $ac_executable_extensions; do 1550 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1551 ac_cv_prog_CC="${ac_tool_prefix}cc" 1552 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1553 break 2 1554 fi 1555done 1556done 1557 1558fi 1559fi 1560CC=$ac_cv_prog_CC 1561if test -n "$CC"; then 1562 echo "$as_me:$LINENO: result: $CC" >&5 1563echo "${ECHO_T}$CC" >&6 1564else 1565 echo "$as_me:$LINENO: result: no" >&5 1566echo "${ECHO_T}no" >&6 1567fi 1568 1569fi 1570if test -z "$ac_cv_prog_CC"; then 1571 ac_ct_CC=$CC 1572 # Extract the first word of "cc", so it can be a program name with args. 1573set dummy cc; ac_word=$2 1574echo "$as_me:$LINENO: checking for $ac_word" >&5 1575echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1576if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1577 echo $ECHO_N "(cached) $ECHO_C" >&6 1578else 1579 if test -n "$ac_ct_CC"; then 1580 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1581else 1582as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1583for as_dir in $PATH 1584do 1585 IFS=$as_save_IFS 1586 test -z "$as_dir" && as_dir=. 1587 for ac_exec_ext in '' $ac_executable_extensions; do 1588 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1589 ac_cv_prog_ac_ct_CC="cc" 1590 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1591 break 2 1592 fi 1593done 1594done 1595 1596fi 1597fi 1598ac_ct_CC=$ac_cv_prog_ac_ct_CC 1599if test -n "$ac_ct_CC"; then 1600 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1601echo "${ECHO_T}$ac_ct_CC" >&6 1602else 1603 echo "$as_me:$LINENO: result: no" >&5 1604echo "${ECHO_T}no" >&6 1605fi 1606 1607 CC=$ac_ct_CC 1608else 1609 CC="$ac_cv_prog_CC" 1610fi 1611 1612fi 1613if test -z "$CC"; then 1614 # Extract the first word of "cc", so it can be a program name with args. 1615set dummy cc; ac_word=$2 1616echo "$as_me:$LINENO: checking for $ac_word" >&5 1617echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1618if test "${ac_cv_prog_CC+set}" = set; then 1619 echo $ECHO_N "(cached) $ECHO_C" >&6 1620else 1621 if test -n "$CC"; then 1622 ac_cv_prog_CC="$CC" # Let the user override the test. 1623else 1624 ac_prog_rejected=no 1625as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1626for as_dir in $PATH 1627do 1628 IFS=$as_save_IFS 1629 test -z "$as_dir" && as_dir=. 1630 for ac_exec_ext in '' $ac_executable_extensions; do 1631 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1632 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 1633 ac_prog_rejected=yes 1634 continue 1635 fi 1636 ac_cv_prog_CC="cc" 1637 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1638 break 2 1639 fi 1640done 1641done 1642 1643if test $ac_prog_rejected = yes; then 1644 # We found a bogon in the path, so make sure we never use it. 1645 set dummy $ac_cv_prog_CC 1646 shift 1647 if test $# != 0; then 1648 # We chose a different compiler from the bogus one. 1649 # However, it has the same basename, so the bogon will be chosen 1650 # first if we set CC to just the basename; use the full file name. 1651 shift 1652 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 1653 fi 1654fi 1655fi 1656fi 1657CC=$ac_cv_prog_CC 1658if test -n "$CC"; then 1659 echo "$as_me:$LINENO: result: $CC" >&5 1660echo "${ECHO_T}$CC" >&6 1661else 1662 echo "$as_me:$LINENO: result: no" >&5 1663echo "${ECHO_T}no" >&6 1664fi 1665 1666fi 1667if test -z "$CC"; then 1668 if test -n "$ac_tool_prefix"; then 1669 for ac_prog in cl 1670 do 1671 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 1672set dummy $ac_tool_prefix$ac_prog; ac_word=$2 1673echo "$as_me:$LINENO: checking for $ac_word" >&5 1674echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1675if test "${ac_cv_prog_CC+set}" = set; then 1676 echo $ECHO_N "(cached) $ECHO_C" >&6 1677else 1678 if test -n "$CC"; then 1679 ac_cv_prog_CC="$CC" # Let the user override the test. 1680else 1681as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1682for as_dir in $PATH 1683do 1684 IFS=$as_save_IFS 1685 test -z "$as_dir" && as_dir=. 1686 for ac_exec_ext in '' $ac_executable_extensions; do 1687 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1688 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 1689 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1690 break 2 1691 fi 1692done 1693done 1694 1695fi 1696fi 1697CC=$ac_cv_prog_CC 1698if test -n "$CC"; then 1699 echo "$as_me:$LINENO: result: $CC" >&5 1700echo "${ECHO_T}$CC" >&6 1701else 1702 echo "$as_me:$LINENO: result: no" >&5 1703echo "${ECHO_T}no" >&6 1704fi 1705 1706 test -n "$CC" && break 1707 done 1708fi 1709if test -z "$CC"; then 1710 ac_ct_CC=$CC 1711 for ac_prog in cl 1712do 1713 # Extract the first word of "$ac_prog", so it can be a program name with args. 1714set dummy $ac_prog; ac_word=$2 1715echo "$as_me:$LINENO: checking for $ac_word" >&5 1716echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1717if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1718 echo $ECHO_N "(cached) $ECHO_C" >&6 1719else 1720 if test -n "$ac_ct_CC"; then 1721 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1722else 1723as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1724for as_dir in $PATH 1725do 1726 IFS=$as_save_IFS 1727 test -z "$as_dir" && as_dir=. 1728 for ac_exec_ext in '' $ac_executable_extensions; do 1729 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1730 ac_cv_prog_ac_ct_CC="$ac_prog" 1731 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1732 break 2 1733 fi 1734done 1735done 1736 1737fi 1738fi 1739ac_ct_CC=$ac_cv_prog_ac_ct_CC 1740if test -n "$ac_ct_CC"; then 1741 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1742echo "${ECHO_T}$ac_ct_CC" >&6 1743else 1744 echo "$as_me:$LINENO: result: no" >&5 1745echo "${ECHO_T}no" >&6 1746fi 1747 1748 test -n "$ac_ct_CC" && break 1749done 1750 1751 CC=$ac_ct_CC 1752fi 1753 1754fi 1755 1756 1757test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 1758See \`config.log' for more details." >&5 1759echo "$as_me: error: no acceptable C compiler found in \$PATH 1760See \`config.log' for more details." >&2;} 1761 { (exit 1); exit 1; }; } 1762 1763# Provide some information about the compiler. 1764echo "$as_me:$LINENO:" \ 1765 "checking for C compiler version" >&5 1766ac_compiler=`set X $ac_compile; echo $2` 1767{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 1768 (eval $ac_compiler --version </dev/null >&5) 2>&5 1769 ac_status=$? 1770 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1771 (exit $ac_status); } 1772{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 1773 (eval $ac_compiler -v </dev/null >&5) 2>&5 1774 ac_status=$? 1775 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1776 (exit $ac_status); } 1777{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 1778 (eval $ac_compiler -V </dev/null >&5) 2>&5 1779 ac_status=$? 1780 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1781 (exit $ac_status); } 1782 1783cat >conftest.$ac_ext <<_ACEOF 1784/* confdefs.h. */ 1785_ACEOF 1786cat confdefs.h >>conftest.$ac_ext 1787cat >>conftest.$ac_ext <<_ACEOF 1788/* end confdefs.h. */ 1789 1790int 1791main () 1792{ 1793 1794 ; 1795 return 0; 1796} 1797_ACEOF 1798ac_clean_files_save=$ac_clean_files 1799ac_clean_files="$ac_clean_files a.out a.exe b.out" 1800# Try to create an executable without -o first, disregard a.out. 1801# It will help us diagnose broken compilers, and finding out an intuition 1802# of exeext. 1803echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 1804echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 1805ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 1806if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 1807 (eval $ac_link_default) 2>&5 1808 ac_status=$? 1809 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1810 (exit $ac_status); }; then 1811 # Find the output, starting from the most likely. This scheme is 1812# not robust to junk in `.', hence go to wildcards (a.*) only as a last 1813# resort. 1814 1815# Be careful to initialize this variable, since it used to be cached. 1816# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. 1817ac_cv_exeext= 1818# b.out is created by i960 compilers. 1819for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out 1820do 1821 test -f "$ac_file" || continue 1822 case $ac_file in 1823 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) 1824 ;; 1825 conftest.$ac_ext ) 1826 # This is the source file. 1827 ;; 1828 [ab].out ) 1829 # We found the default executable, but exeext='' is most 1830 # certainly right. 1831 break;; 1832 *.* ) 1833 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 1834 # FIXME: I believe we export ac_cv_exeext for Libtool, 1835 # but it would be cool to find out if it's true. Does anybody 1836 # maintain Libtool? --akim. 1837 export ac_cv_exeext 1838 break;; 1839 * ) 1840 break;; 1841 esac 1842done 1843else 1844 echo "$as_me: failed program was:" >&5 1845sed 's/^/| /' conftest.$ac_ext >&5 1846 1847{ { echo "$as_me:$LINENO: error: C compiler cannot create executables 1848See \`config.log' for more details." >&5 1849echo "$as_me: error: C compiler cannot create executables 1850See \`config.log' for more details." >&2;} 1851 { (exit 77); exit 77; }; } 1852fi 1853 1854ac_exeext=$ac_cv_exeext 1855echo "$as_me:$LINENO: result: $ac_file" >&5 1856echo "${ECHO_T}$ac_file" >&6 1857 1858# Check the compiler produces executables we can run. If not, either 1859# the compiler is broken, or we cross compile. 1860echo "$as_me:$LINENO: checking whether the C compiler works" >&5 1861echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 1862# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 1863# If not cross compiling, check that we can run a simple program. 1864if test "$cross_compiling" != yes; then 1865 if { ac_try='./$ac_file' 1866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 1867 (eval $ac_try) 2>&5 1868 ac_status=$? 1869 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1870 (exit $ac_status); }; }; then 1871 cross_compiling=no 1872 else 1873 if test "$cross_compiling" = maybe; then 1874 cross_compiling=yes 1875 else 1876 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 1877If you meant to cross compile, use \`--host'. 1878See \`config.log' for more details." >&5 1879echo "$as_me: error: cannot run C compiled programs. 1880If you meant to cross compile, use \`--host'. 1881See \`config.log' for more details." >&2;} 1882 { (exit 1); exit 1; }; } 1883 fi 1884 fi 1885fi 1886echo "$as_me:$LINENO: result: yes" >&5 1887echo "${ECHO_T}yes" >&6 1888 1889rm -f a.out a.exe conftest$ac_cv_exeext b.out 1890ac_clean_files=$ac_clean_files_save 1891# Check the compiler produces executables we can run. If not, either 1892# the compiler is broken, or we cross compile. 1893echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 1894echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 1895echo "$as_me:$LINENO: result: $cross_compiling" >&5 1896echo "${ECHO_T}$cross_compiling" >&6 1897 1898echo "$as_me:$LINENO: checking for suffix of executables" >&5 1899echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 1900if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 1901 (eval $ac_link) 2>&5 1902 ac_status=$? 1903 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1904 (exit $ac_status); }; then 1905 # If both `conftest.exe' and `conftest' are `present' (well, observable) 1906# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 1907# work properly (i.e., refer to `conftest.exe'), while it won't with 1908# `rm'. 1909for ac_file in conftest.exe conftest conftest.*; do 1910 test -f "$ac_file" || continue 1911 case $ac_file in 1912 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; 1913 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 1914 export ac_cv_exeext 1915 break;; 1916 * ) break;; 1917 esac 1918done 1919else 1920 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 1921See \`config.log' for more details." >&5 1922echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 1923See \`config.log' for more details." >&2;} 1924 { (exit 1); exit 1; }; } 1925fi 1926 1927rm -f conftest$ac_cv_exeext 1928echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 1929echo "${ECHO_T}$ac_cv_exeext" >&6 1930 1931rm -f conftest.$ac_ext 1932EXEEXT=$ac_cv_exeext 1933ac_exeext=$EXEEXT 1934echo "$as_me:$LINENO: checking for suffix of object files" >&5 1935echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 1936if test "${ac_cv_objext+set}" = set; then 1937 echo $ECHO_N "(cached) $ECHO_C" >&6 1938else 1939 cat >conftest.$ac_ext <<_ACEOF 1940/* confdefs.h. */ 1941_ACEOF 1942cat confdefs.h >>conftest.$ac_ext 1943cat >>conftest.$ac_ext <<_ACEOF 1944/* end confdefs.h. */ 1945 1946int 1947main () 1948{ 1949 1950 ; 1951 return 0; 1952} 1953_ACEOF 1954rm -f conftest.o conftest.obj 1955if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 1956 (eval $ac_compile) 2>&5 1957 ac_status=$? 1958 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1959 (exit $ac_status); }; then 1960 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do 1961 case $ac_file in 1962 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; 1963 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 1964 break;; 1965 esac 1966done 1967else 1968 echo "$as_me: failed program was:" >&5 1969sed 's/^/| /' conftest.$ac_ext >&5 1970 1971{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 1972See \`config.log' for more details." >&5 1973echo "$as_me: error: cannot compute suffix of object files: cannot compile 1974See \`config.log' for more details." >&2;} 1975 { (exit 1); exit 1; }; } 1976fi 1977 1978rm -f conftest.$ac_cv_objext conftest.$ac_ext 1979fi 1980echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 1981echo "${ECHO_T}$ac_cv_objext" >&6 1982OBJEXT=$ac_cv_objext 1983ac_objext=$OBJEXT 1984echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 1985echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 1986if test "${ac_cv_c_compiler_gnu+set}" = set; then 1987 echo $ECHO_N "(cached) $ECHO_C" >&6 1988else 1989 cat >conftest.$ac_ext <<_ACEOF 1990/* confdefs.h. */ 1991_ACEOF 1992cat confdefs.h >>conftest.$ac_ext 1993cat >>conftest.$ac_ext <<_ACEOF 1994/* end confdefs.h. */ 1995 1996int 1997main () 1998{ 1999#ifndef __GNUC__ 2000 choke me 2001#endif 2002 2003 ; 2004 return 0; 2005} 2006_ACEOF 2007rm -f conftest.$ac_objext 2008if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2009 (eval $ac_compile) 2>conftest.er1 2010 ac_status=$? 2011 grep -v '^ *+' conftest.er1 >conftest.err 2012 rm -f conftest.er1 2013 cat conftest.err >&5 2014 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2015 (exit $ac_status); } && 2016 { ac_try='test -z "$ac_c_werror_flag" 2017 || test ! -s conftest.err' 2018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2019 (eval $ac_try) 2>&5 2020 ac_status=$? 2021 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2022 (exit $ac_status); }; } && 2023 { ac_try='test -s conftest.$ac_objext' 2024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2025 (eval $ac_try) 2>&5 2026 ac_status=$? 2027 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2028 (exit $ac_status); }; }; then 2029 ac_compiler_gnu=yes 2030else 2031 echo "$as_me: failed program was:" >&5 2032sed 's/^/| /' conftest.$ac_ext >&5 2033 2034ac_compiler_gnu=no 2035fi 2036rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2037ac_cv_c_compiler_gnu=$ac_compiler_gnu 2038 2039fi 2040echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 2041echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 2042GCC=`test $ac_compiler_gnu = yes && echo yes` 2043ac_test_CFLAGS=${CFLAGS+set} 2044ac_save_CFLAGS=$CFLAGS 2045CFLAGS="-g" 2046echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 2047echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 2048if test "${ac_cv_prog_cc_g+set}" = set; then 2049 echo $ECHO_N "(cached) $ECHO_C" >&6 2050else 2051 cat >conftest.$ac_ext <<_ACEOF 2052/* confdefs.h. */ 2053_ACEOF 2054cat confdefs.h >>conftest.$ac_ext 2055cat >>conftest.$ac_ext <<_ACEOF 2056/* end confdefs.h. */ 2057 2058int 2059main () 2060{ 2061 2062 ; 2063 return 0; 2064} 2065_ACEOF 2066rm -f conftest.$ac_objext 2067if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2068 (eval $ac_compile) 2>conftest.er1 2069 ac_status=$? 2070 grep -v '^ *+' conftest.er1 >conftest.err 2071 rm -f conftest.er1 2072 cat conftest.err >&5 2073 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2074 (exit $ac_status); } && 2075 { ac_try='test -z "$ac_c_werror_flag" 2076 || test ! -s conftest.err' 2077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2078 (eval $ac_try) 2>&5 2079 ac_status=$? 2080 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2081 (exit $ac_status); }; } && 2082 { ac_try='test -s conftest.$ac_objext' 2083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2084 (eval $ac_try) 2>&5 2085 ac_status=$? 2086 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2087 (exit $ac_status); }; }; then 2088 ac_cv_prog_cc_g=yes 2089else 2090 echo "$as_me: failed program was:" >&5 2091sed 's/^/| /' conftest.$ac_ext >&5 2092 2093ac_cv_prog_cc_g=no 2094fi 2095rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2096fi 2097echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 2098echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 2099if test "$ac_test_CFLAGS" = set; then 2100 CFLAGS=$ac_save_CFLAGS 2101elif test $ac_cv_prog_cc_g = yes; then 2102 if test "$GCC" = yes; then 2103 CFLAGS="-g -O2" 2104 else 2105 CFLAGS="-g" 2106 fi 2107else 2108 if test "$GCC" = yes; then 2109 CFLAGS="-O2" 2110 else 2111 CFLAGS= 2112 fi 2113fi 2114echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 2115echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 2116if test "${ac_cv_prog_cc_stdc+set}" = set; then 2117 echo $ECHO_N "(cached) $ECHO_C" >&6 2118else 2119 ac_cv_prog_cc_stdc=no 2120ac_save_CC=$CC 2121cat >conftest.$ac_ext <<_ACEOF 2122/* confdefs.h. */ 2123_ACEOF 2124cat confdefs.h >>conftest.$ac_ext 2125cat >>conftest.$ac_ext <<_ACEOF 2126/* end confdefs.h. */ 2127#include <stdarg.h> 2128#include <stdio.h> 2129#include <sys/types.h> 2130#include <sys/stat.h> 2131/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 2132struct buf { int x; }; 2133FILE * (*rcsopen) (struct buf *, struct stat *, int); 2134static char *e (p, i) 2135 char **p; 2136 int i; 2137{ 2138 return p[i]; 2139} 2140static char *f (char * (*g) (char **, int), char **p, ...) 2141{ 2142 char *s; 2143 va_list v; 2144 va_start (v,p); 2145 s = g (p, va_arg (v,int)); 2146 va_end (v); 2147 return s; 2148} 2149 2150/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2151 function prototypes and stuff, but not '\xHH' hex character constants. 2152 These don't provoke an error unfortunately, instead are silently treated 2153 as 'x'. The following induces an error, until -std1 is added to get 2154 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 2155 array size at least. It's necessary to write '\x00'==0 to get something 2156 that's true only with -std1. */ 2157int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 2158 2159int test (int i, double x); 2160struct s1 {int (*f) (int a);}; 2161struct s2 {int (*f) (double a);}; 2162int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 2163int argc; 2164char **argv; 2165int 2166main () 2167{ 2168return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 2169 ; 2170 return 0; 2171} 2172_ACEOF 2173# Don't try gcc -ansi; that turns off useful extensions and 2174# breaks some systems' header files. 2175# AIX -qlanglvl=ansi 2176# Ultrix and OSF/1 -std1 2177# HP-UX 10.20 and later -Ae 2178# HP-UX older versions -Aa -D_HPUX_SOURCE 2179# SVR4 -Xc -D__EXTENSIONS__ 2180for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 2181do 2182 CC="$ac_save_CC $ac_arg" 2183 rm -f conftest.$ac_objext 2184if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2185 (eval $ac_compile) 2>conftest.er1 2186 ac_status=$? 2187 grep -v '^ *+' conftest.er1 >conftest.err 2188 rm -f conftest.er1 2189 cat conftest.err >&5 2190 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2191 (exit $ac_status); } && 2192 { ac_try='test -z "$ac_c_werror_flag" 2193 || test ! -s conftest.err' 2194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2195 (eval $ac_try) 2>&5 2196 ac_status=$? 2197 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2198 (exit $ac_status); }; } && 2199 { ac_try='test -s conftest.$ac_objext' 2200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2201 (eval $ac_try) 2>&5 2202 ac_status=$? 2203 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2204 (exit $ac_status); }; }; then 2205 ac_cv_prog_cc_stdc=$ac_arg 2206break 2207else 2208 echo "$as_me: failed program was:" >&5 2209sed 's/^/| /' conftest.$ac_ext >&5 2210 2211fi 2212rm -f conftest.err conftest.$ac_objext 2213done 2214rm -f conftest.$ac_ext conftest.$ac_objext 2215CC=$ac_save_CC 2216 2217fi 2218 2219case "x$ac_cv_prog_cc_stdc" in 2220 x|xno) 2221 echo "$as_me:$LINENO: result: none needed" >&5 2222echo "${ECHO_T}none needed" >&6 ;; 2223 *) 2224 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 2225echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 2226 CC="$CC $ac_cv_prog_cc_stdc" ;; 2227esac 2228 2229# Some people use a C++ compiler to compile C. Since we use `exit', 2230# in C++ we need to declare it. In case someone uses the same compiler 2231# for both compiling C and C++ we need to have the C++ compiler decide 2232# the declaration of exit, since it's the most demanding environment. 2233cat >conftest.$ac_ext <<_ACEOF 2234#ifndef __cplusplus 2235 choke me 2236#endif 2237_ACEOF 2238rm -f conftest.$ac_objext 2239if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2240 (eval $ac_compile) 2>conftest.er1 2241 ac_status=$? 2242 grep -v '^ *+' conftest.er1 >conftest.err 2243 rm -f conftest.er1 2244 cat conftest.err >&5 2245 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2246 (exit $ac_status); } && 2247 { ac_try='test -z "$ac_c_werror_flag" 2248 || test ! -s conftest.err' 2249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2250 (eval $ac_try) 2>&5 2251 ac_status=$? 2252 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2253 (exit $ac_status); }; } && 2254 { ac_try='test -s conftest.$ac_objext' 2255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2256 (eval $ac_try) 2>&5 2257 ac_status=$? 2258 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2259 (exit $ac_status); }; }; then 2260 for ac_declaration in \ 2261 '' \ 2262 'extern "C" void std::exit (int) throw (); using std::exit;' \ 2263 'extern "C" void std::exit (int); using std::exit;' \ 2264 'extern "C" void exit (int) throw ();' \ 2265 'extern "C" void exit (int);' \ 2266 'void exit (int);' 2267do 2268 cat >conftest.$ac_ext <<_ACEOF 2269/* confdefs.h. */ 2270_ACEOF 2271cat confdefs.h >>conftest.$ac_ext 2272cat >>conftest.$ac_ext <<_ACEOF 2273/* end confdefs.h. */ 2274$ac_declaration 2275#include <stdlib.h> 2276int 2277main () 2278{ 2279exit (42); 2280 ; 2281 return 0; 2282} 2283_ACEOF 2284rm -f conftest.$ac_objext 2285if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2286 (eval $ac_compile) 2>conftest.er1 2287 ac_status=$? 2288 grep -v '^ *+' conftest.er1 >conftest.err 2289 rm -f conftest.er1 2290 cat conftest.err >&5 2291 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2292 (exit $ac_status); } && 2293 { ac_try='test -z "$ac_c_werror_flag" 2294 || test ! -s conftest.err' 2295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2296 (eval $ac_try) 2>&5 2297 ac_status=$? 2298 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2299 (exit $ac_status); }; } && 2300 { ac_try='test -s conftest.$ac_objext' 2301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2302 (eval $ac_try) 2>&5 2303 ac_status=$? 2304 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2305 (exit $ac_status); }; }; then 2306 : 2307else 2308 echo "$as_me: failed program was:" >&5 2309sed 's/^/| /' conftest.$ac_ext >&5 2310 2311continue 2312fi 2313rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2314 cat >conftest.$ac_ext <<_ACEOF 2315/* confdefs.h. */ 2316_ACEOF 2317cat confdefs.h >>conftest.$ac_ext 2318cat >>conftest.$ac_ext <<_ACEOF 2319/* end confdefs.h. */ 2320$ac_declaration 2321int 2322main () 2323{ 2324exit (42); 2325 ; 2326 return 0; 2327} 2328_ACEOF 2329rm -f conftest.$ac_objext 2330if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2331 (eval $ac_compile) 2>conftest.er1 2332 ac_status=$? 2333 grep -v '^ *+' conftest.er1 >conftest.err 2334 rm -f conftest.er1 2335 cat conftest.err >&5 2336 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2337 (exit $ac_status); } && 2338 { ac_try='test -z "$ac_c_werror_flag" 2339 || test ! -s conftest.err' 2340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2341 (eval $ac_try) 2>&5 2342 ac_status=$? 2343 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2344 (exit $ac_status); }; } && 2345 { ac_try='test -s conftest.$ac_objext' 2346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2347 (eval $ac_try) 2>&5 2348 ac_status=$? 2349 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2350 (exit $ac_status); }; }; then 2351 break 2352else 2353 echo "$as_me: failed program was:" >&5 2354sed 's/^/| /' conftest.$ac_ext >&5 2355 2356fi 2357rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2358done 2359rm -f conftest* 2360if test -n "$ac_declaration"; then 2361 echo '#ifdef __cplusplus' >>confdefs.h 2362 echo $ac_declaration >>confdefs.h 2363 echo '#endif' >>confdefs.h 2364fi 2365 2366else 2367 echo "$as_me: failed program was:" >&5 2368sed 's/^/| /' conftest.$ac_ext >&5 2369 2370fi 2371rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2372ac_ext=c 2373ac_cpp='$CPP $CPPFLAGS' 2374ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2375ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2376ac_compiler_gnu=$ac_cv_c_compiler_gnu 2377 2378ac_ext=cc 2379ac_cpp='$CXXCPP $CPPFLAGS' 2380ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2381ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2382ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 2383if test -n "$ac_tool_prefix"; then 2384 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC 2385 do 2386 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2387set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2388echo "$as_me:$LINENO: checking for $ac_word" >&5 2389echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2390if test "${ac_cv_prog_CXX+set}" = set; then 2391 echo $ECHO_N "(cached) $ECHO_C" >&6 2392else 2393 if test -n "$CXX"; then 2394 ac_cv_prog_CXX="$CXX" # Let the user override the test. 2395else 2396as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2397for as_dir in $PATH 2398do 2399 IFS=$as_save_IFS 2400 test -z "$as_dir" && as_dir=. 2401 for ac_exec_ext in '' $ac_executable_extensions; do 2402 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2403 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 2404 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2405 break 2 2406 fi 2407done 2408done 2409 2410fi 2411fi 2412CXX=$ac_cv_prog_CXX 2413if test -n "$CXX"; then 2414 echo "$as_me:$LINENO: result: $CXX" >&5 2415echo "${ECHO_T}$CXX" >&6 2416else 2417 echo "$as_me:$LINENO: result: no" >&5 2418echo "${ECHO_T}no" >&6 2419fi 2420 2421 test -n "$CXX" && break 2422 done 2423fi 2424if test -z "$CXX"; then 2425 ac_ct_CXX=$CXX 2426 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC 2427do 2428 # Extract the first word of "$ac_prog", so it can be a program name with args. 2429set dummy $ac_prog; ac_word=$2 2430echo "$as_me:$LINENO: checking for $ac_word" >&5 2431echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2432if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then 2433 echo $ECHO_N "(cached) $ECHO_C" >&6 2434else 2435 if test -n "$ac_ct_CXX"; then 2436 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 2437else 2438as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2439for as_dir in $PATH 2440do 2441 IFS=$as_save_IFS 2442 test -z "$as_dir" && as_dir=. 2443 for ac_exec_ext in '' $ac_executable_extensions; do 2444 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2445 ac_cv_prog_ac_ct_CXX="$ac_prog" 2446 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2447 break 2 2448 fi 2449done 2450done 2451 2452fi 2453fi 2454ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 2455if test -n "$ac_ct_CXX"; then 2456 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 2457echo "${ECHO_T}$ac_ct_CXX" >&6 2458else 2459 echo "$as_me:$LINENO: result: no" >&5 2460echo "${ECHO_T}no" >&6 2461fi 2462 2463 test -n "$ac_ct_CXX" && break 2464done 2465test -n "$ac_ct_CXX" || ac_ct_CXX="g++" 2466 2467 CXX=$ac_ct_CXX 2468fi 2469 2470 2471# Provide some information about the compiler. 2472echo "$as_me:$LINENO:" \ 2473 "checking for C++ compiler version" >&5 2474ac_compiler=`set X $ac_compile; echo $2` 2475{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 2476 (eval $ac_compiler --version </dev/null >&5) 2>&5 2477 ac_status=$? 2478 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2479 (exit $ac_status); } 2480{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 2481 (eval $ac_compiler -v </dev/null >&5) 2>&5 2482 ac_status=$? 2483 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2484 (exit $ac_status); } 2485{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 2486 (eval $ac_compiler -V </dev/null >&5) 2>&5 2487 ac_status=$? 2488 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2489 (exit $ac_status); } 2490 2491echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 2492echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 2493if test "${ac_cv_cxx_compiler_gnu+set}" = set; then 2494 echo $ECHO_N "(cached) $ECHO_C" >&6 2495else 2496 cat >conftest.$ac_ext <<_ACEOF 2497/* confdefs.h. */ 2498_ACEOF 2499cat confdefs.h >>conftest.$ac_ext 2500cat >>conftest.$ac_ext <<_ACEOF 2501/* end confdefs.h. */ 2502 2503int 2504main () 2505{ 2506#ifndef __GNUC__ 2507 choke me 2508#endif 2509 2510 ; 2511 return 0; 2512} 2513_ACEOF 2514rm -f conftest.$ac_objext 2515if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2516 (eval $ac_compile) 2>conftest.er1 2517 ac_status=$? 2518 grep -v '^ *+' conftest.er1 >conftest.err 2519 rm -f conftest.er1 2520 cat conftest.err >&5 2521 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2522 (exit $ac_status); } && 2523 { ac_try='test -z "$ac_cxx_werror_flag" 2524 || test ! -s conftest.err' 2525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2526 (eval $ac_try) 2>&5 2527 ac_status=$? 2528 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2529 (exit $ac_status); }; } && 2530 { ac_try='test -s conftest.$ac_objext' 2531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2532 (eval $ac_try) 2>&5 2533 ac_status=$? 2534 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2535 (exit $ac_status); }; }; then 2536 ac_compiler_gnu=yes 2537else 2538 echo "$as_me: failed program was:" >&5 2539sed 's/^/| /' conftest.$ac_ext >&5 2540 2541ac_compiler_gnu=no 2542fi 2543rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2544ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 2545 2546fi 2547echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 2548echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 2549GXX=`test $ac_compiler_gnu = yes && echo yes` 2550ac_test_CXXFLAGS=${CXXFLAGS+set} 2551ac_save_CXXFLAGS=$CXXFLAGS 2552CXXFLAGS="-g" 2553echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 2554echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 2555if test "${ac_cv_prog_cxx_g+set}" = set; then 2556 echo $ECHO_N "(cached) $ECHO_C" >&6 2557else 2558 cat >conftest.$ac_ext <<_ACEOF 2559/* confdefs.h. */ 2560_ACEOF 2561cat confdefs.h >>conftest.$ac_ext 2562cat >>conftest.$ac_ext <<_ACEOF 2563/* end confdefs.h. */ 2564 2565int 2566main () 2567{ 2568 2569 ; 2570 return 0; 2571} 2572_ACEOF 2573rm -f conftest.$ac_objext 2574if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2575 (eval $ac_compile) 2>conftest.er1 2576 ac_status=$? 2577 grep -v '^ *+' conftest.er1 >conftest.err 2578 rm -f conftest.er1 2579 cat conftest.err >&5 2580 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2581 (exit $ac_status); } && 2582 { ac_try='test -z "$ac_cxx_werror_flag" 2583 || test ! -s conftest.err' 2584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2585 (eval $ac_try) 2>&5 2586 ac_status=$? 2587 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2588 (exit $ac_status); }; } && 2589 { ac_try='test -s conftest.$ac_objext' 2590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2591 (eval $ac_try) 2>&5 2592 ac_status=$? 2593 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2594 (exit $ac_status); }; }; then 2595 ac_cv_prog_cxx_g=yes 2596else 2597 echo "$as_me: failed program was:" >&5 2598sed 's/^/| /' conftest.$ac_ext >&5 2599 2600ac_cv_prog_cxx_g=no 2601fi 2602rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2603fi 2604echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 2605echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 2606if test "$ac_test_CXXFLAGS" = set; then 2607 CXXFLAGS=$ac_save_CXXFLAGS 2608elif test $ac_cv_prog_cxx_g = yes; then 2609 if test "$GXX" = yes; then 2610 CXXFLAGS="-g -O2" 2611 else 2612 CXXFLAGS="-g" 2613 fi 2614else 2615 if test "$GXX" = yes; then 2616 CXXFLAGS="-O2" 2617 else 2618 CXXFLAGS= 2619 fi 2620fi 2621for ac_declaration in \ 2622 '' \ 2623 'extern "C" void std::exit (int) throw (); using std::exit;' \ 2624 'extern "C" void std::exit (int); using std::exit;' \ 2625 'extern "C" void exit (int) throw ();' \ 2626 'extern "C" void exit (int);' \ 2627 'void exit (int);' 2628do 2629 cat >conftest.$ac_ext <<_ACEOF 2630/* confdefs.h. */ 2631_ACEOF 2632cat confdefs.h >>conftest.$ac_ext 2633cat >>conftest.$ac_ext <<_ACEOF 2634/* end confdefs.h. */ 2635$ac_declaration 2636#include <stdlib.h> 2637int 2638main () 2639{ 2640exit (42); 2641 ; 2642 return 0; 2643} 2644_ACEOF 2645rm -f conftest.$ac_objext 2646if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2647 (eval $ac_compile) 2>conftest.er1 2648 ac_status=$? 2649 grep -v '^ *+' conftest.er1 >conftest.err 2650 rm -f conftest.er1 2651 cat conftest.err >&5 2652 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2653 (exit $ac_status); } && 2654 { ac_try='test -z "$ac_cxx_werror_flag" 2655 || test ! -s conftest.err' 2656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2657 (eval $ac_try) 2>&5 2658 ac_status=$? 2659 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2660 (exit $ac_status); }; } && 2661 { ac_try='test -s conftest.$ac_objext' 2662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2663 (eval $ac_try) 2>&5 2664 ac_status=$? 2665 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2666 (exit $ac_status); }; }; then 2667 : 2668else 2669 echo "$as_me: failed program was:" >&5 2670sed 's/^/| /' conftest.$ac_ext >&5 2671 2672continue 2673fi 2674rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2675 cat >conftest.$ac_ext <<_ACEOF 2676/* confdefs.h. */ 2677_ACEOF 2678cat confdefs.h >>conftest.$ac_ext 2679cat >>conftest.$ac_ext <<_ACEOF 2680/* end confdefs.h. */ 2681$ac_declaration 2682int 2683main () 2684{ 2685exit (42); 2686 ; 2687 return 0; 2688} 2689_ACEOF 2690rm -f conftest.$ac_objext 2691if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2692 (eval $ac_compile) 2>conftest.er1 2693 ac_status=$? 2694 grep -v '^ *+' conftest.er1 >conftest.err 2695 rm -f conftest.er1 2696 cat conftest.err >&5 2697 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2698 (exit $ac_status); } && 2699 { ac_try='test -z "$ac_cxx_werror_flag" 2700 || test ! -s conftest.err' 2701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2702 (eval $ac_try) 2>&5 2703 ac_status=$? 2704 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2705 (exit $ac_status); }; } && 2706 { ac_try='test -s conftest.$ac_objext' 2707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2708 (eval $ac_try) 2>&5 2709 ac_status=$? 2710 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2711 (exit $ac_status); }; }; then 2712 break 2713else 2714 echo "$as_me: failed program was:" >&5 2715sed 's/^/| /' conftest.$ac_ext >&5 2716 2717fi 2718rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2719done 2720rm -f conftest* 2721if test -n "$ac_declaration"; then 2722 echo '#ifdef __cplusplus' >>confdefs.h 2723 echo $ac_declaration >>confdefs.h 2724 echo '#endif' >>confdefs.h 2725fi 2726 2727ac_ext=c 2728ac_cpp='$CPP $CPPFLAGS' 2729ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2730ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2731ac_compiler_gnu=$ac_cv_c_compiler_gnu 2732 2733# Find a good install program. We prefer a C program (faster), 2734# so one script is as good as another. But avoid the broken or 2735# incompatible versions: 2736# SysV /etc/install, /usr/sbin/install 2737# SunOS /usr/etc/install 2738# IRIX /sbin/install 2739# AIX /bin/install 2740# AmigaOS /C/install, which installs bootblocks on floppy discs 2741# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2742# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2743# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2744# OS/2's system install, which has a completely different semantic 2745# ./install, which can be erroneously created by make from ./install.sh. 2746echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 2747echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 2748if test -z "$INSTALL"; then 2749if test "${ac_cv_path_install+set}" = set; then 2750 echo $ECHO_N "(cached) $ECHO_C" >&6 2751else 2752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2753for as_dir in $PATH 2754do 2755 IFS=$as_save_IFS 2756 test -z "$as_dir" && as_dir=. 2757 # Account for people who put trailing slashes in PATH elements. 2758case $as_dir/ in 2759 ./ | .// | /cC/* | \ 2760 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2761 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 2762 /usr/ucb/* ) ;; 2763 *) 2764 # OSF1 and SCO ODT 3.0 have their own names for install. 2765 # Don't use installbsd from OSF since it installs stuff as root 2766 # by default. 2767 for ac_prog in ginstall scoinst install; do 2768 for ac_exec_ext in '' $ac_executable_extensions; do 2769 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2770 if test $ac_prog = install && 2771 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2772 # AIX install. It has an incompatible calling convention. 2773 : 2774 elif test $ac_prog = install && 2775 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2776 # program-specific install script used by HP pwplus--don't use. 2777 : 2778 else 2779 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2780 break 3 2781 fi 2782 fi 2783 done 2784 done 2785 ;; 2786esac 2787done 2788 2789 2790fi 2791 if test "${ac_cv_path_install+set}" = set; then 2792 INSTALL=$ac_cv_path_install 2793 else 2794 # As a last resort, use the slow shell script. We don't cache a 2795 # path for INSTALL within a source directory, because that will 2796 # break other packages using the cache if that directory is 2797 # removed, or if the path is relative. 2798 INSTALL=$ac_install_sh 2799 fi 2800fi 2801echo "$as_me:$LINENO: result: $INSTALL" >&5 2802echo "${ECHO_T}$INSTALL" >&6 2803 2804# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2805# It thinks the first close brace ends the variable substitution. 2806test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2807 2808test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2809 2810test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2811 2812 2813# make sure install is relative to srcdir - if a script 2814if test "$srcdir" = "."; then 2815 # If srcdir isn't just ., then (srcdir) is already prepended. 2816 if test "${ac_install_sh}" = "${INSTALL}"; then 2817 INSTALL="\\\$(top_srcdir)/${ac_install_sh}" 2818 fi 2819fi 2820 2821#AC_CHECK_PROG(AUTOCONF, autoconf, autoconf, true) 2822#AC_CHECK_PROG(STRIP, strip, strip, true) 2823 2824for ac_prog in gmake gnumake 2825do 2826 # Extract the first word of "$ac_prog", so it can be a program name with args. 2827set dummy $ac_prog; ac_word=$2 2828echo "$as_me:$LINENO: checking for $ac_word" >&5 2829echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2830if test "${ac_cv_path_U_MAKE+set}" = set; then 2831 echo $ECHO_N "(cached) $ECHO_C" >&6 2832else 2833 case $U_MAKE in 2834 [\\/]* | ?:[\\/]*) 2835 ac_cv_path_U_MAKE="$U_MAKE" # Let the user override the test with a path. 2836 ;; 2837 *) 2838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2839for as_dir in $PATH 2840do 2841 IFS=$as_save_IFS 2842 test -z "$as_dir" && as_dir=. 2843 for ac_exec_ext in '' $ac_executable_extensions; do 2844 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2845 ac_cv_path_U_MAKE="$as_dir/$ac_word$ac_exec_ext" 2846 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2847 break 2 2848 fi 2849done 2850done 2851 2852 ;; 2853esac 2854fi 2855U_MAKE=$ac_cv_path_U_MAKE 2856 2857if test -n "$U_MAKE"; then 2858 echo "$as_me:$LINENO: result: $U_MAKE" >&5 2859echo "${ECHO_T}$U_MAKE" >&6 2860else 2861 echo "$as_me:$LINENO: result: no" >&5 2862echo "${ECHO_T}no" >&6 2863fi 2864 2865 test -n "$U_MAKE" && break 2866done 2867test -n "$U_MAKE" || U_MAKE="make" 2868 2869 2870 2871# Extract the first word of "doxygen", so it can be a program name with args. 2872set dummy doxygen; ac_word=$2 2873echo "$as_me:$LINENO: checking for $ac_word" >&5 2874echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2875if test "${ac_cv_path_DOXYGEN+set}" = set; then 2876 echo $ECHO_N "(cached) $ECHO_C" >&6 2877else 2878 case $DOXYGEN in 2879 [\\/]* | ?:[\\/]*) 2880 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path. 2881 ;; 2882 *) 2883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2884as_dummy="$PATH:/usr/local/bin:/usr/bin" 2885for as_dir in $as_dummy 2886do 2887 IFS=$as_save_IFS 2888 test -z "$as_dir" && as_dir=. 2889 for ac_exec_ext in '' $ac_executable_extensions; do 2890 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2891 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext" 2892 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2893 break 2 2894 fi 2895done 2896done 2897 2898 ;; 2899esac 2900fi 2901DOXYGEN=$ac_cv_path_DOXYGEN 2902 2903if test -n "$DOXYGEN"; then 2904 echo "$as_me:$LINENO: result: $DOXYGEN" >&5 2905echo "${ECHO_T}$DOXYGEN" >&6 2906else 2907 echo "$as_me:$LINENO: result: no" >&5 2908echo "${ECHO_T}no" >&6 2909fi 2910 2911 2912 2913case "${host}" in 2914 *-*-cygwin*|*-*-mingw*) 2915 if test "$GCC" != yes && test -n "`link --version 2>&1 | grep 'GNU coreutils'`"; then 2916 { { echo "$as_me:$LINENO: error: link.exe is not a valid linker. Your PATH is incorrect. 2917 Please follow the directions in ICU's readme." >&5 2918echo "$as_me: error: link.exe is not a valid linker. Your PATH is incorrect. 2919 Please follow the directions in ICU's readme." >&2;} 2920 { (exit 1); exit 1; }; } 2921 fi;; 2922 *);; 2923esac 2924 2925echo "$as_me:$LINENO: checking checking for executable suffix" >&5 2926echo $ECHO_N "checking checking for executable suffix... $ECHO_C" >&6 2927case "${host}" in 2928 *-*-cygwin*|*-*-mingw*) EXEEXT=.exe ;; 2929 *) EXEEXT="" ;; 2930esac 2931ac_exeext=$EXEEXT 2932echo "$as_me:$LINENO: result: $EXEEXT" >&5 2933echo "${ECHO_T}$EXEEXT" >&6 2934 2935 2936 2937 echo "$as_me:$LINENO: checking whether strict compiling is on" >&5 2938echo $ECHO_N "checking whether strict compiling is on... $ECHO_C" >&6 2939 # Check whether --enable-strict or --disable-strict was given. 2940if test "${enable_strict+set}" = set; then 2941 enableval="$enable_strict" 2942 2943 if test "$enableval" = no 2944 then 2945 ac_use_strict_options=no 2946 else 2947 ac_use_strict_options=yes 2948 fi 2949 2950else 2951 ac_use_strict_options=no 2952fi; 2953 echo "$as_me:$LINENO: result: $ac_use_strict_options" >&5 2954echo "${ECHO_T}$ac_use_strict_options" >&6 2955 2956 if test "$ac_use_strict_options" = yes 2957 then 2958 if test "$GCC" = yes 2959 then 2960 CFLAGS="$CFLAGS -Wall -ansi -pedantic -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -Wno-long-long" 2961 case "${host}" in 2962 *-*-solaris*) 2963 CFLAGS="$CFLAGS -D__STDC__=0";; 2964 esac 2965 else 2966 case "${host}" in 2967 *-*-cygwin) 2968 if test "`$CC /help 2>&1 | head -c9`" = "Microsoft" 2969 then 2970 CFLAGS="$CFLAGS /W4" 2971 fi 2972 esac 2973 fi 2974 if test "$GXX" = yes 2975 then 2976 CXXFLAGS="$CXXFLAGS -W -Wall -ansi -pedantic -Wpointer-arith -Wwrite-strings -Wno-long-long" 2977 case "${host}" in 2978 *-*-solaris*) 2979 CXXFLAGS="$CXXFLAGS -D__STDC__=0";; 2980 esac 2981 else 2982 case "${host}" in 2983 *-*-cygwin) 2984 if test "`$CXX /help 2>&1 | head -c9`" = "Microsoft" 2985 then 2986 CXXFLAGS="$CXXFLAGS /W4" 2987 fi 2988 esac 2989 fi 2990 fi 2991 2992 2993 2994 2995 # Check whether --enable-64bit-libs or --disable-64bit-libs was given. 2996if test "${enable_64bit_libs+set}" = set; then 2997 enableval="$enable_64bit_libs" 2998 ENABLE_64BIT_LIBS=${enableval} 2999else 3000 ENABLE_64BIT_LIBS=yes 3001 3002fi; 3003 echo "$as_me:$LINENO: checking for 64-bit executable support" >&5 3004echo $ECHO_N "checking for 64-bit executable support... $ECHO_C" >&6 3005 if test "$ENABLE_64BIT_LIBS" != no; then 3006 if test "$GCC" = yes; then 3007 if test -n "`$CXX -dumpspecs 2>&1 && $CC -dumpspecs 2>&1 | grep -v __LP64__`"; then 3008 ENABLE_64BIT_LIBS=yes 3009 else 3010 OLD_CFLAGS="${CFLAGS}" 3011 OLD_CXXFLAGS="${CXXFLAGS}" 3012 CFLAGS="${CFLAGS} -m64" 3013 CXXFLAGS="${CXXFLAGS} -m64" 3014 if test "$cross_compiling" = yes; then 3015 ENABLE_64BIT_LIBS=no 3016else 3017 cat >conftest.$ac_ext <<_ACEOF 3018/* confdefs.h. */ 3019_ACEOF 3020cat confdefs.h >>conftest.$ac_ext 3021cat >>conftest.$ac_ext <<_ACEOF 3022/* end confdefs.h. */ 3023int main(void) {return 0;} 3024_ACEOF 3025rm -f conftest$ac_exeext 3026if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3027 (eval $ac_link) 2>&5 3028 ac_status=$? 3029 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3030 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 3031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3032 (eval $ac_try) 2>&5 3033 ac_status=$? 3034 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3035 (exit $ac_status); }; }; then 3036 ENABLE_64BIT_LIBS=yes 3037else 3038 echo "$as_me: program exited with status $ac_status" >&5 3039echo "$as_me: failed program was:" >&5 3040sed 's/^/| /' conftest.$ac_ext >&5 3041 3042( exit $ac_status ) 3043ENABLE_64BIT_LIBS=no 3044fi 3045rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 3046fi 3047 if test "$ENABLE_64BIT_LIBS" = no; then 3048 # Nope. We're on a 32-bit machine with a 32-bit compiler. 3049 CFLAGS="${OLD_CFLAGS}" 3050 CXXFLAGS="${OLD_CXXFLAGS}" 3051 fi 3052 fi 3053 else 3054 case "${host}" in 3055 sparc*-*-solaris*) 3056 SPARCV9=`isainfo -n 2>&1 | grep sparcv9` 3057 SOL64=`$CXX -xarch=v9 2>&1 && $CC -xarch=v9 2>&1 | grep -v usage:` 3058 if test -z "$SOL64" && test -n "$SPARCV9"; then 3059 CFLAGS="${CFLAGS} -xtarget=ultra -xarch=v9" 3060 CXXFLAGS="${CXXFLAGS} -xtarget=ultra -xarch=v9" 3061 LDFLAGS="${LDFLAGS} -xtarget=ultra -xarch=v9" 3062 ENABLE_64BIT_LIBS=yes 3063 else 3064 ENABLE_64BIT_LIBS=no 3065 fi 3066 ;; 3067 i386-*-solaris*) 3068 AMD64=`isainfo -n 2>&1 | grep amd64` 3069 # The new compiler option 3070 SOL64=`$CXX -m64 2>&1 && $CC -m64 2>&1 | grep -v usage:` 3071 if test -z "$SOL64" && test -n "$AMD64"; then 3072 CFLAGS="${CFLAGS} -m64" 3073 CXXFLAGS="${CXXFLAGS} -m64" 3074 ENABLE_64BIT_LIBS=yes 3075 else 3076 # The older compiler option 3077 SOL64=`$CXX -xtarget=generic64 2>&1 && $CC -xtarget=generic64 2>&1 | grep -v usage:` 3078 if test -z "$SOL64" && test -n "$AMD64"; then 3079 CFLAGS="${CFLAGS} -xtarget=generic64" 3080 CXXFLAGS="${CXXFLAGS} -xtarget=generic64" 3081 ENABLE_64BIT_LIBS=yes 3082 else 3083 ENABLE_64BIT_LIBS=no 3084 fi 3085 fi 3086 ;; 3087 ia64-*-linux*) 3088 # check for ecc/ecpc compiler support 3089 if test -n "`$CXX --help 2>&1 && $CC --help 2>&1 | grep -v Intel`"; then 3090 if test -n "`$CXX --help 2>&1 && $CC --help 2>&1 | grep -v Itanium`"; then 3091 ENABLE_64BIT_LIBS=yes 3092 else 3093 ENABLE_64BIT_LIBS=no 3094 fi 3095 else 3096 # unknown 3097 ENABLE_64BIT_LIBS=no 3098 fi 3099 ;; 3100 *-*-cygwin) 3101 if test -n "`$CXX -help 2>&1 | grep 'for x64'`"; then 3102 ENABLE_64BIT_LIBS=yes 3103 else 3104 # unknown 3105 ENABLE_64BIT_LIBS=no 3106 fi 3107 ;; 3108 *-*-aix*|powerpc64-*-linux*) 3109 OLD_CFLAGS="${CFLAGS}" 3110 OLD_CXXFLAGS="${CXXFLAGS}" 3111 OLD_LDFLAGS="${LDFLAGS}" 3112 CFLAGS="${CFLAGS} -q64" 3113 CXXFLAGS="${CXXFLAGS} -q64" 3114 LDFLAGS="${LDFLAGS} -q64" 3115 if test "$cross_compiling" = yes; then 3116 ENABLE_64BIT_LIBS=no 3117else 3118 cat >conftest.$ac_ext <<_ACEOF 3119/* confdefs.h. */ 3120_ACEOF 3121cat confdefs.h >>conftest.$ac_ext 3122cat >>conftest.$ac_ext <<_ACEOF 3123/* end confdefs.h. */ 3124int main(void) {return 0;} 3125_ACEOF 3126rm -f conftest$ac_exeext 3127if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3128 (eval $ac_link) 2>&5 3129 ac_status=$? 3130 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3131 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 3132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3133 (eval $ac_try) 2>&5 3134 ac_status=$? 3135 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3136 (exit $ac_status); }; }; then 3137 ENABLE_64BIT_LIBS=yes 3138else 3139 echo "$as_me: program exited with status $ac_status" >&5 3140echo "$as_me: failed program was:" >&5 3141sed 's/^/| /' conftest.$ac_ext >&5 3142 3143( exit $ac_status ) 3144ENABLE_64BIT_LIBS=no 3145fi 3146rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 3147fi 3148 if test "$ENABLE_64BIT_LIBS" = no; then 3149 CFLAGS="${OLD_CFLAGS}" 3150 CXXFLAGS="${OLD_CXXFLAGS}" 3151 LDFLAGS="${OLD_LDFLAGS}" 3152 else 3153 case "${host}" in 3154 *-*-aix*) 3155 ARFLAGS="${ARFLAGS} -X64" 3156 esac 3157 fi 3158 ;; 3159 *-*-hpux*) 3160 3161 OLD_CFLAGS="${CFLAGS}" 3162 OLD_CXXFLAGS="${CXXFLAGS}" 3163 CFLAGS="${CFLAGS} +DD64" 3164 CXXFLAGS="${CXXFLAGS} +DD64" 3165 if test "$cross_compiling" = yes; then 3166 ENABLE_64BIT_LIBS=no 3167else 3168 cat >conftest.$ac_ext <<_ACEOF 3169/* confdefs.h. */ 3170_ACEOF 3171cat confdefs.h >>conftest.$ac_ext 3172cat >>conftest.$ac_ext <<_ACEOF 3173/* end confdefs.h. */ 3174int main(void) {return 0;} 3175_ACEOF 3176rm -f conftest$ac_exeext 3177if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3178 (eval $ac_link) 2>&5 3179 ac_status=$? 3180 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3181 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 3182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3183 (eval $ac_try) 2>&5 3184 ac_status=$? 3185 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3186 (exit $ac_status); }; }; then 3187 ENABLE_64BIT_LIBS=yes 3188else 3189 echo "$as_me: program exited with status $ac_status" >&5 3190echo "$as_me: failed program was:" >&5 3191sed 's/^/| /' conftest.$ac_ext >&5 3192 3193( exit $ac_status ) 3194ENABLE_64BIT_LIBS=no 3195fi 3196rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 3197fi 3198 if test "$ENABLE_64BIT_LIBS" = no; then 3199 CFLAGS="${OLD_CFLAGS}" 3200 CXXFLAGS="${OLD_CXXFLAGS}" 3201 CFLAGS="${CFLAGS} +DA2.0W" 3202 CXXFLAGS="${CXXFLAGS} +DA2.0W" 3203 if test "$cross_compiling" = yes; then 3204 ENABLE_64BIT_LIBS=no 3205else 3206 cat >conftest.$ac_ext <<_ACEOF 3207/* confdefs.h. */ 3208_ACEOF 3209cat confdefs.h >>conftest.$ac_ext 3210cat >>conftest.$ac_ext <<_ACEOF 3211/* end confdefs.h. */ 3212int main(void) {return 0;} 3213_ACEOF 3214rm -f conftest$ac_exeext 3215if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3216 (eval $ac_link) 2>&5 3217 ac_status=$? 3218 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3219 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 3220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3221 (eval $ac_try) 2>&5 3222 ac_status=$? 3223 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3224 (exit $ac_status); }; }; then 3225 ENABLE_64BIT_LIBS=yes 3226else 3227 echo "$as_me: program exited with status $ac_status" >&5 3228echo "$as_me: failed program was:" >&5 3229sed 's/^/| /' conftest.$ac_ext >&5 3230 3231( exit $ac_status ) 3232ENABLE_64BIT_LIBS=no 3233fi 3234rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 3235fi 3236 if test "$ENABLE_64BIT_LIBS" = no; then 3237 CFLAGS="${OLD_CFLAGS}" 3238 CXXFLAGS="${OLD_CXXFLAGS}" 3239 fi 3240 fi 3241 ;; 3242 *-*ibm-openedition*|*-*-os390*) 3243 OLD_CFLAGS="${CFLAGS}" 3244 OLD_CXXFLAGS="${CXXFLAGS}" 3245 OLD_LDFLAGS="${LDFLAGS}" 3246 CFLAGS="${CFLAGS} -Wc,lp64" 3247 CXXFLAGS="${CXXFLAGS} -Wc,lp64" 3248 LDFLAGS="${LDFLAGS} -Wl,lp64" 3249 if test "$cross_compiling" = yes; then 3250 ENABLE_64BIT_LIBS=no 3251else 3252 cat >conftest.$ac_ext <<_ACEOF 3253/* confdefs.h. */ 3254_ACEOF 3255cat confdefs.h >>conftest.$ac_ext 3256cat >>conftest.$ac_ext <<_ACEOF 3257/* end confdefs.h. */ 3258int main(void) {return 0;} 3259_ACEOF 3260rm -f conftest$ac_exeext 3261if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3262 (eval $ac_link) 2>&5 3263 ac_status=$? 3264 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3265 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 3266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3267 (eval $ac_try) 2>&5 3268 ac_status=$? 3269 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3270 (exit $ac_status); }; }; then 3271 ENABLE_64BIT_LIBS=yes 3272else 3273 echo "$as_me: program exited with status $ac_status" >&5 3274echo "$as_me: failed program was:" >&5 3275sed 's/^/| /' conftest.$ac_ext >&5 3276 3277( exit $ac_status ) 3278ENABLE_64BIT_LIBS=no 3279fi 3280rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 3281fi 3282 if test "$ENABLE_64BIT_LIBS" = no; then 3283 CFLAGS="${OLD_CFLAGS}" 3284 CXXFLAGS="${OLD_CXXFLAGS}" 3285 LDFLAGS="${OLD_LDFLAGS}" 3286 fi 3287 ;; 3288 *) 3289 ENABLE_64BIT_LIBS=no 3290 ;; 3291 esac 3292 fi 3293 else 3294 if test "$GCC" = yes; then 3295 OLD_CFLAGS="${CFLAGS}" 3296 OLD_CXXFLAGS="${CXXFLAGS}" 3297 CFLAGS="${CFLAGS} -m32" 3298 CXXFLAGS="${CXXFLAGS} -m32" 3299 if test "$cross_compiling" = yes; then 3300 ENABLE_64BIT_LIBS=yes 3301else 3302 cat >conftest.$ac_ext <<_ACEOF 3303/* confdefs.h. */ 3304_ACEOF 3305cat confdefs.h >>conftest.$ac_ext 3306cat >>conftest.$ac_ext <<_ACEOF 3307/* end confdefs.h. */ 3308int main(void) {return 0;} 3309_ACEOF 3310rm -f conftest$ac_exeext 3311if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3312 (eval $ac_link) 2>&5 3313 ac_status=$? 3314 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3315 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 3316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3317 (eval $ac_try) 2>&5 3318 ac_status=$? 3319 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3320 (exit $ac_status); }; }; then 3321 ENABLE_64BIT_LIBS=no 3322else 3323 echo "$as_me: program exited with status $ac_status" >&5 3324echo "$as_me: failed program was:" >&5 3325sed 's/^/| /' conftest.$ac_ext >&5 3326 3327( exit $ac_status ) 3328ENABLE_64BIT_LIBS=yes 3329fi 3330rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 3331fi 3332 if test "$ENABLE_64BIT_LIBS" = yes; then 3333 CFLAGS="${OLD_CFLAGS}" 3334 CXXFLAGS="${OLD_CXXFLAGS}" 3335 fi 3336 fi 3337 fi 3338 echo "$as_me:$LINENO: result: $ENABLE_64BIT_LIBS" >&5 3339echo "${ECHO_T}$ENABLE_64BIT_LIBS" >&6 3340 3341 3342 3343 3344 3345 echo "$as_me:$LINENO: checking which Makefile fragment to use" >&5 3346echo $ECHO_N "checking which Makefile fragment to use... $ECHO_C" >&6 3347if test "${icu_cv_host_frag+set}" = set; then 3348 echo $ECHO_N "(cached) $ECHO_C" >&6 3349else 3350 3351case "${host}" in 3352*-*-solaris*) 3353 if test "$GCC" = yes; then 3354 icu_cv_host_frag=mh-solaris-gcc 3355 else 3356 icu_cv_host_frag=mh-solaris 3357 fi ;; 3358alpha*-*-linux-gnu) 3359 if test "$GCC" = yes; then 3360 icu_cv_host_frag=mh-alpha-linux-gcc 3361 else 3362 icu_cv_host_frag=mh-alpha-linux-cc 3363 fi ;; 3364powerpc*-*-linux*) 3365 if test "$GCC" = yes; then 3366 icu_cv_host_frag=mh-linux 3367 else 3368 icu_cv_host_frag=mh-linux-va 3369 fi ;; 3370*-*-linux*|*-pc-gnu) icu_cv_host_frag=mh-linux ;; 3371*-*-cygwin|*-*-mingw32) 3372 if test "$GCC" = yes; then 3373 cat >conftest.$ac_ext <<_ACEOF 3374/* confdefs.h. */ 3375_ACEOF 3376cat confdefs.h >>conftest.$ac_ext 3377cat >>conftest.$ac_ext <<_ACEOF 3378/* end confdefs.h. */ 3379 3380#ifndef __MINGW32__ 3381#error This is not MinGW 3382#endif 3383int 3384main () 3385{ 3386 3387 ; 3388 return 0; 3389} 3390_ACEOF 3391rm -f conftest.$ac_objext 3392if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3393 (eval $ac_compile) 2>conftest.er1 3394 ac_status=$? 3395 grep -v '^ *+' conftest.er1 >conftest.err 3396 rm -f conftest.er1 3397 cat conftest.err >&5 3398 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3399 (exit $ac_status); } && 3400 { ac_try='test -z "$ac_c_werror_flag" 3401 || test ! -s conftest.err' 3402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3403 (eval $ac_try) 2>&5 3404 ac_status=$? 3405 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3406 (exit $ac_status); }; } && 3407 { ac_try='test -s conftest.$ac_objext' 3408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3409 (eval $ac_try) 2>&5 3410 ac_status=$? 3411 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3412 (exit $ac_status); }; }; then 3413 icu_cv_host_frag=mh-mingw 3414else 3415 echo "$as_me: failed program was:" >&5 3416sed 's/^/| /' conftest.$ac_ext >&5 3417 3418icu_cv_host_frag=mh-cygwin 3419fi 3420rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3421 else 3422 icu_cv_host_frag=mh-cygwin-msvc 3423 fi ;; 3424*-*-*bsd*|*-*-dragonfly*) icu_cv_host_frag=mh-bsd-gcc ;; 3425*-*-aix*) 3426 if test "$GCC" = yes; then 3427 icu_cv_host_frag=mh-aix-gcc 3428 else 3429 icu_cv_host_frag=mh-aix-va 3430 fi ;; 3431*-*-hpux*) 3432 if test "$GCC" = yes; then 3433 icu_cv_host_frag=mh-hpux-gcc 3434 else 3435 case "$CXX" in 3436 *aCC) icu_cv_host_frag=mh-hpux-acc ;; 3437 esac 3438 fi ;; 3439*-*ibm-openedition*|*-*-os390*) icu_cv_host_frag=mh-os390 ;; 3440*-*-os400*) icu_cv_host_frag=mh-os400 ;; 3441*-apple-rhapsody*) icu_cv_host_frag=mh-darwin ;; 3442*-apple-darwin*) icu_cv_host_frag=mh-darwin ;; 3443*-*-beos) icu_cv_host_frag=mh-beos ;; 3444*-*-irix*) icu_cv_host_frag=mh-irix ;; 3445*-dec-osf*) icu_cv_host_frag=mh-alpha-osf ;; 3446*-*-nto*) icu_cv_host_frag=mh-qnx ;; 3447*-ncr-*) icu_cv_host_frag=mh-mpras ;; 3448*) icu_cv_host_frag=mh-unknown ;; 3449esac 3450 3451 3452fi 3453echo "$as_me:$LINENO: result: $icu_cv_host_frag" >&5 3454echo "${ECHO_T}$icu_cv_host_frag" >&6 3455 3456 3457case "${host}" in 3458 *-*-hpux*) echo "$as_me:$LINENO: checking for floor in -lm" >&5 3459echo $ECHO_N "checking for floor in -lm... $ECHO_C" >&6 3460if test "${ac_cv_lib_m_floor+set}" = set; then 3461 echo $ECHO_N "(cached) $ECHO_C" >&6 3462else 3463 ac_check_lib_save_LIBS=$LIBS 3464LIBS="-lm $LIBS" 3465cat >conftest.$ac_ext <<_ACEOF 3466/* confdefs.h. */ 3467_ACEOF 3468cat confdefs.h >>conftest.$ac_ext 3469cat >>conftest.$ac_ext <<_ACEOF 3470/* end confdefs.h. */ 3471 3472/* Override any gcc2 internal prototype to avoid an error. */ 3473#ifdef __cplusplus 3474extern "C" 3475#endif 3476/* We use char because int might match the return type of a gcc2 3477 builtin and then its argument prototype would still apply. */ 3478char floor (); 3479int 3480main () 3481{ 3482floor (); 3483 ; 3484 return 0; 3485} 3486_ACEOF 3487rm -f conftest.$ac_objext conftest$ac_exeext 3488if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3489 (eval $ac_link) 2>conftest.er1 3490 ac_status=$? 3491 grep -v '^ *+' conftest.er1 >conftest.err 3492 rm -f conftest.er1 3493 cat conftest.err >&5 3494 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3495 (exit $ac_status); } && 3496 { ac_try='test -z "$ac_c_werror_flag" 3497 || test ! -s conftest.err' 3498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3499 (eval $ac_try) 2>&5 3500 ac_status=$? 3501 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3502 (exit $ac_status); }; } && 3503 { ac_try='test -s conftest$ac_exeext' 3504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3505 (eval $ac_try) 2>&5 3506 ac_status=$? 3507 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3508 (exit $ac_status); }; }; then 3509 ac_cv_lib_m_floor=yes 3510else 3511 echo "$as_me: failed program was:" >&5 3512sed 's/^/| /' conftest.$ac_ext >&5 3513 3514ac_cv_lib_m_floor=no 3515fi 3516rm -f conftest.err conftest.$ac_objext \ 3517 conftest$ac_exeext conftest.$ac_ext 3518LIBS=$ac_check_lib_save_LIBS 3519fi 3520echo "$as_me:$LINENO: result: $ac_cv_lib_m_floor" >&5 3521echo "${ECHO_T}$ac_cv_lib_m_floor" >&6 3522if test $ac_cv_lib_m_floor = yes; then 3523 LIB_M="-lm" 3524fi 3525 ;; 3526 3527 *) 3528echo "$as_me:$LINENO: checking for floor in -lm" >&5 3529echo $ECHO_N "checking for floor in -lm... $ECHO_C" >&6 3530if test "${ac_cv_lib_m_floor+set}" = set; then 3531 echo $ECHO_N "(cached) $ECHO_C" >&6 3532else 3533 ac_check_lib_save_LIBS=$LIBS 3534LIBS="-lm $LIBS" 3535cat >conftest.$ac_ext <<_ACEOF 3536/* confdefs.h. */ 3537_ACEOF 3538cat confdefs.h >>conftest.$ac_ext 3539cat >>conftest.$ac_ext <<_ACEOF 3540/* end confdefs.h. */ 3541 3542/* Override any gcc2 internal prototype to avoid an error. */ 3543#ifdef __cplusplus 3544extern "C" 3545#endif 3546/* We use char because int might match the return type of a gcc2 3547 builtin and then its argument prototype would still apply. */ 3548char floor (); 3549int 3550main () 3551{ 3552floor (); 3553 ; 3554 return 0; 3555} 3556_ACEOF 3557rm -f conftest.$ac_objext conftest$ac_exeext 3558if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3559 (eval $ac_link) 2>conftest.er1 3560 ac_status=$? 3561 grep -v '^ *+' conftest.er1 >conftest.err 3562 rm -f conftest.er1 3563 cat conftest.err >&5 3564 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3565 (exit $ac_status); } && 3566 { ac_try='test -z "$ac_c_werror_flag" 3567 || test ! -s conftest.err' 3568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3569 (eval $ac_try) 2>&5 3570 ac_status=$? 3571 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3572 (exit $ac_status); }; } && 3573 { ac_try='test -s conftest$ac_exeext' 3574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3575 (eval $ac_try) 2>&5 3576 ac_status=$? 3577 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3578 (exit $ac_status); }; }; then 3579 ac_cv_lib_m_floor=yes 3580else 3581 echo "$as_me: failed program was:" >&5 3582sed 's/^/| /' conftest.$ac_ext >&5 3583 3584ac_cv_lib_m_floor=no 3585fi 3586rm -f conftest.err conftest.$ac_objext \ 3587 conftest$ac_exeext conftest.$ac_ext 3588LIBS=$ac_check_lib_save_LIBS 3589fi 3590echo "$as_me:$LINENO: result: $ac_cv_lib_m_floor" >&5 3591echo "${ECHO_T}$ac_cv_lib_m_floor" >&6 3592if test $ac_cv_lib_m_floor = yes; then 3593 cat >>confdefs.h <<_ACEOF 3594#define HAVE_LIBM 1 3595_ACEOF 3596 3597 LIBS="-lm $LIBS" 3598 3599fi 3600 3601 LIB_M="" ;; 3602esac 3603 3604 3605echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 3606echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 3607enabled=no 3608# Check whether --enable-shared or --disable-shared was given. 3609if test "${enable_shared+set}" = set; then 3610 enableval="$enable_shared" 3611 case "${enableval}" in 3612 yes|"") enabled=yes; ENABLE_SHARED=YES ;; 3613 no);; 3614 *) ;; 3615 esac 3616else 3617 enabled=yes; ENABLE_SHARED=YES 3618 3619fi; 3620echo "$as_me:$LINENO: result: $enabled" >&5 3621echo "${ECHO_T}$enabled" >&6 3622 3623 3624echo "$as_me:$LINENO: checking whether to build static libraries" >&5 3625echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 3626enabled=no 3627# Check whether --enable-static or --disable-static was given. 3628if test "${enable_static+set}" = set; then 3629 enableval="$enable_static" 3630 case "${enableval}" in 3631 yes|"") enabled=yes; ENABLE_STATIC=YES ;; 3632 no) ;; 3633 *) ;; 3634 esac 3635fi; 3636echo "$as_me:$LINENO: result: $enabled" >&5 3637echo "${ECHO_T}$enabled" >&6 3638 3639 3640echo "$as_me:$LINENO: checking whether to build debug libraries" >&5 3641echo $ECHO_N "checking whether to build debug libraries... $ECHO_C" >&6 3642enabled=no 3643ENABLE_DEBUG=0 3644# Check whether --enable-debug or --disable-debug was given. 3645if test "${enable_debug+set}" = set; then 3646 enableval="$enable_debug" 3647 case "${enableval}" in 3648 yes|"") enabled=yes; ENABLE_DEBUG=1 ;; 3649 *) ;; 3650 esac 3651fi; 3652echo "$as_me:$LINENO: result: $enabled" >&5 3653echo "${ECHO_T}$enabled" >&6 3654 3655 3656echo "$as_me:$LINENO: checking whether to build release libraries" >&5 3657echo $ECHO_N "checking whether to build release libraries... $ECHO_C" >&6 3658enabled=yes 3659ENABLE_RELEASE=1 3660# Check whether --enable-release or --disable-release was given. 3661if test "${enable_release+set}" = set; then 3662 enableval="$enable_release" 3663 case "${enableval}" in 3664 no) enabled=no; ENABLE_RELEASE=0 ;; 3665 *) ;; 3666 esac 3667fi; 3668echo "$as_me:$LINENO: result: $enabled" >&5 3669echo "${ECHO_T}$enabled" >&6 3670 3671 3672echo "$as_me:$LINENO: checking whether to enable draft APIs" >&5 3673echo $ECHO_N "checking whether to enable draft APIs... $ECHO_C" >&6 3674enabled=yes 3675U_DEFAULT_SHOW_DRAFT=1 3676# Check whether --enable-draft or --disable-draft was given. 3677if test "${enable_draft+set}" = set; then 3678 enableval="$enable_draft" 3679 case "${enableval}" in 3680 no) enabled=no; U_DEFAULT_SHOW_DRAFT=0 ;; 3681 *) ;; 3682 esac 3683fi; 3684echo "$as_me:$LINENO: result: $enabled" >&5 3685echo "${ECHO_T}$enabled" >&6 3686if test "$U_DEFAULT_SHOW_DRAFT" = 0; then 3687 CPPFLAGS="$CPPFLAGS -DU_SHOW_DRAFT_API" 3688fi 3689 3690 3691echo "$as_me:$LINENO: checking for library API export" >&5 3692echo $ECHO_N "checking for library API export... $ECHO_C" >&6 3693SHAREDLIBEXPORT=no 3694U_USE_GCC_VISIBILITY_ATTRIBUTE=0 3695if test "$ac_cv_c_compiler_gnu" = yes; then 3696 OLD_CFLAGS="${CFLAGS}" 3697 OLD_CXXFLAGS="${CXXFLAGS}" 3698 LIBCFLAGS="-fvisibility=hidden" 3699 LIBCXXFLAGS="-fvisibility=hidden" 3700 CFLAGS="${CFLAGS} ${LIBCFLAGS}" 3701 CXXFLAGS="${CXXFLAGS} ${LIBCXXFLAGS}" 3702 cat >conftest.$ac_ext <<_ACEOF 3703/* confdefs.h. */ 3704_ACEOF 3705cat confdefs.h >>conftest.$ac_ext 3706cat >>conftest.$ac_ext <<_ACEOF 3707/* end confdefs.h. */ 3708__attribute__ ((visibility ("default"))) void f(void); 3709#include <stdlib.h> 3710int 3711main () 3712{ 3713exit(0); 3714 ; 3715 return 0; 3716} 3717_ACEOF 3718rm -f conftest.$ac_objext conftest$ac_exeext 3719if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3720 (eval $ac_link) 2>conftest.er1 3721 ac_status=$? 3722 grep -v '^ *+' conftest.er1 >conftest.err 3723 rm -f conftest.er1 3724 cat conftest.err >&5 3725 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3726 (exit $ac_status); } && 3727 { ac_try='test -z "$ac_c_werror_flag" 3728 || test ! -s conftest.err' 3729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3730 (eval $ac_try) 2>&5 3731 ac_status=$? 3732 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3733 (exit $ac_status); }; } && 3734 { ac_try='test -s conftest$ac_exeext' 3735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3736 (eval $ac_try) 2>&5 3737 ac_status=$? 3738 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3739 (exit $ac_status); }; }; then 3740 SHAREDLIBEXPORT=yes 3741else 3742 echo "$as_me: failed program was:" >&5 3743sed 's/^/| /' conftest.$ac_ext >&5 3744 3745SHAREDLIBEXPORT=no 3746fi 3747rm -f conftest.err conftest.$ac_objext \ 3748 conftest$ac_exeext conftest.$ac_ext 3749 # Restore to their original state because the Intel compiler chokes 3750 # on this option when checking for the wchar_t size, but the 3751 # option otherwise works. 3752 CFLAGS="${OLD_CFLAGS}" 3753 CXXFLAGS="${OLD_CXXFLAGS}" 3754 if test "$SHAREDLIBEXPORT" = no; then 3755 LIBCFLAGS= 3756 LIBCXXFLAGS= 3757 else 3758 U_USE_GCC_VISIBILITY_ATTRIBUTE=1 3759 fi 3760fi 3761echo "$as_me:$LINENO: result: $SHAREDLIBEXPORT" >&5 3762echo "${ECHO_T}$SHAREDLIBEXPORT" >&6 3763 3764 3765 3766 3767if test -n "$ac_tool_prefix"; then 3768 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 3769set dummy ${ac_tool_prefix}ranlib; ac_word=$2 3770echo "$as_me:$LINENO: checking for $ac_word" >&5 3771echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3772if test "${ac_cv_prog_RANLIB+set}" = set; then 3773 echo $ECHO_N "(cached) $ECHO_C" >&6 3774else 3775 if test -n "$RANLIB"; then 3776 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 3777else 3778as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3779for as_dir in $PATH 3780do 3781 IFS=$as_save_IFS 3782 test -z "$as_dir" && as_dir=. 3783 for ac_exec_ext in '' $ac_executable_extensions; do 3784 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3785 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 3786 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3787 break 2 3788 fi 3789done 3790done 3791 3792fi 3793fi 3794RANLIB=$ac_cv_prog_RANLIB 3795if test -n "$RANLIB"; then 3796 echo "$as_me:$LINENO: result: $RANLIB" >&5 3797echo "${ECHO_T}$RANLIB" >&6 3798else 3799 echo "$as_me:$LINENO: result: no" >&5 3800echo "${ECHO_T}no" >&6 3801fi 3802 3803fi 3804if test -z "$ac_cv_prog_RANLIB"; then 3805 ac_ct_RANLIB=$RANLIB 3806 # Extract the first word of "ranlib", so it can be a program name with args. 3807set dummy ranlib; ac_word=$2 3808echo "$as_me:$LINENO: checking for $ac_word" >&5 3809echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3810if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 3811 echo $ECHO_N "(cached) $ECHO_C" >&6 3812else 3813 if test -n "$ac_ct_RANLIB"; then 3814 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 3815else 3816as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3817for as_dir in $PATH 3818do 3819 IFS=$as_save_IFS 3820 test -z "$as_dir" && as_dir=. 3821 for ac_exec_ext in '' $ac_executable_extensions; do 3822 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3823 ac_cv_prog_ac_ct_RANLIB="ranlib" 3824 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3825 break 2 3826 fi 3827done 3828done 3829 3830 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" 3831fi 3832fi 3833ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 3834if test -n "$ac_ct_RANLIB"; then 3835 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 3836echo "${ECHO_T}$ac_ct_RANLIB" >&6 3837else 3838 echo "$as_me:$LINENO: result: no" >&5 3839echo "${ECHO_T}no" >&6 3840fi 3841 3842 RANLIB=$ac_ct_RANLIB 3843else 3844 RANLIB="$ac_cv_prog_RANLIB" 3845fi 3846 3847# Extract the first word of "ar", so it can be a program name with args. 3848set dummy ar; ac_word=$2 3849echo "$as_me:$LINENO: checking for $ac_word" >&5 3850echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3851if test "${ac_cv_path_AR+set}" = set; then 3852 echo $ECHO_N "(cached) $ECHO_C" >&6 3853else 3854 case $AR in 3855 [\\/]* | ?:[\\/]*) 3856 ac_cv_path_AR="$AR" # Let the user override the test with a path. 3857 ;; 3858 *) 3859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3860as_dummy="$PATH:/bin:/usr/bin:/usr/ccs/bin" 3861for as_dir in $as_dummy 3862do 3863 IFS=$as_save_IFS 3864 test -z "$as_dir" && as_dir=. 3865 for ac_exec_ext in '' $ac_executable_extensions; do 3866 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3867 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext" 3868 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3869 break 2 3870 fi 3871done 3872done 3873 3874 test -z "$ac_cv_path_AR" && ac_cv_path_AR="echo archiver ar not found re-run configure ; false" 3875 ;; 3876esac 3877fi 3878AR=$ac_cv_path_AR 3879 3880if test -n "$AR"; then 3881 echo "$as_me:$LINENO: result: $AR" >&5 3882echo "${ECHO_T}$AR" >&6 3883else 3884 echo "$as_me:$LINENO: result: no" >&5 3885echo "${ECHO_T}no" >&6 3886fi 3887 3888 3889echo "$as_me:$LINENO: checking whether to enable renaming of symbols" >&5 3890echo $ECHO_N "checking whether to enable renaming of symbols... $ECHO_C" >&6 3891enabled=yes 3892U_DISABLE_RENAMING=0 3893# Check whether --enable-renaming or --disable-renaming was given. 3894if test "${enable_renaming+set}" = set; then 3895 enableval="$enable_renaming" 3896 case "${enableval}" in 3897 yes|"") enabled=yes ;; 3898 no) enabled=no; U_DISABLE_RENAMING=1 ;; 3899 *) ;; 3900 esac 3901fi; 3902echo "$as_me:$LINENO: result: $enabled" >&5 3903echo "${ECHO_T}$enabled" >&6 3904 3905 3906echo "$as_me:$LINENO: checking whether to enable function and data tracing" >&5 3907echo $ECHO_N "checking whether to enable function and data tracing... $ECHO_C" >&6 3908enabled=yes 3909U_ENABLE_TRACING=0 3910# Check whether --enable-tracing or --disable-tracing was given. 3911if test "${enable_tracing+set}" = set; then 3912 enableval="$enable_tracing" 3913 case "${enableval}" in 3914 yes|"") enabled=yes ;; 3915 no) enabled=no; U_ENABLE_TRACING=0 ;; 3916 *) ;; 3917 esac 3918fi; 3919echo "$as_me:$LINENO: result: $enabled" >&5 3920echo "${ECHO_T}$enabled" >&6 3921 3922 3923# Check whether --enable-rpath or --disable-rpath was given. 3924if test "${enable_rpath+set}" = set; then 3925 enableval="$enable_rpath" 3926 case "${enableval}" in 3927 yes|"") ENABLE_RPATH=YES ;; 3928 no) ;; 3929 *) ;; 3930 esac 3931else 3932 ENABLE_RPATH=NO 3933 3934fi; 3935 3936 3937 3938echo "$as_me:$LINENO: checking for definition of U_INLINE for C" >&5 3939echo $ECHO_N "checking for definition of U_INLINE for C... $ECHO_C" >&6 3940if test "${ac_cv_c_inline+set}" = set; then 3941 echo $ECHO_N "(cached) $ECHO_C" >&6 3942else 3943 ac_cv_c_inline=no 3944for ac_kw in inline __inline__ __inline; do 3945 cat >conftest.$ac_ext <<_ACEOF 3946/* confdefs.h. */ 3947_ACEOF 3948cat confdefs.h >>conftest.$ac_ext 3949cat >>conftest.$ac_ext <<_ACEOF 3950/* end confdefs.h. */ 3951 3952int 3953main () 3954{ 3955return 0;} $ac_kw int foo() { 3956 ; 3957 return 0; 3958} 3959_ACEOF 3960rm -f conftest.$ac_objext 3961if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3962 (eval $ac_compile) 2>conftest.er1 3963 ac_status=$? 3964 grep -v '^ *+' conftest.er1 >conftest.err 3965 rm -f conftest.er1 3966 cat conftest.err >&5 3967 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3968 (exit $ac_status); } && 3969 { ac_try='test -z "$ac_c_werror_flag" 3970 || test ! -s conftest.err' 3971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3972 (eval $ac_try) 2>&5 3973 ac_status=$? 3974 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3975 (exit $ac_status); }; } && 3976 { ac_try='test -s conftest.$ac_objext' 3977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3978 (eval $ac_try) 2>&5 3979 ac_status=$? 3980 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3981 (exit $ac_status); }; }; then 3982 ac_cv_c_inline=$ac_kw; break 3983else 3984 echo "$as_me: failed program was:" >&5 3985sed 's/^/| /' conftest.$ac_ext >&5 3986 3987fi 3988rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3989 done 3990 3991fi 3992echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 3993echo "${ECHO_T}$ac_cv_c_inline" >&6 3994case "$ac_cv_c_inline" in 3995 yes) U_INLINE= "inline" ;; 3996 no ) U_INLINE= ;; 3997 *) U_INLINE=$ac_cv_c_inline ;; 3998esac 3999 4000 4001threads=true 4002 4003# Check whether --enable-threads or --disable-threads was given. 4004if test "${enable_threads+set}" = set; then 4005 enableval="$enable_threads" 4006 case "${enableval}" in 4007 yes) threads=true ;; 4008 no) threads=false ;; 4009 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-threads" >&5 4010echo "$as_me: error: bad value ${enableval} for --enable-threads" >&2;} 4011 { (exit 1); exit 1; }; } ;; 4012 esac 4013else 4014 threads=true 4015fi; 4016 4017if test "$threads" = true; then 4018 THREADS_TRUE= 4019else 4020 THREADS_TRUE='#' 4021fi 4022 4023ICU_USE_THREADS=0 4024OLD_LIBS=${LIBS} 4025 4026if test $threads = true; then 4027 4028 4029echo "$as_me:$LINENO: checking for pthread_attr_init in -lpthread" >&5 4030echo $ECHO_N "checking for pthread_attr_init in -lpthread... $ECHO_C" >&6 4031if test "${ac_cv_lib_pthread_pthread_attr_init+set}" = set; then 4032 echo $ECHO_N "(cached) $ECHO_C" >&6 4033else 4034 ac_check_lib_save_LIBS=$LIBS 4035LIBS="-lpthread $LIBS" 4036cat >conftest.$ac_ext <<_ACEOF 4037/* confdefs.h. */ 4038_ACEOF 4039cat confdefs.h >>conftest.$ac_ext 4040cat >>conftest.$ac_ext <<_ACEOF 4041/* end confdefs.h. */ 4042 4043/* Override any gcc2 internal prototype to avoid an error. */ 4044#ifdef __cplusplus 4045extern "C" 4046#endif 4047/* We use char because int might match the return type of a gcc2 4048 builtin and then its argument prototype would still apply. */ 4049char pthread_attr_init (); 4050int 4051main () 4052{ 4053pthread_attr_init (); 4054 ; 4055 return 0; 4056} 4057_ACEOF 4058rm -f conftest.$ac_objext conftest$ac_exeext 4059if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4060 (eval $ac_link) 2>conftest.er1 4061 ac_status=$? 4062 grep -v '^ *+' conftest.er1 >conftest.err 4063 rm -f conftest.er1 4064 cat conftest.err >&5 4065 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4066 (exit $ac_status); } && 4067 { ac_try='test -z "$ac_c_werror_flag" 4068 || test ! -s conftest.err' 4069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4070 (eval $ac_try) 2>&5 4071 ac_status=$? 4072 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4073 (exit $ac_status); }; } && 4074 { ac_try='test -s conftest$ac_exeext' 4075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4076 (eval $ac_try) 2>&5 4077 ac_status=$? 4078 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4079 (exit $ac_status); }; }; then 4080 ac_cv_lib_pthread_pthread_attr_init=yes 4081else 4082 echo "$as_me: failed program was:" >&5 4083sed 's/^/| /' conftest.$ac_ext >&5 4084 4085ac_cv_lib_pthread_pthread_attr_init=no 4086fi 4087rm -f conftest.err conftest.$ac_objext \ 4088 conftest$ac_exeext conftest.$ac_ext 4089LIBS=$ac_check_lib_save_LIBS 4090fi 4091echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_attr_init" >&5 4092echo "${ECHO_T}$ac_cv_lib_pthread_pthread_attr_init" >&6 4093if test $ac_cv_lib_pthread_pthread_attr_init = yes; then 4094 cat >>confdefs.h <<_ACEOF 4095#define HAVE_LIBPTHREAD 1 4096_ACEOF 4097 4098 LIBS="-lpthread $LIBS" 4099 4100fi 4101 4102 if test $ac_cv_lib_pthread_pthread_attr_init = yes; then 4103 ICU_USE_THREADS=1 4104 else 4105 4106 4107echo "$as_me:$LINENO: checking for library containing pthread_mutex_destroy" >&5 4108echo $ECHO_N "checking for library containing pthread_mutex_destroy... $ECHO_C" >&6 4109if test "${ac_cv_search_pthread_mutex_destroy+set}" = set; then 4110 echo $ECHO_N "(cached) $ECHO_C" >&6 4111else 4112 ac_func_search_save_LIBS="$LIBS" 4113ac_cv_search_pthread_mutex_destroy="no" 4114for i in pthread pthreads c_r ; do 4115LIBS="-l$i $ac_func_search_save_LIBS" 4116cat >conftest.$ac_ext <<_ACEOF 4117/* confdefs.h. */ 4118_ACEOF 4119cat confdefs.h >>conftest.$ac_ext 4120cat >>conftest.$ac_ext <<_ACEOF 4121/* end confdefs.h. */ 4122 4123/* Override any gcc2 internal prototype to avoid an error. */ 4124#ifdef __cplusplus 4125extern "C" 4126#endif 4127/* We use char because int might match the return type of a gcc2 4128 builtin and then its argument prototype would still apply. */ 4129char pthread_mutex_destroy (); 4130int 4131main () 4132{ 4133pthread_mutex_destroy (); 4134 ; 4135 return 0; 4136} 4137_ACEOF 4138rm -f conftest.$ac_objext conftest$ac_exeext 4139if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4140 (eval $ac_link) 2>conftest.er1 4141 ac_status=$? 4142 grep -v '^ *+' conftest.er1 >conftest.err 4143 rm -f conftest.er1 4144 cat conftest.err >&5 4145 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4146 (exit $ac_status); } && 4147 { ac_try='test -z "$ac_c_werror_flag" 4148 || test ! -s conftest.err' 4149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4150 (eval $ac_try) 2>&5 4151 ac_status=$? 4152 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4153 (exit $ac_status); }; } && 4154 { ac_try='test -s conftest$ac_exeext' 4155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4156 (eval $ac_try) 2>&5 4157 ac_status=$? 4158 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4159 (exit $ac_status); }; }; then 4160 ac_cv_search_pthread_mutex_destroy="-l$i" 4161break 4162else 4163 echo "$as_me: failed program was:" >&5 4164sed 's/^/| /' conftest.$ac_ext >&5 4165 4166fi 4167rm -f conftest.err conftest.$ac_objext \ 4168 conftest$ac_exeext conftest.$ac_ext 4169done 4170if test "$ac_cv_search_pthread_mutex_destroy" = "no"; then 4171cat >conftest.$ac_ext <<_ACEOF 4172/* confdefs.h. */ 4173_ACEOF 4174cat confdefs.h >>conftest.$ac_ext 4175cat >>conftest.$ac_ext <<_ACEOF 4176/* end confdefs.h. */ 4177 4178/* Override any gcc2 internal prototype to avoid an error. */ 4179#ifdef __cplusplus 4180extern "C" 4181#endif 4182/* We use char because int might match the return type of a gcc2 4183 builtin and then its argument prototype would still apply. */ 4184char pthread_mutex_destroy (); 4185int 4186main () 4187{ 4188pthread_mutex_destroy (); 4189 ; 4190 return 0; 4191} 4192_ACEOF 4193rm -f conftest.$ac_objext conftest$ac_exeext 4194if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4195 (eval $ac_link) 2>conftest.er1 4196 ac_status=$? 4197 grep -v '^ *+' conftest.er1 >conftest.err 4198 rm -f conftest.er1 4199 cat conftest.err >&5 4200 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4201 (exit $ac_status); } && 4202 { ac_try='test -z "$ac_c_werror_flag" 4203 || test ! -s conftest.err' 4204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4205 (eval $ac_try) 2>&5 4206 ac_status=$? 4207 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4208 (exit $ac_status); }; } && 4209 { ac_try='test -s conftest$ac_exeext' 4210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4211 (eval $ac_try) 2>&5 4212 ac_status=$? 4213 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4214 (exit $ac_status); }; }; then 4215 ac_cv_search_pthread_mutex_destroy="none required" 4216else 4217 echo "$as_me: failed program was:" >&5 4218sed 's/^/| /' conftest.$ac_ext >&5 4219 4220fi 4221rm -f conftest.err conftest.$ac_objext \ 4222 conftest$ac_exeext conftest.$ac_ext 4223fi 4224LIBS="$ac_func_search_save_LIBS" 4225fi 4226echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_destroy" >&5 4227echo "${ECHO_T}$ac_cv_search_pthread_mutex_destroy" >&6 4228if test "$ac_cv_search_pthread_mutex_destroy" != "no"; then 4229 test "$ac_cv_search_pthread_mutex_destroy" = "none required" || LIBS="$ac_cv_search_pthread_mutex_destroy $LIBS" 4230 4231else : 4232 4233fi 4234 4235 if test "$ac_cv_search_pthread_mutex_destroy" != no; then 4236 ICU_USE_THREADS=1 4237 else 4238 4239echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5 4240echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6 4241if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then 4242 echo $ECHO_N "(cached) $ECHO_C" >&6 4243else 4244 ac_check_lib_save_LIBS=$LIBS 4245LIBS="-lpthread $LIBS" 4246cat >conftest.$ac_ext <<_ACEOF 4247/* confdefs.h. */ 4248_ACEOF 4249cat confdefs.h >>conftest.$ac_ext 4250cat >>conftest.$ac_ext <<_ACEOF 4251/* end confdefs.h. */ 4252 4253/* Override any gcc2 internal prototype to avoid an error. */ 4254#ifdef __cplusplus 4255extern "C" 4256#endif 4257/* We use char because int might match the return type of a gcc2 4258 builtin and then its argument prototype would still apply. */ 4259char pthread_mutex_init (); 4260int 4261main () 4262{ 4263pthread_mutex_init (); 4264 ; 4265 return 0; 4266} 4267_ACEOF 4268rm -f conftest.$ac_objext conftest$ac_exeext 4269if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4270 (eval $ac_link) 2>conftest.er1 4271 ac_status=$? 4272 grep -v '^ *+' conftest.er1 >conftest.err 4273 rm -f conftest.er1 4274 cat conftest.err >&5 4275 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4276 (exit $ac_status); } && 4277 { ac_try='test -z "$ac_c_werror_flag" 4278 || test ! -s conftest.err' 4279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4280 (eval $ac_try) 2>&5 4281 ac_status=$? 4282 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4283 (exit $ac_status); }; } && 4284 { ac_try='test -s conftest$ac_exeext' 4285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4286 (eval $ac_try) 2>&5 4287 ac_status=$? 4288 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4289 (exit $ac_status); }; }; then 4290 ac_cv_lib_pthread_pthread_mutex_init=yes 4291else 4292 echo "$as_me: failed program was:" >&5 4293sed 's/^/| /' conftest.$ac_ext >&5 4294 4295ac_cv_lib_pthread_pthread_mutex_init=no 4296fi 4297rm -f conftest.err conftest.$ac_objext \ 4298 conftest$ac_exeext conftest.$ac_ext 4299LIBS=$ac_check_lib_save_LIBS 4300fi 4301echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5 4302echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6 4303if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then 4304 cat >>confdefs.h <<_ACEOF 4305#define HAVE_LIBPTHREAD 1 4306_ACEOF 4307 4308 LIBS="-lpthread $LIBS" 4309 4310fi 4311 4312 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then 4313 ICU_USE_THREADS=1 4314 fi 4315 fi 4316 4317 echo "$as_me:$LINENO: checking for pthread_mutex_lock" >&5 4318echo $ECHO_N "checking for pthread_mutex_lock... $ECHO_C" >&6 4319if test "${ac_cv_func_pthread_mutex_lock+set}" = set; then 4320 echo $ECHO_N "(cached) $ECHO_C" >&6 4321else 4322 cat >conftest.$ac_ext <<_ACEOF 4323/* confdefs.h. */ 4324_ACEOF 4325cat confdefs.h >>conftest.$ac_ext 4326cat >>conftest.$ac_ext <<_ACEOF 4327/* end confdefs.h. */ 4328/* Define pthread_mutex_lock to an innocuous variant, in case <limits.h> declares pthread_mutex_lock. 4329 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 4330#define pthread_mutex_lock innocuous_pthread_mutex_lock 4331 4332/* System header to define __stub macros and hopefully few prototypes, 4333 which can conflict with char pthread_mutex_lock (); below. 4334 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4335 <limits.h> exists even on freestanding compilers. */ 4336 4337#ifdef __STDC__ 4338# include <limits.h> 4339#else 4340# include <assert.h> 4341#endif 4342 4343#undef pthread_mutex_lock 4344 4345/* Override any gcc2 internal prototype to avoid an error. */ 4346#ifdef __cplusplus 4347extern "C" 4348{ 4349#endif 4350/* We use char because int might match the return type of a gcc2 4351 builtin and then its argument prototype would still apply. */ 4352char pthread_mutex_lock (); 4353/* The GNU C library defines this for functions which it implements 4354 to always fail with ENOSYS. Some functions are actually named 4355 something starting with __ and the normal name is an alias. */ 4356#if defined (__stub_pthread_mutex_lock) || defined (__stub___pthread_mutex_lock) 4357choke me 4358#else 4359char (*f) () = pthread_mutex_lock; 4360#endif 4361#ifdef __cplusplus 4362} 4363#endif 4364 4365int 4366main () 4367{ 4368return f != pthread_mutex_lock; 4369 ; 4370 return 0; 4371} 4372_ACEOF 4373rm -f conftest.$ac_objext conftest$ac_exeext 4374if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4375 (eval $ac_link) 2>conftest.er1 4376 ac_status=$? 4377 grep -v '^ *+' conftest.er1 >conftest.err 4378 rm -f conftest.er1 4379 cat conftest.err >&5 4380 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4381 (exit $ac_status); } && 4382 { ac_try='test -z "$ac_c_werror_flag" 4383 || test ! -s conftest.err' 4384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4385 (eval $ac_try) 2>&5 4386 ac_status=$? 4387 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4388 (exit $ac_status); }; } && 4389 { ac_try='test -s conftest$ac_exeext' 4390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4391 (eval $ac_try) 2>&5 4392 ac_status=$? 4393 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4394 (exit $ac_status); }; }; then 4395 ac_cv_func_pthread_mutex_lock=yes 4396else 4397 echo "$as_me: failed program was:" >&5 4398sed 's/^/| /' conftest.$ac_ext >&5 4399 4400ac_cv_func_pthread_mutex_lock=no 4401fi 4402rm -f conftest.err conftest.$ac_objext \ 4403 conftest$ac_exeext conftest.$ac_ext 4404fi 4405echo "$as_me:$LINENO: result: $ac_cv_func_pthread_mutex_lock" >&5 4406echo "${ECHO_T}$ac_cv_func_pthread_mutex_lock" >&6 4407 4408 4409 if test $ac_cv_func_pthread_mutex_lock = yes; then 4410 ICU_USE_THREADS=1 4411 fi 4412 fi 4413 case "${host}" in 4414 *-pc-cygwin*|*-pc-mingw*) 4415 ICU_USE_THREADS=1 4416 if test "$ac_cv_c_compiler_gnu" = no; then 4417 ICU_USE_THREADS=1 4418 if test $ENABLE_DEBUG = 1; then 4419 CFLAGS="${CFLAGS} /MDd" 4420 CXXFLAGS="${CXXFLAGS} /MDd" 4421 else 4422 CFLAGS="${CFLAGS} /MD" 4423 CXXFLAGS="${CXXFLAGS} /MD" 4424 fi 4425 fi ;; 4426 *-*-hpux*) 4427 case "${icu_cv_host_frag}" in 4428 mh-hpux-acc) 4429 OLD_CXXFLAGS="${CXXFLAGS}" 4430 CXXFLAGS="${CXXFLAGS} -mt" 4431 if test x"`${CXX} ${CXXFLAGS} 2>&1`" != x""; then 4432 CXXFLAGS="${OLD_CXXFLAGS}" 4433 fi 4434 ;; 4435 esac 4436 ;; 4437 esac 4438fi 4439 4440 4441 4442# Check whether --enable-weak-threads or --disable-weak-threads was given. 4443if test "${enable_weak_threads+set}" = set; then 4444 enableval="$enable_weak_threads" 4445 case "${enableval}" in 4446 yes) 4447 LIB_THREAD="${LIBS%${OLD_LIBS}}" 4448 LIBS=${OLD_LIBS} 4449 ;; 4450 no) ;; 4451 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-weak-threads" >&5 4452echo "$as_me: error: bad value ${enableval} for --enable-weak-threads" >&2;} 4453 { (exit 1); exit 1; }; } ;; 4454 esac 4455fi; 4456 4457 4458 4459# The AC_FUNC_MMAP macro doesn't work properly. It seems to be too specific. 4460# Do this check instead. 4461HAVE_MMAP=0 4462echo "$as_me:$LINENO: checking for mmap" >&5 4463echo $ECHO_N "checking for mmap... $ECHO_C" >&6 4464if test "${ac_cv_func_mmap_ok+set}" = set; then 4465 echo $ECHO_N "(cached) $ECHO_C" >&6 4466else 4467 cat >conftest.$ac_ext <<_ACEOF 4468/* confdefs.h. */ 4469_ACEOF 4470cat confdefs.h >>conftest.$ac_ext 4471cat >>conftest.$ac_ext <<_ACEOF 4472/* end confdefs.h. */ 4473 4474#include <unistd.h> 4475#include <sys/mman.h> 4476#include <sys/stat.h> 4477#include <fcntl.h> 4478 4479int 4480main () 4481{ 4482 mmap((void *)0, 0, PROT_READ, 0, 0, 0); 4483 ; 4484 return 0; 4485} 4486_ACEOF 4487rm -f conftest.$ac_objext conftest$ac_exeext 4488if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4489 (eval $ac_link) 2>conftest.er1 4490 ac_status=$? 4491 grep -v '^ *+' conftest.er1 >conftest.err 4492 rm -f conftest.er1 4493 cat conftest.err >&5 4494 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4495 (exit $ac_status); } && 4496 { ac_try='test -z "$ac_c_werror_flag" 4497 || test ! -s conftest.err' 4498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4499 (eval $ac_try) 2>&5 4500 ac_status=$? 4501 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4502 (exit $ac_status); }; } && 4503 { ac_try='test -s conftest$ac_exeext' 4504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4505 (eval $ac_try) 2>&5 4506 ac_status=$? 4507 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4508 (exit $ac_status); }; }; then 4509 ac_cv_func_mmap_ok=yes 4510else 4511 echo "$as_me: failed program was:" >&5 4512sed 's/^/| /' conftest.$ac_ext >&5 4513 4514ac_cv_func_mmap_ok=no 4515fi 4516rm -f conftest.err conftest.$ac_objext \ 4517 conftest$ac_exeext conftest.$ac_ext 4518fi 4519 4520echo "$as_me:$LINENO: result: $ac_cv_func_mmap_ok" >&5 4521echo "${ECHO_T}$ac_cv_func_mmap_ok" >&6 4522if test $ac_cv_func_mmap_ok = yes 4523then 4524 HAVE_MMAP=1 4525fi 4526 4527 4528GENCCODE_ASSEMBLY= 4529case "${host}" in 4530i*86-*-linux*|x86_64-*-linux*|powerpc*-*-linux*|i*86-*-*bsd*|i*86-pc-gnu) 4531 if test "$GCC" = yes; then 4532 GENCCODE_ASSEMBLY="-a gcc" 4533 fi ;; 4534i*86-*-solaris*) 4535 if test "$GCC" = yes; then 4536 GENCCODE_ASSEMBLY="-a gcc" 4537 else 4538 GENCCODE_ASSEMBLY="-a sun-x86" 4539 fi ;; 4540sparc-*-solaris*) 4541 GENCCODE_ASSEMBLY="-a sun" 4542 ;; 4543ia64-*-hpux*) 4544 GENCCODE_ASSEMBLY="-a aCC-ia64" 4545 ;; 4546esac 4547 4548 4549 4550ac_ext=c 4551ac_cpp='$CPP $CPPFLAGS' 4552ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4553ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4554ac_compiler_gnu=$ac_cv_c_compiler_gnu 4555echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 4556echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 4557# On Suns, sometimes $CPP names a directory. 4558if test -n "$CPP" && test -d "$CPP"; then 4559 CPP= 4560fi 4561if test -z "$CPP"; then 4562 if test "${ac_cv_prog_CPP+set}" = set; then 4563 echo $ECHO_N "(cached) $ECHO_C" >&6 4564else 4565 # Double quotes because CPP needs to be expanded 4566 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4567 do 4568 ac_preproc_ok=false 4569for ac_c_preproc_warn_flag in '' yes 4570do 4571 # Use a header file that comes with gcc, so configuring glibc 4572 # with a fresh cross-compiler works. 4573 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4574 # <limits.h> exists even on freestanding compilers. 4575 # On the NeXT, cc -E runs the code through the compiler's parser, 4576 # not just through cpp. "Syntax error" is here to catch this case. 4577 cat >conftest.$ac_ext <<_ACEOF 4578/* confdefs.h. */ 4579_ACEOF 4580cat confdefs.h >>conftest.$ac_ext 4581cat >>conftest.$ac_ext <<_ACEOF 4582/* end confdefs.h. */ 4583#ifdef __STDC__ 4584# include <limits.h> 4585#else 4586# include <assert.h> 4587#endif 4588 Syntax error 4589_ACEOF 4590if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4591 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4592 ac_status=$? 4593 grep -v '^ *+' conftest.er1 >conftest.err 4594 rm -f conftest.er1 4595 cat conftest.err >&5 4596 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4597 (exit $ac_status); } >/dev/null; then 4598 if test -s conftest.err; then 4599 ac_cpp_err=$ac_c_preproc_warn_flag 4600 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 4601 else 4602 ac_cpp_err= 4603 fi 4604else 4605 ac_cpp_err=yes 4606fi 4607if test -z "$ac_cpp_err"; then 4608 : 4609else 4610 echo "$as_me: failed program was:" >&5 4611sed 's/^/| /' conftest.$ac_ext >&5 4612 4613 # Broken: fails on valid input. 4614continue 4615fi 4616rm -f conftest.err conftest.$ac_ext 4617 4618 # OK, works on sane cases. Now check whether non-existent headers 4619 # can be detected and how. 4620 cat >conftest.$ac_ext <<_ACEOF 4621/* confdefs.h. */ 4622_ACEOF 4623cat confdefs.h >>conftest.$ac_ext 4624cat >>conftest.$ac_ext <<_ACEOF 4625/* end confdefs.h. */ 4626#include <ac_nonexistent.h> 4627_ACEOF 4628if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4629 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4630 ac_status=$? 4631 grep -v '^ *+' conftest.er1 >conftest.err 4632 rm -f conftest.er1 4633 cat conftest.err >&5 4634 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4635 (exit $ac_status); } >/dev/null; then 4636 if test -s conftest.err; then 4637 ac_cpp_err=$ac_c_preproc_warn_flag 4638 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 4639 else 4640 ac_cpp_err= 4641 fi 4642else 4643 ac_cpp_err=yes 4644fi 4645if test -z "$ac_cpp_err"; then 4646 # Broken: success on invalid input. 4647continue 4648else 4649 echo "$as_me: failed program was:" >&5 4650sed 's/^/| /' conftest.$ac_ext >&5 4651 4652 # Passes both tests. 4653ac_preproc_ok=: 4654break 4655fi 4656rm -f conftest.err conftest.$ac_ext 4657 4658done 4659# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4660rm -f conftest.err conftest.$ac_ext 4661if $ac_preproc_ok; then 4662 break 4663fi 4664 4665 done 4666 ac_cv_prog_CPP=$CPP 4667 4668fi 4669 CPP=$ac_cv_prog_CPP 4670else 4671 ac_cv_prog_CPP=$CPP 4672fi 4673echo "$as_me:$LINENO: result: $CPP" >&5 4674echo "${ECHO_T}$CPP" >&6 4675ac_preproc_ok=false 4676for ac_c_preproc_warn_flag in '' yes 4677do 4678 # Use a header file that comes with gcc, so configuring glibc 4679 # with a fresh cross-compiler works. 4680 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4681 # <limits.h> exists even on freestanding compilers. 4682 # On the NeXT, cc -E runs the code through the compiler's parser, 4683 # not just through cpp. "Syntax error" is here to catch this case. 4684 cat >conftest.$ac_ext <<_ACEOF 4685/* confdefs.h. */ 4686_ACEOF 4687cat confdefs.h >>conftest.$ac_ext 4688cat >>conftest.$ac_ext <<_ACEOF 4689/* end confdefs.h. */ 4690#ifdef __STDC__ 4691# include <limits.h> 4692#else 4693# include <assert.h> 4694#endif 4695 Syntax error 4696_ACEOF 4697if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4698 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4699 ac_status=$? 4700 grep -v '^ *+' conftest.er1 >conftest.err 4701 rm -f conftest.er1 4702 cat conftest.err >&5 4703 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4704 (exit $ac_status); } >/dev/null; then 4705 if test -s conftest.err; then 4706 ac_cpp_err=$ac_c_preproc_warn_flag 4707 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 4708 else 4709 ac_cpp_err= 4710 fi 4711else 4712 ac_cpp_err=yes 4713fi 4714if test -z "$ac_cpp_err"; then 4715 : 4716else 4717 echo "$as_me: failed program was:" >&5 4718sed 's/^/| /' conftest.$ac_ext >&5 4719 4720 # Broken: fails on valid input. 4721continue 4722fi 4723rm -f conftest.err conftest.$ac_ext 4724 4725 # OK, works on sane cases. Now check whether non-existent headers 4726 # can be detected and how. 4727 cat >conftest.$ac_ext <<_ACEOF 4728/* confdefs.h. */ 4729_ACEOF 4730cat confdefs.h >>conftest.$ac_ext 4731cat >>conftest.$ac_ext <<_ACEOF 4732/* end confdefs.h. */ 4733#include <ac_nonexistent.h> 4734_ACEOF 4735if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4736 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4737 ac_status=$? 4738 grep -v '^ *+' conftest.er1 >conftest.err 4739 rm -f conftest.er1 4740 cat conftest.err >&5 4741 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4742 (exit $ac_status); } >/dev/null; then 4743 if test -s conftest.err; then 4744 ac_cpp_err=$ac_c_preproc_warn_flag 4745 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 4746 else 4747 ac_cpp_err= 4748 fi 4749else 4750 ac_cpp_err=yes 4751fi 4752if test -z "$ac_cpp_err"; then 4753 # Broken: success on invalid input. 4754continue 4755else 4756 echo "$as_me: failed program was:" >&5 4757sed 's/^/| /' conftest.$ac_ext >&5 4758 4759 # Passes both tests. 4760ac_preproc_ok=: 4761break 4762fi 4763rm -f conftest.err conftest.$ac_ext 4764 4765done 4766# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4767rm -f conftest.err conftest.$ac_ext 4768if $ac_preproc_ok; then 4769 : 4770else 4771 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 4772See \`config.log' for more details." >&5 4773echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 4774See \`config.log' for more details." >&2;} 4775 { (exit 1); exit 1; }; } 4776fi 4777 4778ac_ext=c 4779ac_cpp='$CPP $CPPFLAGS' 4780ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4781ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4782ac_compiler_gnu=$ac_cv_c_compiler_gnu 4783 4784 4785echo "$as_me:$LINENO: checking for egrep" >&5 4786echo $ECHO_N "checking for egrep... $ECHO_C" >&6 4787if test "${ac_cv_prog_egrep+set}" = set; then 4788 echo $ECHO_N "(cached) $ECHO_C" >&6 4789else 4790 if echo a | (grep -E '(a|b)') >/dev/null 2>&1 4791 then ac_cv_prog_egrep='grep -E' 4792 else ac_cv_prog_egrep='egrep' 4793 fi 4794fi 4795echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 4796echo "${ECHO_T}$ac_cv_prog_egrep" >&6 4797 EGREP=$ac_cv_prog_egrep 4798 4799 4800echo "$as_me:$LINENO: checking for ANSI C header files" >&5 4801echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 4802if test "${ac_cv_header_stdc+set}" = set; then 4803 echo $ECHO_N "(cached) $ECHO_C" >&6 4804else 4805 cat >conftest.$ac_ext <<_ACEOF 4806/* confdefs.h. */ 4807_ACEOF 4808cat confdefs.h >>conftest.$ac_ext 4809cat >>conftest.$ac_ext <<_ACEOF 4810/* end confdefs.h. */ 4811#include <stdlib.h> 4812#include <stdarg.h> 4813#include <string.h> 4814#include <float.h> 4815 4816int 4817main () 4818{ 4819 4820 ; 4821 return 0; 4822} 4823_ACEOF 4824rm -f conftest.$ac_objext 4825if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4826 (eval $ac_compile) 2>conftest.er1 4827 ac_status=$? 4828 grep -v '^ *+' conftest.er1 >conftest.err 4829 rm -f conftest.er1 4830 cat conftest.err >&5 4831 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4832 (exit $ac_status); } && 4833 { ac_try='test -z "$ac_c_werror_flag" 4834 || test ! -s conftest.err' 4835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4836 (eval $ac_try) 2>&5 4837 ac_status=$? 4838 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4839 (exit $ac_status); }; } && 4840 { ac_try='test -s conftest.$ac_objext' 4841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4842 (eval $ac_try) 2>&5 4843 ac_status=$? 4844 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4845 (exit $ac_status); }; }; then 4846 ac_cv_header_stdc=yes 4847else 4848 echo "$as_me: failed program was:" >&5 4849sed 's/^/| /' conftest.$ac_ext >&5 4850 4851ac_cv_header_stdc=no 4852fi 4853rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4854 4855if test $ac_cv_header_stdc = yes; then 4856 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4857 cat >conftest.$ac_ext <<_ACEOF 4858/* confdefs.h. */ 4859_ACEOF 4860cat confdefs.h >>conftest.$ac_ext 4861cat >>conftest.$ac_ext <<_ACEOF 4862/* end confdefs.h. */ 4863#include <string.h> 4864 4865_ACEOF 4866if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4867 $EGREP "memchr" >/dev/null 2>&1; then 4868 : 4869else 4870 ac_cv_header_stdc=no 4871fi 4872rm -f conftest* 4873 4874fi 4875 4876if test $ac_cv_header_stdc = yes; then 4877 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4878 cat >conftest.$ac_ext <<_ACEOF 4879/* confdefs.h. */ 4880_ACEOF 4881cat confdefs.h >>conftest.$ac_ext 4882cat >>conftest.$ac_ext <<_ACEOF 4883/* end confdefs.h. */ 4884#include <stdlib.h> 4885 4886_ACEOF 4887if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4888 $EGREP "free" >/dev/null 2>&1; then 4889 : 4890else 4891 ac_cv_header_stdc=no 4892fi 4893rm -f conftest* 4894 4895fi 4896 4897if test $ac_cv_header_stdc = yes; then 4898 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4899 if test "$cross_compiling" = yes; then 4900 : 4901else 4902 cat >conftest.$ac_ext <<_ACEOF 4903/* confdefs.h. */ 4904_ACEOF 4905cat confdefs.h >>conftest.$ac_ext 4906cat >>conftest.$ac_ext <<_ACEOF 4907/* end confdefs.h. */ 4908#include <ctype.h> 4909#if ((' ' & 0x0FF) == 0x020) 4910# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4911# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4912#else 4913# define ISLOWER(c) \ 4914 (('a' <= (c) && (c) <= 'i') \ 4915 || ('j' <= (c) && (c) <= 'r') \ 4916 || ('s' <= (c) && (c) <= 'z')) 4917# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4918#endif 4919 4920#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4921int 4922main () 4923{ 4924 int i; 4925 for (i = 0; i < 256; i++) 4926 if (XOR (islower (i), ISLOWER (i)) 4927 || toupper (i) != TOUPPER (i)) 4928 exit(2); 4929 exit (0); 4930} 4931_ACEOF 4932rm -f conftest$ac_exeext 4933if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4934 (eval $ac_link) 2>&5 4935 ac_status=$? 4936 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4937 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4939 (eval $ac_try) 2>&5 4940 ac_status=$? 4941 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4942 (exit $ac_status); }; }; then 4943 : 4944else 4945 echo "$as_me: program exited with status $ac_status" >&5 4946echo "$as_me: failed program was:" >&5 4947sed 's/^/| /' conftest.$ac_ext >&5 4948 4949( exit $ac_status ) 4950ac_cv_header_stdc=no 4951fi 4952rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4953fi 4954fi 4955fi 4956echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 4957echo "${ECHO_T}$ac_cv_header_stdc" >&6 4958if test $ac_cv_header_stdc = yes; then 4959 4960cat >>confdefs.h <<\_ACEOF 4961#define STDC_HEADERS 1 4962_ACEOF 4963 4964fi 4965 4966# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4967 4968 4969 4970 4971 4972 4973 4974 4975 4976for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4977 inttypes.h stdint.h unistd.h 4978do 4979as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4980echo "$as_me:$LINENO: checking for $ac_header" >&5 4981echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4982if eval "test \"\${$as_ac_Header+set}\" = set"; then 4983 echo $ECHO_N "(cached) $ECHO_C" >&6 4984else 4985 cat >conftest.$ac_ext <<_ACEOF 4986/* confdefs.h. */ 4987_ACEOF 4988cat confdefs.h >>conftest.$ac_ext 4989cat >>conftest.$ac_ext <<_ACEOF 4990/* end confdefs.h. */ 4991$ac_includes_default 4992 4993#include <$ac_header> 4994_ACEOF 4995rm -f conftest.$ac_objext 4996if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4997 (eval $ac_compile) 2>conftest.er1 4998 ac_status=$? 4999 grep -v '^ *+' conftest.er1 >conftest.err 5000 rm -f conftest.er1 5001 cat conftest.err >&5 5002 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5003 (exit $ac_status); } && 5004 { ac_try='test -z "$ac_c_werror_flag" 5005 || test ! -s conftest.err' 5006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5007 (eval $ac_try) 2>&5 5008 ac_status=$? 5009 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5010 (exit $ac_status); }; } && 5011 { ac_try='test -s conftest.$ac_objext' 5012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5013 (eval $ac_try) 2>&5 5014 ac_status=$? 5015 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5016 (exit $ac_status); }; }; then 5017 eval "$as_ac_Header=yes" 5018else 5019 echo "$as_me: failed program was:" >&5 5020sed 's/^/| /' conftest.$ac_ext >&5 5021 5022eval "$as_ac_Header=no" 5023fi 5024rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5025fi 5026echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 5027echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 5028if test `eval echo '${'$as_ac_Header'}'` = yes; then 5029 cat >>confdefs.h <<_ACEOF 5030#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 5031_ACEOF 5032 5033fi 5034 5035done 5036 5037 5038 5039for ac_header in inttypes.h 5040do 5041as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 5042if eval "test \"\${$as_ac_Header+set}\" = set"; then 5043 echo "$as_me:$LINENO: checking for $ac_header" >&5 5044echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 5045if eval "test \"\${$as_ac_Header+set}\" = set"; then 5046 echo $ECHO_N "(cached) $ECHO_C" >&6 5047fi 5048echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 5049echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 5050else 5051 # Is the header compilable? 5052echo "$as_me:$LINENO: checking $ac_header usability" >&5 5053echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 5054cat >conftest.$ac_ext <<_ACEOF 5055/* confdefs.h. */ 5056_ACEOF 5057cat confdefs.h >>conftest.$ac_ext 5058cat >>conftest.$ac_ext <<_ACEOF 5059/* end confdefs.h. */ 5060$ac_includes_default 5061#include <$ac_header> 5062_ACEOF 5063rm -f conftest.$ac_objext 5064if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5065 (eval $ac_compile) 2>conftest.er1 5066 ac_status=$? 5067 grep -v '^ *+' conftest.er1 >conftest.err 5068 rm -f conftest.er1 5069 cat conftest.err >&5 5070 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5071 (exit $ac_status); } && 5072 { ac_try='test -z "$ac_c_werror_flag" 5073 || test ! -s conftest.err' 5074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5075 (eval $ac_try) 2>&5 5076 ac_status=$? 5077 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5078 (exit $ac_status); }; } && 5079 { ac_try='test -s conftest.$ac_objext' 5080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5081 (eval $ac_try) 2>&5 5082 ac_status=$? 5083 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5084 (exit $ac_status); }; }; then 5085 ac_header_compiler=yes 5086else 5087 echo "$as_me: failed program was:" >&5 5088sed 's/^/| /' conftest.$ac_ext >&5 5089 5090ac_header_compiler=no 5091fi 5092rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5093echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5094echo "${ECHO_T}$ac_header_compiler" >&6 5095 5096# Is the header present? 5097echo "$as_me:$LINENO: checking $ac_header presence" >&5 5098echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 5099cat >conftest.$ac_ext <<_ACEOF 5100/* confdefs.h. */ 5101_ACEOF 5102cat confdefs.h >>conftest.$ac_ext 5103cat >>conftest.$ac_ext <<_ACEOF 5104/* end confdefs.h. */ 5105#include <$ac_header> 5106_ACEOF 5107if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5108 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5109 ac_status=$? 5110 grep -v '^ *+' conftest.er1 >conftest.err 5111 rm -f conftest.er1 5112 cat conftest.err >&5 5113 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5114 (exit $ac_status); } >/dev/null; then 5115 if test -s conftest.err; then 5116 ac_cpp_err=$ac_c_preproc_warn_flag 5117 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 5118 else 5119 ac_cpp_err= 5120 fi 5121else 5122 ac_cpp_err=yes 5123fi 5124if test -z "$ac_cpp_err"; then 5125 ac_header_preproc=yes 5126else 5127 echo "$as_me: failed program was:" >&5 5128sed 's/^/| /' conftest.$ac_ext >&5 5129 5130 ac_header_preproc=no 5131fi 5132rm -f conftest.err conftest.$ac_ext 5133echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5134echo "${ECHO_T}$ac_header_preproc" >&6 5135 5136# So? What about this header? 5137case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5138 yes:no: ) 5139 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 5140echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 5141 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 5142echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 5143 ac_header_preproc=yes 5144 ;; 5145 no:yes:* ) 5146 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 5147echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 5148 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 5149echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 5150 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 5151echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 5152 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 5153echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 5154 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 5155echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 5156 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 5157echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 5158 ( 5159 cat <<\_ASBOX 5160## ------------------------------------------ ## 5161## Report this to the AC_PACKAGE_NAME lists. ## 5162## ------------------------------------------ ## 5163_ASBOX 5164 ) | 5165 sed "s/^/$as_me: WARNING: /" >&2 5166 ;; 5167esac 5168echo "$as_me:$LINENO: checking for $ac_header" >&5 5169echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 5170if eval "test \"\${$as_ac_Header+set}\" = set"; then 5171 echo $ECHO_N "(cached) $ECHO_C" >&6 5172else 5173 eval "$as_ac_Header=\$ac_header_preproc" 5174fi 5175echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 5176echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 5177 5178fi 5179if test `eval echo '${'$as_ac_Header'}'` = yes; then 5180 cat >>confdefs.h <<_ACEOF 5181#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 5182_ACEOF 5183 5184fi 5185 5186done 5187 5188if test $ac_cv_header_inttypes_h = no; then 5189 U_HAVE_INTTYPES_H=0 5190else 5191 U_HAVE_INTTYPES_H=1 5192fi 5193if test "$CC" = ccc; then 5194 echo "$as_me:$LINENO: result: \"C compiler set to CCC ${CC}\" " >&5 5195echo "${ECHO_T}\"C compiler set to CCC ${CC}\" " >&6 5196 case "${host}" in 5197 alpha*-*-*) U_HAVE_INTTYPES_H=0; 5198 esac 5199fi 5200 5201 5202 5203 5204# Check whether --with-iostream or --without-iostream was given. 5205if test "${with_iostream+set}" = set; then 5206 withval="$with_iostream" 5207 case "${withval}" in 5208 none) streams=none ;; 5209 old) streams=198506 ;; 5210 std) streams=199711 ;; 5211 auto) streams= ;; 5212 *) { { echo "$as_me:$LINENO: error: bad value ${withval} for --with-iostream" >&5 5213echo "$as_me: error: bad value ${withval} for --with-iostream" >&2;} 5214 { (exit 1); exit 1; }; } ;; 5215 esac 5216else 5217 streams= 5218fi; 5219 5220U_IOSTREAM_SOURCE=0 5221if test x$streams != xnone 5222then 5223 5224 5225 ac_ext=cc 5226ac_cpp='$CXXCPP $CPPFLAGS' 5227ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5228ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5229ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5230 5231 OLD_CXXFLAGS="${CXXFLAGS}" 5232 case "${icu_cv_host_frag}" in 5233 mh-hpux-acc) 5234 CXXFLAGS="${CXXFLAGS} -AA" 5235 ;; 5236 esac 5237 echo "$as_me:$LINENO: checking for iostream usability" >&5 5238echo $ECHO_N "checking for iostream usability... $ECHO_C" >&6 5239 5240cat >conftest.$ac_ext <<_ACEOF 5241/* confdefs.h. */ 5242_ACEOF 5243cat confdefs.h >>conftest.$ac_ext 5244cat >>conftest.$ac_ext <<_ACEOF 5245/* end confdefs.h. */ 5246#include <iostream> 5247int 5248main () 5249{ 5250 5251 ; 5252 return 0; 5253} 5254_ACEOF 5255rm -f conftest.$ac_objext 5256if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5257 (eval $ac_compile) 2>conftest.er1 5258 ac_status=$? 5259 grep -v '^ *+' conftest.er1 >conftest.err 5260 rm -f conftest.er1 5261 cat conftest.err >&5 5262 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5263 (exit $ac_status); } && 5264 { ac_try='test -z "$ac_cxx_werror_flag" 5265 || test ! -s conftest.err' 5266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5267 (eval $ac_try) 2>&5 5268 ac_status=$? 5269 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5270 (exit $ac_status); }; } && 5271 { ac_try='test -s conftest.$ac_objext' 5272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5273 (eval $ac_try) 2>&5 5274 ac_status=$? 5275 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5276 (exit $ac_status); }; }; then 5277 ac_cv_header_iostream=yes 5278else 5279 echo "$as_me: failed program was:" >&5 5280sed 's/^/| /' conftest.$ac_ext >&5 5281 5282ac_cv_header_iostream=no 5283fi 5284rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5285 if test $icu_cv_host_frag = mh-cygwin-msvc 5286 then 5287 ac_cv_header_iostream=yes 5288 fi 5289 echo "$as_me:$LINENO: result: $ac_cv_header_iostream" >&5 5290echo "${ECHO_T}$ac_cv_header_iostream" >&6 5291 if test $ac_cv_header_iostream = yes 5292 then 5293 U_IOSTREAM_SOURCE=199711 5294 else 5295 CXXFLAGS="${OLD_CXXFLAGS}" 5296 echo "$as_me:$LINENO: checking whether ostream in iostream.h is really defined" >&5 5297echo $ECHO_N "checking whether ostream in iostream.h is really defined... $ECHO_C" >&6 5298 if test "${ac_cv_iostream_ok+set}" = set; then 5299 echo $ECHO_N "(cached) $ECHO_C" >&6 5300else 5301 cat >conftest.$ac_ext <<_ACEOF 5302/* confdefs.h. */ 5303_ACEOF 5304cat confdefs.h >>conftest.$ac_ext 5305cat >>conftest.$ac_ext <<_ACEOF 5306/* end confdefs.h. */ 5307#include <iostream.h> 5308int 5309main () 5310{ 5311ostream &testout = cout; testout << "test" << endl; 5312 ; 5313 return 0; 5314} 5315_ACEOF 5316rm -f conftest.$ac_objext conftest$ac_exeext 5317if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5318 (eval $ac_link) 2>conftest.er1 5319 ac_status=$? 5320 grep -v '^ *+' conftest.er1 >conftest.err 5321 rm -f conftest.er1 5322 cat conftest.err >&5 5323 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5324 (exit $ac_status); } && 5325 { ac_try='test -z "$ac_cxx_werror_flag" 5326 || test ! -s conftest.err' 5327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5328 (eval $ac_try) 2>&5 5329 ac_status=$? 5330 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5331 (exit $ac_status); }; } && 5332 { ac_try='test -s conftest$ac_exeext' 5333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5334 (eval $ac_try) 2>&5 5335 ac_status=$? 5336 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5337 (exit $ac_status); }; }; then 5338 ac_cv_iostream_ok=yes 5339else 5340 echo "$as_me: failed program was:" >&5 5341sed 's/^/| /' conftest.$ac_ext >&5 5342 5343ac_cv_iostream_ok=no 5344fi 5345rm -f conftest.err conftest.$ac_objext \ 5346 conftest$ac_exeext conftest.$ac_ext 5347fi 5348 5349 echo "$as_me:$LINENO: result: $ac_cv_iostream_ok" >&5 5350echo "${ECHO_T}$ac_cv_iostream_ok" >&6 5351 if test $ac_cv_iostream_ok = yes 5352 then 5353 U_IOSTREAM_SOURCE=198506 5354 fi 5355 fi 5356 if test x$streams != x 5357 then 5358 if test $U_IOSTREAM_SOURCE -ge $streams 5359 then 5360 U_IOSTREAM_SOURCE=$streams 5361 case "${icu_cv_host_frag}" in 5362 mh-hpux-acc) 5363 if test $U_IOSTREAM_SOURCE -lt 199711; then 5364 CXXFLAGS=${OLD_CXXFLAGS} 5365 fi 5366 ;; 5367 esac 5368 else 5369 { { echo "$as_me:$LINENO: error: ${withval} iostream is not available" >&5 5370echo "$as_me: error: ${withval} iostream is not available" >&2;} 5371 { (exit 1); exit 1; }; } 5372 fi 5373 fi 5374fi 5375 5376ac_ext=c 5377ac_cpp='$CPP $CPPFLAGS' 5378ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5379ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5380ac_compiler_gnu=$ac_cv_c_compiler_gnu 5381 5382 5383echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 5384echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6 5385if test "${ac_cv_c_bigendian+set}" = set; then 5386 echo $ECHO_N "(cached) $ECHO_C" >&6 5387else 5388 # See if sys/param.h defines the BYTE_ORDER macro. 5389cat >conftest.$ac_ext <<_ACEOF 5390/* confdefs.h. */ 5391_ACEOF 5392cat confdefs.h >>conftest.$ac_ext 5393cat >>conftest.$ac_ext <<_ACEOF 5394/* end confdefs.h. */ 5395#include <sys/types.h> 5396#include <sys/param.h> 5397 5398int 5399main () 5400{ 5401#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN 5402 bogus endian macros 5403#endif 5404 5405 ; 5406 return 0; 5407} 5408_ACEOF 5409rm -f conftest.$ac_objext 5410if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5411 (eval $ac_compile) 2>conftest.er1 5412 ac_status=$? 5413 grep -v '^ *+' conftest.er1 >conftest.err 5414 rm -f conftest.er1 5415 cat conftest.err >&5 5416 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5417 (exit $ac_status); } && 5418 { ac_try='test -z "$ac_c_werror_flag" 5419 || test ! -s conftest.err' 5420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5421 (eval $ac_try) 2>&5 5422 ac_status=$? 5423 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5424 (exit $ac_status); }; } && 5425 { ac_try='test -s conftest.$ac_objext' 5426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5427 (eval $ac_try) 2>&5 5428 ac_status=$? 5429 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5430 (exit $ac_status); }; }; then 5431 # It does; now see whether it defined to BIG_ENDIAN or not. 5432cat >conftest.$ac_ext <<_ACEOF 5433/* confdefs.h. */ 5434_ACEOF 5435cat confdefs.h >>conftest.$ac_ext 5436cat >>conftest.$ac_ext <<_ACEOF 5437/* end confdefs.h. */ 5438#include <sys/types.h> 5439#include <sys/param.h> 5440 5441int 5442main () 5443{ 5444#if BYTE_ORDER != BIG_ENDIAN 5445 not big endian 5446#endif 5447 5448 ; 5449 return 0; 5450} 5451_ACEOF 5452rm -f conftest.$ac_objext 5453if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5454 (eval $ac_compile) 2>conftest.er1 5455 ac_status=$? 5456 grep -v '^ *+' conftest.er1 >conftest.err 5457 rm -f conftest.er1 5458 cat conftest.err >&5 5459 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5460 (exit $ac_status); } && 5461 { ac_try='test -z "$ac_c_werror_flag" 5462 || test ! -s conftest.err' 5463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5464 (eval $ac_try) 2>&5 5465 ac_status=$? 5466 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5467 (exit $ac_status); }; } && 5468 { ac_try='test -s conftest.$ac_objext' 5469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5470 (eval $ac_try) 2>&5 5471 ac_status=$? 5472 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5473 (exit $ac_status); }; }; then 5474 ac_cv_c_bigendian=yes 5475else 5476 echo "$as_me: failed program was:" >&5 5477sed 's/^/| /' conftest.$ac_ext >&5 5478 5479ac_cv_c_bigendian=no 5480fi 5481rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5482else 5483 echo "$as_me: failed program was:" >&5 5484sed 's/^/| /' conftest.$ac_ext >&5 5485 5486# It does not; compile a test program. 5487if test "$cross_compiling" = yes; then 5488 # try to guess the endianness by grepping values into an object file 5489 ac_cv_c_bigendian=unknown 5490 cat >conftest.$ac_ext <<_ACEOF 5491/* confdefs.h. */ 5492_ACEOF 5493cat confdefs.h >>conftest.$ac_ext 5494cat >>conftest.$ac_ext <<_ACEOF 5495/* end confdefs.h. */ 5496short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 5497short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 5498void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } 5499short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 5500short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 5501void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } 5502int 5503main () 5504{ 5505 _ascii (); _ebcdic (); 5506 ; 5507 return 0; 5508} 5509_ACEOF 5510rm -f conftest.$ac_objext 5511if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5512 (eval $ac_compile) 2>conftest.er1 5513 ac_status=$? 5514 grep -v '^ *+' conftest.er1 >conftest.err 5515 rm -f conftest.er1 5516 cat conftest.err >&5 5517 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5518 (exit $ac_status); } && 5519 { ac_try='test -z "$ac_c_werror_flag" 5520 || test ! -s conftest.err' 5521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5522 (eval $ac_try) 2>&5 5523 ac_status=$? 5524 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5525 (exit $ac_status); }; } && 5526 { ac_try='test -s conftest.$ac_objext' 5527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5528 (eval $ac_try) 2>&5 5529 ac_status=$? 5530 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5531 (exit $ac_status); }; }; then 5532 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then 5533 ac_cv_c_bigendian=yes 5534fi 5535if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 5536 if test "$ac_cv_c_bigendian" = unknown; then 5537 ac_cv_c_bigendian=no 5538 else 5539 # finding both strings is unlikely to happen, but who knows? 5540 ac_cv_c_bigendian=unknown 5541 fi 5542fi 5543else 5544 echo "$as_me: failed program was:" >&5 5545sed 's/^/| /' conftest.$ac_ext >&5 5546 5547fi 5548rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5549else 5550 cat >conftest.$ac_ext <<_ACEOF 5551/* confdefs.h. */ 5552_ACEOF 5553cat confdefs.h >>conftest.$ac_ext 5554cat >>conftest.$ac_ext <<_ACEOF 5555/* end confdefs.h. */ 5556int 5557main () 5558{ 5559 /* Are we little or big endian? From Harbison&Steele. */ 5560 union 5561 { 5562 long l; 5563 char c[sizeof (long)]; 5564 } u; 5565 u.l = 1; 5566 exit (u.c[sizeof (long) - 1] == 1); 5567} 5568_ACEOF 5569rm -f conftest$ac_exeext 5570if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5571 (eval $ac_link) 2>&5 5572 ac_status=$? 5573 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5574 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 5575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5576 (eval $ac_try) 2>&5 5577 ac_status=$? 5578 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5579 (exit $ac_status); }; }; then 5580 ac_cv_c_bigendian=no 5581else 5582 echo "$as_me: program exited with status $ac_status" >&5 5583echo "$as_me: failed program was:" >&5 5584sed 's/^/| /' conftest.$ac_ext >&5 5585 5586( exit $ac_status ) 5587ac_cv_c_bigendian=yes 5588fi 5589rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 5590fi 5591fi 5592rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5593fi 5594echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 5595echo "${ECHO_T}$ac_cv_c_bigendian" >&6 5596case $ac_cv_c_bigendian in 5597 yes) 5598 5599cat >>confdefs.h <<\_ACEOF 5600#define WORDS_BIGENDIAN 1 5601_ACEOF 5602 ;; 5603 no) 5604 ;; 5605 *) 5606 { { echo "$as_me:$LINENO: error: unknown endianness 5607presetting ac_cv_c_bigendian=no (or yes) will help" >&5 5608echo "$as_me: error: unknown endianness 5609presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} 5610 { (exit 1); exit 1; }; } ;; 5611esac 5612 5613if test $ac_cv_c_bigendian = no; then 5614U_IS_BIG_ENDIAN=0 5615U_ENDIAN_CHAR="l" 5616else 5617U_IS_BIG_ENDIAN=1 5618U_ENDIAN_CHAR="b" 5619fi 5620 5621 5622U_HAVE_NL_LANGINFO_CODESET=0 5623U_NL_LANGINFO_CODESET=-1 5624echo "$as_me:$LINENO: checking for nl_langinfo" >&5 5625echo $ECHO_N "checking for nl_langinfo... $ECHO_C" >&6 5626if test "${ac_cv_func_nl_langinfo+set}" = set; then 5627 echo $ECHO_N "(cached) $ECHO_C" >&6 5628else 5629 cat >conftest.$ac_ext <<_ACEOF 5630/* confdefs.h. */ 5631_ACEOF 5632cat confdefs.h >>conftest.$ac_ext 5633cat >>conftest.$ac_ext <<_ACEOF 5634/* end confdefs.h. */ 5635/* Define nl_langinfo to an innocuous variant, in case <limits.h> declares nl_langinfo. 5636 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 5637#define nl_langinfo innocuous_nl_langinfo 5638 5639/* System header to define __stub macros and hopefully few prototypes, 5640 which can conflict with char nl_langinfo (); below. 5641 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5642 <limits.h> exists even on freestanding compilers. */ 5643 5644#ifdef __STDC__ 5645# include <limits.h> 5646#else 5647# include <assert.h> 5648#endif 5649 5650#undef nl_langinfo 5651 5652/* Override any gcc2 internal prototype to avoid an error. */ 5653#ifdef __cplusplus 5654extern "C" 5655{ 5656#endif 5657/* We use char because int might match the return type of a gcc2 5658 builtin and then its argument prototype would still apply. */ 5659char nl_langinfo (); 5660/* The GNU C library defines this for functions which it implements 5661 to always fail with ENOSYS. Some functions are actually named 5662 something starting with __ and the normal name is an alias. */ 5663#if defined (__stub_nl_langinfo) || defined (__stub___nl_langinfo) 5664choke me 5665#else 5666char (*f) () = nl_langinfo; 5667#endif 5668#ifdef __cplusplus 5669} 5670#endif 5671 5672int 5673main () 5674{ 5675return f != nl_langinfo; 5676 ; 5677 return 0; 5678} 5679_ACEOF 5680rm -f conftest.$ac_objext conftest$ac_exeext 5681if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5682 (eval $ac_link) 2>conftest.er1 5683 ac_status=$? 5684 grep -v '^ *+' conftest.er1 >conftest.err 5685 rm -f conftest.er1 5686 cat conftest.err >&5 5687 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5688 (exit $ac_status); } && 5689 { ac_try='test -z "$ac_c_werror_flag" 5690 || test ! -s conftest.err' 5691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5692 (eval $ac_try) 2>&5 5693 ac_status=$? 5694 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5695 (exit $ac_status); }; } && 5696 { ac_try='test -s conftest$ac_exeext' 5697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5698 (eval $ac_try) 2>&5 5699 ac_status=$? 5700 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5701 (exit $ac_status); }; }; then 5702 ac_cv_func_nl_langinfo=yes 5703else 5704 echo "$as_me: failed program was:" >&5 5705sed 's/^/| /' conftest.$ac_ext >&5 5706 5707ac_cv_func_nl_langinfo=no 5708fi 5709rm -f conftest.err conftest.$ac_objext \ 5710 conftest$ac_exeext conftest.$ac_ext 5711fi 5712echo "$as_me:$LINENO: result: $ac_cv_func_nl_langinfo" >&5 5713echo "${ECHO_T}$ac_cv_func_nl_langinfo" >&6 5714if test $ac_cv_func_nl_langinfo = yes; then 5715 U_HAVE_NL_LANGINFO=1 5716else 5717 U_HAVE_NL_LANGINFO=0 5718fi 5719 5720if test $U_HAVE_NL_LANGINFO -eq 1; then 5721 echo "$as_me:$LINENO: checking for nl_langinfo's argument to obtain the codeset" >&5 5722echo $ECHO_N "checking for nl_langinfo's argument to obtain the codeset... $ECHO_C" >&6 5723if test "${ac_cv_nl_langinfo_codeset+set}" = set; then 5724 echo $ECHO_N "(cached) $ECHO_C" >&6 5725else 5726 ac_cv_nl_langinfo_codeset="unknown" 5727 for a in CODESET _NL_CTYPE_CODESET_NAME; do 5728 cat >conftest.$ac_ext <<_ACEOF 5729/* confdefs.h. */ 5730_ACEOF 5731cat confdefs.h >>conftest.$ac_ext 5732cat >>conftest.$ac_ext <<_ACEOF 5733/* end confdefs.h. */ 5734#include <langinfo.h> 5735int 5736main () 5737{ 5738nl_langinfo($a); 5739 ; 5740 return 0; 5741} 5742_ACEOF 5743rm -f conftest.$ac_objext conftest$ac_exeext 5744if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5745 (eval $ac_link) 2>conftest.er1 5746 ac_status=$? 5747 grep -v '^ *+' conftest.er1 >conftest.err 5748 rm -f conftest.er1 5749 cat conftest.err >&5 5750 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5751 (exit $ac_status); } && 5752 { ac_try='test -z "$ac_c_werror_flag" 5753 || test ! -s conftest.err' 5754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5755 (eval $ac_try) 2>&5 5756 ac_status=$? 5757 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5758 (exit $ac_status); }; } && 5759 { ac_try='test -s conftest$ac_exeext' 5760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5761 (eval $ac_try) 2>&5 5762 ac_status=$? 5763 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5764 (exit $ac_status); }; }; then 5765 ac_cv_nl_langinfo_codeset="$a"; break 5766else 5767 echo "$as_me: failed program was:" >&5 5768sed 's/^/| /' conftest.$ac_ext >&5 5769 5770fi 5771rm -f conftest.err conftest.$ac_objext \ 5772 conftest$ac_exeext conftest.$ac_ext 5773 done 5774fi 5775echo "$as_me:$LINENO: result: $ac_cv_nl_langinfo_codeset" >&5 5776echo "${ECHO_T}$ac_cv_nl_langinfo_codeset" >&6 5777 if test x$ac_cv_nl_langinfo_codeset != xunknown 5778 then 5779 U_HAVE_NL_LANGINFO_CODESET=1 5780 U_NL_LANGINFO_CODESET=$ac_cv_nl_langinfo_codeset 5781 fi 5782fi 5783 5784 5785 5786ac_ext=cc 5787ac_cpp='$CXXCPP $CPPFLAGS' 5788ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5789ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5790ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5791 5792echo "$as_me:$LINENO: checking for namespace support" >&5 5793echo $ECHO_N "checking for namespace support... $ECHO_C" >&6 5794if test "${ac_cv_namespace_ok+set}" = set; then 5795 echo $ECHO_N "(cached) $ECHO_C" >&6 5796else 5797 cat >conftest.$ac_ext <<_ACEOF 5798/* confdefs.h. */ 5799_ACEOF 5800cat confdefs.h >>conftest.$ac_ext 5801cat >>conftest.$ac_ext <<_ACEOF 5802/* end confdefs.h. */ 5803 namespace x_version {void f(){}} 5804 namespace x = x_version; 5805 using namespace x_version; 5806 5807int 5808main () 5809{ 5810 f(); 5811 ; 5812 return 0; 5813} 5814_ACEOF 5815rm -f conftest.$ac_objext conftest$ac_exeext 5816if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5817 (eval $ac_link) 2>conftest.er1 5818 ac_status=$? 5819 grep -v '^ *+' conftest.er1 >conftest.err 5820 rm -f conftest.er1 5821 cat conftest.err >&5 5822 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5823 (exit $ac_status); } && 5824 { ac_try='test -z "$ac_cxx_werror_flag" 5825 || test ! -s conftest.err' 5826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5827 (eval $ac_try) 2>&5 5828 ac_status=$? 5829 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5830 (exit $ac_status); }; } && 5831 { ac_try='test -s conftest$ac_exeext' 5832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5833 (eval $ac_try) 2>&5 5834 ac_status=$? 5835 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5836 (exit $ac_status); }; }; then 5837 ac_cv_namespace_ok=yes 5838else 5839 echo "$as_me: failed program was:" >&5 5840sed 's/^/| /' conftest.$ac_ext >&5 5841 5842ac_cv_namespace_ok=no 5843fi 5844rm -f conftest.err conftest.$ac_objext \ 5845 conftest$ac_exeext conftest.$ac_ext 5846fi 5847 5848echo "$as_me:$LINENO: result: $ac_cv_namespace_ok" >&5 5849echo "${ECHO_T}$ac_cv_namespace_ok" >&6 5850U_HAVE_NAMESPACE=1 5851if test $ac_cv_namespace_ok = no 5852then 5853 U_HAVE_NAMESPACE=0 5854fi 5855 5856 5857echo "$as_me:$LINENO: checking for properly overriding new and delete" >&5 5858echo $ECHO_N "checking for properly overriding new and delete... $ECHO_C" >&6 5859U_OVERRIDE_CXX_ALLOCATION=0 5860U_HAVE_PLACEMENT_NEW=0 5861if test "${ac_cv_override_cxx_allocation_ok+set}" = set; then 5862 echo $ECHO_N "(cached) $ECHO_C" >&6 5863else 5864 cat >conftest.$ac_ext <<_ACEOF 5865/* confdefs.h. */ 5866_ACEOF 5867cat confdefs.h >>conftest.$ac_ext 5868cat >>conftest.$ac_ext <<_ACEOF 5869/* end confdefs.h. */ 5870 #include <stdlib.h> 5871 class UMemory { 5872 public: 5873 void *operator new(size_t size) {return malloc(size);} 5874 void *operator new[](size_t size) {return malloc(size);} 5875 void operator delete(void *p) {free(p);} 5876 void operator delete[](void *p) {free(p);} 5877 }; 5878 5879int 5880main () 5881{ 5882 5883 ; 5884 return 0; 5885} 5886_ACEOF 5887rm -f conftest.$ac_objext conftest$ac_exeext 5888if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5889 (eval $ac_link) 2>conftest.er1 5890 ac_status=$? 5891 grep -v '^ *+' conftest.er1 >conftest.err 5892 rm -f conftest.er1 5893 cat conftest.err >&5 5894 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5895 (exit $ac_status); } && 5896 { ac_try='test -z "$ac_cxx_werror_flag" 5897 || test ! -s conftest.err' 5898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5899 (eval $ac_try) 2>&5 5900 ac_status=$? 5901 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5902 (exit $ac_status); }; } && 5903 { ac_try='test -s conftest$ac_exeext' 5904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5905 (eval $ac_try) 2>&5 5906 ac_status=$? 5907 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5908 (exit $ac_status); }; }; then 5909 ac_cv_override_cxx_allocation_ok=yes 5910else 5911 echo "$as_me: failed program was:" >&5 5912sed 's/^/| /' conftest.$ac_ext >&5 5913 5914ac_cv_override_cxx_allocation_ok=no 5915fi 5916rm -f conftest.err conftest.$ac_objext \ 5917 conftest$ac_exeext conftest.$ac_ext 5918fi 5919 5920echo "$as_me:$LINENO: result: $ac_cv_override_cxx_allocation_ok" >&5 5921echo "${ECHO_T}$ac_cv_override_cxx_allocation_ok" >&6 5922if test $ac_cv_override_cxx_allocation_ok = yes 5923then 5924 U_OVERRIDE_CXX_ALLOCATION=1 5925 echo "$as_me:$LINENO: checking for placement new and delete" >&5 5926echo $ECHO_N "checking for placement new and delete... $ECHO_C" >&6 5927 if test "${ac_cv_override_placement_new_ok+set}" = set; then 5928 echo $ECHO_N "(cached) $ECHO_C" >&6 5929else 5930 cat >conftest.$ac_ext <<_ACEOF 5931/* confdefs.h. */ 5932_ACEOF 5933cat confdefs.h >>conftest.$ac_ext 5934cat >>conftest.$ac_ext <<_ACEOF 5935/* end confdefs.h. */ 5936 #include <stdlib.h> 5937 class UMemory { 5938 public: 5939 void *operator new(size_t size) {return malloc(size);} 5940 void *operator new[](size_t size) {return malloc(size);} 5941 void operator delete(void *p) {free(p);} 5942 void operator delete[](void *p) {free(p);} 5943 void * operator new(size_t, void *ptr) { return ptr; } 5944 void operator delete(void *, void *) {} 5945 }; 5946 5947int 5948main () 5949{ 5950 5951 ; 5952 return 0; 5953} 5954_ACEOF 5955rm -f conftest.$ac_objext conftest$ac_exeext 5956if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5957 (eval $ac_link) 2>conftest.er1 5958 ac_status=$? 5959 grep -v '^ *+' conftest.er1 >conftest.err 5960 rm -f conftest.er1 5961 cat conftest.err >&5 5962 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5963 (exit $ac_status); } && 5964 { ac_try='test -z "$ac_cxx_werror_flag" 5965 || test ! -s conftest.err' 5966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5967 (eval $ac_try) 2>&5 5968 ac_status=$? 5969 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5970 (exit $ac_status); }; } && 5971 { ac_try='test -s conftest$ac_exeext' 5972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5973 (eval $ac_try) 2>&5 5974 ac_status=$? 5975 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5976 (exit $ac_status); }; }; then 5977 ac_cv_override_placement_new_ok=yes 5978else 5979 echo "$as_me: failed program was:" >&5 5980sed 's/^/| /' conftest.$ac_ext >&5 5981 5982ac_cv_override_placement_new_ok=no 5983fi 5984rm -f conftest.err conftest.$ac_objext \ 5985 conftest$ac_exeext conftest.$ac_ext 5986fi 5987 5988 echo "$as_me:$LINENO: result: $ac_cv_override_placement_new_ok" >&5 5989echo "${ECHO_T}$ac_cv_override_placement_new_ok" >&6 5990 if test $ac_cv_override_placement_new_ok = yes 5991 then 5992 U_HAVE_PLACEMENT_NEW=1 5993 fi 5994fi 5995 5996 5997 5998ac_ext=c 5999ac_cpp='$CPP $CPPFLAGS' 6000ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6001ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6002ac_compiler_gnu=$ac_cv_c_compiler_gnu 6003 6004echo "$as_me:$LINENO: checking for popen" >&5 6005echo $ECHO_N "checking for popen... $ECHO_C" >&6 6006if test "${ac_cv_func_popen+set}" = set; then 6007 echo $ECHO_N "(cached) $ECHO_C" >&6 6008else 6009 cat >conftest.$ac_ext <<_ACEOF 6010/* confdefs.h. */ 6011_ACEOF 6012cat confdefs.h >>conftest.$ac_ext 6013cat >>conftest.$ac_ext <<_ACEOF 6014/* end confdefs.h. */ 6015/* Define popen to an innocuous variant, in case <limits.h> declares popen. 6016 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 6017#define popen innocuous_popen 6018 6019/* System header to define __stub macros and hopefully few prototypes, 6020 which can conflict with char popen (); below. 6021 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6022 <limits.h> exists even on freestanding compilers. */ 6023 6024#ifdef __STDC__ 6025# include <limits.h> 6026#else 6027# include <assert.h> 6028#endif 6029 6030#undef popen 6031 6032/* Override any gcc2 internal prototype to avoid an error. */ 6033#ifdef __cplusplus 6034extern "C" 6035{ 6036#endif 6037/* We use char because int might match the return type of a gcc2 6038 builtin and then its argument prototype would still apply. */ 6039char popen (); 6040/* The GNU C library defines this for functions which it implements 6041 to always fail with ENOSYS. Some functions are actually named 6042 something starting with __ and the normal name is an alias. */ 6043#if defined (__stub_popen) || defined (__stub___popen) 6044choke me 6045#else 6046char (*f) () = popen; 6047#endif 6048#ifdef __cplusplus 6049} 6050#endif 6051 6052int 6053main () 6054{ 6055return f != popen; 6056 ; 6057 return 0; 6058} 6059_ACEOF 6060rm -f conftest.$ac_objext conftest$ac_exeext 6061if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6062 (eval $ac_link) 2>conftest.er1 6063 ac_status=$? 6064 grep -v '^ *+' conftest.er1 >conftest.err 6065 rm -f conftest.er1 6066 cat conftest.err >&5 6067 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6068 (exit $ac_status); } && 6069 { ac_try='test -z "$ac_c_werror_flag" 6070 || test ! -s conftest.err' 6071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6072 (eval $ac_try) 2>&5 6073 ac_status=$? 6074 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6075 (exit $ac_status); }; } && 6076 { ac_try='test -s conftest$ac_exeext' 6077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6078 (eval $ac_try) 2>&5 6079 ac_status=$? 6080 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6081 (exit $ac_status); }; }; then 6082 ac_cv_func_popen=yes 6083else 6084 echo "$as_me: failed program was:" >&5 6085sed 's/^/| /' conftest.$ac_ext >&5 6086 6087ac_cv_func_popen=no 6088fi 6089rm -f conftest.err conftest.$ac_objext \ 6090 conftest$ac_exeext conftest.$ac_ext 6091fi 6092echo "$as_me:$LINENO: result: $ac_cv_func_popen" >&5 6093echo "${ECHO_T}$ac_cv_func_popen" >&6 6094 6095if test x$ac_cv_func_popen = xyes 6096then 6097 U_HAVE_POPEN=1 6098else 6099 U_HAVE_POPEN=0 6100fi 6101 6102 6103echo "$as_me:$LINENO: checking for tzset" >&5 6104echo $ECHO_N "checking for tzset... $ECHO_C" >&6 6105if test "${ac_cv_func_tzset+set}" = set; then 6106 echo $ECHO_N "(cached) $ECHO_C" >&6 6107else 6108 cat >conftest.$ac_ext <<_ACEOF 6109/* confdefs.h. */ 6110_ACEOF 6111cat confdefs.h >>conftest.$ac_ext 6112cat >>conftest.$ac_ext <<_ACEOF 6113/* end confdefs.h. */ 6114/* Define tzset to an innocuous variant, in case <limits.h> declares tzset. 6115 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 6116#define tzset innocuous_tzset 6117 6118/* System header to define __stub macros and hopefully few prototypes, 6119 which can conflict with char tzset (); below. 6120 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6121 <limits.h> exists even on freestanding compilers. */ 6122 6123#ifdef __STDC__ 6124# include <limits.h> 6125#else 6126# include <assert.h> 6127#endif 6128 6129#undef tzset 6130 6131/* Override any gcc2 internal prototype to avoid an error. */ 6132#ifdef __cplusplus 6133extern "C" 6134{ 6135#endif 6136/* We use char because int might match the return type of a gcc2 6137 builtin and then its argument prototype would still apply. */ 6138char tzset (); 6139/* The GNU C library defines this for functions which it implements 6140 to always fail with ENOSYS. Some functions are actually named 6141 something starting with __ and the normal name is an alias. */ 6142#if defined (__stub_tzset) || defined (__stub___tzset) 6143choke me 6144#else 6145char (*f) () = tzset; 6146#endif 6147#ifdef __cplusplus 6148} 6149#endif 6150 6151int 6152main () 6153{ 6154return f != tzset; 6155 ; 6156 return 0; 6157} 6158_ACEOF 6159rm -f conftest.$ac_objext conftest$ac_exeext 6160if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6161 (eval $ac_link) 2>conftest.er1 6162 ac_status=$? 6163 grep -v '^ *+' conftest.er1 >conftest.err 6164 rm -f conftest.er1 6165 cat conftest.err >&5 6166 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6167 (exit $ac_status); } && 6168 { ac_try='test -z "$ac_c_werror_flag" 6169 || test ! -s conftest.err' 6170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6171 (eval $ac_try) 2>&5 6172 ac_status=$? 6173 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6174 (exit $ac_status); }; } && 6175 { ac_try='test -s conftest$ac_exeext' 6176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6177 (eval $ac_try) 2>&5 6178 ac_status=$? 6179 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6180 (exit $ac_status); }; }; then 6181 ac_cv_func_tzset=yes 6182else 6183 echo "$as_me: failed program was:" >&5 6184sed 's/^/| /' conftest.$ac_ext >&5 6185 6186ac_cv_func_tzset=no 6187fi 6188rm -f conftest.err conftest.$ac_objext \ 6189 conftest$ac_exeext conftest.$ac_ext 6190fi 6191echo "$as_me:$LINENO: result: $ac_cv_func_tzset" >&5 6192echo "${ECHO_T}$ac_cv_func_tzset" >&6 6193 6194U_HAVE_TZSET=0 6195if test x$ac_cv_func_tzset = xyes 6196then 6197 U_TZSET=tzset 6198 U_HAVE_TZSET=1 6199else 6200 echo "$as_me:$LINENO: checking for _tzset" >&5 6201echo $ECHO_N "checking for _tzset... $ECHO_C" >&6 6202if test "${ac_cv_func__tzset+set}" = set; then 6203 echo $ECHO_N "(cached) $ECHO_C" >&6 6204else 6205 cat >conftest.$ac_ext <<_ACEOF 6206/* confdefs.h. */ 6207_ACEOF 6208cat confdefs.h >>conftest.$ac_ext 6209cat >>conftest.$ac_ext <<_ACEOF 6210/* end confdefs.h. */ 6211/* Define _tzset to an innocuous variant, in case <limits.h> declares _tzset. 6212 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 6213#define _tzset innocuous__tzset 6214 6215/* System header to define __stub macros and hopefully few prototypes, 6216 which can conflict with char _tzset (); below. 6217 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6218 <limits.h> exists even on freestanding compilers. */ 6219 6220#ifdef __STDC__ 6221# include <limits.h> 6222#else 6223# include <assert.h> 6224#endif 6225 6226#undef _tzset 6227 6228/* Override any gcc2 internal prototype to avoid an error. */ 6229#ifdef __cplusplus 6230extern "C" 6231{ 6232#endif 6233/* We use char because int might match the return type of a gcc2 6234 builtin and then its argument prototype would still apply. */ 6235char _tzset (); 6236/* The GNU C library defines this for functions which it implements 6237 to always fail with ENOSYS. Some functions are actually named 6238 something starting with __ and the normal name is an alias. */ 6239#if defined (__stub__tzset) || defined (__stub____tzset) 6240choke me 6241#else 6242char (*f) () = _tzset; 6243#endif 6244#ifdef __cplusplus 6245} 6246#endif 6247 6248int 6249main () 6250{ 6251return f != _tzset; 6252 ; 6253 return 0; 6254} 6255_ACEOF 6256rm -f conftest.$ac_objext conftest$ac_exeext 6257if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6258 (eval $ac_link) 2>conftest.er1 6259 ac_status=$? 6260 grep -v '^ *+' conftest.er1 >conftest.err 6261 rm -f conftest.er1 6262 cat conftest.err >&5 6263 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6264 (exit $ac_status); } && 6265 { ac_try='test -z "$ac_c_werror_flag" 6266 || test ! -s conftest.err' 6267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6268 (eval $ac_try) 2>&5 6269 ac_status=$? 6270 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6271 (exit $ac_status); }; } && 6272 { ac_try='test -s conftest$ac_exeext' 6273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6274 (eval $ac_try) 2>&5 6275 ac_status=$? 6276 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6277 (exit $ac_status); }; }; then 6278 ac_cv_func__tzset=yes 6279else 6280 echo "$as_me: failed program was:" >&5 6281sed 's/^/| /' conftest.$ac_ext >&5 6282 6283ac_cv_func__tzset=no 6284fi 6285rm -f conftest.err conftest.$ac_objext \ 6286 conftest$ac_exeext conftest.$ac_ext 6287fi 6288echo "$as_me:$LINENO: result: $ac_cv_func__tzset" >&5 6289echo "${ECHO_T}$ac_cv_func__tzset" >&6 6290 6291 if test x$ac_cv_func__tzset = xyes 6292 then 6293 U_TZSET=_tzset 6294 U_HAVE_TZSET=1 6295 fi 6296fi 6297 6298 6299 6300U_HAVE_TZNAME=0 6301echo "$as_me:$LINENO: checking for tzname" >&5 6302echo $ECHO_N "checking for tzname... $ECHO_C" >&6 6303if test "${ac_cv_var_tzname+set}" = set; then 6304 echo $ECHO_N "(cached) $ECHO_C" >&6 6305else 6306 cat >conftest.$ac_ext <<_ACEOF 6307/* confdefs.h. */ 6308_ACEOF 6309cat confdefs.h >>conftest.$ac_ext 6310cat >>conftest.$ac_ext <<_ACEOF 6311/* end confdefs.h. */ 6312#ifndef __USE_POSIX 6313#define __USE_POSIX 6314#endif 6315#include <stdlib.h> 6316#include <time.h> 6317#ifndef tzname /* For SGI. */ 6318extern char *tzname[]; /* RS6000 and others reject char **tzname. */ 6319#endif 6320int 6321main () 6322{ 6323atoi(*tzname); 6324 ; 6325 return 0; 6326} 6327_ACEOF 6328rm -f conftest.$ac_objext conftest$ac_exeext 6329if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6330 (eval $ac_link) 2>conftest.er1 6331 ac_status=$? 6332 grep -v '^ *+' conftest.er1 >conftest.err 6333 rm -f conftest.er1 6334 cat conftest.err >&5 6335 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6336 (exit $ac_status); } && 6337 { ac_try='test -z "$ac_c_werror_flag" 6338 || test ! -s conftest.err' 6339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6340 (eval $ac_try) 2>&5 6341 ac_status=$? 6342 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6343 (exit $ac_status); }; } && 6344 { ac_try='test -s conftest$ac_exeext' 6345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6346 (eval $ac_try) 2>&5 6347 ac_status=$? 6348 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6349 (exit $ac_status); }; }; then 6350 ac_cv_var_tzname=yes 6351else 6352 echo "$as_me: failed program was:" >&5 6353sed 's/^/| /' conftest.$ac_ext >&5 6354 6355ac_cv_var_tzname=no 6356fi 6357rm -f conftest.err conftest.$ac_objext \ 6358 conftest$ac_exeext conftest.$ac_ext 6359fi 6360echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5 6361echo "${ECHO_T}$ac_cv_var_tzname" >&6 6362if test $ac_cv_var_tzname = yes; then 6363 U_TZNAME=tzname 6364 U_HAVE_TZNAME=1 6365else 6366 echo "$as_me:$LINENO: checking for _tzname" >&5 6367echo $ECHO_N "checking for _tzname... $ECHO_C" >&6 6368if test "${ac_cv_var__tzname+set}" = set; then 6369 echo $ECHO_N "(cached) $ECHO_C" >&6 6370else 6371 cat >conftest.$ac_ext <<_ACEOF 6372/* confdefs.h. */ 6373_ACEOF 6374cat confdefs.h >>conftest.$ac_ext 6375cat >>conftest.$ac_ext <<_ACEOF 6376/* end confdefs.h. */ 6377 #include <stdlib.h> 6378 #include <time.h> 6379 extern char *_tzname[]; 6380 6381int 6382main () 6383{ 6384 atoi(*_tzname); 6385 ; 6386 return 0; 6387} 6388_ACEOF 6389rm -f conftest.$ac_objext conftest$ac_exeext 6390if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6391 (eval $ac_link) 2>conftest.er1 6392 ac_status=$? 6393 grep -v '^ *+' conftest.er1 >conftest.err 6394 rm -f conftest.er1 6395 cat conftest.err >&5 6396 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6397 (exit $ac_status); } && 6398 { ac_try='test -z "$ac_c_werror_flag" 6399 || test ! -s conftest.err' 6400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6401 (eval $ac_try) 2>&5 6402 ac_status=$? 6403 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6404 (exit $ac_status); }; } && 6405 { ac_try='test -s conftest$ac_exeext' 6406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6407 (eval $ac_try) 2>&5 6408 ac_status=$? 6409 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6410 (exit $ac_status); }; }; then 6411 ac_cv_var__tzname=yes 6412else 6413 echo "$as_me: failed program was:" >&5 6414sed 's/^/| /' conftest.$ac_ext >&5 6415 6416ac_cv_var__tzname=no 6417fi 6418rm -f conftest.err conftest.$ac_objext \ 6419 conftest$ac_exeext conftest.$ac_ext 6420fi 6421echo "$as_me:$LINENO: result: $ac_cv_var__tzname" >&5 6422echo "${ECHO_T}$ac_cv_var__tzname" >&6 6423 if test $ac_cv_var__tzname = yes; then 6424 U_TZNAME=_tzname 6425 U_HAVE_TZNAME=1 6426 fi 6427fi 6428 6429 6430 6431echo "$as_me:$LINENO: checking for timezone" >&5 6432echo $ECHO_N "checking for timezone... $ECHO_C" >&6 6433if test "${ac_cv_var_timezone+set}" = set; then 6434 echo $ECHO_N "(cached) $ECHO_C" >&6 6435else 6436 cat >conftest.$ac_ext <<_ACEOF 6437/* confdefs.h. */ 6438_ACEOF 6439cat confdefs.h >>conftest.$ac_ext 6440cat >>conftest.$ac_ext <<_ACEOF 6441/* end confdefs.h. */ 6442#ifndef __USE_POSIX 6443#define __USE_POSIX 6444#endif 6445#ifndef __USE_XOPEN 6446#define __USE_XOPEN 6447#endif 6448#include <time.h> 6449 6450int 6451main () 6452{ 6453timezone = 1; 6454 ; 6455 return 0; 6456} 6457_ACEOF 6458rm -f conftest.$ac_objext conftest$ac_exeext 6459if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6460 (eval $ac_link) 2>conftest.er1 6461 ac_status=$? 6462 grep -v '^ *+' conftest.er1 >conftest.err 6463 rm -f conftest.er1 6464 cat conftest.err >&5 6465 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6466 (exit $ac_status); } && 6467 { ac_try='test -z "$ac_c_werror_flag" 6468 || test ! -s conftest.err' 6469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6470 (eval $ac_try) 2>&5 6471 ac_status=$? 6472 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6473 (exit $ac_status); }; } && 6474 { ac_try='test -s conftest$ac_exeext' 6475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6476 (eval $ac_try) 2>&5 6477 ac_status=$? 6478 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6479 (exit $ac_status); }; }; then 6480 ac_cv_var_timezone=yes 6481else 6482 echo "$as_me: failed program was:" >&5 6483sed 's/^/| /' conftest.$ac_ext >&5 6484 6485ac_cv_var_timezone=no 6486fi 6487rm -f conftest.err conftest.$ac_objext \ 6488 conftest$ac_exeext conftest.$ac_ext 6489fi 6490echo "$as_me:$LINENO: result: $ac_cv_var_timezone" >&5 6491echo "${ECHO_T}$ac_cv_var_timezone" >&6 6492U_HAVE_TIMEZONE=0 6493if test $ac_cv_var_timezone = yes; then 6494 U_TIMEZONE=timezone 6495 U_HAVE_TIMEZONE=1 6496else 6497 echo "$as_me:$LINENO: checking for __timezone" >&5 6498echo $ECHO_N "checking for __timezone... $ECHO_C" >&6 6499if test "${ac_cv_var___timezone+set}" = set; then 6500 echo $ECHO_N "(cached) $ECHO_C" >&6 6501else 6502 cat >conftest.$ac_ext <<_ACEOF 6503/* confdefs.h. */ 6504_ACEOF 6505cat confdefs.h >>conftest.$ac_ext 6506cat >>conftest.$ac_ext <<_ACEOF 6507/* end confdefs.h. */ 6508#include <time.h> 6509int 6510main () 6511{ 6512__timezone = 1; 6513 ; 6514 return 0; 6515} 6516_ACEOF 6517rm -f conftest.$ac_objext conftest$ac_exeext 6518if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6519 (eval $ac_link) 2>conftest.er1 6520 ac_status=$? 6521 grep -v '^ *+' conftest.er1 >conftest.err 6522 rm -f conftest.er1 6523 cat conftest.err >&5 6524 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6525 (exit $ac_status); } && 6526 { ac_try='test -z "$ac_c_werror_flag" 6527 || test ! -s conftest.err' 6528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6529 (eval $ac_try) 2>&5 6530 ac_status=$? 6531 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6532 (exit $ac_status); }; } && 6533 { ac_try='test -s conftest$ac_exeext' 6534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6535 (eval $ac_try) 2>&5 6536 ac_status=$? 6537 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6538 (exit $ac_status); }; }; then 6539 ac_cv_var___timezone=yes 6540else 6541 echo "$as_me: failed program was:" >&5 6542sed 's/^/| /' conftest.$ac_ext >&5 6543 6544ac_cv_var___timezone=no 6545fi 6546rm -f conftest.err conftest.$ac_objext \ 6547 conftest$ac_exeext conftest.$ac_ext 6548fi 6549echo "$as_me:$LINENO: result: $ac_cv_var___timezone" >&5 6550echo "${ECHO_T}$ac_cv_var___timezone" >&6 6551 if test $ac_cv_var___timezone = yes; then 6552 U_TIMEZONE=__timezone 6553 U_HAVE_TIMEZONE=1 6554 else 6555 echo "$as_me:$LINENO: checking for _timezone" >&5 6556echo $ECHO_N "checking for _timezone... $ECHO_C" >&6 6557if test "${ac_cv_var__timezone+set}" = set; then 6558 echo $ECHO_N "(cached) $ECHO_C" >&6 6559else 6560 cat >conftest.$ac_ext <<_ACEOF 6561/* confdefs.h. */ 6562_ACEOF 6563cat confdefs.h >>conftest.$ac_ext 6564cat >>conftest.$ac_ext <<_ACEOF 6565/* end confdefs.h. */ 6566#include <time.h> 6567int 6568main () 6569{ 6570_timezone = 1; 6571 ; 6572 return 0; 6573} 6574_ACEOF 6575rm -f conftest.$ac_objext conftest$ac_exeext 6576if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6577 (eval $ac_link) 2>conftest.er1 6578 ac_status=$? 6579 grep -v '^ *+' conftest.er1 >conftest.err 6580 rm -f conftest.er1 6581 cat conftest.err >&5 6582 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6583 (exit $ac_status); } && 6584 { ac_try='test -z "$ac_c_werror_flag" 6585 || test ! -s conftest.err' 6586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6587 (eval $ac_try) 2>&5 6588 ac_status=$? 6589 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6590 (exit $ac_status); }; } && 6591 { ac_try='test -s conftest$ac_exeext' 6592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6593 (eval $ac_try) 2>&5 6594 ac_status=$? 6595 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6596 (exit $ac_status); }; }; then 6597 ac_cv_var__timezone=yes 6598else 6599 echo "$as_me: failed program was:" >&5 6600sed 's/^/| /' conftest.$ac_ext >&5 6601 6602ac_cv_var__timezone=no 6603fi 6604rm -f conftest.err conftest.$ac_objext \ 6605 conftest$ac_exeext conftest.$ac_ext 6606fi 6607echo "$as_me:$LINENO: result: $ac_cv_var__timezone" >&5 6608echo "${ECHO_T}$ac_cv_var__timezone" >&6 6609 if test $ac_cv_var__timezone = yes; then 6610 U_TIMEZONE=_timezone 6611 U_HAVE_TIMEZONE=1 6612 fi 6613 fi 6614fi 6615 6616 6617 6618echo "$as_me:$LINENO: checking for int8_t" >&5 6619echo $ECHO_N "checking for int8_t... $ECHO_C" >&6 6620if test "${ac_cv_type_int8_t+set}" = set; then 6621 echo $ECHO_N "(cached) $ECHO_C" >&6 6622else 6623 cat >conftest.$ac_ext <<_ACEOF 6624/* confdefs.h. */ 6625_ACEOF 6626cat confdefs.h >>conftest.$ac_ext 6627cat >>conftest.$ac_ext <<_ACEOF 6628/* end confdefs.h. */ 6629$ac_includes_default 6630int 6631main () 6632{ 6633if ((int8_t *) 0) 6634 return 0; 6635if (sizeof (int8_t)) 6636 return 0; 6637 ; 6638 return 0; 6639} 6640_ACEOF 6641rm -f conftest.$ac_objext 6642if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6643 (eval $ac_compile) 2>conftest.er1 6644 ac_status=$? 6645 grep -v '^ *+' conftest.er1 >conftest.err 6646 rm -f conftest.er1 6647 cat conftest.err >&5 6648 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6649 (exit $ac_status); } && 6650 { ac_try='test -z "$ac_c_werror_flag" 6651 || test ! -s conftest.err' 6652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6653 (eval $ac_try) 2>&5 6654 ac_status=$? 6655 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6656 (exit $ac_status); }; } && 6657 { ac_try='test -s conftest.$ac_objext' 6658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6659 (eval $ac_try) 2>&5 6660 ac_status=$? 6661 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6662 (exit $ac_status); }; }; then 6663 ac_cv_type_int8_t=yes 6664else 6665 echo "$as_me: failed program was:" >&5 6666sed 's/^/| /' conftest.$ac_ext >&5 6667 6668ac_cv_type_int8_t=no 6669fi 6670rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6671fi 6672echo "$as_me:$LINENO: result: $ac_cv_type_int8_t" >&5 6673echo "${ECHO_T}$ac_cv_type_int8_t" >&6 6674if test $ac_cv_type_int8_t = yes; then 6675 : 6676else 6677 6678cat >>confdefs.h <<_ACEOF 6679#define int8_t signed char 6680_ACEOF 6681 6682fi 6683 6684echo "$as_me:$LINENO: checking for uint8_t" >&5 6685echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6 6686if test "${ac_cv_type_uint8_t+set}" = set; then 6687 echo $ECHO_N "(cached) $ECHO_C" >&6 6688else 6689 cat >conftest.$ac_ext <<_ACEOF 6690/* confdefs.h. */ 6691_ACEOF 6692cat confdefs.h >>conftest.$ac_ext 6693cat >>conftest.$ac_ext <<_ACEOF 6694/* end confdefs.h. */ 6695$ac_includes_default 6696int 6697main () 6698{ 6699if ((uint8_t *) 0) 6700 return 0; 6701if (sizeof (uint8_t)) 6702 return 0; 6703 ; 6704 return 0; 6705} 6706_ACEOF 6707rm -f conftest.$ac_objext 6708if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6709 (eval $ac_compile) 2>conftest.er1 6710 ac_status=$? 6711 grep -v '^ *+' conftest.er1 >conftest.err 6712 rm -f conftest.er1 6713 cat conftest.err >&5 6714 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6715 (exit $ac_status); } && 6716 { ac_try='test -z "$ac_c_werror_flag" 6717 || test ! -s conftest.err' 6718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6719 (eval $ac_try) 2>&5 6720 ac_status=$? 6721 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6722 (exit $ac_status); }; } && 6723 { ac_try='test -s conftest.$ac_objext' 6724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6725 (eval $ac_try) 2>&5 6726 ac_status=$? 6727 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6728 (exit $ac_status); }; }; then 6729 ac_cv_type_uint8_t=yes 6730else 6731 echo "$as_me: failed program was:" >&5 6732sed 's/^/| /' conftest.$ac_ext >&5 6733 6734ac_cv_type_uint8_t=no 6735fi 6736rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6737fi 6738echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5 6739echo "${ECHO_T}$ac_cv_type_uint8_t" >&6 6740if test $ac_cv_type_uint8_t = yes; then 6741 : 6742else 6743 6744cat >>confdefs.h <<_ACEOF 6745#define uint8_t unsigned char 6746_ACEOF 6747 6748fi 6749 6750echo "$as_me:$LINENO: checking for int16_t" >&5 6751echo $ECHO_N "checking for int16_t... $ECHO_C" >&6 6752if test "${ac_cv_type_int16_t+set}" = set; then 6753 echo $ECHO_N "(cached) $ECHO_C" >&6 6754else 6755 cat >conftest.$ac_ext <<_ACEOF 6756/* confdefs.h. */ 6757_ACEOF 6758cat confdefs.h >>conftest.$ac_ext 6759cat >>conftest.$ac_ext <<_ACEOF 6760/* end confdefs.h. */ 6761$ac_includes_default 6762int 6763main () 6764{ 6765if ((int16_t *) 0) 6766 return 0; 6767if (sizeof (int16_t)) 6768 return 0; 6769 ; 6770 return 0; 6771} 6772_ACEOF 6773rm -f conftest.$ac_objext 6774if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6775 (eval $ac_compile) 2>conftest.er1 6776 ac_status=$? 6777 grep -v '^ *+' conftest.er1 >conftest.err 6778 rm -f conftest.er1 6779 cat conftest.err >&5 6780 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6781 (exit $ac_status); } && 6782 { ac_try='test -z "$ac_c_werror_flag" 6783 || test ! -s conftest.err' 6784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6785 (eval $ac_try) 2>&5 6786 ac_status=$? 6787 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6788 (exit $ac_status); }; } && 6789 { ac_try='test -s conftest.$ac_objext' 6790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6791 (eval $ac_try) 2>&5 6792 ac_status=$? 6793 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6794 (exit $ac_status); }; }; then 6795 ac_cv_type_int16_t=yes 6796else 6797 echo "$as_me: failed program was:" >&5 6798sed 's/^/| /' conftest.$ac_ext >&5 6799 6800ac_cv_type_int16_t=no 6801fi 6802rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6803fi 6804echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5 6805echo "${ECHO_T}$ac_cv_type_int16_t" >&6 6806if test $ac_cv_type_int16_t = yes; then 6807 : 6808else 6809 6810cat >>confdefs.h <<_ACEOF 6811#define int16_t signed short 6812_ACEOF 6813 6814fi 6815 6816echo "$as_me:$LINENO: checking for uint16_t" >&5 6817echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6 6818if test "${ac_cv_type_uint16_t+set}" = set; then 6819 echo $ECHO_N "(cached) $ECHO_C" >&6 6820else 6821 cat >conftest.$ac_ext <<_ACEOF 6822/* confdefs.h. */ 6823_ACEOF 6824cat confdefs.h >>conftest.$ac_ext 6825cat >>conftest.$ac_ext <<_ACEOF 6826/* end confdefs.h. */ 6827$ac_includes_default 6828int 6829main () 6830{ 6831if ((uint16_t *) 0) 6832 return 0; 6833if (sizeof (uint16_t)) 6834 return 0; 6835 ; 6836 return 0; 6837} 6838_ACEOF 6839rm -f conftest.$ac_objext 6840if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6841 (eval $ac_compile) 2>conftest.er1 6842 ac_status=$? 6843 grep -v '^ *+' conftest.er1 >conftest.err 6844 rm -f conftest.er1 6845 cat conftest.err >&5 6846 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6847 (exit $ac_status); } && 6848 { ac_try='test -z "$ac_c_werror_flag" 6849 || test ! -s conftest.err' 6850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6851 (eval $ac_try) 2>&5 6852 ac_status=$? 6853 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6854 (exit $ac_status); }; } && 6855 { ac_try='test -s conftest.$ac_objext' 6856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6857 (eval $ac_try) 2>&5 6858 ac_status=$? 6859 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6860 (exit $ac_status); }; }; then 6861 ac_cv_type_uint16_t=yes 6862else 6863 echo "$as_me: failed program was:" >&5 6864sed 's/^/| /' conftest.$ac_ext >&5 6865 6866ac_cv_type_uint16_t=no 6867fi 6868rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6869fi 6870echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5 6871echo "${ECHO_T}$ac_cv_type_uint16_t" >&6 6872if test $ac_cv_type_uint16_t = yes; then 6873 : 6874else 6875 6876cat >>confdefs.h <<_ACEOF 6877#define uint16_t unsigned short 6878_ACEOF 6879 6880fi 6881 6882echo "$as_me:$LINENO: checking for int32_t" >&5 6883echo $ECHO_N "checking for int32_t... $ECHO_C" >&6 6884if test "${ac_cv_type_int32_t+set}" = set; then 6885 echo $ECHO_N "(cached) $ECHO_C" >&6 6886else 6887 cat >conftest.$ac_ext <<_ACEOF 6888/* confdefs.h. */ 6889_ACEOF 6890cat confdefs.h >>conftest.$ac_ext 6891cat >>conftest.$ac_ext <<_ACEOF 6892/* end confdefs.h. */ 6893$ac_includes_default 6894int 6895main () 6896{ 6897if ((int32_t *) 0) 6898 return 0; 6899if (sizeof (int32_t)) 6900 return 0; 6901 ; 6902 return 0; 6903} 6904_ACEOF 6905rm -f conftest.$ac_objext 6906if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6907 (eval $ac_compile) 2>conftest.er1 6908 ac_status=$? 6909 grep -v '^ *+' conftest.er1 >conftest.err 6910 rm -f conftest.er1 6911 cat conftest.err >&5 6912 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6913 (exit $ac_status); } && 6914 { ac_try='test -z "$ac_c_werror_flag" 6915 || test ! -s conftest.err' 6916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6917 (eval $ac_try) 2>&5 6918 ac_status=$? 6919 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6920 (exit $ac_status); }; } && 6921 { ac_try='test -s conftest.$ac_objext' 6922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6923 (eval $ac_try) 2>&5 6924 ac_status=$? 6925 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6926 (exit $ac_status); }; }; then 6927 ac_cv_type_int32_t=yes 6928else 6929 echo "$as_me: failed program was:" >&5 6930sed 's/^/| /' conftest.$ac_ext >&5 6931 6932ac_cv_type_int32_t=no 6933fi 6934rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6935fi 6936echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5 6937echo "${ECHO_T}$ac_cv_type_int32_t" >&6 6938if test $ac_cv_type_int32_t = yes; then 6939 : 6940else 6941 6942cat >>confdefs.h <<_ACEOF 6943#define int32_t signed long 6944_ACEOF 6945 6946fi 6947 6948echo "$as_me:$LINENO: checking for uint32_t" >&5 6949echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6 6950if test "${ac_cv_type_uint32_t+set}" = set; then 6951 echo $ECHO_N "(cached) $ECHO_C" >&6 6952else 6953 cat >conftest.$ac_ext <<_ACEOF 6954/* confdefs.h. */ 6955_ACEOF 6956cat confdefs.h >>conftest.$ac_ext 6957cat >>conftest.$ac_ext <<_ACEOF 6958/* end confdefs.h. */ 6959$ac_includes_default 6960int 6961main () 6962{ 6963if ((uint32_t *) 0) 6964 return 0; 6965if (sizeof (uint32_t)) 6966 return 0; 6967 ; 6968 return 0; 6969} 6970_ACEOF 6971rm -f conftest.$ac_objext 6972if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6973 (eval $ac_compile) 2>conftest.er1 6974 ac_status=$? 6975 grep -v '^ *+' conftest.er1 >conftest.err 6976 rm -f conftest.er1 6977 cat conftest.err >&5 6978 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6979 (exit $ac_status); } && 6980 { ac_try='test -z "$ac_c_werror_flag" 6981 || test ! -s conftest.err' 6982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6983 (eval $ac_try) 2>&5 6984 ac_status=$? 6985 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6986 (exit $ac_status); }; } && 6987 { ac_try='test -s conftest.$ac_objext' 6988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6989 (eval $ac_try) 2>&5 6990 ac_status=$? 6991 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6992 (exit $ac_status); }; }; then 6993 ac_cv_type_uint32_t=yes 6994else 6995 echo "$as_me: failed program was:" >&5 6996sed 's/^/| /' conftest.$ac_ext >&5 6997 6998ac_cv_type_uint32_t=no 6999fi 7000rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7001fi 7002echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5 7003echo "${ECHO_T}$ac_cv_type_uint32_t" >&6 7004if test $ac_cv_type_uint32_t = yes; then 7005 : 7006else 7007 7008cat >>confdefs.h <<_ACEOF 7009#define uint32_t unsigned long 7010_ACEOF 7011 7012fi 7013 7014echo "$as_me:$LINENO: checking for int64_t" >&5 7015echo $ECHO_N "checking for int64_t... $ECHO_C" >&6 7016if test "${ac_cv_type_int64_t+set}" = set; then 7017 echo $ECHO_N "(cached) $ECHO_C" >&6 7018else 7019 cat >conftest.$ac_ext <<_ACEOF 7020/* confdefs.h. */ 7021_ACEOF 7022cat confdefs.h >>conftest.$ac_ext 7023cat >>conftest.$ac_ext <<_ACEOF 7024/* end confdefs.h. */ 7025$ac_includes_default 7026int 7027main () 7028{ 7029if ((int64_t *) 0) 7030 return 0; 7031if (sizeof (int64_t)) 7032 return 0; 7033 ; 7034 return 0; 7035} 7036_ACEOF 7037rm -f conftest.$ac_objext 7038if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7039 (eval $ac_compile) 2>conftest.er1 7040 ac_status=$? 7041 grep -v '^ *+' conftest.er1 >conftest.err 7042 rm -f conftest.er1 7043 cat conftest.err >&5 7044 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7045 (exit $ac_status); } && 7046 { ac_try='test -z "$ac_c_werror_flag" 7047 || test ! -s conftest.err' 7048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7049 (eval $ac_try) 2>&5 7050 ac_status=$? 7051 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7052 (exit $ac_status); }; } && 7053 { ac_try='test -s conftest.$ac_objext' 7054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7055 (eval $ac_try) 2>&5 7056 ac_status=$? 7057 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7058 (exit $ac_status); }; }; then 7059 ac_cv_type_int64_t=yes 7060else 7061 echo "$as_me: failed program was:" >&5 7062sed 's/^/| /' conftest.$ac_ext >&5 7063 7064ac_cv_type_int64_t=no 7065fi 7066rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7067fi 7068echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5 7069echo "${ECHO_T}$ac_cv_type_int64_t" >&6 7070if test $ac_cv_type_int64_t = yes; then 7071 : 7072else 7073 7074cat >>confdefs.h <<_ACEOF 7075#define int64_t signed long long 7076_ACEOF 7077 7078fi 7079 7080echo "$as_me:$LINENO: checking for uint64_t" >&5 7081echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6 7082if test "${ac_cv_type_uint64_t+set}" = set; then 7083 echo $ECHO_N "(cached) $ECHO_C" >&6 7084else 7085 cat >conftest.$ac_ext <<_ACEOF 7086/* confdefs.h. */ 7087_ACEOF 7088cat confdefs.h >>conftest.$ac_ext 7089cat >>conftest.$ac_ext <<_ACEOF 7090/* end confdefs.h. */ 7091$ac_includes_default 7092int 7093main () 7094{ 7095if ((uint64_t *) 0) 7096 return 0; 7097if (sizeof (uint64_t)) 7098 return 0; 7099 ; 7100 return 0; 7101} 7102_ACEOF 7103rm -f conftest.$ac_objext 7104if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7105 (eval $ac_compile) 2>conftest.er1 7106 ac_status=$? 7107 grep -v '^ *+' conftest.er1 >conftest.err 7108 rm -f conftest.er1 7109 cat conftest.err >&5 7110 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7111 (exit $ac_status); } && 7112 { ac_try='test -z "$ac_c_werror_flag" 7113 || test ! -s conftest.err' 7114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7115 (eval $ac_try) 2>&5 7116 ac_status=$? 7117 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7118 (exit $ac_status); }; } && 7119 { ac_try='test -s conftest.$ac_objext' 7120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7121 (eval $ac_try) 2>&5 7122 ac_status=$? 7123 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7124 (exit $ac_status); }; }; then 7125 ac_cv_type_uint64_t=yes 7126else 7127 echo "$as_me: failed program was:" >&5 7128sed 's/^/| /' conftest.$ac_ext >&5 7129 7130ac_cv_type_uint64_t=no 7131fi 7132rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7133fi 7134echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5 7135echo "${ECHO_T}$ac_cv_type_uint64_t" >&6 7136if test $ac_cv_type_uint64_t = yes; then 7137 : 7138else 7139 7140cat >>confdefs.h <<_ACEOF 7141#define uint64_t unsigned long long 7142_ACEOF 7143 7144fi 7145 7146 7147if test $ac_cv_type_int8_t = no; then 7148HAVE_INT8_T=0 7149else 7150HAVE_INT8_T=1 7151fi 7152 7153 7154if test $ac_cv_type_uint8_t = no; then 7155HAVE_UINT8_T=0 7156else 7157HAVE_UINT8_T=1 7158fi 7159 7160 7161if test $ac_cv_type_int16_t = no; then 7162HAVE_INT16_T=0 7163else 7164HAVE_INT16_T=1 7165fi 7166 7167 7168if test $ac_cv_type_uint16_t = no; then 7169HAVE_UINT16_T=0 7170else 7171HAVE_UINT16_T=1 7172fi 7173 7174 7175if test $ac_cv_type_int32_t = no; then 7176HAVE_INT32_T=0 7177else 7178HAVE_INT32_T=1 7179fi 7180 7181 7182if test $ac_cv_type_uint32_t = no; then 7183HAVE_UINT32_T=0 7184else 7185HAVE_UINT32_T=1 7186fi 7187 7188 7189if test $ac_cv_type_int64_t = no; then 7190HAVE_INT64_T=0 7191else 7192HAVE_INT64_T=1 7193fi 7194 7195 7196if test $ac_cv_type_uint64_t = no; then 7197HAVE_UINT64_T=0 7198else 7199HAVE_UINT64_T=1 7200fi 7201 7202 7203if test "${ac_cv_header_wchar_h+set}" = set; then 7204 echo "$as_me:$LINENO: checking for wchar.h" >&5 7205echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6 7206if test "${ac_cv_header_wchar_h+set}" = set; then 7207 echo $ECHO_N "(cached) $ECHO_C" >&6 7208fi 7209echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5 7210echo "${ECHO_T}$ac_cv_header_wchar_h" >&6 7211else 7212 # Is the header compilable? 7213echo "$as_me:$LINENO: checking wchar.h usability" >&5 7214echo $ECHO_N "checking wchar.h usability... $ECHO_C" >&6 7215cat >conftest.$ac_ext <<_ACEOF 7216/* confdefs.h. */ 7217_ACEOF 7218cat confdefs.h >>conftest.$ac_ext 7219cat >>conftest.$ac_ext <<_ACEOF 7220/* end confdefs.h. */ 7221$ac_includes_default 7222#include <wchar.h> 7223_ACEOF 7224rm -f conftest.$ac_objext 7225if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7226 (eval $ac_compile) 2>conftest.er1 7227 ac_status=$? 7228 grep -v '^ *+' conftest.er1 >conftest.err 7229 rm -f conftest.er1 7230 cat conftest.err >&5 7231 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7232 (exit $ac_status); } && 7233 { ac_try='test -z "$ac_c_werror_flag" 7234 || test ! -s conftest.err' 7235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7236 (eval $ac_try) 2>&5 7237 ac_status=$? 7238 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7239 (exit $ac_status); }; } && 7240 { ac_try='test -s conftest.$ac_objext' 7241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7242 (eval $ac_try) 2>&5 7243 ac_status=$? 7244 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7245 (exit $ac_status); }; }; then 7246 ac_header_compiler=yes 7247else 7248 echo "$as_me: failed program was:" >&5 7249sed 's/^/| /' conftest.$ac_ext >&5 7250 7251ac_header_compiler=no 7252fi 7253rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7254echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 7255echo "${ECHO_T}$ac_header_compiler" >&6 7256 7257# Is the header present? 7258echo "$as_me:$LINENO: checking wchar.h presence" >&5 7259echo $ECHO_N "checking wchar.h presence... $ECHO_C" >&6 7260cat >conftest.$ac_ext <<_ACEOF 7261/* confdefs.h. */ 7262_ACEOF 7263cat confdefs.h >>conftest.$ac_ext 7264cat >>conftest.$ac_ext <<_ACEOF 7265/* end confdefs.h. */ 7266#include <wchar.h> 7267_ACEOF 7268if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 7269 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 7270 ac_status=$? 7271 grep -v '^ *+' conftest.er1 >conftest.err 7272 rm -f conftest.er1 7273 cat conftest.err >&5 7274 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7275 (exit $ac_status); } >/dev/null; then 7276 if test -s conftest.err; then 7277 ac_cpp_err=$ac_c_preproc_warn_flag 7278 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 7279 else 7280 ac_cpp_err= 7281 fi 7282else 7283 ac_cpp_err=yes 7284fi 7285if test -z "$ac_cpp_err"; then 7286 ac_header_preproc=yes 7287else 7288 echo "$as_me: failed program was:" >&5 7289sed 's/^/| /' conftest.$ac_ext >&5 7290 7291 ac_header_preproc=no 7292fi 7293rm -f conftest.err conftest.$ac_ext 7294echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 7295echo "${ECHO_T}$ac_header_preproc" >&6 7296 7297# So? What about this header? 7298case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 7299 yes:no: ) 7300 { echo "$as_me:$LINENO: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&5 7301echo "$as_me: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 7302 { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the compiler's result" >&5 7303echo "$as_me: WARNING: wchar.h: proceeding with the compiler's result" >&2;} 7304 ac_header_preproc=yes 7305 ;; 7306 no:yes:* ) 7307 { echo "$as_me:$LINENO: WARNING: wchar.h: present but cannot be compiled" >&5 7308echo "$as_me: WARNING: wchar.h: present but cannot be compiled" >&2;} 7309 { echo "$as_me:$LINENO: WARNING: wchar.h: check for missing prerequisite headers?" >&5 7310echo "$as_me: WARNING: wchar.h: check for missing prerequisite headers?" >&2;} 7311 { echo "$as_me:$LINENO: WARNING: wchar.h: see the Autoconf documentation" >&5 7312echo "$as_me: WARNING: wchar.h: see the Autoconf documentation" >&2;} 7313 { echo "$as_me:$LINENO: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&5 7314echo "$as_me: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&2;} 7315 { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the preprocessor's result" >&5 7316echo "$as_me: WARNING: wchar.h: proceeding with the preprocessor's result" >&2;} 7317 { echo "$as_me:$LINENO: WARNING: wchar.h: in the future, the compiler will take precedence" >&5 7318echo "$as_me: WARNING: wchar.h: in the future, the compiler will take precedence" >&2;} 7319 ( 7320 cat <<\_ASBOX 7321## ------------------------------------------ ## 7322## Report this to the AC_PACKAGE_NAME lists. ## 7323## ------------------------------------------ ## 7324_ASBOX 7325 ) | 7326 sed "s/^/$as_me: WARNING: /" >&2 7327 ;; 7328esac 7329echo "$as_me:$LINENO: checking for wchar.h" >&5 7330echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6 7331if test "${ac_cv_header_wchar_h+set}" = set; then 7332 echo $ECHO_N "(cached) $ECHO_C" >&6 7333else 7334 ac_cv_header_wchar_h=$ac_header_preproc 7335fi 7336echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5 7337echo "${ECHO_T}$ac_cv_header_wchar_h" >&6 7338 7339fi 7340 7341 7342if test "$ac_cv_header_wchar_h" = no 7343then 7344 U_HAVE_WCHAR_H=0 7345 U_HAVE_WCSCPY=0 7346else 7347 cat >>confdefs.h <<\_ACEOF 7348#define HAVE_WCHAR_H 1 7349_ACEOF 7350 7351 U_HAVE_WCHAR_H=1 7352 echo "$as_me:$LINENO: checking for library containing wcscpy" >&5 7353echo $ECHO_N "checking for library containing wcscpy... $ECHO_C" >&6 7354if test "${ac_cv_search_wcscpy+set}" = set; then 7355 echo $ECHO_N "(cached) $ECHO_C" >&6 7356else 7357 ac_func_search_save_LIBS=$LIBS 7358ac_cv_search_wcscpy=no 7359cat >conftest.$ac_ext <<_ACEOF 7360/* confdefs.h. */ 7361_ACEOF 7362cat confdefs.h >>conftest.$ac_ext 7363cat >>conftest.$ac_ext <<_ACEOF 7364/* end confdefs.h. */ 7365 7366/* Override any gcc2 internal prototype to avoid an error. */ 7367#ifdef __cplusplus 7368extern "C" 7369#endif 7370/* We use char because int might match the return type of a gcc2 7371 builtin and then its argument prototype would still apply. */ 7372char wcscpy (); 7373int 7374main () 7375{ 7376wcscpy (); 7377 ; 7378 return 0; 7379} 7380_ACEOF 7381rm -f conftest.$ac_objext conftest$ac_exeext 7382if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7383 (eval $ac_link) 2>conftest.er1 7384 ac_status=$? 7385 grep -v '^ *+' conftest.er1 >conftest.err 7386 rm -f conftest.er1 7387 cat conftest.err >&5 7388 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7389 (exit $ac_status); } && 7390 { ac_try='test -z "$ac_c_werror_flag" 7391 || test ! -s conftest.err' 7392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7393 (eval $ac_try) 2>&5 7394 ac_status=$? 7395 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7396 (exit $ac_status); }; } && 7397 { ac_try='test -s conftest$ac_exeext' 7398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7399 (eval $ac_try) 2>&5 7400 ac_status=$? 7401 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7402 (exit $ac_status); }; }; then 7403 ac_cv_search_wcscpy="none required" 7404else 7405 echo "$as_me: failed program was:" >&5 7406sed 's/^/| /' conftest.$ac_ext >&5 7407 7408fi 7409rm -f conftest.err conftest.$ac_objext \ 7410 conftest$ac_exeext conftest.$ac_ext 7411if test "$ac_cv_search_wcscpy" = no; then 7412 for ac_lib in wcs w; do 7413 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 7414 cat >conftest.$ac_ext <<_ACEOF 7415/* confdefs.h. */ 7416_ACEOF 7417cat confdefs.h >>conftest.$ac_ext 7418cat >>conftest.$ac_ext <<_ACEOF 7419/* end confdefs.h. */ 7420 7421/* Override any gcc2 internal prototype to avoid an error. */ 7422#ifdef __cplusplus 7423extern "C" 7424#endif 7425/* We use char because int might match the return type of a gcc2 7426 builtin and then its argument prototype would still apply. */ 7427char wcscpy (); 7428int 7429main () 7430{ 7431wcscpy (); 7432 ; 7433 return 0; 7434} 7435_ACEOF 7436rm -f conftest.$ac_objext conftest$ac_exeext 7437if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7438 (eval $ac_link) 2>conftest.er1 7439 ac_status=$? 7440 grep -v '^ *+' conftest.er1 >conftest.err 7441 rm -f conftest.er1 7442 cat conftest.err >&5 7443 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7444 (exit $ac_status); } && 7445 { ac_try='test -z "$ac_c_werror_flag" 7446 || test ! -s conftest.err' 7447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7448 (eval $ac_try) 2>&5 7449 ac_status=$? 7450 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7451 (exit $ac_status); }; } && 7452 { ac_try='test -s conftest$ac_exeext' 7453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7454 (eval $ac_try) 2>&5 7455 ac_status=$? 7456 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7457 (exit $ac_status); }; }; then 7458 ac_cv_search_wcscpy="-l$ac_lib" 7459break 7460else 7461 echo "$as_me: failed program was:" >&5 7462sed 's/^/| /' conftest.$ac_ext >&5 7463 7464fi 7465rm -f conftest.err conftest.$ac_objext \ 7466 conftest$ac_exeext conftest.$ac_ext 7467 done 7468fi 7469LIBS=$ac_func_search_save_LIBS 7470fi 7471echo "$as_me:$LINENO: result: $ac_cv_search_wcscpy" >&5 7472echo "${ECHO_T}$ac_cv_search_wcscpy" >&6 7473if test "$ac_cv_search_wcscpy" != no; then 7474 test "$ac_cv_search_wcscpy" = "none required" || LIBS="$ac_cv_search_wcscpy $LIBS" 7475 7476fi 7477 7478 if test "$ac_cv_search_wcscpy" != no; then 7479 U_HAVE_WCSCPY=1 7480 else 7481 U_HAVE_WCSCPY=0 7482 fi 7483fi 7484 7485 7486 7487echo "$as_me:$LINENO: checking for wchar_t" >&5 7488echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6 7489if test "${ac_cv_type_wchar_t+set}" = set; then 7490 echo $ECHO_N "(cached) $ECHO_C" >&6 7491else 7492 cat >conftest.$ac_ext <<_ACEOF 7493/* confdefs.h. */ 7494_ACEOF 7495cat confdefs.h >>conftest.$ac_ext 7496cat >>conftest.$ac_ext <<_ACEOF 7497/* end confdefs.h. */ 7498 7499#if STDC_HEADERS 7500#include <stddef.h> 7501#endif 7502#include <stdlib.h> 7503#if HAVE_WCHAR_H 7504#include <string.h> 7505#include <wchar.h> 7506#endif 7507 7508int 7509main () 7510{ 7511if ((wchar_t *) 0) 7512 return 0; 7513if (sizeof (wchar_t)) 7514 return 0; 7515 ; 7516 return 0; 7517} 7518_ACEOF 7519rm -f conftest.$ac_objext 7520if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7521 (eval $ac_compile) 2>conftest.er1 7522 ac_status=$? 7523 grep -v '^ *+' conftest.er1 >conftest.err 7524 rm -f conftest.er1 7525 cat conftest.err >&5 7526 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7527 (exit $ac_status); } && 7528 { ac_try='test -z "$ac_c_werror_flag" 7529 || test ! -s conftest.err' 7530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7531 (eval $ac_try) 2>&5 7532 ac_status=$? 7533 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7534 (exit $ac_status); }; } && 7535 { ac_try='test -s conftest.$ac_objext' 7536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7537 (eval $ac_try) 2>&5 7538 ac_status=$? 7539 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7540 (exit $ac_status); }; }; then 7541 ac_cv_type_wchar_t=yes 7542else 7543 echo "$as_me: failed program was:" >&5 7544sed 's/^/| /' conftest.$ac_ext >&5 7545 7546ac_cv_type_wchar_t=no 7547fi 7548rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7549fi 7550echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5 7551echo "${ECHO_T}$ac_cv_type_wchar_t" >&6 7552 7553echo "$as_me:$LINENO: checking size of wchar_t" >&5 7554echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6 7555if test "${ac_cv_sizeof_wchar_t+set}" = set; then 7556 echo $ECHO_N "(cached) $ECHO_C" >&6 7557else 7558 if test "$ac_cv_type_wchar_t" = yes; then 7559 # The cast to unsigned long works around a bug in the HP C Compiler 7560 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 7561 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 7562 # This bug is HP SR number 8606223364. 7563 if test "$cross_compiling" = yes; then 7564 # Depending upon the size, compute the lo and hi bounds. 7565cat >conftest.$ac_ext <<_ACEOF 7566/* confdefs.h. */ 7567_ACEOF 7568cat confdefs.h >>conftest.$ac_ext 7569cat >>conftest.$ac_ext <<_ACEOF 7570/* end confdefs.h. */ 7571 7572#if STDC_HEADERS 7573#include <stddef.h> 7574#endif 7575#include <stdlib.h> 7576#if HAVE_WCHAR_H 7577#include <string.h> 7578#include <wchar.h> 7579#endif 7580 7581int 7582main () 7583{ 7584static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)]; 7585test_array [0] = 0 7586 7587 ; 7588 return 0; 7589} 7590_ACEOF 7591rm -f conftest.$ac_objext 7592if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7593 (eval $ac_compile) 2>conftest.er1 7594 ac_status=$? 7595 grep -v '^ *+' conftest.er1 >conftest.err 7596 rm -f conftest.er1 7597 cat conftest.err >&5 7598 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7599 (exit $ac_status); } && 7600 { ac_try='test -z "$ac_c_werror_flag" 7601 || test ! -s conftest.err' 7602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7603 (eval $ac_try) 2>&5 7604 ac_status=$? 7605 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7606 (exit $ac_status); }; } && 7607 { ac_try='test -s conftest.$ac_objext' 7608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7609 (eval $ac_try) 2>&5 7610 ac_status=$? 7611 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7612 (exit $ac_status); }; }; then 7613 ac_lo=0 ac_mid=0 7614 while :; do 7615 cat >conftest.$ac_ext <<_ACEOF 7616/* confdefs.h. */ 7617_ACEOF 7618cat confdefs.h >>conftest.$ac_ext 7619cat >>conftest.$ac_ext <<_ACEOF 7620/* end confdefs.h. */ 7621 7622#if STDC_HEADERS 7623#include <stddef.h> 7624#endif 7625#include <stdlib.h> 7626#if HAVE_WCHAR_H 7627#include <string.h> 7628#include <wchar.h> 7629#endif 7630 7631int 7632main () 7633{ 7634static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)]; 7635test_array [0] = 0 7636 7637 ; 7638 return 0; 7639} 7640_ACEOF 7641rm -f conftest.$ac_objext 7642if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7643 (eval $ac_compile) 2>conftest.er1 7644 ac_status=$? 7645 grep -v '^ *+' conftest.er1 >conftest.err 7646 rm -f conftest.er1 7647 cat conftest.err >&5 7648 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7649 (exit $ac_status); } && 7650 { ac_try='test -z "$ac_c_werror_flag" 7651 || test ! -s conftest.err' 7652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7653 (eval $ac_try) 2>&5 7654 ac_status=$? 7655 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7656 (exit $ac_status); }; } && 7657 { ac_try='test -s conftest.$ac_objext' 7658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7659 (eval $ac_try) 2>&5 7660 ac_status=$? 7661 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7662 (exit $ac_status); }; }; then 7663 ac_hi=$ac_mid; break 7664else 7665 echo "$as_me: failed program was:" >&5 7666sed 's/^/| /' conftest.$ac_ext >&5 7667 7668ac_lo=`expr $ac_mid + 1` 7669 if test $ac_lo -le $ac_mid; then 7670 ac_lo= ac_hi= 7671 break 7672 fi 7673 ac_mid=`expr 2 '*' $ac_mid + 1` 7674fi 7675rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7676 done 7677else 7678 echo "$as_me: failed program was:" >&5 7679sed 's/^/| /' conftest.$ac_ext >&5 7680 7681cat >conftest.$ac_ext <<_ACEOF 7682/* confdefs.h. */ 7683_ACEOF 7684cat confdefs.h >>conftest.$ac_ext 7685cat >>conftest.$ac_ext <<_ACEOF 7686/* end confdefs.h. */ 7687 7688#if STDC_HEADERS 7689#include <stddef.h> 7690#endif 7691#include <stdlib.h> 7692#if HAVE_WCHAR_H 7693#include <string.h> 7694#include <wchar.h> 7695#endif 7696 7697int 7698main () 7699{ 7700static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)]; 7701test_array [0] = 0 7702 7703 ; 7704 return 0; 7705} 7706_ACEOF 7707rm -f conftest.$ac_objext 7708if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7709 (eval $ac_compile) 2>conftest.er1 7710 ac_status=$? 7711 grep -v '^ *+' conftest.er1 >conftest.err 7712 rm -f conftest.er1 7713 cat conftest.err >&5 7714 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7715 (exit $ac_status); } && 7716 { ac_try='test -z "$ac_c_werror_flag" 7717 || test ! -s conftest.err' 7718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7719 (eval $ac_try) 2>&5 7720 ac_status=$? 7721 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7722 (exit $ac_status); }; } && 7723 { ac_try='test -s conftest.$ac_objext' 7724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7725 (eval $ac_try) 2>&5 7726 ac_status=$? 7727 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7728 (exit $ac_status); }; }; then 7729 ac_hi=-1 ac_mid=-1 7730 while :; do 7731 cat >conftest.$ac_ext <<_ACEOF 7732/* confdefs.h. */ 7733_ACEOF 7734cat confdefs.h >>conftest.$ac_ext 7735cat >>conftest.$ac_ext <<_ACEOF 7736/* end confdefs.h. */ 7737 7738#if STDC_HEADERS 7739#include <stddef.h> 7740#endif 7741#include <stdlib.h> 7742#if HAVE_WCHAR_H 7743#include <string.h> 7744#include <wchar.h> 7745#endif 7746 7747int 7748main () 7749{ 7750static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)]; 7751test_array [0] = 0 7752 7753 ; 7754 return 0; 7755} 7756_ACEOF 7757rm -f conftest.$ac_objext 7758if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7759 (eval $ac_compile) 2>conftest.er1 7760 ac_status=$? 7761 grep -v '^ *+' conftest.er1 >conftest.err 7762 rm -f conftest.er1 7763 cat conftest.err >&5 7764 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7765 (exit $ac_status); } && 7766 { ac_try='test -z "$ac_c_werror_flag" 7767 || test ! -s conftest.err' 7768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7769 (eval $ac_try) 2>&5 7770 ac_status=$? 7771 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7772 (exit $ac_status); }; } && 7773 { ac_try='test -s conftest.$ac_objext' 7774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7775 (eval $ac_try) 2>&5 7776 ac_status=$? 7777 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7778 (exit $ac_status); }; }; then 7779 ac_lo=$ac_mid; break 7780else 7781 echo "$as_me: failed program was:" >&5 7782sed 's/^/| /' conftest.$ac_ext >&5 7783 7784ac_hi=`expr '(' $ac_mid ')' - 1` 7785 if test $ac_mid -le $ac_hi; then 7786 ac_lo= ac_hi= 7787 break 7788 fi 7789 ac_mid=`expr 2 '*' $ac_mid` 7790fi 7791rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7792 done 7793else 7794 echo "$as_me: failed program was:" >&5 7795sed 's/^/| /' conftest.$ac_ext >&5 7796 7797ac_lo= ac_hi= 7798fi 7799rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7800fi 7801rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7802# Binary search between lo and hi bounds. 7803while test "x$ac_lo" != "x$ac_hi"; do 7804 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 7805 cat >conftest.$ac_ext <<_ACEOF 7806/* confdefs.h. */ 7807_ACEOF 7808cat confdefs.h >>conftest.$ac_ext 7809cat >>conftest.$ac_ext <<_ACEOF 7810/* end confdefs.h. */ 7811 7812#if STDC_HEADERS 7813#include <stddef.h> 7814#endif 7815#include <stdlib.h> 7816#if HAVE_WCHAR_H 7817#include <string.h> 7818#include <wchar.h> 7819#endif 7820 7821int 7822main () 7823{ 7824static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)]; 7825test_array [0] = 0 7826 7827 ; 7828 return 0; 7829} 7830_ACEOF 7831rm -f conftest.$ac_objext 7832if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7833 (eval $ac_compile) 2>conftest.er1 7834 ac_status=$? 7835 grep -v '^ *+' conftest.er1 >conftest.err 7836 rm -f conftest.er1 7837 cat conftest.err >&5 7838 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7839 (exit $ac_status); } && 7840 { ac_try='test -z "$ac_c_werror_flag" 7841 || test ! -s conftest.err' 7842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7843 (eval $ac_try) 2>&5 7844 ac_status=$? 7845 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7846 (exit $ac_status); }; } && 7847 { ac_try='test -s conftest.$ac_objext' 7848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7849 (eval $ac_try) 2>&5 7850 ac_status=$? 7851 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7852 (exit $ac_status); }; }; then 7853 ac_hi=$ac_mid 7854else 7855 echo "$as_me: failed program was:" >&5 7856sed 's/^/| /' conftest.$ac_ext >&5 7857 7858ac_lo=`expr '(' $ac_mid ')' + 1` 7859fi 7860rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7861done 7862case $ac_lo in 7863?*) ac_cv_sizeof_wchar_t=$ac_lo;; 7864'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77 7865See \`config.log' for more details." >&5 7866echo "$as_me: error: cannot compute sizeof (wchar_t), 77 7867See \`config.log' for more details." >&2;} 7868 { (exit 1); exit 1; }; } ;; 7869esac 7870else 7871 if test "$cross_compiling" = yes; then 7872 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 7873See \`config.log' for more details." >&5 7874echo "$as_me: error: cannot run test program while cross compiling 7875See \`config.log' for more details." >&2;} 7876 { (exit 1); exit 1; }; } 7877else 7878 cat >conftest.$ac_ext <<_ACEOF 7879/* confdefs.h. */ 7880_ACEOF 7881cat confdefs.h >>conftest.$ac_ext 7882cat >>conftest.$ac_ext <<_ACEOF 7883/* end confdefs.h. */ 7884 7885#if STDC_HEADERS 7886#include <stddef.h> 7887#endif 7888#include <stdlib.h> 7889#if HAVE_WCHAR_H 7890#include <string.h> 7891#include <wchar.h> 7892#endif 7893 7894long longval () { return (long) (sizeof (wchar_t)); } 7895unsigned long ulongval () { return (long) (sizeof (wchar_t)); } 7896#include <stdio.h> 7897#include <stdlib.h> 7898int 7899main () 7900{ 7901 7902 FILE *f = fopen ("conftest.val", "w"); 7903 if (! f) 7904 exit (1); 7905 if (((long) (sizeof (wchar_t))) < 0) 7906 { 7907 long i = longval (); 7908 if (i != ((long) (sizeof (wchar_t)))) 7909 exit (1); 7910 fprintf (f, "%ld\n", i); 7911 } 7912 else 7913 { 7914 unsigned long i = ulongval (); 7915 if (i != ((long) (sizeof (wchar_t)))) 7916 exit (1); 7917 fprintf (f, "%lu\n", i); 7918 } 7919 exit (ferror (f) || fclose (f) != 0); 7920 7921 ; 7922 return 0; 7923} 7924_ACEOF 7925rm -f conftest$ac_exeext 7926if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7927 (eval $ac_link) 2>&5 7928 ac_status=$? 7929 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7930 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 7931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7932 (eval $ac_try) 2>&5 7933 ac_status=$? 7934 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7935 (exit $ac_status); }; }; then 7936 ac_cv_sizeof_wchar_t=`cat conftest.val` 7937else 7938 echo "$as_me: program exited with status $ac_status" >&5 7939echo "$as_me: failed program was:" >&5 7940sed 's/^/| /' conftest.$ac_ext >&5 7941 7942( exit $ac_status ) 7943{ { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77 7944See \`config.log' for more details." >&5 7945echo "$as_me: error: cannot compute sizeof (wchar_t), 77 7946See \`config.log' for more details." >&2;} 7947 { (exit 1); exit 1; }; } 7948fi 7949rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 7950fi 7951fi 7952rm -f conftest.val 7953else 7954 ac_cv_sizeof_wchar_t=0 7955fi 7956fi 7957echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5 7958echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6 7959cat >>confdefs.h <<_ACEOF 7960#define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t 7961_ACEOF 7962 7963 7964U_SIZEOF_WCHAR_T=$ac_cv_sizeof_wchar_t 7965# We do this check to verify that everything is okay. 7966if test $U_SIZEOF_WCHAR_T = 0; then 7967 if test $U_HAVE_WCHAR_H=1; then 7968 { { echo "$as_me:$LINENO: error: There is wchar.h but the size of wchar_t is 0" >&5 7969echo "$as_me: error: There is wchar.h but the size of wchar_t is 0" >&2;} 7970 { (exit 1); exit 1; }; } 7971 fi 7972fi 7973 7974 7975echo "$as_me:$LINENO: checking for UTF-16 string literal support" >&5 7976echo $ECHO_N "checking for UTF-16 string literal support... $ECHO_C" >&6 7977U_CHECK_UTF16_STRING=1 7978CHECK_UTF16_STRING_RESULT="unknown" 7979case "${host}" in 7980*-*-aix*|powerpc64-*-linux*) 7981 if test "$ac_cv_c_compiler_gnu" = no; then 7982 OLD_CFLAGS="${CFLAGS}" 7983 OLD_CXXFLAGS="${CXXFLAGS}" 7984 CFLAGS="${CFLAGS} -qutf" 7985 CXXFLAGS="${CXXFLAGS} -qutf" 7986 cat >conftest.$ac_ext <<_ACEOF 7987/* confdefs.h. */ 7988_ACEOF 7989cat confdefs.h >>conftest.$ac_ext 7990cat >>conftest.$ac_ext <<_ACEOF 7991/* end confdefs.h. */ 7992const unsigned short hello[] = u"hello"; 7993int 7994main () 7995{ 7996 7997 ; 7998 return 0; 7999} 8000_ACEOF 8001rm -f conftest.$ac_objext 8002if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8003 (eval $ac_compile) 2>conftest.er1 8004 ac_status=$? 8005 grep -v '^ *+' conftest.er1 >conftest.err 8006 rm -f conftest.er1 8007 cat conftest.err >&5 8008 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8009 (exit $ac_status); } && 8010 { ac_try='test -z "$ac_c_werror_flag" 8011 || test ! -s conftest.err' 8012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8013 (eval $ac_try) 2>&5 8014 ac_status=$? 8015 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8016 (exit $ac_status); }; } && 8017 { ac_try='test -s conftest.$ac_objext' 8018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8019 (eval $ac_try) 2>&5 8020 ac_status=$? 8021 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8022 (exit $ac_status); }; }; then 8023 U_CHECK_UTF16_STRING=1 8024else 8025 echo "$as_me: failed program was:" >&5 8026sed 's/^/| /' conftest.$ac_ext >&5 8027 8028U_CHECK_UTF16_STRING=0 8029fi 8030rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8031 if test "$U_CHECK_UTF16_STRING" = 0; then 8032 CFLAGS="${OLD_CFLAGS}" 8033 CXXFLAGS="${OLD_CXXFLAGS}" 8034 else 8035 CHECK_UTF16_STRING_RESULT="-qutf" 8036 fi 8037 fi 8038 ;; 8039*-*-solaris*) 8040 if test "$ac_cv_c_compiler_gnu" = no; then 8041 OLD_CFLAGS="${CFLAGS}" 8042 OLD_CXXFLAGS="${CXXFLAGS}" 8043 CFLAGS="${CFLAGS} -xustr=ascii_utf16_ushort" 8044 CXXFLAGS="${CXXFLAGS} -xustr=ascii_utf16_ushort" 8045 cat >conftest.$ac_ext <<_ACEOF 8046/* confdefs.h. */ 8047_ACEOF 8048cat confdefs.h >>conftest.$ac_ext 8049cat >>conftest.$ac_ext <<_ACEOF 8050/* end confdefs.h. */ 8051const unsigned short hello[] = U"hello"; 8052int 8053main () 8054{ 8055 8056 ; 8057 return 0; 8058} 8059_ACEOF 8060rm -f conftest.$ac_objext 8061if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8062 (eval $ac_compile) 2>conftest.er1 8063 ac_status=$? 8064 grep -v '^ *+' conftest.er1 >conftest.err 8065 rm -f conftest.er1 8066 cat conftest.err >&5 8067 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8068 (exit $ac_status); } && 8069 { ac_try='test -z "$ac_c_werror_flag" 8070 || test ! -s conftest.err' 8071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8072 (eval $ac_try) 2>&5 8073 ac_status=$? 8074 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8075 (exit $ac_status); }; } && 8076 { ac_try='test -s conftest.$ac_objext' 8077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8078 (eval $ac_try) 2>&5 8079 ac_status=$? 8080 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8081 (exit $ac_status); }; }; then 8082 U_CHECK_UTF16_STRING=1 8083else 8084 echo "$as_me: failed program was:" >&5 8085sed 's/^/| /' conftest.$ac_ext >&5 8086 8087U_CHECK_UTF16_STRING=0 8088fi 8089rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8090 if test "$U_CHECK_UTF16_STRING" = 0; then 8091 CFLAGS="${OLD_CFLAGS}" 8092 CXXFLAGS="${OLD_CXXFLAGS}" 8093 else 8094 CHECK_UTF16_STRING_RESULT="-xustr=ascii_utf16_ushort" 8095 8096 # Since we can't detect the availability of this UTF-16 syntax at compile time, 8097 # we depend on configure telling us that we can use it. 8098 # Since we can't ensure ICU users use -xustr=ascii_utf16_ushort, 8099 # we only use this macro within ICU. 8100 # If an ICU user uses icu-config, this feature will be enabled. 8101 CPPFLAGS="${CPPFLAGS} -DU_CHECK_UTF16_STRING=1" 8102 U_CHECK_UTF16_STRING=0 8103 fi 8104 fi 8105 ;; 8106*-*-hpux*) 8107 if test "$ac_cv_c_compiler_gnu" = no; then 8108 CHECK_UTF16_STRING_RESULT="available" 8109 fi 8110 ;; 8111*-*-cygwin) 8112 CHECK_UTF16_STRING_RESULT="available" 8113 ;; 8114*) 8115 ;; 8116esac 8117echo "$as_me:$LINENO: result: $CHECK_UTF16_STRING_RESULT" >&5 8118echo "${ECHO_T}$CHECK_UTF16_STRING_RESULT" >&6 8119 8120 8121# Check whether --enable-extras or --disable-extras was given. 8122if test "${enable_extras+set}" = set; then 8123 enableval="$enable_extras" 8124 case "${enableval}" in 8125 yes) extras=true ;; 8126 no) extras=false ;; 8127 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-extras" >&5 8128echo "$as_me: error: bad value ${enableval} for --enable-extras" >&2;} 8129 { (exit 1); exit 1; }; } ;; 8130 esac 8131else 8132 extras=true 8133fi; 8134 8135if test "$extras" = true; then 8136 EXTRAS_TRUE= 8137else 8138 EXTRAS_TRUE='#' 8139fi 8140# Check whether --enable-icuio or --disable-icuio was given. 8141if test "${enable_icuio+set}" = set; then 8142 enableval="$enable_icuio" 8143 case "${enableval}" in 8144 yes) icuio=true ;; 8145 no) icuio=false ;; 8146 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-icuio" >&5 8147echo "$as_me: error: bad value ${enableval} for --enable-icuio" >&2;} 8148 { (exit 1); exit 1; }; } ;; 8149 esac 8150else 8151 icuio=true 8152fi; 8153 8154if test "$icuio" = true; then 8155 ICUIO_TRUE= 8156else 8157 ICUIO_TRUE='#' 8158fi 8159 8160# Check whether --enable-layout or --disable-layout was given. 8161if test "${enable_layout+set}" = set; then 8162 enableval="$enable_layout" 8163 case "${enableval}" in 8164 yes) layout=true ;; 8165 no) layout=false ;; 8166 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-layout" >&5 8167echo "$as_me: error: bad value ${enableval} for --enable-layout" >&2;} 8168 { (exit 1); exit 1; }; } ;; 8169 esac 8170else 8171 layout=true 8172fi; 8173 8174if test "$layout" = true; then 8175 LAYOUT_TRUE= 8176else 8177 LAYOUT_TRUE='#' 8178fi 8179 8180 8181# Check whether --with-data-packaging or --without-data-packaging was given. 8182if test "${with_data_packaging+set}" = set; then 8183 withval="$with_data_packaging" 8184 case "${withval}" in 8185 files|archive|library) datapackaging=$withval ;; 8186 auto) datapackaging=$withval ;; 8187 common) datapackaging=archive ;; 8188 dll) datapackaging=library ;; 8189 static) datapackaging=static ;; 8190 *) { { echo "$as_me:$LINENO: error: bad value ${withval} for --with-data-packaging" >&5 8191echo "$as_me: error: bad value ${withval} for --with-data-packaging" >&2;} 8192 { (exit 1); exit 1; }; } ;; 8193 esac 8194else 8195 datapackaging= 8196fi; 8197 8198thedatadir=`eval echo $datadir` 8199pkgicudatadir=$datadir 8200thepkgicudatadir=$thedatadir 8201 8202 8203 8204 8205if test x"$datapackaging" = x -o x"$datapackaging" = xauto; then 8206 datapackaging=library 8207fi 8208 8209case "$datapackaging" in 8210 files) 8211 DATA_PACKAGING_MODE=files 8212 ;; 8213 archive) 8214 DATA_PACKAGING_MODE=common 8215 ;; 8216 library) 8217 DATA_PACKAGING_MODE=dll 8218 ;; 8219esac 8220 8221 8222echo "$as_me:$LINENO: checking for a library suffix to use" >&5 8223echo $ECHO_N "checking for a library suffix to use... $ECHO_C" >&6 8224 8225# Check whether --with-library-suffix or --without-library-suffix was given. 8226if test "${with_library_suffix+set}" = set; then 8227 withval="$with_library_suffix" 8228 ICULIBSUFFIX="${withval}" 8229else 8230 ICULIBSUFFIX= 8231fi; 8232msg=$ICULIBSUFFIX 8233if test "$msg" = ""; then 8234 msg=none 8235fi 8236echo "$as_me:$LINENO: result: $msg" >&5 8237echo "${ECHO_T}$msg" >&6 8238 8239if test "$ICULIBSUFFIX" != "" 8240then 8241 U_HAVE_LIB_SUFFIX=1 8242 ICULIBSUFFIXCNAME=`echo _$ICULIBSUFFIX | sed 's/[^A-Za-z0-9_]/_/g'` 8243else 8244 U_HAVE_LIB_SUFFIX=0 8245fi 8246 8247 8248 8249# Check whether --enable-tests or --disable-tests was given. 8250if test "${enable_tests+set}" = set; then 8251 enableval="$enable_tests" 8252 case "${enableval}" in 8253 yes) tests=true ;; 8254 no) tests=false ;; 8255 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-tests" >&5 8256echo "$as_me: error: bad value ${enableval} for --enable-tests" >&2;} 8257 { (exit 1); exit 1; }; } ;; 8258 esac 8259else 8260 tests=true 8261fi; 8262 8263if test "$tests" = true; then 8264 TESTS_TRUE= 8265else 8266 TESTS_TRUE='#' 8267fi 8268 8269# Check whether --enable-samples or --disable-samples was given. 8270if test "${enable_samples+set}" = set; then 8271 enableval="$enable_samples" 8272 case "${enableval}" in 8273 yes) samples=true ;; 8274 no) samples=false ;; 8275 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-samples" >&5 8276echo "$as_me: error: bad value ${enableval} for --enable-samples" >&2;} 8277 { (exit 1); exit 1; }; } ;; 8278 esac 8279else 8280 samples=true 8281fi; 8282 8283if test "$samples" = true; then 8284 SAMPLES_TRUE= 8285else 8286 SAMPLES_TRUE='#' 8287fi 8288 8289ICUDATA_CHAR=$U_ENDIAN_CHAR 8290 8291case "${host}" in 8292 *-*-solaris*) platform=U_SOLARIS ;; 8293 *-*-linux*) platform=U_LINUX ;; 8294 *-pc-gnu) platform=U_HURD ;; 8295 *-*-*bsd*|*-*-dragonfly*) platform=U_BSD ;; 8296 *-*-aix*) platform=U_AIX ;; 8297 *-*-hpux*) platform=U_HPUX ;; 8298 *-apple-darwin*|*-apple-rhapsody*) platform=U_DARWIN ;; 8299 *-*-cygwin*|*-*-mingw*) platform=U_CYGWIN ;; 8300 *-*ibm-openedition*|*-*-os390*) platform=OS390 8301 if test "${ICU_ENABLE_ASCII_STRINGS}" != "1"; then 8302 ICUDATA_CHAR="e" 8303 fi ;; 8304 *-*-os400*) platform=OS400 8305 if test "${ICU_ENABLE_ASCII_STRINGS}" != "1"; then 8306 ICUDATA_CHAR="e" 8307 fi ;; 8308 *-*-nto*) platform=U_QNX ;; 8309 *-dec-osf*) platform=U_OSF ;; 8310 *-*-beos) platform=U_BEOS ;; 8311 *-*-irix*) platform=U_IRIX ;; 8312 *-ncr-*) platform=U_MPRAS ;; 8313 *) platform=U_UNKNOWN_PLATFORM ;; 8314esac 8315 8316 8317platform_make_fragment_name="$icu_cv_host_frag" 8318platform_make_fragment='$(top_srcdir)/config/'"$platform_make_fragment_name" 8319 8320 8321 8322if test "${FORCE_LIBS}" != ""; then 8323 echo " *** Overriding automatically chosen LIBS=$LIBS, using instead FORCE_LIBS=${FORCE_LIBS}" 1>&6 8324 LIBS=${FORCE_LIBS} 8325fi 8326 8327 8328 8329if test $ICU_USE_THREADS -ne 0 8330then 8331 CPPFLAGS="$CPPFLAGS \$(THREADSCPPFLAGS)" 8332 CFLAGS="$CFLAGS \$(THREADSCFLAGS)" 8333 CXXFLAGS="$CXXFLAGS \$(THREADSCXXFLAGS)" 8334fi 8335 8336 ac_config_files="$ac_config_files icudefs.mk Makefile data/icupkg.inc config/Makefile.inc data/Makefile stubdata/Makefile common/Makefile i18n/Makefile layout/Makefile layoutex/Makefile io/Makefile extra/Makefile extra/uconv/Makefile extra/scrptrun/Makefile tools/Makefile tools/ctestfw/Makefile tools/toolutil/Makefile tools/makeconv/Makefile tools/genrb/Makefile tools/genuca/Makefile tools/genccode/Makefile tools/gencmn/Makefile tools/gencnval/Makefile tools/genctd/Makefile tools/gennames/Makefile tools/gentest/Makefile tools/gennorm/Makefile tools/genprops/Makefile tools/gencase/Makefile tools/genbidi/Makefile tools/genpname/Makefile tools/genbrk/Makefile tools/gensprep/Makefile tools/icupkg/Makefile tools/icuswap/Makefile tools/pkgdata/Makefile tools/tzcode/Makefile test/Makefile test/compat/Makefile test/testdata/Makefile test/testdata/pkgdata.inc test/hdrtst/Makefile test/intltest/Makefile test/cintltst/Makefile test/iotest/Makefile test/letest/Makefile samples/Makefile samples/date/Makefile samples/cal/Makefile samples/layout/Makefile common/unicode/platform.h" 8337cat >confcache <<\_ACEOF 8338# This file is a shell script that caches the results of configure 8339# tests run on this system so they can be shared between configure 8340# scripts and configure runs, see configure's option --config-cache. 8341# It is not useful on other systems. If it contains results you don't 8342# want to keep, you may remove or edit it. 8343# 8344# config.status only pays attention to the cache file if you give it 8345# the --recheck option to rerun configure. 8346# 8347# `ac_cv_env_foo' variables (set or unset) will be overridden when 8348# loading this file, other *unset* `ac_cv_foo' will be assigned the 8349# following values. 8350 8351_ACEOF 8352 8353# The following way of writing the cache mishandles newlines in values, 8354# but we know of no workaround that is simple, portable, and efficient. 8355# So, don't put newlines in cache variables' values. 8356# Ultrix sh set writes to stderr and can't be redirected directly, 8357# and sets the high bit in the cache file unless we assign to the vars. 8358{ 8359 (set) 2>&1 | 8360 case `(ac_space=' '; set | grep ac_space) 2>&1` in 8361 *ac_space=\ *) 8362 # `set' does not quote correctly, so add quotes (double-quote 8363 # substitution turns \\\\ into \\, and sed turns \\ into \). 8364 sed -n \ 8365 "s/'/'\\\\''/g; 8366 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 8367 ;; 8368 *) 8369 # `set' quotes correctly as required by POSIX, so do not add quotes. 8370 sed -n \ 8371 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 8372 ;; 8373 esac; 8374} | 8375 sed ' 8376 t clear 8377 : clear 8378 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 8379 t end 8380 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 8381 : end' >>confcache 8382if diff $cache_file confcache >/dev/null 2>&1; then :; else 8383 if test -w $cache_file; then 8384 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" 8385 cat confcache >$cache_file 8386 else 8387 echo "not updating unwritable cache $cache_file" 8388 fi 8389fi 8390rm -f confcache 8391 8392test "x$prefix" = xNONE && prefix=$ac_default_prefix 8393# Let make expand exec_prefix. 8394test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 8395 8396# VPATH may cause trouble with some makes, so we remove $(srcdir), 8397# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 8398# trailing colons and then remove the whole line if VPATH becomes empty 8399# (actually we leave an empty line to preserve line numbers). 8400if test "x$srcdir" = x.; then 8401 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 8402s/:*\$(srcdir):*/:/; 8403s/:*\${srcdir}:*/:/; 8404s/:*@srcdir@:*/:/; 8405s/^\([^=]*=[ ]*\):*/\1/; 8406s/:*$//; 8407s/^[^=]*=[ ]*$//; 8408}' 8409fi 8410 8411DEFS=-DHAVE_CONFIG_H 8412 8413ac_libobjs= 8414ac_ltlibobjs= 8415for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 8416 # 1. Remove the extension, and $U if already installed. 8417 ac_i=`echo "$ac_i" | 8418 sed 's/\$U\././;s/\.o$//;s/\.obj$//'` 8419 # 2. Add them. 8420 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" 8421 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' 8422done 8423LIBOBJS=$ac_libobjs 8424 8425LTLIBOBJS=$ac_ltlibobjs 8426 8427 8428 8429: ${CONFIG_STATUS=./config.status} 8430ac_clean_files_save=$ac_clean_files 8431ac_clean_files="$ac_clean_files $CONFIG_STATUS" 8432{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 8433echo "$as_me: creating $CONFIG_STATUS" >&6;} 8434cat >$CONFIG_STATUS <<_ACEOF 8435#! $SHELL 8436# Generated by $as_me. 8437# Run this file to recreate the current configuration. 8438# Compiler output produced by configure, useful for debugging 8439# configure, is in config.log if it exists. 8440 8441debug=false 8442ac_cs_recheck=false 8443ac_cs_silent=false 8444SHELL=\${CONFIG_SHELL-$SHELL} 8445_ACEOF 8446 8447cat >>$CONFIG_STATUS <<\_ACEOF 8448## --------------------- ## 8449## M4sh Initialization. ## 8450## --------------------- ## 8451 8452# Be Bourne compatible 8453if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 8454 emulate sh 8455 NULLCMD=: 8456 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 8457 # is contrary to our usage. Disable this feature. 8458 alias -g '${1+"$@"}'='"$@"' 8459elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 8460 set -o posix 8461fi 8462DUALCASE=1; export DUALCASE # for MKS sh 8463 8464# Support unset when possible. 8465if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 8466 as_unset=unset 8467else 8468 as_unset=false 8469fi 8470 8471 8472# Work around bugs in pre-3.0 UWIN ksh. 8473$as_unset ENV MAIL MAILPATH 8474PS1='$ ' 8475PS2='> ' 8476PS4='+ ' 8477 8478# NLS nuisances. 8479for as_var in \ 8480 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 8481 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 8482 LC_TELEPHONE LC_TIME 8483do 8484 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 8485 eval $as_var=C; export $as_var 8486 else 8487 $as_unset $as_var 8488 fi 8489done 8490 8491# Required to use basename. 8492if expr a : '\(a\)' >/dev/null 2>&1; then 8493 as_expr=expr 8494else 8495 as_expr=false 8496fi 8497 8498if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 8499 as_basename=basename 8500else 8501 as_basename=false 8502fi 8503 8504 8505# Name of the executable. 8506as_me=`$as_basename "$0" || 8507$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 8508 X"$0" : 'X\(//\)$' \| \ 8509 X"$0" : 'X\(/\)$' \| \ 8510 . : '\(.\)' 2>/dev/null || 8511echo X/"$0" | 8512 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 8513 /^X\/\(\/\/\)$/{ s//\1/; q; } 8514 /^X\/\(\/\).*/{ s//\1/; q; } 8515 s/.*/./; q'` 8516 8517 8518# PATH needs CR, and LINENO needs CR and PATH. 8519# Avoid depending upon Character Ranges. 8520as_cr_letters='abcdefghijklmnopqrstuvwxyz' 8521as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 8522as_cr_Letters=$as_cr_letters$as_cr_LETTERS 8523as_cr_digits='0123456789' 8524as_cr_alnum=$as_cr_Letters$as_cr_digits 8525 8526# The user is always right. 8527if test "${PATH_SEPARATOR+set}" != set; then 8528 echo "#! /bin/sh" >conf$$.sh 8529 echo "exit 0" >>conf$$.sh 8530 chmod +x conf$$.sh 8531 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 8532 PATH_SEPARATOR=';' 8533 else 8534 PATH_SEPARATOR=: 8535 fi 8536 rm -f conf$$.sh 8537fi 8538 8539 8540 as_lineno_1=$LINENO 8541 as_lineno_2=$LINENO 8542 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 8543 test "x$as_lineno_1" != "x$as_lineno_2" && 8544 test "x$as_lineno_3" = "x$as_lineno_2" || { 8545 # Find who we are. Look in the path if we contain no path at all 8546 # relative or not. 8547 case $0 in 8548 *[\\/]* ) as_myself=$0 ;; 8549 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8550for as_dir in $PATH 8551do 8552 IFS=$as_save_IFS 8553 test -z "$as_dir" && as_dir=. 8554 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 8555done 8556 8557 ;; 8558 esac 8559 # We did not find ourselves, most probably we were run as `sh COMMAND' 8560 # in which case we are not to be found in the path. 8561 if test "x$as_myself" = x; then 8562 as_myself=$0 8563 fi 8564 if test ! -f "$as_myself"; then 8565 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 8566echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} 8567 { (exit 1); exit 1; }; } 8568 fi 8569 case $CONFIG_SHELL in 8570 '') 8571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8572for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 8573do 8574 IFS=$as_save_IFS 8575 test -z "$as_dir" && as_dir=. 8576 for as_base in sh bash ksh sh5; do 8577 case $as_dir in 8578 /*) 8579 if ("$as_dir/$as_base" -c ' 8580 as_lineno_1=$LINENO 8581 as_lineno_2=$LINENO 8582 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 8583 test "x$as_lineno_1" != "x$as_lineno_2" && 8584 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 8585 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 8586 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 8587 CONFIG_SHELL=$as_dir/$as_base 8588 export CONFIG_SHELL 8589 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 8590 fi;; 8591 esac 8592 done 8593done 8594;; 8595 esac 8596 8597 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 8598 # uniformly replaced by the line number. The first 'sed' inserts a 8599 # line-number line before each line; the second 'sed' does the real 8600 # work. The second script uses 'N' to pair each line-number line 8601 # with the numbered line, and appends trailing '-' during 8602 # substitution so that $LINENO is not a special case at line end. 8603 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 8604 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 8605 sed '=' <$as_myself | 8606 sed ' 8607 N 8608 s,$,-, 8609 : loop 8610 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 8611 t loop 8612 s,-$,, 8613 s,^['$as_cr_digits']*\n,, 8614 ' >$as_me.lineno && 8615 chmod +x $as_me.lineno || 8616 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 8617echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} 8618 { (exit 1); exit 1; }; } 8619 8620 # Don't try to exec as it changes $[0], causing all sort of problems 8621 # (the dirname of $[0] is not the place where we might find the 8622 # original and so on. Autoconf is especially sensible to this). 8623 . ./$as_me.lineno 8624 # Exit status is that of the last command. 8625 exit 8626} 8627 8628 8629case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 8630 *c*,-n*) ECHO_N= ECHO_C=' 8631' ECHO_T=' ' ;; 8632 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 8633 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 8634esac 8635 8636if expr a : '\(a\)' >/dev/null 2>&1; then 8637 as_expr=expr 8638else 8639 as_expr=false 8640fi 8641 8642rm -f conf$$ conf$$.exe conf$$.file 8643echo >conf$$.file 8644if ln -s conf$$.file conf$$ 2>/dev/null; then 8645 # We could just check for DJGPP; but this test a) works b) is more generic 8646 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 8647 if test -f conf$$.exe; then 8648 # Don't use ln at all; we don't have any links 8649 as_ln_s='cp -p' 8650 else 8651 as_ln_s='ln -s' 8652 fi 8653elif ln conf$$.file conf$$ 2>/dev/null; then 8654 as_ln_s=ln 8655else 8656 as_ln_s='cp -p' 8657fi 8658rm -f conf$$ conf$$.exe conf$$.file 8659 8660if mkdir -p . 2>/dev/null; then 8661 as_mkdir_p=: 8662else 8663 test -d ./-p && rmdir ./-p 8664 as_mkdir_p=false 8665fi 8666 8667as_executable_p="test -f" 8668 8669# Sed expression to map a string onto a valid CPP name. 8670as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 8671 8672# Sed expression to map a string onto a valid variable name. 8673as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 8674 8675 8676# IFS 8677# We need space, tab and new line, in precisely that order. 8678as_nl=' 8679' 8680IFS=" $as_nl" 8681 8682# CDPATH. 8683$as_unset CDPATH 8684 8685exec 6>&1 8686 8687# Open the log real soon, to keep \$[0] and so on meaningful, and to 8688# report actual input values of CONFIG_FILES etc. instead of their 8689# values after options handling. Logging --version etc. is OK. 8690exec 5>>config.log 8691{ 8692 echo 8693 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 8694## Running $as_me. ## 8695_ASBOX 8696} >&5 8697cat >&5 <<_CSEOF 8698 8699This file was extended by $as_me, which was 8700generated by GNU Autoconf 2.59. Invocation command line was 8701 8702 CONFIG_FILES = $CONFIG_FILES 8703 CONFIG_HEADERS = $CONFIG_HEADERS 8704 CONFIG_LINKS = $CONFIG_LINKS 8705 CONFIG_COMMANDS = $CONFIG_COMMANDS 8706 $ $0 $@ 8707 8708_CSEOF 8709echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 8710echo >&5 8711_ACEOF 8712 8713# Files that config.status was made for. 8714if test -n "$ac_config_files"; then 8715 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS 8716fi 8717 8718if test -n "$ac_config_headers"; then 8719 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS 8720fi 8721 8722if test -n "$ac_config_links"; then 8723 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS 8724fi 8725 8726if test -n "$ac_config_commands"; then 8727 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS 8728fi 8729 8730cat >>$CONFIG_STATUS <<\_ACEOF 8731 8732ac_cs_usage="\ 8733\`$as_me' instantiates files from templates according to the 8734current configuration. 8735 8736Usage: $0 [OPTIONS] [FILE]... 8737 8738 -h, --help print this help, then exit 8739 -V, --version print version number, then exit 8740 -q, --quiet do not print progress messages 8741 -d, --debug don't remove temporary files 8742 --recheck update $as_me by reconfiguring in the same conditions 8743 --file=FILE[:TEMPLATE] 8744 instantiate the configuration file FILE 8745 --header=FILE[:TEMPLATE] 8746 instantiate the configuration header FILE 8747 8748Configuration files: 8749$config_files 8750 8751Configuration headers: 8752$config_headers 8753 8754Report bugs to <bug-autoconf@gnu.org>." 8755_ACEOF 8756 8757cat >>$CONFIG_STATUS <<_ACEOF 8758ac_cs_version="\\ 8759config.status 8760configured by $0, generated by GNU Autoconf 2.59, 8761 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" 8762 8763Copyright (C) 2003 Free Software Foundation, Inc. 8764This config.status script is free software; the Free Software Foundation 8765gives unlimited permission to copy, distribute and modify it." 8766srcdir=$srcdir 8767INSTALL="$INSTALL" 8768_ACEOF 8769 8770cat >>$CONFIG_STATUS <<\_ACEOF 8771# If no file are specified by the user, then we need to provide default 8772# value. By we need to know if files were specified by the user. 8773ac_need_defaults=: 8774while test $# != 0 8775do 8776 case $1 in 8777 --*=*) 8778 ac_option=`expr "x$1" : 'x\([^=]*\)='` 8779 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` 8780 ac_shift=: 8781 ;; 8782 -*) 8783 ac_option=$1 8784 ac_optarg=$2 8785 ac_shift=shift 8786 ;; 8787 *) # This is not an option, so the user has probably given explicit 8788 # arguments. 8789 ac_option=$1 8790 ac_need_defaults=false;; 8791 esac 8792 8793 case $ac_option in 8794 # Handling of the options. 8795_ACEOF 8796cat >>$CONFIG_STATUS <<\_ACEOF 8797 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 8798 ac_cs_recheck=: ;; 8799 --version | --vers* | -V ) 8800 echo "$ac_cs_version"; exit 0 ;; 8801 --he | --h) 8802 # Conflict between --help and --header 8803 { { echo "$as_me:$LINENO: error: ambiguous option: $1 8804Try \`$0 --help' for more information." >&5 8805echo "$as_me: error: ambiguous option: $1 8806Try \`$0 --help' for more information." >&2;} 8807 { (exit 1); exit 1; }; };; 8808 --help | --hel | -h ) 8809 echo "$ac_cs_usage"; exit 0 ;; 8810 --debug | --d* | -d ) 8811 debug=: ;; 8812 --file | --fil | --fi | --f ) 8813 $ac_shift 8814 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 8815 ac_need_defaults=false;; 8816 --header | --heade | --head | --hea ) 8817 $ac_shift 8818 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 8819 ac_need_defaults=false;; 8820 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 8821 | -silent | --silent | --silen | --sile | --sil | --si | --s) 8822 ac_cs_silent=: ;; 8823 8824 # This is an error. 8825 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 8826Try \`$0 --help' for more information." >&5 8827echo "$as_me: error: unrecognized option: $1 8828Try \`$0 --help' for more information." >&2;} 8829 { (exit 1); exit 1; }; } ;; 8830 8831 *) ac_config_targets="$ac_config_targets $1" ;; 8832 8833 esac 8834 shift 8835done 8836 8837ac_configure_extra_args= 8838 8839if $ac_cs_silent; then 8840 exec 6>/dev/null 8841 ac_configure_extra_args="$ac_configure_extra_args --silent" 8842fi 8843 8844_ACEOF 8845cat >>$CONFIG_STATUS <<_ACEOF 8846if \$ac_cs_recheck; then 8847 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 8848 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 8849fi 8850 8851_ACEOF 8852 8853 8854 8855 8856 8857cat >>$CONFIG_STATUS <<\_ACEOF 8858for ac_config_target in $ac_config_targets 8859do 8860 case "$ac_config_target" in 8861 # Handling of arguments. 8862 "icudefs.mk" ) CONFIG_FILES="$CONFIG_FILES icudefs.mk" ;; 8863 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; 8864 "data/icupkg.inc" ) CONFIG_FILES="$CONFIG_FILES data/icupkg.inc" ;; 8865 "config/Makefile.inc" ) CONFIG_FILES="$CONFIG_FILES config/Makefile.inc" ;; 8866 "data/Makefile" ) CONFIG_FILES="$CONFIG_FILES data/Makefile" ;; 8867 "stubdata/Makefile" ) CONFIG_FILES="$CONFIG_FILES stubdata/Makefile" ;; 8868 "common/Makefile" ) CONFIG_FILES="$CONFIG_FILES common/Makefile" ;; 8869 "i18n/Makefile" ) CONFIG_FILES="$CONFIG_FILES i18n/Makefile" ;; 8870 "layout/Makefile" ) CONFIG_FILES="$CONFIG_FILES layout/Makefile" ;; 8871 "layoutex/Makefile" ) CONFIG_FILES="$CONFIG_FILES layoutex/Makefile" ;; 8872 "io/Makefile" ) CONFIG_FILES="$CONFIG_FILES io/Makefile" ;; 8873 "extra/Makefile" ) CONFIG_FILES="$CONFIG_FILES extra/Makefile" ;; 8874 "extra/uconv/Makefile" ) CONFIG_FILES="$CONFIG_FILES extra/uconv/Makefile" ;; 8875 "extra/scrptrun/Makefile" ) CONFIG_FILES="$CONFIG_FILES extra/scrptrun/Makefile" ;; 8876 "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;; 8877 "tools/ctestfw/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/ctestfw/Makefile" ;; 8878 "tools/toolutil/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/toolutil/Makefile" ;; 8879 "tools/makeconv/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/makeconv/Makefile" ;; 8880 "tools/genrb/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/genrb/Makefile" ;; 8881 "tools/genuca/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/genuca/Makefile" ;; 8882 "tools/genccode/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/genccode/Makefile" ;; 8883 "tools/gencmn/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/gencmn/Makefile" ;; 8884 "tools/gencnval/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/gencnval/Makefile" ;; 8885 "tools/genctd/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/genctd/Makefile" ;; 8886 "tools/gennames/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/gennames/Makefile" ;; 8887 "tools/gentest/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/gentest/Makefile" ;; 8888 "tools/gennorm/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/gennorm/Makefile" ;; 8889 "tools/genprops/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/genprops/Makefile" ;; 8890 "tools/gencase/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/gencase/Makefile" ;; 8891 "tools/genbidi/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/genbidi/Makefile" ;; 8892 "tools/genpname/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/genpname/Makefile" ;; 8893 "tools/genbrk/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/genbrk/Makefile" ;; 8894 "tools/gensprep/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/gensprep/Makefile" ;; 8895 "tools/icupkg/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/icupkg/Makefile" ;; 8896 "tools/icuswap/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/icuswap/Makefile" ;; 8897 "tools/pkgdata/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/pkgdata/Makefile" ;; 8898 "tools/tzcode/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/tzcode/Makefile" ;; 8899 "test/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/Makefile" ;; 8900 "test/compat/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/compat/Makefile" ;; 8901 "test/testdata/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/testdata/Makefile" ;; 8902 "test/testdata/pkgdata.inc" ) CONFIG_FILES="$CONFIG_FILES test/testdata/pkgdata.inc" ;; 8903 "test/hdrtst/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/hdrtst/Makefile" ;; 8904 "test/intltest/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/intltest/Makefile" ;; 8905 "test/cintltst/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/cintltst/Makefile" ;; 8906 "test/iotest/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/iotest/Makefile" ;; 8907 "test/letest/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/letest/Makefile" ;; 8908 "samples/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/Makefile" ;; 8909 "samples/date/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/date/Makefile" ;; 8910 "samples/cal/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/cal/Makefile" ;; 8911 "samples/layout/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/layout/Makefile" ;; 8912 "common/unicode/platform.h" ) CONFIG_FILES="$CONFIG_FILES common/unicode/platform.h" ;; 8913 "common/icucfg.h" ) CONFIG_HEADERS="$CONFIG_HEADERS common/icucfg.h" ;; 8914 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 8915echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 8916 { (exit 1); exit 1; }; };; 8917 esac 8918done 8919 8920# If the user did not use the arguments to specify the items to instantiate, 8921# then the envvar interface is used. Set only those that are not. 8922# We use the long form for the default assignment because of an extremely 8923# bizarre bug on SunOS 4.1.3. 8924if $ac_need_defaults; then 8925 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 8926 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 8927fi 8928 8929# Have a temporary directory for convenience. Make it in the build tree 8930# simply because there is no reason to put it here, and in addition, 8931# creating and moving files from /tmp can sometimes cause problems. 8932# Create a temporary directory, and hook for its removal unless debugging. 8933$debug || 8934{ 8935 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 8936 trap '{ (exit 1); exit 1; }' 1 2 13 15 8937} 8938 8939# Create a (secure) tmp directory for tmp files. 8940 8941{ 8942 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && 8943 test -n "$tmp" && test -d "$tmp" 8944} || 8945{ 8946 tmp=./confstat$$-$RANDOM 8947 (umask 077 && mkdir $tmp) 8948} || 8949{ 8950 echo "$me: cannot create a temporary directory in ." >&2 8951 { (exit 1); exit 1; } 8952} 8953 8954_ACEOF 8955 8956cat >>$CONFIG_STATUS <<_ACEOF 8957 8958# 8959# CONFIG_FILES section. 8960# 8961 8962# No need to generate the scripts if there are no CONFIG_FILES. 8963# This happens for instance when ./config.status config.h 8964if test -n "\$CONFIG_FILES"; then 8965 # Protect against being on the right side of a sed subst in config.status. 8966 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; 8967 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF 8968s,@SHELL@,$SHELL,;t t 8969s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t 8970s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t 8971s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t 8972s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t 8973s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t 8974s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t 8975s,@exec_prefix@,$exec_prefix,;t t 8976s,@prefix@,$prefix,;t t 8977s,@program_transform_name@,$program_transform_name,;t t 8978s,@bindir@,$bindir,;t t 8979s,@sbindir@,$sbindir,;t t 8980s,@libexecdir@,$libexecdir,;t t 8981s,@datadir@,$datadir,;t t 8982s,@sysconfdir@,$sysconfdir,;t t 8983s,@sharedstatedir@,$sharedstatedir,;t t 8984s,@localstatedir@,$localstatedir,;t t 8985s,@libdir@,$libdir,;t t 8986s,@includedir@,$includedir,;t t 8987s,@oldincludedir@,$oldincludedir,;t t 8988s,@infodir@,$infodir,;t t 8989s,@mandir@,$mandir,;t t 8990s,@build_alias@,$build_alias,;t t 8991s,@host_alias@,$host_alias,;t t 8992s,@target_alias@,$target_alias,;t t 8993s,@DEFS@,$DEFS,;t t 8994s,@ECHO_C@,$ECHO_C,;t t 8995s,@ECHO_N@,$ECHO_N,;t t 8996s,@ECHO_T@,$ECHO_T,;t t 8997s,@LIBS@,$LIBS,;t t 8998s,@PACKAGE@,$PACKAGE,;t t 8999s,@VERSION@,$VERSION,;t t 9000s,@LIB_VERSION@,$LIB_VERSION,;t t 9001s,@LIB_VERSION_MAJOR@,$LIB_VERSION_MAJOR,;t t 9002s,@UNICODE_VERSION@,$UNICODE_VERSION,;t t 9003s,@build@,$build,;t t 9004s,@build_cpu@,$build_cpu,;t t 9005s,@build_vendor@,$build_vendor,;t t 9006s,@build_os@,$build_os,;t t 9007s,@host@,$host,;t t 9008s,@host_cpu@,$host_cpu,;t t 9009s,@host_vendor@,$host_vendor,;t t 9010s,@host_os@,$host_os,;t t 9011s,@CPPFLAGS@,$CPPFLAGS,;t t 9012s,@CC@,$CC,;t t 9013s,@CFLAGS@,$CFLAGS,;t t 9014s,@LDFLAGS@,$LDFLAGS,;t t 9015s,@ac_ct_CC@,$ac_ct_CC,;t t 9016s,@EXEEXT@,$EXEEXT,;t t 9017s,@OBJEXT@,$OBJEXT,;t t 9018s,@CXX@,$CXX,;t t 9019s,@CXXFLAGS@,$CXXFLAGS,;t t 9020s,@ac_ct_CXX@,$ac_ct_CXX,;t t 9021s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t 9022s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t 9023s,@INSTALL_DATA@,$INSTALL_DATA,;t t 9024s,@U_MAKE@,$U_MAKE,;t t 9025s,@DOXYGEN@,$DOXYGEN,;t t 9026s,@ARFLAGS@,$ARFLAGS,;t t 9027s,@COMPILE_LINK_ENVVAR@,$COMPILE_LINK_ENVVAR,;t t 9028s,@LIB_M@,$LIB_M,;t t 9029s,@ENABLE_SHARED@,$ENABLE_SHARED,;t t 9030s,@ENABLE_STATIC@,$ENABLE_STATIC,;t t 9031s,@ENABLE_DEBUG@,$ENABLE_DEBUG,;t t 9032s,@ENABLE_RELEASE@,$ENABLE_RELEASE,;t t 9033s,@U_DEFAULT_SHOW_DRAFT@,$U_DEFAULT_SHOW_DRAFT,;t t 9034s,@U_USE_GCC_VISIBILITY_ATTRIBUTE@,$U_USE_GCC_VISIBILITY_ATTRIBUTE,;t t 9035s,@LIBCFLAGS@,$LIBCFLAGS,;t t 9036s,@LIBCXXFLAGS@,$LIBCXXFLAGS,;t t 9037s,@RANLIB@,$RANLIB,;t t 9038s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t 9039s,@AR@,$AR,;t t 9040s,@U_DISABLE_RENAMING@,$U_DISABLE_RENAMING,;t t 9041s,@U_ENABLE_TRACING@,$U_ENABLE_TRACING,;t t 9042s,@ENABLE_RPATH@,$ENABLE_RPATH,;t t 9043s,@U_INLINE@,$U_INLINE,;t t 9044s,@THREADS_TRUE@,$THREADS_TRUE,;t t 9045s,@ICU_USE_THREADS@,$ICU_USE_THREADS,;t t 9046s,@LIB_THREAD@,$LIB_THREAD,;t t 9047s,@HAVE_MMAP@,$HAVE_MMAP,;t t 9048s,@GENCCODE_ASSEMBLY@,$GENCCODE_ASSEMBLY,;t t 9049s,@CPP@,$CPP,;t t 9050s,@EGREP@,$EGREP,;t t 9051s,@U_HAVE_INTTYPES_H@,$U_HAVE_INTTYPES_H,;t t 9052s,@U_IOSTREAM_SOURCE@,$U_IOSTREAM_SOURCE,;t t 9053s,@U_IS_BIG_ENDIAN@,$U_IS_BIG_ENDIAN,;t t 9054s,@U_HAVE_NL_LANGINFO_CODESET@,$U_HAVE_NL_LANGINFO_CODESET,;t t 9055s,@U_NL_LANGINFO_CODESET@,$U_NL_LANGINFO_CODESET,;t t 9056s,@U_HAVE_NAMESPACE@,$U_HAVE_NAMESPACE,;t t 9057s,@U_OVERRIDE_CXX_ALLOCATION@,$U_OVERRIDE_CXX_ALLOCATION,;t t 9058s,@U_HAVE_PLACEMENT_NEW@,$U_HAVE_PLACEMENT_NEW,;t t 9059s,@U_HAVE_POPEN@,$U_HAVE_POPEN,;t t 9060s,@U_HAVE_TZSET@,$U_HAVE_TZSET,;t t 9061s,@U_TZSET@,$U_TZSET,;t t 9062s,@U_HAVE_TZNAME@,$U_HAVE_TZNAME,;t t 9063s,@U_TZNAME@,$U_TZNAME,;t t 9064s,@U_HAVE_TIMEZONE@,$U_HAVE_TIMEZONE,;t t 9065s,@U_TIMEZONE@,$U_TIMEZONE,;t t 9066s,@HAVE_INT8_T@,$HAVE_INT8_T,;t t 9067s,@HAVE_UINT8_T@,$HAVE_UINT8_T,;t t 9068s,@HAVE_INT16_T@,$HAVE_INT16_T,;t t 9069s,@HAVE_UINT16_T@,$HAVE_UINT16_T,;t t 9070s,@HAVE_INT32_T@,$HAVE_INT32_T,;t t 9071s,@HAVE_UINT32_T@,$HAVE_UINT32_T,;t t 9072s,@HAVE_INT64_T@,$HAVE_INT64_T,;t t 9073s,@HAVE_UINT64_T@,$HAVE_UINT64_T,;t t 9074s,@U_HAVE_WCHAR_H@,$U_HAVE_WCHAR_H,;t t 9075s,@U_HAVE_WCSCPY@,$U_HAVE_WCSCPY,;t t 9076s,@U_SIZEOF_WCHAR_T@,$U_SIZEOF_WCHAR_T,;t t 9077s,@U_CHECK_UTF16_STRING@,$U_CHECK_UTF16_STRING,;t t 9078s,@EXTRAS_TRUE@,$EXTRAS_TRUE,;t t 9079s,@ICUIO_TRUE@,$ICUIO_TRUE,;t t 9080s,@LAYOUT_TRUE@,$LAYOUT_TRUE,;t t 9081s,@pkgicudatadir@,$pkgicudatadir,;t t 9082s,@thepkgicudatadir@,$thepkgicudatadir,;t t 9083s,@DATA_PACKAGING_MODE@,$DATA_PACKAGING_MODE,;t t 9084s,@ICULIBSUFFIX@,$ICULIBSUFFIX,;t t 9085s,@U_HAVE_LIB_SUFFIX@,$U_HAVE_LIB_SUFFIX,;t t 9086s,@ICULIBSUFFIXCNAME@,$ICULIBSUFFIXCNAME,;t t 9087s,@TESTS_TRUE@,$TESTS_TRUE,;t t 9088s,@SAMPLES_TRUE@,$SAMPLES_TRUE,;t t 9089s,@ICUDATA_CHAR@,$ICUDATA_CHAR,;t t 9090s,@platform@,$platform,;t t 9091s,@platform_make_fragment_name@,$platform_make_fragment_name,;t t 9092s,@platform_make_fragment@,$platform_make_fragment,;t t 9093s,@LIBOBJS@,$LIBOBJS,;t t 9094s,@LTLIBOBJS@,$LTLIBOBJS,;t t 9095CEOF 9096 9097_ACEOF 9098 9099 cat >>$CONFIG_STATUS <<\_ACEOF 9100 # Split the substitutions into bite-sized pieces for seds with 9101 # small command number limits, like on Digital OSF/1 and HP-UX. 9102 ac_max_sed_lines=48 9103 ac_sed_frag=1 # Number of current file. 9104 ac_beg=1 # First line for current file. 9105 ac_end=$ac_max_sed_lines # Line after last line for current file. 9106 ac_more_lines=: 9107 ac_sed_cmds= 9108 while $ac_more_lines; do 9109 if test $ac_beg -gt 1; then 9110 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 9111 else 9112 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 9113 fi 9114 if test ! -s $tmp/subs.frag; then 9115 ac_more_lines=false 9116 else 9117 # The purpose of the label and of the branching condition is to 9118 # speed up the sed processing (if there are no `@' at all, there 9119 # is no need to browse any of the substitutions). 9120 # These are the two extra sed commands mentioned above. 9121 (echo ':t 9122 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed 9123 if test -z "$ac_sed_cmds"; then 9124 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" 9125 else 9126 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" 9127 fi 9128 ac_sed_frag=`expr $ac_sed_frag + 1` 9129 ac_beg=$ac_end 9130 ac_end=`expr $ac_end + $ac_max_sed_lines` 9131 fi 9132 done 9133 if test -z "$ac_sed_cmds"; then 9134 ac_sed_cmds=cat 9135 fi 9136fi # test -n "$CONFIG_FILES" 9137 9138_ACEOF 9139cat >>$CONFIG_STATUS <<\_ACEOF 9140for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue 9141 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 9142 case $ac_file in 9143 - | *:- | *:-:* ) # input from stdin 9144 cat >$tmp/stdin 9145 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 9146 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 9147 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 9148 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 9149 * ) ac_file_in=$ac_file.in ;; 9150 esac 9151 9152 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. 9153 ac_dir=`(dirname "$ac_file") 2>/dev/null || 9154$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 9155 X"$ac_file" : 'X\(//\)[^/]' \| \ 9156 X"$ac_file" : 'X\(//\)$' \| \ 9157 X"$ac_file" : 'X\(/\)' \| \ 9158 . : '\(.\)' 2>/dev/null || 9159echo X"$ac_file" | 9160 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 9161 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 9162 /^X\(\/\/\)$/{ s//\1/; q; } 9163 /^X\(\/\).*/{ s//\1/; q; } 9164 s/.*/./; q'` 9165 { if $as_mkdir_p; then 9166 mkdir -p "$ac_dir" 9167 else 9168 as_dir="$ac_dir" 9169 as_dirs= 9170 while test ! -d "$as_dir"; do 9171 as_dirs="$as_dir $as_dirs" 9172 as_dir=`(dirname "$as_dir") 2>/dev/null || 9173$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 9174 X"$as_dir" : 'X\(//\)[^/]' \| \ 9175 X"$as_dir" : 'X\(//\)$' \| \ 9176 X"$as_dir" : 'X\(/\)' \| \ 9177 . : '\(.\)' 2>/dev/null || 9178echo X"$as_dir" | 9179 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 9180 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 9181 /^X\(\/\/\)$/{ s//\1/; q; } 9182 /^X\(\/\).*/{ s//\1/; q; } 9183 s/.*/./; q'` 9184 done 9185 test ! -n "$as_dirs" || mkdir $as_dirs 9186 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 9187echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 9188 { (exit 1); exit 1; }; }; } 9189 9190 ac_builddir=. 9191 9192if test "$ac_dir" != .; then 9193 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 9194 # A "../" for each directory in $ac_dir_suffix. 9195 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 9196else 9197 ac_dir_suffix= ac_top_builddir= 9198fi 9199 9200case $srcdir in 9201 .) # No --srcdir option. We are building in place. 9202 ac_srcdir=. 9203 if test -z "$ac_top_builddir"; then 9204 ac_top_srcdir=. 9205 else 9206 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 9207 fi ;; 9208 [\\/]* | ?:[\\/]* ) # Absolute path. 9209 ac_srcdir=$srcdir$ac_dir_suffix; 9210 ac_top_srcdir=$srcdir ;; 9211 *) # Relative path. 9212 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 9213 ac_top_srcdir=$ac_top_builddir$srcdir ;; 9214esac 9215 9216# Do not use `cd foo && pwd` to compute absolute paths, because 9217# the directories may not exist. 9218case `pwd` in 9219.) ac_abs_builddir="$ac_dir";; 9220*) 9221 case "$ac_dir" in 9222 .) ac_abs_builddir=`pwd`;; 9223 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 9224 *) ac_abs_builddir=`pwd`/"$ac_dir";; 9225 esac;; 9226esac 9227case $ac_abs_builddir in 9228.) ac_abs_top_builddir=${ac_top_builddir}.;; 9229*) 9230 case ${ac_top_builddir}. in 9231 .) ac_abs_top_builddir=$ac_abs_builddir;; 9232 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 9233 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 9234 esac;; 9235esac 9236case $ac_abs_builddir in 9237.) ac_abs_srcdir=$ac_srcdir;; 9238*) 9239 case $ac_srcdir in 9240 .) ac_abs_srcdir=$ac_abs_builddir;; 9241 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 9242 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 9243 esac;; 9244esac 9245case $ac_abs_builddir in 9246.) ac_abs_top_srcdir=$ac_top_srcdir;; 9247*) 9248 case $ac_top_srcdir in 9249 .) ac_abs_top_srcdir=$ac_abs_builddir;; 9250 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 9251 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 9252 esac;; 9253esac 9254 9255 9256 case $INSTALL in 9257 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 9258 *) ac_INSTALL=$ac_top_builddir$INSTALL ;; 9259 esac 9260 9261 if test x"$ac_file" != x-; then 9262 { echo "$as_me:$LINENO: creating $ac_file" >&5 9263echo "$as_me: creating $ac_file" >&6;} 9264 rm -f "$ac_file" 9265 fi 9266 # Let's still pretend it is `configure' which instantiates (i.e., don't 9267 # use $as_me), people would be surprised to read: 9268 # /* config.h. Generated by config.status. */ 9269 if test x"$ac_file" = x-; then 9270 configure_input= 9271 else 9272 configure_input="$ac_file. " 9273 fi 9274 configure_input=$configure_input"Generated from `echo $ac_file_in | 9275 sed 's,.*/,,'` by configure." 9276 9277 # First look for the input files in the build tree, otherwise in the 9278 # src tree. 9279 ac_file_inputs=`IFS=: 9280 for f in $ac_file_in; do 9281 case $f in 9282 -) echo $tmp/stdin ;; 9283 [\\/$]*) 9284 # Absolute (can't be DOS-style, as IFS=:) 9285 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 9286echo "$as_me: error: cannot find input file: $f" >&2;} 9287 { (exit 1); exit 1; }; } 9288 echo "$f";; 9289 *) # Relative 9290 if test -f "$f"; then 9291 # Build tree 9292 echo "$f" 9293 elif test -f "$srcdir/$f"; then 9294 # Source tree 9295 echo "$srcdir/$f" 9296 else 9297 # /dev/null tree 9298 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 9299echo "$as_me: error: cannot find input file: $f" >&2;} 9300 { (exit 1); exit 1; }; } 9301 fi;; 9302 esac 9303 done` || { (exit 1); exit 1; } 9304_ACEOF 9305cat >>$CONFIG_STATUS <<_ACEOF 9306 sed "$ac_vpsub 9307$extrasub 9308_ACEOF 9309cat >>$CONFIG_STATUS <<\_ACEOF 9310:t 9311/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 9312s,@configure_input@,$configure_input,;t t 9313s,@srcdir@,$ac_srcdir,;t t 9314s,@abs_srcdir@,$ac_abs_srcdir,;t t 9315s,@top_srcdir@,$ac_top_srcdir,;t t 9316s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t 9317s,@builddir@,$ac_builddir,;t t 9318s,@abs_builddir@,$ac_abs_builddir,;t t 9319s,@top_builddir@,$ac_top_builddir,;t t 9320s,@abs_top_builddir@,$ac_abs_top_builddir,;t t 9321s,@INSTALL@,$ac_INSTALL,;t t 9322" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out 9323 rm -f $tmp/stdin 9324 if test x"$ac_file" != x-; then 9325 mv $tmp/out $ac_file 9326 else 9327 cat $tmp/out 9328 rm -f $tmp/out 9329 fi 9330 9331done 9332_ACEOF 9333cat >>$CONFIG_STATUS <<\_ACEOF 9334 9335# 9336# CONFIG_HEADER section. 9337# 9338 9339# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where 9340# NAME is the cpp macro being defined and VALUE is the value it is being given. 9341# 9342# ac_d sets the value in "#define NAME VALUE" lines. 9343ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' 9344ac_dB='[ ].*$,\1#\2' 9345ac_dC=' ' 9346ac_dD=',;t' 9347# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". 9348ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 9349ac_uB='$,\1#\2define\3' 9350ac_uC=' ' 9351ac_uD=',;t' 9352 9353for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue 9354 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 9355 case $ac_file in 9356 - | *:- | *:-:* ) # input from stdin 9357 cat >$tmp/stdin 9358 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 9359 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 9360 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 9361 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 9362 * ) ac_file_in=$ac_file.in ;; 9363 esac 9364 9365 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 9366echo "$as_me: creating $ac_file" >&6;} 9367 9368 # First look for the input files in the build tree, otherwise in the 9369 # src tree. 9370 ac_file_inputs=`IFS=: 9371 for f in $ac_file_in; do 9372 case $f in 9373 -) echo $tmp/stdin ;; 9374 [\\/$]*) 9375 # Absolute (can't be DOS-style, as IFS=:) 9376 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 9377echo "$as_me: error: cannot find input file: $f" >&2;} 9378 { (exit 1); exit 1; }; } 9379 # Do quote $f, to prevent DOS paths from being IFS'd. 9380 echo "$f";; 9381 *) # Relative 9382 if test -f "$f"; then 9383 # Build tree 9384 echo "$f" 9385 elif test -f "$srcdir/$f"; then 9386 # Source tree 9387 echo "$srcdir/$f" 9388 else 9389 # /dev/null tree 9390 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 9391echo "$as_me: error: cannot find input file: $f" >&2;} 9392 { (exit 1); exit 1; }; } 9393 fi;; 9394 esac 9395 done` || { (exit 1); exit 1; } 9396 # Remove the trailing spaces. 9397 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in 9398 9399_ACEOF 9400 9401# Transform confdefs.h into two sed scripts, `conftest.defines' and 9402# `conftest.undefs', that substitutes the proper values into 9403# config.h.in to produce config.h. The first handles `#define' 9404# templates, and the second `#undef' templates. 9405# And first: Protect against being on the right side of a sed subst in 9406# config.status. Protect against being in an unquoted here document 9407# in config.status. 9408rm -f conftest.defines conftest.undefs 9409# Using a here document instead of a string reduces the quoting nightmare. 9410# Putting comments in sed scripts is not portable. 9411# 9412# `end' is used to avoid that the second main sed command (meant for 9413# 0-ary CPP macros) applies to n-ary macro definitions. 9414# See the Autoconf documentation for `clear'. 9415cat >confdef2sed.sed <<\_ACEOF 9416s/[\\&,]/\\&/g 9417s,[\\$`],\\&,g 9418t clear 9419: clear 9420s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp 9421t end 9422s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp 9423: end 9424_ACEOF 9425# If some macros were called several times there might be several times 9426# the same #defines, which is useless. Nevertheless, we may not want to 9427# sort them, since we want the *last* AC-DEFINE to be honored. 9428uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines 9429sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs 9430rm -f confdef2sed.sed 9431 9432# This sed command replaces #undef with comments. This is necessary, for 9433# example, in the case of _POSIX_SOURCE, which is predefined and required 9434# on some systems where configure will not decide to define it. 9435cat >>conftest.undefs <<\_ACEOF 9436s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, 9437_ACEOF 9438 9439# Break up conftest.defines because some shells have a limit on the size 9440# of here documents, and old seds have small limits too (100 cmds). 9441echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS 9442echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS 9443echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS 9444echo ' :' >>$CONFIG_STATUS 9445rm -f conftest.tail 9446while grep . conftest.defines >/dev/null 9447do 9448 # Write a limited-size here document to $tmp/defines.sed. 9449 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS 9450 # Speed up: don't consider the non `#define' lines. 9451 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS 9452 # Work around the forget-to-reset-the-flag bug. 9453 echo 't clr' >>$CONFIG_STATUS 9454 echo ': clr' >>$CONFIG_STATUS 9455 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS 9456 echo 'CEOF 9457 sed -f $tmp/defines.sed $tmp/in >$tmp/out 9458 rm -f $tmp/in 9459 mv $tmp/out $tmp/in 9460' >>$CONFIG_STATUS 9461 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail 9462 rm -f conftest.defines 9463 mv conftest.tail conftest.defines 9464done 9465rm -f conftest.defines 9466echo ' fi # grep' >>$CONFIG_STATUS 9467echo >>$CONFIG_STATUS 9468 9469# Break up conftest.undefs because some shells have a limit on the size 9470# of here documents, and old seds have small limits too (100 cmds). 9471echo ' # Handle all the #undef templates' >>$CONFIG_STATUS 9472rm -f conftest.tail 9473while grep . conftest.undefs >/dev/null 9474do 9475 # Write a limited-size here document to $tmp/undefs.sed. 9476 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS 9477 # Speed up: don't consider the non `#undef' 9478 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS 9479 # Work around the forget-to-reset-the-flag bug. 9480 echo 't clr' >>$CONFIG_STATUS 9481 echo ': clr' >>$CONFIG_STATUS 9482 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS 9483 echo 'CEOF 9484 sed -f $tmp/undefs.sed $tmp/in >$tmp/out 9485 rm -f $tmp/in 9486 mv $tmp/out $tmp/in 9487' >>$CONFIG_STATUS 9488 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail 9489 rm -f conftest.undefs 9490 mv conftest.tail conftest.undefs 9491done 9492rm -f conftest.undefs 9493 9494cat >>$CONFIG_STATUS <<\_ACEOF 9495 # Let's still pretend it is `configure' which instantiates (i.e., don't 9496 # use $as_me), people would be surprised to read: 9497 # /* config.h. Generated by config.status. */ 9498 if test x"$ac_file" = x-; then 9499 echo "/* Generated by configure. */" >$tmp/config.h 9500 else 9501 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h 9502 fi 9503 cat $tmp/in >>$tmp/config.h 9504 rm -f $tmp/in 9505 if test x"$ac_file" != x-; then 9506 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then 9507 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 9508echo "$as_me: $ac_file is unchanged" >&6;} 9509 else 9510 ac_dir=`(dirname "$ac_file") 2>/dev/null || 9511$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 9512 X"$ac_file" : 'X\(//\)[^/]' \| \ 9513 X"$ac_file" : 'X\(//\)$' \| \ 9514 X"$ac_file" : 'X\(/\)' \| \ 9515 . : '\(.\)' 2>/dev/null || 9516echo X"$ac_file" | 9517 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 9518 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 9519 /^X\(\/\/\)$/{ s//\1/; q; } 9520 /^X\(\/\).*/{ s//\1/; q; } 9521 s/.*/./; q'` 9522 { if $as_mkdir_p; then 9523 mkdir -p "$ac_dir" 9524 else 9525 as_dir="$ac_dir" 9526 as_dirs= 9527 while test ! -d "$as_dir"; do 9528 as_dirs="$as_dir $as_dirs" 9529 as_dir=`(dirname "$as_dir") 2>/dev/null || 9530$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 9531 X"$as_dir" : 'X\(//\)[^/]' \| \ 9532 X"$as_dir" : 'X\(//\)$' \| \ 9533 X"$as_dir" : 'X\(/\)' \| \ 9534 . : '\(.\)' 2>/dev/null || 9535echo X"$as_dir" | 9536 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 9537 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 9538 /^X\(\/\/\)$/{ s//\1/; q; } 9539 /^X\(\/\).*/{ s//\1/; q; } 9540 s/.*/./; q'` 9541 done 9542 test ! -n "$as_dirs" || mkdir $as_dirs 9543 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 9544echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 9545 { (exit 1); exit 1; }; }; } 9546 9547 rm -f $ac_file 9548 mv $tmp/config.h $ac_file 9549 fi 9550 else 9551 cat $tmp/config.h 9552 rm -f $tmp/config.h 9553 fi 9554done 9555_ACEOF 9556 9557cat >>$CONFIG_STATUS <<\_ACEOF 9558 9559{ (exit 0); exit 0; } 9560_ACEOF 9561chmod +x $CONFIG_STATUS 9562ac_clean_files=$ac_clean_files_save 9563 9564 9565# configure is writing to config.log, and then calls config.status. 9566# config.status does its own redirection, appending to config.log. 9567# Unfortunately, on DOS this fails, as config.log is still kept open 9568# by configure, so config.status won't be able to write to it; its 9569# output is simply discarded. So we exec the FD to /dev/null, 9570# effectively closing config.log, so it can be properly (re)opened and 9571# appended to by config.status. When coming back to configure, we 9572# need to make the FD available again. 9573if test "$no_create" != yes; then 9574 ac_cs_success=: 9575 ac_config_status_args= 9576 test "$silent" = yes && 9577 ac_config_status_args="$ac_config_status_args --quiet" 9578 exec 5>/dev/null 9579 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 9580 exec 5>>config.log 9581 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 9582 # would make configure fail if this is the last instruction. 9583 $ac_cs_success || { (exit 1); exit 1; } 9584fi 9585 9586 9587if test $ICU_USE_THREADS = 0; then 9588 echo " *** Note: configuring the ICU without pthread support or testing. If this isn't what you want, then run configure with --enable-threads=yes or check the messages above to see why we couldn't find pthread_create()" 1>&6 9589fi 9590 9591if test -n "`$U_MAKE -v 2>&1 | grep '^GNU Make'`"; then 9592echo "You must use $U_MAKE to build ICU." 9593else 9594echo "WARNING: $U_MAKE may not be GNU make." 9595echo "This may cause ICU to fail to build. Please make sure that GNU make" 9596echo "is in your PATH so that this configure script can detect its location." 9597fi 9598 9599$as_unset _CXX_CXXSUFFIX 9600