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