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|*-*-mingw64)
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  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4867/* end confdefs.h.  */
4868
4869#ifndef __MINGW64__
4870#error This is not MinGW64
4871#endif
4872int
4873main ()
4874{
4875
4876  ;
4877  return 0;
4878}
4879_ACEOF
4880if ac_fn_c_try_compile "$LINENO"; then :
4881  icu_cv_host_frag=mh-mingw64
4882else
4883  icu_cv_host_frag=mh-mingw
4884fi
4885rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4886else
4887  icu_cv_host_frag=mh-cygwin
4888fi
4889rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4890	else
4891		icu_cv_host_frag=mh-cygwin-msvc
4892	fi ;;
4893*-*-*bsd*|*-*-dragonfly*) 	icu_cv_host_frag=mh-bsd-gcc ;;
4894*-*-aix*)
4895	if test "$GCC" = yes; then
4896		icu_cv_host_frag=mh-aix-gcc
4897	else
4898		icu_cv_host_frag=mh-aix-va
4899	fi ;;
4900*-*-hpux*)
4901	if test "$GCC" = yes; then
4902		icu_cv_host_frag=mh-hpux-gcc
4903	else
4904		case "$CXX" in
4905		*aCC)    icu_cv_host_frag=mh-hpux-acc ;;
4906		esac
4907	fi ;;
4908*-*ibm-openedition*|*-*-os390*)	icu_cv_host_frag=mh-os390 ;;
4909*-*-os400*)	icu_cv_host_frag=mh-os400 ;;
4910*-apple-rhapsody*)	icu_cv_host_frag=mh-darwin ;;
4911*-apple-darwin*)	icu_cv_host_frag=mh-darwin ;;
4912*-*-beos)       icu_cv_host_frag=mh-beos ;;
4913*-*-haiku)      icu_cv_host_frag=mh-haiku ;;
4914*-*-irix*)	icu_cv_host_frag=mh-irix ;;
4915*-dec-osf*) icu_cv_host_frag=mh-alpha-osf ;;
4916*-*-nto*)	icu_cv_host_frag=mh-qnx ;;
4917*-ncr-*)	icu_cv_host_frag=mh-mpras ;;
4918*) 		icu_cv_host_frag=mh-unknown ;;
4919esac
4920
4921
4922fi
4923{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $icu_cv_host_frag" >&5
4924$as_echo "$icu_cv_host_frag" >&6; }
4925
4926
4927# Checks for libraries and other host specific stuff
4928# On HP/UX, don't link to -lm from a shared lib because it isn't
4929#  PIC (at least on 10.2)
4930case "${host}" in
4931	*-*-hpux*) 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for floor in -lm" >&5
4932$as_echo_n "checking for floor in -lm... " >&6; }
4933if ${ac_cv_lib_m_floor+:} false; then :
4934  $as_echo_n "(cached) " >&6
4935else
4936  ac_check_lib_save_LIBS=$LIBS
4937LIBS="-lm  $LIBS"
4938cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4939/* end confdefs.h.  */
4940
4941/* Override any GCC internal prototype to avoid an error.
4942   Use char because int might match the return type of a GCC
4943   builtin and then its argument prototype would still apply.  */
4944#ifdef __cplusplus
4945extern "C"
4946#endif
4947char floor ();
4948int
4949main ()
4950{
4951return floor ();
4952  ;
4953  return 0;
4954}
4955_ACEOF
4956if ac_fn_c_try_link "$LINENO"; then :
4957  ac_cv_lib_m_floor=yes
4958else
4959  ac_cv_lib_m_floor=no
4960fi
4961rm -f core conftest.err conftest.$ac_objext \
4962    conftest$ac_exeext conftest.$ac_ext
4963LIBS=$ac_check_lib_save_LIBS
4964fi
4965{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_floor" >&5
4966$as_echo "$ac_cv_lib_m_floor" >&6; }
4967if test "x$ac_cv_lib_m_floor" = xyes; then :
4968  LIB_M="-lm"
4969fi
4970 ;;
4971
4972	*) 		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for floor in -lm" >&5
4973$as_echo_n "checking for floor in -lm... " >&6; }
4974if ${ac_cv_lib_m_floor+:} false; then :
4975  $as_echo_n "(cached) " >&6
4976else
4977  ac_check_lib_save_LIBS=$LIBS
4978LIBS="-lm  $LIBS"
4979cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4980/* end confdefs.h.  */
4981
4982/* Override any GCC internal prototype to avoid an error.
4983   Use char because int might match the return type of a GCC
4984   builtin and then its argument prototype would still apply.  */
4985#ifdef __cplusplus
4986extern "C"
4987#endif
4988char floor ();
4989int
4990main ()
4991{
4992return floor ();
4993  ;
4994  return 0;
4995}
4996_ACEOF
4997if ac_fn_c_try_link "$LINENO"; then :
4998  ac_cv_lib_m_floor=yes
4999else
5000  ac_cv_lib_m_floor=no
5001fi
5002rm -f core conftest.err conftest.$ac_objext \
5003    conftest$ac_exeext conftest.$ac_ext
5004LIBS=$ac_check_lib_save_LIBS
5005fi
5006{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_floor" >&5
5007$as_echo "$ac_cv_lib_m_floor" >&6; }
5008if test "x$ac_cv_lib_m_floor" = xyes; then :
5009  cat >>confdefs.h <<_ACEOF
5010#define HAVE_LIBM 1
5011_ACEOF
5012
5013  LIBS="-lm $LIBS"
5014
5015fi
5016
5017			LIB_M="" ;;
5018esac
5019
5020
5021# Check whether to build shared libraries
5022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
5023$as_echo_n "checking whether to build shared libraries... " >&6; }
5024enabled=no
5025# Check whether --enable-shared was given.
5026if test "${enable_shared+set}" = set; then :
5027  enableval=$enable_shared;  case "${enableval}" in
5028	     yes|"") enabled=yes; ENABLE_SHARED=YES ;;
5029	     no);;
5030	     *) ;;
5031    esac
5032else
5033  enabled=yes; ENABLE_SHARED=YES
5034
5035fi
5036
5037{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enabled" >&5
5038$as_echo "$enabled" >&6; }
5039
5040
5041# Check whether to build static libraries
5042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
5043$as_echo_n "checking whether to build static libraries... " >&6; }
5044enabled=no
5045# Check whether --enable-static was given.
5046if test "${enable_static+set}" = set; then :
5047  enableval=$enable_static;  case "${enableval}" in
5048	     yes|"") enabled=yes; ENABLE_STATIC=YES ;;
5049	     no) ;;
5050	     *) ;;
5051    esac
5052fi
5053
5054{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enabled" >&5
5055$as_echo "$enabled" >&6; }
5056
5057
5058# When building release static library, there might be some optimization flags we can use
5059if test "$ENABLE_STATIC" = "YES"; then
5060    if test "$ENABLE_SHARED" != "YES"; then
5061        if test "$ENABLE_RELEASE" = 1; then
5062            { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can use static library optimization option" >&5
5063$as_echo_n "checking whether we can use static library optimization option... " >&6; }
5064            CHECK_STATIC_OPT_FLAG=no
5065
5066            OLD_CPPFLAGS="${CPPFLAGS}"
5067            OLD_LDFLAGS="${LDFLAGS}"
5068
5069            case "${host}" in
5070            *-linux*|i*86-*-*bsd*|i*86-pc-gnu)
5071                if test "$GCC" = yes; then
5072                    CPPFLAGS="${CPPFLAGS} -ffunction-sections -fdata-sections"
5073                    LDFLAGS="${LDFLAGS} -Wl,--gc-sections"
5074                fi
5075                ;;
5076            *)
5077                ;;
5078            esac
5079
5080            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5081/* end confdefs.h.  */
5082
5083int
5084main ()
5085{
5086
5087  ;
5088  return 0;
5089}
5090_ACEOF
5091if ac_fn_c_try_link "$LINENO"; then :
5092  CHECK_STATIC_OPT_FLAG=yes
5093else
5094  CHECK_STATIC_OPT_FLAG=no
5095fi
5096rm -f core conftest.err conftest.$ac_objext \
5097    conftest$ac_exeext conftest.$ac_ext
5098            { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_STATIC_OPT_FLAG" >&5
5099$as_echo "$CHECK_STATIC_OPT_FLAG" >&6; }
5100            if test "$CHECK_STATIC_OPT_FLAG" = no; then
5101                CPPFLAGS="${OLD_CPPFLAGS}"
5102                LDFLAGS="${OLD_LDFLAGS}"
5103            fi
5104        fi
5105    fi
5106fi
5107
5108
5109# Check whether to enable auto cleanup of libraries
5110{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable auto cleanup of libraries" >&5
5111$as_echo_n "checking whether to enable auto cleanup of libraries... " >&6; }
5112enabled=no
5113UCLN_NO_AUTO_CLEANUP=1
5114# Check whether --enable-auto-cleanup was given.
5115if test "${enable_auto_cleanup+set}" = set; then :
5116  enableval=$enable_auto_cleanup;  case "${enableval}" in
5117         yes) enabled=yes;
5118         CONFIG_CPPFLAGS="$CONFIG_CPPFLAGS -DUCLN_NO_AUTO_CLEANUP=0";
5119         UCLN_NO_AUTO_CLEANUP=0
5120          ;;
5121         *) ;;
5122    esac
5123fi
5124
5125{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enabled" >&5
5126$as_echo "$enabled" >&6; }
5127
5128
5129# MSVC floating-point option
5130MSVC_RELEASE_FLAG=""
5131if test $enabled = yes
5132then
5133    if test $icu_cv_host_frag = mh-cygwin-msvc
5134    then
5135        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5136/* end confdefs.h.  */
5137
5138    #if defined _MSC_VER && _MSC_VER >= 1400
5139    #else
5140    Microsoft Visual C++ < 2005
5141    #endif
5142
5143int
5144main ()
5145{
5146
5147  ;
5148  return 0;
5149}
5150_ACEOF
5151if ac_fn_c_try_compile "$LINENO"; then :
5152  MSVC_RELEASE_FLAG="/fp:precise"
5153else
5154  MSVC_RELEASE_FLAG="/Op"
5155fi
5156rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5157
5158        CFLAGS="${CFLAGS} ${MSVC_RELEASE_FLAG}"
5159        CXXFLAGS="${CXXFLAGS} ${MSVC_RELEASE_FLAG}"
5160    fi
5161fi
5162
5163# Check whether to enabled draft APIs
5164{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable draft APIs" >&5
5165$as_echo_n "checking whether to enable draft APIs... " >&6; }
5166enabled=yes
5167U_DEFAULT_SHOW_DRAFT=1
5168# Check whether --enable-draft was given.
5169if test "${enable_draft+set}" = set; then :
5170  enableval=$enable_draft;  case "${enableval}" in
5171         no) enabled=no; U_DEFAULT_SHOW_DRAFT=0;
5172         CONFIG_CPPFLAGS="$CONFIG_CPPFLAGS -DU_DEFAULT_SHOW_DRAFT=0"
5173          ;;
5174         *) ;;
5175    esac
5176fi
5177
5178{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enabled" >&5
5179$as_echo "$enabled" >&6; }
5180# Make sure that we can use draft API in ICU.
5181if test "$U_DEFAULT_SHOW_DRAFT" = 0; then
5182    CONFIG_CPPFLAGS="$CONFIG_CPPFLAGS -DU_SHOW_DRAFT_API"
5183fi
5184
5185
5186if test -n "$ac_tool_prefix"; then
5187  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5188set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5190$as_echo_n "checking for $ac_word... " >&6; }
5191if ${ac_cv_prog_RANLIB+:} false; then :
5192  $as_echo_n "(cached) " >&6
5193else
5194  if test -n "$RANLIB"; then
5195  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5196else
5197as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5198for as_dir in $PATH
5199do
5200  IFS=$as_save_IFS
5201  test -z "$as_dir" && as_dir=.
5202    for ac_exec_ext in '' $ac_executable_extensions; do
5203  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5204    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5205    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5206    break 2
5207  fi
5208done
5209  done
5210IFS=$as_save_IFS
5211
5212fi
5213fi
5214RANLIB=$ac_cv_prog_RANLIB
5215if test -n "$RANLIB"; then
5216  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5217$as_echo "$RANLIB" >&6; }
5218else
5219  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5220$as_echo "no" >&6; }
5221fi
5222
5223
5224fi
5225if test -z "$ac_cv_prog_RANLIB"; then
5226  ac_ct_RANLIB=$RANLIB
5227  # Extract the first word of "ranlib", so it can be a program name with args.
5228set dummy ranlib; ac_word=$2
5229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5230$as_echo_n "checking for $ac_word... " >&6; }
5231if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5232  $as_echo_n "(cached) " >&6
5233else
5234  if test -n "$ac_ct_RANLIB"; then
5235  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5236else
5237as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5238for as_dir in $PATH
5239do
5240  IFS=$as_save_IFS
5241  test -z "$as_dir" && as_dir=.
5242    for ac_exec_ext in '' $ac_executable_extensions; do
5243  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5244    ac_cv_prog_ac_ct_RANLIB="ranlib"
5245    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5246    break 2
5247  fi
5248done
5249  done
5250IFS=$as_save_IFS
5251
5252fi
5253fi
5254ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5255if test -n "$ac_ct_RANLIB"; then
5256  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5257$as_echo "$ac_ct_RANLIB" >&6; }
5258else
5259  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5260$as_echo "no" >&6; }
5261fi
5262
5263  if test "x$ac_ct_RANLIB" = x; then
5264    RANLIB=":"
5265  else
5266    case $cross_compiling:$ac_tool_warned in
5267yes:)
5268{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5269$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5270ac_tool_warned=yes ;;
5271esac
5272    RANLIB=$ac_ct_RANLIB
5273  fi
5274else
5275  RANLIB="$ac_cv_prog_RANLIB"
5276fi
5277
5278
5279# look for 'ar' the proper way
5280if test -n "$ac_tool_prefix"; then
5281  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5282set dummy ${ac_tool_prefix}ar; ac_word=$2
5283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5284$as_echo_n "checking for $ac_word... " >&6; }
5285if ${ac_cv_prog_AR+:} false; then :
5286  $as_echo_n "(cached) " >&6
5287else
5288  if test -n "$AR"; then
5289  ac_cv_prog_AR="$AR" # Let the user override the test.
5290else
5291as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5292for as_dir in $PATH
5293do
5294  IFS=$as_save_IFS
5295  test -z "$as_dir" && as_dir=.
5296    for ac_exec_ext in '' $ac_executable_extensions; do
5297  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5298    ac_cv_prog_AR="${ac_tool_prefix}ar"
5299    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5300    break 2
5301  fi
5302done
5303  done
5304IFS=$as_save_IFS
5305
5306fi
5307fi
5308AR=$ac_cv_prog_AR
5309if test -n "$AR"; then
5310  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5311$as_echo "$AR" >&6; }
5312else
5313  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5314$as_echo "no" >&6; }
5315fi
5316
5317
5318fi
5319if test -z "$ac_cv_prog_AR"; then
5320  ac_ct_AR=$AR
5321  # Extract the first word of "ar", so it can be a program name with args.
5322set dummy ar; ac_word=$2
5323{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5324$as_echo_n "checking for $ac_word... " >&6; }
5325if ${ac_cv_prog_ac_ct_AR+:} false; then :
5326  $as_echo_n "(cached) " >&6
5327else
5328  if test -n "$ac_ct_AR"; then
5329  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5330else
5331as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5332for as_dir in $PATH
5333do
5334  IFS=$as_save_IFS
5335  test -z "$as_dir" && as_dir=.
5336    for ac_exec_ext in '' $ac_executable_extensions; do
5337  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5338    ac_cv_prog_ac_ct_AR="ar"
5339    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5340    break 2
5341  fi
5342done
5343  done
5344IFS=$as_save_IFS
5345
5346fi
5347fi
5348ac_ct_AR=$ac_cv_prog_ac_ct_AR
5349if test -n "$ac_ct_AR"; then
5350  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5351$as_echo "$ac_ct_AR" >&6; }
5352else
5353  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5354$as_echo "no" >&6; }
5355fi
5356
5357  if test "x$ac_ct_AR" = x; then
5358    AR="false"
5359  else
5360    case $cross_compiling:$ac_tool_warned in
5361yes:)
5362{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5363$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5364ac_tool_warned=yes ;;
5365esac
5366    AR=$ac_ct_AR
5367  fi
5368else
5369  AR="$ac_cv_prog_AR"
5370fi
5371
5372
5373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable renaming of symbols" >&5
5374$as_echo_n "checking whether to enable renaming of symbols... " >&6; }
5375enabled=yes
5376U_DISABLE_RENAMING=0
5377# Check whether --enable-renaming was given.
5378if test "${enable_renaming+set}" = set; then :
5379  enableval=$enable_renaming;  case "${enableval}" in
5380	     yes|"") enabled=yes ;;
5381	     no) enabled=no; U_DISABLE_RENAMING=1;
5382             UCONFIG_CPPFLAGS="${UCONFIG_CPPFLAGS} -DU_DISABLE_RENAMING=1"
5383              ;;
5384	     *) ;;
5385    esac
5386fi
5387
5388{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enabled" >&5
5389$as_echo "$enabled" >&6; }
5390
5391
5392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable function and data tracing" >&5
5393$as_echo_n "checking whether to enable function and data tracing... " >&6; }
5394enabled=no
5395U_ENABLE_TRACING=0
5396# Check whether --enable-tracing was given.
5397if test "${enable_tracing+set}" = set; then :
5398  enableval=$enable_tracing;  case "${enableval}" in
5399	     yes|"") enabled=yes;
5400                     CONFIG_CPPFLAGS="$CONFIG_CPPFLAGS -DU_ENABLE_TRACING=1";
5401                     U_ENABLE_TRACING=1 ;;
5402	     no) enabled=no; U_ENABLE_TRACING=0 ;;
5403	     *) ;;
5404    esac
5405fi
5406
5407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enabled" >&5
5408$as_echo "$enabled" >&6; }
5409
5410
5411
5412U_ENABLE_DYLOAD=1
5413enable=yes
5414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable dynamic loading of plugins" >&5
5415$as_echo_n "checking whether to enable dynamic loading of plugins... " >&6; }
5416# Check whether --enable-dyload was given.
5417if test "${enable_dyload+set}" = set; then :
5418  enableval=$enable_dyload;  case "${enableval}" in
5419	     yes|"")
5420		     U_ENABLE_DYLOAD=1
5421                     enable=yes
5422                     ;;
5423	     no)
5424	     	 U_ENABLE_DYLOAD=0;
5425                 enable=no;
5426                 CONFIG_CPPFLAGS="$CONFIG_CPPFLAGS -DU_ENABLE_DYLOAD=0";
5427                 ;;
5428	     *) ;;
5429    esac
5430fi
5431
5432{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable" >&5
5433$as_echo "$enable" >&6; }
5434
5435
5436if test "$enable" = "yes"; then
5437   for ac_header in dlfcn.h
5438do :
5439  ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
5440if test "x$ac_cv_header_dlfcn_h" = xyes; then :
5441  cat >>confdefs.h <<_ACEOF
5442#define HAVE_DLFCN_H 1
5443_ACEOF
5444
5445fi
5446
5447done
5448
5449   #AC_MSG_RESULT($enabled)
5450   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
5451$as_echo_n "checking for library containing dlopen... " >&6; }
5452if ${ac_cv_search_dlopen+:} false; then :
5453  $as_echo_n "(cached) " >&6
5454else
5455  ac_func_search_save_LIBS=$LIBS
5456cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5457/* end confdefs.h.  */
5458
5459/* Override any GCC internal prototype to avoid an error.
5460   Use char because int might match the return type of a GCC
5461   builtin and then its argument prototype would still apply.  */
5462#ifdef __cplusplus
5463extern "C"
5464#endif
5465char dlopen ();
5466int
5467main ()
5468{
5469return dlopen ();
5470  ;
5471  return 0;
5472}
5473_ACEOF
5474for ac_lib in '' dl; do
5475  if test -z "$ac_lib"; then
5476    ac_res="none required"
5477  else
5478    ac_res=-l$ac_lib
5479    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5480  fi
5481  if ac_fn_c_try_link "$LINENO"; then :
5482  ac_cv_search_dlopen=$ac_res
5483fi
5484rm -f core conftest.err conftest.$ac_objext \
5485    conftest$ac_exeext
5486  if ${ac_cv_search_dlopen+:} false; then :
5487  break
5488fi
5489done
5490if ${ac_cv_search_dlopen+:} false; then :
5491
5492else
5493  ac_cv_search_dlopen=no
5494fi
5495rm conftest.$ac_ext
5496LIBS=$ac_func_search_save_LIBS
5497fi
5498{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
5499$as_echo "$ac_cv_search_dlopen" >&6; }
5500ac_res=$ac_cv_search_dlopen
5501if test "$ac_res" != no; then :
5502  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5503
5504fi
5505
5506   for ac_func in dlopen
5507do :
5508  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
5509if test "x$ac_cv_func_dlopen" = xyes; then :
5510  cat >>confdefs.h <<_ACEOF
5511#define HAVE_DLOPEN 1
5512_ACEOF
5513
5514fi
5515done
5516
5517
5518   if test "x$ac_cv_func_dlopen" != xyes; then
5519      CONFIG_CPPFLAGS="$CONFIG_CPPFLAGS -DHAVE_DLOPEN=0"
5520   fi
5521fi
5522
5523# Check for miscellanous functions.
5524# So, use for putil / tools only.
5525# Note that this will generate HAVE_GETTIMEOFDAY, not U_HAVE_GETTIMEOFDAY
5526for ac_func in gettimeofday
5527do :
5528  ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
5529if test "x$ac_cv_func_gettimeofday" = xyes; then :
5530  cat >>confdefs.h <<_ACEOF
5531#define HAVE_GETTIMEOFDAY 1
5532_ACEOF
5533
5534fi
5535done
5536
5537
5538
5539# Check whether to use the evil rpath or not
5540# Check whether --enable-rpath was given.
5541if test "${enable_rpath+set}" = set; then :
5542  enableval=$enable_rpath;  case "${enableval}" in
5543	     yes|"") ENABLE_RPATH=YES ;;
5544	     no) ;;
5545	     *) ;;
5546    esac
5547else
5548  ENABLE_RPATH=NO
5549
5550fi
5551
5552
5553
5554
5555
5556ac_ext=cpp
5557ac_cpp='$CXXCPP $CPPFLAGS'
5558ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5559ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5560ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5561
5562{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have a C++ compiler" >&5
5563$as_echo_n "checking if we have a C++ compiler... " >&6; }
5564cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5565/* end confdefs.h.  */
5566
5567int
5568main ()
5569{
5570
5571  ;
5572  return 0;
5573}
5574_ACEOF
5575if ac_fn_cxx_try_compile "$LINENO"; then :
5576  cxx_okay=yes
5577else
5578  cxx_okay=no
5579fi
5580rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5581if test $cxx_okay = yes
5582then
5583	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Good" >&5
5584$as_echo "Good" >&6; }
5585else
5586	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5587$as_echo "no" >&6; }
5588	as_fn_error $? "C++ compiler $CXX does not work or no compiler found" "$LINENO" 5
5589fi
5590
5591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if #include <string> works" >&5
5592$as_echo_n "checking if #include <string> works... " >&6; }
5593cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5594/* end confdefs.h.  */
5595#include <string>
5596int
5597main ()
5598{
5599
5600  ;
5601  return 0;
5602}
5603_ACEOF
5604if ac_fn_cxx_try_compile "$LINENO"; then :
5605  ac_cv_header_stdstring=yes
5606else
5607  ac_cv_header_stdstring=no
5608fi
5609rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5610{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdstring" >&5
5611$as_echo "$ac_cv_header_stdstring" >&6; }
5612if test $ac_cv_header_stdstring = yes
5613then
5614	U_HAVE_STD_STRING=1
5615else
5616        U_HAVE_STD_STRING=0
5617        CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_STD_STRING=0"
5618fi
5619
5620ac_ext=c
5621ac_cpp='$CPP $CPPFLAGS'
5622ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5623ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5624ac_compiler_gnu=$ac_cv_c_compiler_gnu
5625
5626
5627# Always build ICU with multi-threading support.
5628threads=true
5629ICU_USE_THREADS=1
5630OLD_LIBS=${LIBS}
5631
5632if test $threads = true; then
5633  # For Compaq Tru64 (OSF1), we must look for pthread_attr_init
5634  # and must do this before seaching for pthread_mutex_destroy, or
5635  # we will pick up libpthreads.so not libpthread.so
5636  # If this fails, then we must test for HPUX specials, before
5637  # moving on to a more generic test
5638
5639  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_attr_init in -lpthread" >&5
5640$as_echo_n "checking for pthread_attr_init in -lpthread... " >&6; }
5641if ${ac_cv_lib_pthread_pthread_attr_init+:} false; then :
5642  $as_echo_n "(cached) " >&6
5643else
5644  ac_check_lib_save_LIBS=$LIBS
5645LIBS="-lpthread  $LIBS"
5646cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5647/* end confdefs.h.  */
5648
5649/* Override any GCC internal prototype to avoid an error.
5650   Use char because int might match the return type of a GCC
5651   builtin and then its argument prototype would still apply.  */
5652#ifdef __cplusplus
5653extern "C"
5654#endif
5655char pthread_attr_init ();
5656int
5657main ()
5658{
5659return pthread_attr_init ();
5660  ;
5661  return 0;
5662}
5663_ACEOF
5664if ac_fn_c_try_link "$LINENO"; then :
5665  ac_cv_lib_pthread_pthread_attr_init=yes
5666else
5667  ac_cv_lib_pthread_pthread_attr_init=no
5668fi
5669rm -f core conftest.err conftest.$ac_objext \
5670    conftest$ac_exeext conftest.$ac_ext
5671LIBS=$ac_check_lib_save_LIBS
5672fi
5673{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_attr_init" >&5
5674$as_echo "$ac_cv_lib_pthread_pthread_attr_init" >&6; }
5675if test "x$ac_cv_lib_pthread_pthread_attr_init" = xyes; then :
5676  cat >>confdefs.h <<_ACEOF
5677#define HAVE_LIBPTHREAD 1
5678_ACEOF
5679
5680  LIBS="-lpthread $LIBS"
5681
5682fi
5683
5684  if test $ac_cv_lib_pthread_pthread_attr_init = yes; then
5685    ICU_USE_THREADS=1
5686  else
5687    # Locate the right library for POSIX threads. We look for the
5688    # symbols in the libraries first, because on Solaris libc provides
5689    # pthread_create but libpthread has the real code :(
5690    # AIX uses libpthreads instead of libpthread, and HP/UX uses libpthread
5691    # FreeBSD users may need libpthread if they do not have libc_r.
5692
5693
5694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_mutex_destroy" >&5
5695$as_echo_n "checking for library containing pthread_mutex_destroy... " >&6; }
5696if ${ac_cv_search_pthread_mutex_destroy+:} false; then :
5697  $as_echo_n "(cached) " >&6
5698else
5699  ac_func_search_save_LIBS="$LIBS"
5700ac_cv_search_pthread_mutex_destroy="no"
5701for i in pthread pthreads c_r ; do
5702LIBS="-l$i  $ac_func_search_save_LIBS"
5703cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5704/* end confdefs.h.  */
5705
5706/* Override any GCC internal prototype to avoid an error.
5707   Use char because int might match the return type of a GCC
5708   builtin and then its argument prototype would still apply.  */
5709#ifdef __cplusplus
5710extern "C"
5711#endif
5712char pthread_mutex_destroy ();
5713int
5714main ()
5715{
5716return pthread_mutex_destroy ();
5717  ;
5718  return 0;
5719}
5720_ACEOF
5721if ac_fn_c_try_link "$LINENO"; then :
5722  ac_cv_search_pthread_mutex_destroy="-l$i"
5723break
5724fi
5725rm -f core conftest.err conftest.$ac_objext \
5726    conftest$ac_exeext conftest.$ac_ext
5727done
5728if test "$ac_cv_search_pthread_mutex_destroy" = "no"; then
5729cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5730/* end confdefs.h.  */
5731
5732/* Override any GCC internal prototype to avoid an error.
5733   Use char because int might match the return type of a GCC
5734   builtin and then its argument prototype would still apply.  */
5735#ifdef __cplusplus
5736extern "C"
5737#endif
5738char pthread_mutex_destroy ();
5739int
5740main ()
5741{
5742return pthread_mutex_destroy ();
5743  ;
5744  return 0;
5745}
5746_ACEOF
5747if ac_fn_c_try_link "$LINENO"; then :
5748  ac_cv_search_pthread_mutex_destroy="none required"
5749fi
5750rm -f core conftest.err conftest.$ac_objext \
5751    conftest$ac_exeext conftest.$ac_ext
5752fi
5753LIBS="$ac_func_search_save_LIBS"
5754fi
5755{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_mutex_destroy" >&5
5756$as_echo "$ac_cv_search_pthread_mutex_destroy" >&6; }
5757if test "$ac_cv_search_pthread_mutex_destroy" != "no"; then
5758  test "$ac_cv_search_pthread_mutex_destroy" = "none required" || LIBS="$ac_cv_search_pthread_mutex_destroy $LIBS"
5759
5760else :
5761
5762fi
5763
5764    if test "$ac_cv_search_pthread_mutex_destroy" != no; then
5765      ICU_USE_THREADS=1
5766    else
5767      # For HP 11
5768      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_init in -lpthread" >&5
5769$as_echo_n "checking for pthread_mutex_init in -lpthread... " >&6; }
5770if ${ac_cv_lib_pthread_pthread_mutex_init+:} false; then :
5771  $as_echo_n "(cached) " >&6
5772else
5773  ac_check_lib_save_LIBS=$LIBS
5774LIBS="-lpthread  $LIBS"
5775cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5776/* end confdefs.h.  */
5777
5778/* Override any GCC internal prototype to avoid an error.
5779   Use char because int might match the return type of a GCC
5780   builtin and then its argument prototype would still apply.  */
5781#ifdef __cplusplus
5782extern "C"
5783#endif
5784char pthread_mutex_init ();
5785int
5786main ()
5787{
5788return pthread_mutex_init ();
5789  ;
5790  return 0;
5791}
5792_ACEOF
5793if ac_fn_c_try_link "$LINENO"; then :
5794  ac_cv_lib_pthread_pthread_mutex_init=yes
5795else
5796  ac_cv_lib_pthread_pthread_mutex_init=no
5797fi
5798rm -f core conftest.err conftest.$ac_objext \
5799    conftest$ac_exeext conftest.$ac_ext
5800LIBS=$ac_check_lib_save_LIBS
5801fi
5802{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
5803$as_echo "$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
5804if test "x$ac_cv_lib_pthread_pthread_mutex_init" = xyes; then :
5805  cat >>confdefs.h <<_ACEOF
5806#define HAVE_LIBPTHREAD 1
5807_ACEOF
5808
5809  LIBS="-lpthread $LIBS"
5810
5811fi
5812
5813      if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
5814        ICU_USE_THREADS=1
5815      fi
5816    fi
5817
5818    ac_fn_c_check_func "$LINENO" "pthread_mutex_lock" "ac_cv_func_pthread_mutex_lock"
5819if test "x$ac_cv_func_pthread_mutex_lock" = xyes; then :
5820
5821fi
5822
5823
5824    if test $ac_cv_func_pthread_mutex_lock = yes; then
5825      ICU_USE_THREADS=1
5826    fi
5827  fi
5828  # Check to see if we are using CygWin with MSVC
5829  case "${host}" in
5830  *-pc-cygwin*|*-pc-mingw*)
5831    # For gcc, the thread options are set by mh-mingw/mh-cygwin
5832    # For msvc, the thread options are set by runConfigureICU
5833    ICU_USE_THREADS=1
5834    ;;
5835  *-*-hpux*)
5836    # Add -mt because it does several nice things on newer compilers.
5837    case "${icu_cv_host_frag}" in
5838      mh-hpux-acc)
5839        OLD_CXXFLAGS="${CXXFLAGS}"
5840        CXXFLAGS="${CXXFLAGS} -mt"
5841        if test x"`${CXX} ${CXXFLAGS} 2>&1`" != x""; then
5842           CXXFLAGS="${OLD_CXXFLAGS}"
5843       fi
5844      ;;
5845    esac
5846    ;;
5847  *-*-solaris*)
5848    case "${icu_cv_host_frag}" in
5849      mh-solaris)
5850           LIBS="${LIBS} -mt"
5851      ;;
5852    esac
5853    ;;
5854  esac
5855fi
5856
5857# Check whether --enable-weak-threads was given.
5858if test "${enable_weak_threads+set}" = set; then :
5859  enableval=$enable_weak_threads; case "${enableval}" in
5860		yes)
5861            LIB_THREAD="${LIBS%${OLD_LIBS}}"
5862            LIBS=${OLD_LIBS}
5863            ;;
5864		no)  ;;
5865		*) as_fn_error $? "bad value ${enableval} for --enable-weak-threads" "$LINENO" 5 ;;
5866		esac
5867fi
5868
5869
5870
5871# Check for mmap()
5872
5873# The AC_FUNC_MMAP macro doesn't work properly.  It seems to be too specific.
5874# Do this check instead.
5875HAVE_MMAP=0
5876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mmap" >&5
5877$as_echo_n "checking for mmap... " >&6; }
5878if ${ac_cv_func_mmap_ok+:} false; then :
5879  $as_echo_n "(cached) " >&6
5880else
5881  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5882/* end confdefs.h.  */
5883#include <unistd.h>
5884#include <sys/mman.h>
5885#include <sys/stat.h>
5886#include <fcntl.h>
5887int
5888main ()
5889{
5890mmap((void *)0, 0, PROT_READ, 0, 0, 0);
5891  ;
5892  return 0;
5893}
5894_ACEOF
5895if ac_fn_c_try_link "$LINENO"; then :
5896  ac_cv_func_mmap_ok=yes
5897else
5898  ac_cv_func_mmap_ok=no
5899fi
5900rm -f core conftest.err conftest.$ac_objext \
5901    conftest$ac_exeext conftest.$ac_ext
5902fi
5903
5904{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_ok" >&5
5905$as_echo "$ac_cv_func_mmap_ok" >&6; }
5906if test $ac_cv_func_mmap_ok = yes
5907then
5908    HAVE_MMAP=1
5909else
5910    CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_MMAP=0"
5911fi
5912
5913
5914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for genccode assembly" >&5
5915$as_echo_n "checking for genccode assembly... " >&6; }
5916
5917# Check to see if genccode can generate simple assembly.
5918GENCCODE_ASSEMBLY=
5919case "${host}" in
5920*-linux*|*-kfreebsd*-gnu*|i*86-*-*bsd*|i*86-pc-gnu)
5921    if test "$GCC" = yes; then
5922        # We're using gcc, and the simple -a gcc command line works for genccode
5923        GENCCODE_ASSEMBLY="-a gcc"
5924    fi ;;
5925i*86-*-solaris*)
5926    if test "$GCC" = yes; then
5927        # When using gcc, look if we're also using GNU as.
5928        # When using GNU as, the simple -a gcc command line works for genccode.
5929        asv=`"${CC}" -print-prog-name=as 2>/dev/null`
5930        asv=`"${asv}" --version 2>/dev/null`
5931        case "X${asv}" in
5932        X*GNU*) GENCCODE_ASSEMBLY="-a gcc" ;;
5933        X*) GENCCODE_ASSEMBLY="-a sun-x86" ;;
5934        esac
5935        unset asv
5936    else
5937        GENCCODE_ASSEMBLY="-a sun-x86"
5938    fi ;;
5939sparc-*-solaris*)
5940    GENCCODE_ASSEMBLY="-a sun"
5941    ;;
5942ia64-*-hpux*)
5943    GENCCODE_ASSEMBLY="-a aCC-ia64"
5944    ;;
5945esac
5946
5947
5948{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENCCODE_ASSEMBLY" >&5
5949$as_echo "$GENCCODE_ASSEMBLY" >&6; }
5950
5951# Checks for header files
5952for ac_header in inttypes.h
5953do :
5954  ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
5955if test "x$ac_cv_header_inttypes_h" = xyes; then :
5956  cat >>confdefs.h <<_ACEOF
5957#define HAVE_INTTYPES_H 1
5958_ACEOF
5959
5960fi
5961
5962done
5963
5964if test $ac_cv_header_inttypes_h = no; then
5965 U_HAVE_INTTYPES_H=0
5966 CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_INTTYPES_H=0"
5967else
5968 U_HAVE_INTTYPES_H=1
5969fi
5970if test "$CC" = ccc; then
5971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"C compiler set to CCC ${CC}\" " >&5
5972$as_echo "\"C compiler set to CCC ${CC}\" " >&6; }
5973 case "${host}" in
5974        alpha*-*-*) U_HAVE_INTTYPES_H=0;
5975        CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_INTTYPES_H=0"
5976 esac
5977fi
5978
5979
5980
5981for ac_header in dirent.h
5982do :
5983  ac_fn_c_check_header_mongrel "$LINENO" "dirent.h" "ac_cv_header_dirent_h" "$ac_includes_default"
5984if test "x$ac_cv_header_dirent_h" = xyes; then :
5985  cat >>confdefs.h <<_ACEOF
5986#define HAVE_DIRENT_H 1
5987_ACEOF
5988
5989fi
5990
5991done
5992
5993if test $ac_cv_header_dirent_h = no; then
5994 U_HAVE_DIRENT_H=0
5995 CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_DIRENT_H=0"
5996else
5997 U_HAVE_DIRENT_H=1
5998fi
5999
6000
6001
6002# Check for endianness
6003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
6004$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
6005if ${ac_cv_c_bigendian+:} false; then :
6006  $as_echo_n "(cached) " >&6
6007else
6008  ac_cv_c_bigendian=unknown
6009    # See if we're dealing with a universal compiler.
6010    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6011/* end confdefs.h.  */
6012#ifndef __APPLE_CC__
6013	       not a universal capable compiler
6014	     #endif
6015	     typedef int dummy;
6016
6017_ACEOF
6018if ac_fn_c_try_compile "$LINENO"; then :
6019
6020	# Check for potential -arch flags.  It is not universal unless
6021	# there are at least two -arch flags with different values.
6022	ac_arch=
6023	ac_prev=
6024	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
6025	 if test -n "$ac_prev"; then
6026	   case $ac_word in
6027	     i?86 | x86_64 | ppc | ppc64)
6028	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
6029		 ac_arch=$ac_word
6030	       else
6031		 ac_cv_c_bigendian=universal
6032		 break
6033	       fi
6034	       ;;
6035	   esac
6036	   ac_prev=
6037	 elif test "x$ac_word" = "x-arch"; then
6038	   ac_prev=arch
6039	 fi
6040       done
6041fi
6042rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6043    if test $ac_cv_c_bigendian = unknown; then
6044      # See if sys/param.h defines the BYTE_ORDER macro.
6045      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6046/* end confdefs.h.  */
6047#include <sys/types.h>
6048	     #include <sys/param.h>
6049
6050int
6051main ()
6052{
6053#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
6054		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
6055		     && LITTLE_ENDIAN)
6056	      bogus endian macros
6057	     #endif
6058
6059  ;
6060  return 0;
6061}
6062_ACEOF
6063if ac_fn_c_try_compile "$LINENO"; then :
6064  # It does; now see whether it defined to BIG_ENDIAN or not.
6065	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6066/* end confdefs.h.  */
6067#include <sys/types.h>
6068		#include <sys/param.h>
6069
6070int
6071main ()
6072{
6073#if BYTE_ORDER != BIG_ENDIAN
6074		 not big endian
6075		#endif
6076
6077  ;
6078  return 0;
6079}
6080_ACEOF
6081if ac_fn_c_try_compile "$LINENO"; then :
6082  ac_cv_c_bigendian=yes
6083else
6084  ac_cv_c_bigendian=no
6085fi
6086rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6087fi
6088rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6089    fi
6090    if test $ac_cv_c_bigendian = unknown; then
6091      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
6092      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6093/* end confdefs.h.  */
6094#include <limits.h>
6095
6096int
6097main ()
6098{
6099#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
6100	      bogus endian macros
6101	     #endif
6102
6103  ;
6104  return 0;
6105}
6106_ACEOF
6107if ac_fn_c_try_compile "$LINENO"; then :
6108  # It does; now see whether it defined to _BIG_ENDIAN or not.
6109	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6110/* end confdefs.h.  */
6111#include <limits.h>
6112
6113int
6114main ()
6115{
6116#ifndef _BIG_ENDIAN
6117		 not big endian
6118		#endif
6119
6120  ;
6121  return 0;
6122}
6123_ACEOF
6124if ac_fn_c_try_compile "$LINENO"; then :
6125  ac_cv_c_bigendian=yes
6126else
6127  ac_cv_c_bigendian=no
6128fi
6129rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6130fi
6131rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6132    fi
6133    if test $ac_cv_c_bigendian = unknown; then
6134      # Compile a test program.
6135      if test "$cross_compiling" = yes; then :
6136  # Try to guess by grepping values from an object file.
6137	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6138/* end confdefs.h.  */
6139short int ascii_mm[] =
6140		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
6141		short int ascii_ii[] =
6142		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
6143		int use_ascii (int i) {
6144		  return ascii_mm[i] + ascii_ii[i];
6145		}
6146		short int ebcdic_ii[] =
6147		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
6148		short int ebcdic_mm[] =
6149		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
6150		int use_ebcdic (int i) {
6151		  return ebcdic_mm[i] + ebcdic_ii[i];
6152		}
6153		extern int foo;
6154
6155int
6156main ()
6157{
6158return use_ascii (foo) == use_ebcdic (foo);
6159  ;
6160  return 0;
6161}
6162_ACEOF
6163if ac_fn_c_try_compile "$LINENO"; then :
6164  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
6165	      ac_cv_c_bigendian=yes
6166	    fi
6167	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
6168	      if test "$ac_cv_c_bigendian" = unknown; then
6169		ac_cv_c_bigendian=no
6170	      else
6171		# finding both strings is unlikely to happen, but who knows?
6172		ac_cv_c_bigendian=unknown
6173	      fi
6174	    fi
6175fi
6176rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6177else
6178  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6179/* end confdefs.h.  */
6180$ac_includes_default
6181int
6182main ()
6183{
6184
6185	     /* Are we little or big endian?  From Harbison&Steele.  */
6186	     union
6187	     {
6188	       long int l;
6189	       char c[sizeof (long int)];
6190	     } u;
6191	     u.l = 1;
6192	     return u.c[sizeof (long int) - 1] == 1;
6193
6194  ;
6195  return 0;
6196}
6197_ACEOF
6198if ac_fn_c_try_run "$LINENO"; then :
6199  ac_cv_c_bigendian=no
6200else
6201  ac_cv_c_bigendian=yes
6202fi
6203rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6204  conftest.$ac_objext conftest.beam conftest.$ac_ext
6205fi
6206
6207    fi
6208fi
6209{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
6210$as_echo "$ac_cv_c_bigendian" >&6; }
6211 case $ac_cv_c_bigendian in #(
6212   yes)
6213     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
6214;; #(
6215   no)
6216      ;; #(
6217   universal)
6218
6219$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
6220
6221     ;; #(
6222   *)
6223     as_fn_error $? "unknown endianness
6224 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
6225 esac
6226
6227if test $ac_cv_c_bigendian = no; then
6228U_IS_BIG_ENDIAN=0
6229U_ENDIAN_CHAR="l"
6230else
6231U_IS_BIG_ENDIAN=1
6232U_ENDIAN_CHAR="b"
6233fi
6234
6235
6236# Do various POSIX related checks
6237U_HAVE_NL_LANGINFO_CODESET=0
6238U_NL_LANGINFO_CODESET=-1
6239ac_fn_c_check_func "$LINENO" "nl_langinfo" "ac_cv_func_nl_langinfo"
6240if test "x$ac_cv_func_nl_langinfo" = xyes; then :
6241  U_HAVE_NL_LANGINFO=1
6242else
6243  U_HAVE_NL_LANGINFO=0
6244fi
6245
6246if test $U_HAVE_NL_LANGINFO -eq 1; then
6247  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo's argument to obtain the codeset" >&5
6248$as_echo_n "checking for nl_langinfo's argument to obtain the codeset... " >&6; }
6249if ${ac_cv_nl_langinfo_codeset+:} false; then :
6250  $as_echo_n "(cached) " >&6
6251else
6252  ac_cv_nl_langinfo_codeset="unknown"
6253  for a in CODESET _NL_CTYPE_CODESET_NAME; do
6254  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6255/* end confdefs.h.  */
6256#include <langinfo.h>
6257int
6258main ()
6259{
6260nl_langinfo($a);
6261  ;
6262  return 0;
6263}
6264_ACEOF
6265if ac_fn_c_try_link "$LINENO"; then :
6266  ac_cv_nl_langinfo_codeset="$a"; break
6267fi
6268rm -f core conftest.err conftest.$ac_objext \
6269    conftest$ac_exeext conftest.$ac_ext
6270  done
6271fi
6272{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_nl_langinfo_codeset" >&5
6273$as_echo "$ac_cv_nl_langinfo_codeset" >&6; }
6274  if test x$ac_cv_nl_langinfo_codeset != xunknown
6275  then
6276      U_HAVE_NL_LANGINFO_CODESET=1
6277      U_NL_LANGINFO_CODESET=$ac_cv_nl_langinfo_codeset
6278      if test "x${ac_cv_nl_langinfo_codeset}" != "xCODESET"
6279      then
6280        CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DNL_LANGINFO_CODESET=${ac_cv_nl_langinfo_codeset}"
6281      fi
6282  else
6283      CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_NL_LANGINFO_CODESET=0"
6284  fi
6285fi
6286
6287
6288
6289# Namespace support checks
6290ac_ext=cpp
6291ac_cpp='$CXXCPP $CPPFLAGS'
6292ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6293ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6294ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6295
6296{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for namespace support" >&5
6297$as_echo_n "checking for namespace support... " >&6; }
6298if ${ac_cv_namespace_ok+:} false; then :
6299  $as_echo_n "(cached) " >&6
6300else
6301  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6302/* end confdefs.h.  */
6303namespace x_version {void f(){}}
6304    namespace x = x_version;
6305    using namespace x_version;
6306
6307int
6308main ()
6309{
6310f();
6311  ;
6312  return 0;
6313}
6314_ACEOF
6315if ac_fn_cxx_try_link "$LINENO"; then :
6316  ac_cv_namespace_ok=yes
6317else
6318  ac_cv_namespace_ok=no
6319fi
6320rm -f core conftest.err conftest.$ac_objext \
6321    conftest$ac_exeext conftest.$ac_ext
6322fi
6323
6324{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_namespace_ok" >&5
6325$as_echo "$ac_cv_namespace_ok" >&6; }
6326if test $ac_cv_namespace_ok = no
6327then
6328    as_fn_error $? "Namespace support is required to build ICU." "$LINENO" 5
6329fi
6330
6331{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for properly overriding new and delete" >&5
6332$as_echo_n "checking for properly overriding new and delete... " >&6; }
6333U_OVERRIDE_CXX_ALLOCATION=0
6334U_HAVE_PLACEMENT_NEW=0
6335if ${ac_cv_override_cxx_allocation_ok+:} false; then :
6336  $as_echo_n "(cached) " >&6
6337else
6338  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6339/* end confdefs.h.  */
6340#include <stdlib.h>
6341    class UMemory {
6342    public:
6343    void *operator new(size_t size) {return malloc(size);}
6344    void *operator new[](size_t size) {return malloc(size);}
6345    void operator delete(void *p) {free(p);}
6346    void operator delete[](void *p) {free(p);}
6347    };
6348
6349int
6350main ()
6351{
6352
6353  ;
6354  return 0;
6355}
6356_ACEOF
6357if ac_fn_cxx_try_link "$LINENO"; then :
6358  ac_cv_override_cxx_allocation_ok=yes
6359else
6360  ac_cv_override_cxx_allocation_ok=no
6361fi
6362rm -f core conftest.err conftest.$ac_objext \
6363    conftest$ac_exeext conftest.$ac_ext
6364fi
6365
6366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_override_cxx_allocation_ok" >&5
6367$as_echo "$ac_cv_override_cxx_allocation_ok" >&6; }
6368if test $ac_cv_override_cxx_allocation_ok = yes
6369then
6370    U_OVERRIDE_CXX_ALLOCATION=1
6371    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for placement new and delete" >&5
6372$as_echo_n "checking for placement new and delete... " >&6; }
6373    if ${ac_cv_override_placement_new_ok+:} false; then :
6374  $as_echo_n "(cached) " >&6
6375else
6376  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6377/* end confdefs.h.  */
6378#include <stdlib.h>
6379        class UMemory {
6380        public:
6381        void *operator new(size_t size) {return malloc(size);}
6382        void *operator new[](size_t size) {return malloc(size);}
6383        void operator delete(void *p) {free(p);}
6384        void operator delete[](void *p) {free(p);}
6385        void * operator new(size_t, void *ptr) { return ptr; }
6386        void operator delete(void *, void *) {}
6387        };
6388
6389int
6390main ()
6391{
6392
6393  ;
6394  return 0;
6395}
6396_ACEOF
6397if ac_fn_cxx_try_link "$LINENO"; then :
6398  ac_cv_override_placement_new_ok=yes
6399else
6400  ac_cv_override_placement_new_ok=no
6401fi
6402rm -f core conftest.err conftest.$ac_objext \
6403    conftest$ac_exeext conftest.$ac_ext
6404fi
6405
6406    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_override_placement_new_ok" >&5
6407$as_echo "$ac_cv_override_placement_new_ok" >&6; }
6408    if test $ac_cv_override_placement_new_ok = yes
6409    then
6410        U_HAVE_PLACEMENT_NEW=1
6411    else
6412        CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_PLACEMENT_NEW=0"
6413    fi
6414else
6415    CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_OVERRIDE_CXX_ALLOCATION=0"
6416fi
6417
6418
6419
6420ac_ext=c
6421ac_cpp='$CPP $CPPFLAGS'
6422ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6423ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6424ac_compiler_gnu=$ac_cv_c_compiler_gnu
6425
6426ac_fn_c_check_func "$LINENO" "popen" "ac_cv_func_popen"
6427if test "x$ac_cv_func_popen" = xyes; then :
6428
6429fi
6430
6431if test x$ac_cv_func_popen = xyes
6432then
6433     U_HAVE_POPEN=1
6434else
6435     CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_POPEN=0"
6436     U_HAVE_POPEN=0
6437fi
6438
6439
6440ac_fn_c_check_func "$LINENO" "tzset" "ac_cv_func_tzset"
6441if test "x$ac_cv_func_tzset" = xyes; then :
6442
6443fi
6444
6445U_HAVE_TZSET=0
6446if test x$ac_cv_func_tzset = xyes
6447then
6448    U_TZSET=tzset
6449    U_HAVE_TZSET=1
6450else
6451    ac_fn_c_check_func "$LINENO" "_tzset" "ac_cv_func__tzset"
6452if test "x$ac_cv_func__tzset" = xyes; then :
6453
6454fi
6455
6456    if test x$ac_cv_func__tzset = xyes
6457    then
6458        U_TZSET=_tzset
6459        U_HAVE_TZSET=1
6460    else
6461      CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_TZSET=0"
6462    fi
6463fi
6464
6465
6466
6467U_HAVE_TZNAME=0
6468{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
6469$as_echo_n "checking for tzname... " >&6; }
6470if ${ac_cv_var_tzname+:} false; then :
6471  $as_echo_n "(cached) " >&6
6472else
6473  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6474/* end confdefs.h.  */
6475#ifndef __USE_POSIX
6476#define __USE_POSIX
6477#endif
6478#include <stdlib.h>
6479#include <time.h>
6480#ifndef tzname /* For SGI.  */
6481extern char *tzname[]; /* RS6000 and others reject char **tzname.  */
6482#endif
6483int
6484main ()
6485{
6486atoi(*tzname);
6487  ;
6488  return 0;
6489}
6490_ACEOF
6491if ac_fn_c_try_link "$LINENO"; then :
6492  ac_cv_var_tzname=yes
6493else
6494  ac_cv_var_tzname=no
6495fi
6496rm -f core conftest.err conftest.$ac_objext \
6497    conftest$ac_exeext conftest.$ac_ext
6498fi
6499{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
6500$as_echo "$ac_cv_var_tzname" >&6; }
6501if test $ac_cv_var_tzname = yes; then
6502  U_TZNAME=tzname
6503  U_HAVE_TZNAME=1
6504else
6505  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _tzname" >&5
6506$as_echo_n "checking for _tzname... " >&6; }
6507if ${ac_cv_var__tzname+:} false; then :
6508  $as_echo_n "(cached) " >&6
6509else
6510  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6511/* end confdefs.h.  */
6512#include <stdlib.h>
6513  #include <time.h>
6514  extern char *_tzname[];
6515int
6516main ()
6517{
6518atoi(*_tzname);
6519  ;
6520  return 0;
6521}
6522_ACEOF
6523if ac_fn_c_try_link "$LINENO"; then :
6524  ac_cv_var__tzname=yes
6525else
6526  ac_cv_var__tzname=no
6527fi
6528rm -f core conftest.err conftest.$ac_objext \
6529    conftest$ac_exeext conftest.$ac_ext
6530fi
6531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var__tzname" >&5
6532$as_echo "$ac_cv_var__tzname" >&6; }
6533    if test $ac_cv_var__tzname = yes; then
6534      U_TZNAME=_tzname
6535      U_HAVE_TZNAME=1
6536    else
6537     CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_TZNAME=0"
6538    fi
6539fi
6540
6541
6542
6543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for timezone" >&5
6544$as_echo_n "checking for timezone... " >&6; }
6545if ${ac_cv_var_timezone+:} false; then :
6546  $as_echo_n "(cached) " >&6
6547else
6548  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6549/* end confdefs.h.  */
6550#ifndef __USE_POSIX
6551#define __USE_POSIX
6552#endif
6553#ifndef __USE_XOPEN
6554#define __USE_XOPEN
6555#endif
6556#include <time.h>
6557
6558int
6559main ()
6560{
6561timezone = 1;
6562  ;
6563  return 0;
6564}
6565_ACEOF
6566if ac_fn_c_try_link "$LINENO"; then :
6567  ac_cv_var_timezone=yes
6568else
6569  ac_cv_var_timezone=no
6570fi
6571rm -f core conftest.err conftest.$ac_objext \
6572    conftest$ac_exeext conftest.$ac_ext
6573fi
6574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_timezone" >&5
6575$as_echo "$ac_cv_var_timezone" >&6; }
6576U_HAVE_TIMEZONE=0
6577if test $ac_cv_var_timezone = yes; then
6578  U_TIMEZONE=timezone
6579  U_HAVE_TIMEZONE=1
6580else
6581  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __timezone" >&5
6582$as_echo_n "checking for __timezone... " >&6; }
6583if ${ac_cv_var___timezone+:} false; then :
6584  $as_echo_n "(cached) " >&6
6585else
6586  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6587/* end confdefs.h.  */
6588#include <time.h>
6589int
6590main ()
6591{
6592__timezone = 1;
6593  ;
6594  return 0;
6595}
6596_ACEOF
6597if ac_fn_c_try_link "$LINENO"; then :
6598  ac_cv_var___timezone=yes
6599else
6600  ac_cv_var___timezone=no
6601fi
6602rm -f core conftest.err conftest.$ac_objext \
6603    conftest$ac_exeext conftest.$ac_ext
6604fi
6605{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var___timezone" >&5
6606$as_echo "$ac_cv_var___timezone" >&6; }
6607  if test $ac_cv_var___timezone = yes; then
6608    U_TIMEZONE=__timezone
6609    U_HAVE_TIMEZONE=1
6610  else
6611    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _timezone" >&5
6612$as_echo_n "checking for _timezone... " >&6; }
6613if ${ac_cv_var__timezone+:} false; then :
6614  $as_echo_n "(cached) " >&6
6615else
6616  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6617/* end confdefs.h.  */
6618#include <time.h>
6619int
6620main ()
6621{
6622_timezone = 1;
6623  ;
6624  return 0;
6625}
6626_ACEOF
6627if ac_fn_c_try_link "$LINENO"; then :
6628  ac_cv_var__timezone=yes
6629else
6630  ac_cv_var__timezone=no
6631fi
6632rm -f core conftest.err conftest.$ac_objext \
6633    conftest$ac_exeext conftest.$ac_ext
6634fi
6635{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var__timezone" >&5
6636$as_echo "$ac_cv_var__timezone" >&6; }
6637    if test $ac_cv_var__timezone = yes; then
6638      U_TIMEZONE=_timezone
6639      U_HAVE_TIMEZONE=1
6640    else
6641     CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_TIMEZONE=0"
6642    fi
6643  fi
6644fi
6645
6646
6647
6648# Checks for typedefs
6649ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default"
6650if test "x$ac_cv_type_int8_t" = xyes; then :
6651
6652else
6653
6654cat >>confdefs.h <<_ACEOF
6655#define int8_t signed char
6656_ACEOF
6657
6658fi
6659
6660ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
6661if test "x$ac_cv_type_uint8_t" = xyes; then :
6662
6663else
6664
6665cat >>confdefs.h <<_ACEOF
6666#define uint8_t unsigned char
6667_ACEOF
6668
6669fi
6670
6671ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
6672if test "x$ac_cv_type_int16_t" = xyes; then :
6673
6674else
6675
6676cat >>confdefs.h <<_ACEOF
6677#define int16_t signed short
6678_ACEOF
6679
6680fi
6681
6682ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
6683if test "x$ac_cv_type_uint16_t" = xyes; then :
6684
6685else
6686
6687cat >>confdefs.h <<_ACEOF
6688#define uint16_t unsigned short
6689_ACEOF
6690
6691fi
6692
6693ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
6694if test "x$ac_cv_type_int32_t" = xyes; then :
6695
6696else
6697
6698cat >>confdefs.h <<_ACEOF
6699#define int32_t signed long
6700_ACEOF
6701
6702fi
6703
6704ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
6705if test "x$ac_cv_type_uint32_t" = xyes; then :
6706
6707else
6708
6709cat >>confdefs.h <<_ACEOF
6710#define uint32_t unsigned long
6711_ACEOF
6712
6713fi
6714
6715ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default"
6716if test "x$ac_cv_type_int64_t" = xyes; then :
6717
6718else
6719
6720cat >>confdefs.h <<_ACEOF
6721#define int64_t signed long long
6722_ACEOF
6723
6724fi
6725
6726ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default"
6727if test "x$ac_cv_type_uint64_t" = xyes; then :
6728
6729else
6730
6731cat >>confdefs.h <<_ACEOF
6732#define uint64_t unsigned long long
6733_ACEOF
6734
6735fi
6736
6737
6738if test $ac_cv_type_int8_t = no; then
6739CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_INT8_T=0"
6740fi
6741
6742if test $ac_cv_type_uint8_t = no; then
6743CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_UINT8_T=0"
6744fi
6745
6746if test $ac_cv_type_int16_t = no; then
6747CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_INT16_T=0"
6748fi
6749
6750if test $ac_cv_type_uint16_t = no; then
6751CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_UINT16_T=0"
6752fi
6753
6754if test $ac_cv_type_int32_t = no; then
6755CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_INT32_T=0"
6756fi
6757
6758if test $ac_cv_type_uint32_t = no; then
6759CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_UINT32_T=0"
6760fi
6761
6762if test $ac_cv_type_int64_t = no; then
6763CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_INT64_T=0"
6764fi
6765
6766if test $ac_cv_type_uint64_t = no; then
6767CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_UINT64_T=0"
6768fi
6769
6770# Do various wchar_t related checks
6771ac_fn_c_check_header_mongrel "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default"
6772if test "x$ac_cv_header_wchar_h" = xyes; then :
6773
6774fi
6775
6776
6777if test "$ac_cv_header_wchar_h" = no
6778then
6779    U_HAVE_WCHAR_H=0
6780    U_HAVE_WCSCPY=0
6781    CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_WCHAR_H=0 -DU_HAVE_WCSCPY=0"
6782else
6783
6784$as_echo "#define HAVE_WCHAR_H 1" >>confdefs.h
6785
6786    U_HAVE_WCHAR_H=1
6787    # Some broken systems have wchar.h but not some of its functions...
6788    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing wcscpy" >&5
6789$as_echo_n "checking for library containing wcscpy... " >&6; }
6790if ${ac_cv_search_wcscpy+:} false; then :
6791  $as_echo_n "(cached) " >&6
6792else
6793  ac_func_search_save_LIBS=$LIBS
6794cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6795/* end confdefs.h.  */
6796
6797/* Override any GCC internal prototype to avoid an error.
6798   Use char because int might match the return type of a GCC
6799   builtin and then its argument prototype would still apply.  */
6800#ifdef __cplusplus
6801extern "C"
6802#endif
6803char wcscpy ();
6804int
6805main ()
6806{
6807return wcscpy ();
6808  ;
6809  return 0;
6810}
6811_ACEOF
6812for ac_lib in '' wcs w; do
6813  if test -z "$ac_lib"; then
6814    ac_res="none required"
6815  else
6816    ac_res=-l$ac_lib
6817    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6818  fi
6819  if ac_fn_c_try_link "$LINENO"; then :
6820  ac_cv_search_wcscpy=$ac_res
6821fi
6822rm -f core conftest.err conftest.$ac_objext \
6823    conftest$ac_exeext
6824  if ${ac_cv_search_wcscpy+:} false; then :
6825  break
6826fi
6827done
6828if ${ac_cv_search_wcscpy+:} false; then :
6829
6830else
6831  ac_cv_search_wcscpy=no
6832fi
6833rm conftest.$ac_ext
6834LIBS=$ac_func_search_save_LIBS
6835fi
6836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_wcscpy" >&5
6837$as_echo "$ac_cv_search_wcscpy" >&6; }
6838ac_res=$ac_cv_search_wcscpy
6839if test "$ac_res" != no; then :
6840  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6841
6842fi
6843
6844    if test "$ac_cv_search_wcscpy" != no; then
6845      U_HAVE_WCSCPY=1
6846    else
6847      U_HAVE_WCSCPY=0
6848      CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_WCSCPY=0"
6849    fi
6850fi
6851
6852
6853
6854# The cast to long int works around a bug in the HP C Compiler
6855# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6856# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6857# This bug is HP SR number 8606223364.
6858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of wchar_t" >&5
6859$as_echo_n "checking size of wchar_t... " >&6; }
6860if ${ac_cv_sizeof_wchar_t+:} false; then :
6861  $as_echo_n "(cached) " >&6
6862else
6863  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (wchar_t))" "ac_cv_sizeof_wchar_t"        "
6864#if STDC_HEADERS
6865#include <stddef.h>
6866#endif
6867#include <stdlib.h>
6868#if HAVE_WCHAR_H
6869#include <string.h>
6870#include <wchar.h>
6871#endif
6872"; then :
6873
6874else
6875  if test "$ac_cv_type_wchar_t" = yes; then
6876     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6877$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6878as_fn_error 77 "cannot compute sizeof (wchar_t)
6879See \`config.log' for more details" "$LINENO" 5; }
6880   else
6881     ac_cv_sizeof_wchar_t=0
6882   fi
6883fi
6884
6885fi
6886{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_wchar_t" >&5
6887$as_echo "$ac_cv_sizeof_wchar_t" >&6; }
6888
6889
6890
6891cat >>confdefs.h <<_ACEOF
6892#define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
6893_ACEOF
6894
6895
6896U_SIZEOF_WCHAR_T=$ac_cv_sizeof_wchar_t
6897# We do this check to verify that everything is okay.
6898if test $U_SIZEOF_WCHAR_T = 0; then
6899    if test $U_HAVE_WCHAR_H=1; then
6900       as_fn_error $? "There is wchar.h but the size of wchar_t is 0" "$LINENO" 5
6901    fi
6902fi
6903
6904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for UTF-16 string literal support" >&5
6905$as_echo_n "checking for UTF-16 string literal support... " >&6; }
6906U_CHECK_UTF16_STRING=1
6907CHECK_UTF16_STRING_RESULT="unknown"
6908
6909case "${host}" in
6910*-*-aix*|powerpc64-*-linux*)
6911    if test "$GCC" = no; then
6912        OLD_CFLAGS="${CFLAGS}"
6913        OLD_CXXFLAGS="${CXXFLAGS}"
6914        CFLAGS="${CFLAGS} -qutf"
6915        CXXFLAGS="${CXXFLAGS} -qutf"
6916        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6917/* end confdefs.h.  */
6918const unsigned short hello[] = u"hello";
6919int
6920main ()
6921{
6922
6923  ;
6924  return 0;
6925}
6926_ACEOF
6927if ac_fn_c_try_compile "$LINENO"; then :
6928  U_CHECK_UTF16_STRING=1
6929else
6930  U_CHECK_UTF16_STRING=0
6931fi
6932rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6933        if test "$U_CHECK_UTF16_STRING" = 0; then
6934            CFLAGS="${OLD_CFLAGS}"
6935            CXXFLAGS="${OLD_CXXFLAGS}"
6936        else
6937            CHECK_UTF16_STRING_RESULT="-qutf"
6938        fi
6939    fi
6940    ;;
6941*-*-solaris*)
6942    if test "$GCC" = no; then
6943        OLD_CFLAGS="${CFLAGS}"
6944        OLD_CXXFLAGS="${CXXFLAGS}"
6945        CFLAGS="${CFLAGS} -xustr=ascii_utf16_ushort"
6946        CXXFLAGS="${CXXFLAGS} -xustr=ascii_utf16_ushort"
6947        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6948/* end confdefs.h.  */
6949const unsigned short hello[] = U"hello";
6950int
6951main ()
6952{
6953
6954  ;
6955  return 0;
6956}
6957_ACEOF
6958if ac_fn_c_try_compile "$LINENO"; then :
6959  U_CHECK_UTF16_STRING=1
6960else
6961  U_CHECK_UTF16_STRING=0
6962fi
6963rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6964        if test "$U_CHECK_UTF16_STRING" = 0; then
6965            CFLAGS="${OLD_CFLAGS}"
6966            CXXFLAGS="${OLD_CXXFLAGS}"
6967        else
6968            CHECK_UTF16_STRING_RESULT="-xustr=ascii_utf16_ushort"
6969
6970            # Since we can't detect the availability of this UTF-16 syntax at compile time,
6971            # we depend on configure telling us that we can use it.
6972            # Since we can't ensure ICU users use -xustr=ascii_utf16_ushort,
6973            # we only use this macro within ICU.
6974            # If an ICU user uses icu-config, this feature will be enabled.
6975            CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_CHECK_UTF16_STRING=1"
6976            U_CHECK_UTF16_STRING=0
6977        fi
6978    fi
6979    ;;
6980*-*-hpux*)
6981    if test "$GCC" = no; then
6982        # The option will be detected at compile time without additional compiler options.
6983        CHECK_UTF16_STRING_RESULT="available"
6984    fi
6985    ;;
6986*-*-cygwin)
6987    # wchar_t can be used
6988    CHECK_UTF16_STRING_RESULT="available"
6989    ;;
6990*)
6991    ;;
6992esac
6993
6994# GCC >= 4.4 supports UTF16 string literals. The CFLAGS and CXXFLAGS may change in the future.
6995if test "$CHECK_UTF16_STRING_RESULT" = "unknown"; then
6996    if test "$GCC" = yes; then
6997        OLD_CFLAGS="${CFLAGS}"
6998        CFLAGS="${CFLAGS} -std=gnu99"
6999        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7000/* end confdefs.h.  */
7001
7002static const char16_t test[] = u"This is a UTF16 literal string.";
7003
7004int
7005main ()
7006{
7007
7008  ;
7009  return 0;
7010}
7011_ACEOF
7012if ac_fn_c_try_compile "$LINENO"; then :
7013  CC_UTF16_STRING=1
7014else
7015  CC_UTF16_STRING=0
7016fi
7017rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7018        if test "$CC_UTF16_STRING" = 1; then
7019            CHECK_UTF16_STRING_RESULT="C only";
7020        else
7021            CFLAGS="${OLD_CFLAGS}"
7022        fi
7023    fi
7024    if test "$GXX" = yes; then
7025        OLD_CXXFLAGS="${CXXFLAGS}"
7026        # -Wno-return-type-c-linkage is desired so that stable ICU API is not warned about.
7027        CXXFLAGS="${CXXFLAGS} -std=c++11"
7028        ac_ext=cpp
7029ac_cpp='$CXXCPP $CPPFLAGS'
7030ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7031ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7032ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7033
7034        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7035/* end confdefs.h.  */
7036
7037static const char16_t test[] = u"This is a UTF16 literal string.";
7038
7039int
7040main ()
7041{
7042
7043  ;
7044  return 0;
7045}
7046_ACEOF
7047if ac_fn_cxx_try_compile "$LINENO"; then :
7048  CXX_UTF16_STRING=1
7049else
7050  CXX_UTF16_STRING=0
7051fi
7052rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7053        ac_ext=c
7054ac_cpp='$CPP $CPPFLAGS'
7055ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7056ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7057ac_compiler_gnu=$ac_cv_c_compiler_gnu
7058
7059        if test "$CXX_UTF16_STRING" = 1; then
7060            if test "$CC_UTF16_STRING" = 1; then
7061                CHECK_UTF16_STRING_RESULT="available";
7062            else
7063                CHECK_UTF16_STRING_RESULT="C++ only";
7064            fi
7065        else
7066            CXXFLAGS="${OLD_CXXFLAGS}"
7067        fi
7068    fi
7069fi
7070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_UTF16_STRING_RESULT" >&5
7071$as_echo "$CHECK_UTF16_STRING_RESULT" >&6; }
7072
7073# Enable/disable extras
7074# Check whether --enable-extras was given.
7075if test "${enable_extras+set}" = set; then :
7076  enableval=$enable_extras; case "${enableval}" in
7077		yes) extras=true ;;
7078		no)  extras=false ;;
7079		*) as_fn_error $? "bad value ${enableval} for --enable-extras" "$LINENO" 5 ;;
7080		esac
7081else
7082  extras=true
7083fi
7084
7085
7086if test "$extras" = true; then
7087  EXTRAS_TRUE=
7088else
7089  EXTRAS_TRUE='#'
7090fi
7091# Check whether --enable-icuio was given.
7092if test "${enable_icuio+set}" = set; then :
7093  enableval=$enable_icuio; case "${enableval}" in
7094		yes) icuio=true ;;
7095		no)  icuio=false ;;
7096		*) as_fn_error $? "bad value ${enableval} for --enable-icuio" "$LINENO" 5 ;;
7097		esac
7098else
7099  icuio=true
7100fi
7101
7102
7103if test "$icuio" = true; then
7104  ICUIO_TRUE=
7105else
7106  ICUIO_TRUE='#'
7107fi
7108
7109# Enable/disable layout
7110# Check whether --enable-layout was given.
7111if test "${enable_layout+set}" = set; then :
7112  enableval=$enable_layout; case "${enableval}" in
7113		yes) layout=true ;;
7114		no)  layout=false ;;
7115		*) as_fn_error $? "bad value ${enableval} for --enable-layout" "$LINENO" 5 ;;
7116		esac
7117else
7118  layout=true
7119fi
7120
7121
7122if test "$layout" = true; then
7123  LAYOUT_TRUE=
7124else
7125  LAYOUT_TRUE='#'
7126fi
7127
7128
7129# Check whether --with-data-packaging was given.
7130if test "${with_data_packaging+set}" = set; then :
7131  withval=$with_data_packaging; case "${withval}" in
7132                files|archive|library) datapackaging=$withval ;;
7133		auto) datapackaging=$withval ;;
7134		common) datapackaging=archive ;;
7135		dll) datapackaging=library ;;
7136		static) datapackaging=static ;;
7137		*) as_fn_error $? "bad value ${withval} for --with-data-packaging" "$LINENO" 5 ;;
7138		esac
7139else
7140  datapackaging=
7141fi
7142
7143
7144# Note:  'thesysconfdir' is an evaluated version, for Man pages, so also for thedatadir, thelibdir, etc..
7145# thesysconfdir=`eval echo $sysconfdir`
7146thedatadir=`eval echo $datadir`
7147# 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}.
7148pkgicudatadir=$datadir
7149thepkgicudatadir=$thedatadir
7150
7151
7152
7153
7154if test x"$datapackaging" = x -o x"$datapackaging" = xauto; then
7155	# default to library
7156	datapackaging=library
7157	if test "$ENABLE_STATIC" = "YES"; then
7158		if test "$ENABLE_SHARED" != "YES"; then
7159			datapackaging=static
7160		fi
7161	fi
7162fi
7163
7164datapackaging_dir=`eval echo $thedatadir`"/icu/${VERSION}"
7165
7166datapackaging_msg="(No explaination for mode $datapackaging.)"
7167
7168datapackaging_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."
7169datapackaging_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."
7170datapackaging_howfound="(unknown)"
7171
7172case "$datapackaging" in
7173    files)
7174    DATA_PACKAGING_MODE=files
7175    datapackaging_msg="ICU data will be stored in individual files."
7176    datapackaging_howfound="$datapackaging_msg_path"
7177    ;;
7178    archive)
7179    DATA_PACKAGING_MODE=common
7180    datapackaging_msg="ICU data will be stored in a single .dat file."
7181    datapackaging_howfound="$datapackaging_msg_path"
7182    ;;
7183    library)
7184    DATA_PACKAGING_MODE=dll
7185    datapackaging_msg="ICU data will be linked with ICU."
7186    if test "$ENABLE_STATIC" = "YES"; then
7187        datapackaging_msg="$datapackaging_msg A static data library will be built. "
7188    fi
7189    if test "$ENABLE_SHARED" = "YES"; then
7190        datapackaging_msg="$datapackaging_msg A shared data library will be built. "
7191    fi
7192    datapackaging_howfound="$datapackaging_msg_set"
7193    ;;
7194    static)
7195    DATA_PACKAGING_MODE=static
7196    datapackaging_msg="ICU data will be stored in a static library."
7197    datapackaging_howfound="$datapackaging_msg_set"
7198    ;;
7199esac
7200
7201
7202# Sets a library suffix
7203{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a library suffix to use" >&5
7204$as_echo_n "checking for a library suffix to use... " >&6; }
7205
7206# Check whether --with-library-suffix was given.
7207if test "${with_library_suffix+set}" = set; then :
7208  withval=$with_library_suffix; ICULIBSUFFIX="${withval}"
7209else
7210  ICULIBSUFFIX=
7211fi
7212
7213msg=$ICULIBSUFFIX
7214if test "$msg" = ""; then
7215    msg=none
7216fi
7217{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg" >&5
7218$as_echo "$msg" >&6; }
7219
7220if test "$ICULIBSUFFIX" != ""
7221then
7222    U_HAVE_LIB_SUFFIX=1
7223    ICULIBSUFFIXCNAME=`echo _$ICULIBSUFFIX | sed 's/^A-Za-z0-9_/_/g'`
7224    UCONFIG_CPPFLAGS="${UCONFIG_CPPFLAGS} -DU_HAVE_LIB_SUFFIX=1 -DU_LIB_SUFFIX_C_NAME=${ICULIBSUFFIXCNAME} "
7225else
7226    U_HAVE_LIB_SUFFIX=0
7227fi
7228
7229
7230
7231# Enable/disable tests
7232# Check whether --enable-tests was given.
7233if test "${enable_tests+set}" = set; then :
7234  enableval=$enable_tests; case "${enableval}" in
7235		yes) tests=true ;;
7236		no)  tests=false ;;
7237		*) as_fn_error $? "bad value ${enableval} for --enable-tests" "$LINENO" 5 ;;
7238		esac
7239else
7240  tests=true
7241fi
7242
7243
7244if test "$tests" = true; then
7245  TESTS_TRUE=
7246else
7247  TESTS_TRUE='#'
7248fi
7249
7250# Enable/disable samples
7251# Check whether --enable-samples was given.
7252if test "${enable_samples+set}" = set; then :
7253  enableval=$enable_samples; case "${enableval}" in
7254		yes) samples=true ;;
7255		no)  samples=false ;;
7256		*) as_fn_error $? "bad value ${enableval} for --enable-samples" "$LINENO" 5 ;;
7257		esac
7258else
7259  samples=true
7260fi
7261
7262
7263if test "$samples" = true; then
7264  SAMPLES_TRUE=
7265else
7266  SAMPLES_TRUE='#'
7267fi
7268
7269ICUDATA_CHAR=$U_ENDIAN_CHAR
7270
7271# Platform-specific Makefile setup
7272# set ICUDATA_CHAR to 'e' for any EBCDIC (which should be big endian) platform.
7273case "${host}" in
7274	*-*-solaris*) 	platform=U_SOLARIS ;;
7275	*-*-linux*|*-*-gnu|*-*-k*bsd*-gnu|*-*-kopensolaris*-gnu)        platform=U_LINUX ;;
7276	*-*-*bsd*|*-*-dragonfly*) 	platform=U_BSD ;;
7277	*-*-aix*) 	platform=U_AIX ;;
7278	*-*-hpux*) 	platform=U_HPUX ;;
7279	*-apple-darwin*|*-apple-rhapsody*)	platform=U_DARWIN ;;
7280	*-*-cygwin*)	platform=U_CYGWIN ;;
7281	*-*-mingw*)	platform=U_MINGW ;;
7282	*-*ibm-openedition*|*-*-os390*)	platform=OS390
7283			if test "${ICU_ENABLE_ASCII_STRINGS}" != "1"; then
7284				ICUDATA_CHAR="e"
7285			fi ;;
7286	*-*-os400*)	platform=OS400
7287			if test "${ICU_ENABLE_ASCII_STRINGS}" != "1"; then
7288				ICUDATA_CHAR="e"
7289			fi ;;
7290	*-*-nto*)	platform=U_QNX ;;
7291	*-dec-osf*) 	platform=U_OSF ;;
7292	*-*-beos)		platform=U_BEOS ;;
7293	*-*-irix*)		platform=U_IRIX ;;
7294	*-ncr-*)		platform=U_MPRAS ;;
7295	*) 		platform=U_UNKNOWN_PLATFORM ;;
7296esac
7297
7298
7299platform_make_fragment_name="$icu_cv_host_frag"
7300platform_make_fragment='$(top_srcdir)/config/'"$platform_make_fragment_name"
7301
7302
7303
7304if test "${FORCE_LIBS}" != ""; then
7305   echo " *** Overriding automatically chosen LIBS=$LIBS, using instead FORCE_LIBS=${FORCE_LIBS}"  1>&6
7306   LIBS=${FORCE_LIBS}
7307fi
7308
7309# Now that we're done using CPPFLAGS etc. for tests, we can change it
7310# for build.
7311
7312CPPFLAGS="$CPPFLAGS \$(THREADSCPPFLAGS)"
7313CFLAGS="$CFLAGS \$(THREADSCFLAGS)"
7314CXXFLAGS="$CXXFLAGS \$(THREADSCXXFLAGS)"
7315
7316
7317
7318
7319# append all config cppflags
7320CPPFLAGS="$CPPFLAGS $CONFIG_CPPFLAGS $UCONFIG_CPPFLAGS"
7321
7322echo "CPPFLAGS=$CPPFLAGS"
7323echo "CFLAGS=$CFLAGS"
7324echo "CXXFLAGS=$CXXFLAGS"
7325
7326
7327# output the Makefiles
7328ac_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"
7329
7330cat >confcache <<\_ACEOF
7331# This file is a shell script that caches the results of configure
7332# tests run on this system so they can be shared between configure
7333# scripts and configure runs, see configure's option --config-cache.
7334# It is not useful on other systems.  If it contains results you don't
7335# want to keep, you may remove or edit it.
7336#
7337# config.status only pays attention to the cache file if you give it
7338# the --recheck option to rerun configure.
7339#
7340# `ac_cv_env_foo' variables (set or unset) will be overridden when
7341# loading this file, other *unset* `ac_cv_foo' will be assigned the
7342# following values.
7343
7344_ACEOF
7345
7346# The following way of writing the cache mishandles newlines in values,
7347# but we know of no workaround that is simple, portable, and efficient.
7348# So, we kill variables containing newlines.
7349# Ultrix sh set writes to stderr and can't be redirected directly,
7350# and sets the high bit in the cache file unless we assign to the vars.
7351(
7352  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
7353    eval ac_val=\$$ac_var
7354    case $ac_val in #(
7355    *${as_nl}*)
7356      case $ac_var in #(
7357      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
7358$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7359      esac
7360      case $ac_var in #(
7361      _ | IFS | as_nl) ;; #(
7362      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
7363      *) { eval $ac_var=; unset $ac_var;} ;;
7364      esac ;;
7365    esac
7366  done
7367
7368  (set) 2>&1 |
7369    case $as_nl`(ac_space=' '; set) 2>&1` in #(
7370    *${as_nl}ac_space=\ *)
7371      # `set' does not quote correctly, so add quotes: double-quote
7372      # substitution turns \\\\ into \\, and sed turns \\ into \.
7373      sed -n \
7374	"s/'/'\\\\''/g;
7375	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7376      ;; #(
7377    *)
7378      # `set' quotes correctly as required by POSIX, so do not add quotes.
7379      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
7380      ;;
7381    esac |
7382    sort
7383) |
7384  sed '
7385     /^ac_cv_env_/b end
7386     t clear
7387     :clear
7388     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7389     t end
7390     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7391     :end' >>confcache
7392if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
7393  if test -w "$cache_file"; then
7394    if test "x$cache_file" != "x/dev/null"; then
7395      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
7396$as_echo "$as_me: updating cache $cache_file" >&6;}
7397      if test ! -f "$cache_file" || test -h "$cache_file"; then
7398	cat confcache >"$cache_file"
7399      else
7400        case $cache_file in #(
7401        */* | ?:*)
7402	  mv -f confcache "$cache_file"$$ &&
7403	  mv -f "$cache_file"$$ "$cache_file" ;; #(
7404        *)
7405	  mv -f confcache "$cache_file" ;;
7406	esac
7407      fi
7408    fi
7409  else
7410    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
7411$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
7412  fi
7413fi
7414rm -f confcache
7415
7416test "x$prefix" = xNONE && prefix=$ac_default_prefix
7417# Let make expand exec_prefix.
7418test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7419
7420# Transform confdefs.h into DEFS.
7421# Protect against shell expansion while executing Makefile rules.
7422# Protect against Makefile macro expansion.
7423#
7424# If the first sed substitution is executed (which looks for macros that
7425# take arguments), then branch to the quote section.  Otherwise,
7426# look for a macro that doesn't take arguments.
7427ac_script='
7428:mline
7429/\\$/{
7430 N
7431 s,\\\n,,
7432 b mline
7433}
7434t clear
7435:clear
7436s/^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*([^)]*)\)[	 ]*\(.*\)/-D\1=\2/g
7437t quote
7438s/^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)/-D\1=\2/g
7439t quote
7440b any
7441:quote
7442s/[	 `~#$^&*(){}\\|;'\''"<>?]/\\&/g
7443s/\[/\\&/g
7444s/\]/\\&/g
7445s/\$/$$/g
7446H
7447:any
7448${
7449	g
7450	s/^\n//
7451	s/\n/ /g
7452	p
7453}
7454'
7455DEFS=`sed -n "$ac_script" confdefs.h`
7456
7457
7458ac_libobjs=
7459ac_ltlibobjs=
7460U=
7461for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7462  # 1. Remove the extension, and $U if already installed.
7463  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
7464  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
7465  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
7466  #    will be set to the directory where LIBOBJS objects are built.
7467  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
7468  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
7469done
7470LIBOBJS=$ac_libobjs
7471
7472LTLIBOBJS=$ac_ltlibobjs
7473
7474
7475
7476
7477: "${CONFIG_STATUS=./config.status}"
7478ac_write_fail=0
7479ac_clean_files_save=$ac_clean_files
7480ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7481{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
7482$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
7483as_write_fail=0
7484cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
7485#! $SHELL
7486# Generated by $as_me.
7487# Run this file to recreate the current configuration.
7488# Compiler output produced by configure, useful for debugging
7489# configure, is in config.log if it exists.
7490
7491debug=false
7492ac_cs_recheck=false
7493ac_cs_silent=false
7494
7495SHELL=\${CONFIG_SHELL-$SHELL}
7496export SHELL
7497_ASEOF
7498cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
7499## -------------------- ##
7500## M4sh Initialization. ##
7501## -------------------- ##
7502
7503# Be more Bourne compatible
7504DUALCASE=1; export DUALCASE # for MKS sh
7505if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
7506  emulate sh
7507  NULLCMD=:
7508  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
7509  # is contrary to our usage.  Disable this feature.
7510  alias -g '${1+"$@"}'='"$@"'
7511  setopt NO_GLOB_SUBST
7512else
7513  case `(set -o) 2>/dev/null` in #(
7514  *posix*) :
7515    set -o posix ;; #(
7516  *) :
7517     ;;
7518esac
7519fi
7520
7521
7522as_nl='
7523'
7524export as_nl
7525# Printing a long string crashes Solaris 7 /usr/bin/printf.
7526as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7527as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
7528as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
7529# Prefer a ksh shell builtin over an external printf program on Solaris,
7530# but without wasting forks for bash or zsh.
7531if test -z "$BASH_VERSION$ZSH_VERSION" \
7532    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
7533  as_echo='print -r --'
7534  as_echo_n='print -rn --'
7535elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
7536  as_echo='printf %s\n'
7537  as_echo_n='printf %s'
7538else
7539  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
7540    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
7541    as_echo_n='/usr/ucb/echo -n'
7542  else
7543    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
7544    as_echo_n_body='eval
7545      arg=$1;
7546      case $arg in #(
7547      *"$as_nl"*)
7548	expr "X$arg" : "X\\(.*\\)$as_nl";
7549	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
7550      esac;
7551      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
7552    '
7553    export as_echo_n_body
7554    as_echo_n='sh -c $as_echo_n_body as_echo'
7555  fi
7556  export as_echo_body
7557  as_echo='sh -c $as_echo_body as_echo'
7558fi
7559
7560# The user is always right.
7561if test "${PATH_SEPARATOR+set}" != set; then
7562  PATH_SEPARATOR=:
7563  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
7564    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
7565      PATH_SEPARATOR=';'
7566  }
7567fi
7568
7569
7570# IFS
7571# We need space, tab and new line, in precisely that order.  Quoting is
7572# there to prevent editors from complaining about space-tab.
7573# (If _AS_PATH_WALK were called with IFS unset, it would disable word
7574# splitting by setting IFS to empty value.)
7575IFS=" ""	$as_nl"
7576
7577# Find who we are.  Look in the path if we contain no directory separator.
7578as_myself=
7579case $0 in #((
7580  *[\\/]* ) as_myself=$0 ;;
7581  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7582for as_dir in $PATH
7583do
7584  IFS=$as_save_IFS
7585  test -z "$as_dir" && as_dir=.
7586    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7587  done
7588IFS=$as_save_IFS
7589
7590     ;;
7591esac
7592# We did not find ourselves, most probably we were run as `sh COMMAND'
7593# in which case we are not to be found in the path.
7594if test "x$as_myself" = x; then
7595  as_myself=$0
7596fi
7597if test ! -f "$as_myself"; then
7598  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7599  exit 1
7600fi
7601
7602# Unset variables that we do not need and which cause bugs (e.g. in
7603# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
7604# suppresses any "Segmentation fault" message there.  '((' could
7605# trigger a bug in pdksh 5.2.14.
7606for as_var in BASH_ENV ENV MAIL MAILPATH
7607do eval test x\${$as_var+set} = xset \
7608  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
7609done
7610PS1='$ '
7611PS2='> '
7612PS4='+ '
7613
7614# NLS nuisances.
7615LC_ALL=C
7616export LC_ALL
7617LANGUAGE=C
7618export LANGUAGE
7619
7620# CDPATH.
7621(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
7622
7623
7624# as_fn_error STATUS ERROR [LINENO LOG_FD]
7625# ----------------------------------------
7626# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
7627# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
7628# script with STATUS, using 1 if that was 0.
7629as_fn_error ()
7630{
7631  as_status=$1; test $as_status -eq 0 && as_status=1
7632  if test "$4"; then
7633    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
7634    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
7635  fi
7636  $as_echo "$as_me: error: $2" >&2
7637  as_fn_exit $as_status
7638} # as_fn_error
7639
7640
7641# as_fn_set_status STATUS
7642# -----------------------
7643# Set $? to STATUS, without forking.
7644as_fn_set_status ()
7645{
7646  return $1
7647} # as_fn_set_status
7648
7649# as_fn_exit STATUS
7650# -----------------
7651# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
7652as_fn_exit ()
7653{
7654  set +e
7655  as_fn_set_status $1
7656  exit $1
7657} # as_fn_exit
7658
7659# as_fn_unset VAR
7660# ---------------
7661# Portably unset VAR.
7662as_fn_unset ()
7663{
7664  { eval $1=; unset $1;}
7665}
7666as_unset=as_fn_unset
7667# as_fn_append VAR VALUE
7668# ----------------------
7669# Append the text in VALUE to the end of the definition contained in VAR. Take
7670# advantage of any shell optimizations that allow amortized linear growth over
7671# repeated appends, instead of the typical quadratic growth present in naive
7672# implementations.
7673if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
7674  eval 'as_fn_append ()
7675  {
7676    eval $1+=\$2
7677  }'
7678else
7679  as_fn_append ()
7680  {
7681    eval $1=\$$1\$2
7682  }
7683fi # as_fn_append
7684
7685# as_fn_arith ARG...
7686# ------------------
7687# Perform arithmetic evaluation on the ARGs, and store the result in the
7688# global $as_val. Take advantage of shells that can avoid forks. The arguments
7689# must be portable across $(()) and expr.
7690if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
7691  eval 'as_fn_arith ()
7692  {
7693    as_val=$(( $* ))
7694  }'
7695else
7696  as_fn_arith ()
7697  {
7698    as_val=`expr "$@" || test $? -eq 1`
7699  }
7700fi # as_fn_arith
7701
7702
7703if expr a : '\(a\)' >/dev/null 2>&1 &&
7704   test "X`expr 00001 : '.*\(...\)'`" = X001; then
7705  as_expr=expr
7706else
7707  as_expr=false
7708fi
7709
7710if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
7711  as_basename=basename
7712else
7713  as_basename=false
7714fi
7715
7716if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
7717  as_dirname=dirname
7718else
7719  as_dirname=false
7720fi
7721
7722as_me=`$as_basename -- "$0" ||
7723$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7724	 X"$0" : 'X\(//\)$' \| \
7725	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
7726$as_echo X/"$0" |
7727    sed '/^.*\/\([^/][^/]*\)\/*$/{
7728	    s//\1/
7729	    q
7730	  }
7731	  /^X\/\(\/\/\)$/{
7732	    s//\1/
7733	    q
7734	  }
7735	  /^X\/\(\/\).*/{
7736	    s//\1/
7737	    q
7738	  }
7739	  s/.*/./; q'`
7740
7741# Avoid depending upon Character Ranges.
7742as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7743as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7744as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7745as_cr_digits='0123456789'
7746as_cr_alnum=$as_cr_Letters$as_cr_digits
7747
7748ECHO_C= ECHO_N= ECHO_T=
7749case `echo -n x` in #(((((
7750-n*)
7751  case `echo 'xy\c'` in
7752  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
7753  xy)  ECHO_C='\c';;
7754  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
7755       ECHO_T='	';;
7756  esac;;
7757*)
7758  ECHO_N='-n';;
7759esac
7760
7761rm -f conf$$ conf$$.exe conf$$.file
7762if test -d conf$$.dir; then
7763  rm -f conf$$.dir/conf$$.file
7764else
7765  rm -f conf$$.dir
7766  mkdir conf$$.dir 2>/dev/null
7767fi
7768if (echo >conf$$.file) 2>/dev/null; then
7769  if ln -s conf$$.file conf$$ 2>/dev/null; then
7770    as_ln_s='ln -s'
7771    # ... but there are two gotchas:
7772    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
7773    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
7774    # In both cases, we have to default to `cp -p'.
7775    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
7776      as_ln_s='cp -p'
7777  elif ln conf$$.file conf$$ 2>/dev/null; then
7778    as_ln_s=ln
7779  else
7780    as_ln_s='cp -p'
7781  fi
7782else
7783  as_ln_s='cp -p'
7784fi
7785rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
7786rmdir conf$$.dir 2>/dev/null
7787
7788
7789# as_fn_mkdir_p
7790# -------------
7791# Create "$as_dir" as a directory, including parents if necessary.
7792as_fn_mkdir_p ()
7793{
7794
7795  case $as_dir in #(
7796  -*) as_dir=./$as_dir;;
7797  esac
7798  test -d "$as_dir" || eval $as_mkdir_p || {
7799    as_dirs=
7800    while :; do
7801      case $as_dir in #(
7802      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
7803      *) as_qdir=$as_dir;;
7804      esac
7805      as_dirs="'$as_qdir' $as_dirs"
7806      as_dir=`$as_dirname -- "$as_dir" ||
7807$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7808	 X"$as_dir" : 'X\(//\)[^/]' \| \
7809	 X"$as_dir" : 'X\(//\)$' \| \
7810	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
7811$as_echo X"$as_dir" |
7812    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7813	    s//\1/
7814	    q
7815	  }
7816	  /^X\(\/\/\)[^/].*/{
7817	    s//\1/
7818	    q
7819	  }
7820	  /^X\(\/\/\)$/{
7821	    s//\1/
7822	    q
7823	  }
7824	  /^X\(\/\).*/{
7825	    s//\1/
7826	    q
7827	  }
7828	  s/.*/./; q'`
7829      test -d "$as_dir" && break
7830    done
7831    test -z "$as_dirs" || eval "mkdir $as_dirs"
7832  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
7833
7834
7835} # as_fn_mkdir_p
7836if mkdir -p . 2>/dev/null; then
7837  as_mkdir_p='mkdir -p "$as_dir"'
7838else
7839  test -d ./-p && rmdir ./-p
7840  as_mkdir_p=false
7841fi
7842
7843if test -x / >/dev/null 2>&1; then
7844  as_test_x='test -x'
7845else
7846  if ls -dL / >/dev/null 2>&1; then
7847    as_ls_L_option=L
7848  else
7849    as_ls_L_option=
7850  fi
7851  as_test_x='
7852    eval sh -c '\''
7853      if test -d "$1"; then
7854	test -d "$1/.";
7855      else
7856	case $1 in #(
7857	-*)set "./$1";;
7858	esac;
7859	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
7860	???[sx]*):;;*)false;;esac;fi
7861    '\'' sh
7862  '
7863fi
7864as_executable_p=$as_test_x
7865
7866# Sed expression to map a string onto a valid CPP name.
7867as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7868
7869# Sed expression to map a string onto a valid variable name.
7870as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7871
7872
7873exec 6>&1
7874## ----------------------------------- ##
7875## Main body of $CONFIG_STATUS script. ##
7876## ----------------------------------- ##
7877_ASEOF
7878test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
7879
7880cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7881# Save the log message, to keep $0 and so on meaningful, and to
7882# report actual input values of CONFIG_FILES etc. instead of their
7883# values after options handling.
7884ac_log="
7885This file was extended by $as_me, which was
7886generated by GNU Autoconf 2.68.  Invocation command line was
7887
7888  CONFIG_FILES    = $CONFIG_FILES
7889  CONFIG_HEADERS  = $CONFIG_HEADERS
7890  CONFIG_LINKS    = $CONFIG_LINKS
7891  CONFIG_COMMANDS = $CONFIG_COMMANDS
7892  $ $0 $@
7893
7894on `(hostname || uname -n) 2>/dev/null | sed 1q`
7895"
7896
7897_ACEOF
7898
7899case $ac_config_files in *"
7900"*) set x $ac_config_files; shift; ac_config_files=$*;;
7901esac
7902
7903
7904
7905cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7906# Files that config.status was made for.
7907config_files="$ac_config_files"
7908
7909_ACEOF
7910
7911cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7912ac_cs_usage="\
7913\`$as_me' instantiates files and other configuration actions
7914from templates according to the current configuration.  Unless the files
7915and actions are specified as TAGs, all are instantiated by default.
7916
7917Usage: $0 [OPTION]... [TAG]...
7918
7919  -h, --help       print this help, then exit
7920  -V, --version    print version number and configuration settings, then exit
7921      --config     print configuration, then exit
7922  -q, --quiet, --silent
7923                   do not print progress messages
7924  -d, --debug      don't remove temporary files
7925      --recheck    update $as_me by reconfiguring in the same conditions
7926      --file=FILE[:TEMPLATE]
7927                   instantiate the configuration file FILE
7928
7929Configuration files:
7930$config_files
7931
7932Report bugs to the package provider."
7933
7934_ACEOF
7935cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7936ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
7937ac_cs_version="\\
7938config.status
7939configured by $0, generated by GNU Autoconf 2.68,
7940  with options \\"\$ac_cs_config\\"
7941
7942Copyright (C) 2010 Free Software Foundation, Inc.
7943This config.status script is free software; the Free Software Foundation
7944gives unlimited permission to copy, distribute and modify it."
7945
7946ac_pwd='$ac_pwd'
7947srcdir='$srcdir'
7948INSTALL='$INSTALL'
7949test -n "\$AWK" || AWK=awk
7950_ACEOF
7951
7952cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7953# The default lists apply if the user does not specify any file.
7954ac_need_defaults=:
7955while test $# != 0
7956do
7957  case $1 in
7958  --*=?*)
7959    ac_option=`expr "X$1" : 'X\([^=]*\)='`
7960    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
7961    ac_shift=:
7962    ;;
7963  --*=)
7964    ac_option=`expr "X$1" : 'X\([^=]*\)='`
7965    ac_optarg=
7966    ac_shift=:
7967    ;;
7968  *)
7969    ac_option=$1
7970    ac_optarg=$2
7971    ac_shift=shift
7972    ;;
7973  esac
7974
7975  case $ac_option in
7976  # Handling of the options.
7977  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7978    ac_cs_recheck=: ;;
7979  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
7980    $as_echo "$ac_cs_version"; exit ;;
7981  --config | --confi | --conf | --con | --co | --c )
7982    $as_echo "$ac_cs_config"; exit ;;
7983  --debug | --debu | --deb | --de | --d | -d )
7984    debug=: ;;
7985  --file | --fil | --fi | --f )
7986    $ac_shift
7987    case $ac_optarg in
7988    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7989    '') as_fn_error $? "missing file argument" ;;
7990    esac
7991    as_fn_append CONFIG_FILES " '$ac_optarg'"
7992    ac_need_defaults=false;;
7993  --he | --h |  --help | --hel | -h )
7994    $as_echo "$ac_cs_usage"; exit ;;
7995  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7996  | -silent | --silent | --silen | --sile | --sil | --si | --s)
7997    ac_cs_silent=: ;;
7998
7999  # This is an error.
8000  -*) as_fn_error $? "unrecognized option: \`$1'
8001Try \`$0 --help' for more information." ;;
8002
8003  *) as_fn_append ac_config_targets " $1"
8004     ac_need_defaults=false ;;
8005
8006  esac
8007  shift
8008done
8009
8010ac_configure_extra_args=
8011
8012if $ac_cs_silent; then
8013  exec 6>/dev/null
8014  ac_configure_extra_args="$ac_configure_extra_args --silent"
8015fi
8016
8017_ACEOF
8018cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8019if \$ac_cs_recheck; then
8020  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8021  shift
8022  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
8023  CONFIG_SHELL='$SHELL'
8024  export CONFIG_SHELL
8025  exec "\$@"
8026fi
8027
8028_ACEOF
8029cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8030exec 5>>config.log
8031{
8032  echo
8033  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8034## Running $as_me. ##
8035_ASBOX
8036  $as_echo "$ac_log"
8037} >&5
8038
8039_ACEOF
8040cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8041_ACEOF
8042
8043cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8044
8045# Handling of arguments.
8046for ac_config_target in $ac_config_targets
8047do
8048  case $ac_config_target in
8049    "icudefs.mk") CONFIG_FILES="$CONFIG_FILES icudefs.mk" ;;
8050    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
8051    "data/pkgdataMakefile") CONFIG_FILES="$CONFIG_FILES data/pkgdataMakefile" ;;
8052    "config/Makefile.inc") CONFIG_FILES="$CONFIG_FILES config/Makefile.inc" ;;
8053    "config/icu.pc") CONFIG_FILES="$CONFIG_FILES config/icu.pc" ;;
8054    "config/pkgdataMakefile") CONFIG_FILES="$CONFIG_FILES config/pkgdataMakefile" ;;
8055    "data/Makefile") CONFIG_FILES="$CONFIG_FILES data/Makefile" ;;
8056    "stubdata/Makefile") CONFIG_FILES="$CONFIG_FILES stubdata/Makefile" ;;
8057    "common/Makefile") CONFIG_FILES="$CONFIG_FILES common/Makefile" ;;
8058    "i18n/Makefile") CONFIG_FILES="$CONFIG_FILES i18n/Makefile" ;;
8059    "layout/Makefile") CONFIG_FILES="$CONFIG_FILES layout/Makefile" ;;
8060    "layoutex/Makefile") CONFIG_FILES="$CONFIG_FILES layoutex/Makefile" ;;
8061    "io/Makefile") CONFIG_FILES="$CONFIG_FILES io/Makefile" ;;
8062    "extra/Makefile") CONFIG_FILES="$CONFIG_FILES extra/Makefile" ;;
8063    "extra/uconv/Makefile") CONFIG_FILES="$CONFIG_FILES extra/uconv/Makefile" ;;
8064    "extra/uconv/pkgdataMakefile") CONFIG_FILES="$CONFIG_FILES extra/uconv/pkgdataMakefile" ;;
8065    "extra/scrptrun/Makefile") CONFIG_FILES="$CONFIG_FILES extra/scrptrun/Makefile" ;;
8066    "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
8067    "tools/ctestfw/Makefile") CONFIG_FILES="$CONFIG_FILES tools/ctestfw/Makefile" ;;
8068    "tools/toolutil/Makefile") CONFIG_FILES="$CONFIG_FILES tools/toolutil/Makefile" ;;
8069    "tools/makeconv/Makefile") CONFIG_FILES="$CONFIG_FILES tools/makeconv/Makefile" ;;
8070    "tools/genrb/Makefile") CONFIG_FILES="$CONFIG_FILES tools/genrb/Makefile" ;;
8071    "tools/genccode/Makefile") CONFIG_FILES="$CONFIG_FILES tools/genccode/Makefile" ;;
8072    "tools/gencmn/Makefile") CONFIG_FILES="$CONFIG_FILES tools/gencmn/Makefile" ;;
8073    "tools/gencnval/Makefile") CONFIG_FILES="$CONFIG_FILES tools/gencnval/Makefile" ;;
8074    "tools/gendict/Makefile") CONFIG_FILES="$CONFIG_FILES tools/gendict/Makefile" ;;
8075    "tools/gentest/Makefile") CONFIG_FILES="$CONFIG_FILES tools/gentest/Makefile" ;;
8076    "tools/gennorm2/Makefile") CONFIG_FILES="$CONFIG_FILES tools/gennorm2/Makefile" ;;
8077    "tools/genbrk/Makefile") CONFIG_FILES="$CONFIG_FILES tools/genbrk/Makefile" ;;
8078    "tools/gensprep/Makefile") CONFIG_FILES="$CONFIG_FILES tools/gensprep/Makefile" ;;
8079    "tools/icuinfo/Makefile") CONFIG_FILES="$CONFIG_FILES tools/icuinfo/Makefile" ;;
8080    "tools/icupkg/Makefile") CONFIG_FILES="$CONFIG_FILES tools/icupkg/Makefile" ;;
8081    "tools/icuswap/Makefile") CONFIG_FILES="$CONFIG_FILES tools/icuswap/Makefile" ;;
8082    "tools/pkgdata/Makefile") CONFIG_FILES="$CONFIG_FILES tools/pkgdata/Makefile" ;;
8083    "tools/tzcode/Makefile") CONFIG_FILES="$CONFIG_FILES tools/tzcode/Makefile" ;;
8084    "tools/gencfu/Makefile") CONFIG_FILES="$CONFIG_FILES tools/gencfu/Makefile" ;;
8085    "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
8086    "test/compat/Makefile") CONFIG_FILES="$CONFIG_FILES test/compat/Makefile" ;;
8087    "test/testdata/Makefile") CONFIG_FILES="$CONFIG_FILES test/testdata/Makefile" ;;
8088    "test/testdata/pkgdataMakefile") CONFIG_FILES="$CONFIG_FILES test/testdata/pkgdataMakefile" ;;
8089    "test/hdrtst/Makefile") CONFIG_FILES="$CONFIG_FILES test/hdrtst/Makefile" ;;
8090    "test/intltest/Makefile") CONFIG_FILES="$CONFIG_FILES test/intltest/Makefile" ;;
8091    "test/cintltst/Makefile") CONFIG_FILES="$CONFIG_FILES test/cintltst/Makefile" ;;
8092    "test/iotest/Makefile") CONFIG_FILES="$CONFIG_FILES test/iotest/Makefile" ;;
8093    "test/letest/Makefile") CONFIG_FILES="$CONFIG_FILES test/letest/Makefile" ;;
8094    "test/perf/Makefile") CONFIG_FILES="$CONFIG_FILES test/perf/Makefile" ;;
8095    "test/perf/collationperf/Makefile") CONFIG_FILES="$CONFIG_FILES test/perf/collationperf/Makefile" ;;
8096    "test/perf/collperf/Makefile") CONFIG_FILES="$CONFIG_FILES test/perf/collperf/Makefile" ;;
8097    "test/perf/dicttrieperf/Makefile") CONFIG_FILES="$CONFIG_FILES test/perf/dicttrieperf/Makefile" ;;
8098    "test/perf/ubrkperf/Makefile") CONFIG_FILES="$CONFIG_FILES test/perf/ubrkperf/Makefile" ;;
8099    "test/perf/charperf/Makefile") CONFIG_FILES="$CONFIG_FILES test/perf/charperf/Makefile" ;;
8100    "test/perf/convperf/Makefile") CONFIG_FILES="$CONFIG_FILES test/perf/convperf/Makefile" ;;
8101    "test/perf/normperf/Makefile") CONFIG_FILES="$CONFIG_FILES test/perf/normperf/Makefile" ;;
8102    "test/perf/DateFmtPerf/Makefile") CONFIG_FILES="$CONFIG_FILES test/perf/DateFmtPerf/Makefile" ;;
8103    "test/perf/howExpensiveIs/Makefile") CONFIG_FILES="$CONFIG_FILES test/perf/howExpensiveIs/Makefile" ;;
8104    "test/perf/strsrchperf/Makefile") CONFIG_FILES="$CONFIG_FILES test/perf/strsrchperf/Makefile" ;;
8105    "test/perf/unisetperf/Makefile") CONFIG_FILES="$CONFIG_FILES test/perf/unisetperf/Makefile" ;;
8106    "test/perf/usetperf/Makefile") CONFIG_FILES="$CONFIG_FILES test/perf/usetperf/Makefile" ;;
8107    "test/perf/ustrperf/Makefile") CONFIG_FILES="$CONFIG_FILES test/perf/ustrperf/Makefile" ;;
8108    "test/perf/utfperf/Makefile") CONFIG_FILES="$CONFIG_FILES test/perf/utfperf/Makefile" ;;
8109    "test/perf/utrie2perf/Makefile") CONFIG_FILES="$CONFIG_FILES test/perf/utrie2perf/Makefile" ;;
8110    "samples/Makefile") CONFIG_FILES="$CONFIG_FILES samples/Makefile" ;;
8111    "samples/date/Makefile") CONFIG_FILES="$CONFIG_FILES samples/date/Makefile" ;;
8112    "samples/cal/Makefile") CONFIG_FILES="$CONFIG_FILES samples/cal/Makefile" ;;
8113    "samples/layout/Makefile") CONFIG_FILES="$CONFIG_FILES samples/layout/Makefile" ;;
8114
8115  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
8116  esac
8117done
8118
8119
8120# If the user did not use the arguments to specify the items to instantiate,
8121# then the envvar interface is used.  Set only those that are not.
8122# We use the long form for the default assignment because of an extremely
8123# bizarre bug on SunOS 4.1.3.
8124if $ac_need_defaults; then
8125  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8126fi
8127
8128# Have a temporary directory for convenience.  Make it in the build tree
8129# simply because there is no reason against having it here, and in addition,
8130# creating and moving files from /tmp can sometimes cause problems.
8131# Hook for its removal unless debugging.
8132# Note that there is a small window in which the directory will not be cleaned:
8133# after its creation but before its name has been assigned to `$tmp'.
8134$debug ||
8135{
8136  tmp= ac_tmp=
8137  trap 'exit_status=$?
8138  : "${ac_tmp:=$tmp}"
8139  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
8140' 0
8141  trap 'as_fn_exit 1' 1 2 13 15
8142}
8143# Create a (secure) tmp directory for tmp files.
8144
8145{
8146  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
8147  test -d "$tmp"
8148}  ||
8149{
8150  tmp=./conf$$-$RANDOM
8151  (umask 077 && mkdir "$tmp")
8152} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
8153ac_tmp=$tmp
8154
8155# Set up the scripts for CONFIG_FILES section.
8156# No need to generate them if there are no CONFIG_FILES.
8157# This happens for instance with `./config.status config.h'.
8158if test -n "$CONFIG_FILES"; then
8159
8160
8161ac_cr=`echo X | tr X '\015'`
8162# On cygwin, bash can eat \r inside `` if the user requested igncr.
8163# But we know of no other shell where ac_cr would be empty at this
8164# point, so we can use a bashism as a fallback.
8165if test "x$ac_cr" = x; then
8166  eval ac_cr=\$\'\\r\'
8167fi
8168ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
8169if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
8170  ac_cs_awk_cr='\\r'
8171else
8172  ac_cs_awk_cr=$ac_cr
8173fi
8174
8175echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
8176_ACEOF
8177
8178
8179{
8180  echo "cat >conf$$subs.awk <<_ACEOF" &&
8181  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
8182  echo "_ACEOF"
8183} >conf$$subs.sh ||
8184  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8185ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
8186ac_delim='%!_!# '
8187for ac_last_try in false false false false false :; do
8188  . ./conf$$subs.sh ||
8189    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8190
8191  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
8192  if test $ac_delim_n = $ac_delim_num; then
8193    break
8194  elif $ac_last_try; then
8195    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8196  else
8197    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8198  fi
8199done
8200rm -f conf$$subs.sh
8201
8202cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8203cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
8204_ACEOF
8205sed -n '
8206h
8207s/^/S["/; s/!.*/"]=/
8208p
8209g
8210s/^[^!]*!//
8211:repl
8212t repl
8213s/'"$ac_delim"'$//
8214t delim
8215:nl
8216h
8217s/\(.\{148\}\)..*/\1/
8218t more1
8219s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
8220p
8221n
8222b repl
8223:more1
8224s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8225p
8226g
8227s/.\{148\}//
8228t nl
8229:delim
8230h
8231s/\(.\{148\}\)..*/\1/
8232t more2
8233s/["\\]/\\&/g; s/^/"/; s/$/"/
8234p
8235b
8236:more2
8237s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8238p
8239g
8240s/.\{148\}//
8241t delim
8242' <conf$$subs.awk | sed '
8243/^[^""]/{
8244  N
8245  s/\n//
8246}
8247' >>$CONFIG_STATUS || ac_write_fail=1
8248rm -f conf$$subs.awk
8249cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8250_ACAWK
8251cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
8252  for (key in S) S_is_set[key] = 1
8253  FS = ""
8254
8255}
8256{
8257  line = $ 0
8258  nfields = split(line, field, "@")
8259  substed = 0
8260  len = length(field[1])
8261  for (i = 2; i < nfields; i++) {
8262    key = field[i]
8263    keylen = length(key)
8264    if (S_is_set[key]) {
8265      value = S[key]
8266      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
8267      len += length(value) + length(field[++i])
8268      substed = 1
8269    } else
8270      len += 1 + keylen
8271  }
8272
8273  print line
8274}
8275
8276_ACAWK
8277_ACEOF
8278cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8279if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
8280  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
8281else
8282  cat
8283fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
8284  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
8285_ACEOF
8286
8287# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
8288# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
8289# trailing colons and then remove the whole line if VPATH becomes empty
8290# (actually we leave an empty line to preserve line numbers).
8291if test "x$srcdir" = x.; then
8292  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
8293h
8294s///
8295s/^/:/
8296s/[	 ]*$/:/
8297s/:\$(srcdir):/:/g
8298s/:\${srcdir}:/:/g
8299s/:@srcdir@:/:/g
8300s/^:*//
8301s/:*$//
8302x
8303s/\(=[	 ]*\).*/\1/
8304G
8305s/\n//
8306s/^[^=]*=[	 ]*$//
8307}'
8308fi
8309
8310cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8311fi # test -n "$CONFIG_FILES"
8312
8313
8314eval set X "  :F $CONFIG_FILES      "
8315shift
8316for ac_tag
8317do
8318  case $ac_tag in
8319  :[FHLC]) ac_mode=$ac_tag; continue;;
8320  esac
8321  case $ac_mode$ac_tag in
8322  :[FHL]*:*);;
8323  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
8324  :[FH]-) ac_tag=-:-;;
8325  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
8326  esac
8327  ac_save_IFS=$IFS
8328  IFS=:
8329  set x $ac_tag
8330  IFS=$ac_save_IFS
8331  shift
8332  ac_file=$1
8333  shift
8334
8335  case $ac_mode in
8336  :L) ac_source=$1;;
8337  :[FH])
8338    ac_file_inputs=
8339    for ac_f
8340    do
8341      case $ac_f in
8342      -) ac_f="$ac_tmp/stdin";;
8343      *) # Look for the file first in the build tree, then in the source tree
8344	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
8345	 # because $ac_f cannot contain `:'.
8346	 test -f "$ac_f" ||
8347	   case $ac_f in
8348	   [\\/$]*) false;;
8349	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
8350	   esac ||
8351	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
8352      esac
8353      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
8354      as_fn_append ac_file_inputs " '$ac_f'"
8355    done
8356
8357    # Let's still pretend it is `configure' which instantiates (i.e., don't
8358    # use $as_me), people would be surprised to read:
8359    #    /* config.h.  Generated by config.status.  */
8360    configure_input='Generated from '`
8361	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
8362	`' by configure.'
8363    if test x"$ac_file" != x-; then
8364      configure_input="$ac_file.  $configure_input"
8365      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
8366$as_echo "$as_me: creating $ac_file" >&6;}
8367    fi
8368    # Neutralize special characters interpreted by sed in replacement strings.
8369    case $configure_input in #(
8370    *\&* | *\|* | *\\* )
8371       ac_sed_conf_input=`$as_echo "$configure_input" |
8372       sed 's/[\\\\&|]/\\\\&/g'`;; #(
8373    *) ac_sed_conf_input=$configure_input;;
8374    esac
8375
8376    case $ac_tag in
8377    *:-:* | *:-) cat >"$ac_tmp/stdin" \
8378      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
8379    esac
8380    ;;
8381  esac
8382
8383  ac_dir=`$as_dirname -- "$ac_file" ||
8384$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8385	 X"$ac_file" : 'X\(//\)[^/]' \| \
8386	 X"$ac_file" : 'X\(//\)$' \| \
8387	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
8388$as_echo X"$ac_file" |
8389    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8390	    s//\1/
8391	    q
8392	  }
8393	  /^X\(\/\/\)[^/].*/{
8394	    s//\1/
8395	    q
8396	  }
8397	  /^X\(\/\/\)$/{
8398	    s//\1/
8399	    q
8400	  }
8401	  /^X\(\/\).*/{
8402	    s//\1/
8403	    q
8404	  }
8405	  s/.*/./; q'`
8406  as_dir="$ac_dir"; as_fn_mkdir_p
8407  ac_builddir=.
8408
8409case "$ac_dir" in
8410.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
8411*)
8412  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
8413  # A ".." for each directory in $ac_dir_suffix.
8414  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
8415  case $ac_top_builddir_sub in
8416  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
8417  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
8418  esac ;;
8419esac
8420ac_abs_top_builddir=$ac_pwd
8421ac_abs_builddir=$ac_pwd$ac_dir_suffix
8422# for backward compatibility:
8423ac_top_builddir=$ac_top_build_prefix
8424
8425case $srcdir in
8426  .)  # We are building in place.
8427    ac_srcdir=.
8428    ac_top_srcdir=$ac_top_builddir_sub
8429    ac_abs_top_srcdir=$ac_pwd ;;
8430  [\\/]* | ?:[\\/]* )  # Absolute name.
8431    ac_srcdir=$srcdir$ac_dir_suffix;
8432    ac_top_srcdir=$srcdir
8433    ac_abs_top_srcdir=$srcdir ;;
8434  *) # Relative name.
8435    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
8436    ac_top_srcdir=$ac_top_build_prefix$srcdir
8437    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
8438esac
8439ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
8440
8441
8442  case $ac_mode in
8443  :F)
8444  #
8445  # CONFIG_FILE
8446  #
8447
8448  case $INSTALL in
8449  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
8450  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
8451  esac
8452_ACEOF
8453
8454cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8455# If the template does not know about datarootdir, expand it.
8456# FIXME: This hack should be removed a few years after 2.60.
8457ac_datarootdir_hack=; ac_datarootdir_seen=
8458ac_sed_dataroot='
8459/datarootdir/ {
8460  p
8461  q
8462}
8463/@datadir@/p
8464/@docdir@/p
8465/@infodir@/p
8466/@localedir@/p
8467/@mandir@/p'
8468case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
8469*datarootdir*) ac_datarootdir_seen=yes;;
8470*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
8471  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
8472$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
8473_ACEOF
8474cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8475  ac_datarootdir_hack='
8476  s&@datadir@&$datadir&g
8477  s&@docdir@&$docdir&g
8478  s&@infodir@&$infodir&g
8479  s&@localedir@&$localedir&g
8480  s&@mandir@&$mandir&g
8481  s&\\\${datarootdir}&$datarootdir&g' ;;
8482esac
8483_ACEOF
8484
8485# Neutralize VPATH when `$srcdir' = `.'.
8486# Shell code in configure.ac might set extrasub.
8487# FIXME: do we really want to maintain this feature?
8488cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8489ac_sed_extra="$ac_vpsub
8490$extrasub
8491_ACEOF
8492cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8493:t
8494/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8495s|@configure_input@|$ac_sed_conf_input|;t t
8496s&@top_builddir@&$ac_top_builddir_sub&;t t
8497s&@top_build_prefix@&$ac_top_build_prefix&;t t
8498s&@srcdir@&$ac_srcdir&;t t
8499s&@abs_srcdir@&$ac_abs_srcdir&;t t
8500s&@top_srcdir@&$ac_top_srcdir&;t t
8501s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
8502s&@builddir@&$ac_builddir&;t t
8503s&@abs_builddir@&$ac_abs_builddir&;t t
8504s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
8505s&@INSTALL@&$ac_INSTALL&;t t
8506$ac_datarootdir_hack
8507"
8508eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
8509  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8510
8511test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
8512  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
8513  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
8514      "$ac_tmp/out"`; test -z "$ac_out"; } &&
8515  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8516which seems to be undefined.  Please make sure it is defined" >&5
8517$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8518which seems to be undefined.  Please make sure it is defined" >&2;}
8519
8520  rm -f "$ac_tmp/stdin"
8521  case $ac_file in
8522  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
8523  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
8524  esac \
8525  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8526 ;;
8527
8528
8529
8530  esac
8531
8532done # for ac_tag
8533
8534
8535as_fn_exit 0
8536_ACEOF
8537ac_clean_files=$ac_clean_files_save
8538
8539test $ac_write_fail = 0 ||
8540  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
8541
8542
8543# configure is writing to config.log, and then calls config.status.
8544# config.status does its own redirection, appending to config.log.
8545# Unfortunately, on DOS this fails, as config.log is still kept open
8546# by configure, so config.status won't be able to write to it; its
8547# output is simply discarded.  So we exec the FD to /dev/null,
8548# effectively closing config.log, so it can be properly (re)opened and
8549# appended to by config.status.  When coming back to configure, we
8550# need to make the FD available again.
8551if test "$no_create" != yes; then
8552  ac_cs_success=:
8553  ac_config_status_args=
8554  test "$silent" = yes &&
8555    ac_config_status_args="$ac_config_status_args --quiet"
8556  exec 5>/dev/null
8557  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8558  exec 5>>config.log
8559  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8560  # would make configure fail if this is the last instruction.
8561  $ac_cs_success || as_fn_exit 1
8562fi
8563if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
8564  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
8565$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
8566fi
8567
8568
8569echo
8570echo "ICU for C/C++ $VERSION is ready to be built."
8571echo "=== Important Notes: ==="
8572
8573echo "Data Packaging: $datapackaging"
8574echo " This means: $datapackaging_msg"
8575echo " To locate data: $datapackaging_howfound"
8576
8577if test -n "`$U_MAKE -v 2>&1 | grep '^GNU Make'`"; then
8578echo "Building ICU: Use a GNU make such as $U_MAKE to build ICU."
8579else
8580echo "** WARNING: $U_MAKE may not be GNU make."
8581echo "This may cause ICU to fail to build. Please make sure that GNU make"
8582echo "is in your PATH so that the configure script can detect its location."
8583fi
8584if test "x$AR" = "xfalse"; then
8585  echo "*** WARNING: Archiver ar not found. Set AR= or fix PATH. Some builds (such as static) may fail."
8586fi
8587
8588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the version of \"$U_MAKE\"" >&5
8589$as_echo_n "checking the version of \"$U_MAKE\"... " >&6; }
8590if "$U_MAKE" -f "$srcdir/config/gmakever.mk" PLATFORM="$platform"; then
8591{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8592$as_echo "ok" >&6; }
8593else
8594{ $as_echo "$as_me:${as_lineno-$LINENO}: result: too old or test failed - try upgrading GNU Make" >&5
8595$as_echo "too old or test failed - try upgrading GNU Make" >&6; }
8596fi
8597
8598if test -n "$UCONFIG_CPPFLAGS"; then
8599   HDRFILE="uconfig.h.prepend"
8600   echo "*** WARNING: You must set the following flags before code compiled against this ICU will function properly:"
8601   echo
8602   echo "   ${UCONFIG_CPPFLAGS}"
8603   echo
8604   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.'
8605   echo "Creating the file ${HDRFILE}"
8606   echo
8607   echo '---------------   ' "${HDRFILE}"
8608   echo > "${HDRFILE}"
8609   echo '/* ICU customizations: put these lines at the top of uconfig.h */' >> "${HDRFILE}"
8610   echo >> "${HDRFILE}"
8611   for flag in ${UCONFIG_CPPFLAGS};
8612   do
8613        echo " /* $flag */" >> "${HDRFILE}"
8614        case "${flag}" in
8615        -D*=*)
8616           \echo "${flag}" | sed -n 's%-D\([^=]*\)=%#define \1 %p' >> "${HDRFILE}"
8617          \echo >> "${HDRFILE}"
8618          ;;
8619        -D*)
8620           \echo "${flag}" | sed -n 's%-D\([^=]*\)%#define \1 %p' >> "${HDRFILE}"
8621          \echo >> "${HDRFILE}"
8622          ;;
8623        *)
8624          \echo "/*  Not sure how to handle this argument: ${flag} */" >> "${HDRFILE}"
8625          \echo >> "${HDRFILE}"
8626          ;;
8627        esac
8628   done
8629   cat "${HDRFILE}"
8630   \echo  "/* End of ${HDRFILE} ------------ */" >> "${HDRFILE}"
8631   echo >> "${HDRFILE}"
8632   echo '--------------- end ' "${HDRFILE}"
8633fi
8634
8635$as_unset _CXX_CXXSUFFIX
8636