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