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