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-2009, 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_SIZEOF_WCHAR_T 659 U_HAVE_WCSCPY 660 U_HAVE_WCHAR_H 661 HAVE_UINT64_T 662 HAVE_INT64_T 663 HAVE_UINT32_T 664 HAVE_INT32_T 665 HAVE_UINT16_T 666 HAVE_INT16_T 667 HAVE_UINT8_T 668 HAVE_INT8_T 669 U_TIMEZONE 670 U_HAVE_TIMEZONE 671 U_TZNAME 672 U_HAVE_TZNAME 673 U_TZSET 674 U_HAVE_TZSET 675 U_HAVE_POPEN 676 U_HAVE_PLACEMENT_NEW 677 U_OVERRIDE_CXX_ALLOCATION 678 U_HAVE_NAMESPACE 679 U_NL_LANGINFO_CODESET 680 U_HAVE_NL_LANGINFO_CODESET 681 U_IS_BIG_ENDIAN 682 U_IOSTREAM_SOURCE 683 U_HAVE_DIRENT_H 684 U_HAVE_INTTYPES_H 685 EGREP 686 GREP 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_ENABLE_TRACING 696 U_DISABLE_RENAMING 697 AR 698 RANLIB 699 LIBCXXFLAGS 700 LIBCFLAGS 701 U_USE_GCC_VISIBILITY_ATTRIBUTE 702 U_DEFAULT_SHOW_DRAFT 703 ENABLE_RELEASE 704 ENABLE_DEBUG 705 ENABLE_STATIC 706 ENABLE_SHARED 707 LIB_M 708 COMPILE_LINK_ENVVAR 709 ARFLAGS 710 DOXYGEN 711 cross_buildroot 712 U_MAKE 713 cross_compiling 714 INSTALL_DATA 715 INSTALL_SCRIPT 716 INSTALL_PROGRAM 717 CPP 718 ac_ct_CXX 719 CXXFLAGS 720 CXX 721 OBJEXT 722 EXEEXT 723 ac_ct_CC 724 LDFLAGS 725 CFLAGS 726 CC 727 CPPFLAGS 728 target_os 729 target_vendor 730 target_cpu 731 target 732 host_os 733 host_vendor 734 host_cpu 735 host 736 build_os 737 build_vendor 738 build_cpu 739 build 740 UNICODE_VERSION 741 LIB_VERSION_MAJOR 742 LIB_VERSION 743 VERSION 744 PACKAGE 745 target_alias 746 host_alias 747 build_alias 748 LIBS 749 ECHO_T 750 ECHO_N 751 ECHO_C 752 DEFS 753 mandir 754 localedir 755 libdir 756 psdir 757 pdfdir 758 dvidir 759 htmldir 760 infodir 761 docdir 762 oldincludedir 763 includedir 764 localstatedir 765 sharedstatedir 766 sysconfdir 767 datadir 768 datarootdir 769 libexecdir 770 sbindir 771 bindir 772 program_transform_name 773 prefix 774 exec_prefix 775 PACKAGE_BUGREPORT 776 PACKAGE_STRING 777 PACKAGE_VERSION 778 PACKAGE_TARNAME 779 PACKAGE_NAME 780 PATH_SEPARATOR 781 SHELL' 782 ac_subst_files='' 783 ac_user_opts=' 784 enable_option_checking 785 with_cross_build 786 enable_strict 787 enable_64bit_libs 788 with_library_bits 789 enable_shared 790 enable_static 791 enable_debug 792 enable_release 793 enable_draft 794 enable_renaming 795 enable_tracing 796 enable_rpath 797 enable_threads 798 enable_weak_threads 799 with_iostream 800 enable_extras 801 enable_icuio 802 enable_layout 803 with_data_packaging 804 with_library_suffix 805 enable_tests 806 enable_samples 807 ' 808 ac_precious_vars='build_alias 809 host_alias 810 target_alias 811 CC 812 CFLAGS 813 LDFLAGS 814 LIBS 815 CPPFLAGS 816 CXX 817 CXXFLAGS 818 CCC 819 CPP' 820 821 822 # Initialize some variables set by options. 823 ac_init_help= 824 ac_init_version=false 825 ac_unrecognized_opts= 826 ac_unrecognized_sep= 827 # The variables have the same names as the options, with 828 # dashes changed to underlines. 829 cache_file=/dev/null 830 exec_prefix=NONE 831 no_create= 832 no_recursion= 833 prefix=NONE 834 program_prefix=NONE 835 program_suffix=NONE 836 program_transform_name=s,x,x, 837 silent= 838 site= 839 srcdir= 840 verbose= 841 x_includes=NONE 842 x_libraries=NONE 843 844 # Installation directory options. 845 # These are left unexpanded so users can "make install exec_prefix=/foo" 846 # and all the variables that are supposed to be based on exec_prefix 847 # by default will actually change. 848 # Use braces instead of parens because sh, perl, etc. also accept them. 849 # (The list follows the same order as the GNU Coding Standards.) 850 bindir='${exec_prefix}/bin' 851 sbindir='${exec_prefix}/sbin' 852 libexecdir='${exec_prefix}/libexec' 853 datarootdir='${prefix}/share' 854 datadir='${datarootdir}' 855 sysconfdir='${prefix}/etc' 856 sharedstatedir='${prefix}/com' 857 localstatedir='${prefix}/var' 858 includedir='${prefix}/include' 859 oldincludedir='/usr/include' 860 docdir='${datarootdir}/doc/${PACKAGE}' 861 infodir='${datarootdir}/info' 862 htmldir='${docdir}' 863 dvidir='${docdir}' 864 pdfdir='${docdir}' 865 psdir='${docdir}' 866 libdir='${exec_prefix}/lib' 867 localedir='${datarootdir}/locale' 868 mandir='${datarootdir}/man' 869 870 ac_prev= 871 ac_dashdash= 872 for ac_option 873 do 874 # If the previous option needs an argument, assign it. 875 if test -n "$ac_prev"; then 876 eval $ac_prev=\$ac_option 877 ac_prev= 878 continue 879 fi 880 881 case $ac_option in 882 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 883 *) ac_optarg=yes ;; 884 esac 885 886 # Accept the important Cygnus configure options, so we can diagnose typos. 887 888 case $ac_dashdash$ac_option in 889 --) 890 ac_dashdash=yes ;; 891 892 -bindir | --bindir | --bindi | --bind | --bin | --bi) 893 ac_prev=bindir ;; 894 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 895 bindir=$ac_optarg ;; 896 897 -build | --build | --buil | --bui | --bu) 898 ac_prev=build_alias ;; 899 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 900 build_alias=$ac_optarg ;; 901 902 -cache-file | --cache-file | --cache-fil | --cache-fi \ 903 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 904 ac_prev=cache_file ;; 905 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 906 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 907 cache_file=$ac_optarg ;; 908 909 --config-cache | -C) 910 cache_file=config.cache ;; 911 912 -datadir | --datadir | --datadi | --datad) 913 ac_prev=datadir ;; 914 -datadir=* | --datadir=* | --datadi=* | --datad=*) 915 datadir=$ac_optarg ;; 916 917 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 918 | --dataroo | --dataro | --datar) 919 ac_prev=datarootdir ;; 920 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 921 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 922 datarootdir=$ac_optarg ;; 923 924 -disable-* | --disable-*) 925 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 926 # Reject names that are not valid shell variable names. 927 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 928 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 929 { (exit 1); exit 1; }; } 930 ac_useropt_orig=$ac_useropt 931 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 932 case $ac_user_opts in 933 *" 934 "enable_$ac_useropt" 935 "*) ;; 936 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 937 ac_unrecognized_sep=', ';; 938 esac 939 eval enable_$ac_useropt=no ;; 940 941 -docdir | --docdir | --docdi | --doc | --do) 942 ac_prev=docdir ;; 943 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 944 docdir=$ac_optarg ;; 945 946 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 947 ac_prev=dvidir ;; 948 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 949 dvidir=$ac_optarg ;; 950 951 -enable-* | --enable-*) 952 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 953 # Reject names that are not valid shell variable names. 954 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 955 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 956 { (exit 1); exit 1; }; } 957 ac_useropt_orig=$ac_useropt 958 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 959 case $ac_user_opts in 960 *" 961 "enable_$ac_useropt" 962 "*) ;; 963 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 964 ac_unrecognized_sep=', ';; 965 esac 966 eval enable_$ac_useropt=\$ac_optarg ;; 967 968 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 969 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 970 | --exec | --exe | --ex) 971 ac_prev=exec_prefix ;; 972 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 973 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 974 | --exec=* | --exe=* | --ex=*) 975 exec_prefix=$ac_optarg ;; 976 977 -gas | --gas | --ga | --g) 978 # Obsolete; use --with-gas. 979 with_gas=yes ;; 980 981 -help | --help | --hel | --he | -h) 982 ac_init_help=long ;; 983 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 984 ac_init_help=recursive ;; 985 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 986 ac_init_help=short ;; 987 988 -host | --host | --hos | --ho) 989 ac_prev=host_alias ;; 990 -host=* | --host=* | --hos=* | --ho=*) 991 host_alias=$ac_optarg ;; 992 993 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 994 ac_prev=htmldir ;; 995 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 996 | --ht=*) 997 htmldir=$ac_optarg ;; 998 999 -includedir | --includedir | --includedi | --included | --include \ 1000 | --includ | --inclu | --incl | --inc) 1001 ac_prev=includedir ;; 1002 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1003 | --includ=* | --inclu=* | --incl=* | --inc=*) 1004 includedir=$ac_optarg ;; 1005 1006 -infodir | --infodir | --infodi | --infod | --info | --inf) 1007 ac_prev=infodir ;; 1008 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1009 infodir=$ac_optarg ;; 1010 1011 -libdir | --libdir | --libdi | --libd) 1012 ac_prev=libdir ;; 1013 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1014 libdir=$ac_optarg ;; 1015 1016 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1017 | --libexe | --libex | --libe) 1018 ac_prev=libexecdir ;; 1019 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1020 | --libexe=* | --libex=* | --libe=*) 1021 libexecdir=$ac_optarg ;; 1022 1023 -localedir | --localedir | --localedi | --localed | --locale) 1024 ac_prev=localedir ;; 1025 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1026 localedir=$ac_optarg ;; 1027 1028 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1029 | --localstate | --localstat | --localsta | --localst | --locals) 1030 ac_prev=localstatedir ;; 1031 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1032 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1033 localstatedir=$ac_optarg ;; 1034 1035 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1036 ac_prev=mandir ;; 1037 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1038 mandir=$ac_optarg ;; 1039 1040 -nfp | --nfp | --nf) 1041 # Obsolete; use --without-fp. 1042 with_fp=no ;; 1043 1044 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1045 | --no-cr | --no-c | -n) 1046 no_create=yes ;; 1047 1048 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1049 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1050 no_recursion=yes ;; 1051 1052 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1053 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1054 | --oldin | --oldi | --old | --ol | --o) 1055 ac_prev=oldincludedir ;; 1056 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1057 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1058 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1059 oldincludedir=$ac_optarg ;; 1060 1061 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1062 ac_prev=prefix ;; 1063 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1064 prefix=$ac_optarg ;; 1065 1066 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1067 | --program-pre | --program-pr | --program-p) 1068 ac_prev=program_prefix ;; 1069 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1070 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1071 program_prefix=$ac_optarg ;; 1072 1073 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1074 | --program-suf | --program-su | --program-s) 1075 ac_prev=program_suffix ;; 1076 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1077 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1078 program_suffix=$ac_optarg ;; 1079 1080 -program-transform-name | --program-transform-name \ 1081 | --program-transform-nam | --program-transform-na \ 1082 | --program-transform-n | --program-transform- \ 1083 | --program-transform | --program-transfor \ 1084 | --program-transfo | --program-transf \ 1085 | --program-trans | --program-tran \ 1086 | --progr-tra | --program-tr | --program-t) 1087 ac_prev=program_transform_name ;; 1088 -program-transform-name=* | --program-transform-name=* \ 1089 | --program-transform-nam=* | --program-transform-na=* \ 1090 | --program-transform-n=* | --program-transform-=* \ 1091 | --program-transform=* | --program-transfor=* \ 1092 | --program-transfo=* | --program-transf=* \ 1093 | --program-trans=* | --program-tran=* \ 1094 | --progr-tra=* | --program-tr=* | --program-t=*) 1095 program_transform_name=$ac_optarg ;; 1096 1097 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1098 ac_prev=pdfdir ;; 1099 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1100 pdfdir=$ac_optarg ;; 1101 1102 -psdir | --psdir | --psdi | --psd | --ps) 1103 ac_prev=psdir ;; 1104 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1105 psdir=$ac_optarg ;; 1106 1107 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1108 | -silent | --silent | --silen | --sile | --sil) 1109 silent=yes ;; 1110 1111 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1112 ac_prev=sbindir ;; 1113 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1114 | --sbi=* | --sb=*) 1115 sbindir=$ac_optarg ;; 1116 1117 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1118 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1119 | --sharedst | --shareds | --shared | --share | --shar \ 1120 | --sha | --sh) 1121 ac_prev=sharedstatedir ;; 1122 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1123 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1124 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1125 | --sha=* | --sh=*) 1126 sharedstatedir=$ac_optarg ;; 1127 1128 -site | --site | --sit) 1129 ac_prev=site ;; 1130 -site=* | --site=* | --sit=*) 1131 site=$ac_optarg ;; 1132 1133 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1134 ac_prev=srcdir ;; 1135 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1136 srcdir=$ac_optarg ;; 1137 1138 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1139 | --syscon | --sysco | --sysc | --sys | --sy) 1140 ac_prev=sysconfdir ;; 1141 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1142 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1143 sysconfdir=$ac_optarg ;; 1144 1145 -target | --target | --targe | --targ | --tar | --ta | --t) 1146 ac_prev=target_alias ;; 1147 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1148 target_alias=$ac_optarg ;; 1149 1150 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1151 verbose=yes ;; 1152 1153 -version | --version | --versio | --versi | --vers | -V) 1154 ac_init_version=: ;; 1155 1156 -with-* | --with-*) 1157 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1158 # Reject names that are not valid shell variable names. 1159 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1160 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 1161 { (exit 1); exit 1; }; } 1162 ac_useropt_orig=$ac_useropt 1163 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1164 case $ac_user_opts in 1165 *" 1166 "with_$ac_useropt" 1167 "*) ;; 1168 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1169 ac_unrecognized_sep=', ';; 1170 esac 1171 eval with_$ac_useropt=\$ac_optarg ;; 1172 1173 -without-* | --without-*) 1174 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1175 # Reject names that are not valid shell variable names. 1176 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1177 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 1178 { (exit 1); exit 1; }; } 1179 ac_useropt_orig=$ac_useropt 1180 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1181 case $ac_user_opts in 1182 *" 1183 "with_$ac_useropt" 1184 "*) ;; 1185 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1186 ac_unrecognized_sep=', ';; 1187 esac 1188 eval with_$ac_useropt=no ;; 1189 1190 --x) 1191 # Obsolete; use --with-x. 1192 with_x=yes ;; 1193 1194 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1195 | --x-incl | --x-inc | --x-in | --x-i) 1196 ac_prev=x_includes ;; 1197 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1198 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1199 x_includes=$ac_optarg ;; 1200 1201 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1202 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1203 ac_prev=x_libraries ;; 1204 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1205 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1206 x_libraries=$ac_optarg ;; 1207 1208 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option 1209 Try \`$0 --help' for more information." >&2 1210 { (exit 1); exit 1; }; } 1211 ;; 1212 1213 *=*) 1214 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1215 # Reject names that are not valid shell variable names. 1216 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 1217 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2 1218 { (exit 1); exit 1; }; } 1219 eval $ac_envvar=\$ac_optarg 1220 export $ac_envvar ;; 1221 1222 *) 1223 # FIXME: should be removed in autoconf 3.0. 1224 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1225 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1226 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1227 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1228 ;; 1229 1230 esac 1231 done 1232 1233 if test -n "$ac_prev"; then 1234 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1235 { $as_echo "$as_me: error: missing argument to $ac_option" >&2 1236 { (exit 1); exit 1; }; } 1237 fi 1238 1239 if test -n "$ac_unrecognized_opts"; then 1240 case $enable_option_checking in 1241 no) ;; 1242 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2 1243 { (exit 1); exit 1; }; } ;; 1244 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1245 esac 1246 fi 1247 1248 # Check all directory arguments for consistency. 1249 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1250 datadir sysconfdir sharedstatedir localstatedir includedir \ 1251 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1252 libdir localedir mandir 1253 do 1254 eval ac_val=\$$ac_var 1255 # Remove trailing slashes. 1256 case $ac_val in 1257 */ ) 1258 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1259 eval $ac_var=\$ac_val;; 1260 esac 1261 # Be sure to have absolute directory names. 1262 case $ac_val in 1263 [\\/$]* | ?:[\\/]* ) continue;; 1264 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1265 esac 1266 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 1267 { (exit 1); exit 1; }; } 1268 done 1269 1270 # There might be people who depend on the old broken behavior: `$host' 1271 # used to hold the argument of --host etc. 1272 # FIXME: To remove some day. 1273 build=$build_alias 1274 host=$host_alias 1275 target=$target_alias 1276 1277 # FIXME: To remove some day. 1278 if test "x$host_alias" != x; then 1279 if test "x$build_alias" = x; then 1280 cross_compiling=maybe 1281 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1282 If a cross compiler is detected then cross compile mode will be used." >&2 1283 elif test "x$build_alias" != "x$host_alias"; then 1284 cross_compiling=yes 1285 fi 1286 fi 1287 1288 ac_tool_prefix= 1289 test -n "$host_alias" && ac_tool_prefix=$host_alias- 1290 1291 test "$silent" = yes && exec 6>/dev/null 1292 1293 1294 ac_pwd=`pwd` && test -n "$ac_pwd" && 1295 ac_ls_di=`ls -di .` && 1296 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1297 { $as_echo "$as_me: error: working directory cannot be determined" >&2 1298 { (exit 1); exit 1; }; } 1299 test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1300 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2 1301 { (exit 1); exit 1; }; } 1302 1303 1304 # Find the source files, if location was not specified. 1305 if test -z "$srcdir"; then 1306 ac_srcdir_defaulted=yes 1307 # Try the directory containing this script, then the parent directory. 1308 ac_confdir=`$as_dirname -- "$as_myself" || 1309 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1310 X"$as_myself" : 'X\(//\)[^/]' \| \ 1311 X"$as_myself" : 'X\(//\)$' \| \ 1312 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1313 $as_echo X"$as_myself" | 1314 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1315 s//\1/ 1316 q 1317 } 1318 /^X\(\/\/\)[^/].*/{ 1319 s//\1/ 1320 q 1321 } 1322 /^X\(\/\/\)$/{ 1323 s//\1/ 1324 q 1325 } 1326 /^X\(\/\).*/{ 1327 s//\1/ 1328 q 1329 } 1330 s/.*/./; q'` 1331 srcdir=$ac_confdir 1332 if test ! -r "$srcdir/$ac_unique_file"; then 1333 srcdir=.. 1334 fi 1335 else 1336 ac_srcdir_defaulted=no 1337 fi 1338 if test ! -r "$srcdir/$ac_unique_file"; then 1339 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1340 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 1341 { (exit 1); exit 1; }; } 1342 fi 1343 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1344 ac_abs_confdir=`( 1345 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2 1346 { (exit 1); exit 1; }; } 1347 pwd)` 1348 # When building in place, set srcdir=. 1349 if test "$ac_abs_confdir" = "$ac_pwd"; then 1350 srcdir=. 1351 fi 1352 # Remove unnecessary trailing slashes from srcdir. 1353 # Double slashes in file names in object file debugging info 1354 # mess up M-x gdb in Emacs. 1355 case $srcdir in 1356 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1357 esac 1358 for ac_var in $ac_precious_vars; do 1359 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1360 eval ac_env_${ac_var}_value=\$${ac_var} 1361 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1362 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1363 done 1364 1365 # 1366 # Report the --help message. 1367 # 1368 if test "$ac_init_help" = "long"; then 1369 # Omit some internal or obsolete options to make the list less imposing. 1370 # This message is too long to be a string in the A/UX 3.1 sh. 1371 cat <<_ACEOF 1372 \`configure' configures this package to adapt to many kinds of systems. 1373 1374 Usage: $0 [OPTION]... [VAR=VALUE]... 1375 1376 To assign environment variables (e.g., CC, CFLAGS...), specify them as 1377 VAR=VALUE. See below for descriptions of some of the useful variables. 1378 1379 Defaults for the options are specified in brackets. 1380 1381 Configuration: 1382 -h, --help display this help and exit 1383 --help=short display options specific to this package 1384 --help=recursive display the short help of all the included packages 1385 -V, --version display version information and exit 1386 -q, --quiet, --silent do not print \`checking...' messages 1387 --cache-file=FILE cache test results in FILE [disabled] 1388 -C, --config-cache alias for \`--cache-file=config.cache' 1389 -n, --no-create do not create output files 1390 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1391 1392 Installation directories: 1393 --prefix=PREFIX install architecture-independent files in PREFIX 1394 [$ac_default_prefix] 1395 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1396 [PREFIX] 1397 1398 By default, \`make install' will install all the files in 1399 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1400 an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1401 for instance \`--prefix=\$HOME'. 1402 1403 For better control, use the options below. 1404 1405 Fine tuning of the installation directories: 1406 --bindir=DIR user executables [EPREFIX/bin] 1407 --sbindir=DIR system admin executables [EPREFIX/sbin] 1408 --libexecdir=DIR program executables [EPREFIX/libexec] 1409 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1410 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1411 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1412 --libdir=DIR object code libraries [EPREFIX/lib] 1413 --includedir=DIR C header files [PREFIX/include] 1414 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1415 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1416 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1417 --infodir=DIR info documentation [DATAROOTDIR/info] 1418 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1419 --mandir=DIR man documentation [DATAROOTDIR/man] 1420 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] 1421 --htmldir=DIR html documentation [DOCDIR] 1422 --dvidir=DIR dvi documentation [DOCDIR] 1423 --pdfdir=DIR pdf documentation [DOCDIR] 1424 --psdir=DIR ps documentation [DOCDIR] 1425 _ACEOF 1426 1427 cat <<\_ACEOF 1428 1429 System types: 1430 --build=BUILD configure for building on BUILD [guessed] 1431 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1432 --target=TARGET configure for building compilers for TARGET [HOST] 1433 _ACEOF 1434 fi 1435 1436 if test -n "$ac_init_help"; then 1437 1438 cat <<\_ACEOF 1439 1440 Optional Features: 1441 --disable-option-checking ignore unrecognized --enable/--with options 1442 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1443 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1444 --enable-strict compile with strict compiler options default=yes 1445 --enable-64bit-libs (deprecated, use --with-library-bits) build 64-bit libraries default= platform default 1446 --enable-shared build shared libraries default=yes 1447 --enable-static build static libraries default=no 1448 --enable-debug build debug libraries default=no 1449 --enable-release build release libraries default=yes 1450 --enable-draft enable draft APIs default=yes 1451 --enable-renaming add a version suffix to symbols default=yes 1452 --enable-tracing enable function and data tracing default=no 1453 --enable-rpath use rpath when linking default is only if necessary 1454 --enable-threads build ICU with thread safety default=yes 1455 --enable-weak-threads weakly reference the threading library default=no 1456 --enable-extras build ICU extras default=yes 1457 --enable-icuio build ICU's icuio library default=yes 1458 --enable-layout build ICU's layout library default=yes 1459 --enable-tests build ICU tests default=yes 1460 --enable-samples build ICU samples default=yes 1461 1462 Additionally, the variable FORCE_LIBS may be set before calling configure. 1463 If set, it will REPLACE any automatic list of libraries. 1464 1465 Optional Packages: 1466 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1467 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1468 --with-cross-build=dir specify an absolute path to the build directory of an ICU built for the current platform default=no cross dir 1469 --with-library-bits=bits specify how many bits to use for the library (32, 64, 64else32, nochange) default=nochange 1470 --with-iostream=version specify the version of iostream to use (none, old, std, auto) default=auto 1471 --with-data-packaging=type specify how to package ICU data (files, archive, library, auto) default=auto 1472 --with-library-suffix=suffix tag a suffix to the library names default= 1473 1474 Some influential environment variables: 1475 CC C compiler command 1476 CFLAGS C compiler flags 1477 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1478 nonstandard directory <lib dir> 1479 LIBS libraries to pass to the linker, e.g. -l<library> 1480 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1481 you have headers in a nonstandard directory <include dir> 1482 CXX C++ compiler command 1483 CXXFLAGS C++ compiler flags 1484 CPP C preprocessor 1485 1486 Use these variables to override the choices made by `configure' or to help 1487 it to find libraries and programs with nonstandard names/locations. 1488 1489 _ACEOF 1490 ac_status=$? 1491 fi 1492 1493 if test "$ac_init_help" = "recursive"; then 1494 # If there are subdirs, report their specific --help. 1495 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1496 test -d "$ac_dir" || 1497 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1498 continue 1499 ac_builddir=. 1500 1501 case "$ac_dir" in 1502 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1503 *) 1504 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1505 # A ".." for each directory in $ac_dir_suffix. 1506 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1507 case $ac_top_builddir_sub in 1508 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1509 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1510 esac ;; 1511 esac 1512 ac_abs_top_builddir=$ac_pwd 1513 ac_abs_builddir=$ac_pwd$ac_dir_suffix 1514 # for backward compatibility: 1515 ac_top_builddir=$ac_top_build_prefix 1516 1517 case $srcdir in 1518 .) # We are building in place. 1519 ac_srcdir=. 1520 ac_top_srcdir=$ac_top_builddir_sub 1521 ac_abs_top_srcdir=$ac_pwd ;; 1522 [\\/]* | ?:[\\/]* ) # Absolute name. 1523 ac_srcdir=$srcdir$ac_dir_suffix; 1524 ac_top_srcdir=$srcdir 1525 ac_abs_top_srcdir=$srcdir ;; 1526 *) # Relative name. 1527 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1528 ac_top_srcdir=$ac_top_build_prefix$srcdir 1529 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1530 esac 1531 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1532 1533 cd "$ac_dir" || { ac_status=$?; continue; } 1534 # Check for guested configure. 1535 if test -f "$ac_srcdir/configure.gnu"; then 1536 echo && 1537 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1538 elif test -f "$ac_srcdir/configure"; then 1539 echo && 1540 $SHELL "$ac_srcdir/configure" --help=recursive 1541 else 1542 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1543 fi || ac_status=$? 1544 cd "$ac_pwd" || { ac_status=$?; break; } 1545 done 1546 fi 1547 1548 test -n "$ac_init_help" && exit $ac_status 1549 if $ac_init_version; then 1550 cat <<\_ACEOF 1551 configure 1552 generated by GNU Autoconf 2.63 1553 1554 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 1555 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. 1556 This configure script is free software; the Free Software Foundation 1557 gives unlimited permission to copy, distribute and modify it. 1558 1559 Copyright (c) 1999-2009, International Business Machines Corporation and others. All Rights Reserved. 1560 _ACEOF 1561 exit 1562 fi 1563 cat >config.log <<_ACEOF 1564 This file contains any messages produced by compilers while 1565 running configure, to aid debugging if configure makes a mistake. 1566 1567 It was created by $as_me, which was 1568 generated by GNU Autoconf 2.63. Invocation command line was 1569 1570 $ $0 $@ 1571 1572 _ACEOF 1573 exec 5>>config.log 1574 { 1575 cat <<_ASUNAME 1576 ## --------- ## 1577 ## Platform. ## 1578 ## --------- ## 1579 1580 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1581 uname -m = `(uname -m) 2>/dev/null || echo unknown` 1582 uname -r = `(uname -r) 2>/dev/null || echo unknown` 1583 uname -s = `(uname -s) 2>/dev/null || echo unknown` 1584 uname -v = `(uname -v) 2>/dev/null || echo unknown` 1585 1586 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1587 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1588 1589 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1590 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1591 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1592 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1593 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1594 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1595 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1596 1597 _ASUNAME 1598 1599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1600 for as_dir in $PATH 1601 do 1602 IFS=$as_save_IFS 1603 test -z "$as_dir" && as_dir=. 1604 $as_echo "PATH: $as_dir" 1605 done 1606 IFS=$as_save_IFS 1607 1608 } >&5 1609 1610 cat >&5 <<_ACEOF 1611 1612 1613 ## ----------- ## 1614 ## Core tests. ## 1615 ## ----------- ## 1616 1617 _ACEOF 1618 1619 1620 # Keep a trace of the command line. 1621 # Strip out --no-create and --no-recursion so they do not pile up. 1622 # Strip out --silent because we don't want to record it for future runs. 1623 # Also quote any args containing shell meta-characters. 1624 # Make two passes to allow for proper duplicate-argument suppression. 1625 ac_configure_args= 1626 ac_configure_args0= 1627 ac_configure_args1= 1628 ac_must_keep_next=false 1629 for ac_pass in 1 2 1630 do 1631 for ac_arg 1632 do 1633 case $ac_arg in 1634 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1635 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1636 | -silent | --silent | --silen | --sile | --sil) 1637 continue ;; 1638 *\'*) 1639 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1640 esac 1641 case $ac_pass in 1642 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1643 2) 1644 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1645 if test $ac_must_keep_next = true; then 1646 ac_must_keep_next=false # Got value, back to normal. 1647 else 1648 case $ac_arg in 1649 *=* | --config-cache | -C | -disable-* | --disable-* \ 1650 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1651 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1652 | -with-* | --with-* | -without-* | --without-* | --x) 1653 case "$ac_configure_args0 " in 1654 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1655 esac 1656 ;; 1657 -* ) ac_must_keep_next=true ;; 1658 esac 1659 fi 1660 ac_configure_args="$ac_configure_args '$ac_arg'" 1661 ;; 1662 esac 1663 done 1664 done 1665 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1666 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1667 1668 # When interrupted or exit'd, cleanup temporary files, and complete 1669 # config.log. We remove comments because anyway the quotes in there 1670 # would cause problems or look ugly. 1671 # WARNING: Use '\'' to represent an apostrophe within the trap. 1672 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1673 trap 'exit_status=$? 1674 # Save into config.log some information that might help in debugging. 1675 { 1676 echo 1677 1678 cat <<\_ASBOX 1679 ## ---------------- ## 1680 ## Cache variables. ## 1681 ## ---------------- ## 1682 _ASBOX 1683 echo 1684 # The following way of writing the cache mishandles newlines in values, 1685 ( 1686 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1687 eval ac_val=\$$ac_var 1688 case $ac_val in #( 1689 *${as_nl}*) 1690 case $ac_var in #( 1691 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 1692 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1693 esac 1694 case $ac_var in #( 1695 _ | IFS | as_nl) ;; #( 1696 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1697 *) $as_unset $ac_var ;; 1698 esac ;; 1699 esac 1700 done 1701 (set) 2>&1 | 1702 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1703 *${as_nl}ac_space=\ *) 1704 sed -n \ 1705 "s/'\''/'\''\\\\'\'''\''/g; 1706 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1707 ;; #( 1708 *) 1709 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1710 ;; 1711 esac | 1712 sort 1713 ) 1714 echo 1715 1716 cat <<\_ASBOX 1717 ## ----------------- ## 1718 ## Output variables. ## 1719 ## ----------------- ## 1720 _ASBOX 1721 echo 1722 for ac_var in $ac_subst_vars 1723 do 1724 eval ac_val=\$$ac_var 1725 case $ac_val in 1726 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1727 esac 1728 $as_echo "$ac_var='\''$ac_val'\''" 1729 done | sort 1730 echo 1731 1732 if test -n "$ac_subst_files"; then 1733 cat <<\_ASBOX 1734 ## ------------------- ## 1735 ## File substitutions. ## 1736 ## ------------------- ## 1737 _ASBOX 1738 echo 1739 for ac_var in $ac_subst_files 1740 do 1741 eval ac_val=\$$ac_var 1742 case $ac_val in 1743 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1744 esac 1745 $as_echo "$ac_var='\''$ac_val'\''" 1746 done | sort 1747 echo 1748 fi 1749 1750 if test -s confdefs.h; then 1751 cat <<\_ASBOX 1752 ## ----------- ## 1753 ## confdefs.h. ## 1754 ## ----------- ## 1755 _ASBOX 1756 echo 1757 cat confdefs.h 1758 echo 1759 fi 1760 test "$ac_signal" != 0 && 1761 $as_echo "$as_me: caught signal $ac_signal" 1762 $as_echo "$as_me: exit $exit_status" 1763 } >&5 1764 rm -f core *.core core.conftest.* && 1765 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1766 exit $exit_status 1767 ' 0 1768 for ac_signal in 1 2 13 15; do 1769 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1770 done 1771 ac_signal=0 1772 1773 # confdefs.h avoids OS command line length limits that DEFS can exceed. 1774 rm -f -r conftest* confdefs.h 1775 1776 # Predefined preprocessor variables. 1777 1778 cat >>confdefs.h <<_ACEOF 1779 #define PACKAGE_NAME "$PACKAGE_NAME" 1780 _ACEOF 1781 1782 1783 cat >>confdefs.h <<_ACEOF 1784 #define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1785 _ACEOF 1786 1787 1788 cat >>confdefs.h <<_ACEOF 1789 #define PACKAGE_VERSION "$PACKAGE_VERSION" 1790 _ACEOF 1791 1792 1793 cat >>confdefs.h <<_ACEOF 1794 #define PACKAGE_STRING "$PACKAGE_STRING" 1795 _ACEOF 1796 1797 1798 cat >>confdefs.h <<_ACEOF 1799 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1800 _ACEOF 1801 1802 1803 # Let the site file select an alternate cache file if it wants to. 1804 # Prefer an explicitly selected file to automatically selected ones. 1805 ac_site_file1=NONE 1806 ac_site_file2=NONE 1807 if test -n "$CONFIG_SITE"; then 1808 ac_site_file1=$CONFIG_SITE 1809 elif test "x$prefix" != xNONE; then 1810 ac_site_file1=$prefix/share/config.site 1811 ac_site_file2=$prefix/etc/config.site 1812 else 1813 ac_site_file1=$ac_default_prefix/share/config.site 1814 ac_site_file2=$ac_default_prefix/etc/config.site 1815 fi 1816 for ac_site_file in "$ac_site_file1" "$ac_site_file2" 1817 do 1818 test "x$ac_site_file" = xNONE && continue 1819 if test -r "$ac_site_file"; then 1820 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1821 $as_echo "$as_me: loading site script $ac_site_file" >&6;} 1822 sed 's/^/| /' "$ac_site_file" >&5 1823 . "$ac_site_file" 1824 fi 1825 done 1826 1827 if test -r "$cache_file"; then 1828 # Some versions of bash will fail to source /dev/null (special 1829 # files actually), so we avoid doing that. 1830 if test -f "$cache_file"; then 1831 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5 1832 $as_echo "$as_me: loading cache $cache_file" >&6;} 1833 case $cache_file in 1834 [\\/]* | ?:[\\/]* ) . "$cache_file";; 1835 *) . "./$cache_file";; 1836 esac 1837 fi 1838 else 1839 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5 1840 $as_echo "$as_me: creating cache $cache_file" >&6;} 1841 >$cache_file 1842 fi 1843 1844 # Check that the precious variables saved in the cache have kept the same 1845 # value. 1846 ac_cache_corrupted=false 1847 for ac_var in $ac_precious_vars; do 1848 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1849 eval ac_new_set=\$ac_env_${ac_var}_set 1850 eval ac_old_val=\$ac_cv_env_${ac_var}_value 1851 eval ac_new_val=\$ac_env_${ac_var}_value 1852 case $ac_old_set,$ac_new_set in 1853 set,) 1854 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1855 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1856 ac_cache_corrupted=: ;; 1857 ,set) 1858 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1859 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1860 ac_cache_corrupted=: ;; 1861 ,);; 1862 *) 1863 if test "x$ac_old_val" != "x$ac_new_val"; then 1864 # differences in whitespace do not lead to failure. 1865 ac_old_val_w=`echo x $ac_old_val` 1866 ac_new_val_w=`echo x $ac_new_val` 1867 if test "$ac_old_val_w" != "$ac_new_val_w"; then 1868 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1869 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1870 ac_cache_corrupted=: 1871 else 1872 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 1873 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 1874 eval $ac_var=\$ac_old_val 1875 fi 1876 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5 1877 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 1878 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5 1879 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 1880 fi;; 1881 esac 1882 # Pass precious variables to config.status. 1883 if test "$ac_new_set" = set; then 1884 case $ac_new_val in 1885 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1886 *) ac_arg=$ac_var=$ac_new_val ;; 1887 esac 1888 case " $ac_configure_args " in 1889 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1890 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1891 esac 1892 fi 1893 done 1894 if $ac_cache_corrupted; then 1895 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 1896 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 1897 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1898 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1899 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1900 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1901 { (exit 1); exit 1; }; } 1902 fi 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 ac_ext=c 1921 ac_cpp='$CPP $CPPFLAGS' 1922 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1923 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1924 ac_compiler_gnu=$ac_cv_c_compiler_gnu 1925 1926 1927 1928 1929 ac_config_headers="$ac_config_headers common/icucfg.h" 1930 1931 PACKAGE="icu" 1932 1933 1934 { $as_echo "$as_me:$LINENO: checking for ICU version numbers" >&5 1935 $as_echo_n "checking for ICU version numbers... " >&6; } 1936 1937 # Get the ICU version from uversion.h or other headers 1938 geticuversion() { 1939 sed -n 's/^[ ]*#[ ]*define[ ]*U_ICU_VERSION[ ]*"\([^"]*\)".*/\1/p' "$@" 1940 } 1941 VERSION=`geticuversion $srcdir/common/unicode/uversion.h` 1942 if test x"$VERSION" = x; then 1943 VERSION=`geticuversion $srcdir/common/unicode/*.h` 1944 if test x"$VERSION" = x; then 1945 { { $as_echo "$as_me:$LINENO: error: Cannot determine ICU version number from header files" >&5 1946 $as_echo "$as_me: error: Cannot determine ICU version number from header files" >&2;} 1947 { (exit 1); exit 1; }; } 1948 fi 1949 fi 1950 # Compute a reasonable library version from the release version. This is 1951 # very bad, but that's wanted... We want to make sure that the LIB_VERSION 1952 # has at least a dot in it, so we'll add a .0 if needed. 1953 LIB_VERSION=`echo $VERSION | sed -e 's/\.//' -e 's/^\([^.]*\)$/\1.0/'` 1954 LIB_VERSION_MAJOR=`echo $LIB_VERSION | sed 's/\..*//'` 1955 1956 1957 1958 { $as_echo "$as_me:$LINENO: result: release $VERSION, library $LIB_VERSION" >&5 1959 $as_echo "release $VERSION, library $LIB_VERSION" >&6; } 1960 1961 UNICODE_VERSION="5.1" 1962 1963 1964 # Determine the host system 1965 ac_aux_dir= 1966 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 1967 if test -f "$ac_dir/install-sh"; then 1968 ac_aux_dir=$ac_dir 1969 ac_install_sh="$ac_aux_dir/install-sh -c" 1970 break 1971 elif test -f "$ac_dir/install.sh"; then 1972 ac_aux_dir=$ac_dir 1973 ac_install_sh="$ac_aux_dir/install.sh -c" 1974 break 1975 elif test -f "$ac_dir/shtool"; then 1976 ac_aux_dir=$ac_dir 1977 ac_install_sh="$ac_aux_dir/shtool install -c" 1978 break 1979 fi 1980 done 1981 if test -z "$ac_aux_dir"; then 1982 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 1983 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} 1984 { (exit 1); exit 1; }; } 1985 fi 1986 1987 # These three variables are undocumented and unsupported, 1988 # and are intended to be withdrawn in a future Autoconf release. 1989 # They can cause serious problems if a builder's source tree is in a directory 1990 # whose full name contains unusual characters. 1991 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 1992 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 1993 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 1994 1995 1996 # Make sure we can run config.sub. 1997 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 1998 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 1999 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} 2000 { (exit 1); exit 1; }; } 2001 2002 { $as_echo "$as_me:$LINENO: checking build system type" >&5 2003 $as_echo_n "checking build system type... " >&6; } 2004 if test "${ac_cv_build+set}" = set; then 2005 $as_echo_n "(cached) " >&6 2006 else 2007 ac_build_alias=$build_alias 2008 test "x$ac_build_alias" = x && 2009 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2010 test "x$ac_build_alias" = x && 2011 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 2012 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 2013 { (exit 1); exit 1; }; } 2014 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2015 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 2016 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} 2017 { (exit 1); exit 1; }; } 2018 2019 fi 2020 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5 2021 $as_echo "$ac_cv_build" >&6; } 2022 case $ac_cv_build in 2023 *-*-*) ;; 2024 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 2025 $as_echo "$as_me: error: invalid value of canonical build" >&2;} 2026 { (exit 1); exit 1; }; };; 2027 esac 2028 build=$ac_cv_build 2029 ac_save_IFS=$IFS; IFS='-' 2030 set x $ac_cv_build 2031 shift 2032 build_cpu=$1 2033 build_vendor=$2 2034 shift; shift 2035 # Remember, the first character of IFS is used to create $*, 2036 # except with old shells: 2037 build_os=$* 2038 IFS=$ac_save_IFS 2039 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2040 2041 2042 { $as_echo "$as_me:$LINENO: checking host system type" >&5 2043 $as_echo_n "checking host system type... " >&6; } 2044 if test "${ac_cv_host+set}" = set; then 2045 $as_echo_n "(cached) " >&6 2046 else 2047 if test "x$host_alias" = x; then 2048 ac_cv_host=$ac_cv_build 2049 else 2050 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2051 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 2052 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} 2053 { (exit 1); exit 1; }; } 2054 fi 2055 2056 fi 2057 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5 2058 $as_echo "$ac_cv_host" >&6; } 2059 case $ac_cv_host in 2060 *-*-*) ;; 2061 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 2062 $as_echo "$as_me: error: invalid value of canonical host" >&2;} 2063 { (exit 1); exit 1; }; };; 2064 esac 2065 host=$ac_cv_host 2066 ac_save_IFS=$IFS; IFS='-' 2067 set x $ac_cv_host 2068 shift 2069 host_cpu=$1 2070 host_vendor=$2 2071 shift; shift 2072 # Remember, the first character of IFS is used to create $*, 2073 # except with old shells: 2074 host_os=$* 2075 IFS=$ac_save_IFS 2076 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2077 2078 2079 { $as_echo "$as_me:$LINENO: checking target system type" >&5 2080 $as_echo_n "checking target system type... " >&6; } 2081 if test "${ac_cv_target+set}" = set; then 2082 $as_echo_n "(cached) " >&6 2083 else 2084 if test "x$target_alias" = x; then 2085 ac_cv_target=$ac_cv_host 2086 else 2087 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || 2088 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5 2089 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;} 2090 { (exit 1); exit 1; }; } 2091 fi 2092 2093 fi 2094 { $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5 2095 $as_echo "$ac_cv_target" >&6; } 2096 case $ac_cv_target in 2097 *-*-*) ;; 2098 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5 2099 $as_echo "$as_me: error: invalid value of canonical target" >&2;} 2100 { (exit 1); exit 1; }; };; 2101 esac 2102 target=$ac_cv_target 2103 ac_save_IFS=$IFS; IFS='-' 2104 set x $ac_cv_target 2105 shift 2106 target_cpu=$1 2107 target_vendor=$2 2108 shift; shift 2109 # Remember, the first character of IFS is used to create $*, 2110 # except with old shells: 2111 target_os=$* 2112 IFS=$ac_save_IFS 2113 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac 2114 2115 2116 # The aliases save the names the user supplied, while $host etc. 2117 # will get canonicalized. 2118 test -n "$target_alias" && 2119 test "$program_prefix$program_suffix$program_transform_name" = \ 2120 NONENONEs,x,x, && 2121 program_prefix=${target_alias}- 2122 2123 2124 2125 # This variable is needed on z/OS because the C++ compiler only recognizes .C 2126 _CXX_CXXSUFFIX=cpp 2127 export _CXX_CXXSUFFIX 2128 # Checks for programs 2129 ac_ext=c 2130 ac_cpp='$CPP $CPPFLAGS' 2131 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2132 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2133 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2134 if test -n "$ac_tool_prefix"; then 2135 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2136 set dummy ${ac_tool_prefix}gcc; ac_word=$2 2137 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2138 $as_echo_n "checking for $ac_word... " >&6; } 2139 if test "${ac_cv_prog_CC+set}" = set; then 2140 $as_echo_n "(cached) " >&6 2141 else 2142 if test -n "$CC"; then 2143 ac_cv_prog_CC="$CC" # Let the user override the test. 2144 else 2145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2146 for as_dir in $PATH 2147 do 2148 IFS=$as_save_IFS 2149 test -z "$as_dir" && as_dir=. 2150 for ac_exec_ext in '' $ac_executable_extensions; do 2151 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2152 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2153 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2154 break 2 2155 fi 2156 done 2157 done 2158 IFS=$as_save_IFS 2159 2160 fi 2161 fi 2162 CC=$ac_cv_prog_CC 2163 if test -n "$CC"; then 2164 { $as_echo "$as_me:$LINENO: result: $CC" >&5 2165 $as_echo "$CC" >&6; } 2166 else 2167 { $as_echo "$as_me:$LINENO: result: no" >&5 2168 $as_echo "no" >&6; } 2169 fi 2170 2171 2172 fi 2173 if test -z "$ac_cv_prog_CC"; then 2174 ac_ct_CC=$CC 2175 # Extract the first word of "gcc", so it can be a program name with args. 2176 set dummy gcc; ac_word=$2 2177 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2178 $as_echo_n "checking for $ac_word... " >&6; } 2179 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2180 $as_echo_n "(cached) " >&6 2181 else 2182 if test -n "$ac_ct_CC"; then 2183 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2184 else 2185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2186 for as_dir in $PATH 2187 do 2188 IFS=$as_save_IFS 2189 test -z "$as_dir" && as_dir=. 2190 for ac_exec_ext in '' $ac_executable_extensions; do 2191 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2192 ac_cv_prog_ac_ct_CC="gcc" 2193 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2194 break 2 2195 fi 2196 done 2197 done 2198 IFS=$as_save_IFS 2199 2200 fi 2201 fi 2202 ac_ct_CC=$ac_cv_prog_ac_ct_CC 2203 if test -n "$ac_ct_CC"; then 2204 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2205 $as_echo "$ac_ct_CC" >&6; } 2206 else 2207 { $as_echo "$as_me:$LINENO: result: no" >&5 2208 $as_echo "no" >&6; } 2209 fi 2210 2211 if test "x$ac_ct_CC" = x; then 2212 CC="" 2213 else 2214 case $cross_compiling:$ac_tool_warned in 2215 yes:) 2216 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 2217 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2218 ac_tool_warned=yes ;; 2219 esac 2220 CC=$ac_ct_CC 2221 fi 2222 else 2223 CC="$ac_cv_prog_CC" 2224 fi 2225 2226 if test -z "$CC"; then 2227 if test -n "$ac_tool_prefix"; then 2228 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2229 set dummy ${ac_tool_prefix}cc; ac_word=$2 2230 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2231 $as_echo_n "checking for $ac_word... " >&6; } 2232 if test "${ac_cv_prog_CC+set}" = set; then 2233 $as_echo_n "(cached) " >&6 2234 else 2235 if test -n "$CC"; then 2236 ac_cv_prog_CC="$CC" # Let the user override the test. 2237 else 2238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2239 for as_dir in $PATH 2240 do 2241 IFS=$as_save_IFS 2242 test -z "$as_dir" && as_dir=. 2243 for ac_exec_ext in '' $ac_executable_extensions; do 2244 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2245 ac_cv_prog_CC="${ac_tool_prefix}cc" 2246 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2247 break 2 2248 fi 2249 done 2250 done 2251 IFS=$as_save_IFS 2252 2253 fi 2254 fi 2255 CC=$ac_cv_prog_CC 2256 if test -n "$CC"; then 2257 { $as_echo "$as_me:$LINENO: result: $CC" >&5 2258 $as_echo "$CC" >&6; } 2259 else 2260 { $as_echo "$as_me:$LINENO: result: no" >&5 2261 $as_echo "no" >&6; } 2262 fi 2263 2264 2265 fi 2266 fi 2267 if test -z "$CC"; then 2268 # Extract the first word of "cc", so it can be a program name with args. 2269 set dummy cc; ac_word=$2 2270 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2271 $as_echo_n "checking for $ac_word... " >&6; } 2272 if test "${ac_cv_prog_CC+set}" = set; then 2273 $as_echo_n "(cached) " >&6 2274 else 2275 if test -n "$CC"; then 2276 ac_cv_prog_CC="$CC" # Let the user override the test. 2277 else 2278 ac_prog_rejected=no 2279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2280 for as_dir in $PATH 2281 do 2282 IFS=$as_save_IFS 2283 test -z "$as_dir" && as_dir=. 2284 for ac_exec_ext in '' $ac_executable_extensions; do 2285 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2286 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2287 ac_prog_rejected=yes 2288 continue 2289 fi 2290 ac_cv_prog_CC="cc" 2291 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2292 break 2 2293 fi 2294 done 2295 done 2296 IFS=$as_save_IFS 2297 2298 if test $ac_prog_rejected = yes; then 2299 # We found a bogon in the path, so make sure we never use it. 2300 set dummy $ac_cv_prog_CC 2301 shift 2302 if test $# != 0; then 2303 # We chose a different compiler from the bogus one. 2304 # However, it has the same basename, so the bogon will be chosen 2305 # first if we set CC to just the basename; use the full file name. 2306 shift 2307 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2308 fi 2309 fi 2310 fi 2311 fi 2312 CC=$ac_cv_prog_CC 2313 if test -n "$CC"; then 2314 { $as_echo "$as_me:$LINENO: result: $CC" >&5 2315 $as_echo "$CC" >&6; } 2316 else 2317 { $as_echo "$as_me:$LINENO: result: no" >&5 2318 $as_echo "no" >&6; } 2319 fi 2320 2321 2322 fi 2323 if test -z "$CC"; then 2324 if test -n "$ac_tool_prefix"; then 2325 for ac_prog in cl.exe 2326 do 2327 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2328 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2329 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2330 $as_echo_n "checking for $ac_word... " >&6; } 2331 if test "${ac_cv_prog_CC+set}" = set; then 2332 $as_echo_n "(cached) " >&6 2333 else 2334 if test -n "$CC"; then 2335 ac_cv_prog_CC="$CC" # Let the user override the test. 2336 else 2337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2338 for as_dir in $PATH 2339 do 2340 IFS=$as_save_IFS 2341 test -z "$as_dir" && as_dir=. 2342 for ac_exec_ext in '' $ac_executable_extensions; do 2343 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2344 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2345 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2346 break 2 2347 fi 2348 done 2349 done 2350 IFS=$as_save_IFS 2351 2352 fi 2353 fi 2354 CC=$ac_cv_prog_CC 2355 if test -n "$CC"; then 2356 { $as_echo "$as_me:$LINENO: result: $CC" >&5 2357 $as_echo "$CC" >&6; } 2358 else 2359 { $as_echo "$as_me:$LINENO: result: no" >&5 2360 $as_echo "no" >&6; } 2361 fi 2362 2363 2364 test -n "$CC" && break 2365 done 2366 fi 2367 if test -z "$CC"; then 2368 ac_ct_CC=$CC 2369 for ac_prog in cl.exe 2370 do 2371 # Extract the first word of "$ac_prog", so it can be a program name with args. 2372 set dummy $ac_prog; ac_word=$2 2373 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2374 $as_echo_n "checking for $ac_word... " >&6; } 2375 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2376 $as_echo_n "(cached) " >&6 2377 else 2378 if test -n "$ac_ct_CC"; then 2379 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2380 else 2381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2382 for as_dir in $PATH 2383 do 2384 IFS=$as_save_IFS 2385 test -z "$as_dir" && as_dir=. 2386 for ac_exec_ext in '' $ac_executable_extensions; do 2387 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2388 ac_cv_prog_ac_ct_CC="$ac_prog" 2389 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2390 break 2 2391 fi 2392 done 2393 done 2394 IFS=$as_save_IFS 2395 2396 fi 2397 fi 2398 ac_ct_CC=$ac_cv_prog_ac_ct_CC 2399 if test -n "$ac_ct_CC"; then 2400 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2401 $as_echo "$ac_ct_CC" >&6; } 2402 else 2403 { $as_echo "$as_me:$LINENO: result: no" >&5 2404 $as_echo "no" >&6; } 2405 fi 2406 2407 2408 test -n "$ac_ct_CC" && break 2409 done 2410 2411 if test "x$ac_ct_CC" = x; then 2412 CC="" 2413 else 2414 case $cross_compiling:$ac_tool_warned in 2415 yes:) 2416 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 2417 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2418 ac_tool_warned=yes ;; 2419 esac 2420 CC=$ac_ct_CC 2421 fi 2422 fi 2423 2424 fi 2425 2426 2427 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 2428 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2429 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2430 See \`config.log' for more details." >&5 2431 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH 2432 See \`config.log' for more details." >&2;} 2433 { (exit 1); exit 1; }; }; } 2434 2435 # Provide some information about the compiler. 2436 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5 2437 set X $ac_compile 2438 ac_compiler=$2 2439 { (ac_try="$ac_compiler --version >&5" 2440 case "(($ac_try" in 2441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2442 *) ac_try_echo=$ac_try;; 2443 esac 2444 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2445 $as_echo "$ac_try_echo") >&5 2446 (eval "$ac_compiler --version >&5") 2>&5 2447 ac_status=$? 2448 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2449 (exit $ac_status); } 2450 { (ac_try="$ac_compiler -v >&5" 2451 case "(($ac_try" in 2452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2453 *) ac_try_echo=$ac_try;; 2454 esac 2455 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2456 $as_echo "$ac_try_echo") >&5 2457 (eval "$ac_compiler -v >&5") 2>&5 2458 ac_status=$? 2459 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2460 (exit $ac_status); } 2461 { (ac_try="$ac_compiler -V >&5" 2462 case "(($ac_try" in 2463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2464 *) ac_try_echo=$ac_try;; 2465 esac 2466 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2467 $as_echo "$ac_try_echo") >&5 2468 (eval "$ac_compiler -V >&5") 2>&5 2469 ac_status=$? 2470 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2471 (exit $ac_status); } 2472 2473 cat >conftest.$ac_ext <<_ACEOF 2474 /* confdefs.h. */ 2475 _ACEOF 2476 cat confdefs.h >>conftest.$ac_ext 2477 cat >>conftest.$ac_ext <<_ACEOF 2478 /* end confdefs.h. */ 2479 2480 int 2481 main () 2482 { 2483 2484 ; 2485 return 0; 2486 } 2487 _ACEOF 2488 ac_clean_files_save=$ac_clean_files 2489 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 2490 # Try to create an executable without -o first, disregard a.out. 2491 # It will help us diagnose broken compilers, and finding out an intuition 2492 # of exeext. 2493 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 2494 $as_echo_n "checking for C compiler default output file name... " >&6; } 2495 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2496 2497 # The possible output files: 2498 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 2499 2500 ac_rmfiles= 2501 for ac_file in $ac_files 2502 do 2503 case $ac_file in 2504 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2505 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2506 esac 2507 done 2508 rm -f $ac_rmfiles 2509 2510 if { (ac_try="$ac_link_default" 2511 case "(($ac_try" in 2512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2513 *) ac_try_echo=$ac_try;; 2514 esac 2515 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2516 $as_echo "$ac_try_echo") >&5 2517 (eval "$ac_link_default") 2>&5 2518 ac_status=$? 2519 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2520 (exit $ac_status); }; then 2521 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2522 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2523 # in a Makefile. We should not override ac_cv_exeext if it was cached, 2524 # so that the user can short-circuit this test for compilers unknown to 2525 # Autoconf. 2526 for ac_file in $ac_files '' 2527 do 2528 test -f "$ac_file" || continue 2529 case $ac_file in 2530 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 2531 ;; 2532 [ab].out ) 2533 # We found the default executable, but exeext='' is most 2534 # certainly right. 2535 break;; 2536 *.* ) 2537 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2538 then :; else 2539 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2540 fi 2541 # We set ac_cv_exeext here because the later test for it is not 2542 # safe: cross compilers may not add the suffix if given an `-o' 2543 # argument, so we may need to know it at that point already. 2544 # Even if this section looks crufty: it has the advantage of 2545 # actually working. 2546 break;; 2547 * ) 2548 break;; 2549 esac 2550 done 2551 test "$ac_cv_exeext" = no && ac_cv_exeext= 2552 2553 else 2554 ac_file='' 2555 fi 2556 2557 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5 2558 $as_echo "$ac_file" >&6; } 2559 if test -z "$ac_file"; then 2560 $as_echo "$as_me: failed program was:" >&5 2561 sed 's/^/| /' conftest.$ac_ext >&5 2562 2563 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 2564 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2565 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables 2566 See \`config.log' for more details." >&5 2567 $as_echo "$as_me: error: C compiler cannot create executables 2568 See \`config.log' for more details." >&2;} 2569 { (exit 77); exit 77; }; }; } 2570 fi 2571 2572 ac_exeext=$ac_cv_exeext 2573 2574 # Check that the compiler produces executables we can run. If not, either 2575 # the compiler is broken, or we cross compile. 2576 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5 2577 $as_echo_n "checking whether the C compiler works... " >&6; } 2578 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 2579 # If not cross compiling, check that we can run a simple program. 2580 if test "$cross_compiling" != yes; then 2581 if { ac_try='./$ac_file' 2582 { (case "(($ac_try" in 2583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2584 *) ac_try_echo=$ac_try;; 2585 esac 2586 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2587 $as_echo "$ac_try_echo") >&5 2588 (eval "$ac_try") 2>&5 2589 ac_status=$? 2590 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2591 (exit $ac_status); }; }; then 2592 cross_compiling=no 2593 else 2594 if test "$cross_compiling" = maybe; then 2595 cross_compiling=yes 2596 else 2597 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 2598 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2599 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs. 2600 If you meant to cross compile, use \`--host'. 2601 See \`config.log' for more details." >&5 2602 $as_echo "$as_me: error: cannot run C compiled programs. 2603 If you meant to cross compile, use \`--host'. 2604 See \`config.log' for more details." >&2;} 2605 { (exit 1); exit 1; }; }; } 2606 fi 2607 fi 2608 fi 2609 { $as_echo "$as_me:$LINENO: result: yes" >&5 2610 $as_echo "yes" >&6; } 2611 2612 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 2613 ac_clean_files=$ac_clean_files_save 2614 # Check that the compiler produces executables we can run. If not, either 2615 # the compiler is broken, or we cross compile. 2616 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 2617 $as_echo_n "checking whether we are cross compiling... " >&6; } 2618 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5 2619 $as_echo "$cross_compiling" >&6; } 2620 2621 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5 2622 $as_echo_n "checking for suffix of executables... " >&6; } 2623 if { (ac_try="$ac_link" 2624 case "(($ac_try" in 2625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2626 *) ac_try_echo=$ac_try;; 2627 esac 2628 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2629 $as_echo "$ac_try_echo") >&5 2630 (eval "$ac_link") 2>&5 2631 ac_status=$? 2632 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2633 (exit $ac_status); }; then 2634 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2635 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2636 # work properly (i.e., refer to `conftest.exe'), while it won't with 2637 # `rm'. 2638 for ac_file in conftest.exe conftest conftest.*; do 2639 test -f "$ac_file" || continue 2640 case $ac_file in 2641 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2642 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2643 break;; 2644 * ) break;; 2645 esac 2646 done 2647 else 2648 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 2649 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2650 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 2651 See \`config.log' for more details." >&5 2652 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 2653 See \`config.log' for more details." >&2;} 2654 { (exit 1); exit 1; }; }; } 2655 fi 2656 2657 rm -f conftest$ac_cv_exeext 2658 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 2659 $as_echo "$ac_cv_exeext" >&6; } 2660 2661 rm -f conftest.$ac_ext 2662 EXEEXT=$ac_cv_exeext 2663 ac_exeext=$EXEEXT 2664 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5 2665 $as_echo_n "checking for suffix of object files... " >&6; } 2666 if test "${ac_cv_objext+set}" = set; then 2667 $as_echo_n "(cached) " >&6 2668 else 2669 cat >conftest.$ac_ext <<_ACEOF 2670 /* confdefs.h. */ 2671 _ACEOF 2672 cat confdefs.h >>conftest.$ac_ext 2673 cat >>conftest.$ac_ext <<_ACEOF 2674 /* end confdefs.h. */ 2675 2676 int 2677 main () 2678 { 2679 2680 ; 2681 return 0; 2682 } 2683 _ACEOF 2684 rm -f conftest.o conftest.obj 2685 if { (ac_try="$ac_compile" 2686 case "(($ac_try" in 2687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2688 *) ac_try_echo=$ac_try;; 2689 esac 2690 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2691 $as_echo "$ac_try_echo") >&5 2692 (eval "$ac_compile") 2>&5 2693 ac_status=$? 2694 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2695 (exit $ac_status); }; then 2696 for ac_file in conftest.o conftest.obj conftest.*; do 2697 test -f "$ac_file" || continue; 2698 case $ac_file in 2699 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 2700 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2701 break;; 2702 esac 2703 done 2704 else 2705 $as_echo "$as_me: failed program was:" >&5 2706 sed 's/^/| /' conftest.$ac_ext >&5 2707 2708 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 2709 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2710 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 2711 See \`config.log' for more details." >&5 2712 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile 2713 See \`config.log' for more details." >&2;} 2714 { (exit 1); exit 1; }; }; } 2715 fi 2716 2717 rm -f conftest.$ac_cv_objext conftest.$ac_ext 2718 fi 2719 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 2720 $as_echo "$ac_cv_objext" >&6; } 2721 OBJEXT=$ac_cv_objext 2722 ac_objext=$OBJEXT 2723 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 2724 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 2725 if test "${ac_cv_c_compiler_gnu+set}" = set; then 2726 $as_echo_n "(cached) " >&6 2727 else 2728 cat >conftest.$ac_ext <<_ACEOF 2729 /* confdefs.h. */ 2730 _ACEOF 2731 cat confdefs.h >>conftest.$ac_ext 2732 cat >>conftest.$ac_ext <<_ACEOF 2733 /* end confdefs.h. */ 2734 2735 int 2736 main () 2737 { 2738 #ifndef __GNUC__ 2739 choke me 2740 #endif 2741 2742 ; 2743 return 0; 2744 } 2745 _ACEOF 2746 rm -f conftest.$ac_objext 2747 if { (ac_try="$ac_compile" 2748 case "(($ac_try" in 2749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2750 *) ac_try_echo=$ac_try;; 2751 esac 2752 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2753 $as_echo "$ac_try_echo") >&5 2754 (eval "$ac_compile") 2>conftest.er1 2755 ac_status=$? 2756 grep -v '^ *+' conftest.er1 >conftest.err 2757 rm -f conftest.er1 2758 cat conftest.err >&5 2759 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2760 (exit $ac_status); } && { 2761 test -z "$ac_c_werror_flag" || 2762 test ! -s conftest.err 2763 } && test -s conftest.$ac_objext; then 2764 ac_compiler_gnu=yes 2765 else 2766 $as_echo "$as_me: failed program was:" >&5 2767 sed 's/^/| /' conftest.$ac_ext >&5 2768 2769 ac_compiler_gnu=no 2770 fi 2771 2772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2773 ac_cv_c_compiler_gnu=$ac_compiler_gnu 2774 2775 fi 2776 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 2777 $as_echo "$ac_cv_c_compiler_gnu" >&6; } 2778 if test $ac_compiler_gnu = yes; then 2779 GCC=yes 2780 else 2781 GCC= 2782 fi 2783 ac_test_CFLAGS=${CFLAGS+set} 2784 ac_save_CFLAGS=$CFLAGS 2785 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 2786 $as_echo_n "checking whether $CC accepts -g... " >&6; } 2787 if test "${ac_cv_prog_cc_g+set}" = set; then 2788 $as_echo_n "(cached) " >&6 2789 else 2790 ac_save_c_werror_flag=$ac_c_werror_flag 2791 ac_c_werror_flag=yes 2792 ac_cv_prog_cc_g=no 2793 CFLAGS="-g" 2794 cat >conftest.$ac_ext <<_ACEOF 2795 /* confdefs.h. */ 2796 _ACEOF 2797 cat confdefs.h >>conftest.$ac_ext 2798 cat >>conftest.$ac_ext <<_ACEOF 2799 /* end confdefs.h. */ 2800 2801 int 2802 main () 2803 { 2804 2805 ; 2806 return 0; 2807 } 2808 _ACEOF 2809 rm -f conftest.$ac_objext 2810 if { (ac_try="$ac_compile" 2811 case "(($ac_try" in 2812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2813 *) ac_try_echo=$ac_try;; 2814 esac 2815 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2816 $as_echo "$ac_try_echo") >&5 2817 (eval "$ac_compile") 2>conftest.er1 2818 ac_status=$? 2819 grep -v '^ *+' conftest.er1 >conftest.err 2820 rm -f conftest.er1 2821 cat conftest.err >&5 2822 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2823 (exit $ac_status); } && { 2824 test -z "$ac_c_werror_flag" || 2825 test ! -s conftest.err 2826 } && test -s conftest.$ac_objext; then 2827 ac_cv_prog_cc_g=yes 2828 else 2829 $as_echo "$as_me: failed program was:" >&5 2830 sed 's/^/| /' conftest.$ac_ext >&5 2831 2832 CFLAGS="" 2833 cat >conftest.$ac_ext <<_ACEOF 2834 /* confdefs.h. */ 2835 _ACEOF 2836 cat confdefs.h >>conftest.$ac_ext 2837 cat >>conftest.$ac_ext <<_ACEOF 2838 /* end confdefs.h. */ 2839 2840 int 2841 main () 2842 { 2843 2844 ; 2845 return 0; 2846 } 2847 _ACEOF 2848 rm -f conftest.$ac_objext 2849 if { (ac_try="$ac_compile" 2850 case "(($ac_try" in 2851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2852 *) ac_try_echo=$ac_try;; 2853 esac 2854 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2855 $as_echo "$ac_try_echo") >&5 2856 (eval "$ac_compile") 2>conftest.er1 2857 ac_status=$? 2858 grep -v '^ *+' conftest.er1 >conftest.err 2859 rm -f conftest.er1 2860 cat conftest.err >&5 2861 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2862 (exit $ac_status); } && { 2863 test -z "$ac_c_werror_flag" || 2864 test ! -s conftest.err 2865 } && test -s conftest.$ac_objext; then 2866 : 2867 else 2868 $as_echo "$as_me: failed program was:" >&5 2869 sed 's/^/| /' conftest.$ac_ext >&5 2870 2871 ac_c_werror_flag=$ac_save_c_werror_flag 2872 CFLAGS="-g" 2873 cat >conftest.$ac_ext <<_ACEOF 2874 /* confdefs.h. */ 2875 _ACEOF 2876 cat confdefs.h >>conftest.$ac_ext 2877 cat >>conftest.$ac_ext <<_ACEOF 2878 /* end confdefs.h. */ 2879 2880 int 2881 main () 2882 { 2883 2884 ; 2885 return 0; 2886 } 2887 _ACEOF 2888 rm -f conftest.$ac_objext 2889 if { (ac_try="$ac_compile" 2890 case "(($ac_try" in 2891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2892 *) ac_try_echo=$ac_try;; 2893 esac 2894 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2895 $as_echo "$ac_try_echo") >&5 2896 (eval "$ac_compile") 2>conftest.er1 2897 ac_status=$? 2898 grep -v '^ *+' conftest.er1 >conftest.err 2899 rm -f conftest.er1 2900 cat conftest.err >&5 2901 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2902 (exit $ac_status); } && { 2903 test -z "$ac_c_werror_flag" || 2904 test ! -s conftest.err 2905 } && test -s conftest.$ac_objext; then 2906 ac_cv_prog_cc_g=yes 2907 else 2908 $as_echo "$as_me: failed program was:" >&5 2909 sed 's/^/| /' conftest.$ac_ext >&5 2910 2911 2912 fi 2913 2914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2915 fi 2916 2917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2918 fi 2919 2920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2921 ac_c_werror_flag=$ac_save_c_werror_flag 2922 fi 2923 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 2924 $as_echo "$ac_cv_prog_cc_g" >&6; } 2925 if test "$ac_test_CFLAGS" = set; then 2926 CFLAGS=$ac_save_CFLAGS 2927 elif test $ac_cv_prog_cc_g = yes; then 2928 if test "$GCC" = yes; then 2929 CFLAGS="-g -O2" 2930 else 2931 CFLAGS="-g" 2932 fi 2933 else 2934 if test "$GCC" = yes; then 2935 CFLAGS="-O2" 2936 else 2937 CFLAGS= 2938 fi 2939 fi 2940 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 2941 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 2942 if test "${ac_cv_prog_cc_c89+set}" = set; then 2943 $as_echo_n "(cached) " >&6 2944 else 2945 ac_cv_prog_cc_c89=no 2946 ac_save_CC=$CC 2947 cat >conftest.$ac_ext <<_ACEOF 2948 /* confdefs.h. */ 2949 _ACEOF 2950 cat confdefs.h >>conftest.$ac_ext 2951 cat >>conftest.$ac_ext <<_ACEOF 2952 /* end confdefs.h. */ 2953 #include <stdarg.h> 2954 #include <stdio.h> 2955 #include <sys/types.h> 2956 #include <sys/stat.h> 2957 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 2958 struct buf { int x; }; 2959 FILE * (*rcsopen) (struct buf *, struct stat *, int); 2960 static char *e (p, i) 2961 char **p; 2962 int i; 2963 { 2964 return p[i]; 2965 } 2966 static char *f (char * (*g) (char **, int), char **p, ...) 2967 { 2968 char *s; 2969 va_list v; 2970 va_start (v,p); 2971 s = g (p, va_arg (v,int)); 2972 va_end (v); 2973 return s; 2974 } 2975 2976 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2977 function prototypes and stuff, but not '\xHH' hex character constants. 2978 These don't provoke an error unfortunately, instead are silently treated 2979 as 'x'. The following induces an error, until -std is added to get 2980 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 2981 array size at least. It's necessary to write '\x00'==0 to get something 2982 that's true only with -std. */ 2983 int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 2984 2985 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2986 inside strings and character constants. */ 2987 #define FOO(x) 'x' 2988 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 2989 2990 int test (int i, double x); 2991 struct s1 {int (*f) (int a);}; 2992 struct s2 {int (*f) (double a);}; 2993 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 2994 int argc; 2995 char **argv; 2996 int 2997 main () 2998 { 2999 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3000 ; 3001 return 0; 3002 } 3003 _ACEOF 3004 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3005 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3006 do 3007 CC="$ac_save_CC $ac_arg" 3008 rm -f conftest.$ac_objext 3009 if { (ac_try="$ac_compile" 3010 case "(($ac_try" in 3011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3012 *) ac_try_echo=$ac_try;; 3013 esac 3014 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3015 $as_echo "$ac_try_echo") >&5 3016 (eval "$ac_compile") 2>conftest.er1 3017 ac_status=$? 3018 grep -v '^ *+' conftest.er1 >conftest.err 3019 rm -f conftest.er1 3020 cat conftest.err >&5 3021 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3022 (exit $ac_status); } && { 3023 test -z "$ac_c_werror_flag" || 3024 test ! -s conftest.err 3025 } && test -s conftest.$ac_objext; then 3026 ac_cv_prog_cc_c89=$ac_arg 3027 else 3028 $as_echo "$as_me: failed program was:" >&5 3029 sed 's/^/| /' conftest.$ac_ext >&5 3030 3031 3032 fi 3033 3034 rm -f core conftest.err conftest.$ac_objext 3035 test "x$ac_cv_prog_cc_c89" != "xno" && break 3036 done 3037 rm -f conftest.$ac_ext 3038 CC=$ac_save_CC 3039 3040 fi 3041 # AC_CACHE_VAL 3042 case "x$ac_cv_prog_cc_c89" in 3043 x) 3044 { $as_echo "$as_me:$LINENO: result: none needed" >&5 3045 $as_echo "none needed" >&6; } ;; 3046 xno) 3047 { $as_echo "$as_me:$LINENO: result: unsupported" >&5 3048 $as_echo "unsupported" >&6; } ;; 3049 *) 3050 CC="$CC $ac_cv_prog_cc_c89" 3051 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 3052 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3053 esac 3054 3055 3056 ac_ext=c 3057 ac_cpp='$CPP $CPPFLAGS' 3058 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3059 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3060 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3061 3062 ac_ext=cpp 3063 ac_cpp='$CXXCPP $CPPFLAGS' 3064 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3065 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3066 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 3067 if test -z "$CXX"; then 3068 if test -n "$CCC"; then 3069 CXX=$CCC 3070 else 3071 if test -n "$ac_tool_prefix"; then 3072 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 3073 do 3074 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3075 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3076 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 3077 $as_echo_n "checking for $ac_word... " >&6; } 3078 if test "${ac_cv_prog_CXX+set}" = set; then 3079 $as_echo_n "(cached) " >&6 3080 else 3081 if test -n "$CXX"; then 3082 ac_cv_prog_CXX="$CXX" # Let the user override the test. 3083 else 3084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3085 for as_dir in $PATH 3086 do 3087 IFS=$as_save_IFS 3088 test -z "$as_dir" && as_dir=. 3089 for ac_exec_ext in '' $ac_executable_extensions; do 3090 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3091 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 3092 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3093 break 2 3094 fi 3095 done 3096 done 3097 IFS=$as_save_IFS 3098 3099 fi 3100 fi 3101 CXX=$ac_cv_prog_CXX 3102 if test -n "$CXX"; then 3103 { $as_echo "$as_me:$LINENO: result: $CXX" >&5 3104 $as_echo "$CXX" >&6; } 3105 else 3106 { $as_echo "$as_me:$LINENO: result: no" >&5 3107 $as_echo "no" >&6; } 3108 fi 3109 3110 3111 test -n "$CXX" && break 3112 done 3113 fi 3114 if test -z "$CXX"; then 3115 ac_ct_CXX=$CXX 3116 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 3117 do 3118 # Extract the first word of "$ac_prog", so it can be a program name with args. 3119 set dummy $ac_prog; ac_word=$2 3120 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 3121 $as_echo_n "checking for $ac_word... " >&6; } 3122 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then 3123 $as_echo_n "(cached) " >&6 3124 else 3125 if test -n "$ac_ct_CXX"; then 3126 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 3127 else 3128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3129 for as_dir in $PATH 3130 do 3131 IFS=$as_save_IFS 3132 test -z "$as_dir" && as_dir=. 3133 for ac_exec_ext in '' $ac_executable_extensions; do 3134 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3135 ac_cv_prog_ac_ct_CXX="$ac_prog" 3136 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3137 break 2 3138 fi 3139 done 3140 done 3141 IFS=$as_save_IFS 3142 3143 fi 3144 fi 3145 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 3146 if test -n "$ac_ct_CXX"; then 3147 { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 3148 $as_echo "$ac_ct_CXX" >&6; } 3149 else 3150 { $as_echo "$as_me:$LINENO: result: no" >&5 3151 $as_echo "no" >&6; } 3152 fi 3153 3154 3155 test -n "$ac_ct_CXX" && break 3156 done 3157 3158 if test "x$ac_ct_CXX" = x; then 3159 CXX="g++" 3160 else 3161 case $cross_compiling:$ac_tool_warned in 3162 yes:) 3163 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 3164 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3165 ac_tool_warned=yes ;; 3166 esac 3167 CXX=$ac_ct_CXX 3168 fi 3169 fi 3170 3171 fi 3172 fi 3173 # Provide some information about the compiler. 3174 $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5 3175 set X $ac_compile 3176 ac_compiler=$2 3177 { (ac_try="$ac_compiler --version >&5" 3178 case "(($ac_try" in 3179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3180 *) ac_try_echo=$ac_try;; 3181 esac 3182 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3183 $as_echo "$ac_try_echo") >&5 3184 (eval "$ac_compiler --version >&5") 2>&5 3185 ac_status=$? 3186 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3187 (exit $ac_status); } 3188 { (ac_try="$ac_compiler -v >&5" 3189 case "(($ac_try" in 3190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3191 *) ac_try_echo=$ac_try;; 3192 esac 3193 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3194 $as_echo "$ac_try_echo") >&5 3195 (eval "$ac_compiler -v >&5") 2>&5 3196 ac_status=$? 3197 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3198 (exit $ac_status); } 3199 { (ac_try="$ac_compiler -V >&5" 3200 case "(($ac_try" in 3201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3202 *) ac_try_echo=$ac_try;; 3203 esac 3204 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3205 $as_echo "$ac_try_echo") >&5 3206 (eval "$ac_compiler -V >&5") 2>&5 3207 ac_status=$? 3208 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3209 (exit $ac_status); } 3210 3211 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 3212 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 3213 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then 3214 $as_echo_n "(cached) " >&6 3215 else 3216 cat >conftest.$ac_ext <<_ACEOF 3217 /* confdefs.h. */ 3218 _ACEOF 3219 cat confdefs.h >>conftest.$ac_ext 3220 cat >>conftest.$ac_ext <<_ACEOF 3221 /* end confdefs.h. */ 3222 3223 int 3224 main () 3225 { 3226 #ifndef __GNUC__ 3227 choke me 3228 #endif 3229 3230 ; 3231 return 0; 3232 } 3233 _ACEOF 3234 rm -f conftest.$ac_objext 3235 if { (ac_try="$ac_compile" 3236 case "(($ac_try" in 3237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3238 *) ac_try_echo=$ac_try;; 3239 esac 3240 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3241 $as_echo "$ac_try_echo") >&5 3242 (eval "$ac_compile") 2>conftest.er1 3243 ac_status=$? 3244 grep -v '^ *+' conftest.er1 >conftest.err 3245 rm -f conftest.er1 3246 cat conftest.err >&5 3247 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3248 (exit $ac_status); } && { 3249 test -z "$ac_cxx_werror_flag" || 3250 test ! -s conftest.err 3251 } && test -s conftest.$ac_objext; then 3252 ac_compiler_gnu=yes 3253 else 3254 $as_echo "$as_me: failed program was:" >&5 3255 sed 's/^/| /' conftest.$ac_ext >&5 3256 3257 ac_compiler_gnu=no 3258 fi 3259 3260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3261 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 3262 3263 fi 3264 { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 3265 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 3266 if test $ac_compiler_gnu = yes; then 3267 GXX=yes 3268 else 3269 GXX= 3270 fi 3271 ac_test_CXXFLAGS=${CXXFLAGS+set} 3272 ac_save_CXXFLAGS=$CXXFLAGS 3273 { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 3274 $as_echo_n "checking whether $CXX accepts -g... " >&6; } 3275 if test "${ac_cv_prog_cxx_g+set}" = set; then 3276 $as_echo_n "(cached) " >&6 3277 else 3278 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 3279 ac_cxx_werror_flag=yes 3280 ac_cv_prog_cxx_g=no 3281 CXXFLAGS="-g" 3282 cat >conftest.$ac_ext <<_ACEOF 3283 /* confdefs.h. */ 3284 _ACEOF 3285 cat confdefs.h >>conftest.$ac_ext 3286 cat >>conftest.$ac_ext <<_ACEOF 3287 /* end confdefs.h. */ 3288 3289 int 3290 main () 3291 { 3292 3293 ; 3294 return 0; 3295 } 3296 _ACEOF 3297 rm -f conftest.$ac_objext 3298 if { (ac_try="$ac_compile" 3299 case "(($ac_try" in 3300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3301 *) ac_try_echo=$ac_try;; 3302 esac 3303 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3304 $as_echo "$ac_try_echo") >&5 3305 (eval "$ac_compile") 2>conftest.er1 3306 ac_status=$? 3307 grep -v '^ *+' conftest.er1 >conftest.err 3308 rm -f conftest.er1 3309 cat conftest.err >&5 3310 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3311 (exit $ac_status); } && { 3312 test -z "$ac_cxx_werror_flag" || 3313 test ! -s conftest.err 3314 } && test -s conftest.$ac_objext; then 3315 ac_cv_prog_cxx_g=yes 3316 else 3317 $as_echo "$as_me: failed program was:" >&5 3318 sed 's/^/| /' conftest.$ac_ext >&5 3319 3320 CXXFLAGS="" 3321 cat >conftest.$ac_ext <<_ACEOF 3322 /* confdefs.h. */ 3323 _ACEOF 3324 cat confdefs.h >>conftest.$ac_ext 3325 cat >>conftest.$ac_ext <<_ACEOF 3326 /* end confdefs.h. */ 3327 3328 int 3329 main () 3330 { 3331 3332 ; 3333 return 0; 3334 } 3335 _ACEOF 3336 rm -f conftest.$ac_objext 3337 if { (ac_try="$ac_compile" 3338 case "(($ac_try" in 3339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3340 *) ac_try_echo=$ac_try;; 3341 esac 3342 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3343 $as_echo "$ac_try_echo") >&5 3344 (eval "$ac_compile") 2>conftest.er1 3345 ac_status=$? 3346 grep -v '^ *+' conftest.er1 >conftest.err 3347 rm -f conftest.er1 3348 cat conftest.err >&5 3349 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3350 (exit $ac_status); } && { 3351 test -z "$ac_cxx_werror_flag" || 3352 test ! -s conftest.err 3353 } && test -s conftest.$ac_objext; then 3354 : 3355 else 3356 $as_echo "$as_me: failed program was:" >&5 3357 sed 's/^/| /' conftest.$ac_ext >&5 3358 3359 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 3360 CXXFLAGS="-g" 3361 cat >conftest.$ac_ext <<_ACEOF 3362 /* confdefs.h. */ 3363 _ACEOF 3364 cat confdefs.h >>conftest.$ac_ext 3365 cat >>conftest.$ac_ext <<_ACEOF 3366 /* end confdefs.h. */ 3367 3368 int 3369 main () 3370 { 3371 3372 ; 3373 return 0; 3374 } 3375 _ACEOF 3376 rm -f conftest.$ac_objext 3377 if { (ac_try="$ac_compile" 3378 case "(($ac_try" in 3379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3380 *) ac_try_echo=$ac_try;; 3381 esac 3382 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3383 $as_echo "$ac_try_echo") >&5 3384 (eval "$ac_compile") 2>conftest.er1 3385 ac_status=$? 3386 grep -v '^ *+' conftest.er1 >conftest.err 3387 rm -f conftest.er1 3388 cat conftest.err >&5 3389 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3390 (exit $ac_status); } && { 3391 test -z "$ac_cxx_werror_flag" || 3392 test ! -s conftest.err 3393 } && test -s conftest.$ac_objext; then 3394 ac_cv_prog_cxx_g=yes 3395 else 3396 $as_echo "$as_me: failed program was:" >&5 3397 sed 's/^/| /' conftest.$ac_ext >&5 3398 3399 3400 fi 3401 3402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3403 fi 3404 3405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3406 fi 3407 3408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3409 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 3410 fi 3411 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 3412 $as_echo "$ac_cv_prog_cxx_g" >&6; } 3413 if test "$ac_test_CXXFLAGS" = set; then 3414 CXXFLAGS=$ac_save_CXXFLAGS 3415 elif test $ac_cv_prog_cxx_g = yes; then 3416 if test "$GXX" = yes; then 3417 CXXFLAGS="-g -O2" 3418 else 3419 CXXFLAGS="-g" 3420 fi 3421 else 3422 if test "$GXX" = yes; then 3423 CXXFLAGS="-O2" 3424 else 3425 CXXFLAGS= 3426 fi 3427 fi 3428 ac_ext=c 3429 ac_cpp='$CPP $CPPFLAGS' 3430 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3431 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3432 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3433 3434 ac_ext=c 3435 ac_cpp='$CPP $CPPFLAGS' 3436 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3437 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3438 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3439 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 3440 $as_echo_n "checking how to run the C preprocessor... " >&6; } 3441 # On Suns, sometimes $CPP names a directory. 3442 if test -n "$CPP" && test -d "$CPP"; then 3443 CPP= 3444 fi 3445 if test -z "$CPP"; then 3446 if test "${ac_cv_prog_CPP+set}" = set; then 3447 $as_echo_n "(cached) " >&6 3448 else 3449 # Double quotes because CPP needs to be expanded 3450 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3451 do 3452 ac_preproc_ok=false 3453 for ac_c_preproc_warn_flag in '' yes 3454 do 3455 # Use a header file that comes with gcc, so configuring glibc 3456 # with a fresh cross-compiler works. 3457 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3458 # <limits.h> exists even on freestanding compilers. 3459 # On the NeXT, cc -E runs the code through the compiler's parser, 3460 # not just through cpp. "Syntax error" is here to catch this case. 3461 cat >conftest.$ac_ext <<_ACEOF 3462 /* confdefs.h. */ 3463 _ACEOF 3464 cat confdefs.h >>conftest.$ac_ext 3465 cat >>conftest.$ac_ext <<_ACEOF 3466 /* end confdefs.h. */ 3467 #ifdef __STDC__ 3468 # include <limits.h> 3469 #else 3470 # include <assert.h> 3471 #endif 3472 Syntax error 3473 _ACEOF 3474 if { (ac_try="$ac_cpp conftest.$ac_ext" 3475 case "(($ac_try" in 3476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3477 *) ac_try_echo=$ac_try;; 3478 esac 3479 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3480 $as_echo "$ac_try_echo") >&5 3481 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3482 ac_status=$? 3483 grep -v '^ *+' conftest.er1 >conftest.err 3484 rm -f conftest.er1 3485 cat conftest.err >&5 3486 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3487 (exit $ac_status); } >/dev/null && { 3488 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3489 test ! -s conftest.err 3490 }; then 3491 : 3492 else 3493 $as_echo "$as_me: failed program was:" >&5 3494 sed 's/^/| /' conftest.$ac_ext >&5 3495 3496 # Broken: fails on valid input. 3497 continue 3498 fi 3499 3500 rm -f conftest.err conftest.$ac_ext 3501 3502 # OK, works on sane cases. Now check whether nonexistent headers 3503 # can be detected and how. 3504 cat >conftest.$ac_ext <<_ACEOF 3505 /* confdefs.h. */ 3506 _ACEOF 3507 cat confdefs.h >>conftest.$ac_ext 3508 cat >>conftest.$ac_ext <<_ACEOF 3509 /* end confdefs.h. */ 3510 #include <ac_nonexistent.h> 3511 _ACEOF 3512 if { (ac_try="$ac_cpp conftest.$ac_ext" 3513 case "(($ac_try" in 3514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3515 *) ac_try_echo=$ac_try;; 3516 esac 3517 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3518 $as_echo "$ac_try_echo") >&5 3519 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3520 ac_status=$? 3521 grep -v '^ *+' conftest.er1 >conftest.err 3522 rm -f conftest.er1 3523 cat conftest.err >&5 3524 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3525 (exit $ac_status); } >/dev/null && { 3526 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3527 test ! -s conftest.err 3528 }; then 3529 # Broken: success on invalid input. 3530 continue 3531 else 3532 $as_echo "$as_me: failed program was:" >&5 3533 sed 's/^/| /' conftest.$ac_ext >&5 3534 3535 # Passes both tests. 3536 ac_preproc_ok=: 3537 break 3538 fi 3539 3540 rm -f conftest.err conftest.$ac_ext 3541 3542 done 3543 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3544 rm -f conftest.err conftest.$ac_ext 3545 if $ac_preproc_ok; then 3546 break 3547 fi 3548 3549 done 3550 ac_cv_prog_CPP=$CPP 3551 3552 fi 3553 CPP=$ac_cv_prog_CPP 3554 else 3555 ac_cv_prog_CPP=$CPP 3556 fi 3557 { $as_echo "$as_me:$LINENO: result: $CPP" >&5 3558 $as_echo "$CPP" >&6; } 3559 ac_preproc_ok=false 3560 for ac_c_preproc_warn_flag in '' yes 3561 do 3562 # Use a header file that comes with gcc, so configuring glibc 3563 # with a fresh cross-compiler works. 3564 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3565 # <limits.h> exists even on freestanding compilers. 3566 # On the NeXT, cc -E runs the code through the compiler's parser, 3567 # not just through cpp. "Syntax error" is here to catch this case. 3568 cat >conftest.$ac_ext <<_ACEOF 3569 /* confdefs.h. */ 3570 _ACEOF 3571 cat confdefs.h >>conftest.$ac_ext 3572 cat >>conftest.$ac_ext <<_ACEOF 3573 /* end confdefs.h. */ 3574 #ifdef __STDC__ 3575 # include <limits.h> 3576 #else 3577 # include <assert.h> 3578 #endif 3579 Syntax error 3580 _ACEOF 3581 if { (ac_try="$ac_cpp conftest.$ac_ext" 3582 case "(($ac_try" in 3583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3584 *) ac_try_echo=$ac_try;; 3585 esac 3586 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3587 $as_echo "$ac_try_echo") >&5 3588 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3589 ac_status=$? 3590 grep -v '^ *+' conftest.er1 >conftest.err 3591 rm -f conftest.er1 3592 cat conftest.err >&5 3593 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3594 (exit $ac_status); } >/dev/null && { 3595 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3596 test ! -s conftest.err 3597 }; then 3598 : 3599 else 3600 $as_echo "$as_me: failed program was:" >&5 3601 sed 's/^/| /' conftest.$ac_ext >&5 3602 3603 # Broken: fails on valid input. 3604 continue 3605 fi 3606 3607 rm -f conftest.err conftest.$ac_ext 3608 3609 # OK, works on sane cases. Now check whether nonexistent headers 3610 # can be detected and how. 3611 cat >conftest.$ac_ext <<_ACEOF 3612 /* confdefs.h. */ 3613 _ACEOF 3614 cat confdefs.h >>conftest.$ac_ext 3615 cat >>conftest.$ac_ext <<_ACEOF 3616 /* end confdefs.h. */ 3617 #include <ac_nonexistent.h> 3618 _ACEOF 3619 if { (ac_try="$ac_cpp conftest.$ac_ext" 3620 case "(($ac_try" in 3621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3622 *) ac_try_echo=$ac_try;; 3623 esac 3624 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3625 $as_echo "$ac_try_echo") >&5 3626 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3627 ac_status=$? 3628 grep -v '^ *+' conftest.er1 >conftest.err 3629 rm -f conftest.er1 3630 cat conftest.err >&5 3631 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3632 (exit $ac_status); } >/dev/null && { 3633 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3634 test ! -s conftest.err 3635 }; then 3636 # Broken: success on invalid input. 3637 continue 3638 else 3639 $as_echo "$as_me: failed program was:" >&5 3640 sed 's/^/| /' conftest.$ac_ext >&5 3641 3642 # Passes both tests. 3643 ac_preproc_ok=: 3644 break 3645 fi 3646 3647 rm -f conftest.err conftest.$ac_ext 3648 3649 done 3650 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3651 rm -f conftest.err conftest.$ac_ext 3652 if $ac_preproc_ok; then 3653 : 3654 else 3655 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 3656 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3657 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 3658 See \`config.log' for more details." >&5 3659 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 3660 See \`config.log' for more details." >&2;} 3661 { (exit 1); exit 1; }; }; } 3662 fi 3663 3664 ac_ext=c 3665 ac_cpp='$CPP $CPPFLAGS' 3666 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3667 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3668 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3669 3670 # Find a good install program. We prefer a C program (faster), 3671 # so one script is as good as another. But avoid the broken or 3672 # incompatible versions: 3673 # SysV /etc/install, /usr/sbin/install 3674 # SunOS /usr/etc/install 3675 # IRIX /sbin/install 3676 # AIX /bin/install 3677 # AmigaOS /C/install, which installs bootblocks on floppy discs 3678 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3679 # AFS /usr/afsws/bin/install, which mishandles nonexistent args 3680 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3681 # OS/2's system install, which has a completely different semantic 3682 # ./install, which can be erroneously created by make from ./install.sh. 3683 # Reject install programs that cannot install multiple files. 3684 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 3685 $as_echo_n "checking for a BSD-compatible install... " >&6; } 3686 if test -z "$INSTALL"; then 3687 if test "${ac_cv_path_install+set}" = set; then 3688 $as_echo_n "(cached) " >&6 3689 else 3690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3691 for as_dir in $PATH 3692 do 3693 IFS=$as_save_IFS 3694 test -z "$as_dir" && as_dir=. 3695 # Account for people who put trailing slashes in PATH elements. 3696 case $as_dir/ in 3697 ./ | .// | /cC/* | \ 3698 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3699 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 3700 /usr/ucb/* ) ;; 3701 *) 3702 # OSF1 and SCO ODT 3.0 have their own names for install. 3703 # Don't use installbsd from OSF since it installs stuff as root 3704 # by default. 3705 for ac_prog in ginstall scoinst install; do 3706 for ac_exec_ext in '' $ac_executable_extensions; do 3707 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 3708 if test $ac_prog = install && 3709 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3710 # AIX install. It has an incompatible calling convention. 3711 : 3712 elif test $ac_prog = install && 3713 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3714 # program-specific install script used by HP pwplus--don't use. 3715 : 3716 else 3717 rm -rf conftest.one conftest.two conftest.dir 3718 echo one > conftest.one 3719 echo two > conftest.two 3720 mkdir conftest.dir 3721 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 3722 test -s conftest.one && test -s conftest.two && 3723 test -s conftest.dir/conftest.one && 3724 test -s conftest.dir/conftest.two 3725 then 3726 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 3727 break 3 3728 fi 3729 fi 3730 fi 3731 done 3732 done 3733 ;; 3734 esac 3735 3736 done 3737 IFS=$as_save_IFS 3738 3739 rm -rf conftest.one conftest.two conftest.dir 3740 3741 fi 3742 if test "${ac_cv_path_install+set}" = set; then 3743 INSTALL=$ac_cv_path_install 3744 else 3745 # As a last resort, use the slow shell script. Don't cache a 3746 # value for INSTALL within a source directory, because that will 3747 # break other packages using the cache if that directory is 3748 # removed, or if the value is a relative name. 3749 INSTALL=$ac_install_sh 3750 fi 3751 fi 3752 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5 3753 $as_echo "$INSTALL" >&6; } 3754 3755 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3756 # It thinks the first close brace ends the variable substitution. 3757 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3758 3759 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3760 3761 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3762 3763 3764 3765 3766 # make sure install is relative to srcdir - if a script 3767 if test "$srcdir" = "."; then 3768 # If srcdir isn't just ., then (srcdir) is already prepended. 3769 if test "${ac_install_sh}" = "${INSTALL}"; then 3770 INSTALL="\\\$(top_srcdir)/${ac_install_sh}" 3771 fi 3772 fi 3773 3774 #AC_CHECK_PROG(AUTOCONF, autoconf, autoconf, true) 3775 #AC_CHECK_PROG(STRIP, strip, strip, true) 3776 3777 # Check for the platform make 3778 for ac_prog in gmake gnumake 3779 do 3780 # Extract the first word of "$ac_prog", so it can be a program name with args. 3781 set dummy $ac_prog; ac_word=$2 3782 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 3783 $as_echo_n "checking for $ac_word... " >&6; } 3784 if test "${ac_cv_path_U_MAKE+set}" = set; then 3785 $as_echo_n "(cached) " >&6 3786 else 3787 case $U_MAKE in 3788 [\\/]* | ?:[\\/]*) 3789 ac_cv_path_U_MAKE="$U_MAKE" # Let the user override the test with a path. 3790 ;; 3791 *) 3792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3793 for as_dir in $PATH 3794 do 3795 IFS=$as_save_IFS 3796 test -z "$as_dir" && as_dir=. 3797 for ac_exec_ext in '' $ac_executable_extensions; do 3798 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3799 ac_cv_path_U_MAKE="$as_dir/$ac_word$ac_exec_ext" 3800 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3801 break 2 3802 fi 3803 done 3804 done 3805 IFS=$as_save_IFS 3806 3807 ;; 3808 esac 3809 fi 3810 U_MAKE=$ac_cv_path_U_MAKE 3811 if test -n "$U_MAKE"; then 3812 { $as_echo "$as_me:$LINENO: result: $U_MAKE" >&5 3813 $as_echo "$U_MAKE" >&6; } 3814 else 3815 { $as_echo "$as_me:$LINENO: result: no" >&5 3816 $as_echo "no" >&6; } 3817 fi 3818 3819 3820 test -n "$U_MAKE" && break 3821 done 3822 test -n "$U_MAKE" || U_MAKE="make" 3823 3824 3825 3826 3827 3828 # Check whether --with-cross-build was given. 3829 if test "${with_cross_build+set}" = set; then 3830 withval=$with_cross_build; cross_buildroot="${withval}" 3831 else 3832 cross_buildroot="" 3833 fi 3834 3835 3836 if test "X$cross_buildroot" = "X"; then 3837 if test "$cross_compiling" = "yes"; then 3838 { { $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 3839 $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;} 3840 { (exit 1); exit 1; }; } 3841 fi 3842 else 3843 if test -f "${cross_buildroot}/config/icucross.mk"; then 3844 { $as_echo "$as_me:$LINENO: result: Using cross buildroot: $cross_buildroot" >&5 3845 $as_echo "Using cross buildroot: $cross_buildroot" >&6; } 3846 else 3847 if test -d "${cross_buildroot}"; then 3848 { { $as_echo "$as_me:$LINENO: error: ${cross_buildroot}/config/icucross.mk not found. Please build ICU in ${cross_buildroot} first." >&5 3849 $as_echo "$as_me: error: ${cross_buildroot}/config/icucross.mk not found. Please build ICU in ${cross_buildroot} first." >&2;} 3850 { (exit 1); exit 1; }; } 3851 else 3852 { { $as_echo "$as_me:$LINENO: error: No such