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