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