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