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