1 #! /bin/sh 2 # Guess values for system-dependent variables and create Makefiles. 3 # Generated by GNU Autoconf 2.63. 4 # 5 # Copyright (c) 1999-2010, International Business Machines Corporation and others. All Rights Reserved. 6 # 7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 8 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. 9 # This configure script is free software; the Free Software Foundation 10 # gives unlimited permission to copy, distribute and modify it. 11 ## --------------------- ## 12 ## M4sh Initialization. ## 13 ## --------------------- ## 14 15 # Be more Bourne compatible 16 DUALCASE=1; export DUALCASE # for MKS sh 17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 18 emulate sh 19 NULLCMD=: 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 21 # is contrary to our usage. Disable this feature. 22 alias -g '${1+"$@"}'='"$@"' 23 setopt NO_GLOB_SUBST 24 else 25 case `(set -o) 2>/dev/null` in 26 *posix*) set -o posix ;; 27 esac 28 29 fi 30 31 32 33 34 # PATH needs CR 35 # Avoid depending upon Character Ranges. 36 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 37 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 38 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 39 as_cr_digits='0123456789' 40 as_cr_alnum=$as_cr_Letters$as_cr_digits 41 42 as_nl=' 43 ' 44 export as_nl 45 # Printing a long string crashes Solaris 7 /usr/bin/printf. 46 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 47 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 48 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 49 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 50 as_echo='printf %s\n' 51 as_echo_n='printf %s' 52 else 53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 55 as_echo_n='/usr/ucb/echo -n' 56 else 57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 58 as_echo_n_body='eval 59 arg=$1; 60 case $arg in 61 *"$as_nl"*) 62 expr "X$arg" : "X\\(.*\\)$as_nl"; 63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 64 esac; 65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 66 ' 67 export as_echo_n_body 68 as_echo_n='sh -c $as_echo_n_body as_echo' 69 fi 70 export as_echo_body 71 as_echo='sh -c $as_echo_body as_echo' 72 fi 73 74 # The user is always right. 75 if test "${PATH_SEPARATOR+set}" != set; then 76 PATH_SEPARATOR=: 77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 79 PATH_SEPARATOR=';' 80 } 81 fi 82 83 # Support unset when possible. 84 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 85 as_unset=unset 86 else 87 as_unset=false 88 fi 89 90 91 # IFS 92 # We need space, tab and new line, in precisely that order. Quoting is 93 # there to prevent editors from complaining about space-tab. 94 # (If _AS_PATH_WALK were called with IFS unset, it would disable word 95 # splitting by setting IFS to empty value.) 96 IFS=" "" $as_nl" 97 98 # Find who we are. Look in the path if we contain no directory separator. 99 case $0 in 100 *[\\/]* ) as_myself=$0 ;; 101 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 102 for as_dir in $PATH 103 do 104 IFS=$as_save_IFS 105 test -z "$as_dir" && as_dir=. 106 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 107 done 108 IFS=$as_save_IFS 109 110 ;; 111 esac 112 # We did not find ourselves, most probably we were run as `sh COMMAND' 113 # in which case we are not to be found in the path. 114 if test "x$as_myself" = x; then 115 as_myself=$0 116 fi 117 if test ! -f "$as_myself"; then 118 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 119 { (exit 1); exit 1; } 120 fi 121 122 # Work around bugs in pre-3.0 UWIN ksh. 123 for as_var in ENV MAIL MAILPATH 124 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 125 done 126 PS1='$ ' 127 PS2='> ' 128 PS4='+ ' 129 130 # NLS nuisances. 131 LC_ALL=C 132 export LC_ALL 133 LANGUAGE=C 134 export LANGUAGE 135 136 # Required to use basename. 137 if expr a : '\(a\)' >/dev/null 2>&1 && 138 test "X`expr 00001 : '.*\(...\)'`" = X001; then 139 as_expr=expr 140 else 141 as_expr=false 142 fi 143 144 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 145 as_basename=basename 146 else 147 as_basename=false 148 fi 149 150 151 # Name of the executable. 152 as_me=`$as_basename -- "$0" || 153 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 154 X"$0" : 'X\(//\)$' \| \ 155 X"$0" : 'X\(/\)' \| . 2>/dev/null || 156 $as_echo X/"$0" | 157 sed '/^.*\/\([^/][^/]*\)\/*$/{ 158 s//\1/ 159 q 160 } 161 /^X\/\(\/\/\)$/{ 162 s//\1/ 163 q 164 } 165 /^X\/\(\/\).*/{ 166 s//\1/ 167 q 168 } 169 s/.*/./; q'` 170 171 # CDPATH. 172 $as_unset CDPATH 173 174 175 if test "x$CONFIG_SHELL" = x; then 176 if (eval ":") 2>/dev/null; then 177 as_have_required=yes 178 else 179 as_have_required=no 180 fi 181 182 if test $as_have_required = yes && (eval ": 183 (as_func_return () { 184 (exit \$1) 185 } 186 as_func_success () { 187 as_func_return 0 188 } 189 as_func_failure () { 190 as_func_return 1 191 } 192 as_func_ret_success () { 193 return 0 194 } 195 as_func_ret_failure () { 196 return 1 197 } 198 199 exitcode=0 200 if as_func_success; then 201 : 202 else 203 exitcode=1 204 echo as_func_success failed. 205 fi 206 207 if as_func_failure; then 208 exitcode=1 209 echo as_func_failure succeeded. 210 fi 211 212 if as_func_ret_success; then 213 : 214 else 215 exitcode=1 216 echo as_func_ret_success failed. 217 fi 218 219 if as_func_ret_failure; then 220 exitcode=1 221 echo as_func_ret_failure succeeded. 222 fi 223 224 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 225 : 226 else 227 exitcode=1 228 echo positional parameters were not saved. 229 fi 230 231 test \$exitcode = 0) || { (exit 1); exit 1; } 232 233 ( 234 as_lineno_1=\$LINENO 235 as_lineno_2=\$LINENO 236 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && 237 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } 238 ") 2> /dev/null; then 239 : 240 else 241 as_candidate_shells= 242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 243 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 244 do 245 IFS=$as_save_IFS 246 test -z "$as_dir" && as_dir=. 247 case $as_dir in 248 /*) 249 for as_base in sh bash ksh sh5; do 250 as_candidate_shells="$as_candidate_shells $as_dir/$as_base" 251 done;; 252 esac 253 done 254 IFS=$as_save_IFS 255 256 257 for as_shell in $as_candidate_shells $SHELL; do 258 # Try only shells that exist, to save several forks. 259 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 260 { ("$as_shell") 2> /dev/null <<\_ASEOF 261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 262 emulate sh 263 NULLCMD=: 264 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 265 # is contrary to our usage. Disable this feature. 266 alias -g '${1+"$@"}'='"$@"' 267 setopt NO_GLOB_SUBST 268 else 269 case `(set -o) 2>/dev/null` in 270 *posix*) set -o posix ;; 271 esac 272 273 fi 274 275 276 : 277 _ASEOF 278 }; then 279 CONFIG_SHELL=$as_shell 280 as_have_required=yes 281 if { "$as_shell" 2> /dev/null <<\_ASEOF 282 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 283 emulate sh 284 NULLCMD=: 285 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 286 # is contrary to our usage. Disable this feature. 287 alias -g '${1+"$@"}'='"$@"' 288 setopt NO_GLOB_SUBST 289 else 290 case `(set -o) 2>/dev/null` in 291 *posix*) set -o posix ;; 292 esac 293 294 fi 295 296 297 : 298 (as_func_return () { 299 (exit $1) 300 } 301 as_func_success () { 302 as_func_return 0 303 } 304 as_func_failure () { 305 as_func_return 1 306 } 307 as_func_ret_success () { 308 return 0 309 } 310 as_func_ret_failure () { 311 return 1 312 } 313 314 exitcode=0 315 if as_func_success; then 316 : 317 else 318 exitcode=1 319 echo as_func_success failed. 320 fi 321 322 if as_func_failure; then 323 exitcode=1 324 echo as_func_failure succeeded. 325 fi 326 327 if as_func_ret_success; then 328 : 329 else 330 exitcode=1 331 echo as_func_ret_success failed. 332 fi 333 334 if as_func_ret_failure; then 335 exitcode=1 336 echo as_func_ret_failure succeeded. 337 fi 338 339 if ( set x; as_func_ret_success y && test x = "$1" ); then 340 : 341 else 342 exitcode=1 343 echo positional parameters were not saved. 344 fi 345 346 test $exitcode = 0) || { (exit 1); exit 1; } 347 348 ( 349 as_lineno_1=$LINENO 350 as_lineno_2=$LINENO 351 test "x$as_lineno_1" != "x$as_lineno_2" && 352 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } 353 354 _ASEOF 355 }; then 356 break 357 fi 358 359 fi 360 361 done 362 363 if test "x$CONFIG_SHELL" != x; then 364 for as_var in BASH_ENV ENV 365 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 366 done 367 export CONFIG_SHELL 368 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} 369 fi 370 371 372 if test $as_have_required = no; then 373 echo This script requires a shell more modern than all the 374 echo shells that I found on your system. Please install a 375 echo modern shell, or manually run the script under such a 376 echo shell if you do have one. 377 { (exit 1); exit 1; } 378 fi 379 380 381 fi 382 383 fi 384 385 386 387 (eval "as_func_return () { 388 (exit \$1) 389 } 390 as_func_success () { 391 as_func_return 0 392 } 393 as_func_failure () { 394 as_func_return 1 395 } 396 as_func_ret_success () { 397 return 0 398 } 399 as_func_ret_failure () { 400 return 1 401 } 402 403 exitcode=0 404 if as_func_success; then 405 : 406 else 407 exitcode=1 408 echo as_func_success failed. 409 fi 410 411 if as_func_failure; then 412 exitcode=1 413 echo as_func_failure succeeded. 414 fi 415 416 if as_func_ret_success; then 417 : 418 else 419 exitcode=1 420 echo as_func_ret_success failed. 421 fi 422 423 if as_func_ret_failure; then 424 exitcode=1 425 echo as_func_ret_failure succeeded. 426 fi 427 428 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 429 : 430 else 431 exitcode=1 432 echo positional parameters were not saved. 433 fi 434 435 test \$exitcode = 0") || { 436 echo No shell found that supports shell functions. 437 echo Please tell bug-autoconf@gnu.org about your system, 438 echo including any error possibly output before this message. 439 echo This can help us improve future autoconf versions. 440 echo Configuration will now proceed without shell functions. 441 } 442 443 444 445 as_lineno_1=$LINENO 446 as_lineno_2=$LINENO 447 test "x$as_lineno_1" != "x$as_lineno_2" && 448 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 449 450 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 451 # uniformly replaced by the line number. The first 'sed' inserts a 452 # line-number line after each line using $LINENO; the second 'sed' 453 # does the real work. The second script uses 'N' to pair each 454 # line-number line with the line containing $LINENO, and appends 455 # trailing '-' during substitution so that $LINENO is not a special 456 # case at line end. 457 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 458 # scripts with optimization help from Paolo Bonzini. Blame Lee 459 # E. McMahon (1931-1989) for sed's syntax. :-) 460 sed -n ' 461 p 462 /[$]LINENO/= 463 ' <$as_myself | 464 sed ' 465 s/[$]LINENO.*/&-/ 466 t lineno 467 b 468 :lineno 469 N 470 :loop 471 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 472 t loop 473 s/-\n.*// 474 ' >$as_me.lineno && 475 chmod +x "$as_me.lineno" || 476 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 477 { (exit 1); exit 1; }; } 478 479 # Don't try to exec as it changes $[0], causing all sort of problems 480 # (the dirname of $[0] is not the place where we might find the 481 # original and so on. Autoconf is especially sensitive to this). 482 . "./$as_me.lineno" 483 # Exit status is that of the last command. 484 exit 485 } 486 487 488 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 489 as_dirname=dirname 490 else 491 as_dirname=false 492 fi 493 494 ECHO_C= ECHO_N= ECHO_T= 495 case `echo -n x` in 496 -n*) 497 case `echo 'x\c'` in 498 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 499 *) ECHO_C='\c';; 500 esac;; 501 *) 502 ECHO_N='-n';; 503 esac 504 if expr a : '\(a\)' >/dev/null 2>&1 && 505 test "X`expr 00001 : '.*\(...\)'`" = X001; then 506 as_expr=expr 507 else 508 as_expr=false 509 fi 510 511 rm -f conf$$ conf$$.exe conf$$.file 512 if test -d conf$$.dir; then 513 rm -f conf$$.dir/conf$$.file 514 else 515 rm -f conf$$.dir 516 mkdir conf$$.dir 2>/dev/null 517 fi 518 if (echo >conf$$.file) 2>/dev/null; then 519 if ln -s conf$$.file conf$$ 2>/dev/null; then 520 as_ln_s='ln -s' 521 # ... but there are two gotchas: 522 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 523 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 524 # In both cases, we have to default to `cp -p'. 525 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 526 as_ln_s='cp -p' 527 elif ln conf$$.file conf$$ 2>/dev/null; then 528 as_ln_s=ln 529 else 530 as_ln_s='cp -p' 531 fi 532 else 533 as_ln_s='cp -p' 534 fi 535 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 536 rmdir conf$$.dir 2>/dev/null 537 538 if mkdir -p . 2>/dev/null; then 539 as_mkdir_p=: 540 else 541 test -d ./-p && rmdir ./-p 542 as_mkdir_p=false 543 fi 544 545 if test -x / >/dev/null 2>&1; then 546 as_test_x='test -x' 547 else 548 if ls -dL / >/dev/null 2>&1; then 549 as_ls_L_option=L 550 else 551 as_ls_L_option= 552 fi 553 as_test_x=' 554 eval sh -c '\'' 555 if test -d "$1"; then 556 test -d "$1/."; 557 else 558 case $1 in 559 -*)set "./$1";; 560 esac; 561 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 562 ???[sx]*):;;*)false;;esac;fi 563 '\'' sh 564 ' 565 fi 566 as_executable_p=$as_test_x 567 568 # Sed expression to map a string onto a valid CPP name. 569 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 570 571 # Sed expression to map a string onto a valid variable name. 572 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 573 574 575 576 exec 7<&0 </dev/null 6>&1 577 578 # Name of the host. 579 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 580 # so uname gets run too. 581 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 582 583 # 584 # Initializations. 585 # 586 ac_default_prefix=/usr/local 587 ac_clean_files= 588 ac_config_libobj_dir=. 589 LIBOBJS= 590 cross_compiling=no 591 subdirs= 592 MFLAGS= 593 MAKEFLAGS= 594 SHELL=${CONFIG_SHELL-/bin/sh} 595 596 # Identity of this package. 597 PACKAGE_NAME= 598 PACKAGE_TARNAME= 599 PACKAGE_VERSION= 600 PACKAGE_STRING= 601 PACKAGE_BUGREPORT= 602 603 ac_unique_file="common/unicode/utypes.h" 604 # Factoring default headers for most tests. 605 ac_includes_default="\ 606 #include <stdio.h> 607 #ifdef HAVE_SYS_TYPES_H 608 # include <sys/types.h> 609 #endif 610 #ifdef HAVE_SYS_STAT_H 611 # include <sys/stat.h> 612 #endif 613 #ifdef STDC_HEADERS 614 # include <stdlib.h> 615 # include <stddef.h> 616 #else 617 # ifdef HAVE_STDLIB_H 618 # include <stdlib.h> 619 # endif 620 #endif 621 #ifdef HAVE_STRING_H 622 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H 623 # include <memory.h> 624 # endif 625 # include <string.h> 626 #endif 627 #ifdef HAVE_STRINGS_H 628 # include <strings.h> 629 #endif 630 #ifdef HAVE_INTTYPES_H 631 # include <inttypes.h> 632 #endif 633 #ifdef HAVE_STDINT_H 634 # include <stdint.h> 635 #endif 636 #ifdef HAVE_UNISTD_H 637 # include <unistd.h> 638 #endif" 639 640 ac_subst_vars='LTLIBOBJS 641 LIBOBJS 642 platform_make_fragment 643 platform_make_fragment_name 644 platform 645 ICUDATA_CHAR 646 SAMPLES_TRUE 647 TESTS_TRUE 648 ICULIBSUFFIXCNAME 649 U_HAVE_LIB_SUFFIX 650 ICULIBSUFFIX 651 DATA_PACKAGING_MODE 652 thepkgicudatadir 653 pkgicudatadir 654 LAYOUT_TRUE 655 ICUIO_TRUE 656 EXTRAS_TRUE 657 U_CHECK_UTF16_STRING 658 U_CHECK_GNUC_UTF16_STRING 659 U_SIZEOF_WCHAR_T 660 U_HAVE_WCSCPY 661 U_HAVE_WCHAR_H 662 HAVE_UINT64_T 663 HAVE_INT64_T 664 HAVE_UINT32_T 665 HAVE_INT32_T 666 HAVE_UINT16_T 667 HAVE_INT16_T 668 HAVE_UINT8_T 669 HAVE_INT8_T 670 U_TIMEZONE 671 U_HAVE_TIMEZONE 672 U_TZNAME 673 U_HAVE_TZNAME 674 U_TZSET 675 U_HAVE_TZSET 676 U_HAVE_POPEN 677 U_HAVE_GCC_ATOMICS 678 U_HAVE_PLACEMENT_NEW 679 U_OVERRIDE_CXX_ALLOCATION 680 U_HAVE_NAMESPACE 681 U_NL_LANGINFO_CODESET 682 U_HAVE_NL_LANGINFO_CODESET 683 U_IS_BIG_ENDIAN 684 U_IOSTREAM_SOURCE 685 U_HAVE_DIRENT_H 686 U_HAVE_INTTYPES_H 687 GENCCODE_ASSEMBLY 688 HAVE_MMAP 689 LIB_THREAD 690 ICU_USE_THREADS 691 THREADS_TRUE 692 U_HAVE_STD_STRING 693 U_INLINE 694 ENABLE_RPATH 695 U_CHECK_DYLOAD 696 U_ENABLE_DYLOAD 697 U_ENABLE_TRACING 698 U_DISABLE_RENAMING 699 AR 700 RANLIB 701 LIBCXXFLAGS 702 LIBCFLAGS 703 U_USE_GCC_VISIBILITY_ATTRIBUTE 704 U_DEFAULT_SHOW_DRAFT 705 UCLN_NO_AUTO_CLEANUP 706 ENABLE_RELEASE 707 ENABLE_DEBUG 708 ENABLE_STATIC 709 ENABLE_SHARED 710 LIB_M 711 COMPILE_LINK_ENVVAR 712 ARFLAGS 713 EGREP 714 GREP 715 DOXYGEN 716 cross_buildroot 717 U_MAKE 718 cross_compiling 719 INSTALL_DATA 720 INSTALL_SCRIPT 721 INSTALL_PROGRAM 722 CPP 723 ac_ct_CXX 724 CXXFLAGS 725 CXX 726 OBJEXT 727 EXEEXT 728 ac_ct_CC 729 LDFLAGS 730 CFLAGS 731 CC 732 CPPFLAGS 733 target_os 734 target_vendor 735 target_cpu 736 target 737 host_os 738 host_vendor 739 host_cpu 740 host 741 build_os 742 build_vendor 743 build_cpu 744 build 745 UNICODE_VERSION 746 LIB_VERSION_MAJOR 747 LIB_VERSION 748 VERSION 749 PACKAGE 750 target_alias 751 host_alias 752 build_alias 753 LIBS 754 ECHO_T 755 ECHO_N 756 ECHO_C 757 DEFS 758 mandir 759 localedir 760 libdir 761 psdir 762 pdfdir 763 dvidir 764 htmldir 765 infodir 766 docdir 767 oldincludedir 768 includedir 769 localstatedir 770 sharedstatedir 771 sysconfdir 772 datadir 773 datarootdir 774 libexecdir 775 sbindir 776 bindir 777 program_transform_name 778 prefix 779 exec_prefix 780 PACKAGE_BUGREPORT 781 PACKAGE_STRING 782 PACKAGE_VERSION 783 PACKAGE_TARNAME 784 PACKAGE_NAME 785 PATH_SEPARATOR 786 SHELL' 787 ac_subst_files='' 788 ac_user_opts=' 789 enable_option_checking 790 with_cross_build 791 enable_strict 792 enable_64bit_libs 793 with_library_bits 794 enable_shared 795 enable_static 796 enable_debug 797 enable_release 798 enable_auto_cleanup 799 enable_draft 800 enable_renaming 801 enable_tracing 802 enable_dyload 803 enable_rpath 804 enable_threads 805 enable_weak_threads 806 with_iostream 807 enable_extras 808 enable_icuio 809 enable_layout 810 with_data_packaging 811 with_library_suffix 812 enable_tests 813 enable_samples 814 ' 815 ac_precious_vars='build_alias 816 host_alias 817 target_alias 818 CC 819 CFLAGS 820 LDFLAGS 821 LIBS 822 CPPFLAGS 823 CXX 824 CXXFLAGS 825 CCC 826 CPP' 827 828 829 # Initialize some variables set by options. 830 ac_init_help= 831 ac_init_version=false 832 ac_unrecognized_opts= 833 ac_unrecognized_sep= 834 # The variables have the same names as the options, with 835 # dashes changed to underlines. 836 cache_file=/dev/null 837 exec_prefix=NONE 838 no_create= 839 no_recursion= 840 prefix=NONE 841 program_prefix=NONE 842 program_suffix=NONE 843 program_transform_name=s,x,x, 844 silent= 845 site= 846 srcdir= 847 verbose= 848 x_includes=NONE 849 x_libraries=NONE 850 851 # Installation directory options. 852 # These are left unexpanded so users can "make install exec_prefix=/foo" 853 # and all the variables that are supposed to be based on exec_prefix 854 # by default will actually change. 855 # Use braces instead of parens because sh, perl, etc. also accept them. 856 # (The list follows the same order as the GNU Coding Standards.) 857 bindir='${exec_prefix}/bin' 858 sbindir='${exec_prefix}/sbin' 859 libexecdir='${exec_prefix}/libexec' 860 datarootdir='${prefix}/share' 861 datadir='${datarootdir}' 862 sysconfdir='${prefix}/etc' 863 sharedstatedir='${prefix}/com' 864 localstatedir='${prefix}/var' 865 includedir='${prefix}/include' 866 oldincludedir='/usr/include' 867 docdir='${datarootdir}/doc/${PACKAGE}' 868 infodir='${datarootdir}/info' 869 htmldir='${docdir}' 870 dvidir='${docdir}' 871 pdfdir='${docdir}' 872 psdir='${docdir}' 873 libdir='${exec_prefix}/lib' 874 localedir='${datarootdir}/locale' 875 mandir='${datarootdir}/man' 876 877 ac_prev= 878 ac_dashdash= 879 for ac_option 880 do 881 # If the previous option needs an argument, assign it. 882 if test -n "$ac_prev"; then 883 eval $ac_prev=\$ac_option 884 ac_prev= 885 continue 886 fi 887 888 case $ac_option in 889 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 890 *) ac_optarg=yes ;; 891 esac 892 893 # Accept the important Cygnus configure options, so we can diagnose typos. 894 895 case $ac_dashdash$ac_option in 896 --) 897 ac_dashdash=yes ;; 898 899 -bindir | --bindir | --bindi | --bind | --bin | --bi) 900 ac_prev=bindir ;; 901 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 902 bindir=$ac_optarg ;; 903 904 -build | --build | --buil | --bui | --bu) 905 ac_prev=build_alias ;; 906 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 907 build_alias=$ac_optarg ;; 908 909 -cache-file | --cache-file | --cache-fil | --cache-fi \ 910 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 911 ac_prev=cache_file ;; 912 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 913 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 914 cache_file=$ac_optarg ;; 915 916 --config-cache | -C) 917 cache_file=config.cache ;; 918 919 -datadir | --datadir | --datadi | --datad) 920 ac_prev=datadir ;; 921 -datadir=* | --datadir=* | --datadi=* | --datad=*) 922 datadir=$ac_optarg ;; 923 924 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 925 | --dataroo | --dataro | --datar) 926 ac_prev=datarootdir ;; 927 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 928 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 929 datarootdir=$ac_optarg ;; 930 931 -disable-* | --disable-*) 932 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 933 # Reject names that are not valid shell variable names. 934 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 935 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 936 { (exit 1); exit 1; }; } 937 ac_useropt_orig=$ac_useropt 938 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 939 case $ac_user_opts in 940 *" 941 "enable_$ac_useropt" 942 "*) ;; 943 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 944 ac_unrecognized_sep=', ';; 945 esac 946 eval enable_$ac_useropt=no ;; 947 948 -docdir | --docdir | --docdi | --doc | --do) 949 ac_prev=docdir ;; 950 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 951 docdir=$ac_optarg ;; 952 953 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 954 ac_prev=dvidir ;; 955 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 956 dvidir=$ac_optarg ;; 957 958 -enable-* | --enable-*) 959 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 960 # Reject names that are not valid shell variable names. 961 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 962 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 963 { (exit 1); exit 1; }; } 964 ac_useropt_orig=$ac_useropt 965 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 966 case $ac_user_opts in 967 *" 968 "enable_$ac_useropt" 969 "*) ;; 970 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 971 ac_unrecognized_sep=', ';; 972 esac 973 eval enable_$ac_useropt=\$ac_optarg ;; 974 975 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 976 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 977 | --exec | --exe | --ex) 978 ac_prev=exec_prefix ;; 979 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 980 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 981 | --exec=* | --exe=* | --ex=*) 982 exec_prefix=$ac_optarg ;; 983 984 -gas | --gas | --ga | --g) 985 # Obsolete; use --with-gas. 986 with_gas=yes ;; 987 988 -help | --help | --hel | --he | -h) 989 ac_init_help=long ;; 990 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 991 ac_init_help=recursive ;; 992 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 993 ac_init_help=short ;; 994 995 -host | --host | --hos | --ho) 996 ac_prev=host_alias ;; 997 -host=* | --host=* | --hos=* | --ho=*) 998 host_alias=$ac_optarg ;; 999 1000 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1001 ac_prev=htmldir ;; 1002 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1003 | --ht=*) 1004 htmldir=$ac_optarg ;; 1005 1006 -includedir | --includedir | --includedi | --included | --include \ 1007 | --includ | --inclu | --incl | --inc) 1008 ac_prev=includedir ;; 1009 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1010 | --includ=* | --inclu=* | --incl=* | --inc=*) 1011 includedir=$ac_optarg ;; 1012 1013 -infodir | --infodir | --infodi | --infod | --info | --inf) 1014 ac_prev=infodir ;; 1015 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1016 infodir=$ac_optarg ;; 1017 1018 -libdir | --libdir | --libdi | --libd) 1019 ac_prev=libdir ;; 1020 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1021 libdir=$ac_optarg ;; 1022 1023 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1024 | --libexe | --libex | --libe) 1025 ac_prev=libexecdir ;; 1026 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1027 | --libexe=* | --libex=* | --libe=*) 1028 libexecdir=$ac_optarg ;; 1029 1030 -localedir | --localedir | --localedi | --localed | --locale) 1031 ac_prev=localedir ;; 1032 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1033 localedir=$ac_optarg ;; 1034 1035 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1036 | --localstate | --localstat | --localsta | --localst | --locals) 1037 ac_prev=localstatedir ;; 1038 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1039 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1040 localstatedir=$ac_optarg ;; 1041 1042 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1043 ac_prev=mandir ;; 1044 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1045 mandir=$ac_optarg ;; 1046 1047 -nfp | --nfp | --nf) 1048 # Obsolete; use --without-fp. 1049 with_fp=no ;; 1050 1051 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1052 | --no-cr | --no-c | -n) 1053 no_create=yes ;; 1054 1055 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1056 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1057 no_recursion=yes ;; 1058 1059 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1060 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1061 | --oldin | --oldi | --old | --ol | --o) 1062 ac_prev=oldincludedir ;; 1063 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1064 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1065 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1066 oldincludedir=$ac_optarg ;; 1067 1068 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1069 ac_prev=prefix ;; 1070 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1071 prefix=$ac_optarg ;; 1072 1073 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1074 | --program-pre | --program-pr | --program-p) 1075 ac_prev=program_prefix ;; 1076 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1077 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1078 program_prefix=$ac_optarg ;; 1079 1080 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1081 | --program-suf | --program-su | --program-s) 1082 ac_prev=program_suffix ;; 1083 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1084 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1085 program_suffix=$ac_optarg ;; 1086 1087 -program-transform-name | --program-transform-name \ 1088 | --program-transform-nam | --program-transform-na \ 1089 | --program-transform-n | --program-transform- \ 1090 | --program-transform | --program-transfor \ 1091 | --program-transfo | --program-transf \ 1092 | --program-trans | --program-tran \ 1093 | --progr-tra | --program-tr | --program-t) 1094 ac_prev=program_transform_name ;; 1095 -program-transform-name=* | --program-transform-name=* \ 1096 | --program-transform-nam=* | --program-transform-na=* \ 1097 | --program-transform-n=* | --program-transform-=* \ 1098 | --program-transform=* | --program-transfor=* \ 1099 | --program-transfo=* | --program-transf=* \ 1100 | --program-trans=* | --program-tran=* \ 1101 | --progr-tra=* | --program-tr=* | --program-t=*) 1102 program_transform_name=$ac_optarg ;; 1103 1104 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1105 ac_prev=pdfdir ;; 1106 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1107 pdfdir=$ac_optarg ;; 1108 1109 -psdir | --psdir | --psdi | --psd | --ps) 1110 ac_prev=psdir ;; 1111 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1112 psdir=$ac_optarg ;; 1113 1114 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1115 | -silent | --silent | --silen | --sile | --sil) 1116 silent=yes ;; 1117 1118 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1119 ac_prev=sbindir ;; 1120 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1121 | --sbi=* | --sb=*) 1122 sbindir=$ac_optarg ;; 1123 1124 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1125 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1126 | --sharedst | --shareds | --shared | --share | --shar \ 1127 | --sha | --sh) 1128 ac_prev=sharedstatedir ;; 1129 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1130 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1131 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1132 | --sha=* | --sh=*) 1133 sharedstatedir=$ac_optarg ;; 1134 1135 -site | --site | --sit) 1136 ac_prev=site ;; 1137 -site=* | --site=* | --sit=*) 1138 site=$ac_optarg ;; 1139 1140 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1141 ac_prev=srcdir ;; 1142 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1143 srcdir=$ac_optarg ;; 1144 1145 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1146 | --syscon | --sysco | --sysc | --sys | --sy) 1147 ac_prev=sysconfdir ;; 1148 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1149 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1150 sysconfdir=$ac_optarg ;; 1151 1152 -target | --target | --targe | --targ | --tar | --ta | --t) 1153 ac_prev=target_alias ;; 1154 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1155 target_alias=$ac_optarg ;; 1156 1157 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1158 verbose=yes ;; 1159 1160 -version | --version | --versio | --versi | --vers | -V) 1161 ac_init_version=: ;; 1162 1163 -with-* | --with-*) 1164 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1165 # Reject names that are not valid shell variable names. 1166 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1167 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 1168 { (exit 1); exit 1; }; } 1169 ac_useropt_orig=$ac_useropt 1170 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1171 case $ac_user_opts in 1172 *" 1173 "with_$ac_useropt" 1174 "*) ;; 1175 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1176 ac_unrecognized_sep=', ';; 1177 esac 1178 eval with_$ac_useropt=\$ac_optarg ;; 1179 1180 -without-* | --without-*) 1181 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1182 # Reject names that are not valid shell variable names. 1183 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1184 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 1185 { (exit 1); exit 1; }; } 1186 ac_useropt_orig=$ac_useropt 1187 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1188 case $ac_user_opts in 1189 *" 1190 "with_$ac_useropt" 1191 "*) ;; 1192 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1193 ac_unrecognized_sep=', ';; 1194 esac 1195 eval with_$ac_useropt=no ;; 1196 1197 --x) 1198 # Obsolete; use --with-x. 1199 with_x=yes ;; 1200 1201 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1202 | --x-incl | --x-inc | --x-in | --x-i) 1203 ac_prev=x_includes ;; 1204 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1205 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1206 x_includes=$ac_optarg ;; 1207 1208 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1209 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1210 ac_prev=x_libraries ;; 1211 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1212 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1213 x_libraries=$ac_optarg ;; 1214 1215 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option 1216 Try \`$0 --help' for more information." >&2 1217 { (exit 1); exit 1; }; } 1218 ;; 1219 1220 *=*) 1221 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1222 # Reject names that are not valid shell variable names. 1223 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 1224 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2 1225 { (exit 1); exit 1; }; } 1226 eval $ac_envvar=\$ac_optarg 1227 export $ac_envvar ;; 1228 1229 *) 1230 # FIXME: should be removed in autoconf 3.0. 1231 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1232 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1233 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1234 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1235 ;; 1236 1237 esac 1238 done 1239 1240 if test -n "$ac_prev"; then 1241 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1242 { $as_echo "$as_me: error: missing argument to $ac_option" >&2 1243 { (exit 1); exit 1; }; } 1244 fi 1245 1246 if test -n "$ac_unrecognized_opts"; then 1247 case $enable_option_checking in 1248 no) ;; 1249 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2 1250 { (exit 1); exit 1; }; } ;; 1251 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1252 esac 1253 fi 1254 1255 # Check all directory arguments for consistency. 1256 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1257 datadir sysconfdir sharedstatedir localstatedir includedir \ 1258 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1259 libdir localedir mandir 1260 do 1261 eval ac_val=\$$ac_var 1262 # Remove trailing slashes. 1263 case $ac_val in 1264 */ ) 1265 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1266 eval $ac_var=\$ac_val;; 1267 esac 1268 # Be sure to have absolute directory names. 1269 case $ac_val in 1270 [\\/$]* | ?:[\\/]* ) continue;; 1271 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1272 esac 1273 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 1274 { (exit 1); exit 1; }; } 1275 done 1276 1277 # There might be people who depend on the old broken behavior: `$host' 1278 # used to hold the argument of --host etc. 1279 # FIXME: To remove some day. 1280 build=$build_alias 1281 host=$host_alias 1282 target=$target_alias 1283 1284 # FIXME: To remove some day. 1285 if test "x$host_alias" != x; then 1286 if test "x$build_alias" = x; then 1287 cross_compiling=maybe 1288 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1289 If a cross compiler is detected then cross compile mode will be used." >&2 1290 elif test "x$build_alias" != "x$host_alias"; then 1291 cross_compiling=yes 1292 fi 1293 fi 1294 1295 ac_tool_prefix= 1296 test -n "$host_alias" && ac_tool_prefix=$host_alias- 1297 1298 test "$silent" = yes && exec 6>/dev/null 1299 1300 1301 ac_pwd=`pwd` && test -n "$ac_pwd" && 1302 ac_ls_di=`ls -di .` && 1303 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1304 { $as_echo "$as_me: error: working directory cannot be determined" >&2 1305 { (exit 1); exit 1; }; } 1306 test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1307 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2 1308 { (exit 1); exit 1; }; } 1309 1310 1311 # Find the source files, if location was not specified. 1312 if test -z "$srcdir"; then 1313 ac_srcdir_defaulted=yes 1314 # Try the directory containing this script, then the parent directory. 1315 ac_confdir=`$as_dirname -- "$as_myself" || 1316 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1317 X"$as_myself" : 'X\(//\)[^/]' \| \ 1318 X"$as_myself" : 'X\(//\)$' \| \ 1319 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1320 $as_echo X"$as_myself" | 1321 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1322 s//\1/ 1323 q 1324 } 1325 /^X\(\/\/\)[^/].*/{ 1326 s//\1/ 1327 q 1328 } 1329 /^X\(\/\/\)$/{ 1330 s//\1/ 1331 q 1332 } 1333 /^X\(\/\).*/{ 1334 s//\1/ 1335 q 1336 } 1337 s/.*/./; q'` 1338 srcdir=$ac_confdir 1339 if test ! -r "$srcdir/$ac_unique_file"; then 1340 srcdir=.. 1341 fi 1342 else 1343 ac_srcdir_defaulted=no 1344 fi 1345 if test ! -r "$srcdir/$ac_unique_file"; then 1346 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1347 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 1348 { (exit 1); exit 1; }; } 1349 fi 1350 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1351 ac_abs_confdir=`( 1352 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2 1353 { (exit 1); exit 1; }; } 1354 pwd)` 1355 # When building in place, set srcdir=. 1356 if test "$ac_abs_confdir" = "$ac_pwd"; then 1357 srcdir=. 1358 fi 1359 # Remove unnecessary trailing slashes from srcdir. 1360 # Double slashes in file names in object file debugging info 1361 # mess up M-x gdb in Emacs. 1362 case $srcdir in 1363 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1364 esac 1365 for ac_var in $ac_precious_vars; do 1366 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1367 eval ac_env_${ac_var}_value=\$${ac_var} 1368 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1369 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1370 done 1371 1372 # 1373 # Report the --help message. 1374 # 1375 if test "$ac_init_help" = "long"; then 1376 # Omit some internal or obsolete options to make the list less imposing. 1377 # This message is too long to be a string in the A/UX 3.1 sh. 1378 cat <<_ACEOF 1379 \`configure' configures this package to adapt to many kinds of systems. 1380 1381 Usage: $0 [OPTION]... [VAR=VALUE]... 1382 1383 To assign environment variables (e.g., CC, CFLAGS...), specify them as 1384 VAR=VALUE. See below for descriptions of some of the useful variables. 1385 1386 Defaults for the options are specified in brackets. 1387 1388 Configuration: 1389 -h, --help display this help and exit 1390 --help=short display options specific to this package 1391 --help=recursive display the short help of all the included packages 1392 -V, --version display version information and exit 1393 -q, --quiet, --silent do not print \`checking...' messages 1394 --cache-file=FILE cache test results in FILE [disabled] 1395 -C, --config-cache alias for \`--cache-file=config.cache' 1396 -n, --no-create do not create output files 1397 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1398 1399 Installation directories: 1400 --prefix=PREFIX install architecture-independent files in PREFIX 1401 [$ac_default_prefix] 1402 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1403 [PREFIX] 1404 1405 By default, \`make install' will install all the files in 1406 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1407 an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1408 for instance \`--prefix=\$HOME'. 1409 1410 For better control, use the options below. 1411 1412 Fine tuning of the installation directories: 1413 --bindir=DIR user executables [EPREFIX/bin] 1414 --sbindir=DIR system admin executables [EPREFIX/sbin] 1415 --libexecdir=DIR program executables [EPREFIX/libexec] 1416 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1417 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1418 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1419 --libdir=DIR object code libraries [EPREFIX/lib] 1420 --includedir=DIR C header files [PREFIX/include] 1421 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1422 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1423 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1424 --infodir=DIR info documentation [DATAROOTDIR/info] 1425 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1426 --mandir=DIR man documentation [DATAROOTDIR/man] 1427 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] 1428 --htmldir=DIR html documentation [DOCDIR] 1429 --dvidir=DIR dvi documentation [DOCDIR] 1430 --pdfdir=DIR pdf documentation [DOCDIR] 1431 --psdir=DIR ps documentation [DOCDIR] 1432 _ACEOF 1433 1434 cat <<\_ACEOF 1435 1436 System types: 1437 --build=BUILD configure for building on BUILD [guessed] 1438 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1439 --target=TARGET configure for building compilers for TARGET [HOST] 1440 _ACEOF 1441 fi 1442 1443 if test -n "$ac_init_help"; then 1444 1445 cat <<\_ACEOF 1446 1447 Optional Features: 1448 --disable-option-checking ignore unrecognized --enable/--with options 1449 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1450 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1451 --enable-strict compile with strict compiler options default=yes 1452 --enable-64bit-libs (deprecated, use --with-library-bits) build 64-bit libraries default= platform default 1453 --enable-shared build shared libraries default=yes 1454 --enable-static build static libraries default=no 1455 --enable-debug build debug libraries default=no 1456 --enable-release build release libraries default=yes 1457 --enable-auto-cleanup enable auto cleanup of libraries default=no 1458 --enable-draft enable draft APIs (and internal APIs) default=yes 1459 --enable-renaming add a version suffix to symbols default=yes 1460 --enable-tracing enable function and data tracing default=no 1461 --disable-dyload disable dynamic loading default=no 1462 --enable-rpath use rpath when linking default is only if necessary 1463 --enable-threads build ICU with thread safety default=yes 1464 --enable-weak-threads weakly reference the threading library default=no 1465 --enable-extras build ICU extras default=yes 1466 --enable-icuio build ICU's icuio library default=yes 1467 --enable-layout build ICU's layout library default=yes 1468 --enable-tests build ICU tests default=yes 1469 --enable-samples build ICU samples default=yes 1470 1471 Additionally, the variable FORCE_LIBS may be set before calling configure. 1472 If set, it will REPLACE any automatic list of libraries. 1473 1474 Optional Packages: 1475 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1476 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1477 --with-cross-build=dir specify an absolute path to the build directory of an ICU built for the current platform default=no cross dir 1478 --with-library-bits=bits specify how many bits to use for the library (32, 64, 64else32, nochange) default=nochange 1479 --with-iostream=version specify the version of iostream to use (none, old, std, auto) default=auto 1480 --with-data-packaging=type specify how to package ICU data (files, archive, library, static, auto) default=auto 1481 --with-library-suffix=suffix tag a suffix to the library names default= 1482 1483 Some influential environment variables: 1484 CC C compiler command 1485 CFLAGS C compiler flags 1486 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1487 nonstandard directory <lib dir> 1488 LIBS libraries to pass to the linker, e.g. -l<library> 1489 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1490 you have headers in a nonstandard directory <include dir> 1491 CXX C++ compiler command 1492 CXXFLAGS C++ compiler flags 1493 CPP C preprocessor 1494 1495 Use these variables to override the choices made by `configure' or to help 1496 it to find libraries and programs with nonstandard names/locations. 1497 1498 _ACEOF 1499 ac_status=$? 1500 fi 1501 1502 if test "$ac_init_help" = "recursive"; then 1503 # If there are subdirs, report their specific --help. 1504 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1505 test -d "$ac_dir" || 1506 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1507 continue 1508 ac_builddir=. 1509 1510 case "$ac_dir" in 1511 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1512 *) 1513 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1514 # A ".." for each directory in $ac_dir_suffix. 1515 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1516 case $ac_top_builddir_sub in 1517 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1518 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1519 esac ;; 1520 esac 1521 ac_abs_top_builddir=$ac_pwd 1522 ac_abs_builddir=$ac_pwd$ac_dir_suffix 1523 # for backward compatibility: 1524 ac_top_builddir=$ac_top_build_prefix 1525 1526 case $srcdir in 1527 .) # We are building in place. 1528 ac_srcdir=. 1529 ac_top_srcdir=$ac_top_builddir_sub 1530 ac_abs_top_srcdir=$ac_pwd ;; 1531 [\\/]* | ?:[\\/]* ) # Absolute name. 1532 ac_srcdir=$srcdir$ac_dir_suffix; 1533 ac_top_srcdir=$srcdir 1534 ac_abs_top_srcdir=$srcdir ;; 1535 *) # Relative name. 1536 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1537 ac_top_srcdir=$ac_top_build_prefix$srcdir 1538 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1539 esac 1540 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1541 1542 cd "$ac_dir" || { ac_status=$?; continue; } 1543 # Check for guested configure. 1544 if test -f "$ac_srcdir/configure.gnu"; then 1545 echo && 1546 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1547 elif test -f "$ac_srcdir/configure"; then 1548 echo && 1549 $SHELL "$ac_srcdir/configure" --help=recursive 1550 else 1551 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1552 fi || ac_status=$? 1553 cd "$ac_pwd" || { ac_status=$?; break; } 1554 done 1555 fi 1556 1557 test -n "$ac_init_help" && exit $ac_status 1558 if $ac_init_version; then 1559 cat <<\_ACEOF 1560 configure 1561 generated by GNU Autoconf 2.63 1562 1563 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 1564 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. 1565 This configure script is free software; the Free Software Foundation 1566 gives unlimited permission to copy, distribute and modify it. 1567 1568 Copyright (c) 1999-2010, International Business Machines Corporation and others. All Rights Reserved. 1569 _ACEOF 1570 exit 1571 fi 1572 cat >config.log <<_ACEOF 1573 This file contains any messages produced by compilers while 1574 running configure, to aid debugging if configure makes a mistake. 1575 1576 It was created by $as_me, which was 1577 generated by GNU Autoconf 2.63. Invocation command line was 1578 1579 $ $0 $@ 1580 1581 _ACEOF 1582 exec 5>>config.log 1583 { 1584 cat <<_ASUNAME 1585 ## --------- ## 1586 ## Platform. ## 1587 ## --------- ## 1588 1589 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1590 uname -m = `(uname -m) 2>/dev/null || echo unknown` 1591 uname -r = `(uname -r) 2>/dev/null || echo unknown` 1592 uname -s = `(uname -s) 2>/dev/null || echo unknown` 1593 uname -v = `(uname -v) 2>/dev/null || echo unknown` 1594 1595 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1596 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1597 1598 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1599 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1600 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1601 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1602 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1603 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1604 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1605 1606 _ASUNAME 1607 1608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1609 for as_dir in $PATH 1610 do 1611 IFS=$as_save_IFS 1612 test -z "$as_dir" && as_dir=. 1613 $as_echo "PATH: $as_dir" 1614 done 1615 IFS=$as_save_IFS 1616 1617 } >&5 1618 1619 cat >&5 <<_ACEOF 1620 1621 1622 ## ----------- ## 1623 ## Core tests. ## 1624 ## ----------- ## 1625 1626 _ACEOF 1627 1628 1629 # Keep a trace of the command line. 1630 # Strip out --no-create and --no-recursion so they do not pile up. 1631 # Strip out --silent because we don't want to record it for future runs. 1632 # Also quote any args containing shell meta-characters. 1633 # Make two passes to allow for proper duplicate-argument suppression. 1634 ac_configure_args= 1635 ac_configure_args0= 1636 ac_configure_args1= 1637 ac_must_keep_next=false 1638 for ac_pass in 1 2 1639 do 1640 for ac_arg 1641 do 1642 case $ac_arg in 1643 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1644 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1645 | -silent | --silent | --silen | --sile | --sil) 1646 continue ;; 1647 *\'*) 1648 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1649 esac 1650 case $ac_pass in 1651 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1652 2) 1653 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1654 if test $ac_must_keep_next = true; then 1655 ac_must_keep_next=false # Got value, back to normal. 1656 else 1657 case $ac_arg in 1658 *=* | --config-cache | -C | -disable-* | --disable-* \ 1659 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1660 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1661 | -with-* | --with-* | -without-* | --without-* | --x) 1662 case "$ac_configure_args0 " in 1663 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1664 esac 1665 ;; 1666 -* ) ac_must_keep_next=true ;; 1667 esac 1668 fi 1669 ac_configure_args="$ac_configure_args '$ac_arg'" 1670 ;; 1671 esac 1672 done 1673 done 1674 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1675 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1676 1677 # When interrupted or exit'd, cleanup temporary files, and complete 1678 # config.log. We remove comments because anyway the quotes in there 1679 # would cause problems or look ugly. 1680 # WARNING: Use '\'' to represent an apostrophe within the trap. 1681 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1682 trap 'exit_status=$? 1683 # Save into config.log some information that might help in debugging. 1684 { 1685 echo 1686 1687 cat <<\_ASBOX 1688 ## ---------------- ## 1689 ## Cache variables. ## 1690 ## ---------------- ## 1691 _ASBOX 1692 echo 1693 # The following way of writing the cache mishandles newlines in values, 1694 ( 1695 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1696 eval ac_val=\$$ac_var 1697 case $ac_val in #( 1698 *${as_nl}*) 1699 case $ac_var in #( 1700 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 1701 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1702 esac 1703 case $ac_var in #( 1704 _ | IFS | as_nl) ;; #( 1705 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1706 *) $as_unset $ac_var ;; 1707 esac ;; 1708 esac 1709 done 1710 (set) 2>&1 | 1711 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1712 *${as_nl}ac_space=\ *) 1713 sed -n \ 1714 "s/'\''/'\''\\\\'\'''\''/g; 1715 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1716 ;; #( 1717 *) 1718 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1719 ;; 1720 esac | 1721 sort 1722 ) 1723 echo 1724 1725 cat <<\_ASBOX 1726 ## ----------------- ## 1727 ## Output variables. ## 1728 ## ----------------- ## 1729 _ASBOX 1730 echo 1731 for ac_var in $ac_subst_vars 1732 do 1733 eval ac_val=\$$ac_var 1734 case $ac_val in 1735 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1736 esac 1737 $as_echo "$ac_var='\''$ac_val'\''" 1738 done | sort 1739 echo 1740 1741 if test -n "$ac_subst_files"; then 1742 cat <<\_ASBOX 1743 ## ------------------- ## 1744 ## File substitutions. ## 1745 ## ------------------- ## 1746 _ASBOX 1747 echo 1748 for ac_var in $ac_subst_files 1749 do 1750 eval ac_val=\$$ac_var 1751 case $ac_val in 1752 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1753 esac 1754 $as_echo "$ac_var='\''$ac_val'\''" 1755 done | sort 1756 echo 1757 fi 1758 1759 if test -s confdefs.h; then 1760 cat <<\_ASBOX 1761 ## ----------- ## 1762 ## confdefs.h. ## 1763 ## ----------- ## 1764 _ASBOX 1765 echo 1766 cat confdefs.h 1767 echo 1768 fi 1769 test "$ac_signal" != 0 && 1770 $as_echo "$as_me: caught signal $ac_signal" 1771 $as_echo "$as_me: exit $exit_status" 1772 } >&5 1773 rm -f core *.core core.conftest.* && 1774 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1775 exit $exit_status 1776 ' 0 1777 for ac_signal in 1 2 13 15; do 1778 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1779 done 1780 ac_signal=0 1781 1782 # confdefs.h avoids OS command line length limits that DEFS can exceed. 1783 rm -f -r conftest* confdefs.h 1784 1785 # Predefined preprocessor variables. 1786 1787 cat >>confdefs.h <<_ACEOF 1788 #define PACKAGE_NAME "$PACKAGE_NAME" 1789 _ACEOF 1790 1791 1792 cat >>confdefs.h <<_ACEOF 1793 #define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1794 _ACEOF 1795 1796 1797 cat >>confdefs.h <<_ACEOF 1798 #define PACKAGE_VERSION "$PACKAGE_VERSION" 1799 _ACEOF 1800 1801 1802 cat >>confdefs.h <<_ACEOF 1803 #define PACKAGE_STRING "$PACKAGE_STRING" 1804 _ACEOF 1805 1806 1807 cat >>confdefs.h <<_ACEOF 1808 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1809 _ACEOF 1810 1811 1812 # Let the site file select an alternate cache file if it wants to. 1813 # Prefer an explicitly selected file to automatically selected ones. 1814 ac_site_file1=NONE 1815 ac_site_file2=NONE 1816 if test -n "$CONFIG_SITE"; then 1817 ac_site_file1=$CONFIG_SITE 1818 elif test "x$prefix" != xNONE; then 1819 ac_site_file1=$prefix/share/config.site 1820 ac_site_file2=$prefix/etc/config.site 1821 else 1822 ac_site_file1=$ac_default_prefix/share/config.site 1823 ac_site_file2=$ac_default_prefix/etc/config.site 1824 fi 1825 for ac_site_file in "$ac_site_file1" "$ac_site_file2" 1826 do 1827 test "x$ac_site_file" = xNONE && continue 1828 if test -r "$ac_site_file"; then 1829 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1830 $as_echo "$as_me: loading site script $ac_site_file" >&6;} 1831 sed 's/^/| /' "$ac_site_file" >&5 1832 . "$ac_site_file" 1833 fi 1834 done 1835 1836 if test -r "$cache_file"; then 1837 # Some versions of bash will fail to source /dev/null (special 1838 # files actually), so we avoid doing that. 1839 if test -f "$cache_file"; then 1840 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5 1841 $as_echo "$as_me: loading cache $cache_file" >&6;} 1842 case $cache_file in 1843 [\\/]* | ?:[\\/]* ) . "$cache_file";; 1844 *) . "./$cache_file";; 1845 esac 1846 fi 1847 else 1848 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5 1849 $as_echo "$as_me: creating cache $cache_file" >&6;} 1850 >$cache_file 1851 fi 1852 1853 # Check that the precious variables saved in the cache have kept the same 1854 # value. 1855 ac_cache_corrupted=false 1856 for ac_var in $ac_precious_vars; do 1857 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1858 eval ac_new_set=\$ac_env_${ac_var}_set 1859 eval ac_old_val=\$ac_cv_env_${ac_var}_value 1860 eval ac_new_val=\$ac_env_${ac_var}_value 1861 case $ac_old_set,$ac_new_set in 1862 set,) 1863 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1864 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1865 ac_cache_corrupted=: ;; 1866 ,set) 1867 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1868 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1869 ac_cache_corrupted=: ;; 1870 ,);; 1871 *) 1872 if test "x$ac_old_val" != "x$ac_new_val"; then 1873 # differences in whitespace do not lead to failure. 1874 ac_old_val_w=`echo x $ac_old_val` 1875 ac_new_val_w=`echo x $ac_new_val` 1876 if test "$ac_old_val_w" != "$ac_new_val_w"; then 1877 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1878 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1879 ac_cache_corrupted=: 1880 else 1881 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 1882 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 1883 eval $ac_var=\$ac_old_val 1884 fi 1885 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5 1886 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 1887 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5 1888 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 1889 fi;; 1890 esac 1891 # Pass precious variables to config.status. 1892 if test "$ac_new_set" = set; then 1893 case $ac_new_val in 1894 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1895 *) ac_arg=$ac_var=$ac_new_val ;; 1896 esac 1897 case " $ac_configure_args " in 1898 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1899 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1900 esac 1901 fi 1902 done 1903 if $ac_cache_corrupted; then 1904 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 1905 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 1906 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1907 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1908 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1909 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1910 { (exit 1); exit 1; }; } 1911 fi 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 ac_ext=c 1930 ac_cpp='$CPP $CPPFLAGS' 1931 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1932 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1933 ac_compiler_gnu=$ac_cv_c_compiler_gnu 1934 1935 1936 1937 1938 ac_config_headers="$ac_config_headers common/icucfg.h" 1939 1940 PACKAGE="icu" 1941 1942 1943 { $as_echo "$as_me:$LINENO: checking for ICU version numbers" >&5 1944 $as_echo_n "checking for ICU version numbers... " >&6; } 1945 1946 # Get the ICU version from uversion.h or other headers 1947 geticuversion() { 1948 sed -n 's/^[ ]*#[ ]*define[ ]*U_ICU_VERSION[ ]*"\([^"]*\)".*/\1/p' "$@" 1949 } 1950 getuversion() { 1951 sed -n 's/^[ ]*#[ ]*define[ ]*U_UNICODE_VERSION[ ]*"\([^"]*\)".*/\1/p' "$@" 1952 } 1953 VERSION=`geticuversion $srcdir/common/unicode/uvernum.h` 1954 if test x"$VERSION" = x; then 1955 VERSION=`geticuversion $srcdir/common/unicode/*.h` 1956 if test x"$VERSION" = x; then 1957 { { $as_echo "$as_me:$LINENO: error: Cannot determine ICU version number from uvernum.h header file" >&5 1958 $as_echo "$as_me: error: Cannot determine ICU version number from uvernum.h header file" >&2;} 1959 { (exit 1); exit 1; }; } 1960 fi 1961 fi 1962 1963 UNICODE_VERSION=`getuversion $srcdir/common/unicode/uchar.h` 1964 if test x"$UNICODE_VERSION" = x; then 1965 UNICODE_VERSION=`getuversion $srcdir/common/unicode/*.h` 1966 if test x"$UNICODE_VERSION" = x; then 1967 { { $as_echo "$as_me:$LINENO: error: Cannot determine Unicode version number from uchar.h header file" >&5 1968 $as_echo "$as_me: error: Cannot determine Unicode version number from uchar.h header file" >&2;} 1969 { (exit 1); exit 1; }; } 1970 fi 1971 fi 1972 # Compute a reasonable library version from the release version. This is 1973 # very bad, but that's wanted... We want to make sure that the LIB_VERSION 1974 # has at least a dot in it, so we'll add a .0 if needed. 1975 LIB_VERSION=`echo $VERSION | sed -e 's/\.//' -e 's/^\([^.]*\)$/\1.0/'` 1976 LIB_VERSION_MAJOR=`echo $LIB_VERSION | sed 's/\..*//'` 1977 1978 1979 1980 { $as_echo "$as_me:$LINENO: result: release $VERSION, library $LIB_VERSION, unicode version $UNICODE_VERSION" >&5 1981 $as_echo "release $VERSION, library $LIB_VERSION, unicode version $UNICODE_VERSION" >&6; } 1982 1983 1984 1985 # Determine the host system 1986 ac_aux_dir= 1987 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 1988 if test -f "$ac_dir/install-sh"; then 1989 ac_aux_dir=$ac_dir 1990 ac_install_sh="$ac_aux_dir/install-sh -c" 1991 break 1992 elif test -f "$ac_dir/install.sh"; then 1993 ac_aux_dir=$ac_dir 1994 ac_install_sh="$ac_aux_dir/install.sh -c" 1995 break 1996 elif test -f "$ac_dir/shtool"; then 1997 ac_aux_dir=$ac_dir 1998 ac_install_sh="$ac_aux_dir/shtool install -c" 1999 break 2000 fi 2001 done 2002 if test -z "$ac_aux_dir"; then 2003 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 2004 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} 2005 { (exit 1); exit 1; }; } 2006 fi 2007 2008 # These three variables are undocumented and unsupported, 2009 # and are intended to be withdrawn in a future Autoconf release. 2010 # They can cause serious problems if a builder's source tree is in a directory 2011 # whose full name contains unusual characters. 2012 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2013 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2014 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2015 2016 2017 # Make sure we can run config.sub. 2018 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2019 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 2020 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} 2021 { (exit 1); exit 1; }; } 2022 2023 { $as_echo "$as_me:$LINENO: checking build system type" >&5 2024 $as_echo_n "checking build system type... " >&6; } 2025 if test "${ac_cv_build+set}" = set; then 2026 $as_echo_n "(cached) " >&6 2027 else 2028 ac_build_alias=$build_alias 2029 test "x$ac_build_alias" = x && 2030 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2031 test "x$ac_build_alias" = x && 2032 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 2033 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 2034 { (exit 1); exit 1; }; } 2035 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2036 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 2037 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} 2038 { (exit 1); exit 1; }; } 2039 2040 fi 2041 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5 2042 $as_echo "$ac_cv_build" >&6; } 2043 case $ac_cv_build in 2044 *-*-*) ;; 2045 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 2046 $as_echo "$as_me: error: invalid value of canonical build" >&2;} 2047 { (exit 1); exit 1; }; };; 2048 esac 2049 build=$ac_cv_build 2050 ac_save_IFS=$IFS; IFS='-' 2051 set x $ac_cv_build 2052 shift 2053 build_cpu=$1 2054 build_vendor=$2 2055 shift; shift 2056 # Remember, the first character of IFS is used to create $*, 2057 # except with old shells: 2058 build_os=$* 2059 IFS=$ac_save_IFS 2060 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2061 2062 2063 { $as_echo "$as_me:$LINENO: checking host system type" >&5 2064 $as_echo_n "checking host system type... " >&6; } 2065 if test "${ac_cv_host+set}" = set; then 2066 $as_echo_n "(cached) " >&6 2067 else 2068 if test "x$host_alias" = x; then 2069 ac_cv_host=$ac_cv_build 2070 else 2071 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2072 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 2073 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} 2074 { (exit 1); exit 1; }; } 2075 fi 2076 2077 fi 2078 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5 2079 $as_echo "$ac_cv_host" >&6; } 2080 case $ac_cv_host in 2081 *-*-*) ;; 2082 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 2083 $as_echo "$as_me: error: invalid value of canonical host" >&2;} 2084 { (exit 1); exit 1; }; };; 2085 esac 2086 host=$ac_cv_host 2087 ac_save_IFS=$IFS; IFS='-' 2088 set x $ac_cv_host 2089 shift 2090 host_cpu=$1 2091 host_vendor=$2 2092 shift; shift 2093 # Remember, the first character of IFS is used to create $*, 2094 # except with old shells: 2095 host_os=$* 2096 IFS=$ac_save_IFS 2097 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2098 2099 2100 { $as_echo "$as_me:$LINENO: checking target system type" >&5 2101 $as_echo_n "checking target system type... " >&6; } 2102 if test "${ac_cv_target+set}" = set; then 2103 $as_echo_n "(cached) " >&6 2104 else 2105 if test "x$target_alias" = x; then 2106 ac_cv_target=$ac_cv_host 2107 else 2108 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || 2109 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5 2110 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;} 2111 { (exit 1); exit 1; }; } 2112 fi 2113 2114 fi 2115 { $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5 2116 $as_echo "$ac_cv_target" >&6; } 2117 case $ac_cv_target in 2118 *-*-*) ;; 2119 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5 2120 $as_echo "$as_me: error: invalid value of canonical target" >&2;} 2121 { (exit 1); exit 1; }; };; 2122 esac 2123 target=$ac_cv_target 2124 ac_save_IFS=$IFS; IFS='-' 2125 set x $ac_cv_target 2126 shift 2127 target_cpu=$1 2128 target_vendor=$2 2129 shift; shift 2130 # Remember, the first character of IFS is used to create $*, 2131 # except with old shells: 2132 target_os=$* 2133 IFS=$ac_save_IFS 2134 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac 2135 2136 2137 # The aliases save the names the user supplied, while $host etc. 2138 # will get canonicalized. 2139 test -n "$target_alias" && 2140 test "$program_prefix$program_suffix$program_transform_name" = \ 2141 NONENONEs,x,x, && 2142 program_prefix=${target_alias}- 2143 2144 2145 2146 # This variable is needed on z/OS because the C++ compiler only recognizes .C 2147 _CXX_CXXSUFFIX=cpp 2148 export _CXX_CXXSUFFIX 2149 # Checks for programs 2150 ac_ext=c 2151 ac_cpp='$CPP $CPPFLAGS' 2152 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2153 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2154 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2155 if test -n "$ac_tool_prefix"; then 2156 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2157 set dummy ${ac_tool_prefix}gcc; ac_word=$2 2158 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2159 $as_echo_n "checking for $ac_word... " >&6; } 2160 if test "${ac_cv_prog_CC+set}" = set; then 2161 $as_echo_n "(cached) " >&6 2162 else 2163 if test -n "$CC"; then 2164 ac_cv_prog_CC="$CC" # Let the user override the test. 2165 else 2166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2167 for as_dir in $PATH 2168 do 2169 IFS=$as_save_IFS 2170 test -z "$as_dir" && as_dir=. 2171 for ac_exec_ext in '' $ac_executable_extensions; do 2172 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2173 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2174 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2175 break 2 2176 fi 2177 done 2178 done 2179 IFS=$as_save_IFS 2180 2181 fi 2182 fi 2183 CC=$ac_cv_prog_CC 2184 if test -n "$CC"; then 2185 { $as_echo "$as_me:$LINENO: result: $CC" >&5 2186 $as_echo "$CC" >&6; } 2187 else 2188 { $as_echo "$as_me:$LINENO: result: no" >&5 2189 $as_echo "no" >&6; } 2190 fi 2191 2192 2193 fi 2194 if test -z "$ac_cv_prog_CC"; then 2195 ac_ct_CC=$CC 2196 # Extract the first word of "gcc", so it can be a program name with args. 2197 set dummy gcc; ac_word=$2 2198 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2199 $as_echo_n "checking for $ac_word... " >&6; } 2200 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2201 $as_echo_n "(cached) " >&6 2202 else 2203 if test -n "$ac_ct_CC"; then 2204 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2205 else 2206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2207 for as_dir in $PATH 2208 do 2209 IFS=$as_save_IFS 2210 test -z "$as_dir" && as_dir=. 2211 for ac_exec_ext in '' $ac_executable_extensions; do 2212 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2213 ac_cv_prog_ac_ct_CC="gcc" 2214 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2215 break 2 2216 fi 2217 done 2218 done 2219 IFS=$as_save_IFS 2220 2221 fi 2222 fi 2223 ac_ct_CC=$ac_cv_prog_ac_ct_CC 2224 if test -n "$ac_ct_CC"; then 2225 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2226 $as_echo "$ac_ct_CC" >&6; } 2227 else 2228 { $as_echo "$as_me:$LINENO: result: no" >&5 2229 $as_echo "no" >&6; } 2230 fi 2231 2232 if test "x$ac_ct_CC" = x; then 2233 CC="" 2234 else 2235 case $cross_compiling:$ac_tool_warned in 2236 yes:) 2237 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 2238 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2239 ac_tool_warned=yes ;; 2240 esac 2241 CC=$ac_ct_CC 2242 fi 2243 else 2244 CC="$ac_cv_prog_CC" 2245 fi 2246 2247 if test -z "$CC"; then 2248 if test -n "$ac_tool_prefix"; then 2249 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2250 set dummy ${ac_tool_prefix}cc; ac_word=$2 2251 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2252 $as_echo_n "checking for $ac_word... " >&6; } 2253 if test "${ac_cv_prog_CC+set}" = set; then 2254 $as_echo_n "(cached) " >&6 2255 else 2256 if test -n "$CC"; then 2257 ac_cv_prog_CC="$CC" # Let the user override the test. 2258 else 2259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2260 for as_dir in $PATH 2261 do 2262 IFS=$as_save_IFS 2263 test -z "$as_dir" && as_dir=. 2264 for ac_exec_ext in '' $ac_executable_extensions; do 2265 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2266 ac_cv_prog_CC="${ac_tool_prefix}cc" 2267 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2268 break 2 2269 fi 2270 done 2271 done 2272 IFS=$as_save_IFS 2273 2274 fi 2275 fi 2276 CC=$ac_cv_prog_CC 2277 if test -n "$CC"; then 2278 { $as_echo "$as_me:$LINENO: result: $CC" >&5 2279 $as_echo "$CC" >&6; } 2280 else 2281 { $as_echo "$as_me:$LINENO: result: no" >&5 2282 $as_echo "no" >&6; } 2283 fi 2284 2285 2286 fi 2287 fi 2288 if test -z "$CC"; then 2289 # Extract the first word of "cc", so it can be a program name with args. 2290 set dummy cc; ac_word=$2 2291 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2292 $as_echo_n "checking for $ac_word... " >&6; } 2293 if test "${ac_cv_prog_CC+set}" = set; then 2294 $as_echo_n "(cached) " >&6 2295 else 2296 if test -n "$CC"; then 2297 ac_cv_prog_CC="$CC" # Let the user override the test. 2298 else 2299 ac_prog_rejected=no 2300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2301 for as_dir in $PATH 2302 do 2303 IFS=$as_save_IFS 2304 test -z "$as_dir" && as_dir=. 2305 for ac_exec_ext in '' $ac_executable_extensions; do 2306 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2307 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2308 ac_prog_rejected=yes 2309 continue 2310 fi 2311 ac_cv_prog_CC="cc" 2312 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2313 break 2 2314 fi 2315 done 2316 done 2317 IFS=$as_save_IFS 2318 2319 if test $ac_prog_rejected = yes; then 2320 # We found a bogon in the path, so make sure we never use it. 2321 set dummy $ac_cv_prog_CC 2322 shift 2323 if test $# != 0; then 2324 # We chose a different compiler from the bogus one. 2325 # However, it has the same basename, so the bogon will be chosen 2326 # first if we set CC to just the basename; use the full file name. 2327 shift 2328 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2329 fi 2330 fi 2331 fi 2332 fi 2333 CC=$ac_cv_prog_CC 2334 if test -n "$CC"; then 2335 { $as_echo "$as_me:$LINENO: result: $CC" >&5 2336 $as_echo "$CC" >&6; } 2337 else 2338 { $as_echo "$as_me:$LINENO: result: no" >&5 2339 $as_echo "no" >&6; } 2340 fi 2341 2342 2343 fi 2344 if test -z "$CC"; then 2345 if test -n "$ac_tool_prefix"; then 2346 for ac_prog in cl.exe 2347 do 2348 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2349 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2350 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2351 $as_echo_n "checking for $ac_word... " >&6; } 2352 if test "${ac_cv_prog_CC+set}" = set; then 2353 $as_echo_n "(cached) " >&6 2354 else 2355 if test -n "$CC"; then 2356 ac_cv_prog_CC="$CC" # Let the user override the test. 2357 else 2358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2359 for as_dir in $PATH 2360 do 2361 IFS=$as_save_IFS 2362 test -z "$as_dir" && as_dir=. 2363 for ac_exec_ext in '' $ac_executable_extensions; do 2364 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2365 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2366 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2367 break 2 2368 fi 2369 done 2370 done 2371 IFS=$as_save_IFS 2372 2373 fi 2374 fi 2375 CC=$ac_cv_prog_CC 2376 if test -n "$CC"; then 2377 { $as_echo "$as_me:$LINENO: result: $CC" >&5 2378 $as_echo "$CC" >&6; } 2379 else 2380 { $as_echo "$as_me:$LINENO: result: no" >&5 2381 $as_echo "no" >&6; } 2382 fi 2383 2384 2385 test -n "$CC" && break 2386 done 2387 fi 2388 if test -z "$CC"; then 2389 ac_ct_CC=$CC 2390 for ac_prog in cl.exe 2391 do 2392 # Extract the first word of "$ac_prog", so it can be a program name with args. 2393 set dummy $ac_prog; ac_word=$2 2394 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2395 $as_echo_n "checking for $ac_word... " >&6; } 2396 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2397 $as_echo_n "(cached) " >&6 2398 else 2399 if test -n "$ac_ct_CC"; then 2400 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2401 else 2402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2403 for as_dir in $PATH 2404 do 2405 IFS=$as_save_IFS 2406 test -z "$as_dir" && as_dir=. 2407 for ac_exec_ext in '' $ac_executable_extensions; do 2408 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2409 ac_cv_prog_ac_ct_CC="$ac_prog" 2410 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2411 break 2 2412 fi 2413 done 2414 done 2415 IFS=$as_save_IFS 2416 2417 fi 2418 fi 2419 ac_ct_CC=$ac_cv_prog_ac_ct_CC 2420 if test -n "$ac_ct_CC"; then 2421 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2422 $as_echo "$ac_ct_CC" >&6; } 2423 else 2424 { $as_echo "$as_me:$LINENO: result: no" >&5 2425 $as_echo "no" >&6; } 2426 fi 2427 2428 2429 test -n "$ac_ct_CC" && break 2430 done 2431 2432 if test "x$ac_ct_CC" = x; then 2433 CC="" 2434 else 2435 case $cross_compiling:$ac_tool_warned in 2436 yes:) 2437 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 2438 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2439 ac_tool_warned=yes ;; 2440 esac 2441 CC=$ac_ct_CC 2442 fi 2443 fi 2444 2445 fi 2446 2447 2448 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 2449 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2450 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2451 See \`config.log' for more details." >&5 2452 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH 2453 See \`config.log' for more details." >&2;} 2454 { (exit 1); exit 1; }; }; } 2455 2456 # Provide some information about the compiler. 2457 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5 2458 set X $ac_compile 2459 ac_compiler=$2 2460 { (ac_try="$ac_compiler --version >&5" 2461 case "(($ac_try" in 2462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2463 *) ac_try_echo=$ac_try;; 2464 esac 2465 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2466 $as_echo "$ac_try_echo") >&5 2467 (eval "$ac_compiler --version >&5") 2>&5 2468 ac_status=$? 2469 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2470 (exit $ac_status); } 2471 { (ac_try="$ac_compiler -v >&5" 2472 case "(($ac_try" in 2473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2474 *) ac_try_echo=$ac_try;; 2475 esac 2476 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2477 $as_echo "$ac_try_echo") >&5 2478 (eval "$ac_compiler -v >&5") 2>&5 2479 ac_status=$? 2480 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2481 (exit $ac_status); } 2482 { (ac_try="$ac_compiler -V >&5" 2483 case "(($ac_try" in 2484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2485 *) ac_try_echo=$ac_try;; 2486 esac 2487 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2488 $as_echo "$ac_try_echo") >&5 2489 (eval "$ac_compiler -V >&5") 2>&5 2490 ac_status=$? 2491 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2492 (exit $ac_status); } 2493 2494 cat >conftest.$ac_ext <<_ACEOF 2495 /* confdefs.h. */ 2496 _ACEOF 2497 cat confdefs.h >>conftest.$ac_ext 2498 cat >>conftest.$ac_ext <<_ACEOF 2499 /* end confdefs.h. */ 2500 2501 int 2502 main () 2503 { 2504 2505 ; 2506 return 0; 2507 } 2508 _ACEOF 2509 ac_clean_files_save=$ac_clean_files 2510 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 2511 # Try to create an executable without -o first, disregard a.out. 2512 # It will help us diagnose broken compilers, and finding out an intuition 2513 # of exeext. 2514 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 2515 $as_echo_n "checking for C compiler default output file name... " >&6; } 2516 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2517 2518 # The possible output files: 2519 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 2520 2521 ac_rmfiles= 2522 for ac_file in $ac_files 2523 do 2524 case $ac_file in 2525 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2526 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2527 esac 2528 done 2529 rm -f $ac_rmfiles 2530 2531 if { (ac_try="$ac_link_default" 2532 case "(($ac_try" in 2533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2534 *) ac_try_echo=$ac_try;; 2535 esac 2536 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2537 $as_echo "$ac_try_echo") >&5 2538 (eval "$ac_link_default") 2>&5 2539 ac_status=$? 2540 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2541 (exit $ac_status); }; then 2542 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2543 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2544 # in a Makefile. We should not override ac_cv_exeext if it was cached, 2545 # so that the user can short-circuit this test for compilers unknown to 2546 # Autoconf. 2547 for ac_file in $ac_files '' 2548 do 2549 test -f "$ac_file" || continue 2550 case $ac_file in 2551 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 2552 ;; 2553 [ab].out ) 2554 # We found the default executable, but exeext='' is most 2555 # certainly right. 2556 break;; 2557 *.* ) 2558 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2559 then :; else 2560 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2561 fi 2562 # We set ac_cv_exeext here because the later test for it is not 2563 # safe: cross compilers may not add the suffix if given an `-o' 2564 # argument, so we may need to know it at that point already. 2565 # Even if this section looks crufty: it has the advantage of 2566 # actually working. 2567 break;; 2568 * ) 2569 break;; 2570 esac 2571 done 2572 test "$ac_cv_exeext" = no && ac_cv_exeext= 2573 2574 else 2575 ac_file='' 2576 fi 2577 2578 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5 2579 $as_echo "$ac_file" >&6; } 2580 if test -z "$ac_file"; then 2581 $as_echo "$as_me: failed program was:" >&5 2582 sed 's/^/| /' conftest.$ac_ext >&5 2583 2584 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 2585 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2586 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables 2587 See \`config.log' for more details." >&5 2588 $as_echo "$as_me: error: C compiler cannot create executables 2589 See \`config.log' for more details." >&2;} 2590 { (exit 77); exit 77; }; }; } 2591 fi 2592 2593 ac_exeext=$ac_cv_exeext 2594 2595 # Check that the compiler produces executables we can run. If not, either 2596 # the compiler is broken, or we cross compile. 2597 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5 2598 $as_echo_n "checking whether the C compiler works... " >&6; } 2599 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 2600 # If not cross compiling, check that we can run a simple program. 2601 if test "$cross_compiling" != yes; then 2602 if { ac_try='./$ac_file' 2603 { (case "(($ac_try" in 2604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2605 *) ac_try_echo=$ac_try;; 2606 esac 2607 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2608 $as_echo "$ac_try_echo") >&5 2609 (eval "$ac_try") 2>&5 2610 ac_status=$? 2611 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2612 (exit $ac_status); }; }; then 2613 cross_compiling=no 2614 else 2615 if test "$cross_compiling" = maybe; then 2616 cross_compiling=yes 2617 else 2618 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 2619 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2620 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs. 2621 If you meant to cross compile, use \`--host'. 2622 See \`config.log' for more details." >&5 2623 $as_echo "$as_me: error: cannot run C compiled programs. 2624 If you meant to cross compile, use \`--host'. 2625 See \`config.log' for more details." >&2;} 2626 { (exit 1); exit 1; }; }; } 2627 fi 2628 fi 2629 fi 2630 { $as_echo "$as_me:$LINENO: result: yes" >&5 2631 $as_echo "yes" >&6; } 2632 2633 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 2634 ac_clean_files=$ac_clean_files_save 2635 # Check that the compiler produces executables we can run. If not, either 2636 # the compiler is broken, or we cross compile. 2637 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 2638 $as_echo_n "checking whether we are cross compiling... " >&6; } 2639 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5 2640 $as_echo "$cross_compiling" >&6; } 2641 2642 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5 2643 $as_echo_n "checking for suffix of executables... " >&6; } 2644 if { (ac_try="$ac_link" 2645 case "(($ac_try" in 2646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2647 *) ac_try_echo=$ac_try;; 2648 esac 2649 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2650 $as_echo "$ac_try_echo") >&5 2651 (eval "$ac_link") 2>&5 2652 ac_status=$? 2653 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2654 (exit $ac_status); }; then 2655 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2656 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2657 # work properly (i.e., refer to `conftest.exe'), while it won't with 2658 # `rm'. 2659 for ac_file in conftest.exe conftest conftest.*; do 2660 test -f "$ac_file" || continue 2661 case $ac_file in 2662 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2663 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2664 break;; 2665 * ) break;; 2666 esac 2667 done 2668 else 2669 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 2670 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2671 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 2672 See \`config.log' for more details." >&5 2673 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 2674 See \`config.log' for more details." >&2;} 2675 { (exit 1); exit 1; }; }; } 2676 fi 2677 2678 rm -f conftest$ac_cv_exeext 2679 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 2680 $as_echo "$ac_cv_exeext" >&6; } 2681 2682 rm -f conftest.$ac_ext 2683 EXEEXT=$ac_cv_exeext 2684 ac_exeext=$EXEEXT 2685 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5 2686 $as_echo_n "checking for suffix of object files... " >&6; } 2687 if test "${ac_cv_objext+set}" = set; then 2688 $as_echo_n "(cached) " >&6 2689 else 2690 cat >conftest.$ac_ext <<_ACEOF 2691 /* confdefs.h. */ 2692 _ACEOF 2693 cat confdefs.h >>conftest.$ac_ext 2694 cat >>conftest.$ac_ext <<_ACEOF 2695 /* end confdefs.h. */ 2696 2697 int 2698 main () 2699 { 2700 2701 ; 2702 return 0; 2703 } 2704 _ACEOF 2705 rm -f conftest.o conftest.obj 2706 if { (ac_try="$ac_compile" 2707 case "(($ac_try" in 2708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2709 *) ac_try_echo=$ac_try;; 2710 esac 2711 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2712 $as_echo "$ac_try_echo") >&5 2713 (eval "$ac_compile") 2>&5 2714 ac_status=$? 2715 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2716 (exit $ac_status); }; then 2717 for ac_file in conftest.o conftest.obj conftest.*; do 2718 test -f "$ac_file" || continue; 2719 case $ac_file in 2720 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 2721 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2722 break;; 2723 esac 2724 done 2725 else 2726 $as_echo "$as_me: failed program was:" >&5 2727 sed 's/^/| /' conftest.$ac_ext >&5 2728 2729 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 2730 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2731 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 2732 See \`config.log' for more details." >&5 2733 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile 2734 See \`config.log' for more details." >&2;} 2735 { (exit 1); exit 1; }; }; } 2736 fi 2737 2738 rm -f conftest.$ac_cv_objext conftest.$ac_ext 2739 fi 2740 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 2741 $as_echo "$ac_cv_objext" >&6; } 2742 OBJEXT=$ac_cv_objext 2743 ac_objext=$OBJEXT 2744 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 2745 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 2746 if test "${ac_cv_c_compiler_gnu+set}" = set; then 2747 $as_echo_n "(cached) " >&6 2748 else 2749 cat >conftest.$ac_ext <<_ACEOF 2750 /* confdefs.h. */ 2751 _ACEOF 2752 cat confdefs.h >>conftest.$ac_ext 2753 cat >>conftest.$ac_ext <<_ACEOF 2754 /* end confdefs.h. */ 2755 2756 int 2757 main () 2758 { 2759 #ifndef __GNUC__ 2760 choke me 2761 #endif 2762 2763 ; 2764 return 0; 2765 } 2766 _ACEOF 2767 rm -f conftest.$ac_objext 2768 if { (ac_try="$ac_compile" 2769 case "(($ac_try" in 2770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2771 *) ac_try_echo=$ac_try;; 2772 esac 2773 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2774 $as_echo "$ac_try_echo") >&5 2775 (eval "$ac_compile") 2>conftest.er1 2776 ac_status=$? 2777 grep -v '^ *+' conftest.er1 >conftest.err 2778 rm -f conftest.er1 2779 cat conftest.err >&5 2780 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2781 (exit $ac_status); } && { 2782 test -z "$ac_c_werror_flag" || 2783 test ! -s conftest.err 2784 } && test -s conftest.$ac_objext; then 2785 ac_compiler_gnu=yes 2786 else 2787 $as_echo "$as_me: failed program was:" >&5 2788 sed 's/^/| /' conftest.$ac_ext >&5 2789 2790 ac_compiler_gnu=no 2791 fi 2792 2793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2794 ac_cv_c_compiler_gnu=$ac_compiler_gnu 2795 2796 fi 2797 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 2798 $as_echo "$ac_cv_c_compiler_gnu" >&6; } 2799 if test $ac_compiler_gnu = yes; then 2800 GCC=yes 2801 else 2802 GCC= 2803 fi 2804 ac_test_CFLAGS=${CFLAGS+set} 2805 ac_save_CFLAGS=$CFLAGS 2806 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 2807 $as_echo_n "checking whether $CC accepts -g... " >&6; } 2808 if test "${ac_cv_prog_cc_g+set}" = set; then 2809 $as_echo_n "(cached) " >&6 2810 else 2811 ac_save_c_werror_flag=$ac_c_werror_flag 2812 ac_c_werror_flag=yes 2813 ac_cv_prog_cc_g=no 2814 CFLAGS="-g" 2815 cat >conftest.$ac_ext <<_ACEOF 2816 /* confdefs.h. */ 2817 _ACEOF 2818 cat confdefs.h >>conftest.$ac_ext 2819 cat >>conftest.$ac_ext <<_ACEOF 2820 /* end confdefs.h. */ 2821 2822 int 2823 main () 2824 { 2825 2826 ; 2827 return 0; 2828 } 2829 _ACEOF 2830 rm -f conftest.$ac_objext 2831 if { (ac_try="$ac_compile" 2832 case "(($ac_try" in 2833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2834 *) ac_try_echo=$ac_try;; 2835 esac 2836 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2837 $as_echo "$ac_try_echo") >&5 2838 (eval "$ac_compile") 2>conftest.er1 2839 ac_status=$? 2840 grep -v '^ *+' conftest.er1 >conftest.err 2841 rm -f conftest.er1 2842 cat conftest.err >&5 2843 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2844 (exit $ac_status); } && { 2845 test -z "$ac_c_werror_flag" || 2846 test ! -s conftest.err 2847 } && test -s conftest.$ac_objext; then 2848 ac_cv_prog_cc_g=yes 2849 else 2850 $as_echo "$as_me: failed program was:" >&5 2851 sed 's/^/| /' conftest.$ac_ext >&5 2852 2853 CFLAGS="" 2854 cat >conftest.$ac_ext <<_ACEOF 2855 /* confdefs.h. */ 2856 _ACEOF 2857 cat confdefs.h >>conftest.$ac_ext 2858 cat >>conftest.$ac_ext <<_ACEOF 2859 /* end confdefs.h. */ 2860 2861 int 2862 main () 2863 { 2864 2865 ; 2866 return 0; 2867 } 2868 _ACEOF 2869 rm -f conftest.$ac_objext 2870 if { (ac_try="$ac_compile" 2871 case "(($ac_try" in 2872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2873 *) ac_try_echo=$ac_try;; 2874 esac 2875 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2876 $as_echo "$ac_try_echo") >&5 2877 (eval "$ac_compile") 2>conftest.er1 2878 ac_status=$? 2879 grep -v '^ *+' conftest.er1 >conftest.err 2880 rm -f conftest.er1 2881 cat conftest.err >&5 2882 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2883 (exit $ac_status); } && { 2884 test -z "$ac_c_werror_flag" || 2885 test ! -s conftest.err 2886 } && test -s conftest.$ac_objext; then 2887 : 2888 else 2889 $as_echo "$as_me: failed program was:" >&5 2890 sed 's/^/| /' conftest.$ac_ext >&5 2891 2892 ac_c_werror_flag=$ac_save_c_werror_flag 2893 CFLAGS="-g" 2894 cat >conftest.$ac_ext <<_ACEOF 2895 /* confdefs.h. */ 2896 _ACEOF 2897 cat confdefs.h >>conftest.$ac_ext 2898 cat >>conftest.$ac_ext <<_ACEOF 2899 /* end confdefs.h. */ 2900 2901 int 2902 main () 2903 { 2904 2905 ; 2906 return 0; 2907 } 2908 _ACEOF 2909 rm -f conftest.$ac_objext 2910 if { (ac_try="$ac_compile" 2911 case "(($ac_try" in 2912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2913 *) ac_try_echo=$ac_try;; 2914 esac 2915 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2916 $as_echo "$ac_try_echo") >&5 2917 (eval "$ac_compile") 2>conftest.er1 2918 ac_status=$? 2919 grep -v '^ *+' conftest.er1 >conftest.err 2920 rm -f conftest.er1 2921 cat conftest.err >&5 2922 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2923 (exit $ac_status); } && { 2924 test -z "$ac_c_werror_flag" || 2925 test ! -s conftest.err 2926 } && test -s conftest.$ac_objext; then 2927 ac_cv_prog_cc_g=yes 2928 else 2929 $as_echo "$as_me: failed program was:" >&5 2930 sed 's/^/| /' conftest.$ac_ext >&5 2931 2932 2933 fi 2934 2935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2936 fi 2937 2938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2939 fi 2940 2941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2942 ac_c_werror_flag=$ac_save_c_werror_flag 2943 fi 2944 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 2945 $as_echo "$ac_cv_prog_cc_g" >&6; } 2946 if test "$ac_test_CFLAGS" = set; then 2947 CFLAGS=$ac_save_CFLAGS 2948 elif test $ac_cv_prog_cc_g = yes; then 2949 if test "$GCC" = yes; then 2950 CFLAGS="-g -O2" 2951 else 2952 CFLAGS="-g" 2953 fi 2954 else 2955 if test "$GCC" = yes; then 2956 CFLAGS="-O2" 2957 else 2958 CFLAGS= 2959 fi 2960 fi 2961 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 2962 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 2963 if test "${ac_cv_prog_cc_c89+set}" = set; then 2964 $as_echo_n "(cached) " >&6 2965 else 2966 ac_cv_prog_cc_c89=no 2967 ac_save_CC=$CC 2968 cat >conftest.$ac_ext <<_ACEOF 2969 /* confdefs.h. */ 2970 _ACEOF 2971 cat confdefs.h >>conftest.$ac_ext 2972 cat >>conftest.$ac_ext <<_ACEOF 2973 /* end confdefs.h. */ 2974 #include <stdarg.h> 2975 #include <stdio.h> 2976 #include <sys/types.h> 2977 #include <sys/stat.h> 2978 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 2979 struct buf { int x; }; 2980 FILE * (*rcsopen) (struct buf *, struct stat *, int); 2981 static char *e (p, i) 2982 char **p; 2983 int i; 2984 { 2985 return p[i]; 2986 } 2987 static char *f (char * (*g) (char **, int), char **p, ...) 2988 { 2989 char *s; 2990 va_list v; 2991 va_start (v,p); 2992 s = g (p, va_arg (v,int)); 2993 va_end (v); 2994 return s; 2995 } 2996 2997 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2998 function prototypes and stuff, but not '\xHH' hex character constants. 2999 These don't provoke an error unfortunately, instead are silently treated 3000 as 'x'. The following induces an error, until -std is added to get 3001 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3002 array size at least. It's necessary to write '\x00'==0 to get something 3003 that's true only with -std. */ 3004 int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3005 3006 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3007 inside strings and character constants. */ 3008 #define FOO(x) 'x' 3009 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3010 3011 int test (int i, double x); 3012 struct s1 {int (*f) (int a);}; 3013 struct s2 {int (*f) (double a);}; 3014 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3015 int argc; 3016 char **argv; 3017 int 3018 main () 3019 { 3020 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3021 ; 3022 return 0; 3023 } 3024 _ACEOF 3025 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3026 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3027 do 3028 CC="$ac_save_CC $ac_arg" 3029 rm -f conftest.$ac_objext 3030 if { (ac_try="$ac_compile" 3031 case "(($ac_try" in 3032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3033 *) ac_try_echo=$ac_try;; 3034 esac 3035 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3036 $as_echo "$ac_try_echo") >&5 3037 (eval "$ac_compile") 2>conftest.er1 3038 ac_status=$? 3039 grep -v '^ *+' conftest.er1 >conftest.err 3040 rm -f conftest.er1 3041 cat conftest.err >&5 3042 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3043 (exit $ac_status); } && { 3044 test -z "$ac_c_werror_flag" || 3045 test ! -s conftest.err 3046 } && test -s conftest.$ac_objext; then 3047 ac_cv_prog_cc_c89=$ac_arg 3048 else 3049 $as_echo "$as_me: failed program was:" >&5 3050 sed 's/^/| /' conftest.$ac_ext >&5 3051 3052 3053 fi 3054 3055 rm -f core conftest.err conftest.$ac_objext 3056 test "x$ac_cv_prog_cc_c89" != "xno" && break 3057 done 3058 rm -f conftest.$ac_ext 3059 CC=$ac_save_CC 3060 3061 fi 3062 # AC_CACHE_VAL 3063 case "x$ac_cv_prog_cc_c89" in 3064 x) 3065 { $as_echo "$as_me:$LINENO: result: none needed" >&5 3066 $as_echo "none needed" >&6; } ;; 3067 xno) 3068 { $as_echo "$as_me:$LINENO: result: unsupported" >&5 3069 $as_echo "unsupported" >&6; } ;; 3070 *) 3071 CC="$CC $ac_cv_prog_cc_c89" 3072 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 3073 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3074 esac 3075 3076 3077 ac_ext=c 3078 ac_cpp='$CPP $CPPFLAGS' 3079 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3080 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3081 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3082 3083 ac_ext=cpp 3084 ac_cpp='$CXXCPP $CPPFLAGS' 3085 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3086 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3087 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 3088 if test -z "$CXX"; then 3089 if test -n "$CCC"; then 3090 CXX=$CCC 3091 else 3092 if test -n "$ac_tool_prefix"; then 3093 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 3094 do 3095 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3096 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3097 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 3098 $as_echo_n "checking for $ac_word... " >&6; } 3099 if test "${ac_cv_prog_CXX+set}" = set; then 3100 $as_echo_n "(cached) " >&6 3101 else 3102 if test -n "$CXX"; then 3103 ac_cv_prog_CXX="$CXX" # Let the user override the test. 3104 else 3105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3106 for as_dir in $PATH 3107 do 3108 IFS=$as_save_IFS 3109 test -z "$as_dir" && as_dir=. 3110 for ac_exec_ext in '' $ac_executable_extensions; do 3111 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3112 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 3113 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3114 break 2 3115 fi 3116 done 3117 done 3118 IFS=$as_save_IFS 3119 3120 fi 3121 fi 3122 CXX=$ac_cv_prog_CXX 3123 if test -n "$CXX"; then 3124 { $as_echo "$as_me:$LINENO: result: $CXX" >&5 3125 $as_echo "$CXX" >&6; } 3126 else 3127 { $as_echo "$as_me:$LINENO: result: no" >&5 3128 $as_echo "no" >&6; } 3129 fi 3130 3131 3132 test -n "$CXX" && break 3133 done 3134 fi 3135 if test -z "$CXX"; then 3136 ac_ct_CXX=$CXX 3137 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 3138 do 3139 # Extract the first word of "$ac_prog", so it can be a program name with args. 3140 set dummy $ac_prog; ac_word=$2 3141 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 3142 $as_echo_n "checking for $ac_word... " >&6; } 3143 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then 3144 $as_echo_n "(cached) " >&6 3145 else 3146 if test -n "$ac_ct_CXX"; then 3147 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 3148 else 3149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3150 for as_dir in $PATH 3151 do 3152 IFS=$as_save_IFS 3153 test -z "$as_dir" && as_dir=. 3154 for ac_exec_ext in '' $ac_executable_extensions; do 3155 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3156 ac_cv_prog_ac_ct_CXX="$ac_prog" 3157 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3158 break 2 3159 fi 3160 done 3161 done 3162 IFS=$as_save_IFS 3163 3164 fi 3165 fi 3166 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 3167 if test -n "$ac_ct_CXX"; then 3168 { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 3169 $as_echo "$ac_ct_CXX" >&6; } 3170 else 3171 { $as_echo "$as_me:$LINENO: result: no" >&5 3172 $as_echo "no" >&6; } 3173 fi 3174 3175 3176 test -n "$ac_ct_CXX" && break 3177 done 3178 3179 if test "x$ac_ct_CXX" = x; then 3180 CXX="g++" 3181 else 3182 case $cross_compiling:$ac_tool_warned in 3183 yes:) 3184 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 3185 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3186 ac_tool_warned=yes ;; 3187 esac 3188 CXX=$ac_ct_CXX 3189 fi 3190 fi 3191 3192 fi 3193 fi 3194 # Provide some information about the compiler. 3195 $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5 3196 set X $ac_compile 3197 ac_compiler=$2 3198 { (ac_try="$ac_compiler --version >&5" 3199 case "(($ac_try" in 3200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3201 *) ac_try_echo=$ac_try;; 3202 esac 3203 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3204 $as_echo "$ac_try_echo") >&5 3205 (eval "$ac_compiler --version >&5") 2>&5 3206 ac_status=$? 3207 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3208 (exit $ac_status); } 3209 { (ac_try="$ac_compiler -v >&5" 3210 case "(($ac_try" in 3211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3212 *) ac_try_echo=$ac_try;; 3213 esac 3214 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3215 $as_echo "$ac_try_echo") >&5 3216 (eval "$ac_compiler -v >&5") 2>&5 3217 ac_status=$? 3218 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3219 (exit $ac_status); } 3220 { (ac_try="$ac_compiler -V >&5" 3221 case "(($ac_try" in 3222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3223 *) ac_try_echo=$ac_try;; 3224 esac 3225 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3226 $as_echo "$ac_try_echo") >&5 3227 (eval "$ac_compiler -V >&5") 2>&5 3228 ac_status=$? 3229 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3230 (exit $ac_status); } 3231 3232 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 3233 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 3234 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then 3235 $as_echo_n "(cached) " >&6 3236 else 3237 cat >conftest.$ac_ext <<_ACEOF 3238 /* confdefs.h. */ 3239 _ACEOF 3240 cat confdefs.h >>conftest.$ac_ext 3241 cat >>conftest.$ac_ext <<_ACEOF 3242 /* end confdefs.h. */ 3243 3244 int 3245 main () 3246 { 3247 #ifndef __GNUC__ 3248 choke me 3249 #endif 3250 3251 ; 3252 return 0; 3253 } 3254 _ACEOF 3255 rm -f conftest.$ac_objext 3256 if { (ac_try="$ac_compile" 3257 case "(($ac_try" in 3258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3259 *) ac_try_echo=$ac_try;; 3260 esac 3261 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3262 $as_echo "$ac_try_echo") >&5 3263 (eval "$ac_compile") 2>conftest.er1 3264 ac_status=$? 3265 grep -v '^ *+' conftest.er1 >conftest.err 3266 rm -f conftest.er1 3267 cat conftest.err >&5 3268 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3269 (exit $ac_status); } && { 3270 test -z "$ac_cxx_werror_flag" || 3271 test ! -s conftest.err 3272 } && test -s conftest.$ac_objext; then 3273 ac_compiler_gnu=yes 3274 else 3275 $as_echo "$as_me: failed program was:" >&5 3276 sed 's/^/| /' conftest.$ac_ext >&5 3277 3278 ac_compiler_gnu=no 3279 fi 3280 3281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3282 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 3283 3284 fi 3285 { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 3286 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 3287 if test $ac_compiler_gnu = yes; then 3288 GXX=yes 3289 else 3290 GXX= 3291 fi 3292 ac_test_CXXFLAGS=${CXXFLAGS+set} 3293 ac_save_CXXFLAGS=$CXXFLAGS 3294 { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 3295 $as_echo_n "checking whether $CXX accepts -g... " >&6; } 3296 if test "${ac_cv_prog_cxx_g+set}" = set; then 3297 $as_echo_n "(cached) " >&6 3298 else 3299 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 3300 ac_cxx_werror_flag=yes 3301 ac_cv_prog_cxx_g=no 3302 CXXFLAGS="-g" 3303 cat >conftest.$ac_ext <<_ACEOF 3304 /* confdefs.h. */ 3305 _ACEOF 3306 cat confdefs.h >>conftest.$ac_ext 3307 cat >>conftest.$ac_ext <<_ACEOF 3308 /* end confdefs.h. */ 3309 3310 int 3311 main () 3312 { 3313 3314 ; 3315 return 0; 3316 } 3317 _ACEOF 3318 rm -f conftest.$ac_objext 3319 if { (ac_try="$ac_compile" 3320 case "(($ac_try" in 3321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3322 *) ac_try_echo=$ac_try;; 3323 esac 3324 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3325 $as_echo "$ac_try_echo") >&5 3326 (eval "$ac_compile") 2>conftest.er1 3327 ac_status=$? 3328 grep -v '^ *+' conftest.er1 >conftest.err 3329 rm -f conftest.er1 3330 cat conftest.err >&5 3331 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3332 (exit $ac_status); } && { 3333 test -z "$ac_cxx_werror_flag" || 3334 test ! -s conftest.err 3335 } && test -s conftest.$ac_objext; then 3336 ac_cv_prog_cxx_g=yes 3337 else 3338 $as_echo "$as_me: failed program was:" >&5 3339 sed 's/^/| /' conftest.$ac_ext >&5 3340 3341 CXXFLAGS="" 3342 cat >conftest.$ac_ext <<_ACEOF 3343 /* confdefs.h. */ 3344 _ACEOF 3345 cat confdefs.h >>conftest.$ac_ext 3346 cat >>conftest.$ac_ext <<_ACEOF 3347 /* end confdefs.h. */ 3348 3349 int 3350 main () 3351 { 3352 3353 ; 3354 return 0; 3355 } 3356 _ACEOF 3357 rm -f conftest.$ac_objext 3358 if { (ac_try="$ac_compile" 3359 case "(($ac_try" in 3360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3361 *) ac_try_echo=$ac_try;; 3362 esac 3363 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3364 $as_echo "$ac_try_echo") >&5 3365 (eval "$ac_compile") 2>conftest.er1 3366 ac_status=$? 3367 grep -v '^ *+' conftest.er1 >conftest.err 3368 rm -f conftest.er1 3369 cat conftest.err >&5 3370 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3371 (exit $ac_status); } && { 3372 test -z "$ac_cxx_werror_flag" || 3373 test ! -s conftest.err 3374 } && test -s conftest.$ac_objext; then 3375 : 3376 else 3377 $as_echo "$as_me: failed program was:" >&5 3378 sed 's/^/| /' conftest.$ac_ext >&5 3379 3380 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 3381 CXXFLAGS="-g" 3382 cat >conftest.$ac_ext <<_ACEOF 3383 /* confdefs.h. */ 3384 _ACEOF 3385 cat confdefs.h >>conftest.$ac_ext 3386 cat >>conftest.$ac_ext <<_ACEOF 3387 /* end confdefs.h. */ 3388 3389 int 3390 main () 3391 { 3392 3393 ; 3394 return 0; 3395 } 3396 _ACEOF 3397 rm -f conftest.$ac_objext 3398 if { (ac_try="$ac_compile" 3399 case "(($ac_try" in 3400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3401 *) ac_try_echo=$ac_try;; 3402 esac 3403 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3404 $as_echo "$ac_try_echo") >&5 3405 (eval "$ac_compile") 2>conftest.er1 3406 ac_status=$? 3407 grep -v '^ *+' conftest.er1 >conftest.err 3408 rm -f conftest.er1 3409 cat conftest.err >&5 3410 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3411 (exit $ac_status); } && { 3412 test -z "$ac_cxx_werror_flag" || 3413 test ! -s conftest.err 3414 } && test -s conftest.$ac_objext; then 3415 ac_cv_prog_cxx_g=yes 3416 else 3417 $as_echo "$as_me: failed program was:" >&5 3418 sed 's/^/| /' conftest.$ac_ext >&5 3419 3420 3421 fi 3422 3423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3424 fi 3425 3426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3427 fi 3428 3429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3430 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 3431 fi 3432 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 3433 $as_echo "$ac_cv_prog_cxx_g" >&6; } 3434 if test "$ac_test_CXXFLAGS" = set; then 3435 CXXFLAGS=$ac_save_CXXFLAGS 3436 elif test $ac_cv_prog_cxx_g = yes; then 3437 if test "$GXX" = yes; then 3438 CXXFLAGS="-g -O2" 3439 else 3440 CXXFLAGS="-g" 3441 fi 3442 else 3443 if test "$GXX" = yes; then 3444 CXXFLAGS="-O2" 3445 else 3446 CXXFLAGS= 3447 fi 3448 fi 3449 ac_ext=c 3450 ac_cpp='$CPP $CPPFLAGS' 3451 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3452 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3453 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3454 3455 ac_ext=c 3456 ac_cpp='$CPP $CPPFLAGS' 3457 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3458 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3459 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3460 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 3461 $as_echo_n "checking how to run the C preprocessor... " >&6; } 3462 # On Suns, sometimes $CPP names a directory. 3463 if test -n "$CPP" && test -d "$CPP"; then 3464 CPP= 3465 fi 3466 if test -z "$CPP"; then 3467 if test "${ac_cv_prog_CPP+set}" = set; then 3468 $as_echo_n "(cached) " >&6 3469 else 3470 # Double quotes because CPP needs to be expanded 3471 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3472 do 3473 ac_preproc_ok=false 3474 for ac_c_preproc_warn_flag in '' yes 3475 do 3476 # Use a header file that comes with gcc, so configuring glibc 3477 # with a fresh cross-compiler works. 3478 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3479 # <limits.h> exists even on freestanding compilers. 3480 # On the NeXT, cc -E runs the code through the compiler's parser, 3481 # not just through cpp. "Syntax error" is here to catch this case. 3482 cat >conftest.$ac_ext <<_ACEOF 3483 /* confdefs.h. */ 3484 _ACEOF 3485 cat confdefs.h >>conftest.$ac_ext 3486 cat >>conftest.$ac_ext <<_ACEOF 3487 /* end confdefs.h. */ 3488 #ifdef __STDC__ 3489 # include <limits.h> 3490 #else 3491 # include <assert.h> 3492 #endif 3493 Syntax error 3494 _ACEOF 3495 if { (ac_try="$ac_cpp conftest.$ac_ext" 3496 case "(($ac_try" in 3497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3498 *) ac_try_echo=$ac_try;; 3499 esac 3500 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3501 $as_echo "$ac_try_echo") >&5 3502 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3503 ac_status=$? 3504 grep -v '^ *+' conftest.er1 >conftest.err 3505 rm -f conftest.er1 3506 cat conftest.err >&5 3507 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3508 (exit $ac_status); } >/dev/null && { 3509 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3510 test ! -s conftest.err 3511 }; then 3512 : 3513 else 3514 $as_echo "$as_me: failed program was:" >&5 3515 sed 's/^/| /' conftest.$ac_ext >&5 3516 3517 # Broken: fails on valid input. 3518 continue 3519 fi 3520 3521 rm -f conftest.err conftest.$ac_ext 3522 3523 # OK, works on sane cases. Now check whether nonexistent headers 3524 # can be detected and how. 3525 cat >conftest.$ac_ext <<_ACEOF 3526 /* confdefs.h. */ 3527 _ACEOF 3528 cat confdefs.h >>conftest.$ac_ext 3529 cat >>conftest.$ac_ext <<_ACEOF 3530 /* end confdefs.h. */ 3531 #include <ac_nonexistent.h> 3532 _ACEOF 3533 if { (ac_try="$ac_cpp conftest.$ac_ext" 3534 case "(($ac_try" in 3535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3536 *) ac_try_echo=$ac_try;; 3537 esac 3538 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3539 $as_echo "$ac_try_echo") >&5 3540 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3541 ac_status=$? 3542 grep -v '^ *+' conftest.er1 >conftest.err 3543 rm -f conftest.er1 3544 cat conftest.err >&5 3545 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3546 (exit $ac_status); } >/dev/null && { 3547 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3548 test ! -s conftest.err 3549 }; then 3550 # Broken: success on invalid input. 3551 continue 3552 else 3553 $as_echo "$as_me: failed program was:" >&5 3554 sed 's/^/| /' conftest.$ac_ext >&5 3555 3556 # Passes both tests. 3557 ac_preproc_ok=: 3558 break 3559 fi 3560 3561 rm -f conftest.err conftest.$ac_ext 3562 3563 done 3564 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3565 rm -f conftest.err conftest.$ac_ext 3566 if $ac_preproc_ok; then 3567 break 3568 fi 3569 3570 done 3571 ac_cv_prog_CPP=$CPP 3572 3573 fi 3574 CPP=$ac_cv_prog_CPP 3575 else 3576 ac_cv_prog_CPP=$CPP 3577 fi 3578 { $as_echo "$as_me:$LINENO: result: $CPP" >&5 3579 $as_echo "$CPP" >&6; } 3580 ac_preproc_ok=false 3581 for ac_c_preproc_warn_flag in '' yes 3582 do 3583 # Use a header file that comes with gcc, so configuring glibc 3584 # with a fresh cross-compiler works. 3585 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3586 # <limits.h> exists even on freestanding compilers. 3587 # On the NeXT, cc -E runs the code through the compiler's parser, 3588 # not just through cpp. "Syntax error" is here to catch this case. 3589 cat >conftest.$ac_ext <<_ACEOF 3590 /* confdefs.h. */ 3591 _ACEOF 3592 cat confdefs.h >>conftest.$ac_ext 3593 cat >>conftest.$ac_ext <<_ACEOF 3594 /* end confdefs.h. */ 3595 #ifdef __STDC__ 3596 # include <limits.h> 3597 #else 3598 # include <assert.h> 3599 #endif 3600 Syntax error 3601 _ACEOF 3602 if { (ac_try="$ac_cpp conftest.$ac_ext" 3603 case "(($ac_try" in 3604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3605 *) ac_try_echo=$ac_try;; 3606 esac 3607 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3608 $as_echo "$ac_try_echo") >&5 3609 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3610 ac_status=$? 3611 grep -v '^ *+' conftest.er1 >conftest.err 3612 rm -f conftest.er1 3613 cat conftest.err >&5 3614 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3615 (exit $ac_status); } >/dev/null && { 3616 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3617 test ! -s conftest.err 3618 }; then 3619 : 3620 else 3621 $as_echo "$as_me: failed program was:" >&5 3622 sed 's/^/| /' conftest.$ac_ext >&5 3623 3624 # Broken: fails on valid input. 3625 continue 3626 fi 3627 3628 rm -f conftest.err conftest.$ac_ext 3629 3630 # OK, works on sane cases. Now check whether nonexistent headers 3631 # can be detected and how. 3632 cat >conftest.$ac_ext <<_ACEOF 3633 /* confdefs.h. */ 3634 _ACEOF 3635 cat confdefs.h >>conftest.$ac_ext 3636 cat >>conftest.$ac_ext <<_ACEOF 3637 /* end confdefs.h. */ 3638 #include <ac_nonexistent.h> 3639 _ACEOF 3640 if { (ac_try="$ac_cpp conftest.$ac_ext" 3641 case "(($ac_try" in 3642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3643 *) ac_try_echo=$ac_try;; 3644 esac 3645 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3646 $as_echo "$ac_try_echo") >&5 3647 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3648 ac_status=$? 3649 grep -v '^ *+' conftest.er1 >conftest.err 3650 rm -f conftest.er1 3651 cat conftest.err >&5 3652 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3653 (exit $ac_status); } >/dev/null && { 3654 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3655 test ! -s conftest.err 3656 }; then 3657 # Broken: success on invalid input. 3658 continue 3659 else 3660 $as_echo "$as_me: failed program was:" >&5 3661 sed 's/^/| /' conftest.$ac_ext >&5 3662 3663 # Passes both tests. 3664 ac_preproc_ok=: 3665 break 3666 fi 3667 3668 rm -f conftest.err conftest.$ac_ext 3669 3670 done 3671 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3672 rm -f conftest.err conftest.$ac_ext 3673 if $ac_preproc_ok; then 3674 : 3675 else 3676 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 3677 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3678 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 3679 See \`config.log' for more details." >&5 3680 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 3681 See \`config.log' for more details." >&2;} 3682 { (exit 1); exit 1; }; }; } 3683 fi 3684 3685 ac_ext=c 3686 ac_cpp='$CPP $CPPFLAGS' 3687 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3688 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3689 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3690 3691 3692 # Find a good install program. We prefer a C program (faster), 3693 # so one script is as good as another. But avoid the broken or 3694 # incompatible versions: 3695 # SysV /etc/install, /usr/sbin/install 3696 # SunOS /usr/etc/install 3697 # IRIX /sbin/install 3698 # AIX /bin/install 3699 # AmigaOS /C/install, which installs bootblocks on floppy discs 3700 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3701 # AFS /usr/afsws/bin/install, which mishandles nonexistent args 3702 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3703 # OS/2's system install, which has a completely different semantic 3704 # ./install, which can be erroneously created by make from ./install.sh. 3705 # Reject install programs that cannot install multiple files. 3706 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 3707 $as_echo_n "checking for a BSD-compatible install... " >&6; } 3708 if test -z "$INSTALL"; then 3709 if test "${ac_cv_path_install+set}" = set; then 3710 $as_echo_n "(cached) " >&6 3711 else 3712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3713 for as_dir in $PATH 3714 do 3715 IFS=$as_save_IFS 3716 test -z "$as_dir" && as_dir=. 3717 # Account for people who put trailing slashes in PATH elements. 3718 case $as_dir/ in 3719 ./ | .// | /cC/* | \ 3720 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3721 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 3722 /usr/ucb/* ) ;; 3723 *) 3724 # OSF1 and SCO ODT 3.0 have their own names for install. 3725 # Don't use installbsd from OSF since it installs stuff as root 3726 # by default. 3727 for ac_prog in ginstall scoinst install; do 3728 for ac_exec_ext in '' $ac_executable_extensions; do 3729 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 3730 if test $ac_prog = install && 3731 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3732 # AIX install. It has an incompatible calling convention. 3733 : 3734 elif test $ac_prog = install && 3735 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3736 # program-specific install script used by HP pwplus--don't use. 3737 : 3738 else 3739 rm -rf conftest.one conftest.two conftest.dir 3740 echo one > conftest.one 3741 echo two > conftest.two 3742 mkdir conftest.dir 3743 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 3744 test -s conftest.one && test -s conftest.two && 3745 test -s conftest.dir/conftest.one && 3746 test -s conftest.dir/conftest.two 3747 then 3748 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 3749 break 3 3750 fi 3751 fi 3752 fi 3753 done 3754 done 3755 ;; 3756 esac 3757 3758 done 3759 IFS=$as_save_IFS 3760 3761 rm -rf conftest.one conftest.two conftest.dir 3762 3763 fi 3764 if test "${ac_cv_path_install+set}" = set; then 3765 INSTALL=$ac_cv_path_install 3766 else 3767 # As a last resort, use the slow shell script. Don't cache a 3768 # value for INSTALL within a source directory, because that will 3769 # break other packages using the cache if that directory is 3770 # removed, or if the value is a relative name. 3771 INSTALL=$ac_install_sh 3772 fi 3773 fi 3774 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5 3775 $as_echo "$INSTALL" >&6; } 3776 3777 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3778 # It thinks the first close brace ends the variable substitution. 3779 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3780 3781 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3782 3783 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3784 3785 3786 3787 3788 # make sure install is relative to srcdir - if a script 3789 if test "$srcdir" = "."; then 3790 # If srcdir isn't just ., then (srcdir) is already prepended. 3791 if test "${ac_install_sh}" = "${INSTALL}"; then 3792 INSTALL="\\\$(top_srcdir)/${ac_install_sh}" 3793 fi 3794 fi 3795 3796 #AC_CHECK_PROG(AUTOCONF, autoconf, autoconf, true) 3797 #AC_CHECK_PROG(STRIP, strip, strip, true) 3798 3799 # Check for the platform make 3800 for ac_prog in gmake gnumake 3801 do 3802 # Extract the first word of "$ac_prog", so it can be a program name with args. 3803 set dummy $ac_prog; ac_word=$2 3804 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 3805 $as_echo_n "checking for $ac_word... " >&6; } 3806 if test "${ac_cv_path_U_MAKE+set}" = set; then 3807 $as_echo_n "(cached) " >&6 3808 else 3809 case $U_MAKE in 3810 [\\/]* | ?:[\\/]*) 3811 ac_cv_path_U_MAKE="$U_MAKE" # Let the user override the test with a path. 3812 ;; 3813 *) 3814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3815 for as_dir in $PATH 3816 do 3817 IFS=$as_save_IFS 3818 test -z "$as_dir" && as_dir=. 3819 for ac_exec_ext in '' $ac_executable_extensions; do 3820 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3821 ac_cv_path_U_MAKE="$as_dir/$ac_word$ac_exec_ext" 3822 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3823 break 2 3824 fi 3825 done 3826 done 3827 IFS=$as_save_IFS 3828 3829 ;; 3830 esac 3831 fi 3832 U_MAKE=$ac_cv_path_U_MAKE 3833 if test -n "$U_MAKE"; then 3834 { $as_echo "$as_me:$LINENO: result: $U_MAKE" >&5 3835 $as_echo "$U_MAKE" >&6; } 3836 else 3837 { $as_echo "$as_me:$LINENO: result: no" >&5 3838 $as_echo "no" >&6; } 3839 fi 3840 3841 3842 test -n "$U_MAKE" && break 3843 done 3844 test -n "$U_MAKE" || U_MAKE="make" 3845 3846 3847 3848 3849 3850 # Check whether --with-cross-build was given. 3851 if test "${with_cross_build+set}" = set; then 3852 withval=$with_cross_build; cross_buildroot="${withval}" 3853 else 3854 cross_buildroot="" 3855 fi 3856 3857 3858 if test "X$cross_buildroot" = "X"; then 3859 if test "$cross_compiling" = "yes"; then 3860 { { $as_echo "$as_me:$LINENO: error: Error! Cross compiling but no --with-cross-build option specified - please supply the path to an executable ICU's build root" >&5 3861 $as_echo "$as_me: error: Error! Cross compiling but no --with-cross-build option specified - please supply the path to an executable ICU's build root" >&2;} 3862 { (exit 1); exit 1; }; } 3863 fi 3864 else 3865 if test -f "${cross_buildroot}/config/icucross.mk"; then 3866 { $as_echo "$as_me:$LINENO: result: Using cross buildroot: $cross_buildroot" >&5 3867 $as_echo "Using cross buildroot: $cross_buildroot" >&6; } 3868 else 3869 if test -d "${cross_buildroot}"; then 3870 { { $as_echo "$as_me:$LINENO: error: ${cross_buildroot}/config/icucross.mk not found. Please build ICU in ${cross_buildroot} first." >&5 3871 $as_echo "$as_me: error: ${cross_buildroot}/config/icucross.mk not found. Please build ICU in ${cross_buildroot} first." >&2;} 3872 { (exit 1); exit 1; }; } 3873 else 3874 { { $as_echo "$as_me:$LINENO: error: No such directory ${cross_buildroot} supplied as the argument to --with-cross-build. Use an absolute path." >&5 3875 $as_echo "$as_me: error: No such directory ${cross_buildroot} supplied as the argument to --with-cross-build. Use an absolute path." >&2;} 3876 { (exit 1); exit 1; }; } 3877 fi 3878 fi 3879 fi 3880 3881 3882 # Check for doxygen to generate documentation 3883 # Extract the first word of "doxygen", so it can be a program name with args. 3884 set dummy doxygen; ac_word=$2 3885 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 3886 $as_echo_n "checking for $ac_word... " >&6; } 3887 if test "${ac_cv_path_DOXYGEN+set}" = set; then 3888 $as_echo_n "(cached) " >&6 3889 else 3890 case $DOXYGEN in 3891 [\\/]* | ?:[\\/]*) 3892 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path. 3893 ;; 3894 *) 3895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3896 as_dummy="$PATH:/usr/local/bin:/usr/bin" 3897 for as_dir in $as_dummy 3898 do 3899 IFS=$as_save_IFS 3900 test -z "$as_dir" && as_dir=. 3901 for ac_exec_ext in '' $ac_executable_extensions; do 3902 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3903 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext" 3904 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3905 break 2 3906 fi 3907 done 3908 done 3909 IFS=$as_save_IFS 3910 3911 ;; 3912 esac 3913 fi 3914 DOXYGEN=$ac_cv_path_DOXYGEN 3915 if test -n "$DOXYGEN"; then 3916 { $as_echo "$as_me:$LINENO: result: $DOXYGEN" >&5 3917 $as_echo "$DOXYGEN" >&6; } 3918 else 3919 { $as_echo "$as_me:$LINENO: result: no" >&5 3920 $as_echo "no" >&6; } 3921 fi 3922 3923 3924 3925 # Check that the linker is usable 3926 3927 case "${host}" in 3928 *-*-cygwin*|*-*-mingw*) 3929 if test "$GCC" != yes && test -n "`link --version 2>&1 | grep 'GNU coreutils'`"; then 3930 { { $as_echo "$as_me:$LINENO: error: link.exe is not a valid linker. Your PATH is incorrect. 3931 Please follow the directions in ICU's readme." >&5 3932 $as_echo "$as_me: error: link.exe is not a valid linker. Your PATH is incorrect. 3933 Please follow the directions in ICU's readme." >&2;} 3934 { (exit 1); exit 1; }; } 3935 fi;; 3936 *);; 3937 esac 3938 3939 # Determine the executable suffix 3940 # We don't use AC_EXEEXT because some compilers output separate debugging 3941 # files, which confuses the AC_EXEEXT macro. 3942 { $as_echo "$as_me:$LINENO: checking checking for executable suffix" >&5 3943 $as_echo_n "checking checking for executable suffix... " >&6; } 3944 case "${host}" in 3945 *-*-cygwin*|*-*-mingw*) EXEEXT=.exe ;; 3946 *) EXEEXT="" ;; 3947 esac 3948 ac_exeext=$EXEEXT 3949 { $as_echo "$as_me:$LINENO: result: $EXEEXT" >&5 3950 $as_echo "$EXEEXT" >&6; } 3951 3952 3953 # Determine how strict we want to be when compiling 3954 3955 { $as_echo "$as_me:$LINENO: checking whether strict compiling is on" >&5 3956 $as_echo_n "checking whether strict compiling is on... " >&6; } 3957 # Check whether --enable-strict was given. 3958 if test "${enable_strict+set}" = set; then 3959 enableval=$enable_strict; 3960 if test "$enableval" = no 3961 then 3962 ac_use_strict_options=no 3963 else 3964 ac_use_strict_options=yes 3965 fi 3966 3967 else 3968 ac_use_strict_options=yes 3969 fi 3970 3971 { $as_echo "$as_me:$LINENO: result: $ac_use_strict_options" >&5 3972 $as_echo "$ac_use_strict_options" >&6; } 3973 3974 if test "$ac_use_strict_options" = yes 3975 then 3976 if test "$GCC" = yes 3977 then 3978 CFLAGS="$CFLAGS -Wall -ansi -pedantic -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -Wno-long-long" 3979 case "${host}" in 3980 *-*-solaris*) 3981 CFLAGS="$CFLAGS -D__STDC__=0";; 3982 esac 3983 else 3984 case "${host}" in 3985 *-*-cygwin) 3986 if test "`$CC /help 2>&1 | head -c9`" = "Microsoft" 3987 then 3988 CFLAGS="$CFLAGS /W4" 3989 fi 3990 esac 3991 fi 3992 if test "$GXX" = yes 3993 then 3994 CXXFLAGS="$CXXFLAGS -W -Wall -ansi -pedantic -Wpointer-arith -Wwrite-strings -Wno-long-long" 3995 case "${host}" in 3996 *-*-solaris*) 3997 CXXFLAGS="$CXXFLAGS -D__STDC__=0";; 3998 esac 3999 else 4000 case "${host}" in 4001 *-*-cygwin) 4002 if test "`$CXX /help 2>&1 | head -c9`" = "Microsoft" 4003 then 4004 CXXFLAGS="$CXXFLAGS /W4" 4005 fi 4006 esac 4007 fi 4008 fi 4009 4010 4011 # Check if we can build and use 64-bit libraries 4012 4013 4014 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 4015 $as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4016 if test "${ac_cv_path_GREP+set}" = set; then 4017 $as_echo_n "(cached) " >&6 4018 else 4019 if test -z "$GREP"; then 4020 ac_path_GREP_found=false 4021 # Loop through the user's path and test for each of PROGNAME-LIST 4022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4023 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4024 do 4025 IFS=$as_save_IFS 4026 test -z "$as_dir" && as_dir=. 4027 for ac_prog in grep ggrep; do 4028 for ac_exec_ext in '' $ac_executable_extensions; do 4029 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4030 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 4031 # Check for GNU ac_path_GREP and select it if it is found. 4032 # Check for GNU $ac_path_GREP 4033 case `"$ac_path_GREP" --version 2>&1` in 4034 *GNU*) 4035 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4036 *) 4037 ac_count=0 4038 $as_echo_n 0123456789 >"conftest.in" 4039 while : 4040 do 4041 cat "conftest.in" "conftest.in" >"conftest.tmp" 4042 mv "conftest.tmp" "conftest.in" 4043 cp "conftest.in" "conftest.nl" 4044 $as_echo 'GREP' >> "conftest.nl" 4045 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4046 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4047 ac_count=`expr $ac_count + 1` 4048 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4049 # Best one so far, save it but keep looking for a better one 4050 ac_cv_path_GREP="$ac_path_GREP" 4051 ac_path_GREP_max=$ac_count 4052 fi 4053 # 10*(2^10) chars as input seems more than enough 4054 test $ac_count -gt 10 && break 4055 done 4056 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4057 esac 4058 4059 $ac_path_GREP_found && break 3 4060 done 4061 done 4062 done 4063 IFS=$as_save_IFS 4064 if test -z "$ac_cv_path_GREP"; then 4065 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 4066 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 4067 { (exit 1); exit 1; }; } 4068 fi 4069 else 4070 ac_cv_path_GREP=$GREP 4071 fi 4072 4073 fi 4074 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 4075 $as_echo "$ac_cv_path_GREP" >&6; } 4076 GREP="$ac_cv_path_GREP" 4077 4078 4079 { $as_echo "$as_me:$LINENO: checking for egrep" >&5 4080 $as_echo_n "checking for egrep... " >&6; } 4081 if test "${ac_cv_path_EGREP+set}" = set; then 4082 $as_echo_n "(cached) " >&6 4083 else 4084 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4085 then ac_cv_path_EGREP="$GREP -E" 4086 else 4087 if test -z "$EGREP"; then 4088 ac_path_EGREP_found=false 4089 # Loop through the user's path and test for each of PROGNAME-LIST 4090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4091 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4092 do 4093 IFS=$as_save_IFS 4094 test -z "$as_dir" && as_dir=. 4095 for ac_prog in egrep; do 4096 for ac_exec_ext in '' $ac_executable_extensions; do 4097 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4098 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 4099 # Check for GNU ac_path_EGREP and select it if it is found. 4100 # Check for GNU $ac_path_EGREP 4101 case `"$ac_path_EGREP" --version 2>&1` in 4102 *GNU*) 4103 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4104 *) 4105 ac_count=0 4106 $as_echo_n 0123456789 >"conftest.in" 4107 while : 4108 do 4109 cat "conftest.in" "conftest.in" >"conftest.tmp" 4110 mv "conftest.tmp" "conftest.in" 4111 cp "conftest.in" "conftest.nl" 4112 $as_echo 'EGREP' >> "conftest.nl" 4113 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4114 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4115 ac_count=`expr $ac_count + 1` 4116 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4117 # Best one so far, save it but keep looking for a better one 4118 ac_cv_path_EGREP="$ac_path_EGREP" 4119 ac_path_EGREP_max=$ac_count 4120 fi 4121 # 10*(2^10) chars as input seems more than enough 4122 test $ac_count -gt 10 && break 4123 done 4124 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4125 esac 4126 4127 $ac_path_EGREP_found && break 3 4128 done 4129 done 4130 done 4131 IFS=$as_save_IFS 4132 if test -z "$ac_cv_path_EGREP"; then 4133 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 4134 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 4135 { (exit 1); exit 1; }; } 4136 fi 4137 else 4138 ac_cv_path_EGREP=$EGREP 4139 fi 4140 4141 fi 4142 fi 4143 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 4144 $as_echo "$ac_cv_path_EGREP" >&6; } 4145 EGREP="$ac_cv_path_EGREP" 4146 4147 4148 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5 4149 $as_echo_n "checking for ANSI C header files... " >&6; } 4150 if test "${ac_cv_header_stdc+set}" = set; then 4151 $as_echo_n "(cached) " >&6 4152 else 4153 cat >conftest.$ac_ext <<_ACEOF 4154 /* confdefs.h. */ 4155 _ACEOF 4156 cat confdefs.h >>conftest.$ac_ext 4157 cat >>conftest.$ac_ext <<_ACEOF 4158 /* end confdefs.h. */ 4159 #include <stdlib.h> 4160 #include <stdarg.h> 4161 #include <string.h> 4162 #include <float.h> 4163 4164 int 4165 main () 4166 { 4167 4168 ; 4169 return 0; 4170 } 4171 _ACEOF 4172 rm -f conftest.$ac_objext 4173 if { (ac_try="$ac_compile" 4174 case "(($ac_try" in 4175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4176 *) ac_try_echo=$ac_try;; 4177 esac 4178 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4179 $as_echo "$ac_try_echo") >&5 4180 (eval "$ac_compile") 2>conftest.er1 4181 ac_status=$? 4182 grep -v '^ *+' conftest.er1 >conftest.err 4183 rm -f conftest.er1 4184 cat conftest.err >&5 4185 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4186 (exit $ac_status); } && { 4187 test -z "$ac_c_werror_flag" || 4188 test ! -s conftest.err 4189 } && test -s conftest.$ac_objext; then 4190 ac_cv_header_stdc=yes 4191 else 4192 $as_echo "$as_me: failed program was:" >&5 4193 sed 's/^/| /' conftest.$ac_ext >&5 4194 4195 ac_cv_header_stdc=no 4196 fi 4197 4198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4199 4200 if test $ac_cv_header_stdc = yes; then 4201 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4202 cat >conftest.$ac_ext <<_ACEOF 4203 /* confdefs.h. */ 4204 _ACEOF 4205 cat confdefs.h >>conftest.$ac_ext 4206 cat >>conftest.$ac_ext <<_ACEOF 4207 /* end confdefs.h. */ 4208 #include <string.h> 4209 4210 _ACEOF 4211 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4212 $EGREP "memchr" >/dev/null 2>&1; then 4213 : 4214 else 4215 ac_cv_header_stdc=no 4216 fi 4217 rm -f conftest* 4218 4219 fi 4220 4221 if test $ac_cv_header_stdc = yes; then 4222 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4223 cat >conftest.$ac_ext <<_ACEOF 4224 /* confdefs.h. */ 4225 _ACEOF 4226 cat confdefs.h >>conftest.$ac_ext 4227 cat >>conftest.$ac_ext <<_ACEOF 4228 /* end confdefs.h. */ 4229 #include <stdlib.h> 4230 4231 _ACEOF 4232 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4233 $EGREP "free" >/dev/null 2>&1; then 4234 : 4235 else 4236 ac_cv_header_stdc=no 4237 fi 4238 rm -f conftest* 4239 4240 fi 4241 4242 if test $ac_cv_header_stdc = yes; then 4243 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4244 if test "$cross_compiling" = yes; then 4245 : 4246 else 4247 cat >conftest.$ac_ext <<_ACEOF 4248 /* confdefs.h. */ 4249 _ACEOF 4250 cat confdefs.h >>conftest.$ac_ext 4251 cat >>conftest.$ac_ext <<_ACEOF 4252 /* end confdefs.h. */ 4253 #include <ctype.h> 4254 #include <stdlib.h> 4255 #if ((' ' & 0x0FF) == 0x020) 4256 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4257 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4258 #else 4259 # define ISLOWER(c) \ 4260 (('a' <= (c) && (c) <= 'i') \ 4261 || ('j' <= (c) && (c) <= 'r') \ 4262 || ('s' <= (c) && (c) <= 'z')) 4263 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4264 #endif 4265 4266 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4267 int 4268 main () 4269 { 4270 int i; 4271 for (i = 0; i < 256; i++) 4272 if (XOR (islower (i), ISLOWER (i)) 4273 || toupper (i) != TOUPPER (i)) 4274 return 2; 4275 return 0; 4276 } 4277 _ACEOF 4278 rm -f conftest$ac_exeext 4279 if { (ac_try="$ac_link" 4280 case "(($ac_try" in 4281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4282 *) ac_try_echo=$ac_try;; 4283 esac 4284 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4285 $as_echo "$ac_try_echo") >&5 4286 (eval "$ac_link") 2>&5 4287 ac_status=$? 4288 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4289 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4290 { (case "(($ac_try" in 4291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4292 *) ac_try_echo=$ac_try;; 4293 esac 4294 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4295 $as_echo "$ac_try_echo") >&5 4296 (eval "$ac_try") 2>&5 4297 ac_status=$? 4298 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4299 (exit $ac_status); }; }; then 4300 : 4301 else 4302 $as_echo "$as_me: program exited with status $ac_status" >&5 4303 $as_echo "$as_me: failed program was:" >&5 4304 sed 's/^/| /' conftest.$ac_ext >&5 4305 4306 ( exit $ac_status ) 4307 ac_cv_header_stdc=no 4308 fi 4309 rm -rf conftest.dSYM 4310 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4311 fi 4312 4313 4314 fi 4315 fi 4316 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 4317 $as_echo "$ac_cv_header_stdc" >&6; } 4318 if test $ac_cv_header_stdc = yes; then 4319 4320 cat >>confdefs.h <<\_ACEOF 4321 #define STDC_HEADERS 1 4322 _ACEOF 4323 4324 fi 4325 4326 # On IRIX 5.3, sys/types and inttypes.h are conflicting. 4327 4328 4329 4330 4331 4332 4333 4334 4335 4336 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4337 inttypes.h stdint.h unistd.h 4338 do 4339 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4340 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 4341 $as_echo_n "checking for $ac_header... " >&6; } 4342 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 4343 $as_echo_n "(cached) " >&6 4344 else 4345 cat >conftest.$ac_ext <<_ACEOF 4346 /* confdefs.h. */ 4347 _ACEOF 4348 cat confdefs.h >>conftest.$ac_ext 4349 cat >>conftest.$ac_ext <<_ACEOF 4350 /* end confdefs.h. */ 4351 $ac_includes_default 4352 4353 #include <$ac_header> 4354 _ACEOF 4355 rm -f conftest.$ac_objext 4356 if { (ac_try="$ac_compile" 4357 case "(($ac_try" in 4358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4359 *) ac_try_echo=$ac_try;; 4360 esac 4361 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4362 $as_echo "$ac_try_echo") >&5 4363 (eval "$ac_compile") 2>conftest.er1 4364 ac_status=$? 4365 grep -v '^ *+' conftest.er1 >conftest.err 4366 rm -f conftest.er1 4367 cat conftest.err >&5 4368 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4369 (exit $ac_status); } && { 4370 test -z "$ac_c_werror_flag" || 4371 test ! -s conftest.err 4372 } && test -s conftest.$ac_objext; then 4373 eval "$as_ac_Header=yes" 4374 else 4375 $as_echo "$as_me: failed program was:" >&5 4376 sed 's/^/| /' conftest.$ac_ext >&5 4377 4378 eval "$as_ac_Header=no" 4379 fi 4380 4381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4382 fi 4383 ac_res=`eval 'as_val=${'$as_ac_Header'} 4384 $as_echo "$as_val"'` 4385 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 4386 $as_echo "$ac_res" >&6; } 4387 as_val=`eval 'as_val=${'$as_ac_Header'} 4388 $as_echo "$as_val"'` 4389 if test "x$as_val" = x""yes; then 4390 cat >>confdefs.h <<_ACEOF 4391 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4392 _ACEOF 4393 4394 fi 4395 4396 done 4397 4398 4399 4400 BITS_REQ=nochange 4401 ENABLE_64BIT_LIBS=unknown 4402 ## revisit this for cross-compile. 4403 4404 # Check whether --enable-64bit-libs was given. 4405 if test "${enable_64bit_libs+set}" = set; then 4406 enableval=$enable_64bit_libs; echo "note, use --with-library-bits instead of --*-64bit-libs" 4407 case "${enableval}" in 4408 no|false|32) with_library_bits=32; ;; 4409 yes|true|64) with_library_bits=64else32 ;; 4410 nochange) with_library_bits=nochange; ;; 4411 *) { { $as_echo "$as_me:$LINENO: error: bad value ${enableval} for '--*-64bit-libs'" >&5 4412 $as_echo "$as_me: error: bad value ${enableval} for '--*-64bit-libs'" >&2;} 4413 { (exit 1); exit 1; }; } ;; 4414 esac 4415 fi 4416 4417 4418 4419 4420 # Check whether --with-library-bits was given. 4421 if test "${with_library_bits+set}" = set; then 4422 withval=$with_library_bits; case "${withval}" in 4423 ""|nochange) BITS_REQ=$withval ;; 4424 32|64|64else32) BITS_REQ=$withval ;; 4425 *) { { $as_echo "$as_me:$LINENO: error: bad value ${withval} for --with-library-bits" >&5 4426 $as_echo "$as_me: error: bad value ${withval} for --with-library-bits" >&2;} 4427 { (exit 1); exit 1; }; } ;; 4428 esac 4429 fi 4430 4431 4432 # don't use these for cross compiling 4433 if test "$cross_compiling" = "yes" -a "${BITS_REQ}" != "nochange"; then 4434 { { $as_echo "$as_me:$LINENO: error: Don't specify bitness when cross compiling. See readme.html for help with cross compilation., and set compiler options manually." >&5 4435 $as_echo "$as_me: error: Don't specify bitness when cross compiling. See readme.html for help with cross compilation., and set compiler options manually." >&2;} 4436 { (exit 1); exit 1; }; } 4437 fi 4438 # The cast to long int works around a bug in the HP C Compiler 4439 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 4440 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 4441 # This bug is HP SR number 8606223364. 4442 { $as_echo "$as_me:$LINENO: checking size of void *" >&5 4443 $as_echo_n "checking size of void *... " >&6; } 4444 if test "${ac_cv_sizeof_void_p+set}" = set; then 4445 $as_echo_n "(cached) " >&6 4446 else 4447 if test "$cross_compiling" = yes; then 4448 # Depending upon the size, compute the lo and hi bounds. 4449 cat >conftest.$ac_ext <<_ACEOF 4450 /* confdefs.h. */ 4451 _ACEOF 4452 cat confdefs.h >>conftest.$ac_ext 4453 cat >>conftest.$ac_ext <<_ACEOF 4454 /* end confdefs.h. */ 4455 $ac_includes_default 4456 int 4457 main () 4458 { 4459 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) >= 0)]; 4460 test_array [0] = 0 4461 4462 ; 4463 return 0; 4464 } 4465 _ACEOF 4466 rm -f conftest.$ac_objext 4467 if { (ac_try="$ac_compile" 4468 case "(($ac_try" in 4469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4470 *) ac_try_echo=$ac_try;; 4471 esac 4472 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4473 $as_echo "$ac_try_echo") >&5 4474 (eval "$ac_compile") 2>conftest.er1 4475 ac_status=$? 4476 grep -v '^ *+' conftest.er1 >conftest.err 4477 rm -f conftest.er1 4478 cat conftest.err >&5 4479 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4480 (exit $ac_status); } && { 4481 test -z "$ac_c_werror_flag" || 4482 test ! -s conftest.err 4483 } && test -s conftest.$ac_objext; then 4484 ac_lo=0 ac_mid=0 4485 while :; do 4486 cat >conftest.$ac_ext <<_ACEOF 4487 /* confdefs.h. */ 4488 _ACEOF 4489 cat confdefs.h >>conftest.$ac_ext 4490 cat >>conftest.$ac_ext <<_ACEOF 4491 /* end confdefs.h. */ 4492 $ac_includes_default 4493 int 4494 main () 4495 { 4496 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) <= $ac_mid)]; 4497 test_array [0] = 0 4498 4499 ; 4500 return 0; 4501 } 4502 _ACEOF 4503 rm -f conftest.$ac_objext 4504 if { (ac_try="$ac_compile" 4505 case "(($ac_try" in 4506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4507 *) ac_try_echo=$ac_try;; 4508 esac 4509 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4510 $as_echo "$ac_try_echo") >&5 4511 (eval "$ac_compile") 2>conftest.er1 4512 ac_status=$? 4513 grep -v '^ *+' conftest.er1 >conftest.err 4514 rm -f conftest.er1 4515 cat conftest.err >&5 4516 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4517 (exit $ac_status); } && { 4518 test -z "$ac_c_werror_flag" || 4519 test ! -s conftest.err 4520 } && test -s conftest.$ac_objext; then 4521 ac_hi=$ac_mid; break 4522 else 4523 $as_echo "$as_me: failed program was:" >&5 4524 sed 's/^/| /' conftest.$ac_ext >&5 4525 4526 ac_lo=`expr $ac_mid + 1` 4527 if test $ac_lo -le $ac_mid; then 4528 ac_lo= ac_hi= 4529 break 4530 fi 4531 ac_mid=`expr 2 '*' $ac_mid + 1` 4532 fi 4533 4534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4535 done 4536 else 4537 $as_echo "$as_me: failed program was:" >&5 4538 sed 's/^/| /' conftest.$ac_ext >&5 4539 4540 cat >conftest.$ac_ext <<_ACEOF 4541 /* confdefs.h. */ 4542 _ACEOF 4543 cat confdefs.h >>conftest.$ac_ext 4544 cat >>conftest.$ac_ext <<_ACEOF 4545 /* end confdefs.h. */ 4546 $ac_includes_default 4547 int 4548 main () 4549 { 4550 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) < 0)]; 4551 test_array [0] = 0 4552 4553 ; 4554 return 0; 4555 } 4556 _ACEOF 4557 rm -f conftest.$ac_objext 4558 if { (ac_try="$ac_compile" 4559 case "(($ac_try" in 4560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4561 *) ac_try_echo=$ac_try;; 4562 esac 4563 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4564 $as_echo "$ac_try_echo") >&5 4565 (eval "$ac_compile") 2>conftest.er1 4566 ac_status=$? 4567 grep -v '^ *+' conftest.er1 >conftest.err 4568 rm -f conftest.er1 4569 cat conftest.err >&5 4570 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4571 (exit $ac_status); } && { 4572 test -z "$ac_c_werror_flag" || 4573 test ! -s conftest.err 4574 } && test -s conftest.$ac_objext; then 4575 ac_hi=-1 ac_mid=-1 4576 while :; do 4577 cat >conftest.$ac_ext <<_ACEOF 4578 /* confdefs.h. */ 4579 _ACEOF 4580 cat confdefs.h >>conftest.$ac_ext 4581 cat >>conftest.$ac_ext <<_ACEOF 4582 /* end confdefs.h. */ 4583 $ac_includes_default 4584 int 4585 main () 4586 { 4587 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) >= $ac_mid)]; 4588 test_array [0] = 0 4589 4590 ; 4591 return 0; 4592 } 4593 _ACEOF 4594 rm -f conftest.$ac_objext 4595 if { (ac_try="$ac_compile" 4596 case "(($ac_try" in 4597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4598 *) ac_try_echo=$ac_try;; 4599 esac 4600 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4601 $as_echo "$ac_try_echo") >&5 4602 (eval "$ac_compile") 2>conftest.er1 4603 ac_status=$? 4604 grep -v '^ *+' conftest.er1 >conftest.err 4605 rm -f conftest.er1 4606 cat conftest.err >&5 4607 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4608 (exit $ac_status); } && { 4609 test -z "$ac_c_werror_flag" || 4610 test ! -s conftest.err 4611 } && test -s conftest.$ac_objext; then 4612 ac_lo=$ac_mid; break 4613 else 4614 $as_echo "$as_me: failed program was:" >&5 4615 sed 's/^/| /' conftest.$ac_ext >&5 4616 4617 ac_hi=`expr '(' $ac_mid ')' - 1` 4618 if test $ac_mid -le $ac_hi; then 4619 ac_lo= ac_hi= 4620 break 4621 fi 4622 ac_mid=`expr 2 '*' $ac_mid` 4623 fi 4624 4625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4626 done 4627 else 4628 $as_echo "$as_me: failed program was:" >&5 4629 sed 's/^/| /' conftest.$ac_ext >&5 4630 4631 ac_lo= ac_hi= 4632 fi 4633 4634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4635 fi 4636 4637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4638 # Binary search between lo and hi bounds. 4639 while test "x$ac_lo" != "x$ac_hi"; do 4640 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 4641 cat >conftest.$ac_ext <<_ACEOF 4642 /* confdefs.h. */ 4643 _ACEOF 4644 cat confdefs.h >>conftest.$ac_ext 4645 cat >>conftest.$ac_ext <<_ACEOF 4646 /* end confdefs.h. */ 4647 $ac_includes_default 4648 int 4649 main () 4650 { 4651 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) <= $ac_mid)]; 4652 test_array [0] = 0 4653 4654 ; 4655 return 0; 4656 } 4657 _ACEOF 4658 rm -f conftest.$ac_objext 4659 if { (ac_try="$ac_compile" 4660 case "(($ac_try" in 4661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4662 *) ac_try_echo=$ac_try;; 4663 esac 4664 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4665 $as_echo "$ac_try_echo") >&5 4666 (eval "$ac_compile") 2>conftest.er1 4667 ac_status=$? 4668 grep -v '^ *+' conftest.er1 >conftest.err 4669 rm -f conftest.er1 4670 cat conftest.err >&5 4671 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4672 (exit $ac_status); } && { 4673 test -z "$ac_c_werror_flag" || 4674 test ! -s conftest.err 4675 } && test -s conftest.$ac_objext; then 4676 ac_hi=$ac_mid 4677 else 4678 $as_echo "$as_me: failed program was:" >&5 4679 sed 's/^/| /' conftest.$ac_ext >&5 4680 4681 ac_lo=`expr '(' $ac_mid ')' + 1` 4682 fi 4683 4684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4685 done 4686 case $ac_lo in 4687 ?*) ac_cv_sizeof_void_p=$ac_lo;; 4688 '') if test "$ac_cv_type_void_p" = yes; then 4689 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 4690 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4691 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void *) 4692 See \`config.log' for more details." >&5 4693 $as_echo "$as_me: error: cannot compute sizeof (void *) 4694 See \`config.log' for more details." >&2;} 4695 { (exit 77); exit 77; }; }; } 4696 else 4697 ac_cv_sizeof_void_p=0 4698 fi ;; 4699 esac 4700 else 4701 cat >conftest.$ac_ext <<_ACEOF 4702 /* confdefs.h. */ 4703 _ACEOF 4704 cat confdefs.h >>conftest.$ac_ext 4705 cat >>conftest.$ac_ext <<_ACEOF 4706 /* end confdefs.h. */ 4707 $ac_includes_default 4708 static long int longval () { return (long int) (sizeof (void *)); } 4709 static unsigned long int ulongval () { return (long int) (sizeof (void *)); } 4710 #include <stdio.h> 4711 #include <stdlib.h> 4712 int 4713 main () 4714 { 4715 4716 FILE *f = fopen ("conftest.val", "w"); 4717 if (! f) 4718 return 1; 4719 if (((long int) (sizeof (void *))) < 0) 4720 { 4721 long int i = longval (); 4722 if (i != ((long int) (sizeof (void *)))) 4723 return 1; 4724 fprintf (f, "%ld", i); 4725 } 4726 else 4727 { 4728 unsigned long int i = ulongval (); 4729 if (i != ((long int) (sizeof (void *)))) 4730 return 1; 4731 fprintf (f, "%lu", i); 4732 } 4733 /* Do not output a trailing newline, as this causes \r\n confusion 4734 on some platforms. */ 4735 return ferror (f) || fclose (f) != 0; 4736 4737 ; 4738 return 0; 4739 } 4740 _ACEOF 4741 rm -f conftest$ac_exeext 4742 if { (ac_try="$ac_link" 4743 case "(($ac_try" in 4744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4745 *) ac_try_echo=$ac_try;; 4746 esac 4747 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4748 $as_echo "$ac_try_echo") >&5 4749 (eval "$ac_link") 2>&5 4750 ac_status=$? 4751 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4752 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4753 { (case "(($ac_try" in 4754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4755 *) ac_try_echo=$ac_try;; 4756 esac 4757 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4758 $as_echo "$ac_try_echo") >&5 4759 (eval "$ac_try") 2>&5 4760 ac_status=$? 4761 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4762 (exit $ac_status); }; }; then 4763 ac_cv_sizeof_void_p=`cat conftest.val` 4764 else 4765 $as_echo "$as_me: program exited with status $ac_status" >&5 4766 $as_echo "$as_me: failed program was:" >&5 4767 sed 's/^/| /' conftest.$ac_ext >&5 4768 4769 ( exit $ac_status ) 4770 if test "$ac_cv_type_void_p" = yes; then 4771 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 4772 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4773 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void *) 4774 See \`config.log' for more details." >&5 4775 $as_echo "$as_me: error: cannot compute sizeof (void *) 4776 See \`config.log' for more details." >&2;} 4777 { (exit 77); exit 77; }; }; } 4778 else 4779 ac_cv_sizeof_void_p=0 4780 fi 4781 fi 4782 rm -rf conftest.dSYM 4783 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4784 fi 4785 rm -f conftest.val 4786 fi 4787 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5 4788 $as_echo "$ac_cv_sizeof_void_p" >&6; } 4789 4790 4791 4792 cat >>confdefs.h <<_ACEOF 4793 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p 4794 _ACEOF 4795 4796 4797 { $as_echo "$as_me:$LINENO: checking whether runnable 64 bit binaries are built by default" >&5 4798 $as_echo_n "checking whether runnable 64 bit binaries are built by default... " >&6; } 4799 case $ac_cv_sizeof_void_p in 4800 8) DEFAULT_64BIT=yes ;; 4801 4) DEFAULT_64BIT=no ;; 4802 *) DEFAULT_64BIT=unknown 4803 esac 4804 BITS_GOT=unknown 4805 4806 # 'OK' here means, we can exit any further checking, everything's copa 4807 BITS_OK=yes 4808 4809 # do we need to check for buildable/runnable 32 or 64 bit? 4810 BITS_CHECK_32=no 4811 BITS_CHECK_64=no 4812 4813 # later, can we run the 32/64 bit binaries so made? 4814 BITS_RUN_32=no 4815 BITS_RUN_64=no 4816 4817 if test "$DEFAULT_64BIT" = "yes"; then 4818 # we get 64 bits by default. 4819 BITS_GOT=64 4820 case "$BITS_REQ" in 4821 32) 4822 # need to look for 32 bit support. 4823 BITS_CHECK_32=yes 4824 # not copa. 4825 BITS_OK=no;; 4826 # everyone else is happy. 4827 nochange) ;; 4828 *) ;; 4829 esac 4830 elif test "$DEFAULT_64BIT" = "no"; then 4831 # not 64 bit by default. 4832 BITS_GOT=32 4833 case "$BITS_REQ" in 4834 64|64else32) 4835 BITS_CHECK_64=yes 4836 #BITS_CHECK_32=yes 4837 BITS_OK=no;; 4838 nochange) ;; 4839 *) ;; 4840 esac 4841 elif test "$DEFAULT_64BIT" = "unknown"; then 4842 # cross compiling. 4843 BITS_GOT=unknown 4844 case "$BITS_REQ" in 4845 64|64else32) BITS_OK=no 4846 BITS_CHECK_32=yes 4847 BITS_CHECK_64=yes ;; 4848 32) BITS_OK=no;; 4849 nochange) ;; 4850 *) ;; 4851 esac 4852 fi 4853 4854 { $as_echo "$as_me:$LINENO: result: $DEFAULT_64BIT" >&5 4855 $as_echo "$DEFAULT_64BIT" >&6; }; 4856 4857 if test "$BITS_OK" != "yes"; then 4858 # not copa. back these up. 4859 CFLAGS_OLD="${CFLAGS}" 4860 CXXFLAGS_OLD="${CXXFLAGS}" 4861 LDFLAGS_OLD="${LDFLAGS}" 4862 ARFLAGS_OLD="${ARFLAGS}" 4863 4864 CFLAGS_32="${CFLAGS}" 4865 CXXFLAGS_32="${CXXFLAGS}" 4866 LDFLAGS_32="${LDFLAGS}" 4867 ARFLAGS_32="${ARFLAGS}" 4868 4869 CFLAGS_64="${CFLAGS}" 4870 CXXFLAGS_64="${CXXFLAGS}" 4871 LDFLAGS_64="${LDFLAGS}" 4872 ARFLAGS_64="${ARFLAGS}" 4873 4874 CAN_BUILD_64=unknown 4875 CAN_BUILD_32=unknown 4876 # These results can't be cached because is sets compiler flags. 4877 if test "$BITS_CHECK_64" = "yes"; then 4878 { $as_echo "$as_me:$LINENO: checking how to build 64-bit executables" >&5 4879 $as_echo_n "checking how to build 64-bit executables... " >&6; } 4880 CAN_BUILD_64=no 4881 #### 4882 # Find out if we think we can *build* for 64 bit. Doesn't check whether we can run it. 4883 # Note, we don't have to actually check if the options work- we'll try them before using them. 4884 # So, only try actually testing the options, if you are trying to decide between multiple options. 4885 # On exit from the following clauses: 4886 # if CAN_BUILD_64=yes: 4887 # *FLAGS are assumed to contain the right settings for 64bit 4888 # else if CAN_BUILD_64=no: (default) 4889 # *FLAGS are assumed to be trashed, and will be reset from *FLAGS_OLD 4890 4891 if test "$GCC" = yes; then 4892 CFLAGS="${CFLAGS} -m64" 4893 CXXFLAGS="${CXXFLAGS} -m64" 4894 cat >conftest.$ac_ext <<_ACEOF 4895 int main(void) {return (sizeof(void*)*8==64)?0:1;} 4896 _ACEOF 4897 rm -f conftest.$ac_objext 4898 if { (ac_try="$ac_compile" 4899 case "(($ac_try" in 4900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4901 *) ac_try_echo=$ac_try;; 4902 esac 4903 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4904 $as_echo "$ac_try_echo") >&5 4905 (eval "$ac_compile") 2>conftest.er1 4906 ac_status=$? 4907 grep -v '^ *+' conftest.er1 >conftest.err 4908 rm -f conftest.er1 4909 cat conftest.err >&5 4910 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4911 (exit $ac_status); } && { 4912 test -z "$ac_c_werror_flag" || 4913 test ! -s conftest.err 4914 } && test -s conftest.$ac_objext; then 4915 CAN_BUILD_64=yes 4916 else 4917 $as_echo "$as_me: failed program was:" >&5 4918 sed 's/^/| /' conftest.$ac_ext >&5 4919 4920 CAN_BUILD_64=no 4921 fi 4922 4923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4924 else 4925 case "${host}" in 4926 sparc*-*-solaris*) 4927 # 1. try -m64 4928 CFLAGS="${CFLAGS} -m64" 4929 CXXFLAGS="${CXXFLAGS} -m64" 4930 cat >conftest.$ac_ext <<_ACEOF 4931 int main(void) {return (sizeof(void*)*8==64)?0:1;} 4932 _ACEOF 4933 rm -f conftest.$ac_objext 4934 if { (ac_try="$ac_compile" 4935 case "(($ac_try" in 4936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4937 *) ac_try_echo=$ac_try;; 4938 esac 4939 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4940 $as_echo "$ac_try_echo") >&5 4941 (eval "$ac_compile") 2>conftest.er1 4942 ac_status=$? 4943 grep -v '^ *+' conftest.er1 >conftest.err 4944 rm -f conftest.er1 4945 cat conftest.err >&5 4946 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4947 (exit $ac_status); } && { 4948 test -z "$ac_c_werror_flag" || 4949 test ! -s conftest.err 4950 } && test -s conftest.$ac_objext; then 4951 CAN_BUILD_64=yes 4952 else 4953 $as_echo "$as_me: failed program was:" >&5 4954 sed 's/^/| /' conftest.$ac_ext >&5 4955 4956 CAN_BUILD_64=no 4957 fi 4958 4959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4960 if test "$CAN_BUILD_64" != yes; then 4961 # Nope. back out changes. 4962 CFLAGS="${CFLAGS_OLD}" 4963 CXXFLAGS="${CFLAGS_OLD}" 4964 # 2. try xarch=v9 [deprecated] 4965 ## TODO: cross compile: the following won't work. 4966 SPARCV9=`isainfo -n 2>&1 | grep sparcv9` 4967 SOL64=`$CXX -xarch=v9 2>&1 && $CC -xarch=v9 2>&1 | grep -v usage:` 4968 # "Warning: -xarch=v9 is deprecated, use -m64 to create 64-bit programs" 4969 if test -z "$SOL64" && test -n "$SPARCV9"; then 4970 CFLAGS="${CFLAGS} -xtarget=ultra -xarch=v9" 4971 CXXFLAGS="${CXXFLAGS} -xtarget=ultra -xarch=v9" 4972 LDFLAGS="${LDFLAGS} -xtarget=ultra -xarch=v9" 4973 CAN_BUILD_64=yes 4974 fi 4975 fi 4976 ;; 4977 i386-*-solaris*) 4978 # 1. try -m64 4979 CFLAGS="${CFLAGS} -m64" 4980 CXXFLAGS="${CXXFLAGS} -m64" 4981 cat >conftest.$ac_ext <<_ACEOF 4982 int main(void) {return (sizeof(void*)*8==64)?0:1;} 4983 _ACEOF 4984 rm -f conftest.$ac_objext 4985 if { (ac_try="$ac_compile" 4986 case "(($ac_try" in 4987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4988 *) ac_try_echo=$ac_try;; 4989 esac 4990 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4991 $as_echo "$ac_try_echo") >&5 4992 (eval "$ac_compile") 2>conftest.er1 4993 ac_status=$? 4994 grep -v '^ *+' conftest.er1 >conftest.err 4995 rm -f conftest.er1 4996 cat conftest.err >&5 4997 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4998 (exit $ac_status); } && { 4999 test -z "$ac_c_werror_flag" || 5000 test ! -s conftest.err 5001 } && test -s conftest.$ac_objext; then 5002 CAN_BUILD_64=yes 5003 else 5004 $as_echo "$as_me: failed program was:" >&5 5005 sed 's/^/| /' conftest.$ac_ext >&5 5006 5007 CAN_BUILD_64=no 5008 fi 5009 5010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5011 if test "$CAN_BUILD_64" != yes; then 5012 # Nope. back out changes. 5013 CFLAGS="${CFLAGS_OLD}" 5014 CXXFLAGS="${CXXFLAGS_OLD}" 5015 # 2. try the older compiler option 5016 ## TODO: cross compile problem 5017 SOL64=`$CXX -xtarget=generic64 2>&1 && $CC -xtarget=generic64 2>&1 | grep -v usage:` 5018 if test -z "$SOL64" && test -n "$AMD64"; then 5019 CFLAGS="${CFLAGS} -xtarget=generic64" 5020 CXXFLAGS="${CXXFLAGS} -xtarget=generic64" 5021 CAN_BUILD_64=yes 5022 fi 5023 fi 5024 ;; 5025 ia64-*-linux*) 5026 # check for ecc/ecpc compiler support 5027 ## TODO: cross compiler problem 5028 if test -n "`$CXX --help 2>&1 && $CC --help 2>&1 | grep -v Intel`"; then 5029 if test -n "`$CXX --help 2>&1 && $CC --help 2>&1 | grep -v Itanium`"; then 5030 CAN_BUILD_64=yes 5031 fi 5032 fi 5033 ;; 5034 *-*-cygwin) 5035 # vcvarsamd64.bat should have been used to enable 64-bit builds. 5036 # We only do this check to display the correct answer. 5037 ## TODO: cross compiler problem 5038 if test -n "`$CXX -help 2>&1 | grep 'for x64'`"; then 5039 CAN_BUILD_64=yes 5040 fi 5041 ;; 5042 *-*-aix*|powerpc64-*-linux*) 5043 CFLAGS="${CFLAGS} -q64" 5044 CXXFLAGS="${CXXFLAGS} -q64" 5045 LDFLAGS="${LDFLAGS} -q64" 5046 cat >conftest.$ac_ext <<_ACEOF 5047 int main(void) {return (sizeof(void*)*8==64)?0:1;} 5048 _ACEOF 5049 rm -f conftest.$ac_objext 5050 if { (ac_try="$ac_compile" 5051 case "(($ac_try" in 5052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5053 *) ac_try_echo=$ac_try;; 5054 esac 5055 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5056 $as_echo "$ac_try_echo") >&5 5057 (eval "$ac_compile") 2>conftest.er1 5058 ac_status=$? 5059 grep -v '^ *+' conftest.er1 >conftest.err 5060 rm -f conftest.er1 5061 cat conftest.err >&5 5062 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5063 (exit $ac_status); } && { 5064 test -z "$ac_c_werror_flag" || 5065 test ! -s conftest.err 5066 } && test -s conftest.$ac_objext; then 5067 CAN_BUILD_64=yes 5068 else 5069 $as_echo "$as_me: failed program was:" >&5 5070 sed 's/^/| /' conftest.$ac_ext >&5 5071 5072 CAN_BUILD_64=no 5073 fi 5074 5075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5076 if test "$CAN_BUILD_64" = yes; then 5077 # worked- set other options. 5078 case "${host}" in 5079 *-*-aix*) 5080 # tell AIX what executable mode to use. 5081 ARFLAGS="${ARFLAGS} -X64" 5082 esac 5083 fi 5084 ;; 5085 *-*-hpux*) 5086 # First we try the newer +DD64, if that doesn't work, 5087 # try other options. 5088 5089 CFLAGS="${CFLAGS} +DD64" 5090 CXXFLAGS="${CXXFLAGS} +DD64" 5091 cat >conftest.$ac_ext <<_ACEOF 5092 int main(void) {return (sizeof(void*)*8==64)?0:1;} 5093 _ACEOF 5094 rm -f conftest.$ac_objext 5095 if { (ac_try="$ac_compile" 5096 case "(($ac_try" in 5097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5098 *) ac_try_echo=$ac_try;; 5099 esac 5100 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5101 $as_echo "$ac_try_echo") >&5 5102 (eval "$ac_compile") 2>conftest.er1 5103 ac_status=$? 5104 grep -v '^ *+' conftest.er1 >conftest.err 5105 rm -f conftest.er1 5106 cat conftest.err >&5 5107 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5108 (exit $ac_status); } && { 5109 test -z "$ac_c_werror_flag" || 5110 test ! -s conftest.err 5111 } && test -s conftest.$ac_objext; then 5112 CAN_BUILD_64=yes 5113 else 5114 $as_echo "$as_me: failed program was:" >&5 5115 sed 's/^/| /' conftest.$ac_ext >&5 5116 5117 CAN_BUILD_64=no 5118 fi 5119 5120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5121 if test "$CAN_BUILD_64" != yes; then 5122 # reset 5123 CFLAGS="${CFLAGS_OLD}" 5124 CXXFLAGS="${CXXFLAGS_OLD}" 5125 # append 5126 CFLAGS="${CFLAGS} +DA2.0W" 5127 CXXFLAGS="${CXXFLAGS} +DA2.0W" 5128 cat >conftest.$ac_ext <<_ACEOF 5129 int main(void) {return (sizeof(void*)*8==64)?0:1;} 5130 _ACEOF 5131 rm -f conftest.$ac_objext 5132 if { (ac_try="$ac_compile" 5133 case "(($ac_try" in 5134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5135 *) ac_try_echo=$ac_try;; 5136 esac 5137 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5138 $as_echo "$ac_try_echo") >&5 5139 (eval "$ac_compile") 2>conftest.er1 5140 ac_status=$? 5141 grep -v '^ *+' conftest.er1 >conftest.err 5142 rm -f conftest.er1 5143 cat conftest.err >&5 5144 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5145 (exit $ac_status); } && { 5146 test -z "$ac_c_werror_flag" || 5147 test ! -s conftest.err 5148 } && test -s conftest.$ac_objext; then 5149 CAN_BUILD_64=yes 5150 else 5151 $as_echo "$as_me: failed program was:" >&5 5152 sed 's/^/| /' conftest.$ac_ext >&5 5153 5154 CAN_BUILD_64=no 5155 fi 5156 5157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5158 fi 5159 ;; 5160 *-*ibm-openedition*|*-*-os390*) 5161 CFLAGS="${CFLAGS} -Wc,lp64" 5162 CXXFLAGS="${CXXFLAGS} -Wc,lp64" 5163 LDFLAGS="${LDFLAGS} -Wl,lp64" 5164 cat >conftest.$ac_ext <<_ACEOF 5165 int main(void) {return (sizeof(void*)*8==64)?0:1;} 5166 _ACEOF 5167 rm -f conftest.$ac_objext 5168 if { (ac_try="$ac_compile" 5169 case "(($ac_try" in 5170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5171 *) ac_try_echo=$ac_try;; 5172 esac 5173 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5174 $as_echo "$ac_try_echo") >&5 5175 (eval "$ac_compile") 2>conftest.er1 5176 ac_status=$? 5177 grep -v '^ *+' conftest.er1 >conftest.err 5178 rm -f conftest.er1 5179 cat conftest.err >&5 5180 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5181 (exit $ac_status); } && { 5182 test -z "$ac_c_werror_flag" || 5183 test ! -s conftest.err 5184 } && test -s conftest.$ac_objext; then 5185 CAN_BUILD_64=yes 5186 else 5187 $as_echo "$as_me: failed program was:" >&5 5188 sed 's/^/| /' conftest.$ac_ext >&5 5189 5190 CAN_BUILD_64=no 5191 fi 5192 5193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5194 ;; 5195 *) 5196 # unknown platform. 5197 ;; 5198 esac 5199 fi 5200 { $as_echo "$as_me:$LINENO: result: $CAN_BUILD_64" >&5 5201 $as_echo "$CAN_BUILD_64" >&6; } 5202 if test "$CAN_BUILD_64" = yes; then 5203 { $as_echo "$as_me:$LINENO: checking whether runnable 64-bit binaries are being built " >&5 5204 $as_echo_n "checking whether runnable 64-bit binaries are being built ... " >&6; } 5205 if test "$cross_compiling" = yes; then 5206 BITS_RUN_64=unknown 5207 else 5208 cat >conftest.$ac_ext <<_ACEOF 5209 /* confdefs.h. */ 5210 _ACEOF 5211 cat confdefs.h >>conftest.$ac_ext 5212 cat >>conftest.$ac_ext <<_ACEOF 5213 /* end confdefs.h. */ 5214 int main(void) {return (sizeof(void*)*8==64)?0:1;} 5215 _ACEOF 5216 rm -f conftest$ac_exeext 5217 if { (ac_try="$ac_link" 5218 case "(($ac_try" in 5219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5220 *) ac_try_echo=$ac_try;; 5221 esac 5222 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5223 $as_echo "$ac_try_echo") >&5 5224 (eval "$ac_link") 2>&5 5225 ac_status=$? 5226 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5227 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 5228 { (case "(($ac_try" in 5229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5230 *) ac_try_echo=$ac_try;; 5231 esac 5232 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5233 $as_echo "$ac_try_echo") >&5 5234 (eval "$ac_try") 2>&5 5235 ac_status=$? 5236 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5237 (exit $ac_status); }; }; then 5238 BITS_RUN_64=yes 5239 else 5240 $as_echo "$as_me: program exited with status $ac_status" >&5 5241 $as_echo "$as_me: failed program was:" >&5 5242 sed 's/^/| /' conftest.$ac_ext >&5 5243 5244 ( exit $ac_status ) 5245 BITS_RUN_64=no 5246 fi 5247 rm -rf conftest.dSYM 5248 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 5249 fi 5250 5251 5252 { $as_echo "$as_me:$LINENO: result: $BITS_RUN_64" >&5 5253 $as_echo "$BITS_RUN_64" >&6; }; 5254 5255 CFLAGS_64="${CFLAGS}" 5256 CXXFLAGS_64="${CXXFLAGS}" 5257 LDFLAGS_64="${LDFLAGS}" 5258 ARFLAGS_64="${ARFLAGS}" 5259 fi 5260 # put it back. 5261 CFLAGS="${CFLAGS_OLD}" 5262 CXXFLAGS="${CXXFLAGS_OLD}" 5263 LDFLAGS="${LDFLAGS_OLD}" 5264 ARFLAGS="${ARFLAGS_OLD}" 5265 fi 5266 if test "$BITS_CHECK_32" = "yes"; then 5267 # see comment under 'if BITS_CHECK_64', above. 5268 { $as_echo "$as_me:$LINENO: checking how to build 32-bit executables" >&5 5269 $as_echo_n "checking how to build 32-bit executables... " >&6; } 5270 if test "$GCC" = yes; then 5271 CFLAGS="${CFLAGS} -m32" 5272 CXXFLAGS="${CXXFLAGS} -m32" 5273 cat >conftest.$ac_ext <<_ACEOF 5274 int main(void) {return (sizeof(void*)*8==32)?0:1;} 5275 _ACEOF 5276 rm -f conftest.$ac_objext 5277 if { (ac_try="$ac_compile" 5278 case "(($ac_try" in 5279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5280 *) ac_try_echo=$ac_try;; 5281 esac 5282 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5283 $as_echo "$ac_try_echo") >&5 5284 (eval "$ac_compile") 2>conftest.er1 5285 ac_status=$? 5286 grep -v '^ *+' conftest.er1 >conftest.err 5287 rm -f conftest.er1 5288 cat conftest.err >&5 5289 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5290 (exit $ac_status); } && { 5291 test -z "$ac_c_werror_flag" || 5292 test ! -s conftest.err 5293 } && test -s conftest.$ac_objext; then 5294 CAN_BUILD_32=yes 5295 else 5296 $as_echo "$as_me: failed program was:" >&5 5297 sed 's/^/| /' conftest.$ac_ext >&5 5298 5299 CAN_BUILD_32=no 5300 fi 5301 5302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5303 fi 5304 { $as_echo "$as_me:$LINENO: result: $CAN_BUILD_32" >&5 5305 $as_echo "$CAN_BUILD_32" >&6; } 5306 if test "$CAN_BUILD_32" = yes; then 5307 { $as_echo "$as_me:$LINENO: checking whether runnable 32-bit binaries are being built " >&5 5308 $as_echo_n "checking whether runnable 32-bit binaries are being built ... " >&6; } 5309 if test "$cross_compiling" = yes; then 5310 BITS_RUN_32=unknown 5311 else 5312 cat >conftest.$ac_ext <<_ACEOF 5313 /* confdefs.h. */ 5314 _ACEOF 5315 cat confdefs.h >>conftest.$ac_ext 5316 cat >>conftest.$ac_ext <<_ACEOF 5317 /* end confdefs.h. */ 5318 int main(void) {return (sizeof(void*)*8==32)?0:1;} 5319 _ACEOF 5320 rm -f conftest$ac_exeext 5321 if { (ac_try="$ac_link" 5322 case "(($ac_try" in 5323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5324 *) ac_try_echo=$ac_try;; 5325 esac 5326 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5327 $as_echo "$ac_try_echo") >&5 5328 (eval "$ac_link") 2>&5 5329 ac_status=$? 5330 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5331 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 5332 { (case "(($ac_try" in 5333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5334 *) ac_try_echo=$ac_try;; 5335 esac 5336 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5337 $as_echo "$ac_try_echo") >&5 5338 (eval "$ac_try") 2>&5 5339 ac_status=$? 5340 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5341 (exit $ac_status); }; }; then 5342 BITS_RUN_32=yes 5343 else 5344 $as_echo "$as_me: program exited with status $ac_status" >&5 5345 $as_echo "$as_me: failed program was:" >&5 5346 sed 's/^/| /' conftest.$ac_ext >&5 5347 5348 ( exit $ac_status ) 5349 BITS_RUN_32=no 5350 fi 5351 rm -rf conftest.dSYM 5352 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 5353 fi 5354 5355 5356 { $as_echo "$as_me:$LINENO: result: $BITS_RUN_32" >&5 5357 $as_echo "$BITS_RUN_32" >&6; }; 5358 CFLAGS_32="${CFLAGS}" 5359 CXXFLAGS_32="${CXXFLAGS}" 5360 LDFLAGS_32="${LDFLAGS}" 5361 ARFLAGS_32="${ARFLAGS}" 5362 fi 5363 # put it back. 5364 CFLAGS="${CFLAGS_OLD}" 5365 CXXFLAGS="${CXXFLAGS_OLD}" 5366 LDFLAGS="${LDFLAGS_OLD}" 5367 ARFLAGS="${ARFLAGS_OLD}" 5368 fi 5369 5370 ## 5371 # OK. Now, we've tested for 32 and 64 bitness. Let's see what we'll do. 5372 # 5373 5374 # First, implement 64else32 5375 if test "$BITS_REQ" = "64else32"; then 5376 if test "$BITS_RUN_64" = "yes"; then 5377 BITS_REQ=64 5378 else 5379 # no changes. 5380 BITS_OK=yes 5381 fi 5382 fi 5383 5384 # implement. 5385 if test "$BITS_REQ" = "32" -a "$BITS_RUN_32" = "yes"; then 5386 CFLAGS="${CFLAGS_32}" 5387 CXXFLAGS="${CXXFLAGS_32}" 5388 LDFLAGS="${LDFLAGS_32}" 5389 ARFLAGS="${ARFLAGS_32}" 5390 BITS_OK=yes 5391 elif test "$BITS_REQ" = "64" -a "$BITS_RUN_64" = "yes"; then 5392 CFLAGS="${CFLAGS_64}" 5393 CXXFLAGS="${CXXFLAGS_64}" 5394 LDFLAGS="${LDFLAGS_64}" 5395 ARFLAGS="${ARFLAGS_64}" 5396 BITS_OK=yes 5397 elif test "$BITS_OK" != "yes"; then 5398 { { $as_echo "$as_me:$LINENO: error: Requested $BITS_REQ bit binaries but could not compile and execute them. See readme.html for help with cross compilation., and set compiler options manually." >&5 5399 $as_echo "$as_me: error: Requested $BITS_REQ bit binaries but could not compile and execute them. See readme.html for help with cross compilation., and set compiler options manually." >&2;} 5400 { (exit 1); exit 1; }; } 5401 fi 5402 fi 5403 5404 5405 5406 5407 # Determine the Makefile fragment 5408 5409 { $as_echo "$as_me:$LINENO: checking which Makefile fragment to use for ${host}" >&5 5410 $as_echo_n "checking which Makefile fragment to use for ${host}... " >&6; } 5411 if test "${icu_cv_host_frag+set}" = set; then 5412 $as_echo_n "(cached) " >&6 5413 else 5414 5415 case "${host}" in 5416 *-*-solaris*) 5417 if test "$GCC" = yes; then 5418 icu_cv_host_frag=mh-solaris-gcc 5419 else 5420 icu_cv_host_frag=mh-solaris 5421 fi ;; 5422 alpha*-*-linux-gnu) 5423 if test "$GCC" = yes; then 5424 icu_cv_host_frag=mh-alpha-linux-gcc 5425 else 5426 icu_cv_host_frag=mh-alpha-linux-cc 5427 fi ;; 5428 powerpc*-*-linux*) 5429 if test "$GCC" = yes; then 5430 icu_cv_host_frag=mh-linux 5431 else 5432 icu_cv_host_frag=mh-linux-va 5433 fi ;; 5434 *-*-linux*|*-pc-gnu) icu_cv_host_frag=mh-linux ;; 5435 *-*-cygwin|*-*-mingw32) 5436 if test "$GCC" = yes; then 5437 cat >conftest.$ac_ext <<_ACEOF 5438 /* confdefs.h. */ 5439 _ACEOF 5440 cat confdefs.h >>conftest.$ac_ext 5441 cat >>conftest.$ac_ext <<_ACEOF 5442 /* end confdefs.h. */ 5443 5444 #ifndef __MINGW32__ 5445 #error This is not MinGW 5446 #endif 5447 int 5448 main () 5449 { 5450 5451 ; 5452 return 0; 5453 } 5454 _ACEOF 5455 rm -f conftest.$ac_objext 5456 if { (ac_try="$ac_compile" 5457 case "(($ac_try" in 5458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5459 *) ac_try_echo=$ac_try;; 5460 esac 5461 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5462 $as_echo "$ac_try_echo") >&5 5463 (eval "$ac_compile") 2>conftest.er1 5464 ac_status=$? 5465 grep -v '^ *+' conftest.er1 >conftest.err 5466 rm -f conftest.er1 5467 cat conftest.err >&5 5468 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5469 (exit $ac_status); } && { 5470 test -z "$ac_c_werror_flag" || 5471 test ! -s conftest.err 5472 } && test -s conftest.$ac_objext; then 5473 icu_cv_host_frag=mh-mingw 5474 else 5475 $as_echo "$as_me: failed program was:" >&5 5476 sed 's/^/| /' conftest.$ac_ext >&5 5477 5478 icu_cv_host_frag=mh-cygwin 5479 fi 5480 5481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5482 else 5483 icu_cv_host_frag=mh-cygwin-msvc 5484 fi ;; 5485 *-*-*bsd*|*-*-dragonfly*) icu_cv_host_frag=mh-bsd-gcc ;; 5486 *-*-aix*) 5487 if test "$GCC" = yes; then 5488 icu_cv_host_frag=mh-aix-gcc 5489 else 5490 icu_cv_host_frag=mh-aix-va 5491 fi ;; 5492 *-*-hpux*) 5493 if test "$GCC" = yes; then 5494 icu_cv_host_frag=mh-hpux-gcc 5495 else 5496 case "$CXX" in 5497 *aCC) icu_cv_host_frag=mh-hpux-acc ;; 5498 esac 5499 fi ;; 5500 *-*ibm-openedition*|*-*-os390*) icu_cv_host_frag=mh-os390 ;; 5501 *-*-os400*) icu_cv_host_frag=mh-os400 ;; 5502 *-apple-rhapsody*) icu_cv_host_frag=mh-darwin ;; 5503 *-apple-darwin*) icu_cv_host_frag=mh-darwin ;; 5504 *-*-beos|*-*-haiku) icu_cv_host_frag=mh-beos ;; 5505 *-*-irix*) icu_cv_host_frag=mh-irix ;; 5506 *-dec-osf*) icu_cv_host_frag=mh-alpha-osf ;; 5507 *-*-nto*) icu_cv_host_frag=mh-qnx ;; 5508 *-ncr-*) icu_cv_host_frag=mh-mpras ;; 5509 *) icu_cv_host_frag=mh-unknown ;; 5510 esac 5511 5512 5513 fi 5514 { $as_echo "$as_me:$LINENO: result: $icu_cv_host_frag" >&5 5515 $as_echo "$icu_cv_host_frag" >&6; } 5516 5517 5518 # Checks for libraries and other host specific stuff 5519 # On HP/UX, don't link to -lm from a shared lib because it isn't 5520 # PIC (at least on 10.2) 5521 case "${host}" in 5522 *-*-hpux*) { $as_echo "$as_me:$LINENO: checking for floor in -lm" >&5 5523 $as_echo_n "checking for floor in -lm... " >&6; } 5524 if test "${ac_cv_lib_m_floor+set}" = set; then 5525 $as_echo_n "(cached) " >&6 5526 else 5527 ac_check_lib_save_LIBS=$LIBS 5528 LIBS="-lm $LIBS" 5529 cat >conftest.$ac_ext <<_ACEOF 5530 /* confdefs.h. */ 5531 _ACEOF 5532 cat confdefs.h >>conftest.$ac_ext 5533 cat >>conftest.$ac_ext <<_ACEOF 5534 /* end confdefs.h. */ 5535 5536 /* Override any GCC internal prototype to avoid an error. 5537 Use char because int might match the return type of a GCC 5538 builtin and then its argument prototype would still apply. */ 5539 #ifdef __cplusplus 5540 extern "C" 5541 #endif 5542 char floor (); 5543 int 5544 main () 5545 { 5546 return floor (); 5547 ; 5548 return 0; 5549 } 5550 _ACEOF 5551 rm -f conftest.$ac_objext conftest$ac_exeext 5552 if { (ac_try="$ac_link" 5553 case "(($ac_try" in 5554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5555 *) ac_try_echo=$ac_try;; 5556 esac 5557 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5558 $as_echo "$ac_try_echo") >&5 5559 (eval "$ac_link") 2>conftest.er1 5560 ac_status=$? 5561 grep -v '^ *+' conftest.er1 >conftest.err 5562 rm -f conftest.er1 5563 cat conftest.err >&5 5564 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5565 (exit $ac_status); } && { 5566 test -z "$ac_c_werror_flag" || 5567 test ! -s conftest.err 5568 } && test -s conftest$ac_exeext && { 5569 test "$cross_compiling" = yes || 5570 $as_test_x conftest$ac_exeext 5571 }; then 5572 ac_cv_lib_m_floor=yes 5573 else 5574 $as_echo "$as_me: failed program was:" >&5 5575 sed 's/^/| /' conftest.$ac_ext >&5 5576 5577 ac_cv_lib_m_floor=no 5578 fi 5579 5580 rm -rf conftest.dSYM 5581 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5582 conftest$ac_exeext conftest.$ac_ext 5583 LIBS=$ac_check_lib_save_LIBS 5584 fi 5585 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_floor" >&5 5586 $as_echo "$ac_cv_lib_m_floor" >&6; } 5587 if test "x$ac_cv_lib_m_floor" = x""yes; then 5588 LIB_M="-lm" 5589 fi 5590 ;; 5591 5592 *) 5593 { $as_echo "$as_me:$LINENO: checking for floor in -lm" >&5 5594 $as_echo_n "checking for floor in -lm... " >&6; } 5595 if test "${ac_cv_lib_m_floor+set}" = set; then 5596 $as_echo_n "(cached) " >&6 5597 else 5598 ac_check_lib_save_LIBS=$LIBS 5599 LIBS="-lm $LIBS" 5600 cat >conftest.$ac_ext <<_ACEOF 5601 /* confdefs.h. */ 5602 _ACEOF 5603 cat confdefs.h >>conftest.$ac_ext 5604 cat >>conftest.$ac_ext <<_ACEOF 5605 /* end confdefs.h. */ 5606 5607 /* Override any GCC internal prototype to avoid an error. 5608 Use char because int might match the return type of a GCC 5609 builtin and then its argument prototype would still apply. */ 5610 #ifdef __cplusplus 5611 extern "C" 5612 #endif 5613 char floor (); 5614 int 5615 main () 5616 { 5617 return floor (); 5618 ; 5619 return 0; 5620 } 5621 _ACEOF 5622 rm -f conftest.$ac_objext conftest$ac_exeext 5623 if { (ac_try="$ac_link" 5624 case "(($ac_try" in 5625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5626 *) ac_try_echo=$ac_try;; 5627 esac 5628 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5629 $as_echo "$ac_try_echo") >&5 5630 (eval "$ac_link") 2>conftest.er1 5631 ac_status=$? 5632 grep -v '^ *+' conftest.er1 >conftest.err 5633 rm -f conftest.er1 5634 cat conftest.err >&5 5635 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5636 (exit $ac_status); } && { 5637 test -z "$ac_c_werror_flag" || 5638 test ! -s conftest.err 5639 } && test -s conftest$ac_exeext && { 5640 test "$cross_compiling" = yes || 5641 $as_test_x conftest$ac_exeext 5642 }; then 5643 ac_cv_lib_m_floor=yes 5644 else 5645 $as_echo "$as_me: failed program was:" >&5 5646 sed 's/^/| /' conftest.$ac_ext >&5 5647 5648 ac_cv_lib_m_floor=no 5649 fi 5650 5651 rm -rf conftest.dSYM 5652 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5653 conftest$ac_exeext conftest.$ac_ext 5654 LIBS=$ac_check_lib_save_LIBS 5655 fi 5656 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_floor" >&5 5657 $as_echo "$ac_cv_lib_m_floor" >&6; } 5658 if test "x$ac_cv_lib_m_floor" = x""yes; then 5659 cat >>confdefs.h <<_ACEOF 5660 #define HAVE_LIBM 1 5661 _ACEOF 5662 5663 LIBS="-lm $LIBS" 5664 5665 fi 5666 5667 LIB_M="" ;; 5668 esac 5669 5670 5671 # Check whether to build shared libraries 5672 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 5673 $as_echo_n "checking whether to build shared libraries... " >&6; } 5674 enabled=no 5675 # Check whether --enable-shared was given. 5676 if test "${enable_shared+set}" = set; then 5677 enableval=$enable_shared; case "${enableval}" in 5678 yes|"") enabled=yes; ENABLE_SHARED=YES ;; 5679 no);; 5680 *) ;; 5681 esac 5682 else 5683 enabled=yes; ENABLE_SHARED=YES 5684 5685 fi 5686 5687 { $as_echo "$as_me:$LINENO: result: $enabled" >&5 5688 $as_echo "$enabled" >&6; } 5689 5690 5691 # Check whether to build static libraries 5692 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5 5693 $as_echo_n "checking whether to build static libraries... " >&6; } 5694 enabled=no 5695 # Check whether --enable-static was given. 5696 if test "${enable_static+set}" = set; then 5697 enableval=$enable_static; case "${enableval}" in 5698 yes|"") enabled=yes; ENABLE_STATIC=YES ;; 5699 no) ;; 5700 *) ;; 5701 esac 5702 fi 5703 5704 { $as_echo "$as_me:$LINENO: result: $enabled" >&5 5705 $as_echo "$enabled" >&6; } 5706 5707 5708 # Check whether to build debug libraries 5709 { $as_echo "$as_me:$LINENO: checking whether to build debug libraries" >&5 5710 $as_echo_n "checking whether to build debug libraries... " >&6; } 5711 enabled=no 5712 ENABLE_DEBUG=0 5713 # Check whether --enable-debug was given. 5714 if test "${enable_debug+set}" = set; then 5715 enableval=$enable_debug; case "${enableval}" in 5716 yes|"") enabled=yes; ENABLE_DEBUG=1 ;; 5717 *) ;; 5718 esac 5719 fi 5720 5721 { $as_echo "$as_me:$LINENO: result: $enabled" >&5 5722 $as_echo "$enabled" >&6; } 5723 5724 5725 # Check whether to build release libraries 5726 { $as_echo "$as_me:$LINENO: checking whether to build release libraries" >&5 5727 $as_echo_n "checking whether to build release libraries... " >&6; } 5728 enabled=yes 5729 ENABLE_RELEASE=1 5730 # Check whether --enable-release was given. 5731 if test "${enable_release+set}" = set; then 5732 enableval=$enable_release; case "${enableval}" in 5733 no) enabled=no; ENABLE_RELEASE=0 ;; 5734 *) ;; 5735 esac 5736 fi 5737 5738 { $as_echo "$as_me:$LINENO: result: $enabled" >&5 5739 $as_echo "$enabled" >&6; } 5740 5741 5742 # Check whether to enable auto cleanup of libraries 5743 { $as_echo "$as_me:$LINENO: checking whether to enable auto cleanup of libraries" >&5 5744 $as_echo_n "checking whether to enable auto cleanup of libraries... " >&6; } 5745 enabled=no 5746 UCLN_NO_AUTO_CLEANUP=1 5747 # Check whether --enable-auto-cleanup was given. 5748 if test "${enable_auto_cleanup+set}" = set; then 5749 enableval=$enable_auto_cleanup; case "${enableval}" in 5750 yes) enabled=yes; UCLN_NO_AUTO_CLEANUP=0 ;; 5751 *) ;; 5752 esac 5753 fi 5754 5755 { $as_echo "$as_me:$LINENO: result: $enabled" >&5 5756 $as_echo "$enabled" >&6; } 5757 5758 5759 # MSVC floating-point option 5760 MSVC_RELEASE_FLAG="" 5761 if test $enabled = yes 5762 then 5763 if test $icu_cv_host_frag = mh-cygwin-msvc 5764 then 5765 cat >conftest.$ac_ext <<_ACEOF 5766 /* confdefs.h. */ 5767 _ACEOF 5768 cat confdefs.h >>conftest.$ac_ext 5769 cat >>conftest.$ac_ext <<_ACEOF 5770 /* end confdefs.h. */ 5771 5772 #if defined _MSC_VER && _MSC_VER >= 1400 5773 #else 5774 Microsoft Visual C++ < 2005 5775 #endif 5776 5777 int 5778 main () 5779 { 5780 5781 ; 5782 return 0; 5783 } 5784 _ACEOF 5785 rm -f conftest.$ac_objext 5786 if { (ac_try="$ac_compile" 5787 case "(($ac_try" in 5788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5789 *) ac_try_echo=$ac_try;; 5790 esac 5791 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5792 $as_echo "$ac_try_echo") >&5 5793 (eval "$ac_compile") 2>conftest.er1 5794 ac_status=$? 5795 grep -v '^ *+' conftest.er1 >conftest.err 5796 rm -f conftest.er1 5797 cat conftest.err >&5 5798 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5799 (exit $ac_status); } && { 5800 test -z "$ac_c_werror_flag" || 5801 test ! -s conftest.err 5802 } && test -s conftest.$ac_objext; then 5803 MSVC_RELEASE_FLAG="/fp:precise" 5804 else 5805 $as_echo "$as_me: failed program was:" >&5 5806 sed 's/^/| /' conftest.$ac_ext >&5 5807 5808 MSVC_RELEASE_FLAG="/Op" 5809 fi 5810 5811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5812 5813 CFLAGS="${CFLAGS} ${MSVC_RELEASE_FLAG}" 5814 CXXFLAGS="${CXXFLAGS} ${MSVC_RELEASE_FLAG}" 5815 fi 5816 fi 5817 5818 # Check whether to enabled draft APIs 5819 { $as_echo "$as_me:$LINENO: checking whether to enable draft APIs" >&5 5820 $as_echo_n "checking whether to enable draft APIs... " >&6; } 5821 enabled=yes 5822 U_DEFAULT_SHOW_DRAFT=1 5823 # Check whether --enable-draft was given. 5824 if test "${enable_draft+set}" = set; then 5825 enableval=$enable_draft; case "${enableval}" in 5826 no) enabled=no; U_DEFAULT_SHOW_DRAFT=0 ;; 5827 *) ;; 5828 esac 5829 fi 5830 5831 { $as_echo "$as_me:$LINENO: result: $enabled" >&5 5832 $as_echo "$enabled" >&6; } 5833 # Make sure that we can use draft API in ICU. 5834 if test "$U_DEFAULT_SHOW_DRAFT" = 0; then 5835 CPPFLAGS="$CPPFLAGS -DU_SHOW_DRAFT_API" 5836 fi 5837 5838 5839 # Check if we can hide variables from 5840 { $as_echo "$as_me:$LINENO: checking for library API export" >&5 5841 $as_echo_n "checking for library API export... " >&6; } 5842 SHAREDLIBEXPORT=no 5843 U_USE_GCC_VISIBILITY_ATTRIBUTE=0 5844 OLD_CFLAGS="${CFLAGS}" 5845 OLD_CXXFLAGS="${CXXFLAGS}" 5846 if test "$ac_cv_c_compiler_gnu" = yes; then 5847 LIBCFLAGS="-fvisibility=hidden" 5848 LIBCXXFLAGS="-fvisibility=hidden" 5849 CFLAGS="${CFLAGS} ${LIBCFLAGS}" 5850 CXXFLAGS="${CXXFLAGS} ${LIBCXXFLAGS}" 5851 cat >conftest.$ac_ext <<_ACEOF 5852 /* confdefs.h. */ 5853 _ACEOF 5854 cat confdefs.h >>conftest.$ac_ext 5855 cat >>conftest.$ac_ext <<_ACEOF 5856 /* end confdefs.h. */ 5857 __attribute__ ((visibility ("default"))) void f(void); 5858 #include <stdlib.h> 5859 int 5860 main () 5861 { 5862 exit(0); 5863 ; 5864 return 0; 5865 } 5866 _ACEOF 5867 rm -f conftest.$ac_objext conftest$ac_exeext 5868 if { (ac_try="$ac_link" 5869 case "(($ac_try" in 5870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5871 *) ac_try_echo=$ac_try;; 5872 esac 5873 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5874 $as_echo "$ac_try_echo") >&5 5875 (eval "$ac_link") 2>conftest.er1 5876 ac_status=$? 5877 grep -v '^ *+' conftest.er1 >conftest.err 5878 rm -f conftest.er1 5879 cat conftest.err >&5 5880 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5881 (exit $ac_status); } && { 5882 test -z "$ac_c_werror_flag" || 5883 test ! -s conftest.err 5884 } && test -s conftest$ac_exeext && { 5885 test "$cross_compiling" = yes || 5886 $as_test_x conftest$ac_exeext 5887 }; then 5888 SHAREDLIBEXPORT=yes 5889 else 5890 $as_echo "$as_me: failed program was:" >&5 5891 sed 's/^/| /' conftest.$ac_ext >&5 5892 5893 SHAREDLIBEXPORT=no 5894 fi 5895 5896 rm -rf conftest.dSYM 5897 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5898 conftest$ac_exeext conftest.$ac_ext 5899 if test "$SHAREDLIBEXPORT" = no; then 5900 LIBCFLAGS= 5901 LIBCXXFLAGS= 5902 else 5903 U_USE_GCC_VISIBILITY_ATTRIBUTE=1 5904 fi 5905 else 5906 case "${host}" in 5907 *-*-solaris*) 5908 LIBCFLAGS="-xldscope=hidden" 5909 LIBCXXFLAGS="-xldscope=hidden" 5910 CFLAGS="${CFLAGS} ${LIBCFLAGS}" 5911 CXXFLAGS="${CXXFLAGS} ${LIBCXXFLAGS}" 5912 cat >conftest.$ac_ext <<_ACEOF 5913 /* confdefs.h. */ 5914 _ACEOF 5915 cat confdefs.h >>conftest.$ac_ext 5916 cat >>conftest.$ac_ext <<_ACEOF 5917 /* end confdefs.h. */ 5918 __global void f(void); 5919 #include <stdlib.h> 5920 int 5921 main () 5922 { 5923 exit(0); 5924 ; 5925 return 0; 5926 } 5927 _ACEOF 5928 rm -f conftest.$ac_objext conftest$ac_exeext 5929 if { (ac_try="$ac_link" 5930 case "(($ac_try" in 5931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5932 *) ac_try_echo=$ac_try;; 5933 esac 5934 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5935 $as_echo "$ac_try_echo") >&5 5936 (eval "$ac_link") 2>conftest.er1 5937 ac_status=$? 5938 grep -v '^ *+' conftest.er1 >conftest.err 5939 rm -f conftest.er1 5940 cat conftest.err >&5 5941 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5942 (exit $ac_status); } && { 5943 test -z "$ac_c_werror_flag" || 5944 test ! -s conftest.err 5945 } && test -s conftest$ac_exeext && { 5946 test "$cross_compiling" = yes || 5947 $as_test_x conftest$ac_exeext 5948 }; then 5949 SHAREDLIBEXPORT=yes 5950 else 5951 $as_echo "$as_me: failed program was:" >&5 5952 sed 's/^/| /' conftest.$ac_ext >&5 5953 5954 SHAREDLIBEXPORT=no 5955 fi 5956 5957 rm -rf conftest.dSYM 5958 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5959 conftest$ac_exeext conftest.$ac_ext 5960 if test "$SHAREDLIBEXPORT" = no; then 5961 LIBCFLAGS= 5962 LIBCXXFLAGS= 5963 fi 5964 ;; 5965 *-*-hpux*) 5966 # ICU isn't set up to follow the HP syntax yet. 5967 ;; 5968 *) 5969 esac 5970 fi 5971 # Restore to their original state because the Intel compiler chokes 5972 # on this option when checking for the wchar_t size, but the 5973 # option otherwise works. 5974 CFLAGS="${OLD_CFLAGS}" 5975 CXXFLAGS="${OLD_CXXFLAGS}" 5976 { $as_echo "$as_me:$LINENO: result: $SHAREDLIBEXPORT" >&5 5977 $as_echo "$SHAREDLIBEXPORT" >&6; } 5978 5979 5980 5981 5982 if test -n "$ac_tool_prefix"; then 5983 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 5984 set dummy ${ac_tool_prefix}ranlib; ac_word=$2 5985 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5986 $as_echo_n "checking for $ac_word... " >&6; } 5987 if test "${ac_cv_prog_RANLIB+set}" = set; then 5988 $as_echo_n "(cached) " >&6 5989 else 5990 if test -n "$RANLIB"; then 5991 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 5992 else 5993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5994 for as_dir in $PATH 5995 do 5996 IFS=$as_save_IFS 5997 test -z "$as_dir" && as_dir=. 5998 for ac_exec_ext in '' $ac_executable_extensions; do 5999 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6000 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6001 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6002 break 2 6003 fi 6004 done 6005 done 6006 IFS=$as_save_IFS 6007 6008 fi 6009 fi 6010 RANLIB=$ac_cv_prog_RANLIB 6011 if test -n "$RANLIB"; then 6012 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5 6013 $as_echo "$RANLIB" >&6; } 6014 else 6015 { $as_echo "$as_me:$LINENO: result: no" >&5 6016 $as_echo "no" >&6; } 6017 fi 6018 6019 6020 fi 6021 if test -z "$ac_cv_prog_RANLIB"; then 6022 ac_ct_RANLIB=$RANLIB 6023 # Extract the first word of "ranlib", so it can be a program name with args. 6024 set dummy ranlib; ac_word=$2 6025 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6026 $as_echo_n "checking for $ac_word... " >&6; } 6027 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 6028 $as_echo_n "(cached) " >&6 6029 else 6030 if test -n "$ac_ct_RANLIB"; then 6031 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6032 else 6033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6034 for as_dir in $PATH 6035 do 6036 IFS=$as_save_IFS 6037 test -z "$as_dir" && as_dir=. 6038 for ac_exec_ext in '' $ac_executable_extensions; do 6039 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6040 ac_cv_prog_ac_ct_RANLIB="ranlib" 6041 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6042 break 2 6043 fi 6044 done 6045 done 6046 IFS=$as_save_IFS 6047 6048 fi 6049 fi 6050 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6051 if test -n "$ac_ct_RANLIB"; then 6052 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 6053 $as_echo "$ac_ct_RANLIB" >&6; } 6054 else 6055 { $as_echo "$as_me:$LINENO: result: no" >&5 6056 $as_echo "no" >&6; } 6057 fi 6058 6059 if test "x$ac_ct_RANLIB" = x; then 6060 RANLIB=":" 6061 else 6062 case $cross_compiling:$ac_tool_warned in 6063 yes:) 6064 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 6065 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6066 ac_tool_warned=yes ;; 6067 esac 6068 RANLIB=$ac_ct_RANLIB 6069 fi 6070 else 6071 RANLIB="$ac_cv_prog_RANLIB" 6072 fi 6073 6074 6075 # look for 'ar' the proper way 6076 #AC_PATH_PROG(AR,ar,[echo archiver ar not found re-run configure ; false],$PATH:/bin:/usr/bin:/usr/ccs/bin) 6077 if test -n "$ac_tool_prefix"; then 6078 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 6079 set dummy ${ac_tool_prefix}ar; ac_word=$2 6080 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6081 $as_echo_n "checking for $ac_word... " >&6; } 6082 if test "${ac_cv_prog_AR+set}" = set; then 6083 $as_echo_n "(cached) " >&6 6084 else 6085 if test -n "$AR"; then 6086 ac_cv_prog_AR="$AR" # Let the user override the test. 6087 else 6088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6089 for as_dir in $PATH 6090 do 6091 IFS=$as_save_IFS 6092 test -z "$as_dir" && as_dir=. 6093 for ac_exec_ext in '' $ac_executable_extensions; do 6094 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6095 ac_cv_prog_AR="${ac_tool_prefix}ar" 6096 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6097 break 2 6098 fi 6099 done 6100 done 6101 IFS=$as_save_IFS 6102 6103 fi 6104 fi 6105 AR=$ac_cv_prog_AR 6106 if test -n "$AR"; then 6107 { $as_echo "$as_me:$LINENO: result: $AR" >&5 6108 $as_echo "$AR" >&6; } 6109 else 6110 { $as_echo "$as_me:$LINENO: result: no" >&5 6111 $as_echo "no" >&6; } 6112 fi 6113 6114 6115 fi 6116 if test -z "$ac_cv_prog_AR"; then 6117 ac_ct_AR=$AR 6118 # Extract the first word of "ar", so it can be a program name with args. 6119 set dummy ar; ac_word=$2 6120 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6121 $as_echo_n "checking for $ac_word... " >&6; } 6122 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then 6123 $as_echo_n "(cached) " >&6 6124 else 6125 if test -n "$ac_ct_AR"; then 6126 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6127 else 6128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6129 for as_dir in $PATH 6130 do 6131 IFS=$as_save_IFS 6132 test -z "$as_dir" && as_dir=. 6133 for ac_exec_ext in '' $ac_executable_extensions; do 6134 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6135 ac_cv_prog_ac_ct_AR="ar" 6136 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6137 break 2 6138 fi 6139 done 6140 done 6141 IFS=$as_save_IFS 6142 6143 fi 6144 fi 6145 ac_ct_AR=$ac_cv_prog_ac_ct_AR 6146 if test -n "$ac_ct_AR"; then 6147 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 6148 $as_echo "$ac_ct_AR" >&6; } 6149 else 6150 { $as_echo "$as_me:$LINENO: result: no" >&5 6151 $as_echo "no" >&6; } 6152 fi 6153 6154 if test "x$ac_ct_AR" = x; then 6155 AR="" 6156 else 6157 case $cross_compiling:$ac_tool_warned in 6158 yes:) 6159 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 6160 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6161 ac_tool_warned=yes ;; 6162 esac 6163 AR=$ac_ct_AR 6164 fi 6165 else 6166 AR="$ac_cv_prog_AR" 6167 fi 6168 6169 if test "x$AR" = "x"; then 6170 { { $as_echo "$as_me:$LINENO: error: Archiver ar not found. Set AR= or fix PATH" >&5 6171 $as_echo "$as_me: error: Archiver ar not found. Set AR= or fix PATH" >&2;} 6172 { (exit 1); exit 1; }; } 6173 fi 6174 6175 6176 { $as_echo "$as_me:$LINENO: checking whether to enable renaming of symbols" >&5 6177 $as_echo_n "checking whether to enable renaming of symbols... " >&6; } 6178 enabled=yes 6179 U_DISABLE_RENAMING=0 6180 # Check whether --enable-renaming was given. 6181 if test "${enable_renaming+set}" = set; then 6182 enableval=$enable_renaming; case "${enableval}" in 6183 yes|"") enabled=yes ;; 6184 no) enabled=no; U_DISABLE_RENAMING=1 ;; 6185 *) ;; 6186 esac 6187 fi 6188 6189 { $as_echo "$as_me:$LINENO: result: $enabled" >&5 6190 $as_echo "$enabled" >&6; } 6191 6192 6193 { $as_echo "$as_me:$LINENO: checking whether to enable function and data tracing" >&5 6194 $as_echo_n "checking whether to enable function and data tracing... " >&6; } 6195 enabled=no 6196 U_ENABLE_TRACING=0 6197 # Check whether --enable-tracing was given. 6198 if test "${enable_tracing+set}" = set; then 6199 enableval=$enable_tracing; case "${enableval}" in 6200 yes|"") enabled=yes; U_ENABLE_TRACING=1 ;; 6201 no) enabled=no; U_ENABLE_TRACING=0 ;; 6202 *) ;; 6203 esac 6204 fi 6205 6206 { $as_echo "$as_me:$LINENO: result: $enabled" >&5 6207 $as_echo "$enabled" >&6; } 6208 6209 6210 6211 U_ENABLE_DYLOAD=1 6212 { $as_echo "$as_me:$LINENO: checking whether to enable dynamic loading of plugins" >&5 6213 $as_echo_n "checking whether to enable dynamic loading of plugins... " >&6; } 6214 enabled=check 6215 # Check whether --enable-dyload was given. 6216 if test "${enable_dyload+set}" = set; then 6217 enableval=$enable_dyload; case "${enableval}" in 6218 yes|"") 6219 U_ENABLE_DYLOAD=1 6220 enabled=check ;; 6221 no) 6222 U_ENABLE_DYLOAD=0; 6223 enabled=disabled ;; 6224 *) ;; 6225 esac 6226 fi 6227 6228 6229 6230 # goes into icucfg.h 6231 6232 for ac_header in dlfcn.h 6233 do 6234 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 6235 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 6236 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 6237 $as_echo_n "checking for $ac_header... " >&6; } 6238 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 6239 $as_echo_n "(cached) " >&6 6240 fi 6241 ac_res=`eval 'as_val=${'$as_ac_Header'} 6242 $as_echo "$as_val"'` 6243 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 6244 $as_echo "$ac_res" >&6; } 6245 else 6246 # Is the header compilable? 6247 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 6248 $as_echo_n "checking $ac_header usability... " >&6; } 6249 cat >conftest.$ac_ext <<_ACEOF 6250 /* confdefs.h. */ 6251 _ACEOF 6252 cat confdefs.h >>conftest.$ac_ext 6253 cat >>conftest.$ac_ext <<_ACEOF 6254 /* end confdefs.h. */ 6255 $ac_includes_default 6256 #include <$ac_header> 6257 _ACEOF 6258 rm -f conftest.$ac_objext 6259 if { (ac_try="$ac_compile" 6260 case "(($ac_try" in 6261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6262 *) ac_try_echo=$ac_try;; 6263 esac 6264 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6265 $as_echo "$ac_try_echo") >&5 6266 (eval "$ac_compile") 2>conftest.er1 6267 ac_status=$? 6268 grep -v '^ *+' conftest.er1 >conftest.err 6269 rm -f conftest.er1 6270 cat conftest.err >&5 6271 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6272 (exit $ac_status); } && { 6273 test -z "$ac_c_werror_flag" || 6274 test ! -s conftest.err 6275 } && test -s conftest.$ac_objext; then 6276 ac_header_compiler=yes 6277 else 6278 $as_echo "$as_me: failed program was:" >&5 6279 sed 's/^/| /' conftest.$ac_ext >&5 6280 6281 ac_header_compiler=no 6282 fi 6283 6284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6285 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 6286 $as_echo "$ac_header_compiler" >&6; } 6287 6288 # Is the header present? 6289 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 6290 $as_echo_n "checking $ac_header presence... " >&6; } 6291 cat >conftest.$ac_ext <<_ACEOF 6292 /* confdefs.h. */ 6293 _ACEOF 6294 cat confdefs.h >>conftest.$ac_ext 6295 cat >>conftest.$ac_ext <<_ACEOF 6296 /* end confdefs.h. */ 6297 #include <$ac_header> 6298 _ACEOF 6299 if { (ac_try="$ac_cpp conftest.$ac_ext" 6300 case "(($ac_try" in 6301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6302 *) ac_try_echo=$ac_try;; 6303 esac 6304 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6305 $as_echo "$ac_try_echo") >&5 6306 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6307 ac_status=$? 6308 grep -v '^ *+' conftest.er1 >conftest.err 6309 rm -f conftest.er1 6310 cat conftest.err >&5 6311 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6312 (exit $ac_status); } >/dev/null && { 6313 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6314 test ! -s conftest.err 6315 }; then 6316 ac_header_preproc=yes 6317 else 6318 $as_echo "$as_me: failed program was:" >&5 6319 sed 's/^/| /' conftest.$ac_ext >&5 6320 6321 ac_header_preproc=no 6322 fi 6323 6324 rm -f conftest.err conftest.$ac_ext 6325 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 6326 $as_echo "$ac_header_preproc" >&6; } 6327 6328 # So? What about this header? 6329 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 6330 yes:no: ) 6331 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 6332 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 6333 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 6334 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 6335 ac_header_preproc=yes 6336 ;; 6337 no:yes:* ) 6338 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 6339 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 6340 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 6341 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 6342 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 6343 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 6344 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 6345 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 6346 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 6347 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 6348 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 6349 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 6350 6351 ;; 6352 esac 6353 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 6354 $as_echo_n "checking for $ac_header... " >&6; } 6355 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 6356 $as_echo_n "(cached) " >&6 6357 else 6358 eval "$as_ac_Header=\$ac_header_preproc" 6359 fi 6360 ac_res=`eval 'as_val=${'$as_ac_Header'} 6361 $as_echo "$as_val"'` 6362 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 6363 $as_echo "$ac_res" >&6; } 6364 6365 fi 6366 as_val=`eval 'as_val=${'$as_ac_Header'} 6367 $as_echo "$as_val"'` 6368 if test "x$as_val" = x""yes; then 6369 cat >>confdefs.h <<_ACEOF 6370 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 6371 _ACEOF 6372 6373 fi 6374 6375 done 6376 6377 U_CHECK_DYLOAD=0 6378 #AC_MSG_RESULT($enabled) 6379 if test "$enabled" = "check"; then 6380 { $as_echo "$as_me:$LINENO: checking for library containing dlopen" >&5 6381 $as_echo_n "checking for library containing dlopen... " >&6; } 6382 if test "${ac_cv_search_dlopen+set}" = set; then 6383 $as_echo_n "(cached) " >&6 6384 else 6385 ac_func_search_save_LIBS=$LIBS 6386 cat >conftest.$ac_ext <<_ACEOF 6387 /* confdefs.h. */ 6388 _ACEOF 6389 cat confdefs.h >>conftest.$ac_ext 6390 cat >>conftest.$ac_ext <<_ACEOF 6391 /* end confdefs.h. */ 6392 6393 /* Override any GCC internal prototype to avoid an error. 6394 Use char because int might match the return type of a GCC 6395 builtin and then its argument prototype would still apply. */ 6396 #ifdef __cplusplus 6397 extern "C" 6398 #endif 6399 char dlopen (); 6400 int 6401 main () 6402 { 6403 return dlopen (); 6404 ; 6405 return 0; 6406 } 6407 _ACEOF 6408 for ac_lib in '' dl; do 6409 if test -z "$ac_lib"; then 6410 ac_res="none required" 6411 else 6412 ac_res=-l$ac_lib 6413 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 6414 fi 6415 rm -f conftest.$ac_objext conftest$ac_exeext 6416 if { (ac_try="$ac_link" 6417 case "(($ac_try" in 6418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6419 *) ac_try_echo=$ac_try;; 6420 esac 6421 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6422 $as_echo "$ac_try_echo") >&5 6423 (eval "$ac_link") 2>conftest.er1 6424 ac_status=$? 6425 grep -v '^ *+' conftest.er1 >conftest.err 6426 rm -f conftest.er1 6427 cat conftest.err >&5 6428 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6429 (exit $ac_status); } && { 6430 test -z "$ac_c_werror_flag" || 6431 test ! -s conftest.err 6432 } && test -s conftest$ac_exeext && { 6433 test "$cross_compiling" = yes || 6434 $as_test_x conftest$ac_exeext 6435 }; then 6436 ac_cv_search_dlopen=$ac_res 6437 else 6438 $as_echo "$as_me: failed program was:" >&5 6439 sed 's/^/| /' conftest.$ac_ext >&5 6440 6441 6442 fi 6443 6444 rm -rf conftest.dSYM 6445 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 6446 conftest$ac_exeext 6447 if test "${ac_cv_search_dlopen+set}" = set; then 6448 break 6449 fi 6450 done 6451 if test "${ac_cv_search_dlopen+set}" = set; then 6452 : 6453 else 6454 ac_cv_search_dlopen=no 6455 fi 6456 rm conftest.$ac_ext 6457 LIBS=$ac_func_search_save_LIBS 6458 fi 6459 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5 6460 $as_echo "$ac_cv_search_dlopen" >&6; } 6461 ac_res=$ac_cv_search_dlopen 6462 if test "$ac_res" != no; then 6463 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 6464 6465 fi 6466 6467 6468 for ac_func in dlopen 6469 do 6470 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 6471 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 6472 $as_echo_n "checking for $ac_func... " >&6; } 6473 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 6474 $as_echo_n "(cached) " >&6 6475 else 6476 cat >conftest.$ac_ext <<_ACEOF 6477 /* confdefs.h. */ 6478 _ACEOF 6479 cat confdefs.h >>conftest.$ac_ext 6480 cat >>conftest.$ac_ext <<_ACEOF 6481 /* end confdefs.h. */ 6482 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 6483 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 6484 #define $ac_func innocuous_$ac_func 6485 6486 /* System header to define __stub macros and hopefully few prototypes, 6487 which can conflict with char $ac_func (); below. 6488 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6489 <limits.h> exists even on freestanding compilers. */ 6490 6491 #ifdef __STDC__ 6492 # include <limits.h> 6493 #else 6494 # include <assert.h> 6495 #endif 6496 6497 #undef $ac_func 6498 6499 /* Override any GCC internal prototype to avoid an error. 6500 Use char because int might match the return type of a GCC 6501 builtin and then its argument prototype would still apply. */ 6502 #ifdef __cplusplus 6503 extern "C" 6504 #endif 6505 char $ac_func (); 6506 /* The GNU C library defines this for functions which it implements 6507 to always fail with ENOSYS. Some functions are actually named 6508 something starting with __ and the normal name is an alias. */ 6509 #if defined __stub_$ac_func || defined __stub___$ac_func 6510 choke me 6511 #endif 6512 6513 int 6514 main () 6515 { 6516 return $ac_func (); 6517 ; 6518 return 0; 6519 } 6520 _ACEOF 6521 rm -f conftest.$ac_objext conftest$ac_exeext 6522 if { (ac_try="$ac_link" 6523 case "(($ac_try" in 6524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6525 *) ac_try_echo=$ac_try;; 6526 esac 6527 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6528 $as_echo "$ac_try_echo") >&5 6529 (eval "$ac_link") 2>conftest.er1 6530 ac_status=$? 6531 grep -v '^ *+' conftest.er1 >conftest.err 6532 rm -f conftest.er1 6533 cat conftest.err >&5 6534 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6535 (exit $ac_status); } && { 6536 test -z "$ac_c_werror_flag" || 6537 test ! -s conftest.err 6538 } && test -s conftest$ac_exeext && { 6539 test "$cross_compiling" = yes || 6540 $as_test_x conftest$ac_exeext 6541 }; then 6542 eval "$as_ac_var=yes" 6543 else 6544 $as_echo "$as_me: failed program was:" >&5 6545 sed 's/^/| /' conftest.$ac_ext >&5 6546 6547 eval "$as_ac_var=no" 6548 fi 6549 6550 rm -rf conftest.dSYM 6551 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 6552 conftest$ac_exeext conftest.$ac_ext 6553 fi 6554 ac_res=`eval 'as_val=${'$as_ac_var'} 6555 $as_echo "$as_val"'` 6556 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 6557 $as_echo "$ac_res" >&6; } 6558 as_val=`eval 'as_val=${'$as_ac_var'} 6559 $as_echo "$as_val"'` 6560 if test "x$as_val" = x""yes; then 6561 cat >>confdefs.h <<_ACEOF 6562 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 6563 _ACEOF 6564 6565 fi 6566 done 6567 6568 U_CHECK_DYLOAD=1 6569 fi 6570 6571 6572 # Check for miscellanous functions. 6573 # These only go into common/icucfg.h and are NOT exported with ICU builds. 6574 # So, use for putil / tools only. 6575 # Note that this will generate HAVE_GETTIMEOFDAY, not U_HAVE_GETTIMEOFDAY 6576 # rerun 'autoheader' to regenerate icucfg.h.in 6577 6578 for ac_func in gettimeofday 6579 do 6580 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 6581 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 6582 $as_echo_n "checking for $ac_func... " >&6; } 6583 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 6584 $as_echo_n "(cached) " >&6 6585 else 6586 cat >conftest.$ac_ext <<_ACEOF 6587 /* confdefs.h. */ 6588 _ACEOF 6589 cat confdefs.h >>conftest.$ac_ext 6590 cat >>conftest.$ac_ext <<_ACEOF 6591 /* end confdefs.h. */ 6592 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 6593 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 6594 #define $ac_func innocuous_$ac_func 6595 6596 /* System header to define __stub macros and hopefully few prototypes, 6597 which can conflict with char $ac_func (); below. 6598 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6599 <limits.h> exists even on freestanding compilers. */ 6600 6601 #ifdef __STDC__ 6602 # include <limits.h> 6603 #else 6604 # include <assert.h> 6605 #endif 6606 6607 #undef $ac_func 6608 6609 /* Override any GCC internal prototype to avoid an error. 6610 Use char because int might match the return type of a GCC 6611 builtin and then its argument prototype would still apply. */ 6612 #ifdef __cplusplus 6613 extern "C" 6614 #endif 6615 char $ac_func (); 6616 /* The GNU C library defines this for functions which it implements 6617 to always fail with ENOSYS. Some functions are actually named 6618 something starting with __ and the normal name is an alias. */ 6619 #if defined __stub_$ac_func || defined __stub___$ac_func 6620 choke me 6621 #endif 6622 6623 int 6624 main () 6625 { 6626 return $ac_func (); 6627 ; 6628 return 0; 6629 } 6630 _ACEOF 6631 rm -f conftest.$ac_objext conftest$ac_exeext 6632 if { (ac_try="$ac_link" 6633 case "(($ac_try" in 6634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6635 *) ac_try_echo=$ac_try;; 6636 esac 6637 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6638 $as_echo "$ac_try_echo") >&5 6639 (eval "$ac_link") 2>conftest.er1 6640 ac_status=$? 6641 grep -v '^ *+' conftest.er1 >conftest.err 6642 rm -f conftest.er1 6643 cat conftest.err >&5 6644 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6645 (exit $ac_status); } && { 6646 test -z "$ac_c_werror_flag" || 6647 test ! -s conftest.err 6648 } && test -s conftest$ac_exeext && { 6649 test "$cross_compiling" = yes || 6650 $as_test_x conftest$ac_exeext 6651 }; then 6652 eval "$as_ac_var=yes" 6653 else 6654 $as_echo "$as_me: failed program was:" >&5 6655 sed 's/^/| /' conftest.$ac_ext >&5 6656 6657 eval "$as_ac_var=no" 6658 fi 6659 6660 rm -rf conftest.dSYM 6661 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 6662 conftest$ac_exeext conftest.$ac_ext 6663 fi 6664 ac_res=`eval 'as_val=${'$as_ac_var'} 6665 $as_echo "$as_val"'` 6666 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 6667 $as_echo "$ac_res" >&6; } 6668 as_val=`eval 'as_val=${'$as_ac_var'} 6669 $as_echo "$as_val"'` 6670 if test "x$as_val" = x""yes; then 6671 cat >>confdefs.h <<_ACEOF 6672 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 6673 _ACEOF 6674 6675 fi 6676 done 6677 6678 6679 # Check whether to use the evil rpath or not 6680 # Check whether --enable-rpath was given. 6681 if test "${enable_rpath+set}" = set; then 6682 enableval=$enable_rpath; case "${enableval}" in 6683 yes|"") ENABLE_RPATH=YES ;; 6684 no) ;; 6685 *) ;; 6686 esac 6687 else 6688 ENABLE_RPATH=NO 6689 6690 fi 6691 6692 6693 6694 6695 # set up U_INLINE. 6696 # Copy the definition of AC_C_INLINE, with slight mods. 6697 # 6698 { $as_echo "$as_me:$LINENO: checking for definition of U_INLINE for C" >&5 6699 $as_echo_n "checking for definition of U_INLINE for C... " >&6; } 6700 if test "${ac_cv_c_inline+set}" = set; then 6701 $as_echo_n "(cached) " >&6 6702 else 6703 ac_cv_c_inline=no 6704 for ac_kw in inline __inline__ __inline; do 6705 cat >conftest.$ac_ext <<_ACEOF 6706 /* confdefs.h. */ 6707 _ACEOF 6708 cat confdefs.h >>conftest.$ac_ext 6709 cat >>conftest.$ac_ext <<_ACEOF 6710 /* end confdefs.h. */ 6711 6712 int 6713 main () 6714 { 6715 return 0;} $ac_kw int foo() { 6716 ; 6717 return 0; 6718 } 6719 _ACEOF 6720 rm -f conftest.$ac_objext 6721 if { (ac_try="$ac_compile" 6722 case "(($ac_try" in 6723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6724 *) ac_try_echo=$ac_try;; 6725 esac 6726 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6727 $as_echo "$ac_try_echo") >&5 6728 (eval "$ac_compile") 2>conftest.er1 6729 ac_status=$? 6730 grep -v '^ *+' conftest.er1 >conftest.err 6731 rm -f conftest.er1 6732 cat conftest.err >&5 6733 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6734 (exit $ac_status); } && { 6735 test -z "$ac_c_werror_flag" || 6736 test ! -s conftest.err 6737 } && test -s conftest.$ac_objext; then 6738 ac_cv_c_inline=$ac_kw; break 6739 else 6740 $as_echo "$as_me: failed program was:" >&5 6741 sed 's/^/| /' conftest.$ac_ext >&5 6742 6743 6744 fi 6745 6746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6747 done 6748 6749 fi 6750 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 6751 $as_echo "$ac_cv_c_inline" >&6; } 6752 case "$ac_cv_c_inline" in 6753 yes) U_INLINE= "inline" ;; 6754 no ) U_INLINE= ;; 6755 *) U_INLINE=$ac_cv_c_inline ;; 6756 esac 6757 6758 6759 # set up U_HAVE_STD_STRING. 6760 # Copy the definition of AC_C_INLINE, with slight mods. 6761 # 6762 U_HAVE_STD_STRING=0 6763 ac_ext=cpp 6764 ac_cpp='$CXXCPP $CPPFLAGS' 6765 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6766 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6767 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 6768 6769 { $as_echo "$as_me:$LINENO: checking if we have a C++ compiler" >&5 6770 $as_echo_n "checking if we have a C++ compiler... " >&6; } 6771 6772 cat >conftest.$ac_ext <<_ACEOF 6773 /* confdefs.h. */ 6774 _ACEOF 6775 cat confdefs.h >>conftest.$ac_ext 6776 cat >>conftest.$ac_ext <<_ACEOF 6777 /* end confdefs.h. */ 6778 6779 int 6780 main () 6781 { 6782 6783 ; 6784 return 0; 6785 } 6786 _ACEOF 6787 rm -f conftest.$ac_objext 6788 if { (ac_try="$ac_compile" 6789 case "(($ac_try" in 6790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6791 *) ac_try_echo=$ac_try;; 6792 esac 6793 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6794 $as_echo "$ac_try_echo") >&5 6795 (eval "$ac_compile") 2>conftest.er1 6796 ac_status=$? 6797 grep -v '^ *+' conftest.er1 >conftest.err 6798 rm -f conftest.er1 6799 cat conftest.err >&5 6800 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6801 (exit $ac_status); } && { 6802 test -z "$ac_cxx_werror_flag" || 6803 test ! -s conftest.err 6804 } && test -s conftest.$ac_objext; then 6805 cxx_okay=yes 6806 else 6807 $as_echo "$as_me: failed program was:" >&5 6808 sed 's/^/| /' conftest.$ac_ext >&5 6809 6810 cxx_okay=no 6811 fi 6812 6813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6814 if test $cxx_okay = yes 6815 then 6816 { $as_echo "$as_me:$LINENO: result: congratulations" >&5 6817 $as_echo "congratulations" >&6; } 6818 else 6819 { $as_echo "$as_me:$LINENO: result: no" >&5 6820 $as_echo "no" >&6; } 6821 { { $as_echo "$as_me:$LINENO: error: C++ compiler $CXX does not work or no compiler found" >&5 6822 $as_echo "$as_me: error: C++ compiler $CXX does not work or no compiler found" >&2;} 6823 { (exit 1); exit 1; }; } 6824 fi 6825 6826 { $as_echo "$as_me:$LINENO: checking if #include <string> works" >&5 6827 $as_echo_n "checking if #include <string> works... " >&6; } 6828 cat >conftest.$ac_ext <<_ACEOF 6829 /* confdefs.h. */ 6830 _ACEOF 6831 cat confdefs.h >>conftest.$ac_ext 6832 cat >>conftest.$ac_ext <<_ACEOF 6833 /* end confdefs.h. */ 6834 #include <string> 6835 int 6836 main () 6837 { 6838 6839 ; 6840 return 0; 6841 } 6842 _ACEOF 6843 rm -f conftest.$ac_objext 6844 if { (ac_try="$ac_compile" 6845 case "(($ac_try" in 6846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6847 *) ac_try_echo=$ac_try;; 6848 esac 6849 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6850 $as_echo "$ac_try_echo") >&5 6851 (eval "$ac_compile") 2>conftest.er1 6852 ac_status=$? 6853 grep -v '^ *+' conftest.er1 >conftest.err 6854 rm -f conftest.er1 6855 cat conftest.err >&5 6856 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6857 (exit $ac_status); } && { 6858 test -z "$ac_cxx_werror_flag" || 6859 test ! -s conftest.err 6860 } && test -s conftest.$ac_objext; then 6861 ac_cv_header_stdstring=yes 6862 else 6863 $as_echo "$as_me: failed program was:" >&5 6864 sed 's/^/| /' conftest.$ac_ext >&5 6865 6866 ac_cv_header_stdstring=no 6867 fi 6868 6869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6870 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdstring" >&5 6871 $as_echo "$ac_cv_header_stdstring" >&6; } 6872 if test $ac_cv_header_stdstring = yes 6873 then 6874 U_HAVE_STD_STRING=1 6875 fi 6876 6877 ac_ext=c 6878 ac_cpp='$CPP $CPPFLAGS' 6879 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6880 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6881 ac_compiler_gnu=$ac_cv_c_compiler_gnu 6882 6883 6884 threads=true 6885 6886 # Enable/disable threads 6887 # Check whether --enable-threads was given. 6888 if test "${enable_threads+set}" = set; then 6889 enableval=$enable_threads; case "${enableval}" in 6890 yes) threads=true ;; 6891 no) threads=false ;; 6892 *) { { $as_echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-threads" >&5 6893 $as_echo "$as_me: error: bad value ${enableval} for --enable-threads" >&2;} 6894 { (exit 1); exit 1; }; } ;; 6895 esac 6896 else 6897 threads=true 6898 fi 6899 6900 6901 if test "$threads" = true; then 6902 THREADS_TRUE= 6903 else 6904 THREADS_TRUE='#' 6905 fi 6906 6907 ICU_USE_THREADS=0 6908 OLD_LIBS=${LIBS} 6909 6910 if test $threads = true; then 6911 # For Compaq Tru64 (OSF1), we must look for pthread_attr_init 6912 # and must do this before seaching for pthread_mutex_destroy, or 6913 # we will pick up libpthreads.so not libpthread.so 6914 # If this fails, then we must test for HPUX specials, before 6915 # moving on to a more generic test 6916 6917 6918 { $as_echo "$as_me:$LINENO: checking for pthread_attr_init in -lpthread" >&5 6919 $as_echo_n "checking for pthread_attr_init in -lpthread... " >&6; } 6920 if test "${ac_cv_lib_pthread_pthread_attr_init+set}" = set; then 6921 $as_echo_n "(cached) " >&6 6922 else 6923 ac_check_lib_save_LIBS=$LIBS 6924 LIBS="-lpthread $LIBS" 6925 cat >conftest.$ac_ext <<_ACEOF 6926 /* confdefs.h. */ 6927 _ACEOF 6928 cat confdefs.h >>conftest.$ac_ext 6929 cat >>conftest.$ac_ext <<_ACEOF 6930 /* end confdefs.h. */ 6931 6932 /* Override any GCC internal prototype to avoid an error. 6933 Use char because int might match the return type of a GCC 6934 builtin and then its argument prototype would still apply. */ 6935 #ifdef __cplusplus 6936 extern "C" 6937 #endif 6938 char pthread_attr_init (); 6939 int 6940 main () 6941 { 6942 return pthread_attr_init (); 6943 ; 6944 return 0; 6945 } 6946 _ACEOF 6947 rm -f conftest.$ac_objext conftest$ac_exeext 6948 if { (ac_try="$ac_link" 6949 case "(($ac_try" in 6950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6951 *) ac_try_echo=$ac_try;; 6952 esac 6953 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6954 $as_echo "$ac_try_echo") >&5 6955 (eval "$ac_link") 2>conftest.er1 6956 ac_status=$? 6957 grep -v '^ *+' conftest.er1 >conftest.err 6958 rm -f conftest.er1 6959 cat conftest.err >&5 6960 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6961 (exit $ac_status); } && { 6962 test -z "$ac_c_werror_flag" || 6963 test ! -s conftest.err 6964 } && test -s conftest$ac_exeext && { 6965 test "$cross_compiling" = yes || 6966 $as_test_x conftest$ac_exeext 6967 }; then 6968 ac_cv_lib_pthread_pthread_attr_init=yes 6969 else 6970 $as_echo "$as_me: failed program was:" >&5 6971 sed 's/^/| /' conftest.$ac_ext >&5 6972 6973 ac_cv_lib_pthread_pthread_attr_init=no 6974 fi 6975 6976 rm -rf conftest.dSYM 6977 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 6978 conftest$ac_exeext conftest.$ac_ext 6979 LIBS=$ac_check_lib_save_LIBS 6980 fi 6981 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_attr_init" >&5 6982 $as_echo "$ac_cv_lib_pthread_pthread_attr_init" >&6; } 6983 if test "x$ac_cv_lib_pthread_pthread_attr_init" = x""yes; then 6984 cat >>confdefs.h <<_ACEOF 6985 #define HAVE_LIBPTHREAD 1 6986 _ACEOF 6987 6988 LIBS="-lpthread $LIBS" 6989 6990 fi 6991 6992 if test $ac_cv_lib_pthread_pthread_attr_init = yes; then 6993 ICU_USE_THREADS=1 6994 else 6995 # Locate the right library for POSIX threads. We look for the 6996 # symbols in the libraries first, because on Solaris libc provides 6997 # pthread_create but libpthread has the real code :( 6998 # AIX uses libpthreads instead of libpthread, and HP/UX uses libpthread 6999 # FreeBSD users may need libpthread if they do not have libc_r. 7000 7001 7002 { $as_echo "$as_me:$LINENO: checking for library containing pthread_mutex_destroy" >&5 7003 $as_echo_n "checking for library containing pthread_mutex_destroy... " >&6; } 7004 if test "${ac_cv_search_pthread_mutex_destroy+set}" = set; then 7005 $as_echo_n "(cached) " >&6 7006 else 7007 ac_func_search_save_LIBS="$LIBS" 7008 ac_cv_search_pthread_mutex_destroy="no" 7009 for i in pthread pthreads c_r ; do 7010 LIBS="-l$i $ac_func_search_save_LIBS" 7011 cat >conftest.$ac_ext <<_ACEOF 7012 /* confdefs.h. */ 7013 _ACEOF 7014 cat confdefs.h >>conftest.$ac_ext 7015 cat >>conftest.$ac_ext <<_ACEOF 7016 /* end confdefs.h. */ 7017 7018 /* Override any GCC internal prototype to avoid an error. 7019 Use char because int might match the return type of a GCC 7020 builtin and then its argument prototype would still apply. */ 7021 #ifdef __cplusplus 7022 extern "C" 7023 #endif 7024 char pthread_mutex_destroy (); 7025 int 7026 main () 7027 { 7028 return pthread_mutex_destroy (); 7029 ; 7030 return 0; 7031 } 7032 _ACEOF 7033 rm -f conftest.$ac_objext conftest$ac_exeext 7034 if { (ac_try="$ac_link" 7035 case "(($ac_try" in 7036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7037 *) ac_try_echo=$ac_try;; 7038 esac 7039 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 7040 $as_echo "$ac_try_echo") >&5 7041 (eval "$ac_link") 2>conftest.er1 7042 ac_status=$? 7043 grep -v '^ *+' conftest.er1 >conftest.err 7044 rm -f conftest.er1 7045 cat conftest.err >&5 7046 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7047 (exit $ac_status); } && { 7048 test -z "$ac_c_werror_flag" || 7049 test ! -s conftest.err 7050 } && test -s conftest$ac_exeext && { 7051 test "$cross_compiling" = yes || 7052 $as_test_x conftest$ac_exeext 7053 }; then 7054 ac_cv_search_pthread_mutex_destroy="-l$i" 7055 break 7056 else 7057 $as_echo "$as_me: failed program was:" >&5 7058 sed 's/^/| /' conftest.$ac_ext >&5 7059 7060 7061 fi 7062 7063 rm -rf conftest.dSYM 7064 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7065 conftest$ac_exeext conftest.$ac_ext 7066 done 7067 if test "$ac_cv_search_pthread_mutex_destroy" = "no"; then 7068 cat >conftest.$ac_ext <<_ACEOF 7069 /* confdefs.h. */ 7070 _ACEOF 7071 cat confdefs.h >>conftest.$ac_ext 7072 cat >>conftest.$ac_ext <<_ACEOF 7073 /* end confdefs.h. */ 7074 7075 /* Override any GCC internal prototype to avoid an error. 7076 Use char because int might match the return type of a GCC 7077 builtin and then its argument prototype would still apply. */ 7078 #ifdef __cplusplus 7079 extern "C" 7080 #endif 7081 char pthread_mutex_destroy (); 7082 int 7083 main () 7084 { 7085 return pthread_mutex_destroy (); 7086 ; 7087 return 0; 7088 } 7089 _ACEOF 7090 rm -f conftest.$ac_objext conftest$ac_exeext 7091 if { (ac_try="$ac_link" 7092 case "(($ac_try" in 7093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7094 *) ac_try_echo=$ac_try;; 7095 esac 7096 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 7097 $as_echo "$ac_try_echo") >&5 7098 (eval "$ac_link") 2>conftest.er1 7099 ac_status=$? 7100 grep -v '^ *+' conftest.er1 >conftest.err 7101 rm -f conftest.er1 7102 cat conftest.err >&5 7103 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7104 (exit $ac_status); } && { 7105 test -z "$ac_c_werror_flag" || 7106 test ! -s conftest.err 7107 } && test -s conftest$ac_exeext && { 7108 test "$cross_compiling" = yes || 7109 $as_test_x conftest$ac_exeext 7110 }; then 7111 ac_cv_search_pthread_mutex_destroy="none required" 7112 else 7113 $as_echo "$as_me: failed program was:" >&5 7114 sed 's/^/| /' conftest.$ac_ext >&5 7115 7116 7117 fi 7118 7119 rm -rf conftest.dSYM 7120 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7121 conftest$ac_exeext conftest.$ac_ext 7122 fi 7123 LIBS="$ac_func_search_save_LIBS" 7124 fi 7125 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_destroy" >&5 7126 $as_echo "$ac_cv_search_pthread_mutex_destroy" >&6; } 7127 if test "$ac_cv_search_pthread_mutex_destroy" != "no"; then 7128 test "$ac_cv_search_pthread_mutex_destroy" = "none required" || LIBS="$ac_cv_search_pthread_mutex_destroy $LIBS" 7129 7130 else : 7131 7132 fi 7133 7134 if test "$ac_cv_search_pthread_mutex_destroy" != no; then 7135 ICU_USE_THREADS=1 7136 else 7137 # For HP 11 7138 7139 { $as_echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5 7140 $as_echo_n "checking for pthread_mutex_init in -lpthread... " >&6; } 7141 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then 7142 $as_echo_n "(cached) " >&6 7143 else 7144 ac_check_lib_save_LIBS=$LIBS 7145 LIBS="-lpthread $LIBS" 7146 cat >conftest.$ac_ext <<_ACEOF 7147 /* confdefs.h. */ 7148 _ACEOF 7149 cat confdefs.h >>conftest.$ac_ext 7150 cat >>conftest.$ac_ext <<_ACEOF 7151 /* end confdefs.h. */ 7152 7153 /* Override any GCC internal prototype to avoid an error. 7154 Use char because int might match the return type of a GCC 7155 builtin and then its argument prototype would still apply. */ 7156 #ifdef __cplusplus 7157 extern "C" 7158 #endif 7159 char pthread_mutex_init (); 7160 int 7161 main () 7162 { 7163 return pthread_mutex_init (); 7164 ; 7165 return 0; 7166 } 7167 _ACEOF 7168 rm -f conftest.$ac_objext conftest$ac_exeext 7169 if { (ac_try="$ac_link" 7170 case "(($ac_try" in 7171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7172 *) ac_try_echo=$ac_try;; 7173 esac 7174 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 7175 $as_echo "$ac_try_echo") >&5 7176 (eval "$ac_link") 2>conftest.er1 7177 ac_status=$? 7178 grep -v '^ *+' conftest.er1 >conftest.err 7179 rm -f conftest.er1 7180 cat conftest.err >&5 7181 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7182 (exit $ac_status); } && { 7183 test -z "$ac_c_werror_flag" || 7184 test ! -s conftest.err 7185 } && test -s conftest$ac_exeext && { 7186 test "$cross_compiling" = yes || 7187 $as_test_x conftest$ac_exeext 7188 }; then 7189 ac_cv_lib_pthread_pthread_mutex_init=yes 7190 else 7191 $as_echo "$as_me: failed program was:" >&5 7192 sed 's/^/| /' conftest.$ac_ext >&5 7193 7194 ac_cv_lib_pthread_pthread_mutex_init=no 7195 fi 7196 7197 rm -rf conftest.dSYM 7198 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7199 conftest$ac_exeext conftest.$ac_ext 7200 LIBS=$ac_check_lib_save_LIBS 7201 fi 7202 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5 7203 $as_echo "$ac_cv_lib_pthread_pthread_mutex_init" >&6; } 7204 if test "x$ac_cv_lib_pthread_pthread_mutex_init" = x""yes; then 7205 cat >>confdefs.h <<_ACEOF 7206 #define HAVE_LIBPTHREAD 1 7207 _ACEOF 7208 7209 LIBS="-lpthread $LIBS" 7210 7211 fi 7212 7213 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then 7214 ICU_USE_THREADS=1 7215 fi 7216 fi 7217 7218 { $as_echo "$as_me:$LINENO: checking for pthread_mutex_lock" >&5 7219 $as_echo_n "checking for pthread_mutex_lock... " >&6; } 7220 if test "${ac_cv_func_pthread_mutex_lock+set}" = set; then 7221 $as_echo_n "(cached) " >&6 7222 else 7223 cat >conftest.$ac_ext <<_ACEOF 7224 /* confdefs.h. */ 7225 _ACEOF 7226 cat confdefs.h >>conftest.$ac_ext 7227 cat >>conftest.$ac_ext <<_ACEOF 7228 /* end confdefs.h. */ 7229 /* Define pthread_mutex_lock to an innocuous variant, in case <limits.h> declares pthread_mutex_lock. 7230 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 7231 #define pthread_mutex_lock innocuous_pthread_mutex_lock 7232 7233 /* System header to define __stub macros and hopefully few prototypes, 7234 which can conflict with char pthread_mutex_lock (); below. 7235 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7236 <limits.h> exists even on freestanding compilers. */ 7237 7238 #ifdef __STDC__ 7239 # include <limits.h> 7240 #else 7241 # include <assert.h> 7242 #endif 7243 7244 #undef pthread_mutex_lock 7245 7246 /* Override any GCC internal prototype to avoid an error. 7247 Use char because int might match the return type of a GCC 7248 builtin and then its argument prototype would still apply. */ 7249 #ifdef __cplusplus 7250 extern "C" 7251 #endif 7252 char pthread_mutex_lock (); 7253 /* The GNU C library defines this for functions which it implements 7254 to always fail with ENOSYS. Some functions are actually named 7255 something starting with __ and the normal name is an alias. */ 7256 #if defined __stub_pthread_mutex_lock || defined __stub___pthread_mutex_lock 7257 choke me 7258 #endif 7259 7260 int 7261 main () 7262 { 7263 return pthread_mutex_lock (); 7264 ; 7265 return 0; 7266 } 7267 _ACEOF 7268 rm -f conftest.$ac_objext conftest$ac_exeext 7269 if { (ac_try="$ac_link" 7270 case "(($ac_try" in 7271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7272 *) ac_try_echo=$ac_try;; 7273 esac 7274 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 7275 $as_echo "$ac_try_echo") >&5 7276 (eval "$ac_link") 2>conftest.er1 7277 ac_status=$? 7278 grep -v '^ *+' conftest.er1 >conftest.err 7279 rm -f conftest.er1 7280 cat conftest.err >&5 7281 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7282 (exit $ac_status); } && { 7283 test -z "$ac_c_werror_flag" || 7284 test ! -s conftest.err 7285 } && test -s conftest$ac_exeext && { 7286 test "$cross_compiling" = yes || 7287 $as_test_x conftest$ac_exeext 7288 }; then 7289 ac_cv_func_pthread_mutex_lock=yes 7290 else 7291 $as_echo "$as_me: failed program was:" >&5 7292 sed 's/^/| /' conftest.$ac_ext >&5 7293 7294 ac_cv_func_pthread_mutex_lock=no 7295 fi 7296 7297 rm -rf conftest.dSYM 7298 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7299 conftest$ac_exeext conftest.$ac_ext 7300 fi 7301 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_pthread_mutex_lock" >&5 7302 $as_echo "$ac_cv_func_pthread_mutex_lock" >&6; } 7303 7304 7305 if test $ac_cv_func_pthread_mutex_lock = yes; then 7306 ICU_USE_THREADS=1 7307 fi 7308 fi 7309 # Check to see if we are using CygWin with MSVC 7310 case "${host}" in 7311 *-pc-cygwin*|*-pc-mingw*) 7312 # For gcc, the thread options are set by mh-mingw/mh-cygwin 7313 # For msvc, the thread options are set by runConfigureICU 7314 ICU_USE_THREADS=1 7315 ;; 7316 *-*-hpux*) 7317 # Add -mt because it does several nice things on newer compilers. 7318 case "${icu_cv_host_frag}" in 7319 mh-hpux-acc) 7320 OLD_CXXFLAGS="${CXXFLAGS}" 7321 CXXFLAGS="${CXXFLAGS} -mt" 7322 if test x"`${CXX} ${CXXFLAGS} 2>&1`" != x""; then 7323 CXXFLAGS="${OLD_CXXFLAGS}" 7324 fi 7325 ;; 7326 esac 7327 ;; 7328 *-*-solaris*) 7329 case "${icu_cv_host_frag}" in 7330 mh-solaris) 7331 LIBS="${LIBS} -mt" 7332 ;; 7333 esac 7334 ;; 7335 esac 7336 fi 7337 7338 7339 7340 # Check whether --enable-weak-threads was given. 7341 if test "${enable_weak_threads+set}" = set; then 7342 enableval=$enable_weak_threads; case "${enableval}" in 7343 yes) 7344 LIB_THREAD="${LIBS%${OLD_LIBS}}" 7345 LIBS=${OLD_LIBS} 7346 ;; 7347 no) ;; 7348 *) { { $as_echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-weak-threads" >&5 7349 $as_echo "$as_me: error: bad value ${enableval} for --enable-weak-threads" >&2;} 7350 { (exit 1); exit 1; }; } ;; 7351 esac 7352 fi 7353 7354 7355 7356 # Check for mmap() 7357 7358 # The AC_FUNC_MMAP macro doesn't work properly. It seems to be too specific. 7359 # Do this check instead. 7360 HAVE_MMAP=0 7361 { $as_echo "$as_me:$LINENO: checking for mmap" >&5 7362 $as_echo_n "checking for mmap... " >&6; } 7363 if test "${ac_cv_func_mmap_ok+set}" = set; then 7364 $as_echo_n "(cached) " >&6 7365 else 7366 cat >conftest.$ac_ext <<_ACEOF 7367 /* confdefs.h. */ 7368 _ACEOF 7369 cat confdefs.h >>conftest.$ac_ext 7370 cat >>conftest.$ac_ext <<_ACEOF 7371 /* end confdefs.h. */ 7372 #include <unistd.h> 7373 #include <sys/mman.h> 7374 #include <sys/stat.h> 7375 #include <fcntl.h> 7376 int 7377 main () 7378 { 7379 mmap((void *)0, 0, PROT_READ, 0, 0, 0); 7380 ; 7381 return 0; 7382 } 7383 _ACEOF 7384 rm -f conftest.$ac_objext conftest$ac_exeext 7385 if { (ac_try="$ac_link" 7386 case "(($ac_try" in 7387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7388 *) ac_try_echo=$ac_try;; 7389 esac 7390 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 7391 $as_echo "$ac_try_echo") >&5 7392 (eval "$ac_link") 2>conftest.er1 7393 ac_status=$? 7394 grep -v '^ *+' conftest.er1 >conftest.err 7395 rm -f conftest.er1 7396 cat conftest.err >&5 7397 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7398 (exit $ac_status); } && { 7399 test -z "$ac_c_werror_flag" || 7400 test ! -s conftest.err 7401 } && test -s conftest$ac_exeext && { 7402 test "$cross_compiling" = yes || 7403 $as_test_x conftest$ac_exeext 7404 }; then 7405 ac_cv_func_mmap_ok=yes 7406 else 7407 $as_echo "$as_me: failed program was:" >&5 7408 sed 's/^/| /' conftest.$ac_ext >&5 7409 7410 ac_cv_func_mmap_ok=no 7411 fi 7412 7413 rm -rf conftest.dSYM 7414 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7415 conftest$ac_exeext conftest.$ac_ext 7416 fi 7417 7418 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_ok" >&5 7419 $as_echo "$ac_cv_func_mmap_ok" >&6; } 7420 if test $ac_cv_func_mmap_ok = yes 7421 then 7422 HAVE_MMAP=1 7423 fi 7424 7425 7426 { $as_echo "$as_me:$LINENO: checking for genccode assembly" >&5 7427 $as_echo_n "checking for genccode assembly... " >&6; } 7428 7429 # Check to see if genccode can generate simple assembly. 7430 GENCCODE_ASSEMBLY= 7431 case "${host}" in 7432 *-linux*|i*86-*-*bsd*|i*86-pc-gnu) 7433 if test "$GCC" = yes; then 7434 # We're using gcc, and the simple -a gcc command line works for genccode 7435 GENCCODE_ASSEMBLY="-a gcc" 7436 fi ;; 7437 i*86-*-solaris*) 7438 if test "$GCC" = yes; then 7439 # When using gcc, look if we're also using GNU as. 7440 # When using GNU as, the simple -a gcc command line works for genccode. 7441 asv=`"${CC}" -print-prog-name=as 2>/dev/null` 7442 asv=`"${asv}" --version 2>/dev/null` 7443 case "X${asv}" in 7444 X*GNU*) GENCCODE_ASSEMBLY="-a gcc" ;; 7445 X*) GENCCODE_ASSEMBLY="-a sun-x86" ;; 7446 esac 7447 unset asv 7448 else 7449 GENCCODE_ASSEMBLY="-a sun-x86" 7450 fi ;; 7451 sparc-*-solaris*) 7452 GENCCODE_ASSEMBLY="-a sun" 7453 ;; 7454 ia64-*-hpux*) 7455 GENCCODE_ASSEMBLY="-a aCC-ia64" 7456 ;; 7457 esac 7458 7459 7460 { $as_echo "$as_me:$LINENO: result: $GENCCODE_ASSEMBLY" >&5 7461 $as_echo "$GENCCODE_ASSEMBLY" >&6; } 7462 7463 # Checks for header files 7464 7465 for ac_header in inttypes.h 7466 do 7467 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 7468 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 7469 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 7470 $as_echo_n "checking for $ac_header... " >&6; } 7471 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 7472 $as_echo_n "(cached) " >&6 7473 fi 7474 ac_res=`eval 'as_val=${'$as_ac_Header'} 7475 $as_echo "$as_val"'` 7476 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 7477 $as_echo "$ac_res" >&6; } 7478 else 7479 # Is the header compilable? 7480 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 7481 $as_echo_n "checking $ac_header usability... " >&6; } 7482 cat >conftest.$ac_ext <<_ACEOF 7483 /* confdefs.h. */ 7484 _ACEOF 7485 cat confdefs.h >>conftest.$ac_ext 7486 cat >>conftest.$ac_ext <<_ACEOF 7487 /* end confdefs.h. */ 7488 $ac_includes_default 7489 #include <$ac_header> 7490 _ACEOF 7491 rm -f conftest.$ac_objext 7492 if { (ac_try="$ac_compile" 7493 case "(($ac_try" in 7494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7495 *) ac_try_echo=$ac_try;; 7496 esac 7497 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 7498 $as_echo "$ac_try_echo") >&5 7499 (eval "$ac_compile") 2>conftest.er1 7500 ac_status=$? 7501 grep -v '^ *+' conftest.er1 >conftest.err 7502 rm -f conftest.er1 7503 cat conftest.err >&5 7504 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7505 (exit $ac_status); } && { 7506 test -z "$ac_c_werror_flag" || 7507 test ! -s conftest.err 7508 } && test -s conftest.$ac_objext; then 7509 ac_header_compiler=yes 7510 else 7511 $as_echo "$as_me: failed program was:" >&5 7512 sed 's/^/| /' conftest.$ac_ext >&5 7513 7514 ac_header_compiler=no 7515 fi 7516 7517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7518 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 7519 $as_echo "$ac_header_compiler" >&6; } 7520 7521 # Is the header present? 7522 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 7523 $as_echo_n "checking $ac_header presence... " >&6; } 7524 cat >conftest.$ac_ext <<_ACEOF 7525 /* confdefs.h. */ 7526 _ACEOF 7527 cat confdefs.h >>conftest.$ac_ext 7528 cat >>conftest.$ac_ext <<_ACEOF 7529 /* end confdefs.h. */ 7530 #include <$ac_header> 7531 _ACEOF 7532 if { (ac_try="$ac_cpp conftest.$ac_ext" 7533 case "(($ac_try" in 7534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7535 *) ac_try_echo=$ac_try;; 7536 esac 7537 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 7538 $as_echo "$ac_try_echo") >&5 7539 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 7540 ac_status=$? 7541 grep -v '^ *+' conftest.er1 >conftest.err 7542 rm -f conftest.er1 7543 cat conftest.err >&5 7544 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7545 (exit $ac_status); } >/dev/null && { 7546 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 7547 test ! -s conftest.err 7548 }; then 7549 ac_header_preproc=yes 7550 else 7551 $as_echo "$as_me: failed program was:" >&5 7552 sed 's/^/| /' conftest.$ac_ext >&5 7553 7554 ac_header_preproc=no 7555 fi 7556 7557 rm -f conftest.err conftest.$ac_ext 7558 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 7559 $as_echo "$ac_header_preproc" >&6; } 7560 7561 # So? What about this header? 7562 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 7563 yes:no: ) 7564 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 7565 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 7566 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 7567 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 7568 ac_header_preproc=yes 7569 ;; 7570 no:yes:* ) 7571 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 7572 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 7573 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 7574 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 7575 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 7576 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 7577 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 7578 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 7579 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 7580 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 7581 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 7582 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 7583 7584 ;; 7585 esac 7586 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 7587 $as_echo_n "checking for $ac_header... " >&6; } 7588 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 7589 $as_echo_n "(cached) " >&6 7590 else 7591 eval "$as_ac_Header=\$ac_header_preproc" 7592 fi 7593 ac_res=`eval 'as_val=${'$as_ac_Header'} 7594 $as_echo "$as_val"'` 7595 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 7596 $as_echo "$ac_res" >&6; } 7597 7598 fi 7599 as_val=`eval 'as_val=${'$as_ac_Header'} 7600 $as_echo "$as_val"'` 7601 if test "x$as_val" = x""yes; then 7602 cat >>confdefs.h <<_ACEOF 7603 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 7604 _ACEOF 7605 7606 fi 7607 7608 done 7609 7610 if test $ac_cv_header_inttypes_h = no; then 7611 U_HAVE_INTTYPES_H=0 7612 else 7613 U_HAVE_INTTYPES_H=1 7614 fi 7615 if test "$CC" = ccc; then 7616 { $as_echo "$as_me:$LINENO: result: \"C compiler set to CCC ${CC}\" " >&5 7617 $as_echo "\"C compiler set to CCC ${CC}\" " >&6; } 7618 case "${host}" in 7619 alpha*-*-*) U_HAVE_INTTYPES_H=0; 7620 esac 7621 fi 7622 7623 7624 7625 7626 for ac_header in dirent.h 7627 do 7628 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 7629 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 7630 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 7631 $as_echo_n "checking for $ac_header... " >&6; } 7632 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 7633 $as_echo_n "(cached) " >&6 7634 fi 7635 ac_res=`eval 'as_val=${'$as_ac_Header'} 7636 $as_echo "$as_val"'` 7637 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 7638 $as_echo "$ac_res" >&6; } 7639 else 7640 # Is the header compilable? 7641 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 7642 $as_echo_n "checking $ac_header usability... " >&6; } 7643 cat >conftest.$ac_ext <<_ACEOF 7644 /* confdefs.h. */ 7645 _ACEOF 7646 cat confdefs.h >>conftest.$ac_ext 7647 cat >>conftest.$ac_ext <<_ACEOF 7648 /* end confdefs.h. */ 7649 $ac_includes_default 7650 #include <$ac_header> 7651 _ACEOF 7652 rm -f conftest.$ac_objext 7653 if { (ac_try="$ac_compile" 7654 case "(($ac_try" in 7655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7656 *) ac_try_echo=$ac_try;; 7657 esac 7658 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 7659 $as_echo "$ac_try_echo") >&5 7660 (eval "$ac_compile") 2>conftest.er1 7661 ac_status=$? 7662 grep -v '^ *+' conftest.er1 >conftest.err 7663 rm -f conftest.er1 7664 cat conftest.err >&5 7665 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7666 (exit $ac_status); } && { 7667 test -z "$ac_c_werror_flag" || 7668 test ! -s conftest.err 7669 } && test -s conftest.$ac_objext; then 7670 ac_header_compiler=yes 7671 else 7672 $as_echo "$as_me: failed program was:" >&5 7673 sed 's/^/| /' conftest.$ac_ext >&5 7674 7675 ac_header_compiler=no 7676 fi 7677 7678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7679 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 7680 $as_echo "$ac_header_compiler" >&6; } 7681 7682 # Is the header present? 7683 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 7684 $as_echo_n "checking $ac_header presence... " >&6; } 7685 cat >conftest.$ac_ext <<_ACEOF 7686 /* confdefs.h. */ 7687 _ACEOF 7688 cat confdefs.h >>conftest.$ac_ext 7689 cat >>conftest.$ac_ext <<_ACEOF 7690 /* end confdefs.h. */ 7691 #include <$ac_header> 7692 _ACEOF 7693 if { (ac_try="$ac_cpp conftest.$ac_ext" 7694 case "(($ac_try" in 7695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7696 *) ac_try_echo=$ac_try;; 7697 esac 7698 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 7699 $as_echo "$ac_try_echo") >&5 7700 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 7701 ac_status=$? 7702 grep -v '^ *+' conftest.er1 >conftest.err 7703 rm -f conftest.er1 7704 cat conftest.err >&5 7705 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7706 (exit $ac_status); } >/dev/null && { 7707 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 7708 test ! -s conftest.err 7709 }; then 7710 ac_header_preproc=yes 7711 else 7712 $as_echo "$as_me: failed program was:" >&5 7713 sed 's/^/| /' conftest.$ac_ext >&5 7714 7715 ac_header_preproc=no 7716 fi 7717 7718 rm -f conftest.err conftest.$ac_ext 7719 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 7720 $as_echo "$ac_header_preproc" >&6; } 7721 7722 # So? What about this header? 7723 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 7724 yes:no: ) 7725 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 7726 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 7727 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 7728 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 7729 ac_header_preproc=yes 7730 ;; 7731 no:yes:* ) 7732 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 7733 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 7734 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 7735 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 7736 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 7737 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 7738 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 7739 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 7740 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 7741 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 7742 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 7743 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 7744 7745 ;; 7746 esac 7747 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 7748 $as_echo_n "checking for $ac_header... " >&6; } 7749 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 7750 $as_echo_n "(cached) " >&6 7751 else 7752 eval "$as_ac_Header=\$ac_header_preproc" 7753 fi 7754 ac_res=`eval 'as_val=${'$as_ac_Header'} 7755 $as_echo "$as_val"'` 7756 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 7757 $as_echo "$ac_res" >&6; } 7758 7759 fi 7760 as_val=`eval 'as_val=${'$as_ac_Header'} 7761 $as_echo "$as_val"'` 7762 if test "x$as_val" = x""yes; then 7763 cat >>confdefs.h <<_ACEOF 7764 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 7765 _ACEOF 7766 7767 fi 7768 7769 done 7770 7771 if test $ac_cv_header_dirent_h = no; then 7772 U_HAVE_DIRENT_H=0 7773 else 7774 U_HAVE_DIRENT_H=1 7775 fi 7776 7777 7778 7779 7780 7781 # Check whether --with-iostream was given. 7782 if test "${with_iostream+set}" = set; then 7783 withval=$with_iostream; case "${withval}" in 7784 none) streams=none ;; 7785 old) streams=198506 ;; 7786 std) streams=199711 ;; 7787 auto) streams= ;; 7788 *) { { $as_echo "$as_me:$LINENO: error: bad value ${withval} for --with-iostream" >&5 7789 $as_echo "$as_me: error: bad value ${withval} for --with-iostream" >&2;} 7790 { (exit 1); exit 1; }; } ;; 7791 esac 7792 else 7793 streams= 7794 fi 7795 7796 7797 U_IOSTREAM_SOURCE=0 7798 if test x$streams != xnone 7799 then 7800 ac_ext=cpp 7801 ac_cpp='$CXXCPP $CPPFLAGS' 7802 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7803 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7804 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 7805 7806 OLD_CXXFLAGS="${CXXFLAGS}" 7807 case "${icu_cv_host_frag}" in 7808 mh-hpux-acc) 7809 CXXFLAGS="${CXXFLAGS} -AA" 7810 ;; 7811 esac 7812 { $as_echo "$as_me:$LINENO: checking for iostream usability" >&5 7813 $as_echo_n "checking for iostream usability... " >&6; } 7814 cat >conftest.$ac_ext <<_ACEOF 7815 /* confdefs.h. */ 7816 _ACEOF 7817 cat confdefs.h >>conftest.$ac_ext 7818 cat >>conftest.$ac_ext <<_ACEOF 7819 /* end confdefs.h. */ 7820 #include <iostream> 7821 int 7822 main () 7823 { 7824 7825 ; 7826 return 0; 7827 } 7828 _ACEOF 7829 rm -f conftest.$ac_objext 7830 if { (ac_try="$ac_compile" 7831 case "(($ac_try" in 7832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7833 *) ac_try_echo=$ac_try;; 7834 esac 7835 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 7836 $as_echo "$ac_try_echo") >&5 7837 (eval "$ac_compile") 2>conftest.er1 7838 ac_status=$? 7839 grep -v '^ *+' conftest.er1 >conftest.err 7840 rm -f conftest.er1 7841 cat conftest.err >&5 7842 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7843 (exit $ac_status); } && { 7844 test -z "$ac_cxx_werror_flag" || 7845 test ! -s conftest.err 7846 } && test -s conftest.$ac_objext; then 7847 ac_cv_header_iostream=yes 7848 else 7849 $as_echo "$as_me: failed program was:" >&5 7850 sed 's/^/| /' conftest.$ac_ext >&5 7851 7852 ac_cv_header_iostream=no 7853 fi 7854 7855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7856 if test $icu_cv_host_frag = mh-cygwin-msvc 7857 then 7858 # <iostream> is always there on Windows. 7859 # We do this to prevent the C++ preprocessor from being used because 7860 # autoconf can't deal with the Windows C++ preprocessor 7861 ac_cv_header_iostream=yes 7862 fi 7863 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_iostream" >&5 7864 $as_echo "$ac_cv_header_iostream" >&6; } 7865 if test $ac_cv_header_iostream = yes 7866 then 7867 U_IOSTREAM_SOURCE=199711 7868 else 7869 CXXFLAGS="${OLD_CXXFLAGS}" 7870 { $as_echo "$as_me:$LINENO: checking whether ostream in iostream.h is really defined" >&5 7871 $as_echo_n "checking whether ostream in iostream.h is really defined... " >&6; } 7872 if test "${ac_cv_iostream_ok+set}" = set; then 7873 $as_echo_n "(cached) " >&6 7874 else 7875 cat >conftest.$ac_ext <<_ACEOF 7876 /* confdefs.h. */ 7877 _ACEOF 7878 cat confdefs.h >>conftest.$ac_ext 7879 cat >>conftest.$ac_ext <<_ACEOF 7880 /* end confdefs.h. */ 7881 #include <iostream.h> 7882 int 7883 main () 7884 { 7885 ostream &testout = cout; testout << "test" << endl; 7886 ; 7887 return 0; 7888 } 7889 _ACEOF 7890 rm -f conftest.$ac_objext conftest$ac_exeext 7891 if { (ac_try="$ac_link" 7892 case "(($ac_try" in 7893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7894 *) ac_try_echo=$ac_try;; 7895 esac 7896 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 7897 $as_echo "$ac_try_echo") >&5 7898 (eval "$ac_link") 2>conftest.er1 7899 ac_status=$? 7900 grep -v '^ *+' conftest.er1 >conftest.err 7901 rm -f conftest.er1 7902 cat conftest.err >&5 7903 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7904 (exit $ac_status); } && { 7905 test -z "$ac_cxx_werror_flag" || 7906 test ! -s conftest.err 7907 } && test -s conftest$ac_exeext && { 7908 test "$cross_compiling" = yes || 7909 $as_test_x conftest$ac_exeext 7910 }; then 7911 ac_cv_iostream_ok=yes 7912 else 7913 $as_echo "$as_me: failed program was:" >&5 7914 sed 's/^/| /' conftest.$ac_ext >&5 7915 7916 ac_cv_iostream_ok=no 7917 fi 7918 7919 rm -rf conftest.dSYM 7920 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7921 conftest$ac_exeext conftest.$ac_ext 7922 fi 7923 7924 { $as_echo "$as_me:$LINENO: result: $ac_cv_iostream_ok" >&5 7925 $as_echo "$ac_cv_iostream_ok" >&6; } 7926 if test $ac_cv_iostream_ok = yes 7927 then 7928 U_IOSTREAM_SOURCE=198506 7929 fi 7930 fi 7931 if test x$streams != x 7932 then 7933 if test $U_IOSTREAM_SOURCE -ge $streams 7934 then 7935 U_IOSTREAM_SOURCE=$streams 7936 case "${icu_cv_host_frag}" in 7937 mh-hpux-acc) 7938 if test $U_IOSTREAM_SOURCE -lt 199711; then 7939 CXXFLAGS=${OLD_CXXFLAGS} 7940 fi 7941 ;; 7942 esac 7943 else 7944 { { $as_echo "$as_me:$LINENO: error: ${withval} iostream is not available" >&5 7945 $as_echo "$as_me: error: ${withval} iostream is not available" >&2;} 7946 { (exit 1); exit 1; }; } 7947 fi 7948 fi 7949 fi 7950 7951 ac_ext=c 7952 ac_cpp='$CPP $CPPFLAGS' 7953 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7954 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7955 ac_compiler_gnu=$ac_cv_c_compiler_gnu 7956 7957 7958 # Check for endianness 7959 7960 { $as_echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 7961 $as_echo_n "checking whether byte ordering is bigendian... " >&6; } 7962 if test "${ac_cv_c_bigendian+set}" = set; then 7963 $as_echo_n "(cached) " >&6 7964 else 7965 ac_cv_c_bigendian=unknown 7966 # See if we're dealing with a universal compiler. 7967 cat >conftest.$ac_ext <<_ACEOF 7968 /* confdefs.h. */ 7969 _ACEOF 7970 cat confdefs.h >>conftest.$ac_ext 7971 cat >>conftest.$ac_ext <<_ACEOF 7972 /* end confdefs.h. */ 7973 #ifndef __APPLE_CC__ 7974 not a universal capable compiler 7975 #endif 7976 typedef int dummy; 7977 7978 _ACEOF 7979 rm -f conftest.$ac_objext 7980 if { (ac_try="$ac_compile" 7981 case "(($ac_try" in 7982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7983 *) ac_try_echo=$ac_try;; 7984 esac 7985 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 7986 $as_echo "$ac_try_echo") >&5 7987 (eval "$ac_compile") 2>conftest.er1 7988 ac_status=$? 7989 grep -v '^ *+' conftest.er1 >conftest.err 7990 rm -f conftest.er1 7991 cat conftest.err >&5 7992 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7993 (exit $ac_status); } && { 7994 test -z "$ac_c_werror_flag" || 7995 test ! -s conftest.err 7996 } && test -s conftest.$ac_objext; then 7997 7998 # Check for potential -arch flags. It is not universal unless 7999 # there are some -arch flags. Note that *ppc* also matches 8000 # ppc64. This check is also rather less than ideal. 8001 case "${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" in #( 8002 *-arch*ppc*|*-arch*i386*|*-arch*x86_64*) ac_cv_c_bigendian=universal;; 8003 esac 8004 else 8005 $as_echo "$as_me: failed program was:" >&5 8006 sed 's/^/| /' conftest.$ac_ext >&5 8007 8008 8009 fi 8010 8011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8012 if test $ac_cv_c_bigendian = unknown; then 8013 # See if sys/param.h defines the BYTE_ORDER macro. 8014 cat >conftest.$ac_ext <<_ACEOF 8015 /* confdefs.h. */ 8016 _ACEOF 8017 cat confdefs.h >>conftest.$ac_ext 8018 cat >>conftest.$ac_ext <<_ACEOF 8019 /* end confdefs.h. */ 8020 #include <sys/types.h> 8021 #include <sys/param.h> 8022 8023 int 8024 main () 8025 { 8026 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 8027 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 8028 && LITTLE_ENDIAN) 8029 bogus endian macros 8030 #endif 8031 8032 ; 8033 return 0; 8034 } 8035 _ACEOF 8036 rm -f conftest.$ac_objext 8037 if { (ac_try="$ac_compile" 8038 case "(($ac_try" in 8039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8040 *) ac_try_echo=$ac_try;; 8041 esac 8042 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8043 $as_echo "$ac_try_echo") >&5 8044 (eval "$ac_compile") 2>conftest.er1 8045 ac_status=$? 8046 grep -v '^ *+' conftest.er1 >conftest.err 8047 rm -f conftest.er1 8048 cat conftest.err >&5 8049 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8050 (exit $ac_status); } && { 8051 test -z "$ac_c_werror_flag" || 8052 test ! -s conftest.err 8053 } && test -s conftest.$ac_objext; then 8054 # It does; now see whether it defined to BIG_ENDIAN or not. 8055 cat >conftest.$ac_ext <<_ACEOF 8056 /* confdefs.h. */ 8057 _ACEOF 8058 cat confdefs.h >>conftest.$ac_ext 8059 cat >>conftest.$ac_ext <<_ACEOF 8060 /* end confdefs.h. */ 8061 #include <sys/types.h> 8062 #include <sys/param.h> 8063 8064 int 8065 main () 8066 { 8067 #if BYTE_ORDER != BIG_ENDIAN 8068 not big endian 8069 #endif 8070 8071 ; 8072 return 0; 8073 } 8074 _ACEOF 8075 rm -f conftest.$ac_objext 8076 if { (ac_try="$ac_compile" 8077 case "(($ac_try" in 8078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8079 *) ac_try_echo=$ac_try;; 8080 esac 8081 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8082 $as_echo "$ac_try_echo") >&5 8083 (eval "$ac_compile") 2>conftest.er1 8084 ac_status=$? 8085 grep -v '^ *+' conftest.er1 >conftest.err 8086 rm -f conftest.er1 8087 cat conftest.err >&5 8088 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8089 (exit $ac_status); } && { 8090 test -z "$ac_c_werror_flag" || 8091 test ! -s conftest.err 8092 } && test -s conftest.$ac_objext; then 8093 ac_cv_c_bigendian=yes 8094 else 8095 $as_echo "$as_me: failed program was:" >&5 8096 sed 's/^/| /' conftest.$ac_ext >&5 8097 8098 ac_cv_c_bigendian=no 8099 fi 8100 8101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8102 else 8103 $as_echo "$as_me: failed program was:" >&5 8104 sed 's/^/| /' conftest.$ac_ext >&5 8105 8106 8107 fi 8108 8109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8110 fi 8111 if test $ac_cv_c_bigendian = unknown; then 8112 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 8113 cat >conftest.$ac_ext <<_ACEOF 8114 /* confdefs.h. */ 8115 _ACEOF 8116 cat confdefs.h >>conftest.$ac_ext 8117 cat >>conftest.$ac_ext <<_ACEOF 8118 /* end confdefs.h. */ 8119 #include <limits.h> 8120 8121 int 8122 main () 8123 { 8124 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 8125 bogus endian macros 8126 #endif 8127 8128 ; 8129 return 0; 8130 } 8131 _ACEOF 8132 rm -f conftest.$ac_objext 8133 if { (ac_try="$ac_compile" 8134 case "(($ac_try" in 8135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8136 *) ac_try_echo=$ac_try;; 8137 esac 8138 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8139 $as_echo "$ac_try_echo") >&5 8140 (eval "$ac_compile") 2>conftest.er1 8141 ac_status=$? 8142 grep -v '^ *+' conftest.er1 >conftest.err 8143 rm -f conftest.er1 8144 cat conftest.err >&5 8145 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8146 (exit $ac_status); } && { 8147 test -z "$ac_c_werror_flag" || 8148 test ! -s conftest.err 8149 } && test -s conftest.$ac_objext; then 8150 # It does; now see whether it defined to _BIG_ENDIAN or not. 8151 cat >conftest.$ac_ext <<_ACEOF 8152 /* confdefs.h. */ 8153 _ACEOF 8154 cat confdefs.h >>conftest.$ac_ext 8155 cat >>conftest.$ac_ext <<_ACEOF 8156 /* end confdefs.h. */ 8157 #include <limits.h> 8158 8159 int 8160 main () 8161 { 8162 #ifndef _BIG_ENDIAN 8163 not big endian 8164 #endif 8165 8166 ; 8167 return 0; 8168 } 8169 _ACEOF 8170 rm -f conftest.$ac_objext 8171 if { (ac_try="$ac_compile" 8172 case "(($ac_try" in 8173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8174 *) ac_try_echo=$ac_try;; 8175 esac 8176 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8177 $as_echo "$ac_try_echo") >&5 8178 (eval "$ac_compile") 2>conftest.er1 8179 ac_status=$? 8180 grep -v '^ *+' conftest.er1 >conftest.err 8181 rm -f conftest.er1 8182 cat conftest.err >&5 8183 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8184 (exit $ac_status); } && { 8185 test -z "$ac_c_werror_flag" || 8186 test ! -s conftest.err 8187 } && test -s conftest.$ac_objext; then 8188 ac_cv_c_bigendian=yes 8189 else 8190 $as_echo "$as_me: failed program was:" >&5 8191 sed 's/^/| /' conftest.$ac_ext >&5 8192 8193 ac_cv_c_bigendian=no 8194 fi 8195 8196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8197 else 8198 $as_echo "$as_me: failed program was:" >&5 8199 sed 's/^/| /' conftest.$ac_ext >&5 8200 8201 8202 fi 8203 8204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8205 fi 8206 if test $ac_cv_c_bigendian = unknown; then 8207 # Compile a test program. 8208 if test "$cross_compiling" = yes; then 8209 # Try to guess by grepping values from an object file. 8210 cat >conftest.$ac_ext <<_ACEOF 8211 /* confdefs.h. */ 8212 _ACEOF 8213 cat confdefs.h >>conftest.$ac_ext 8214 cat >>conftest.$ac_ext <<_ACEOF 8215 /* end confdefs.h. */ 8216 short int ascii_mm[] = 8217 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 8218 short int ascii_ii[] = 8219 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 8220 int use_ascii (int i) { 8221 return ascii_mm[i] + ascii_ii[i]; 8222 } 8223 short int ebcdic_ii[] = 8224 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 8225 short int ebcdic_mm[] = 8226 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 8227 int use_ebcdic (int i) { 8228 return ebcdic_mm[i] + ebcdic_ii[i]; 8229 } 8230 extern int foo; 8231 8232 int 8233 main () 8234 { 8235 return use_ascii (foo) == use_ebcdic (foo); 8236 ; 8237 return 0; 8238 } 8239 _ACEOF 8240 rm -f conftest.$ac_objext 8241 if { (ac_try="$ac_compile" 8242 case "(($ac_try" in 8243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8244 *) ac_try_echo=$ac_try;; 8245 esac 8246 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8247 $as_echo "$ac_try_echo") >&5 8248 (eval "$ac_compile") 2>conftest.er1 8249 ac_status=$? 8250 grep -v '^ *+' conftest.er1 >conftest.err 8251 rm -f conftest.er1 8252 cat conftest.err >&5 8253 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8254 (exit $ac_status); } && { 8255 test -z "$ac_c_werror_flag" || 8256 test ! -s conftest.err 8257 } && test -s conftest.$ac_objext; then 8258 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 8259 ac_cv_c_bigendian=yes 8260 fi 8261 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 8262 if test "$ac_cv_c_bigendian" = unknown; then 8263 ac_cv_c_bigendian=no 8264 else 8265 # finding both strings is unlikely to happen, but who knows? 8266 ac_cv_c_bigendian=unknown 8267 fi 8268 fi 8269 else 8270 $as_echo "$as_me: failed program was:" >&5 8271 sed 's/^/| /' conftest.$ac_ext >&5 8272 8273 8274 fi 8275 8276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8277 else 8278 cat >conftest.$ac_ext <<_ACEOF 8279 /* confdefs.h. */ 8280 _ACEOF 8281 cat confdefs.h >>conftest.$ac_ext 8282 cat >>conftest.$ac_ext <<_ACEOF 8283 /* end confdefs.h. */ 8284 $ac_includes_default 8285 int 8286 main () 8287 { 8288 8289 /* Are we little or big endian? From Harbison&Steele. */ 8290 union 8291 { 8292 long int l; 8293 char c[sizeof (long int)]; 8294 } u; 8295 u.l = 1; 8296 return u.c[sizeof (long int) - 1] == 1; 8297 8298 ; 8299 return 0; 8300 } 8301 _ACEOF 8302 rm -f conftest$ac_exeext 8303 if { (ac_try="$ac_link" 8304 case "(($ac_try" in 8305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8306 *) ac_try_echo=$ac_try;; 8307 esac 8308 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8309 $as_echo "$ac_try_echo") >&5 8310 (eval "$ac_link") 2>&5 8311 ac_status=$? 8312 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8313 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 8314 { (case "(($ac_try" in 8315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8316 *) ac_try_echo=$ac_try;; 8317 esac 8318 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8319 $as_echo "$ac_try_echo") >&5 8320 (eval "$ac_try") 2>&5 8321 ac_status=$? 8322 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8323 (exit $ac_status); }; }; then 8324 ac_cv_c_bigendian=no 8325 else 8326 $as_echo "$as_me: program exited with status $ac_status" >&5 8327 $as_echo "$as_me: failed program was:" >&5 8328 sed 's/^/| /' conftest.$ac_ext >&5 8329 8330 ( exit $ac_status ) 8331 ac_cv_c_bigendian=yes 8332 fi 8333 rm -rf conftest.dSYM 8334 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 8335 fi 8336 8337 8338 fi 8339 fi 8340 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 8341 $as_echo "$ac_cv_c_bigendian" >&6; } 8342 case $ac_cv_c_bigendian in #( 8343 yes) 8344 cat >>confdefs.h <<\_ACEOF 8345 #define WORDS_BIGENDIAN 1 8346 _ACEOF 8347 ;; #( 8348 no) 8349 ;; #( 8350 universal) 8351 8352 cat >>confdefs.h <<\_ACEOF 8353 #define AC_APPLE_UNIVERSAL_BUILD 1 8354 _ACEOF 8355 8356 ;; #( 8357 *) 8358 { { $as_echo "$as_me:$LINENO: error: unknown endianness 8359 presetting ac_cv_c_bigendian=no (or yes) will help" >&5 8360 $as_echo "$as_me: error: unknown endianness 8361 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} 8362 { (exit 1); exit 1; }; } ;; 8363 esac 8364 8365 if test $ac_cv_c_bigendian = no; then 8366 U_IS_BIG_ENDIAN=0 8367 U_ENDIAN_CHAR="l" 8368 else 8369 U_IS_BIG_ENDIAN=1 8370 U_ENDIAN_CHAR="b" 8371 fi 8372 8373 8374 # Do various POSIX related checks 8375 U_HAVE_NL_LANGINFO_CODESET=0 8376 U_NL_LANGINFO_CODESET=-1 8377 { $as_echo "$as_me:$LINENO: checking for nl_langinfo" >&5 8378 $as_echo_n "checking for nl_langinfo... " >&6; } 8379 if test "${ac_cv_func_nl_langinfo+set}" = set; then 8380 $as_echo_n "(cached) " >&6 8381 else 8382 cat >conftest.$ac_ext <<_ACEOF 8383 /* confdefs.h. */ 8384 _ACEOF 8385 cat confdefs.h >>conftest.$ac_ext 8386 cat >>conftest.$ac_ext <<_ACEOF 8387 /* end confdefs.h. */ 8388 /* Define nl_langinfo to an innocuous variant, in case <limits.h> declares nl_langinfo. 8389 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 8390 #define nl_langinfo innocuous_nl_langinfo 8391 8392 /* System header to define __stub macros and hopefully few prototypes, 8393 which can conflict with char nl_langinfo (); below. 8394 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8395 <limits.h> exists even on freestanding compilers. */ 8396 8397 #ifdef __STDC__ 8398 # include <limits.h> 8399 #else 8400 # include <assert.h> 8401 #endif 8402 8403 #undef nl_langinfo 8404 8405 /* Override any GCC internal prototype to avoid an error. 8406 Use char because int might match the return type of a GCC 8407 builtin and then its argument prototype would still apply. */ 8408 #ifdef __cplusplus 8409 extern "C" 8410 #endif 8411 char nl_langinfo (); 8412 /* The GNU C library defines this for functions which it implements 8413 to always fail with ENOSYS. Some functions are actually named 8414 something starting with __ and the normal name is an alias. */ 8415 #if defined __stub_nl_langinfo || defined __stub___nl_langinfo 8416 choke me 8417 #endif 8418 8419 int 8420 main () 8421 { 8422 return nl_langinfo (); 8423 ; 8424 return 0; 8425 } 8426 _ACEOF 8427 rm -f conftest.$ac_objext conftest$ac_exeext 8428 if { (ac_try="$ac_link" 8429 case "(($ac_try" in 8430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8431 *) ac_try_echo=$ac_try;; 8432 esac 8433 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8434 $as_echo "$ac_try_echo") >&5 8435 (eval "$ac_link") 2>conftest.er1 8436 ac_status=$? 8437 grep -v '^ *+' conftest.er1 >conftest.err 8438 rm -f conftest.er1 8439 cat conftest.err >&5 8440 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8441 (exit $ac_status); } && { 8442 test -z "$ac_c_werror_flag" || 8443 test ! -s conftest.err 8444 } && test -s conftest$ac_exeext && { 8445 test "$cross_compiling" = yes || 8446 $as_test_x conftest$ac_exeext 8447 }; then 8448 ac_cv_func_nl_langinfo=yes 8449 else 8450 $as_echo "$as_me: failed program was:" >&5 8451 sed 's/^/| /' conftest.$ac_ext >&5 8452 8453 ac_cv_func_nl_langinfo=no 8454 fi 8455 8456 rm -rf conftest.dSYM 8457 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8458 conftest$ac_exeext conftest.$ac_ext 8459 fi 8460 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_nl_langinfo" >&5 8461 $as_echo "$ac_cv_func_nl_langinfo" >&6; } 8462 if test "x$ac_cv_func_nl_langinfo" = x""yes; then 8463 U_HAVE_NL_LANGINFO=1 8464 else 8465 U_HAVE_NL_LANGINFO=0 8466 fi 8467 8468 if test $U_HAVE_NL_LANGINFO -eq 1; then 8469 { $as_echo "$as_me:$LINENO: checking for nl_langinfo's argument to obtain the codeset" >&5 8470 $as_echo_n "checking for nl_langinfo's argument to obtain the codeset... " >&6; } 8471 if test "${ac_cv_nl_langinfo_codeset+set}" = set; then 8472 $as_echo_n "(cached) " >&6 8473 else 8474 ac_cv_nl_langinfo_codeset="unknown" 8475 for a in CODESET _NL_CTYPE_CODESET_NAME; do 8476 cat >conftest.$ac_ext <<_ACEOF 8477 /* confdefs.h. */ 8478 _ACEOF 8479 cat confdefs.h >>conftest.$ac_ext 8480 cat >>conftest.$ac_ext <<_ACEOF 8481 /* end confdefs.h. */ 8482 #include <langinfo.h> 8483 int 8484 main () 8485 { 8486 nl_langinfo($a); 8487 ; 8488 return 0; 8489 } 8490 _ACEOF 8491 rm -f conftest.$ac_objext conftest$ac_exeext 8492 if { (ac_try="$ac_link" 8493 case "(($ac_try" in 8494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8495 *) ac_try_echo=$ac_try;; 8496 esac 8497 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8498 $as_echo "$ac_try_echo") >&5 8499 (eval "$ac_link") 2>conftest.er1 8500 ac_status=$? 8501 grep -v '^ *+' conftest.er1 >conftest.err 8502 rm -f conftest.er1 8503 cat conftest.err >&5 8504 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8505 (exit $ac_status); } && { 8506 test -z "$ac_c_werror_flag" || 8507 test ! -s conftest.err 8508 } && test -s conftest$ac_exeext && { 8509 test "$cross_compiling" = yes || 8510 $as_test_x conftest$ac_exeext 8511 }; then 8512 ac_cv_nl_langinfo_codeset="$a"; break 8513 else 8514 $as_echo "$as_me: failed program was:" >&5 8515 sed 's/^/| /' conftest.$ac_ext >&5 8516 8517 8518 fi 8519 8520 rm -rf conftest.dSYM 8521 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8522 conftest$ac_exeext conftest.$ac_ext 8523 done 8524 fi 8525 { $as_echo "$as_me:$LINENO: result: $ac_cv_nl_langinfo_codeset" >&5 8526 $as_echo "$ac_cv_nl_langinfo_codeset" >&6; } 8527 if test x$ac_cv_nl_langinfo_codeset != xunknown 8528 then 8529 U_HAVE_NL_LANGINFO_CODESET=1 8530 U_NL_LANGINFO_CODESET=$ac_cv_nl_langinfo_codeset 8531 fi 8532 fi 8533 8534 8535 8536 # Namespace support checks 8537 ac_ext=cpp 8538 ac_cpp='$CXXCPP $CPPFLAGS' 8539 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8540 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8541 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 8542 8543 { $as_echo "$as_me:$LINENO: checking for namespace support" >&5 8544 $as_echo_n "checking for namespace support... " >&6; } 8545 if test "${ac_cv_namespace_ok+set}" = set; then 8546 $as_echo_n "(cached) " >&6 8547 else 8548 cat >conftest.$ac_ext <<_ACEOF 8549 /* confdefs.h. */ 8550 _ACEOF 8551 cat confdefs.h >>conftest.$ac_ext 8552 cat >>conftest.$ac_ext <<_ACEOF 8553 /* end confdefs.h. */ 8554 namespace x_version {void f(){}} 8555 namespace x = x_version; 8556 using namespace x_version; 8557 8558 int 8559 main () 8560 { 8561 f(); 8562 ; 8563 return 0; 8564 } 8565 _ACEOF 8566 rm -f conftest.$ac_objext conftest$ac_exeext 8567 if { (ac_try="$ac_link" 8568 case "(($ac_try" in 8569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8570 *) ac_try_echo=$ac_try;; 8571 esac 8572 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8573 $as_echo "$ac_try_echo") >&5 8574 (eval "$ac_link") 2>conftest.er1 8575 ac_status=$? 8576 grep -v '^ *+' conftest.er1 >conftest.err 8577 rm -f conftest.er1 8578 cat conftest.err >&5 8579 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8580 (exit $ac_status); } && { 8581 test -z "$ac_cxx_werror_flag" || 8582 test ! -s conftest.err 8583 } && test -s conftest$ac_exeext && { 8584 test "$cross_compiling" = yes || 8585 $as_test_x conftest$ac_exeext 8586 }; then 8587 ac_cv_namespace_ok=yes 8588 else 8589 $as_echo "$as_me: failed program was:" >&5 8590 sed 's/^/| /' conftest.$ac_ext >&5 8591 8592 ac_cv_namespace_ok=no 8593 fi 8594 8595 rm -rf conftest.dSYM 8596 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8597 conftest$ac_exeext conftest.$ac_ext 8598 fi 8599 8600 { $as_echo "$as_me:$LINENO: result: $ac_cv_namespace_ok" >&5 8601 $as_echo "$ac_cv_namespace_ok" >&6; } 8602 U_HAVE_NAMESPACE=1 8603 if test $ac_cv_namespace_ok = no 8604 then 8605 U_HAVE_NAMESPACE=0 8606 fi 8607 8608 8609 { $as_echo "$as_me:$LINENO: checking for properly overriding new and delete" >&5 8610 $as_echo_n "checking for properly overriding new and delete... " >&6; } 8611 U_OVERRIDE_CXX_ALLOCATION=0 8612 U_HAVE_PLACEMENT_NEW=0 8613 if test "${ac_cv_override_cxx_allocation_ok+set}" = set; then 8614 $as_echo_n "(cached) " >&6 8615 else 8616 cat >conftest.$ac_ext <<_ACEOF 8617 /* confdefs.h. */ 8618 _ACEOF 8619 cat confdefs.h >>conftest.$ac_ext 8620 cat >>conftest.$ac_ext <<_ACEOF 8621 /* end confdefs.h. */ 8622 #include <stdlib.h> 8623 class UMemory { 8624 public: 8625 void *operator new(size_t size) {return malloc(size);} 8626 void *operator new[](size_t size) {return malloc(size);} 8627 void operator delete(void *p) {free(p);} 8628 void operator delete[](void *p) {free(p);} 8629 }; 8630 8631 int 8632 main () 8633 { 8634 8635 ; 8636 return 0; 8637 } 8638 _ACEOF 8639 rm -f conftest.$ac_objext conftest$ac_exeext 8640 if { (ac_try="$ac_link" 8641 case "(($ac_try" in 8642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8643 *) ac_try_echo=$ac_try;; 8644 esac 8645 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8646 $as_echo "$ac_try_echo") >&5 8647 (eval "$ac_link") 2>conftest.er1 8648 ac_status=$? 8649 grep -v '^ *+' conftest.er1 >conftest.err 8650 rm -f conftest.er1 8651 cat conftest.err >&5 8652 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8653 (exit $ac_status); } && { 8654 test -z "$ac_cxx_werror_flag" || 8655 test ! -s conftest.err 8656 } && test -s conftest$ac_exeext && { 8657 test "$cross_compiling" = yes || 8658 $as_test_x conftest$ac_exeext 8659 }; then 8660 ac_cv_override_cxx_allocation_ok=yes 8661 else 8662 $as_echo "$as_me: failed program was:" >&5 8663 sed 's/^/| /' conftest.$ac_ext >&5 8664 8665 ac_cv_override_cxx_allocation_ok=no 8666 fi 8667 8668 rm -rf conftest.dSYM 8669 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8670 conftest$ac_exeext conftest.$ac_ext 8671 fi 8672 8673 { $as_echo "$as_me:$LINENO: result: $ac_cv_override_cxx_allocation_ok" >&5 8674 $as_echo "$ac_cv_override_cxx_allocation_ok" >&6; } 8675 if test $ac_cv_override_cxx_allocation_ok = yes 8676 then 8677 U_OVERRIDE_CXX_ALLOCATION=1 8678 { $as_echo "$as_me:$LINENO: checking for placement new and delete" >&5 8679 $as_echo_n "checking for placement new and delete... " >&6; } 8680 if test "${ac_cv_override_placement_new_ok+set}" = set; then 8681 $as_echo_n "(cached) " >&6 8682 else 8683 cat >conftest.$ac_ext <<_ACEOF 8684 /* confdefs.h. */ 8685 _ACEOF 8686 cat confdefs.h >>conftest.$ac_ext 8687 cat >>conftest.$ac_ext <<_ACEOF 8688 /* end confdefs.h. */ 8689 #include <stdlib.h> 8690 class UMemory { 8691 public: 8692 void *operator new(size_t size) {return malloc(size);} 8693 void *operator new[](size_t size) {return malloc(size);} 8694 void operator delete(void *p) {free(p);} 8695 void operator delete[](void *p) {free(p);} 8696 void * operator new(size_t, void *ptr) { return ptr; } 8697 void operator delete(void *, void *) {} 8698 }; 8699 8700 int 8701 main () 8702 { 8703 8704 ; 8705 return 0; 8706 } 8707 _ACEOF 8708 rm -f conftest.$ac_objext conftest$ac_exeext 8709 if { (ac_try="$ac_link" 8710 case "(($ac_try" in 8711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8712 *) ac_try_echo=$ac_try;; 8713 esac 8714 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8715 $as_echo "$ac_try_echo") >&5 8716 (eval "$ac_link") 2>conftest.er1 8717 ac_status=$? 8718 grep -v '^ *+' conftest.er1 >conftest.err 8719 rm -f conftest.er1 8720 cat conftest.err >&5 8721 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8722 (exit $ac_status); } && { 8723 test -z "$ac_cxx_werror_flag" || 8724 test ! -s conftest.err 8725 } && test -s conftest$ac_exeext && { 8726 test "$cross_compiling" = yes || 8727 $as_test_x conftest$ac_exeext 8728 }; then 8729 ac_cv_override_placement_new_ok=yes 8730 else 8731 $as_echo "$as_me: failed program was:" >&5 8732 sed 's/^/| /' conftest.$ac_ext >&5 8733 8734 ac_cv_override_placement_new_ok=no 8735 fi 8736 8737 rm -rf conftest.dSYM 8738 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8739 conftest$ac_exeext conftest.$ac_ext 8740 fi 8741 8742 { $as_echo "$as_me:$LINENO: result: $ac_cv_override_placement_new_ok" >&5 8743 $as_echo "$ac_cv_override_placement_new_ok" >&6; } 8744 if test $ac_cv_override_placement_new_ok = yes 8745 then 8746 U_HAVE_PLACEMENT_NEW=1 8747 fi 8748 fi 8749 8750 8751 8752 # gcc atomic built-in functions check 8753 # AC_TRY_LINK([], [int foo, bar; bar = __sync_val_compare_and_swap(&foo, 0, 1);],, 8754 ac_ext=c 8755 ac_cpp='$CPP $CPPFLAGS' 8756 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8757 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8758 ac_compiler_gnu=$ac_cv_c_compiler_gnu 8759 8760 { $as_echo "$as_me:$LINENO: checking for gcc atomic functions" >&5 8761 $as_echo_n "checking for gcc atomic functions... " >&6; } 8762 cat >conftest.$ac_ext <<_ACEOF 8763 /* confdefs.h. */ 8764 _ACEOF 8765 cat confdefs.h >>conftest.$ac_ext 8766 cat >>conftest.$ac_ext <<_ACEOF 8767 /* end confdefs.h. */ 8768 8769 void *p; 8770 int i; 8771 8772 int 8773 main () 8774 { 8775 8776 __sync_fetch_and_add(&i, 1); 8777 __sync_fetch_and_sub(&i, 1); 8778 __sync_val_compare_and_swap(&p, 0, 0); 8779 8780 8781 ; 8782 return 0; 8783 } 8784 _ACEOF 8785 rm -f conftest.$ac_objext conftest$ac_exeext 8786 if { (ac_try="$ac_link" 8787 case "(($ac_try" in 8788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8789 *) ac_try_echo=$ac_try;; 8790 esac 8791 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8792 $as_echo "$ac_try_echo") >&5 8793 (eval "$ac_link") 2>conftest.er1 8794 ac_status=$? 8795 grep -v '^ *+' conftest.er1 >conftest.err 8796 rm -f conftest.er1 8797 cat conftest.err >&5 8798 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8799 (exit $ac_status); } && { 8800 test -z "$ac_c_werror_flag" || 8801 test ! -s conftest.err 8802 } && test -s conftest$ac_exeext && { 8803 test "$cross_compiling" = yes || 8804 $as_test_x conftest$ac_exeext 8805 }; then 8806 U_HAVE_GCC_ATOMICS=1; { $as_echo "$as_me:$LINENO: result: yes" >&5 8807 $as_echo "yes" >&6; } 8808 else 8809 $as_echo "$as_me: failed program was:" >&5 8810 sed 's/^/| /' conftest.$ac_ext >&5 8811 8812 U_HAVE_GCC_ATOMICS=0; { $as_echo "$as_me:$LINENO: result: no" >&5 8813 $as_echo "no" >&6; } 8814 fi 8815 8816 rm -rf conftest.dSYM 8817 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8818 conftest$ac_exeext conftest.$ac_ext 8819 8820 8821 ac_ext=c 8822 ac_cpp='$CPP $CPPFLAGS' 8823 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8824 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8825 ac_compiler_gnu=$ac_cv_c_compiler_gnu 8826 8827 { $as_echo "$as_me:$LINENO: checking for popen" >&5 8828 $as_echo_n "checking for popen... " >&6; } 8829 if test "${ac_cv_func_popen+set}" = set; then 8830 $as_echo_n "(cached) " >&6 8831 else 8832 cat >conftest.$ac_ext <<_ACEOF 8833 /* confdefs.h. */ 8834 _ACEOF 8835 cat confdefs.h >>conftest.$ac_ext 8836 cat >>conftest.$ac_ext <<_ACEOF 8837 /* end confdefs.h. */ 8838 /* Define popen to an innocuous variant, in case <limits.h> declares popen. 8839 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 8840 #define popen innocuous_popen 8841 8842 /* System header to define __stub macros and hopefully few prototypes, 8843 which can conflict with char popen (); below. 8844 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8845 <limits.h> exists even on freestanding compilers. */ 8846 8847 #ifdef __STDC__ 8848 # include <limits.h> 8849 #else 8850 # include <assert.h> 8851 #endif 8852 8853 #undef popen 8854 8855 /* Override any GCC internal prototype to avoid an error. 8856 Use char because int might match the return type of a GCC 8857 builtin and then its argument prototype would still apply. */ 8858 #ifdef __cplusplus 8859 extern "C" 8860 #endif 8861 char popen (); 8862 /* The GNU C library defines this for functions which it implements 8863 to always fail with ENOSYS. Some functions are actually named 8864 something starting with __ and the normal name is an alias. */ 8865 #if defined __stub_popen || defined __stub___popen 8866 choke me 8867 #endif 8868 8869 int 8870 main () 8871 { 8872 return popen (); 8873 ; 8874 return 0; 8875 } 8876 _ACEOF 8877 rm -f conftest.$ac_objext conftest$ac_exeext 8878 if { (ac_try="$ac_link" 8879 case "(($ac_try" in 8880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8881 *) ac_try_echo=$ac_try;; 8882 esac 8883 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8884 $as_echo "$ac_try_echo") >&5 8885 (eval "$ac_link") 2>conftest.er1 8886 ac_status=$? 8887 grep -v '^ *+' conftest.er1 >conftest.err 8888 rm -f conftest.er1 8889 cat conftest.err >&5 8890 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8891 (exit $ac_status); } && { 8892 test -z "$ac_c_werror_flag" || 8893 test ! -s conftest.err 8894 } && test -s conftest$ac_exeext && { 8895 test "$cross_compiling" = yes || 8896 $as_test_x conftest$ac_exeext 8897 }; then 8898 ac_cv_func_popen=yes 8899 else 8900 $as_echo "$as_me: failed program was:" >&5 8901 sed 's/^/| /' conftest.$ac_ext >&5 8902 8903 ac_cv_func_popen=no 8904 fi 8905 8906 rm -rf conftest.dSYM 8907 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8908 conftest$ac_exeext conftest.$ac_ext 8909 fi 8910 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_popen" >&5 8911 $as_echo "$ac_cv_func_popen" >&6; } 8912 8913 if test x$ac_cv_func_popen = xyes 8914 then 8915 U_HAVE_POPEN=1 8916 else 8917 U_HAVE_POPEN=0 8918 fi 8919 8920 8921 { $as_echo "$as_me:$LINENO: checking for tzset" >&5 8922 $as_echo_n "checking for tzset... " >&6; } 8923 if test "${ac_cv_func_tzset+set}" = set; then 8924 $as_echo_n "(cached) " >&6 8925 else 8926 cat >conftest.$ac_ext <<_ACEOF 8927 /* confdefs.h. */ 8928 _ACEOF 8929 cat confdefs.h >>conftest.$ac_ext 8930 cat >>conftest.$ac_ext <<_ACEOF 8931 /* end confdefs.h. */ 8932 /* Define tzset to an innocuous variant, in case <limits.h> declares tzset. 8933 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 8934 #define tzset innocuous_tzset 8935 8936 /* System header to define __stub macros and hopefully few prototypes, 8937 which can conflict with char tzset (); below. 8938 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8939 <limits.h> exists even on freestanding compilers. */ 8940 8941 #ifdef __STDC__ 8942 # include <limits.h> 8943 #else 8944 # include <assert.h> 8945 #endif 8946 8947 #undef tzset 8948 8949 /* Override any GCC internal prototype to avoid an error. 8950 Use char because int might match the return type of a GCC 8951 builtin and then its argument prototype would still apply. */ 8952 #ifdef __cplusplus 8953 extern "C" 8954 #endif 8955 char tzset (); 8956 /* The GNU C library defines this for functions which it implements 8957 to always fail with ENOSYS. Some functions are actually named 8958 something starting with __ and the normal name is an alias. */ 8959 #if defined __stub_tzset || defined __stub___tzset 8960 choke me 8961 #endif 8962 8963 int 8964 main () 8965 { 8966 return tzset (); 8967 ; 8968 return 0; 8969 } 8970 _ACEOF 8971 rm -f conftest.$ac_objext conftest$ac_exeext 8972 if { (ac_try="$ac_link" 8973 case "(($ac_try" in 8974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8975 *) ac_try_echo=$ac_try;; 8976 esac 8977 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8978 $as_echo "$ac_try_echo") >&5 8979 (eval "$ac_link") 2>conftest.er1 8980 ac_status=$? 8981 grep -v '^ *+' conftest.er1 >conftest.err 8982 rm -f conftest.er1 8983 cat conftest.err >&5 8984 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8985 (exit $ac_status); } && { 8986 test -z "$ac_c_werror_flag" || 8987 test ! -s conftest.err 8988 } && test -s conftest$ac_exeext && { 8989 test "$cross_compiling" = yes || 8990 $as_test_x conftest$ac_exeext 8991 }; then 8992 ac_cv_func_tzset=yes 8993 else 8994 $as_echo "$as_me: failed program was:" >&5 8995 sed 's/^/| /' conftest.$ac_ext >&5 8996 8997 ac_cv_func_tzset=no 8998 fi 8999 9000 rm -rf conftest.dSYM 9001 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9002 conftest$ac_exeext conftest.$ac_ext 9003 fi 9004 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_tzset" >&5 9005 $as_echo "$ac_cv_func_tzset" >&6; } 9006 9007 U_HAVE_TZSET=0 9008 if test x$ac_cv_func_tzset = xyes 9009 then 9010 U_TZSET=tzset 9011 U_HAVE_TZSET=1 9012 else 9013 { $as_echo "$as_me:$LINENO: checking for _tzset" >&5 9014 $as_echo_n "checking for _tzset... " >&6; } 9015 if test "${ac_cv_func__tzset+set}" = set; then 9016 $as_echo_n "(cached) " >&6 9017 else 9018 cat >conftest.$ac_ext <<_ACEOF 9019 /* confdefs.h. */ 9020 _ACEOF 9021 cat confdefs.h >>conftest.$ac_ext 9022 cat >>conftest.$ac_ext <<_ACEOF 9023 /* end confdefs.h. */ 9024 /* Define _tzset to an innocuous variant, in case <limits.h> declares _tzset. 9025 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 9026 #define _tzset innocuous__tzset 9027 9028 /* System header to define __stub macros and hopefully few prototypes, 9029 which can conflict with char _tzset (); below. 9030 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9031 <limits.h> exists even on freestanding compilers. */ 9032 9033 #ifdef __STDC__ 9034 # include <limits.h> 9035 #else 9036 # include <assert.h> 9037 #endif 9038 9039 #undef _tzset 9040 9041 /* Override any GCC internal prototype to avoid an error. 9042 Use char because int might match the return type of a GCC 9043 builtin and then its argument prototype would still apply. */ 9044 #ifdef __cplusplus 9045 extern "C" 9046 #endif 9047 char _tzset (); 9048 /* The GNU C library defines this for functions which it implements 9049 to always fail with ENOSYS. Some functions are actually named 9050 something starting with __ and the normal name is an alias. */ 9051 #if defined __stub__tzset || defined __stub____tzset 9052 choke me 9053 #endif 9054 9055 int 9056 main () 9057 { 9058 return _tzset (); 9059 ; 9060 return 0; 9061 } 9062 _ACEOF 9063 rm -f conftest.$ac_objext conftest$ac_exeext 9064 if { (ac_try="$ac_link" 9065 case "(($ac_try" in 9066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9067 *) ac_try_echo=$ac_try;; 9068 esac 9069 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 9070 $as_echo "$ac_try_echo") >&5 9071 (eval "$ac_link") 2>conftest.er1 9072 ac_status=$? 9073 grep -v '^ *+' conftest.er1 >conftest.err 9074 rm -f conftest.er1 9075 cat conftest.err >&5 9076 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9077 (exit $ac_status); } && { 9078 test -z "$ac_c_werror_flag" || 9079 test ! -s conftest.err 9080 } && test -s conftest$ac_exeext && { 9081 test "$cross_compiling" = yes || 9082 $as_test_x conftest$ac_exeext 9083 }; then 9084 ac_cv_func__tzset=yes 9085 else 9086 $as_echo "$as_me: failed program was:" >&5 9087 sed 's/^/| /' conftest.$ac_ext >&5 9088 9089 ac_cv_func__tzset=no 9090 fi 9091 9092 rm -rf conftest.dSYM 9093 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9094 conftest$ac_exeext conftest.$ac_ext 9095 fi 9096 { $as_echo "$as_me:$LINENO: result: $ac_cv_func__tzset" >&5 9097 $as_echo "$ac_cv_func__tzset" >&6; } 9098 9099 if test x$ac_cv_func__tzset = xyes 9100 then 9101 U_TZSET=_tzset 9102 U_HAVE_TZSET=1 9103 fi 9104 fi 9105 9106 9107 9108 U_HAVE_TZNAME=0 9109 { $as_echo "$as_me:$LINENO: checking for tzname" >&5 9110 $as_echo_n "checking for tzname... " >&6; } 9111 if test "${ac_cv_var_tzname+set}" = set; then 9112 $as_echo_n "(cached) " >&6 9113 else 9114 cat >conftest.$ac_ext <<_ACEOF 9115 /* confdefs.h. */ 9116 _ACEOF 9117 cat confdefs.h >>conftest.$ac_ext 9118 cat >>conftest.$ac_ext <<_ACEOF 9119 /* end confdefs.h. */ 9120 #ifndef __USE_POSIX 9121 #define __USE_POSIX 9122 #endif 9123 #include <stdlib.h> 9124 #include <time.h> 9125 #ifndef tzname /* For SGI. */ 9126 extern char *tzname[]; /* RS6000 and others reject char **tzname. */ 9127 #endif 9128 int 9129 main () 9130 { 9131 atoi(*tzname); 9132 ; 9133 return 0; 9134 } 9135 _ACEOF 9136 rm -f conftest.$ac_objext conftest$ac_exeext 9137 if { (ac_try="$ac_link" 9138 case "(($ac_try" in 9139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9140 *) ac_try_echo=$ac_try;; 9141 esac 9142 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 9143 $as_echo "$ac_try_echo") >&5 9144 (eval "$ac_link") 2>conftest.er1 9145 ac_status=$? 9146 grep -v '^ *+' conftest.er1 >conftest.err 9147 rm -f conftest.er1 9148 cat conftest.err >&5 9149 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9150 (exit $ac_status); } && { 9151 test -z "$ac_c_werror_flag" || 9152 test ! -s conftest.err 9153 } && test -s conftest$ac_exeext && { 9154 test "$cross_compiling" = yes || 9155 $as_test_x conftest$ac_exeext 9156 }; then 9157 ac_cv_var_tzname=yes 9158 else 9159 $as_echo "$as_me: failed program was:" >&5 9160 sed 's/^/| /' conftest.$ac_ext >&5 9161 9162 ac_cv_var_tzname=no 9163 fi 9164 9165 rm -rf conftest.dSYM 9166 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9167 conftest$ac_exeext conftest.$ac_ext 9168 fi 9169 { $as_echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5 9170 $as_echo "$ac_cv_var_tzname" >&6; } 9171 if test $ac_cv_var_tzname = yes; then 9172 U_TZNAME=tzname 9173 U_HAVE_TZNAME=1 9174 else 9175 { $as_echo "$as_me:$LINENO: checking for _tzname" >&5 9176 $as_echo_n "checking for _tzname... " >&6; } 9177 if test "${ac_cv_var__tzname+set}" = set; then 9178 $as_echo_n "(cached) " >&6 9179 else 9180 cat >conftest.$ac_ext <<_ACEOF 9181 /* confdefs.h. */ 9182 _ACEOF 9183 cat confdefs.h >>conftest.$ac_ext 9184 cat >>conftest.$ac_ext <<_ACEOF 9185 /* end confdefs.h. */ 9186 #include <stdlib.h> 9187 #include <time.h> 9188 extern char *_tzname[]; 9189 int 9190 main () 9191 { 9192 atoi(*_tzname); 9193 ; 9194 return 0; 9195 } 9196 _ACEOF 9197 rm -f conftest.$ac_objext conftest$ac_exeext 9198 if { (ac_try="$ac_link" 9199 case "(($ac_try" in 9200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9201 *) ac_try_echo=$ac_try;; 9202 esac 9203 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 9204 $as_echo "$ac_try_echo") >&5 9205 (eval "$ac_link") 2>conftest.er1 9206 ac_status=$? 9207 grep -v '^ *+' conftest.er1 >conftest.err 9208 rm -f conftest.er1 9209 cat conftest.err >&5 9210 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9211 (exit $ac_status); } && { 9212 test -z "$ac_c_werror_flag" || 9213 test ! -s conftest.err 9214 } && test -s conftest$ac_exeext && { 9215 test "$cross_compiling" = yes || 9216 $as_test_x conftest$ac_exeext 9217 }; then 9218 ac_cv_var__tzname=yes 9219 else 9220 $as_echo "$as_me: failed program was:" >&5 9221 sed 's/^/| /' conftest.$ac_ext >&5 9222 9223 ac_cv_var__tzname=no 9224 fi 9225 9226 rm -rf conftest.dSYM 9227 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9228 conftest$ac_exeext conftest.$ac_ext 9229 fi 9230 { $as_echo "$as_me:$LINENO: result: $ac_cv_var__tzname" >&5 9231 $as_echo "$ac_cv_var__tzname" >&6; } 9232 if test $ac_cv_var__tzname = yes; then 9233 U_TZNAME=_tzname 9234 U_HAVE_TZNAME=1 9235 fi 9236 fi 9237 9238 9239 9240 { $as_echo "$as_me:$LINENO: checking for timezone" >&5 9241 $as_echo_n "checking for timezone... " >&6; } 9242 if test "${ac_cv_var_timezone+set}" = set; then 9243 $as_echo_n "(cached) " >&6 9244 else 9245 cat >conftest.$ac_ext <<_ACEOF 9246 /* confdefs.h. */ 9247 _ACEOF 9248 cat confdefs.h >>conftest.$ac_ext 9249 cat >>conftest.$ac_ext <<_ACEOF 9250 /* end confdefs.h. */ 9251 #ifndef __USE_POSIX 9252 #define __USE_POSIX 9253 #endif 9254 #ifndef __USE_XOPEN 9255 #define __USE_XOPEN 9256 #endif 9257 #include <time.h> 9258 9259 int 9260 main () 9261 { 9262 timezone = 1; 9263 ; 9264 return 0; 9265 } 9266 _ACEOF 9267 rm -f conftest.$ac_objext conftest$ac_exeext 9268 if { (ac_try="$ac_link" 9269 case "(($ac_try" in 9270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9271 *) ac_try_echo=$ac_try;; 9272 esac 9273 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 9274 $as_echo "$ac_try_echo") >&5 9275 (eval "$ac_link") 2>conftest.er1 9276 ac_status=$? 9277 grep -v '^ *+' conftest.er1 >conftest.err 9278 rm -f conftest.er1 9279 cat conftest.err >&5 9280 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9281 (exit $ac_status); } && { 9282 test -z "$ac_c_werror_flag" || 9283 test ! -s conftest.err 9284 } && test -s conftest$ac_exeext && { 9285 test "$cross_compiling" = yes || 9286 $as_test_x conftest$ac_exeext 9287 }; then 9288 ac_cv_var_timezone=yes 9289 else 9290 $as_echo "$as_me: failed program was:" >&5 9291 sed 's/^/| /' conftest.$ac_ext >&5 9292 9293 ac_cv_var_timezone=no 9294 fi 9295 9296 rm -rf conftest.dSYM 9297 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9298 conftest$ac_exeext conftest.$ac_ext 9299 fi 9300 { $as_echo "$as_me:$LINENO: result: $ac_cv_var_timezone" >&5 9301 $as_echo "$ac_cv_var_timezone" >&6; } 9302 U_HAVE_TIMEZONE=0 9303 if test $ac_cv_var_timezone = yes; then 9304 U_TIMEZONE=timezone 9305 U_HAVE_TIMEZONE=1 9306 else 9307 { $as_echo "$as_me:$LINENO: checking for __timezone" >&5 9308 $as_echo_n "checking for __timezone... " >&6; } 9309 if test "${ac_cv_var___timezone+set}" = set; then 9310 $as_echo_n "(cached) " >&6 9311 else 9312 cat >conftest.$ac_ext <<_ACEOF 9313 /* confdefs.h. */ 9314 _ACEOF 9315 cat confdefs.h >>conftest.$ac_ext 9316 cat >>conftest.$ac_ext <<_ACEOF 9317 /* end confdefs.h. */ 9318 #include <time.h> 9319 int 9320 main () 9321 { 9322 __timezone = 1; 9323 ; 9324 return 0; 9325 } 9326 _ACEOF 9327 rm -f conftest.$ac_objext conftest$ac_exeext 9328 if { (ac_try="$ac_link" 9329 case "(($ac_try" in 9330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9331 *) ac_try_echo=$ac_try;; 9332 esac 9333 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 9334 $as_echo "$ac_try_echo") >&5 9335 (eval "$ac_link") 2>conftest.er1 9336 ac_status=$? 9337 grep -v '^ *+' conftest.er1 >conftest.err 9338 rm -f conftest.er1 9339 cat conftest.err >&5 9340 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9341 (exit $ac_status); } && { 9342 test -z "$ac_c_werror_flag" || 9343 test ! -s conftest.err 9344 } && test -s conftest$ac_exeext && { 9345 test "$cross_compiling" = yes || 9346 $as_test_x conftest$ac_exeext 9347 }; then 9348 ac_cv_var___timezone=yes 9349 else 9350 $as_echo "$as_me: failed program was:" >&5 9351 sed 's/^/| /' conftest.$ac_ext >&5 9352 9353 ac_cv_var___timezone=no 9354 fi 9355 9356 rm -rf conftest.dSYM 9357 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9358 conftest$ac_exeext conftest.$ac_ext 9359 fi 9360 { $as_echo "$as_me:$LINENO: result: $ac_cv_var___timezone" >&5 9361 $as_echo "$ac_cv_var___timezone" >&6; } 9362 if test $ac_cv_var___timezone = yes; then 9363 U_TIMEZONE=__timezone 9364 U_HAVE_TIMEZONE=1 9365 else 9366 { $as_echo "$as_me:$LINENO: checking for _timezone" >&5 9367 $as_echo_n "checking for _timezone... " >&6; } 9368 if test "${ac_cv_var__timezone+set}" = set; then 9369 $as_echo_n "(cached) " >&6 9370 else 9371 cat >conftest.$ac_ext <<_ACEOF 9372 /* confdefs.h. */ 9373 _ACEOF 9374 cat confdefs.h >>conftest.$ac_ext 9375 cat >>conftest.$ac_ext <<_ACEOF 9376 /* end confdefs.h. */ 9377 #include <time.h> 9378 int 9379 main () 9380 { 9381 _timezone = 1; 9382 ; 9383 return 0; 9384 } 9385 _ACEOF 9386 rm -f conftest.$ac_objext conftest$ac_exeext 9387 if { (ac_try="$ac_link" 9388 case "(($ac_try" in 9389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9390 *) ac_try_echo=$ac_try;; 9391 esac 9392 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 9393 $as_echo "$ac_try_echo") >&5 9394 (eval "$ac_link") 2>conftest.er1 9395 ac_status=$? 9396 grep -v '^ *+' conftest.er1 >conftest.err 9397 rm -f conftest.er1 9398 cat conftest.err >&5 9399 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9400 (exit $ac_status); } && { 9401 test -z "$ac_c_werror_flag" || 9402 test ! -s conftest.err 9403 } && test -s conftest$ac_exeext && { 9404 test "$cross_compiling" = yes || 9405 $as_test_x conftest$ac_exeext 9406 }; then 9407 ac_cv_var__timezone=yes 9408 else 9409 $as_echo "$as_me: failed program was:" >&5 9410 sed 's/^/| /' conftest.$ac_ext >&5 9411 9412 ac_cv_var__timezone=no 9413 fi 9414 9415 rm -rf conftest.dSYM 9416 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9417 conftest$ac_exeext conftest.$ac_ext 9418 fi 9419 { $as_echo "$as_me:$LINENO: result: $ac_cv_var__timezone" >&5 9420 $as_echo "$ac_cv_var__timezone" >&6; } 9421 if test $ac_cv_var__timezone = yes; then 9422 U_TIMEZONE=_timezone 9423 U_HAVE_TIMEZONE=1 9424 fi 9425 fi 9426 fi 9427 9428 9429 9430 # Checks for typedefs 9431 { $as_echo "$as_me:$LINENO: checking for int8_t" >&5 9432 $as_echo_n "checking for int8_t... " >&6; } 9433 if test "${ac_cv_type_int8_t+set}" = set; then 9434 $as_echo_n "(cached) " >&6 9435 else 9436 ac_cv_type_int8_t=no 9437 cat >conftest.$ac_ext <<_ACEOF 9438 /* confdefs.h. */ 9439 _ACEOF 9440 cat confdefs.h >>conftest.$ac_ext 9441 cat >>conftest.$ac_ext <<_ACEOF 9442 /* end confdefs.h. */ 9443 $ac_includes_default 9444 int 9445 main () 9446 { 9447 if (sizeof (int8_t)) 9448 return 0; 9449 ; 9450 return 0; 9451 } 9452 _ACEOF 9453 rm -f conftest.$ac_objext 9454 if { (ac_try="$ac_compile" 9455 case "(($ac_try" in 9456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9457 *) ac_try_echo=$ac_try;; 9458 esac 9459 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 9460 $as_echo "$ac_try_echo") >&5 9461 (eval "$ac_compile") 2>conftest.er1 9462 ac_status=$? 9463 grep -v '^ *+' conftest.er1 >conftest.err 9464 rm -f conftest.er1 9465 cat conftest.err >&5 9466 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9467 (exit $ac_status); } && { 9468 test -z "$ac_c_werror_flag" || 9469 test ! -s conftest.err 9470 } && test -s conftest.$ac_objext; then 9471 cat >conftest.$ac_ext <<_ACEOF 9472 /* confdefs.h. */ 9473 _ACEOF 9474 cat confdefs.h >>conftest.$ac_ext 9475 cat >>conftest.$ac_ext <<_ACEOF 9476 /* end confdefs.h. */ 9477 $ac_includes_default 9478 int 9479 main () 9480 { 9481 if (sizeof ((int8_t))) 9482 return 0; 9483 ; 9484 return 0; 9485 } 9486 _ACEOF 9487 rm -f conftest.$ac_objext 9488 if { (ac_try="$ac_compile" 9489 case "(($ac_try" in 9490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9491 *) ac_try_echo=$ac_try;; 9492 esac 9493 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 9494 $as_echo "$ac_try_echo") >&5 9495 (eval "$ac_compile") 2>conftest.er1 9496 ac_status=$? 9497 grep -v '^ *+' conftest.er1 >conftest.err 9498 rm -f conftest.er1 9499 cat conftest.err >&5 9500 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9501 (exit $ac_status); } && { 9502 test -z "$ac_c_werror_flag" || 9503 test ! -s conftest.err 9504 } && test -s conftest.$ac_objext; then 9505 : 9506 else 9507 $as_echo "$as_me: failed program was:" >&5 9508 sed 's/^/| /' conftest.$ac_ext >&5 9509 9510 ac_cv_type_int8_t=yes 9511 fi 9512 9513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9514 else 9515 $as_echo "$as_me: failed program was:" >&5 9516 sed 's/^/| /' conftest.$ac_ext >&5 9517 9518 9519 fi 9520 9521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9522 fi 9523 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_int8_t" >&5 9524 $as_echo "$ac_cv_type_int8_t" >&6; } 9525 if test "x$ac_cv_type_int8_t" = x""yes; then 9526 : 9527 else 9528 9529 cat >>confdefs.h <<_ACEOF 9530 #define int8_t signed char 9531 _ACEOF 9532 9533 fi 9534 9535 { $as_echo "$as_me:$LINENO: checking for uint8_t" >&5 9536 $as_echo_n "checking for uint8_t... " >&6; } 9537 if test "${ac_cv_type_uint8_t+set}" = set; then 9538 $as_echo_n "(cached) " >&6 9539 else 9540 ac_cv_type_uint8_t=no 9541 cat >conftest.$ac_ext <<_ACEOF 9542 /* confdefs.h. */ 9543 _ACEOF 9544 cat confdefs.h >>conftest.$ac_ext 9545 cat >>conftest.$ac_ext <<_ACEOF 9546 /* end confdefs.h. */ 9547 $ac_includes_default 9548 int 9549 main () 9550 { 9551 if (sizeof (uint8_t)) 9552 return 0; 9553 ; 9554 return 0; 9555 } 9556 _ACEOF 9557 rm -f conftest.$ac_objext 9558 if { (ac_try="$ac_compile" 9559 case "(($ac_try" in 9560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9561 *) ac_try_echo=$ac_try;; 9562 esac 9563 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 9564 $as_echo "$ac_try_echo") >&5 9565 (eval "$ac_compile") 2>conftest.er1 9566 ac_status=$? 9567 grep -v '^ *+' conftest.er1 >conftest.err 9568 rm -f conftest.er1 9569 cat conftest.err >&5 9570 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9571 (exit $ac_status); } && { 9572 test -z "$ac_c_werror_flag" || 9573 test ! -s conftest.err 9574 } && test -s conftest.$ac_objext; then 9575 cat >conftest.$ac_ext <<_ACEOF 9576 /* confdefs.h. */ 9577 _ACEOF 9578 cat confdefs.h >>conftest.$ac_ext 9579 cat >>conftest.$ac_ext <<_ACEOF 9580 /* end confdefs.h. */ 9581 $ac_includes_default 9582 int 9583 main () 9584 { 9585 if (sizeof ((uint8_t))) 9586 return 0; 9587 ; 9588 return 0; 9589 } 9590 _ACEOF 9591 rm -f conftest.$ac_objext 9592 if { (ac_try="$ac_compile" 9593 case "(($ac_try" in 9594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9595 *) ac_try_echo=$ac_try;; 9596 esac 9597 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 9598 $as_echo "$ac_try_echo") >&5 9599 (eval "$ac_compile") 2>conftest.er1 9600 ac_status=$? 9601 grep -v '^ *+' conftest.er1 >conftest.err 9602 rm -f conftest.er1 9603 cat conftest.err >&5 9604 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9605 (exit $ac_status); } && { 9606 test -z "$ac_c_werror_flag" || 9607 test ! -s conftest.err 9608 } && test -s conftest.$ac_objext; then 9609 : 9610 else 9611 $as_echo "$as_me: failed program was:" >&5 9612 sed 's/^/| /' conftest.$ac_ext >&5 9613 9614 ac_cv_type_uint8_t=yes 9615 fi 9616 9617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9618 else 9619 $as_echo "$as_me: failed program was:" >&5 9620 sed 's/^/| /' conftest.$ac_ext >&5 9621 9622 9623 fi 9624 9625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9626 fi 9627 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5 9628 $as_echo "$ac_cv_type_uint8_t" >&6; } 9629 if test "x$ac_cv_type_uint8_t" = x""yes; then 9630 : 9631 else 9632 9633 cat >>confdefs.h <<_ACEOF 9634 #define uint8_t unsigned char 9635 _ACEOF 9636 9637 fi 9638 9639 { $as_echo "$as_me:$LINENO: checking for int16_t" >&5 9640 $as_echo_n "checking for int16_t... " >&6; } 9641 if test "${ac_cv_type_int16_t+set}" = set; then 9642 $as_echo_n "(cached) " >&6 9643 else 9644 ac_cv_type_int16_t=no 9645 cat >conftest.$ac_ext <<_ACEOF 9646 /* confdefs.h. */ 9647 _ACEOF 9648 cat confdefs.h >>conftest.$ac_ext 9649 cat >>conftest.$ac_ext <<_ACEOF 9650 /* end confdefs.h. */ 9651 $ac_includes_default 9652 int 9653 main () 9654 { 9655 if (sizeof (int16_t)) 9656 return 0; 9657 ; 9658 return 0; 9659 } 9660 _ACEOF 9661 rm -f conftest.$ac_objext 9662 if { (ac_try="$ac_compile" 9663 case "(($ac_try" in 9664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9665 *) ac_try_echo=$ac_try;; 9666 esac 9667 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 9668 $as_echo "$ac_try_echo") >&5 9669 (eval "$ac_compile") 2>conftest.er1 9670 ac_status=$? 9671 grep -v '^ *+' conftest.er1 >conftest.err 9672 rm -f conftest.er1 9673 cat conftest.err >&5 9674 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9675 (exit $ac_status); } && { 9676 test -z "$ac_c_werror_flag" || 9677 test ! -s conftest.err 9678 } && test -s conftest.$ac_objext; then 9679 cat >conftest.$ac_ext <<_ACEOF 9680 /* confdefs.h. */ 9681 _ACEOF 9682 cat confdefs.h >>conftest.$ac_ext 9683 cat >>conftest.$ac_ext <<_ACEOF 9684 /* end confdefs.h. */ 9685 $ac_includes_default 9686 int 9687 main () 9688 { 9689 if (sizeof ((int16_t))) 9690 return 0; 9691 ; 9692 return 0; 9693 } 9694 _ACEOF 9695 rm -f conftest.$ac_objext 9696 if { (ac_try="$ac_compile" 9697 case "(($ac_try" in 9698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9699 *) ac_try_echo=$ac_try;; 9700 esac 9701 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 9702 $as_echo "$ac_try_echo") >&5 9703 (eval "$ac_compile") 2>conftest.er1 9704 ac_status=$? 9705 grep -v '^ *+' conftest.er1 >conftest.err 9706 rm -f conftest.er1 9707 cat conftest.err >&5 9708 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9709 (exit $ac_status); } && { 9710 test -z "$ac_c_werror_flag" || 9711 test ! -s conftest.err 9712 } && test -s conftest.$ac_objext; then 9713 : 9714 else 9715 $as_echo "$as_me: failed program was:" >&5 9716 sed 's/^/| /' conftest.$ac_ext >&5 9717 9718 ac_cv_type_int16_t=yes 9719 fi 9720 9721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9722 else 9723 $as_echo "$as_me: failed program was:" >&5 9724 sed 's/^/| /' conftest.$ac_ext >&5 9725 9726 9727 fi 9728 9729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9730 fi 9731 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5 9732 $as_echo "$ac_cv_type_int16_t" >&6; } 9733 if test "x$ac_cv_type_int16_t" = x""yes; then 9734 : 9735 else 9736 9737 cat >>confdefs.h <<_ACEOF 9738 #define int16_t signed short 9739 _ACEOF 9740 9741 fi 9742 9743 { $as_echo "$as_me:$LINENO: checking for uint16_t" >&5 9744 $as_echo_n "checking for uint16_t... " >&6; } 9745 if test "${ac_cv_type_uint16_t+set}" = set; then 9746 $as_echo_n "(cached) " >&6 9747 else 9748 ac_cv_type_uint16_t=no 9749 cat >conftest.$ac_ext <<_ACEOF 9750 /* confdefs.h. */ 9751 _ACEOF 9752 cat confdefs.h >>conftest.$ac_ext 9753 cat >>conftest.$ac_ext <<_ACEOF 9754 /* end confdefs.h. */ 9755 $ac_includes_default 9756 int 9757 main () 9758 { 9759 if (sizeof (uint16_t)) 9760 return 0; 9761 ; 9762 return 0; 9763 } 9764 _ACEOF 9765 rm -f conftest.$ac_objext 9766 if { (ac_try="$ac_compile" 9767 case "(($ac_try" in 9768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9769 *) ac_try_echo=$ac_try;; 9770 esac 9771 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 9772 $as_echo "$ac_try_echo") >&5 9773 (eval "$ac_compile") 2>conftest.er1 9774 ac_status=$? 9775 grep -v '^ *+' conftest.er1 >conftest.err 9776 rm -f conftest.er1 9777 cat conftest.err >&5 9778 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9779 (exit $ac_status); } && { 9780 test -z "$ac_c_werror_flag" || 9781 test ! -s conftest.err 9782 } && test -s conftest.$ac_objext; then 9783 cat >conftest.$ac_ext <<_ACEOF 9784 /* confdefs.h. */ 9785 _ACEOF 9786 cat confdefs.h >>conftest.$ac_ext 9787 cat >>conftest.$ac_ext <<_ACEOF 9788 /* end confdefs.h. */ 9789 $ac_includes_default 9790 int 9791 main () 9792 { 9793 if (sizeof ((uint16_t))) 9794 return 0; 9795 ; 9796 return 0; 9797 } 9798 _ACEOF 9799 rm -f conftest.$ac_objext 9800 if { (ac_try="$ac_compile" 9801 case "(($ac_try" in 9802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9803 *) ac_try_echo=$ac_try;; 9804 esac 9805 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 9806 $as_echo "$ac_try_echo") >&5 9807 (eval "$ac_compile") 2>conftest.er1 9808 ac_status=$? 9809 grep -v '^ *+' conftest.er1 >conftest.err 9810 rm -f conftest.er1 9811 cat conftest.err >&5 9812 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9813 (exit $ac_status); } && { 9814 test -z "$ac_c_werror_flag" || 9815 test ! -s conftest.err 9816 } && test -s conftest.$ac_objext; then 9817 : 9818 else 9819 $as_echo "$as_me: failed program was:" >&5 9820 sed 's/^/| /' conftest.$ac_ext >&5 9821 9822 ac_cv_type_uint16_t=yes 9823 fi 9824 9825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9826 else 9827 $as_echo "$as_me: failed program was:" >&5 9828 sed 's/^/| /' conftest.$ac_ext >&5 9829 9830 9831 fi 9832 9833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9834 fi 9835 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5 9836 $as_echo "$ac_cv_type_uint16_t" >&6; } 9837 if test "x$ac_cv_type_uint16_t" = x""yes; then 9838 : 9839 else 9840 9841 cat >>confdefs.h <<_ACEOF 9842 #define uint16_t unsigned short 9843 _ACEOF 9844 9845 fi 9846 9847 { $as_echo "$as_me:$LINENO: checking for int32_t" >&5 9848 $as_echo_n "checking for int32_t... " >&6; } 9849 if test "${ac_cv_type_int32_t+set}" = set; then 9850 $as_echo_n "(cached) " >&6 9851 else 9852 ac_cv_type_int32_t=no 9853 cat >conftest.$ac_ext <<_ACEOF 9854 /* confdefs.h. */ 9855 _ACEOF 9856 cat confdefs.h >>conftest.$ac_ext 9857 cat >>conftest.$ac_ext <<_ACEOF 9858 /* end confdefs.h. */ 9859 $ac_includes_default 9860 int 9861 main () 9862 { 9863 if (sizeof (int32_t)) 9864 return 0; 9865 ; 9866 return 0; 9867 } 9868 _ACEOF 9869 rm -f conftest.$ac_objext 9870 if { (ac_try="$ac_compile" 9871 case "(($ac_try" in 9872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9873 *) ac_try_echo=$ac_try;; 9874 esac 9875 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 9876 $as_echo "$ac_try_echo") >&5 9877 (eval "$ac_compile") 2>conftest.er1 9878 ac_status=$? 9879 grep -v '^ *+' conftest.er1 >conftest.err 9880 rm -f conftest.er1 9881 cat conftest.err >&5 9882 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9883 (exit $ac_status); } && { 9884 test -z "$ac_c_werror_flag" || 9885 test ! -s conftest.err 9886 } && test -s conftest.$ac_objext; then 9887 cat >conftest.$ac_ext <<_ACEOF 9888 /* confdefs.h. */ 9889 _ACEOF 9890 cat confdefs.h >>conftest.$ac_ext 9891 cat >>conftest.$ac_ext <<_ACEOF 9892 /* end confdefs.h. */ 9893 $ac_includes_default 9894 int 9895 main () 9896 { 9897 if (sizeof ((int32_t))) 9898 return 0; 9899 ; 9900 return 0; 9901 } 9902 _ACEOF 9903 rm -f conftest.$ac_objext 9904 if { (ac_try="$ac_compile" 9905 case "(($ac_try" in 9906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9907 *) ac_try_echo=$ac_try;; 9908 esac 9909 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 9910 $as_echo "$ac_try_echo") >&5 9911 (eval "$ac_compile") 2>conftest.er1 9912 ac_status=$? 9913 grep -v '^ *+' conftest.er1 >conftest.err 9914 rm -f conftest.er1 9915 cat conftest.err >&5 9916 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9917 (exit $ac_status); } && { 9918 test -z "$ac_c_werror_flag" || 9919 test ! -s conftest.err 9920 } && test -s conftest.$ac_objext; then 9921 : 9922 else 9923 $as_echo "$as_me: failed program was:" >&5 9924 sed 's/^/| /' conftest.$ac_ext >&5 9925 9926 ac_cv_type_int32_t=yes 9927 fi 9928 9929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9930 else 9931 $as_echo "$as_me: failed program was:" >&5 9932 sed 's/^/| /' conftest.$ac_ext >&5 9933 9934 9935 fi 9936 9937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9938 fi 9939 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5 9940 $as_echo "$ac_cv_type_int32_t" >&6; } 9941 if test "x$ac_cv_type_int32_t" = x""yes; then 9942 : 9943 else 9944 9945 cat >>confdefs.h <<_ACEOF 9946 #define int32_t signed long 9947 _ACEOF 9948 9949 fi 9950 9951 { $as_echo "$as_me:$LINENO: checking for uint32_t" >&5 9952 $as_echo_n "checking for uint32_t... " >&6; } 9953 if test "${ac_cv_type_uint32_t+set}" = set; then 9954 $as_echo_n "(cached) " >&6 9955 else 9956 ac_cv_type_uint32_t=no 9957 cat >conftest.$ac_ext <<_ACEOF 9958 /* confdefs.h. */ 9959 _ACEOF 9960 cat confdefs.h >>conftest.$ac_ext 9961 cat >>conftest.$ac_ext <<_ACEOF 9962 /* end confdefs.h. */ 9963 $ac_includes_default 9964 int 9965 main () 9966 { 9967 if (sizeof (uint32_t)) 9968 return 0; 9969 ; 9970 return 0; 9971 } 9972 _ACEOF 9973 rm -f conftest.$ac_objext 9974 if { (ac_try="$ac_compile" 9975 case "(($ac_try" in 9976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9977 *) ac_try_echo=$ac_try;; 9978 esac 9979 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 9980 $as_echo "$ac_try_echo") >&5 9981 (eval "$ac_compile") 2>conftest.er1 9982 ac_status=$? 9983 grep -v '^ *+' conftest.er1 >conftest.err 9984 rm -f conftest.er1 9985 cat conftest.err >&5 9986 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9987 (exit $ac_status); } && { 9988 test -z "$ac_c_werror_flag" || 9989 test ! -s conftest.err 9990 } && test -s conftest.$ac_objext; then 9991 cat >conftest.$ac_ext <<_ACEOF 9992 /* confdefs.h. */ 9993 _ACEOF 9994 cat confdefs.h >>conftest.$ac_ext 9995 cat >>conftest.$ac_ext <<_ACEOF 9996 /* end confdefs.h. */ 9997 $ac_includes_default 9998 int 9999 main () 10000 { 10001 if (sizeof ((uint32_t))) 10002 return 0; 10003 ; 10004 return 0; 10005 } 10006 _ACEOF 10007 rm -f conftest.$ac_objext 10008 if { (ac_try="$ac_compile" 10009 case "(($ac_try" in 10010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10011 *) ac_try_echo=$ac_try;; 10012 esac 10013 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10014 $as_echo "$ac_try_echo") >&5 10015 (eval "$ac_compile") 2>conftest.er1 10016 ac_status=$? 10017 grep -v '^ *+' conftest.er1 >conftest.err 10018 rm -f conftest.er1 10019 cat conftest.err >&5 10020 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10021 (exit $ac_status); } && { 10022 test -z "$ac_c_werror_flag" || 10023 test ! -s conftest.err 10024 } && test -s conftest.$ac_objext; then 10025 : 10026 else 10027 $as_echo "$as_me: failed program was:" >&5 10028 sed 's/^/| /' conftest.$ac_ext >&5 10029 10030 ac_cv_type_uint32_t=yes 10031 fi 10032 10033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10034 else 10035 $as_echo "$as_me: failed program was:" >&5 10036 sed 's/^/| /' conftest.$ac_ext >&5 10037 10038 10039 fi 10040 10041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10042 fi 10043 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5 10044 $as_echo "$ac_cv_type_uint32_t" >&6; } 10045 if test "x$ac_cv_type_uint32_t" = x""yes; then 10046 : 10047 else 10048 10049 cat >>confdefs.h <<_ACEOF 10050 #define uint32_t unsigned long 10051 _ACEOF 10052 10053 fi 10054 10055 { $as_echo "$as_me:$LINENO: checking for int64_t" >&5 10056 $as_echo_n "checking for int64_t... " >&6; } 10057 if test "${ac_cv_type_int64_t+set}" = set; then 10058 $as_echo_n "(cached) " >&6 10059 else 10060 ac_cv_type_int64_t=no 10061 cat >conftest.$ac_ext <<_ACEOF 10062 /* confdefs.h. */ 10063 _ACEOF 10064 cat confdefs.h >>conftest.$ac_ext 10065 cat >>conftest.$ac_ext <<_ACEOF 10066 /* end confdefs.h. */ 10067 $ac_includes_default 10068 int 10069 main () 10070 { 10071 if (sizeof (int64_t)) 10072 return 0; 10073 ; 10074 return 0; 10075 } 10076 _ACEOF 10077 rm -f conftest.$ac_objext 10078 if { (ac_try="$ac_compile" 10079 case "(($ac_try" in 10080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10081 *) ac_try_echo=$ac_try;; 10082 esac 10083 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10084 $as_echo "$ac_try_echo") >&5 10085 (eval "$ac_compile") 2>conftest.er1 10086 ac_status=$? 10087 grep -v '^ *+' conftest.er1 >conftest.err 10088 rm -f conftest.er1 10089 cat conftest.err >&5 10090 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10091 (exit $ac_status); } && { 10092 test -z "$ac_c_werror_flag" || 10093 test ! -s conftest.err 10094 } && test -s conftest.$ac_objext; then 10095 cat >conftest.$ac_ext <<_ACEOF 10096 /* confdefs.h. */ 10097 _ACEOF 10098 cat confdefs.h >>conftest.$ac_ext 10099 cat >>conftest.$ac_ext <<_ACEOF 10100 /* end confdefs.h. */ 10101 $ac_includes_default 10102 int 10103 main () 10104 { 10105 if (sizeof ((int64_t))) 10106 return 0; 10107 ; 10108 return 0; 10109 } 10110 _ACEOF 10111 rm -f conftest.$ac_objext 10112 if { (ac_try="$ac_compile" 10113 case "(($ac_try" in 10114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10115 *) ac_try_echo=$ac_try;; 10116 esac 10117 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10118 $as_echo "$ac_try_echo") >&5 10119 (eval "$ac_compile") 2>conftest.er1 10120 ac_status=$? 10121 grep -v '^ *+' conftest.er1 >conftest.err 10122 rm -f conftest.er1 10123 cat conftest.err >&5 10124 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10125 (exit $ac_status); } && { 10126 test -z "$ac_c_werror_flag" || 10127 test ! -s conftest.err 10128 } && test -s conftest.$ac_objext; then 10129 : 10130 else 10131 $as_echo "$as_me: failed program was:" >&5 10132 sed 's/^/| /' conftest.$ac_ext >&5 10133 10134 ac_cv_type_int64_t=yes 10135 fi 10136 10137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10138 else 10139 $as_echo "$as_me: failed program was:" >&5 10140 sed 's/^/| /' conftest.$ac_ext >&5 10141 10142 10143 fi 10144 10145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10146 fi 10147 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5 10148 $as_echo "$ac_cv_type_int64_t" >&6; } 10149 if test "x$ac_cv_type_int64_t" = x""yes; then 10150 : 10151 else 10152 10153 cat >>confdefs.h <<_ACEOF 10154 #define int64_t signed long long 10155 _ACEOF 10156 10157 fi 10158 10159 { $as_echo "$as_me:$LINENO: checking for uint64_t" >&5 10160 $as_echo_n "checking for uint64_t... " >&6; } 10161 if test "${ac_cv_type_uint64_t+set}" = set; then 10162 $as_echo_n "(cached) " >&6 10163 else 10164 ac_cv_type_uint64_t=no 10165 cat >conftest.$ac_ext <<_ACEOF 10166 /* confdefs.h. */ 10167 _ACEOF 10168 cat confdefs.h >>conftest.$ac_ext 10169 cat >>conftest.$ac_ext <<_ACEOF 10170 /* end confdefs.h. */ 10171 $ac_includes_default 10172 int 10173 main () 10174 { 10175 if (sizeof (uint64_t)) 10176 return 0; 10177 ; 10178 return 0; 10179 } 10180 _ACEOF 10181 rm -f conftest.$ac_objext 10182 if { (ac_try="$ac_compile" 10183 case "(($ac_try" in 10184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10185 *) ac_try_echo=$ac_try;; 10186 esac 10187 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10188 $as_echo "$ac_try_echo") >&5 10189 (eval "$ac_compile") 2>conftest.er1 10190 ac_status=$? 10191 grep -v '^ *+' conftest.er1 >conftest.err 10192 rm -f conftest.er1 10193 cat conftest.err >&5 10194 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10195 (exit $ac_status); } && { 10196 test -z "$ac_c_werror_flag" || 10197 test ! -s conftest.err 10198 } && test -s conftest.$ac_objext; then 10199 cat >conftest.$ac_ext <<_ACEOF 10200 /* confdefs.h. */ 10201 _ACEOF 10202 cat confdefs.h >>conftest.$ac_ext 10203 cat >>conftest.$ac_ext <<_ACEOF 10204 /* end confdefs.h. */ 10205 $ac_includes_default 10206 int 10207 main () 10208 { 10209 if (sizeof ((uint64_t))) 10210 return 0; 10211 ; 10212 return 0; 10213 } 10214 _ACEOF 10215 rm -f conftest.$ac_objext 10216 if { (ac_try="$ac_compile" 10217 case "(($ac_try" in 10218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10219 *) ac_try_echo=$ac_try;; 10220 esac 10221 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10222 $as_echo "$ac_try_echo") >&5 10223 (eval "$ac_compile") 2>conftest.er1 10224 ac_status=$? 10225 grep -v '^ *+' conftest.er1 >conftest.err 10226 rm -f conftest.er1 10227 cat conftest.err >&5 10228 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10229 (exit $ac_status); } && { 10230 test -z "$ac_c_werror_flag" || 10231 test ! -s conftest.err 10232 } && test -s conftest.$ac_objext; then 10233 : 10234 else 10235 $as_echo "$as_me: failed program was:" >&5 10236 sed 's/^/| /' conftest.$ac_ext >&5 10237 10238 ac_cv_type_uint64_t=yes 10239 fi 10240 10241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10242 else 10243 $as_echo "$as_me: failed program was:" >&5 10244 sed 's/^/| /' conftest.$ac_ext >&5 10245 10246 10247 fi 10248 10249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10250 fi 10251 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5 10252 $as_echo "$ac_cv_type_uint64_t" >&6; } 10253 if test "x$ac_cv_type_uint64_t" = x""yes; then 10254 : 10255 else 10256 10257 cat >>confdefs.h <<_ACEOF 10258 #define uint64_t unsigned long long 10259 _ACEOF 10260 10261 fi 10262 10263 10264 if test $ac_cv_type_int8_t = no; then 10265 HAVE_INT8_T=0 10266 else 10267 HAVE_INT8_T=1 10268 fi 10269 10270 10271 if test $ac_cv_type_uint8_t = no; then 10272 HAVE_UINT8_T=0 10273 else 10274 HAVE_UINT8_T=1 10275 fi 10276 10277 10278 if test $ac_cv_type_int16_t = no; then 10279 HAVE_INT16_T=0 10280 else 10281 HAVE_INT16_T=1 10282 fi 10283 10284 10285 if test $ac_cv_type_uint16_t = no; then 10286 HAVE_UINT16_T=0 10287 else 10288 HAVE_UINT16_T=1 10289 fi 10290 10291 10292 if test $ac_cv_type_int32_t = no; then 10293 HAVE_INT32_T=0 10294 else 10295 HAVE_INT32_T=1 10296 fi 10297 10298 10299 if test $ac_cv_type_uint32_t = no; then 10300 HAVE_UINT32_T=0 10301 else 10302 HAVE_UINT32_T=1 10303 fi 10304 10305 10306 if test $ac_cv_type_int64_t = no; then 10307 HAVE_INT64_T=0 10308 else 10309 HAVE_INT64_T=1 10310 fi 10311 10312 10313 if test $ac_cv_type_uint64_t = no; then 10314 HAVE_UINT64_T=0 10315 else 10316 HAVE_UINT64_T=1 10317 fi 10318 10319 10320 # Do various wchar_t related checks 10321 if test "${ac_cv_header_wchar_h+set}" = set; then 10322 { $as_echo "$as_me:$LINENO: checking for wchar.h" >&5 10323 $as_echo_n "checking for wchar.h... " >&6; } 10324 if test "${ac_cv_header_wchar_h+set}" = set; then 10325 $as_echo_n "(cached) " >&6 10326 fi 10327 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5 10328 $as_echo "$ac_cv_header_wchar_h" >&6; } 10329 else 10330 # Is the header compilable? 10331 { $as_echo "$as_me:$LINENO: checking wchar.h usability" >&5 10332 $as_echo_n "checking wchar.h usability... " >&6; } 10333 cat >conftest.$ac_ext <<_ACEOF 10334 /* confdefs.h. */ 10335 _ACEOF 10336 cat confdefs.h >>conftest.$ac_ext 10337 cat >>conftest.$ac_ext <<_ACEOF 10338 /* end confdefs.h. */ 10339 $ac_includes_default 10340 #include <wchar.h> 10341 _ACEOF 10342 rm -f conftest.$ac_objext 10343 if { (ac_try="$ac_compile" 10344 case "(($ac_try" in 10345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10346 *) ac_try_echo=$ac_try;; 10347 esac 10348 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10349 $as_echo "$ac_try_echo") >&5 10350 (eval "$ac_compile") 2>conftest.er1 10351 ac_status=$? 10352 grep -v '^ *+' conftest.er1 >conftest.err 10353 rm -f conftest.er1 10354 cat conftest.err >&5 10355 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10356 (exit $ac_status); } && { 10357 test -z "$ac_c_werror_flag" || 10358 test ! -s conftest.err 10359 } && test -s conftest.$ac_objext; then 10360 ac_header_compiler=yes 10361 else 10362 $as_echo "$as_me: failed program was:" >&5 10363 sed 's/^/| /' conftest.$ac_ext >&5 10364 10365 ac_header_compiler=no 10366 fi 10367 10368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10369 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 10370 $as_echo "$ac_header_compiler" >&6; } 10371 10372 # Is the header present? 10373 { $as_echo "$as_me:$LINENO: checking wchar.h presence" >&5 10374 $as_echo_n "checking wchar.h presence... " >&6; } 10375 cat >conftest.$ac_ext <<_ACEOF 10376 /* confdefs.h. */ 10377 _ACEOF 10378 cat confdefs.h >>conftest.$ac_ext 10379 cat >>conftest.$ac_ext <<_ACEOF 10380 /* end confdefs.h. */ 10381 #include <wchar.h> 10382 _ACEOF 10383 if { (ac_try="$ac_cpp conftest.$ac_ext" 10384 case "(($ac_try" in 10385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10386 *) ac_try_echo=$ac_try;; 10387 esac 10388 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10389 $as_echo "$ac_try_echo") >&5 10390 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 10391 ac_status=$? 10392 grep -v '^ *+' conftest.er1 >conftest.err 10393 rm -f conftest.er1 10394 cat conftest.err >&5 10395 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10396 (exit $ac_status); } >/dev/null && { 10397 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 10398 test ! -s conftest.err 10399 }; then 10400 ac_header_preproc=yes 10401 else 10402 $as_echo "$as_me: failed program was:" >&5 10403 sed 's/^/| /' conftest.$ac_ext >&5 10404 10405 ac_header_preproc=no 10406 fi 10407 10408 rm -f conftest.err conftest.$ac_ext 10409 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 10410 $as_echo "$ac_header_preproc" >&6; } 10411 10412 # So? What about this header? 10413 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 10414 yes:no: ) 10415 { $as_echo "$as_me:$LINENO: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&5 10416 $as_echo "$as_me: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 10417 { $as_echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the compiler's result" >&5 10418 $as_echo "$as_me: WARNING: wchar.h: proceeding with the compiler's result" >&2;} 10419 ac_header_preproc=yes 10420 ;; 10421 no:yes:* ) 10422 { $as_echo "$as_me:$LINENO: WARNING: wchar.h: present but cannot be compiled" >&5 10423 $as_echo "$as_me: WARNING: wchar.h: present but cannot be compiled" >&2;} 10424 { $as_echo "$as_me:$LINENO: WARNING: wchar.h: check for missing prerequisite headers?" >&5 10425 $as_echo "$as_me: WARNING: wchar.h: check for missing prerequisite headers?" >&2;} 10426 { $as_echo "$as_me:$LINENO: WARNING: wchar.h: see the Autoconf documentation" >&5 10427 $as_echo "$as_me: WARNING: wchar.h: see the Autoconf documentation" >&2;} 10428 { $as_echo "$as_me:$LINENO: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&5 10429 $as_echo "$as_me: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&2;} 10430 { $as_echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the preprocessor's result" >&5 10431 $as_echo "$as_me: WARNING: wchar.h: proceeding with the preprocessor's result" >&2;} 10432 { $as_echo "$as_me:$LINENO: WARNING: wchar.h: in the future, the compiler will take precedence" >&5 10433 $as_echo "$as_me: WARNING: wchar.h: in the future, the compiler will take precedence" >&2;} 10434 10435 ;; 10436 esac 10437 { $as_echo "$as_me:$LINENO: checking for wchar.h" >&5 10438 $as_echo_n "checking for wchar.h... " >&6; } 10439 if test "${ac_cv_header_wchar_h+set}" = set; then 10440 $as_echo_n "(cached) " >&6 10441 else 10442 ac_cv_header_wchar_h=$ac_header_preproc 10443 fi 10444 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5 10445 $as_echo "$ac_cv_header_wchar_h" >&6; } 10446 10447 fi 10448 10449 10450 if test "$ac_cv_header_wchar_h" = no 10451 then 10452 U_HAVE_WCHAR_H=0 10453 U_HAVE_WCSCPY=0 10454 else 10455 10456 cat >>confdefs.h <<\_ACEOF 10457 #define HAVE_WCHAR_H 1 10458 _ACEOF 10459 10460 U_HAVE_WCHAR_H=1 10461 # Some broken systems have wchar.h but not some of its functions... 10462 { $as_echo "$as_me:$LINENO: checking for library containing wcscpy" >&5 10463 $as_echo_n "checking for library containing wcscpy... " >&6; } 10464 if test "${ac_cv_search_wcscpy+set}" = set; then 10465 $as_echo_n "(cached) " >&6 10466 else 10467 ac_func_search_save_LIBS=$LIBS 10468 cat >conftest.$ac_ext <<_ACEOF 10469 /* confdefs.h. */ 10470 _ACEOF 10471 cat confdefs.h >>conftest.$ac_ext 10472 cat >>conftest.$ac_ext <<_ACEOF 10473 /* end confdefs.h. */ 10474 10475 /* Override any GCC internal prototype to avoid an error. 10476 Use char because int might match the return type of a GCC 10477 builtin and then its argument prototype would still apply. */ 10478 #ifdef __cplusplus 10479 extern "C" 10480 #endif 10481 char wcscpy (); 10482 int 10483 main () 10484 { 10485 return wcscpy (); 10486 ; 10487 return 0; 10488 } 10489 _ACEOF 10490 for ac_lib in '' wcs w; do 10491 if test -z "$ac_lib"; then 10492 ac_res="none required" 10493 else 10494 ac_res=-l$ac_lib 10495 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 10496 fi 10497 rm -f conftest.$ac_objext conftest$ac_exeext 10498 if { (ac_try="$ac_link" 10499 case "(($ac_try" in 10500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10501 *) ac_try_echo=$ac_try;; 10502 esac 10503 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10504 $as_echo "$ac_try_echo") >&5 10505 (eval "$ac_link") 2>conftest.er1 10506 ac_status=$? 10507 grep -v '^ *+' conftest.er1 >conftest.err 10508 rm -f conftest.er1 10509 cat conftest.err >&5 10510 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10511 (exit $ac_status); } && { 10512 test -z "$ac_c_werror_flag" || 10513 test ! -s conftest.err 10514 } && test -s conftest$ac_exeext && { 10515 test "$cross_compiling" = yes || 10516 $as_test_x conftest$ac_exeext 10517 }; then 10518 ac_cv_search_wcscpy=$ac_res 10519 else 10520 $as_echo "$as_me: failed program was:" >&5 10521 sed 's/^/| /' conftest.$ac_ext >&5 10522 10523 10524 fi 10525 10526 rm -rf conftest.dSYM 10527 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10528 conftest$ac_exeext 10529 if test "${ac_cv_search_wcscpy+set}" = set; then 10530 break 10531 fi 10532 done 10533 if test "${ac_cv_search_wcscpy+set}" = set; then 10534 : 10535 else 10536 ac_cv_search_wcscpy=no 10537 fi 10538 rm conftest.$ac_ext 10539 LIBS=$ac_func_search_save_LIBS 10540 fi 10541 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_wcscpy" >&5 10542 $as_echo "$ac_cv_search_wcscpy" >&6; } 10543 ac_res=$ac_cv_search_wcscpy 10544 if test "$ac_res" != no; then 10545 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 10546 10547 fi 10548 10549 if test "$ac_cv_search_wcscpy" != no; then 10550 U_HAVE_WCSCPY=1 10551 else 10552 U_HAVE_WCSCPY=0 10553 fi 10554 fi 10555 10556 10557 10558 # The cast to long int works around a bug in the HP C Compiler 10559 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 10560 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 10561 # This bug is HP SR number 8606223364. 10562 { $as_echo "$as_me:$LINENO: checking size of wchar_t" >&5 10563 $as_echo_n "checking size of wchar_t... " >&6; } 10564 if test "${ac_cv_sizeof_wchar_t+set}" = set; then 10565 $as_echo_n "(cached) " >&6 10566 else 10567 if test "$cross_compiling" = yes; then 10568 # Depending upon the size, compute the lo and hi bounds. 10569 cat >conftest.$ac_ext <<_ACEOF 10570 /* confdefs.h. */ 10571 _ACEOF 10572 cat confdefs.h >>conftest.$ac_ext 10573 cat >>conftest.$ac_ext <<_ACEOF 10574 /* end confdefs.h. */ 10575 10576 #if STDC_HEADERS 10577 #include <stddef.h> 10578 #endif 10579 #include <stdlib.h> 10580 #if HAVE_WCHAR_H 10581 #include <string.h> 10582 #include <wchar.h> 10583 #endif 10584 10585 int 10586 main () 10587 { 10588 static int test_array [1 - 2 * !(((long int) (sizeof (wchar_t))) >= 0)]; 10589 test_array [0] = 0 10590 10591 ; 10592 return 0; 10593 } 10594 _ACEOF 10595 rm -f conftest.$ac_objext 10596 if { (ac_try="$ac_compile" 10597 case "(($ac_try" in 10598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10599 *) ac_try_echo=$ac_try;; 10600 esac 10601 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10602 $as_echo "$ac_try_echo") >&5 10603 (eval "$ac_compile") 2>conftest.er1 10604 ac_status=$? 10605 grep -v '^ *+' conftest.er1 >conftest.err 10606 rm -f conftest.er1 10607 cat conftest.err >&5 10608 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10609 (exit $ac_status); } && { 10610 test -z "$ac_c_werror_flag" || 10611 test ! -s conftest.err 10612 } && test -s conftest.$ac_objext; then 10613 ac_lo=0 ac_mid=0 10614 while :; do 10615 cat >conftest.$ac_ext <<_ACEOF 10616 /* confdefs.h. */ 10617 _ACEOF 10618 cat confdefs.h >>conftest.$ac_ext 10619 cat >>conftest.$ac_ext <<_ACEOF 10620 /* end confdefs.h. */ 10621 10622 #if STDC_HEADERS 10623 #include <stddef.h> 10624 #endif 10625 #include <stdlib.h> 10626 #if HAVE_WCHAR_H 10627 #include <string.h> 10628 #include <wchar.h> 10629 #endif 10630 10631 int 10632 main () 10633 { 10634 static int test_array [1 - 2 * !(((long int) (sizeof (wchar_t))) <= $ac_mid)]; 10635 test_array [0] = 0 10636 10637 ; 10638 return 0; 10639 } 10640 _ACEOF 10641 rm -f conftest.$ac_objext 10642 if { (ac_try="$ac_compile" 10643 case "(($ac_try" in 10644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10645 *) ac_try_echo=$ac_try;; 10646 esac 10647 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10648 $as_echo "$ac_try_echo") >&5 10649 (eval "$ac_compile") 2>conftest.er1 10650 ac_status=$? 10651 grep -v '^ *+' conftest.er1 >conftest.err 10652 rm -f conftest.er1 10653 cat conftest.err >&5 10654 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10655 (exit $ac_status); } && { 10656 test -z "$ac_c_werror_flag" || 10657 test ! -s conftest.err 10658 } && test -s conftest.$ac_objext; then 10659 ac_hi=$ac_mid; break 10660 else 10661 $as_echo "$as_me: failed program was:" >&5 10662 sed 's/^/| /' conftest.$ac_ext >&5 10663 10664 ac_lo=`expr $ac_mid + 1` 10665 if test $ac_lo -le $ac_mid; then 10666 ac_lo= ac_hi= 10667 break 10668 fi 10669 ac_mid=`expr 2 '*' $ac_mid + 1` 10670 fi 10671 10672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10673 done 10674 else 10675 $as_echo "$as_me: failed program was:" >&5 10676 sed 's/^/| /' conftest.$ac_ext >&5 10677 10678 cat >conftest.$ac_ext <<_ACEOF 10679 /* confdefs.h. */ 10680 _ACEOF 10681 cat confdefs.h >>conftest.$ac_ext 10682 cat >>conftest.$ac_ext <<_ACEOF 10683 /* end confdefs.h. */ 10684 10685 #if STDC_HEADERS 10686 #include <stddef.h> 10687 #endif 10688 #include <stdlib.h> 10689 #if HAVE_WCHAR_H 10690 #include <string.h> 10691 #include <wchar.h> 10692 #endif 10693 10694 int 10695 main () 10696 { 10697 static int test_array [1 - 2 * !(((long int) (sizeof (wchar_t))) < 0)]; 10698 test_array [0] = 0 10699 10700 ; 10701 return 0; 10702 } 10703 _ACEOF 10704 rm -f conftest.$ac_objext 10705 if { (ac_try="$ac_compile" 10706 case "(($ac_try" in 10707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10708 *) ac_try_echo=$ac_try;; 10709 esac 10710 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10711 $as_echo "$ac_try_echo") >&5 10712 (eval "$ac_compile") 2>conftest.er1 10713 ac_status=$? 10714 grep -v '^ *+' conftest.er1 >conftest.err 10715 rm -f conftest.er1 10716 cat conftest.err >&5 10717 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10718 (exit $ac_status); } && { 10719 test -z "$ac_c_werror_flag" || 10720 test ! -s conftest.err 10721 } && test -s conftest.$ac_objext; then 10722 ac_hi=-1 ac_mid=-1 10723 while :; do 10724 cat >conftest.$ac_ext <<_ACEOF 10725 /* confdefs.h. */ 10726 _ACEOF 10727 cat confdefs.h >>conftest.$ac_ext 10728 cat >>conftest.$ac_ext <<_ACEOF 10729 /* end confdefs.h. */ 10730 10731 #if STDC_HEADERS 10732 #include <stddef.h> 10733 #endif 10734 #include <stdlib.h> 10735 #if HAVE_WCHAR_H 10736 #include <string.h> 10737 #include <wchar.h> 10738 #endif 10739 10740 int 10741 main () 10742 { 10743 static int test_array [1 - 2 * !(((long int) (sizeof (wchar_t))) >= $ac_mid)]; 10744 test_array [0] = 0 10745 10746 ; 10747 return 0; 10748 } 10749 _ACEOF 10750 rm -f conftest.$ac_objext 10751 if { (ac_try="$ac_compile" 10752 case "(($ac_try" in 10753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10754 *) ac_try_echo=$ac_try;; 10755 esac 10756 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10757 $as_echo "$ac_try_echo") >&5 10758 (eval "$ac_compile") 2>conftest.er1 10759 ac_status=$? 10760 grep -v '^ *+' conftest.er1 >conftest.err 10761 rm -f conftest.er1 10762 cat conftest.err >&5 10763 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10764 (exit $ac_status); } && { 10765 test -z "$ac_c_werror_flag" || 10766 test ! -s conftest.err 10767 } && test -s conftest.$ac_objext; then 10768 ac_lo=$ac_mid; break 10769 else 10770 $as_echo "$as_me: failed program was:" >&5 10771 sed 's/^/| /' conftest.$ac_ext >&5 10772 10773 ac_hi=`expr '(' $ac_mid ')' - 1` 10774 if test $ac_mid -le $ac_hi; then 10775 ac_lo= ac_hi= 10776 break 10777 fi 10778 ac_mid=`expr 2 '*' $ac_mid` 10779 fi 10780 10781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10782 done 10783 else 10784 $as_echo "$as_me: failed program was:" >&5 10785 sed 's/^/| /' conftest.$ac_ext >&5 10786 10787 ac_lo= ac_hi= 10788 fi 10789 10790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10791 fi 10792 10793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10794 # Binary search between lo and hi bounds. 10795 while test "x$ac_lo" != "x$ac_hi"; do 10796 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 10797 cat >conftest.$ac_ext <<_ACEOF 10798 /* confdefs.h. */ 10799 _ACEOF 10800 cat confdefs.h >>conftest.$ac_ext 10801 cat >>conftest.$ac_ext <<_ACEOF 10802 /* end confdefs.h. */ 10803 10804 #if STDC_HEADERS 10805 #include <stddef.h> 10806 #endif 10807 #include <stdlib.h> 10808 #if HAVE_WCHAR_H 10809 #include <string.h> 10810 #include <wchar.h> 10811 #endif 10812 10813 int 10814 main () 10815 { 10816 static int test_array [1 - 2 * !(((long int) (sizeof (wchar_t))) <= $ac_mid)]; 10817 test_array [0] = 0 10818 10819 ; 10820 return 0; 10821 } 10822 _ACEOF 10823 rm -f conftest.$ac_objext 10824 if { (ac_try="$ac_compile" 10825 case "(($ac_try" in 10826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10827 *) ac_try_echo=$ac_try;; 10828 esac 10829 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10830 $as_echo "$ac_try_echo") >&5 10831 (eval "$ac_compile") 2>conftest.er1 10832 ac_status=$? 10833 grep -v '^ *+' conftest.er1 >conftest.err 10834 rm -f conftest.er1 10835 cat conftest.err >&5 10836 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10837 (exit $ac_status); } && { 10838 test -z "$ac_c_werror_flag" || 10839 test ! -s conftest.err 10840 } && test -s conftest.$ac_objext; then 10841 ac_hi=$ac_mid 10842 else 10843 $as_echo "$as_me: failed program was:" >&5 10844 sed 's/^/| /' conftest.$ac_ext >&5 10845 10846 ac_lo=`expr '(' $ac_mid ')' + 1` 10847 fi 10848 10849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10850 done 10851 case $ac_lo in 10852 ?*) ac_cv_sizeof_wchar_t=$ac_lo;; 10853 '') if test "$ac_cv_type_wchar_t" = yes; then 10854 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 10855 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 10856 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t) 10857 See \`config.log' for more details." >&5 10858 $as_echo "$as_me: error: cannot compute sizeof (wchar_t) 10859 See \`config.log' for more details." >&2;} 10860 { (exit 77); exit 77; }; }; } 10861 else 10862 ac_cv_sizeof_wchar_t=0 10863 fi ;; 10864 esac 10865 else 10866 cat >conftest.$ac_ext <<_ACEOF 10867 /* confdefs.h. */ 10868 _ACEOF 10869 cat confdefs.h >>conftest.$ac_ext 10870 cat >>conftest.$ac_ext <<_ACEOF 10871 /* end confdefs.h. */ 10872 10873 #if STDC_HEADERS 10874 #include <stddef.h> 10875 #endif 10876 #include <stdlib.h> 10877 #if HAVE_WCHAR_H 10878 #include <string.h> 10879 #include <wchar.h> 10880 #endif 10881 10882 static long int longval () { return (long int) (sizeof (wchar_t)); } 10883 static unsigned long int ulongval () { return (long int) (sizeof (wchar_t)); } 10884 #include <stdio.h> 10885 #include <stdlib.h> 10886 int 10887 main () 10888 { 10889 10890 FILE *f = fopen ("conftest.val", "w"); 10891 if (! f) 10892 return 1; 10893 if (((long int) (sizeof (wchar_t))) < 0) 10894 { 10895 long int i = longval (); 10896 if (i != ((long int) (sizeof (wchar_t)))) 10897 return 1; 10898 fprintf (f, "%ld", i); 10899 } 10900 else 10901 { 10902 unsigned long int i = ulongval (); 10903 if (i != ((long int) (sizeof (wchar_t)))) 10904 return 1; 10905 fprintf (f, "%lu", i); 10906 } 10907 /* Do not output a trailing newline, as this causes \r\n confusion 10908 on some platforms. */ 10909 return ferror (f) || fclose (f) != 0; 10910 10911 ; 10912 return 0; 10913 } 10914 _ACEOF 10915 rm -f conftest$ac_exeext 10916 if { (ac_try="$ac_link" 10917 case "(($ac_try" in 10918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10919 *) ac_try_echo=$ac_try;; 10920 esac 10921 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10922 $as_echo "$ac_try_echo") >&5 10923 (eval "$ac_link") 2>&5 10924 ac_status=$? 10925 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10926 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 10927 { (case "(($ac_try" in 10928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10929 *) ac_try_echo=$ac_try;; 10930 esac 10931 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10932 $as_echo "$ac_try_echo") >&5 10933 (eval "$ac_try") 2>&5 10934 ac_status=$? 10935 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10936 (exit $ac_status); }; }; then 10937 ac_cv_sizeof_wchar_t=`cat conftest.val` 10938 else 10939 $as_echo "$as_me: program exited with status $ac_status" >&5 10940 $as_echo "$as_me: failed program was:" >&5 10941 sed 's/^/| /' conftest.$ac_ext >&5 10942 10943 ( exit $ac_status ) 10944 if test "$ac_cv_type_wchar_t" = yes; then 10945 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 10946 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 10947 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t) 10948 See \`config.log' for more details." >&5 10949 $as_echo "$as_me: error: cannot compute sizeof (wchar_t) 10950 See \`config.log' for more details." >&2;} 10951 { (exit 77); exit 77; }; }; } 10952 else 10953 ac_cv_sizeof_wchar_t=0 10954 fi 10955 fi 10956 rm -rf conftest.dSYM 10957 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 10958 fi 10959 rm -f conftest.val 10960 fi 10961 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5 10962 $as_echo "$ac_cv_sizeof_wchar_t" >&6; } 10963 10964 10965 10966 cat >>confdefs.h <<_ACEOF 10967 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t 10968 _ACEOF 10969 10970 10971 U_SIZEOF_WCHAR_T=$ac_cv_sizeof_wchar_t 10972 # We do this check to verify that everything is okay. 10973 if test $U_SIZEOF_WCHAR_T = 0; then 10974 if test $U_HAVE_WCHAR_H=1; then 10975 { { $as_echo "$as_me:$LINENO: error: There is wchar.h but the size of wchar_t is 0" >&5 10976 $as_echo "$as_me: error: There is wchar.h but the size of wchar_t is 0" >&2;} 10977 { (exit 1); exit 1; }; } 10978 fi 10979 fi 10980 10981 10982 { $as_echo "$as_me:$LINENO: checking for UTF-16 string literal support" >&5 10983 $as_echo_n "checking for UTF-16 string literal support... " >&6; } 10984 U_CHECK_UTF16_STRING=1 10985 CHECK_UTF16_STRING_RESULT="unknown" 10986 10987 case "${host}" in 10988 *-*-aix*|powerpc64-*-linux*) 10989 if test "$ac_cv_c_compiler_gnu" = no; then 10990 OLD_CFLAGS="${CFLAGS}" 10991 OLD_CXXFLAGS="${CXXFLAGS}" 10992 CFLAGS="${CFLAGS} -qutf" 10993 CXXFLAGS="${CXXFLAGS} -qutf" 10994 cat >conftest.$ac_ext <<_ACEOF 10995 /* confdefs.h. */ 10996 _ACEOF 10997 cat confdefs.h >>conftest.$ac_ext 10998 cat >>conftest.$ac_ext <<_ACEOF 10999 /* end confdefs.h. */ 11000 const unsigned short hello[] = u"hello"; 11001 int 11002 main () 11003 { 11004 11005 ; 11006 return 0; 11007 } 11008 _ACEOF 11009 rm -f conftest.$ac_objext 11010 if { (ac_try="$ac_compile" 11011 case "(($ac_try" in 11012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11013 *) ac_try_echo=$ac_try;; 11014 esac 11015 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11016 $as_echo "$ac_try_echo") >&5 11017 (eval "$ac_compile") 2>conftest.er1 11018 ac_status=$? 11019 grep -v '^ *+' conftest.er1 >conftest.err 11020 rm -f conftest.er1 11021 cat conftest.err >&5 11022 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11023 (exit $ac_status); } && { 11024 test -z "$ac_c_werror_flag" || 11025 test ! -s conftest.err 11026 } && test -s conftest.$ac_objext; then 11027 U_CHECK_UTF16_STRING=1 11028 else 11029 $as_echo "$as_me: failed program was:" >&5 11030 sed 's/^/| /' conftest.$ac_ext >&5 11031 11032 U_CHECK_UTF16_STRING=0 11033 fi 11034 11035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11036 if test "$U_CHECK_UTF16_STRING" = 0; then 11037 CFLAGS="${OLD_CFLAGS}" 11038 CXXFLAGS="${OLD_CXXFLAGS}" 11039 else 11040 CHECK_UTF16_STRING_RESULT="-qutf" 11041 fi 11042 fi 11043 ;; 11044 *-*-solaris*) 11045 if test "$ac_cv_c_compiler_gnu" = no; then 11046 OLD_CFLAGS="${CFLAGS}" 11047 OLD_CXXFLAGS="${CXXFLAGS}" 11048 CFLAGS="${CFLAGS} -xustr=ascii_utf16_ushort" 11049 CXXFLAGS="${CXXFLAGS} -xustr=ascii_utf16_ushort" 11050 cat >conftest.$ac_ext <<_ACEOF 11051 /* confdefs.h. */ 11052 _ACEOF 11053 cat confdefs.h >>conftest.$ac_ext 11054 cat >>conftest.$ac_ext <<_ACEOF 11055 /* end confdefs.h. */ 11056 const unsigned short hello[] = U"hello"; 11057 int 11058 main () 11059 { 11060 11061 ; 11062 return 0; 11063 } 11064 _ACEOF 11065 rm -f conftest.$ac_objext 11066 if { (ac_try="$ac_compile" 11067 case "(($ac_try" in 11068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11069 *) ac_try_echo=$ac_try;; 11070 esac 11071 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11072 $as_echo "$ac_try_echo") >&5 11073 (eval "$ac_compile") 2>conftest.er1 11074 ac_status=$? 11075 grep -v '^ *+' conftest.er1 >conftest.err 11076 rm -f conftest.er1 11077 cat conftest.err >&5 11078 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11079 (exit $ac_status); } && { 11080 test -z "$ac_c_werror_flag" || 11081 test ! -s conftest.err 11082 } && test -s conftest.$ac_objext; then 11083 U_CHECK_UTF16_STRING=1 11084 else 11085 $as_echo "$as_me: failed program was:" >&5 11086 sed 's/^/| /' conftest.$ac_ext >&5 11087 11088 U_CHECK_UTF16_STRING=0 11089 fi 11090 11091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11092 if test "$U_CHECK_UTF16_STRING" = 0; then 11093 CFLAGS="${OLD_CFLAGS}" 11094 CXXFLAGS="${OLD_CXXFLAGS}" 11095 else 11096 CHECK_UTF16_STRING_RESULT="-xustr=ascii_utf16_ushort" 11097 11098 # Since we can't detect the availability of this UTF-16 syntax at compile time, 11099 # we depend on configure telling us that we can use it. 11100 # Since we can't ensure ICU users use -xustr=ascii_utf16_ushort, 11101 # we only use this macro within ICU. 11102 # If an ICU user uses icu-config, this feature will be enabled. 11103 CPPFLAGS="${CPPFLAGS} -DU_CHECK_UTF16_STRING=1" 11104 U_CHECK_UTF16_STRING=0 11105 fi 11106 fi 11107 ;; 11108 *-*-hpux*) 11109 if test "$ac_cv_c_compiler_gnu" = no; then 11110 # The option will be detected at compile time without additional compiler options. 11111 CHECK_UTF16_STRING_RESULT="available" 11112 fi 11113 ;; 11114 *-*-cygwin) 11115 # wchar_t can be used 11116 CHECK_UTF16_STRING_RESULT="available" 11117 ;; 11118 *) 11119 ;; 11120 esac 11121 11122 # GCC >= 4.4 supports UTF16 string literals. The CFLAGS and CXXFLAGS may change in the future. 11123 # Since we have to use a different standard, if strict is enable, don't enable UTF16 string literals. 11124 U_CHECK_GNUC_UTF16_STRING=0 11125 if test "$ac_use_strict_options" = no && test "$CHECK_UTF16_STRING_RESULT" = "unknown"; then 11126 if test "$ac_cv_c_compiler_gnu" = yes; then 11127 OLD_CFLAGS="${CFLAGS}" 11128 OLD_CXXFLAGS="${CXXFLAGS}" 11129 CFLAGS="${CFLAGS} -std=gnu99 -D_GCC_" 11130 CXXFLAGS="${CXXFLAGS} -std=c++0x" 11131 cat >conftest.$ac_ext <<_ACEOF 11132 /* confdefs.h. */ 11133 _ACEOF 11134 cat confdefs.h >>conftest.$ac_ext 11135 cat >>conftest.$ac_ext <<_ACEOF 11136 /* end confdefs.h. */ 11137 11138 #if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 4) 11139 #ifdef _GCC_ 11140 typedef __CHAR16_TYPE__ char16_t; 11141 #endif 11142 char16_t test[] = u"This is a UTF16 literal string."; 11143 #else 11144 GCC IS TOO OLD! 11145 #endif 11146 11147 int 11148 main () 11149 { 11150 11151 ; 11152 return 0; 11153 } 11154 _ACEOF 11155 rm -f conftest.$ac_objext 11156 if { (ac_try="$ac_compile" 11157 case "(($ac_try" in 11158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11159 *) ac_try_echo=$ac_try;; 11160 esac 11161 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11162 $as_echo "$ac_try_echo") >&5 11163 (eval "$ac_compile") 2>conftest.er1 11164 ac_status=$? 11165 grep -v '^ *+' conftest.er1 >conftest.err 11166 rm -f conftest.er1 11167 cat conftest.err >&5 11168 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11169 (exit $ac_status); } && { 11170 test -z "$ac_c_werror_flag" || 11171 test ! -s conftest.err 11172 } && test -s conftest.$ac_objext; then 11173 U_CHECK_UTF16_STRING=1 11174 else 11175 $as_echo "$as_me: failed program was:" >&5 11176 sed 's/^/| /' conftest.$ac_ext >&5 11177 11178 U_CHECK_UTF16_STRING=0 11179 fi 11180 11181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11182 if test "$U_CHECK_UTF16_STRING" = 1; then 11183 CHECK_UTF16_STRING_RESULT="available"; 11184 U_CHECK_GNUC_UTF16_STRING=1 11185 else 11186 CFLAGS="${OLD_CFLAGS}" 11187 CXXFLAGS="${OLD_CXXFLAGS}" 11188 fi 11189 fi 11190 fi 11191 11192 11193 { $as_echo "$as_me:$LINENO: result: $CHECK_UTF16_STRING_RESULT" >&5 11194 $as_echo "$CHECK_UTF16_STRING_RESULT" >&6; } 11195 11196 11197 # Enable/disable extras 11198 # Check whether --enable-extras was given. 11199 if test "${enable_extras+set}" = set; then 11200 enableval=$enable_extras; case "${enableval}" in 11201 yes) extras=true ;; 11202 no) extras=false ;; 11203 *) { { $as_echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-extras" >&5 11204 $as_echo "$as_me: error: bad value ${enableval} for --enable-extras" >&2;} 11205 { (exit 1); exit 1; }; } ;; 11206 esac 11207 else 11208 extras=true 11209 fi 11210 11211 11212 if test "$extras" = true; then 11213 EXTRAS_TRUE= 11214 else 11215 EXTRAS_TRUE='#' 11216 fi 11217 # Check whether --enable-icuio was given. 11218 if test "${enable_icuio+set}" = set; then 11219 enableval=$enable_icuio; case "${enableval}" in 11220 yes) icuio=true ;; 11221 no) icuio=false ;; 11222 *) { { $as_echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-icuio" >&5 11223 $as_echo "$as_me: error: bad value ${enableval} for --enable-icuio" >&2;} 11224 { (exit 1); exit 1; }; } ;; 11225 esac 11226 else 11227 icuio=true 11228 fi 11229 11230 11231 if test "$icuio" = true; then 11232 ICUIO_TRUE= 11233 else 11234 ICUIO_TRUE='#' 11235 fi 11236 11237 # Enable/disable layout 11238 # Check whether --enable-layout was given. 11239 if test "${enable_layout+set}" = set; then 11240 enableval=$enable_layout; case "${enableval}" in 11241 yes) layout=true ;; 11242 no) layout=false ;; 11243 *) { { $as_echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-layout" >&5 11244 $as_echo "$as_me: error: bad value ${enableval} for --enable-layout" >&2;} 11245 { (exit 1); exit 1; }; } ;; 11246 esac 11247 else 11248 layout=true 11249 fi 11250 11251 11252 if test "$layout" = true; then 11253 LAYOUT_TRUE= 11254 else 11255 LAYOUT_TRUE='#' 11256 fi 11257 11258 11259 # Check whether --with-data-packaging was given. 11260 if test "${with_data_packaging+set}" = set; then 11261 withval=$with_data_packaging; case "${withval}" in 11262 files|archive|library) datapackaging=$withval ;; 11263 auto) datapackaging=$withval ;; 11264 common) datapackaging=archive ;; 11265 dll) datapackaging=library ;; 11266 static) datapackaging=static ;; 11267 *) { { $as_echo "$as_me:$LINENO: error: bad value ${withval} for --with-data-packaging" >&5 11268 $as_echo "$as_me: error: bad value ${withval} for --with-data-packaging" >&2;} 11269 { (exit 1); exit 1; }; } ;; 11270 esac 11271 else 11272 datapackaging= 11273 fi 11274 11275 11276 # Note: 'thesysconfdir' is an evaluated version, for Man pages, so also for thedatadir, thelibdir, etc.. 11277 # thesysconfdir=`eval echo $sysconfdir` 11278 thedatadir=`eval echo $datadir` 11279 # Always put raw data files in share/icu/{version}, etc. Never use lib/icu/{version} for data files.. Actual shared libraries will go in {libdir}. 11280 pkgicudatadir=$datadir 11281 thepkgicudatadir=$thedatadir 11282 11283 11284 11285 11286 if test x"$datapackaging" = x -o x"$datapackaging" = xauto; then 11287 # default to library 11288 datapackaging=library 11289 if test "$ENABLE_STATIC" = "YES"; then 11290 if test "$ENABLE_SHARED" != "YES"; then 11291 datapackaging=static 11292 fi 11293 fi 11294 fi 11295 11296 datapackaging_dir=`eval echo $thedatadir`"/icu/${VERSION}" 11297 11298 datapackaging_msg="(No explaination for mode $datapackaging.)" 11299 11300 datapackaging_msg_path="ICU will look in $datapackaging_dir which is the installation location. Call u_setDataDirectory() or use the ICU_DATA environment variable to override." 11301 datapackaging_msg_set="ICU will use the linked data library. If linked with the stub library located in stubdata/, the application can use udata_setCommonData() or set a data path to override." 11302 datapackaging_howfound="(unknown)" 11303 11304 case "$datapackaging" in 11305 files) 11306 DATA_PACKAGING_MODE=files 11307 datapackaging_msg="ICU data will be stored in individual files." 11308 datapackaging_howfound="$datapackaging_msg_path" 11309 ;; 11310 archive) 11311 DATA_PACKAGING_MODE=common 11312 datapackaging_msg="ICU data will be stored in a single .dat file." 11313 datapackaging_howfound="$datapackaging_msg_path" 11314 ;; 11315 library) 11316 DATA_PACKAGING_MODE=dll 11317 datapackaging_msg="ICU data will be linked with ICU." 11318 if test "$ENABLE_STATIC" = "YES"; then 11319 datapackaging_msg="$datapackaging_msg A static data library will be built. " 11320 fi 11321 if test "$ENABLE_SHARED" = "YES"; then 11322 datapackaging_msg="$datapackaging_msg A shared data library will be built. " 11323 fi 11324 datapackaging_howfound="$datapackaging_msg_set" 11325 ;; 11326 static) 11327 DATA_PACKAGING_MODE=static 11328 datapackaging_msg="ICU data will be stored in a static library." 11329 datapackaging_howfound="$datapackaging_msg_set" 11330 ;; 11331 esac 11332 11333 11334 # Sets a library suffix 11335 { $as_echo "$as_me:$LINENO: checking for a library suffix to use" >&5 11336 $as_echo_n "checking for a library suffix to use... " >&6; } 11337 11338 # Check whether --with-library-suffix was given. 11339 if test "${with_library_suffix+set}" = set; then 11340 withval=$with_library_suffix; ICULIBSUFFIX="${withval}" 11341 else 11342 ICULIBSUFFIX= 11343 fi 11344 11345 msg=$ICULIBSUFFIX 11346 if test "$msg" = ""; then 11347 msg=none 11348 fi 11349 { $as_echo "$as_me:$LINENO: result: $msg" >&5 11350 $as_echo "$msg" >&6; } 11351 11352 if test "$ICULIBSUFFIX" != "" 11353 then 11354 U_HAVE_LIB_SUFFIX=1 11355 ICULIBSUFFIXCNAME=`echo _$ICULIBSUFFIX | sed 's/^A-Za-z0-9_/_/g'` 11356 else 11357 U_HAVE_LIB_SUFFIX=0 11358 fi 11359 11360 11361 11362 # Enable/disable tests 11363 # Check whether --enable-tests was given. 11364 if test "${enable_tests+set}" = set; then 11365 enableval=$enable_tests; case "${enableval}" in 11366 yes) tests=true ;; 11367 no) tests=false ;; 11368 *) { { $as_echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-tests" >&5 11369 $as_echo "$as_me: error: bad value ${enableval} for --enable-tests" >&2;} 11370 { (exit 1); exit 1; }; } ;; 11371 esac 11372 else 11373 tests=true 11374 fi 11375 11376 11377 if test "$tests" = true; then 11378 TESTS_TRUE= 11379 else 11380 TESTS_TRUE='#' 11381 fi 11382 11383 # Enable/disable samples 11384 # Check whether --enable-samples was given. 11385 if test "${enable_samples+set}" = set; then 11386 enableval=$enable_samples; case "${enableval}" in 11387 yes) samples=true ;; 11388 no) samples=false ;; 11389 *) { { $as_echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-samples" >&5 11390 $as_echo "$as_me: error: bad value ${enableval} for --enable-samples" >&2;} 11391 { (exit 1); exit 1; }; } ;; 11392 esac 11393 else 11394 samples=true 11395 fi 11396 11397 11398 if test "$samples" = true; then 11399 SAMPLES_TRUE= 11400 else 11401 SAMPLES_TRUE='#' 11402 fi 11403 11404 ICUDATA_CHAR=$U_ENDIAN_CHAR 11405 11406 # Platform-specific Makefile setup 11407 # set ICUDATA_CHAR to 'e' for any EBCDIC (which should be big endian) platform. 11408 case "${host}" in 11409 *-*-solaris*) platform=U_SOLARIS ;; 11410 *-*-linux*) platform=U_LINUX ;; 11411 *-pc-gnu) platform=U_HURD ;; 11412 *-*-*bsd*|*-*-dragonfly*) platform=U_BSD ;; 11413 *-*-aix*) platform=U_AIX ;; 11414 *-*-hpux*) platform=U_HPUX ;; 11415 *-apple-darwin*|*-apple-rhapsody*) platform=U_DARWIN ;; 11416 *-*-cygwin*|*-*-mingw*) platform=U_CYGWIN ;; 11417 *-*ibm-openedition*|*-*-os390*) platform=OS390 11418 if test "${ICU_ENABLE_ASCII_STRINGS}" != "1"; then 11419 ICUDATA_CHAR="e" 11420 fi ;; 11421 *-*-os400*) platform=OS400 11422 if test "${ICU_ENABLE_ASCII_STRINGS}" != "1"; then 11423 ICUDATA_CHAR="e" 11424 fi ;; 11425 *-*-nto*) platform=U_QNX ;; 11426 *-dec-osf*) platform=U_OSF ;; 11427 *-*-beos) platform=U_BEOS ;; 11428 *-*-irix*) platform=U_IRIX ;; 11429 *-ncr-*) platform=U_MPRAS ;; 11430 *) platform=U_UNKNOWN_PLATFORM ;; 11431 esac 11432 11433 11434 platform_make_fragment_name="$icu_cv_host_frag" 11435 platform_make_fragment='$(top_srcdir)/config/'"$platform_make_fragment_name" 11436 11437 11438 11439 if test "${FORCE_LIBS}" != ""; then 11440 echo " *** Overriding automatically chosen LIBS=$LIBS, using instead FORCE_LIBS=${FORCE_LIBS}" 1>&6 11441 LIBS=${FORCE_LIBS} 11442 fi 11443 11444 11445 # Now that we're done using CPPFLAGS etc. for tests, we can change it 11446 # for build. 11447 11448 if test $ICU_USE_THREADS -ne 0 11449 then 11450 CPPFLAGS="$CPPFLAGS \$(THREADSCPPFLAGS)" 11451 CFLAGS="$CFLAGS \$(THREADSCFLAGS)" 11452 CXXFLAGS="$CXXFLAGS \$(THREADSCXXFLAGS)" 11453 fi 11454 11455 # output the Makefiles 11456 ac_config_files="$ac_config_files icudefs.mk Makefile data/pkgdataMakefile config/Makefile.inc config/pkgdataMakefile data/Makefile stubdata/Makefile common/Makefile i18n/Makefile layout/Makefile layoutex/Makefile io/Makefile extra/Makefile extra/uconv/Makefile extra/uconv/pkgdataMakefile 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/gennorm2/Makefile tools/genprops/Makefile tools/gencase/Makefile tools/genbidi/Makefile tools/genpname/Makefile tools/genbrk/Makefile tools/gensprep/Makefile tools/icuinfo/Makefile tools/icupkg/Makefile tools/icuswap/Makefile tools/pkgdata/Makefile tools/tzcode/Makefile tools/gencfu/Makefile test/Makefile test/compat/Makefile test/testdata/Makefile test/testdata/pkgdataMakefile test/hdrtst/Makefile test/intltest/Makefile test/cintltst/Makefile test/iotest/Makefile test/letest/Makefile test/perf/Makefile test/perf/collationperf/Makefile test/perf/ubrkperf/Makefile test/perf/charperf/Makefile test/perf/convperf/Makefile test/perf/normperf/Makefile test/perf/strsrchperf/Makefile test/perf/unisetperf/Makefile test/perf/usetperf/Makefile test/perf/ustrperf/Makefile test/perf/utfperf/Makefile test/perf/utrie2perf/Makefile samples/Makefile samples/date/Makefile samples/cal/Makefile samples/layout/Makefile common/unicode/platform.h" 11457 11458 cat >confcache <<\_ACEOF 11459 # This file is a shell script that caches the results of configure 11460 # tests run on this system so they can be shared between configure 11461 # scripts and configure runs, see configure's option --config-cache. 11462 # It is not useful on other systems. If it contains results you don't 11463 # want to keep, you may remove or edit it. 11464 # 11465 # config.status only pays attention to the cache file if you give it 11466 # the --recheck option to rerun configure. 11467 # 11468 # `ac_cv_env_foo' variables (set or unset) will be overridden when 11469 # loading this file, other *unset* `ac_cv_foo' will be assigned the 11470 # following values. 11471 11472 _ACEOF 11473 11474 # The following way of writing the cache mishandles newlines in values, 11475 # but we know of no workaround that is simple, portable, and efficient. 11476 # So, we kill variables containing newlines. 11477 # Ultrix sh set writes to stderr and can't be redirected directly, 11478 # and sets the high bit in the cache file unless we assign to the vars. 11479 ( 11480 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 11481 eval ac_val=\$$ac_var 11482 case $ac_val in #( 11483 *${as_nl}*) 11484 case $ac_var in #( 11485 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 11486 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 11487 esac 11488 case $ac_var in #( 11489 _ | IFS | as_nl) ;; #( 11490 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 11491 *) $as_unset $ac_var ;; 11492 esac ;; 11493 esac 11494 done 11495 11496 (set) 2>&1 | 11497 case $as_nl`(ac_space=' '; set) 2>&1` in #( 11498 *${as_nl}ac_space=\ *) 11499 # `set' does not quote correctly, so add quotes (double-quote 11500 # substitution turns \\\\ into \\, and sed turns \\ into \). 11501 sed -n \ 11502 "s/'/'\\\\''/g; 11503 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 11504 ;; #( 11505 *) 11506 # `set' quotes correctly as required by POSIX, so do not add quotes. 11507 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 11508 ;; 11509 esac | 11510 sort 11511 ) | 11512 sed ' 11513 /^ac_cv_env_/b end 11514 t clear 11515 :clear 11516 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 11517 t end 11518 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 11519 :end' >>confcache 11520 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 11521 if test -w "$cache_file"; then 11522 test "x$cache_file" != "x/dev/null" && 11523 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5 11524 $as_echo "$as_me: updating cache $cache_file" >&6;} 11525 cat confcache >$cache_file 11526 else 11527 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 11528 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 11529 fi 11530 fi 11531 rm -f confcache 11532 11533 test "x$prefix" = xNONE && prefix=$ac_default_prefix 11534 # Let make expand exec_prefix. 11535 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 11536 11537 DEFS=-DHAVE_CONFIG_H 11538 11539 ac_libobjs= 11540 ac_ltlibobjs= 11541 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 11542 # 1. Remove the extension, and $U if already installed. 11543 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 11544 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 11545 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 11546 # will be set to the directory where LIBOBJS objects are built. 11547 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" 11548 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' 11549 done 11550 LIBOBJS=$ac_libobjs 11551 11552 LTLIBOBJS=$ac_ltlibobjs 11553 11554 11555 11556 11557 : ${CONFIG_STATUS=./config.status} 11558 ac_write_fail=0 11559 ac_clean_files_save=$ac_clean_files 11560 ac_clean_files="$ac_clean_files $CONFIG_STATUS" 11561 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 11562 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 11563 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11564 #! $SHELL 11565 # Generated by $as_me. 11566 # Run this file to recreate the current configuration. 11567 # Compiler output produced by configure, useful for debugging 11568 # configure, is in config.log if it exists. 11569 11570 debug=false 11571 ac_cs_recheck=false 11572 ac_cs_silent=false 11573 SHELL=\${CONFIG_SHELL-$SHELL} 11574 _ACEOF 11575 11576 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11577 ## --------------------- ## 11578 ## M4sh Initialization. ## 11579 ## --------------------- ## 11580 11581 # Be more Bourne compatible 11582 DUALCASE=1; export DUALCASE # for MKS sh 11583 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 11584 emulate sh 11585 NULLCMD=: 11586 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 11587 # is contrary to our usage. Disable this feature. 11588 alias -g '${1+"$@"}'='"$@"' 11589 setopt NO_GLOB_SUBST 11590 else 11591 case `(set -o) 2>/dev/null` in 11592 *posix*) set -o posix ;; 11593 esac 11594 11595 fi 11596 11597 11598 11599 11600 # PATH needs CR 11601 # Avoid depending upon Character Ranges. 11602 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 11603 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 11604 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 11605 as_cr_digits='0123456789' 11606 as_cr_alnum=$as_cr_Letters$as_cr_digits 11607 11608 as_nl=' 11609 ' 11610 export as_nl 11611 # Printing a long string crashes Solaris 7 /usr/bin/printf. 11612 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 11613 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 11614 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 11615 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 11616 as_echo='printf %s\n' 11617 as_echo_n='printf %s' 11618 else 11619 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 11620 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 11621 as_echo_n='/usr/ucb/echo -n' 11622 else 11623 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 11624 as_echo_n_body='eval 11625 arg=$1; 11626 case $arg in 11627 *"$as_nl"*) 11628 expr "X$arg" : "X\\(.*\\)$as_nl"; 11629 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 11630 esac; 11631 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 11632 ' 11633 export as_echo_n_body 11634 as_echo_n='sh -c $as_echo_n_body as_echo' 11635 fi 11636 export as_echo_body 11637 as_echo='sh -c $as_echo_body as_echo' 11638 fi 11639 11640 # The user is always right. 11641 if test "${PATH_SEPARATOR+set}" != set; then 11642 PATH_SEPARATOR=: 11643 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 11644 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 11645 PATH_SEPARATOR=';' 11646 } 11647 fi 11648 11649 # Support unset when possible. 11650 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 11651 as_unset=unset 11652 else 11653 as_unset=false 11654 fi 11655 11656 11657 # IFS 11658 # We need space, tab and new line, in precisely that order. Quoting is 11659 # there to prevent editors from complaining about space-tab. 11660 # (If _AS_PATH_WALK were called with IFS unset, it would disable word 11661 # splitting by setting IFS to empty value.) 11662 IFS=" "" $as_nl" 11663 11664 # Find who we are. Look in the path if we contain no directory separator. 11665 case $0 in 11666 *[\\/]* ) as_myself=$0 ;; 11667 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11668 for as_dir in $PATH 11669 do 11670 IFS=$as_save_IFS 11671 test -z "$as_dir" && as_dir=. 11672 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 11673 done 11674 IFS=$as_save_IFS 11675 11676 ;; 11677 esac 11678 # We did not find ourselves, most probably we were run as `sh COMMAND' 11679 # in which case we are not to be found in the path. 11680 if test "x$as_myself" = x; then 11681 as_myself=$0 11682 fi 11683 if test ! -f "$as_myself"; then 11684 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 11685 { (exit 1); exit 1; } 11686 fi 11687 11688 # Work around bugs in pre-3.0 UWIN ksh. 11689 for as_var in ENV MAIL MAILPATH 11690 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 11691 done 11692 PS1='$ ' 11693 PS2='> ' 11694 PS4='+ ' 11695 11696 # NLS nuisances. 11697 LC_ALL=C 11698 export LC_ALL 11699 LANGUAGE=C 11700 export LANGUAGE 11701 11702 # Required to use basename. 11703 if expr a : '\(a\)' >/dev/null 2>&1 && 11704 test "X`expr 00001 : '.*\(...\)'`" = X001; then 11705 as_expr=expr 11706 else 11707 as_expr=false 11708 fi 11709 11710 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 11711 as_basename=basename 11712 else 11713 as_basename=false 11714 fi 11715 11716 11717 # Name of the executable. 11718 as_me=`$as_basename -- "$0" || 11719 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 11720 X"$0" : 'X\(//\)$' \| \ 11721 X"$0" : 'X\(/\)' \| . 2>/dev/null || 11722 $as_echo X/"$0" | 11723 sed '/^.*\/\([^/][^/]*\)\/*$/{ 11724 s//\1/ 11725 q 11726 } 11727 /^X\/\(\/\/\)$/{ 11728 s//\1/ 11729 q 11730 } 11731 /^X\/\(\/\).*/{ 11732 s//\1/ 11733 q 11734 } 11735 s/.*/./; q'` 11736 11737 # CDPATH. 11738 $as_unset CDPATH 11739 11740 11741 11742 as_lineno_1=$LINENO 11743 as_lineno_2=$LINENO 11744 test "x$as_lineno_1" != "x$as_lineno_2" && 11745 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 11746 11747 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 11748 # uniformly replaced by the line number. The first 'sed' inserts a 11749 # line-number line after each line using $LINENO; the second 'sed' 11750 # does the real work. The second script uses 'N' to pair each 11751 # line-number line with the line containing $LINENO, and appends 11752 # trailing '-' during substitution so that $LINENO is not a special 11753 # case at line end. 11754 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 11755 # scripts with optimization help from Paolo Bonzini. Blame Lee 11756 # E. McMahon (1931-1989) for sed's syntax. :-) 11757 sed -n ' 11758 p 11759 /[$]LINENO/= 11760 ' <$as_myself | 11761 sed ' 11762 s/[$]LINENO.*/&-/ 11763 t lineno 11764 b 11765 :lineno 11766 N 11767 :loop 11768 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 11769 t loop 11770 s/-\n.*// 11771 ' >$as_me.lineno && 11772 chmod +x "$as_me.lineno" || 11773 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 11774 { (exit 1); exit 1; }; } 11775 11776 # Don't try to exec as it changes $[0], causing all sort of problems 11777 # (the dirname of $[0] is not the place where we might find the 11778 # original and so on. Autoconf is especially sensitive to this). 11779 . "./$as_me.lineno" 11780 # Exit status is that of the last command. 11781 exit 11782 } 11783 11784 11785 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 11786 as_dirname=dirname 11787 else 11788 as_dirname=false 11789 fi 11790 11791 ECHO_C= ECHO_N= ECHO_T= 11792 case `echo -n x` in 11793 -n*) 11794 case `echo 'x\c'` in 11795 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 11796 *) ECHO_C='\c';; 11797 esac;; 11798 *) 11799 ECHO_N='-n';; 11800 esac 11801 if expr a : '\(a\)' >/dev/null 2>&1 && 11802 test "X`expr 00001 : '.*\(...\)'`" = X001; then 11803 as_expr=expr 11804 else 11805 as_expr=false 11806 fi 11807 11808 rm -f conf$$ conf$$.exe conf$$.file 11809 if test -d conf$$.dir; then 11810 rm -f conf$$.dir/conf$$.file 11811 else 11812 rm -f conf$$.dir 11813 mkdir conf$$.dir 2>/dev/null 11814 fi 11815 if (echo >conf$$.file) 2>/dev/null; then 11816 if ln -s conf$$.file conf$$ 2>/dev/null; then 11817 as_ln_s='ln -s' 11818 # ... but there are two gotchas: 11819 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 11820 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 11821 # In both cases, we have to default to `cp -p'. 11822 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 11823 as_ln_s='cp -p' 11824 elif ln conf$$.file conf$$ 2>/dev/null; then 11825 as_ln_s=ln 11826 else 11827 as_ln_s='cp -p' 11828 fi 11829 else 11830 as_ln_s='cp -p' 11831 fi 11832 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 11833 rmdir conf$$.dir 2>/dev/null 11834 11835 if mkdir -p . 2>/dev/null; then 11836 as_mkdir_p=: 11837 else 11838 test -d ./-p && rmdir ./-p 11839 as_mkdir_p=false 11840 fi 11841 11842 if test -x / >/dev/null 2>&1; then 11843 as_test_x='test -x' 11844 else 11845 if ls -dL / >/dev/null 2>&1; then 11846 as_ls_L_option=L 11847 else 11848 as_ls_L_option= 11849 fi 11850 as_test_x=' 11851 eval sh -c '\'' 11852 if test -d "$1"; then 11853 test -d "$1/."; 11854 else 11855 case $1 in 11856 -*)set "./$1";; 11857 esac; 11858 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 11859 ???[sx]*):;;*)false;;esac;fi 11860 '\'' sh 11861 ' 11862 fi 11863 as_executable_p=$as_test_x 11864 11865 # Sed expression to map a string onto a valid CPP name. 11866 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 11867 11868 # Sed expression to map a string onto a valid variable name. 11869 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 11870 11871 11872 exec 6>&1 11873 11874 # Save the log message, to keep $[0] and so on meaningful, and to 11875 # report actual input values of CONFIG_FILES etc. instead of their 11876 # values after options handling. 11877 ac_log=" 11878 This file was extended by $as_me, which was 11879 generated by GNU Autoconf 2.63. Invocation command line was 11880 11881 CONFIG_FILES = $CONFIG_FILES 11882 CONFIG_HEADERS = $CONFIG_HEADERS 11883 CONFIG_LINKS = $CONFIG_LINKS 11884 CONFIG_COMMANDS = $CONFIG_COMMANDS 11885 $ $0 $@ 11886 11887 on `(hostname || uname -n) 2>/dev/null | sed 1q` 11888 " 11889 11890 _ACEOF 11891 11892 case $ac_config_files in *" 11893 "*) set x $ac_config_files; shift; ac_config_files=$*;; 11894 esac 11895 11896 case $ac_config_headers in *" 11897 "*) set x $ac_config_headers; shift; ac_config_headers=$*;; 11898 esac 11899 11900 11901 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11902 # Files that config.status was made for. 11903 config_files="$ac_config_files" 11904 config_headers="$ac_config_headers" 11905 11906 _ACEOF 11907 11908 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11909 ac_cs_usage="\ 11910 \`$as_me' instantiates files from templates according to the 11911 current configuration. 11912 11913 Usage: $0 [OPTION]... [FILE]... 11914 11915 -h, --help print this help, then exit 11916 -V, --version print version number and configuration settings, then exit 11917 -q, --quiet, --silent 11918 do not print progress messages 11919 -d, --debug don't remove temporary files 11920 --recheck update $as_me by reconfiguring in the same conditions 11921 --file=FILE[:TEMPLATE] 11922 instantiate the configuration file FILE 11923 --header=FILE[:TEMPLATE] 11924 instantiate the configuration header FILE 11925 11926 Configuration files: 11927 $config_files 11928 11929 Configuration headers: 11930 $config_headers 11931 11932 Report bugs to <bug-autoconf (at] gnu.org>." 11933 11934 _ACEOF 11935 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11936 ac_cs_version="\\ 11937 config.status 11938 configured by $0, generated by GNU Autoconf 2.63, 11939 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 11940 11941 Copyright (C) 2008 Free Software Foundation, Inc. 11942 This config.status script is free software; the Free Software Foundation 11943 gives unlimited permission to copy, distribute and modify it." 11944 11945 ac_pwd='$ac_pwd' 11946 srcdir='$srcdir' 11947 INSTALL='$INSTALL' 11948 test -n "\$AWK" || AWK=awk 11949 _ACEOF 11950 11951 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11952 # The default lists apply if the user does not specify any file. 11953 ac_need_defaults=: 11954 while test $# != 0 11955 do 11956 case $1 in 11957 --*=*) 11958 ac_option=`expr "X$1" : 'X\([^=]*\)='` 11959 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 11960 ac_shift=: 11961 ;; 11962 *) 11963 ac_option=$1 11964 ac_optarg=$2 11965 ac_shift=shift 11966 ;; 11967 esac 11968 11969 case $ac_option in 11970 # Handling of the options. 11971 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 11972 ac_cs_recheck=: ;; 11973 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 11974 $as_echo "$ac_cs_version"; exit ;; 11975 --debug | --debu | --deb | --de | --d | -d ) 11976 debug=: ;; 11977 --file | --fil | --fi | --f ) 11978 $ac_shift 11979 case $ac_optarg in 11980 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 11981 esac 11982 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'" 11983 ac_need_defaults=false;; 11984 --header | --heade | --head | --hea ) 11985 $ac_shift 11986 case $ac_optarg in 11987 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 11988 esac 11989 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'" 11990 ac_need_defaults=false;; 11991 --he | --h) 11992 # Conflict between --help and --header 11993 { $as_echo "$as_me: error: ambiguous option: $1 11994 Try \`$0 --help' for more information." >&2 11995 { (exit 1); exit 1; }; };; 11996 --help | --hel | -h ) 11997 $as_echo "$ac_cs_usage"; exit ;; 11998 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 11999 | -silent | --silent | --silen | --sile | --sil | --si | --s) 12000 ac_cs_silent=: ;; 12001 12002 # This is an error. 12003 -*) { $as_echo "$as_me: error: unrecognized option: $1 12004 Try \`$0 --help' for more information." >&2 12005 { (exit 1); exit 1; }; } ;; 12006 12007 *) ac_config_targets="$ac_config_targets $1" 12008 ac_need_defaults=false ;; 12009 12010 esac 12011 shift 12012 done 12013 12014 ac_configure_extra_args= 12015 12016 if $ac_cs_silent; then 12017 exec 6>/dev/null 12018 ac_configure_extra_args="$ac_configure_extra_args --silent" 12019 fi 12020 12021 _ACEOF 12022 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12023 if \$ac_cs_recheck; then 12024 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 12025 shift 12026 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 12027 CONFIG_SHELL='$SHELL' 12028 export CONFIG_SHELL 12029 exec "\$@" 12030 fi 12031 12032 _ACEOF 12033 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12034 exec 5>>config.log 12035 { 12036 echo 12037 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 12038 ## Running $as_me. ## 12039 _ASBOX 12040 $as_echo "$ac_log" 12041 } >&5 12042 12043 _ACEOF 12044 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12045 _ACEOF 12046 12047 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12048 12049 # Handling of arguments. 12050 for ac_config_target in $ac_config_targets 12051 do 12052 case $ac_config_target in 12053 "common/icucfg.h") CONFIG_HEADERS="$CONFIG_HEADERS common/icucfg.h" ;; 12054 "icudefs.mk") CONFIG_FILES="$CONFIG_FILES icudefs.mk" ;; 12055 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 12056 "data/pkgdataMakefile") CONFIG_FILES="$CONFIG_FILES data/pkgdataMakefile" ;; 12057 "config/Makefile.inc") CONFIG_FILES="$CONFIG_FILES config/Makefile.inc" ;; 12058 "config/pkgdataMakefile") CONFIG_FILES="$CONFIG_FILES config/pkgdataMakefile" ;; 12059 "data/Makefile") CONFIG_FILES="$CONFIG_FILES data/Makefile" ;; 12060 "stubdata/Makefile") CONFIG_FILES="$CONFIG_FILES stubdata/Makefile" ;; 12061 "common/Makefile") CONFIG_FILES="$CONFIG_FILES common/Makefile" ;; 12062 "i18n/Makefile") CONFIG_FILES="$CONFIG_FILES i18n/Makefile" ;; 12063 "layout/Makefile") CONFIG_FILES="$CONFIG_FILES layout/Makefile" ;; 12064 "layoutex/Makefile") CONFIG_FILES="$CONFIG_FILES layoutex/Makefile" ;; 12065 "io/Makefile") CONFIG_FILES="$CONFIG_FILES io/Makefile" ;; 12066 "extra/Makefile") CONFIG_FILES="$CONFIG_FILES extra/Makefile" ;; 12067 "extra/uconv/Makefile") CONFIG_FILES="$CONFIG_FILES extra/uconv/Makefile" ;; 12068 "extra/uconv/pkgdataMakefile") CONFIG_FILES="$CONFIG_FILES extra/uconv/pkgdataMakefile" ;; 12069 "extra/scrptrun/Makefile") CONFIG_FILES="$CONFIG_FILES extra/scrptrun/Makefile" ;; 12070 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;; 12071 "tools/ctestfw/Makefile") CONFIG_FILES="$CONFIG_FILES tools/ctestfw/Makefile" ;; 12072 "tools/toolutil/Makefile") CONFIG_FILES="$CONFIG_FILES tools/toolutil/Makefile" ;; 12073 "tools/makeconv/Makefile") CONFIG_FILES="$CONFIG_FILES tools/makeconv/Makefile" ;; 12074 "tools/genrb/Makefile") CONFIG_FILES="$CONFIG_FILES tools/genrb/Makefile" ;; 12075 "tools/genuca/Makefile") CONFIG_FILES="$CONFIG_FILES tools/genuca/Makefile" ;; 12076 "tools/genccode/Makefile") CONFIG_FILES="$CONFIG_FILES tools/genccode/Makefile" ;; 12077 "tools/gencmn/Makefile") CONFIG_FILES="$CONFIG_FILES tools/gencmn/Makefile" ;; 12078 "tools/gencnval/Makefile") CONFIG_FILES="$CONFIG_FILES tools/gencnval/Makefile" ;; 12079 "tools/genctd/Makefile") CONFIG_FILES="$CONFIG_FILES tools/genctd/Makefile" ;; 12080 "tools/gennames/Makefile") CONFIG_FILES="$CONFIG_FILES tools/gennames/Makefile" ;; 12081 "tools/gentest/Makefile") CONFIG_FILES="$CONFIG_FILES tools/gentest/Makefile" ;; 12082 "tools/gennorm2/Makefile") CONFIG_FILES="$CONFIG_FILES tools/gennorm2/Makefile" ;; 12083 "tools/genprops/Makefile") CONFIG_FILES="$CONFIG_FILES tools/genprops/Makefile" ;; 12084 "tools/gencase/Makefile") CONFIG_FILES="$CONFIG_FILES tools/gencase/Makefile" ;; 12085 "tools/genbidi/Makefile") CONFIG_FILES="$CONFIG_FILES tools/genbidi/Makefile" ;; 12086 "tools/genpname/Makefile") CONFIG_FILES="$CONFIG_FILES tools/genpname/Makefile" ;; 12087 "tools/genbrk/Makefile") CONFIG_FILES="$CONFIG_FILES tools/genbrk/Makefile" ;; 12088 "tools/gensprep/Makefile") CONFIG_FILES="$CONFIG_FILES tools/gensprep/Makefile" ;; 12089 "tools/icuinfo/Makefile") CONFIG_FILES="$CONFIG_FILES tools/icuinfo/Makefile" ;; 12090 "tools/icupkg/Makefile") CONFIG_FILES="$CONFIG_FILES tools/icupkg/Makefile" ;; 12091 "tools/icuswap/Makefile") CONFIG_FILES="$CONFIG_FILES tools/icuswap/Makefile" ;; 12092 "tools/pkgdata/Makefile") CONFIG_FILES="$CONFIG_FILES tools/pkgdata/Makefile" ;; 12093 "tools/tzcode/Makefile") CONFIG_FILES="$CONFIG_FILES tools/tzcode/Makefile" ;; 12094 "tools/gencfu/Makefile") CONFIG_FILES="$CONFIG_FILES tools/gencfu/Makefile" ;; 12095 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;; 12096 "test/compat/Makefile") CONFIG_FILES="$CONFIG_FILES test/compat/Makefile" ;; 12097 "test/testdata/Makefile") CONFIG_FILES="$CONFIG_FILES test/testdata/Makefile" ;; 12098 "test/testdata/pkgdataMakefile") CONFIG_FILES="$CONFIG_FILES test/testdata/pkgdataMakefile" ;; 12099 "test/hdrtst/Makefile") CONFIG_FILES="$CONFIG_FILES test/hdrtst/Makefile" ;; 12100 "test/intltest/Makefile") CONFIG_FILES="$CONFIG_FILES test/intltest/Makefile" ;; 12101 "test/cintltst/Makefile") CONFIG_FILES="$CONFIG_FILES test/cintltst/Makefile" ;; 12102 "test/iotest/Makefile") CONFIG_FILES="$CONFIG_FILES test/iotest/Makefile" ;; 12103 "test/letest/Makefile") CONFIG_FILES="$CONFIG_FILES test/letest/Makefile" ;; 12104 "test/perf/Makefile") CONFIG_FILES="$CONFIG_FILES test/perf/Makefile" ;; 12105 "test/perf/collationperf/Makefile") CONFIG_FILES="$CONFIG_FILES test/perf/collationperf/Makefile" ;; 12106 "test/perf/ubrkperf/Makefile") CONFIG_FILES="$CONFIG_FILES test/perf/ubrkperf/Makefile" ;; 12107 "test/perf/charperf/Makefile") CONFIG_FILES="$CONFIG_FILES test/perf/charperf/Makefile" ;; 12108 "test/perf/convperf/Makefile") CONFIG_FILES="$CONFIG_FILES test/perf/convperf/Makefile" ;; 12109 "test/perf/normperf/Makefile") CONFIG_FILES="$CONFIG_FILES test/perf/normperf/Makefile" ;; 12110 "test/perf/strsrchperf/Makefile") CONFIG_FILES="$CONFIG_FILES test/perf/strsrchperf/Makefile" ;; 12111 "test/perf/unisetperf/Makefile") CONFIG_FILES="$CONFIG_FILES test/perf/unisetperf/Makefile" ;; 12112 "test/perf/usetperf/Makefile") CONFIG_FILES="$CONFIG_FILES test/perf/usetperf/Makefile" ;; 12113 "test/perf/ustrperf/Makefile") CONFIG_FILES="$CONFIG_FILES test/perf/ustrperf/Makefile" ;; 12114 "test/perf/utfperf/Makefile") CONFIG_FILES="$CONFIG_FILES test/perf/utfperf/Makefile" ;; 12115 "test/perf/utrie2perf/Makefile") CONFIG_FILES="$CONFIG_FILES test/perf/utrie2perf/Makefile" ;; 12116 "samples/Makefile") CONFIG_FILES="$CONFIG_FILES samples/Makefile" ;; 12117 "samples/date/Makefile") CONFIG_FILES="$CONFIG_FILES samples/date/Makefile" ;; 12118 "samples/cal/Makefile") CONFIG_FILES="$CONFIG_FILES samples/cal/Makefile" ;; 12119 "samples/layout/Makefile") CONFIG_FILES="$CONFIG_FILES samples/layout/Makefile" ;; 12120 "common/unicode/platform.h") CONFIG_FILES="$CONFIG_FILES common/unicode/platform.h" ;; 12121 12122 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 12123 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 12124 { (exit 1); exit 1; }; };; 12125 esac 12126 done 12127 12128 12129 # If the user did not use the arguments to specify the items to instantiate, 12130 # then the envvar interface is used. Set only those that are not. 12131 # We use the long form for the default assignment because of an extremely 12132 # bizarre bug on SunOS 4.1.3. 12133 if $ac_need_defaults; then 12134 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 12135 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 12136 fi 12137 12138 # Have a temporary directory for convenience. Make it in the build tree 12139 # simply because there is no reason against having it here, and in addition, 12140 # creating and moving files from /tmp can sometimes cause problems. 12141 # Hook for its removal unless debugging. 12142 # Note that there is a small window in which the directory will not be cleaned: 12143 # after its creation but before its name has been assigned to `$tmp'. 12144 $debug || 12145 { 12146 tmp= 12147 trap 'exit_status=$? 12148 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 12149 ' 0 12150 trap '{ (exit 1); exit 1; }' 1 2 13 15 12151 } 12152 # Create a (secure) tmp directory for tmp files. 12153 12154 { 12155 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 12156 test -n "$tmp" && test -d "$tmp" 12157 } || 12158 { 12159 tmp=./conf$$-$RANDOM 12160 (umask 077 && mkdir "$tmp") 12161 } || 12162 { 12163 $as_echo "$as_me: cannot create a temporary directory in ." >&2 12164 { (exit 1); exit 1; } 12165 } 12166 12167 # Set up the scripts for CONFIG_FILES section. 12168 # No need to generate them if there are no CONFIG_FILES. 12169 # This happens for instance with `./config.status config.h'. 12170 if test -n "$CONFIG_FILES"; then 12171 12172 12173 ac_cr=`echo X |tr X "\015"` 12174 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 12175 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 12176 ac_cs_awk_cr='\\r' 12177 else 12178 ac_cs_awk_cr=$ac_cr 12179 fi 12180 12181 echo 'BEGIN {' >"$tmp/subs1.awk" && 12182 _ACEOF 12183 12184 12185 { 12186 echo "cat >conf$$subs.awk <<_ACEOF" && 12187 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 12188 echo "_ACEOF" 12189 } >conf$$subs.sh || 12190 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 12191 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 12192 { (exit 1); exit 1; }; } 12193 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` 12194 ac_delim='%!_!# ' 12195 for ac_last_try in false false false false false :; do 12196 . ./conf$$subs.sh || 12197 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 12198 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 12199 { (exit 1); exit 1; }; } 12200 12201 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 12202 if test $ac_delim_n = $ac_delim_num; then 12203 break 12204 elif $ac_last_try; then 12205 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 12206 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 12207 { (exit 1); exit 1; }; } 12208 else 12209 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 12210 fi 12211 done 12212 rm -f conf$$subs.sh 12213 12214 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12215 cat >>"\$tmp/subs1.awk" <<\\_ACAWK && 12216 _ACEOF 12217 sed -n ' 12218 h 12219 s/^/S["/; s/!.*/"]=/ 12220 p 12221 g 12222 s/^[^!]*!// 12223 :repl 12224 t repl 12225 s/'"$ac_delim"'$// 12226 t delim 12227 :nl 12228 h 12229 s/\(.\{148\}\).*/\1/ 12230 t more1 12231 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 12232 p 12233 n 12234 b repl 12235 :more1 12236 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 12237 p 12238 g 12239 s/.\{148\}// 12240 t nl 12241 :delim 12242 h 12243 s/\(.\{148\}\).*/\1/ 12244 t more2 12245 s/["\\]/\\&/g; s/^/"/; s/$/"/ 12246 p 12247 b 12248 :more2 12249 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 12250 p 12251 g 12252 s/.\{148\}// 12253 t delim 12254 ' <conf$$subs.awk | sed ' 12255 /^[^""]/{ 12256 N 12257 s/\n// 12258 } 12259 ' >>$CONFIG_STATUS || ac_write_fail=1 12260 rm -f conf$$subs.awk 12261 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12262 _ACAWK 12263 cat >>"\$tmp/subs1.awk" <<_ACAWK && 12264 for (key in S) S_is_set[key] = 1 12265 FS = "" 12266 12267 } 12268 { 12269 line = $ 0 12270 nfields = split(line, field, "@") 12271 substed = 0 12272 len = length(field[1]) 12273 for (i = 2; i < nfields; i++) { 12274 key = field[i] 12275 keylen = length(key) 12276 if (S_is_set[key]) { 12277 value = S[key] 12278 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 12279 len += length(value) + length(field[++i]) 12280 substed = 1 12281 } else 12282 len += 1 + keylen 12283 } 12284 12285 print line 12286 } 12287 12288 _ACAWK 12289 _ACEOF 12290 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12291 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 12292 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 12293 else 12294 cat 12295 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ 12296 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5 12297 $as_echo "$as_me: error: could not setup config files machinery" >&2;} 12298 { (exit 1); exit 1; }; } 12299 _ACEOF 12300 12301 # VPATH may cause trouble with some makes, so we remove $(srcdir), 12302 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 12303 # trailing colons and then remove the whole line if VPATH becomes empty 12304 # (actually we leave an empty line to preserve line numbers). 12305 if test "x$srcdir" = x.; then 12306 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 12307 s/:*\$(srcdir):*/:/ 12308 s/:*\${srcdir}:*/:/ 12309 s/:*@srcdir@:*/:/ 12310 s/^\([^=]*=[ ]*\):*/\1/ 12311 s/:*$// 12312 s/^[^=]*=[ ]*$// 12313 }' 12314 fi 12315 12316 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12317 fi # test -n "$CONFIG_FILES" 12318 12319 # Set up the scripts for CONFIG_HEADERS section. 12320 # No need to generate them if there are no CONFIG_HEADERS. 12321 # This happens for instance with `./config.status Makefile'. 12322 if test -n "$CONFIG_HEADERS"; then 12323 cat >"$tmp/defines.awk" <<\_ACAWK || 12324 BEGIN { 12325 _ACEOF 12326 12327 # Transform confdefs.h into an awk script `defines.awk', embedded as 12328 # here-document in config.status, that substitutes the proper values into 12329 # config.h.in to produce config.h. 12330 12331 # Create a delimiter string that does not exist in confdefs.h, to ease 12332 # handling of long lines. 12333 ac_delim='%!_!# ' 12334 for ac_last_try in false false :; do 12335 ac_t=`sed -n "/$ac_delim/p" confdefs.h` 12336 if test -z "$ac_t"; then 12337 break 12338 elif $ac_last_try; then 12339 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5 12340 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;} 12341 { (exit 1); exit 1; }; } 12342 else 12343 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 12344 fi 12345 done 12346 12347 # For the awk script, D is an array of macro values keyed by name, 12348 # likewise P contains macro parameters if any. Preserve backslash 12349 # newline sequences. 12350 12351 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 12352 sed -n ' 12353 s/.\{148\}/&'"$ac_delim"'/g 12354 t rset 12355 :rset 12356 s/^[ ]*#[ ]*define[ ][ ]*/ / 12357 t def 12358 d 12359 :def 12360 s/\\$// 12361 t bsnl 12362 s/["\\]/\\&/g 12363 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 12364 D["\1"]=" \3"/p 12365 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 12366 d 12367 :bsnl 12368 s/["\\]/\\&/g 12369 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 12370 D["\1"]=" \3\\\\\\n"\\/p 12371 t cont 12372 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 12373 t cont 12374 d 12375 :cont 12376 n 12377 s/.\{148\}/&'"$ac_delim"'/g 12378 t clear 12379 :clear 12380 s/\\$// 12381 t bsnlc 12382 s/["\\]/\\&/g; s/^/"/; s/$/"/p 12383 d 12384 :bsnlc 12385 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 12386 b cont 12387 ' <confdefs.h | sed ' 12388 s/'"$ac_delim"'/"\\\ 12389 "/g' >>$CONFIG_STATUS || ac_write_fail=1 12390 12391 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12392 for (key in D) D_is_set[key] = 1 12393 FS = "" 12394 } 12395 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 12396 line = \$ 0 12397 split(line, arg, " ") 12398 if (arg[1] == "#") { 12399 defundef = arg[2] 12400 mac1 = arg[3] 12401 } else { 12402 defundef = substr(arg[1], 2) 12403 mac1 = arg[2] 12404 } 12405 split(mac1, mac2, "(") #) 12406 macro = mac2[1] 12407 prefix = substr(line, 1, index(line, defundef) - 1) 12408 if (D_is_set[macro]) { 12409 # Preserve the white space surrounding the "#". 12410 print prefix "define", macro P[macro] D[macro] 12411 next 12412 } else { 12413 # Replace #undef with comments. This is necessary, for example, 12414 # in the case of _POSIX_SOURCE, which is predefined and required 12415 # on some systems where configure will not decide to define it. 12416 if (defundef == "undef") { 12417 print "/*", prefix defundef, macro, "*/" 12418 next 12419 } 12420 } 12421 } 12422 { print } 12423 _ACAWK 12424 _ACEOF 12425 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12426 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5 12427 $as_echo "$as_me: error: could not setup config headers machinery" >&2;} 12428 { (exit 1); exit 1; }; } 12429 fi # test -n "$CONFIG_HEADERS" 12430 12431 12432 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS " 12433 shift 12434 for ac_tag 12435 do 12436 case $ac_tag in 12437 :[FHLC]) ac_mode=$ac_tag; continue;; 12438 esac 12439 case $ac_mode$ac_tag in 12440 :[FHL]*:*);; 12441 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5 12442 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;} 12443 { (exit 1); exit 1; }; };; 12444 :[FH]-) ac_tag=-:-;; 12445 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 12446 esac 12447 ac_save_IFS=$IFS 12448 IFS=: 12449 set x $ac_tag 12450 IFS=$ac_save_IFS 12451 shift 12452 ac_file=$1 12453 shift 12454 12455 case $ac_mode in 12456 :L) ac_source=$1;; 12457 :[FH]) 12458 ac_file_inputs= 12459 for ac_f 12460 do 12461 case $ac_f in 12462 -) ac_f="$tmp/stdin";; 12463 *) # Look for the file first in the build tree, then in the source tree 12464 # (if the path is not absolute). The absolute path cannot be DOS-style, 12465 # because $ac_f cannot contain `:'. 12466 test -f "$ac_f" || 12467 case $ac_f in 12468 [\\/$]*) false;; 12469 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 12470 esac || 12471 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 12472 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;} 12473 { (exit 1); exit 1; }; };; 12474 esac 12475 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 12476 ac_file_inputs="$ac_file_inputs '$ac_f'" 12477 done 12478 12479 # Let's still pretend it is `configure' which instantiates (i.e., don't 12480 # use $as_me), people would be surprised to read: 12481 # /* config.h. Generated by config.status. */ 12482 configure_input='Generated from '` 12483 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 12484 `' by configure.' 12485 if test x"$ac_file" != x-; then 12486 configure_input="$ac_file. $configure_input" 12487 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5 12488 $as_echo "$as_me: creating $ac_file" >&6;} 12489 fi 12490 # Neutralize special characters interpreted by sed in replacement strings. 12491 case $configure_input in #( 12492 *\&* | *\|* | *\\* ) 12493 ac_sed_conf_input=`$as_echo "$configure_input" | 12494 sed 's/[\\\\&|]/\\\\&/g'`;; #( 12495 *) ac_sed_conf_input=$configure_input;; 12496 esac 12497 12498 case $ac_tag in 12499 *:-:* | *:-) cat >"$tmp/stdin" \ 12500 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 12501 $as_echo "$as_me: error: could not create $ac_file" >&2;} 12502 { (exit 1); exit 1; }; } ;; 12503 esac 12504 ;; 12505 esac 12506 12507 ac_dir=`$as_dirname -- "$ac_file" || 12508 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12509 X"$ac_file" : 'X\(//\)[^/]' \| \ 12510 X"$ac_file" : 'X\(//\)$' \| \ 12511 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 12512 $as_echo X"$ac_file" | 12513 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12514 s//\1/ 12515 q 12516 } 12517 /^X\(\/\/\)[^/].*/{ 12518 s//\1/ 12519 q 12520 } 12521 /^X\(\/\/\)$/{ 12522 s//\1/ 12523 q 12524 } 12525 /^X\(\/\).*/{ 12526 s//\1/ 12527 q 12528 } 12529 s/.*/./; q'` 12530 { as_dir="$ac_dir" 12531 case $as_dir in #( 12532 -*) as_dir=./$as_dir;; 12533 esac 12534 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 12535 as_dirs= 12536 while :; do 12537 case $as_dir in #( 12538 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 12539 *) as_qdir=$as_dir;; 12540 esac 12541 as_dirs="'$as_qdir' $as_dirs" 12542 as_dir=`$as_dirname -- "$as_dir" || 12543 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12544 X"$as_dir" : 'X\(//\)[^/]' \| \ 12545 X"$as_dir" : 'X\(//\)$' \| \ 12546 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 12547 $as_echo X"$as_dir" | 12548 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12549 s//\1/ 12550 q 12551 } 12552 /^X\(\/\/\)[^/].*/{ 12553 s//\1/ 12554 q 12555 } 12556 /^X\(\/\/\)$/{ 12557 s//\1/ 12558 q 12559 } 12560 /^X\(\/\).*/{ 12561 s//\1/ 12562 q 12563 } 12564 s/.*/./; q'` 12565 test -d "$as_dir" && break 12566 done 12567 test -z "$as_dirs" || eval "mkdir $as_dirs" 12568 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 12569 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;} 12570 { (exit 1); exit 1; }; }; } 12571 ac_builddir=. 12572 12573 case "$ac_dir" in 12574 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 12575 *) 12576 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 12577 # A ".." for each directory in $ac_dir_suffix. 12578 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 12579 case $ac_top_builddir_sub in 12580 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 12581 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 12582 esac ;; 12583 esac 12584 ac_abs_top_builddir=$ac_pwd 12585 ac_abs_builddir=$ac_pwd$ac_dir_suffix 12586 # for backward compatibility: 12587 ac_top_builddir=$ac_top_build_prefix 12588 12589 case $srcdir in 12590 .) # We are building in place. 12591 ac_srcdir=. 12592 ac_top_srcdir=$ac_top_builddir_sub 12593 ac_abs_top_srcdir=$ac_pwd ;; 12594 [\\/]* | ?:[\\/]* ) # Absolute name. 12595 ac_srcdir=$srcdir$ac_dir_suffix; 12596 ac_top_srcdir=$srcdir 12597 ac_abs_top_srcdir=$srcdir ;; 12598 *) # Relative name. 12599 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 12600 ac_top_srcdir=$ac_top_build_prefix$srcdir 12601 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 12602 esac 12603 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 12604 12605 12606 case $ac_mode in 12607 :F) 12608 # 12609 # CONFIG_FILE 12610 # 12611 12612 case $INSTALL in 12613 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 12614 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 12615 esac 12616 _ACEOF 12617 12618 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12619 # If the template does not know about datarootdir, expand it. 12620 # FIXME: This hack should be removed a few years after 2.60. 12621 ac_datarootdir_hack=; ac_datarootdir_seen= 12622 12623 ac_sed_dataroot=' 12624 /datarootdir/ { 12625 p 12626 q 12627 } 12628 /@datadir@/p 12629 /@docdir@/p 12630 /@infodir@/p 12631 /@localedir@/p 12632 /@mandir@/p 12633 ' 12634 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 12635 *datarootdir*) ac_datarootdir_seen=yes;; 12636 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 12637 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 12638 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 12639 _ACEOF 12640 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12641 ac_datarootdir_hack=' 12642 s&@datadir@&$datadir&g 12643 s&@docdir@&$docdir&g 12644 s&@infodir@&$infodir&g 12645 s&@localedir@&$localedir&g 12646 s&@mandir@&$mandir&g 12647 s&\\\${datarootdir}&$datarootdir&g' ;; 12648 esac 12649 _ACEOF 12650 12651 # Neutralize VPATH when `$srcdir' = `.'. 12652 # Shell code in configure.ac might set extrasub. 12653 # FIXME: do we really want to maintain this feature? 12654 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12655 ac_sed_extra="$ac_vpsub 12656 $extrasub 12657 _ACEOF 12658 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12659 :t 12660 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b 12661 s|@configure_input@|$ac_sed_conf_input|;t t 12662 s&@top_builddir@&$ac_top_builddir_sub&;t t 12663 s&@top_build_prefix@&$ac_top_build_prefix&;t t 12664 s&@srcdir@&$ac_srcdir&;t t 12665 s&@abs_srcdir@&$ac_abs_srcdir&;t t 12666 s&@top_srcdir@&$ac_top_srcdir&;t t 12667 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 12668 s&@builddir@&$ac_builddir&;t t 12669 s&@abs_builddir@&$ac_abs_builddir&;t t 12670 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 12671 s&@INSTALL@&$ac_INSTALL&;t t 12672 $ac_datarootdir_hack 12673 " 12674 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ 12675 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 12676 $as_echo "$as_me: error: could not create $ac_file" >&2;} 12677 { (exit 1); exit 1; }; } 12678 12679 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 12680 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 12681 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 12682 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 12683 which seems to be undefined. Please make sure it is defined." >&5 12684 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 12685 which seems to be undefined. Please make sure it is defined." >&2;} 12686 12687 rm -f "$tmp/stdin" 12688 case $ac_file in 12689 -) cat "$tmp/out" && rm -f "$tmp/out";; 12690 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; 12691 esac \ 12692 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 12693 $as_echo "$as_me: error: could not create $ac_file" >&2;} 12694 { (exit 1); exit 1; }; } 12695 ;; 12696 :H) 12697 # 12698 # CONFIG_HEADER 12699 # 12700 if test x"$ac_file" != x-; then 12701 { 12702 $as_echo "/* $configure_input */" \ 12703 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" 12704 } >"$tmp/config.h" \ 12705 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 12706 $as_echo "$as_me: error: could not create $ac_file" >&2;} 12707 { (exit 1); exit 1; }; } 12708 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then 12709 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5 12710 $as_echo "$as_me: $ac_file is unchanged" >&6;} 12711 else 12712 rm -f "$ac_file" 12713 mv "$tmp/config.h" "$ac_file" \ 12714 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 12715 $as_echo "$as_me: error: could not create $ac_file" >&2;} 12716 { (exit 1); exit 1; }; } 12717 fi 12718 else 12719 $as_echo "/* $configure_input */" \ 12720 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ 12721 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5 12722 $as_echo "$as_me: error: could not create -" >&2;} 12723 { (exit 1); exit 1; }; } 12724 fi 12725 ;; 12726 12727 12728 esac 12729 12730 done # for ac_tag 12731 12732 12733 { (exit 0); exit 0; } 12734 _ACEOF 12735 chmod +x $CONFIG_STATUS 12736 ac_clean_files=$ac_clean_files_save 12737 12738 test $ac_write_fail = 0 || 12739 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5 12740 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;} 12741 { (exit 1); exit 1; }; } 12742 12743 12744 # configure is writing to config.log, and then calls config.status. 12745 # config.status does its own redirection, appending to config.log. 12746 # Unfortunately, on DOS this fails, as config.log is still kept open 12747 # by configure, so config.status won't be able to write to it; its 12748 # output is simply discarded. So we exec the FD to /dev/null, 12749 # effectively closing config.log, so it can be properly (re)opened and 12750 # appended to by config.status. When coming back to configure, we 12751 # need to make the FD available again. 12752 if test "$no_create" != yes; then 12753 ac_cs_success=: 12754 ac_config_status_args= 12755 test "$silent" = yes && 12756 ac_config_status_args="$ac_config_status_args --quiet" 12757 exec 5>/dev/null 12758 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 12759 exec 5>>config.log 12760 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 12761 # would make configure fail if this is the last instruction. 12762 $ac_cs_success || { (exit 1); exit 1; } 12763 fi 12764 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 12765 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 12766 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 12767 fi 12768 12769 12770 echo 12771 echo "ICU for C/C++ $VERSION is ready to be built." 12772 echo "=== Important Notes: ===" 12773 12774 if test $ICU_USE_THREADS = 0; then 12775 echo 12776 echo "** ICU was configured without mutex or thread support. Multithread-safe operation will not be tested. If this is unexpected, then run configure with --enable-threads=yes or check the messages above to see why thread support was not found." 1>&6 12777 echo 12778 fi 12779 12780 echo "Data Packaging: $datapackaging" 12781 echo " This means: $datapackaging_msg" 12782 echo " To locate data: $datapackaging_howfound" 12783 12784 if test -n "`$U_MAKE -v 2>&1 | grep '^GNU Make'`"; then 12785 echo "Building ICU: Use a GNU make such as $U_MAKE to build ICU." 12786 else 12787 echo "** WARNING: $U_MAKE may not be GNU make." 12788 echo "This may cause ICU to fail to build. Please make sure that GNU make" 12789 echo "is in your PATH so that the configure script can detect its location." 12790 fi 12791 12792 { $as_echo "$as_me:$LINENO: checking the version of \"$U_MAKE\"" >&5 12793 $as_echo_n "checking the version of \"$U_MAKE\"... " >&6; } 12794 if "$U_MAKE" -f "$srcdir/config/gmakever.mk" PLATFORM="$platform"; then 12795 { $as_echo "$as_me:$LINENO: result: ok" >&5 12796 $as_echo "ok" >&6; } 12797 else 12798 { $as_echo "$as_me:$LINENO: result: too old or test failed - try upgrading GNU Make" >&5 12799 $as_echo "too old or test failed - try upgrading GNU Make" >&6; } 12800 fi 12801 12802 $as_unset _CXX_CXXSUFFIX 12803