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