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