]> git.saurik.com Git - apple/icu.git/blame - icuSources/configure
ICU-3.13.tar.gz
[apple/icu.git] / icuSources / configure
CommitLineData
b75a7d8f
A
1#! /bin/sh
2
3# Guess values for system-dependent variables and create Makefiles.
4# Generated automatically using autoconf version 2.13
5# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
6#
7# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
9
10# Defaults:
11ac_help=
12ac_default_prefix=/usr/local
13# Any additions from configure.in:
14ac_help="$ac_help
15 --enable-strict compile with strict compiler options [default=no]"
16ac_help="$ac_help
17 --enable-64bit-libs build 64-bit libraries [default=yes]"
18ac_help="$ac_help
19 --enable-hpuxcma build ICU with HPUX CMA threads (only ver>=11) [default=no]"
20ac_help="$ac_help
21 --enable-shared[=PKGS] build shared libraries [default=yes]"
22ac_help="$ac_help
23 --enable-static[=PKGS] build static libraries [default=no]"
24ac_help="$ac_help
25 --enable-renaming add a version suffix to symbols [default=yes]"
26ac_help="$ac_help
27 --enable-rpath use rpath when linking [default is only if necessary]"
28ac_help="$ac_help
29 --enable-threads build ICU with threads [default=yes]"
30ac_help="$ac_help
31 --with-iostream=version specify the version of iostream to use (none, old, std, auto) [default=auto]"
32ac_help="$ac_help
33 --enable-extras build ICU extras [default=yes]"
34ac_help="$ac_help
35 --enable-ustdio build ICU's ustdio library [default=yes]"
36ac_help="$ac_help
37 --enable-layout build ICU's layout library [default=yes]"
38ac_help="$ac_help
39 --with-data-packaging=type specify how to package ICU data (files, archive, library, auto) [default=auto]"
40ac_help="$ac_help
41"
42ac_help="$ac_help
43 --with-library-suffix=suffix tag a suffix to the library names [default=]"
44ac_help="$ac_help
45 --enable-tests build ICU tests [default=yes]"
46ac_help="$ac_help
47 --enable-samples build ICU samples [default=yes]
48Additionally, the variable FORCE_LIBS may be set before calling configure. If set, it will REPLACE any automatic list of libraries."
49
50# Initialize some variables set by options.
51# The variables have the same names as the options, with
52# dashes changed to underlines.
53build=NONE
54cache_file=./config.cache
55exec_prefix=NONE
56host=NONE
57no_create=
58nonopt=NONE
59no_recursion=
60prefix=NONE
61program_prefix=NONE
62program_suffix=NONE
63program_transform_name=s,x,x,
64silent=
65site=
66srcdir=
67target=NONE
68verbose=
69x_includes=NONE
70x_libraries=NONE
71bindir='${exec_prefix}/bin'
72sbindir='${exec_prefix}/sbin'
73libexecdir='${exec_prefix}/libexec'
74datadir='${prefix}/share'
75sysconfdir='${prefix}/etc'
76sharedstatedir='${prefix}/com'
77localstatedir='${prefix}/var'
78libdir='${exec_prefix}/lib'
79includedir='${prefix}/include'
80oldincludedir='/usr/include'
81infodir='${prefix}/info'
82mandir='${prefix}/man'
83
84# Initialize some other variables.
85subdirs=
86MFLAGS= MAKEFLAGS=
87SHELL=${CONFIG_SHELL-/bin/sh}
88# Maximum number of lines to put in a shell here document.
89ac_max_here_lines=12
90
91ac_prev=
92for ac_option
93do
94
95 # If the previous option needs an argument, assign it.
96 if test -n "$ac_prev"; then
97 eval "$ac_prev=\$ac_option"
98 ac_prev=
99 continue
100 fi
101
102 case "$ac_option" in
103 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
104 *) ac_optarg= ;;
105 esac
106
107 # Accept the important Cygnus configure options, so we can diagnose typos.
108
109 case "$ac_option" in
110
111 -bindir | --bindir | --bindi | --bind | --bin | --bi)
112 ac_prev=bindir ;;
113 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
114 bindir="$ac_optarg" ;;
115
116 -build | --build | --buil | --bui | --bu)
117 ac_prev=build ;;
118 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
119 build="$ac_optarg" ;;
120
121 -cache-file | --cache-file | --cache-fil | --cache-fi \
122 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
123 ac_prev=cache_file ;;
124 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
125 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
126 cache_file="$ac_optarg" ;;
127
128 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
129 ac_prev=datadir ;;
130 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
131 | --da=*)
132 datadir="$ac_optarg" ;;
133
134 -disable-* | --disable-*)
135 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
136 # Reject names that are not valid shell variable names.
137 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
138 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
139 fi
140 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
141 eval "enable_${ac_feature}=no" ;;
142
143 -enable-* | --enable-*)
144 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
145 # Reject names that are not valid shell variable names.
146 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
147 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
148 fi
149 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
150 case "$ac_option" in
151 *=*) ;;
152 *) ac_optarg=yes ;;
153 esac
154 eval "enable_${ac_feature}='$ac_optarg'" ;;
155
156 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
157 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
158 | --exec | --exe | --ex)
159 ac_prev=exec_prefix ;;
160 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
161 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
162 | --exec=* | --exe=* | --ex=*)
163 exec_prefix="$ac_optarg" ;;
164
165 -gas | --gas | --ga | --g)
166 # Obsolete; use --with-gas.
167 with_gas=yes ;;
168
169 -help | --help | --hel | --he)
170 # Omit some internal or obsolete options to make the list less imposing.
171 # This message is too long to be a string in the A/UX 3.1 sh.
172 cat << EOF
173Usage: configure [options] [host]
174Options: [defaults in brackets after descriptions]
175Configuration:
176 --cache-file=FILE cache test results in FILE
177 --help print this message
178 --no-create do not create output files
179 --quiet, --silent do not print \`checking...' messages
180 --version print the version of autoconf that created configure
181Directory and file names:
182 --prefix=PREFIX install architecture-independent files in PREFIX
183 [$ac_default_prefix]
184 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
185 [same as prefix]
186 --bindir=DIR user executables in DIR [EPREFIX/bin]
187 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
188 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
189 --datadir=DIR read-only architecture-independent data in DIR
190 [PREFIX/share]
191 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
192 --sharedstatedir=DIR modifiable architecture-independent data in DIR
193 [PREFIX/com]
194 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
195 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
196 --includedir=DIR C header files in DIR [PREFIX/include]
197 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
198 --infodir=DIR info documentation in DIR [PREFIX/info]
199 --mandir=DIR man documentation in DIR [PREFIX/man]
200 --srcdir=DIR find the sources in DIR [configure dir or ..]
201 --program-prefix=PREFIX prepend PREFIX to installed program names
202 --program-suffix=SUFFIX append SUFFIX to installed program names
203 --program-transform-name=PROGRAM
204 run sed PROGRAM on installed program names
205EOF
206 cat << EOF
207Host type:
208 --build=BUILD configure for building on BUILD [BUILD=HOST]
209 --host=HOST configure for HOST [guessed]
210 --target=TARGET configure for TARGET [TARGET=HOST]
211Features and packages:
212 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
213 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
214 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
215 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
216 --x-includes=DIR X include files are in DIR
217 --x-libraries=DIR X library files are in DIR
218EOF
219 if test -n "$ac_help"; then
220 echo "--enable and --with options recognized:$ac_help"
221 fi
222 exit 0 ;;
223
224 -host | --host | --hos | --ho)
225 ac_prev=host ;;
226 -host=* | --host=* | --hos=* | --ho=*)
227 host="$ac_optarg" ;;
228
229 -includedir | --includedir | --includedi | --included | --include \
230 | --includ | --inclu | --incl | --inc)
231 ac_prev=includedir ;;
232 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
233 | --includ=* | --inclu=* | --incl=* | --inc=*)
234 includedir="$ac_optarg" ;;
235
236 -infodir | --infodir | --infodi | --infod | --info | --inf)
237 ac_prev=infodir ;;
238 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
239 infodir="$ac_optarg" ;;
240
241 -libdir | --libdir | --libdi | --libd)
242 ac_prev=libdir ;;
243 -libdir=* | --libdir=* | --libdi=* | --libd=*)
244 libdir="$ac_optarg" ;;
245
246 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
247 | --libexe | --libex | --libe)
248 ac_prev=libexecdir ;;
249 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
250 | --libexe=* | --libex=* | --libe=*)
251 libexecdir="$ac_optarg" ;;
252
253 -localstatedir | --localstatedir | --localstatedi | --localstated \
254 | --localstate | --localstat | --localsta | --localst \
255 | --locals | --local | --loca | --loc | --lo)
256 ac_prev=localstatedir ;;
257 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
258 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
259 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
260 localstatedir="$ac_optarg" ;;
261
262 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
263 ac_prev=mandir ;;
264 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
265 mandir="$ac_optarg" ;;
266
267 -nfp | --nfp | --nf)
268 # Obsolete; use --without-fp.
269 with_fp=no ;;
270
271 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
272 | --no-cr | --no-c)
273 no_create=yes ;;
274
275 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
276 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
277 no_recursion=yes ;;
278
279 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
280 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
281 | --oldin | --oldi | --old | --ol | --o)
282 ac_prev=oldincludedir ;;
283 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
284 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
285 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
286 oldincludedir="$ac_optarg" ;;
287
288 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
289 ac_prev=prefix ;;
290 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
291 prefix="$ac_optarg" ;;
292
293 -program-prefix | --program-prefix | --program-prefi | --program-pref \
294 | --program-pre | --program-pr | --program-p)
295 ac_prev=program_prefix ;;
296 -program-prefix=* | --program-prefix=* | --program-prefi=* \
297 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
298 program_prefix="$ac_optarg" ;;
299
300 -program-suffix | --program-suffix | --program-suffi | --program-suff \
301 | --program-suf | --program-su | --program-s)
302 ac_prev=program_suffix ;;
303 -program-suffix=* | --program-suffix=* | --program-suffi=* \
304 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
305 program_suffix="$ac_optarg" ;;
306
307 -program-transform-name | --program-transform-name \
308 | --program-transform-nam | --program-transform-na \
309 | --program-transform-n | --program-transform- \
310 | --program-transform | --program-transfor \
311 | --program-transfo | --program-transf \
312 | --program-trans | --program-tran \
313 | --progr-tra | --program-tr | --program-t)
314 ac_prev=program_transform_name ;;
315 -program-transform-name=* | --program-transform-name=* \
316 | --program-transform-nam=* | --program-transform-na=* \
317 | --program-transform-n=* | --program-transform-=* \
318 | --program-transform=* | --program-transfor=* \
319 | --program-transfo=* | --program-transf=* \
320 | --program-trans=* | --program-tran=* \
321 | --progr-tra=* | --program-tr=* | --program-t=*)
322 program_transform_name="$ac_optarg" ;;
323
324 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
325 | -silent | --silent | --silen | --sile | --sil)
326 silent=yes ;;
327
328 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
329 ac_prev=sbindir ;;
330 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
331 | --sbi=* | --sb=*)
332 sbindir="$ac_optarg" ;;
333
334 -sharedstatedir | --sharedstatedir | --sharedstatedi \
335 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
336 | --sharedst | --shareds | --shared | --share | --shar \
337 | --sha | --sh)
338 ac_prev=sharedstatedir ;;
339 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
340 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
341 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
342 | --sha=* | --sh=*)
343 sharedstatedir="$ac_optarg" ;;
344
345 -site | --site | --sit)
346 ac_prev=site ;;
347 -site=* | --site=* | --sit=*)
348 site="$ac_optarg" ;;
349
350 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
351 ac_prev=srcdir ;;
352 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
353 srcdir="$ac_optarg" ;;
354
355 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
356 | --syscon | --sysco | --sysc | --sys | --sy)
357 ac_prev=sysconfdir ;;
358 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
359 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
360 sysconfdir="$ac_optarg" ;;
361
362 -target | --target | --targe | --targ | --tar | --ta | --t)
363 ac_prev=target ;;
364 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
365 target="$ac_optarg" ;;
366
367 -v | -verbose | --verbose | --verbos | --verbo | --verb)
368 verbose=yes ;;
369
370 -version | --version | --versio | --versi | --vers)
371 echo "configure generated by autoconf version 2.13"
372 exit 0 ;;
373
374 -with-* | --with-*)
375 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
376 # Reject names that are not valid shell variable names.
377 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
378 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
379 fi
380 ac_package=`echo $ac_package| sed 's/-/_/g'`
381 case "$ac_option" in
382 *=*) ;;
383 *) ac_optarg=yes ;;
384 esac
385 eval "with_${ac_package}='$ac_optarg'" ;;
386
387 -without-* | --without-*)
388 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
389 # Reject names that are not valid shell variable names.
390 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
391 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
392 fi
393 ac_package=`echo $ac_package| sed 's/-/_/g'`
394 eval "with_${ac_package}=no" ;;
395
396 --x)
397 # Obsolete; use --with-x.
398 with_x=yes ;;
399
400 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
401 | --x-incl | --x-inc | --x-in | --x-i)
402 ac_prev=x_includes ;;
403 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
404 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
405 x_includes="$ac_optarg" ;;
406
407 -x-libraries | --x-libraries | --x-librarie | --x-librari \
408 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
409 ac_prev=x_libraries ;;
410 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
411 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
412 x_libraries="$ac_optarg" ;;
413
414 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
415 ;;
416
417 *)
418 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
419 echo "configure: warning: $ac_option: invalid host type" 1>&2
420 fi
421 if test "x$nonopt" != xNONE; then
422 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
423 fi
424 nonopt="$ac_option"
425 ;;
426
427 esac
428done
429
430if test -n "$ac_prev"; then
431 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
432fi
433
434trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
435
436# File descriptor usage:
437# 0 standard input
438# 1 file creation
439# 2 errors and warnings
440# 3 some systems may open it to /dev/tty
441# 4 used on the Kubota Titan
442# 6 checking for... messages and results
443# 5 compiler messages saved in config.log
444if test "$silent" = yes; then
445 exec 6>/dev/null
446else
447 exec 6>&1
448fi
449exec 5>./config.log
450
451echo "\
452This file contains any messages produced by compilers while
453running configure, to aid debugging if configure makes a mistake.
454" 1>&5
455
456# Strip out --no-create and --no-recursion so they do not pile up.
457# Also quote any args containing shell metacharacters.
458ac_configure_args=
459for ac_arg
460do
461 case "$ac_arg" in
462 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
463 | --no-cr | --no-c) ;;
464 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
465 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
466 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
467 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
468 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
469 esac
470done
471
472# NLS nuisances.
473# Only set these to C if already set. These must not be set unconditionally
474# because not all systems understand e.g. LANG=C (notably SCO).
475# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
476# Non-C LC_CTYPE values break the ctype check.
477if test "${LANG+set}" = set; then LANG=C; export LANG; fi
478if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
479if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
480if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
481
482# confdefs.h avoids OS command line length limits that DEFS can exceed.
483rm -rf conftest* confdefs.h
484# AIX cpp loses on an empty file, so make sure it contains at least a newline.
485echo > confdefs.h
486
487# A filename unique to this package, relative to the directory that
488# configure is in, which we can look for to find out if srcdir is correct.
489ac_unique_file=common/unicode/utypes.h
490
491# Find the source files, if location was not specified.
492if test -z "$srcdir"; then
493 ac_srcdir_defaulted=yes
494 # Try the directory containing this script, then its parent.
495 ac_prog=$0
496 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
497 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
498 srcdir=$ac_confdir
499 if test ! -r $srcdir/$ac_unique_file; then
500 srcdir=..
501 fi
502else
503 ac_srcdir_defaulted=no
504fi
505if test ! -r $srcdir/$ac_unique_file; then
506 if test "$ac_srcdir_defaulted" = yes; then
507 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
508 else
509 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
510 fi
511fi
512srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
513
514# Prefer explicitly selected file to automatically selected ones.
515if test -z "$CONFIG_SITE"; then
516 if test "x$prefix" != xNONE; then
517 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
518 else
519 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
520 fi
521fi
522for ac_site_file in $CONFIG_SITE; do
523 if test -r "$ac_site_file"; then
524 echo "loading site script $ac_site_file"
525 . "$ac_site_file"
526 fi
527done
528
529if test -r "$cache_file"; then
530 echo "loading cache $cache_file"
531 . $cache_file
532else
533 echo "creating cache $cache_file"
534 > $cache_file
535fi
536
537ac_ext=c
538# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
539ac_cpp='$CPP $CPPFLAGS'
540ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
541ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
542cross_compiling=$ac_cv_prog_cc_cross
543
544ac_exeext=
545ac_objext=o
546if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
547 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
548 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
549 ac_n= ac_c='
550' ac_t=' '
551 else
552 ac_n=-n ac_c= ac_t=
553 fi
554else
555 ac_n= ac_c='\c' ac_t=
556fi
557
558
559
560
561PACKAGE="icu"
562
563
564echo $ac_n "checking for ICU version numbers""... $ac_c" 1>&6
565echo "configure:566: checking for ICU version numbers" >&5
566
567geticuversion() {
568 sed -n 's/^[ ]*#[ ]*define[ ]*U_ICU_VERSION[ ]*"\([^"]*\)".*/\1/p' "$@"
569}
570VERSION=`geticuversion $srcdir/common/unicode/uversion.h`
571if test x"$VERSION" = x; then
572 VERSION=`geticuversion $srcdir/common/unicode/*.h`
573 if test x"$VERSION" = x; then
574 { echo "configure: error: Cannot determine ICU version number from header files" 1>&2; exit 1; }
575 fi
576fi
577LIB_VERSION=`echo $VERSION | sed -e 's/\.//' -e 's/^\([^.]*\)$/\1.0/'`
578LIB_VERSION_MAJOR=`echo $LIB_VERSION | sed 's/\..*//'`
579
580
581
582echo "$ac_t""release $VERSION, library $LIB_VERSION" 1>&6
583
584UNICODE_VERSION="4"
585
586
587
588
589# Extract the first word of "gcc", so it can be a program name with args.
590set dummy gcc; ac_word=$2
591echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
592echo "configure:593: checking for $ac_word" >&5
593if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
594 echo $ac_n "(cached) $ac_c" 1>&6
595else
596 if test -n "$CC"; then
597 ac_cv_prog_CC="$CC" # Let the user override the test.
598else
599 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
600 ac_dummy="$PATH"
601 for ac_dir in $ac_dummy; do
602 test -z "$ac_dir" && ac_dir=.
603 if test -f $ac_dir/$ac_word; then
604 ac_cv_prog_CC="gcc"
605 break
606 fi
607 done
608 IFS="$ac_save_ifs"
609fi
610fi
611CC="$ac_cv_prog_CC"
612if test -n "$CC"; then
613 echo "$ac_t""$CC" 1>&6
614else
615 echo "$ac_t""no" 1>&6
616fi
617
618if test -z "$CC"; then
619 # Extract the first word of "cc", so it can be a program name with args.
620set dummy cc; ac_word=$2
621echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
622echo "configure:623: checking for $ac_word" >&5
623if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
624 echo $ac_n "(cached) $ac_c" 1>&6
625else
626 if test -n "$CC"; then
627 ac_cv_prog_CC="$CC" # Let the user override the test.
628else
629 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
630 ac_prog_rejected=no
631 ac_dummy="$PATH"
632 for ac_dir in $ac_dummy; do
633 test -z "$ac_dir" && ac_dir=.
634 if test -f $ac_dir/$ac_word; then
635 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
636 ac_prog_rejected=yes
637 continue
638 fi
639 ac_cv_prog_CC="cc"
640 break
641 fi
642 done
643 IFS="$ac_save_ifs"
644if test $ac_prog_rejected = yes; then
645 # We found a bogon in the path, so make sure we never use it.
646 set dummy $ac_cv_prog_CC
647 shift
648 if test $# -gt 0; then
649 # We chose a different compiler from the bogus one.
650 # However, it has the same basename, so the bogon will be chosen
651 # first if we set CC to just the basename; use the full file name.
652 shift
653 set dummy "$ac_dir/$ac_word" "$@"
654 shift
655 ac_cv_prog_CC="$@"
656 fi
657fi
658fi
659fi
660CC="$ac_cv_prog_CC"
661if test -n "$CC"; then
662 echo "$ac_t""$CC" 1>&6
663else
664 echo "$ac_t""no" 1>&6
665fi
666
667 if test -z "$CC"; then
668 case "`uname -s`" in
669 *win32* | *WIN32*)
670 # Extract the first word of "cl", so it can be a program name with args.
671set dummy cl; ac_word=$2
672echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
673echo "configure:674: checking for $ac_word" >&5
674if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
675 echo $ac_n "(cached) $ac_c" 1>&6
676else
677 if test -n "$CC"; then
678 ac_cv_prog_CC="$CC" # Let the user override the test.
679else
680 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
681 ac_dummy="$PATH"
682 for ac_dir in $ac_dummy; do
683 test -z "$ac_dir" && ac_dir=.
684 if test -f $ac_dir/$ac_word; then
685 ac_cv_prog_CC="cl"
686 break
687 fi
688 done
689 IFS="$ac_save_ifs"
690fi
691fi
692CC="$ac_cv_prog_CC"
693if test -n "$CC"; then
694 echo "$ac_t""$CC" 1>&6
695else
696 echo "$ac_t""no" 1>&6
697fi
698 ;;
699 esac
700 fi
701 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
702fi
703
704echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
705echo "configure:706: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
706
707ac_ext=c
708# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
709ac_cpp='$CPP $CPPFLAGS'
710ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
711ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
712cross_compiling=$ac_cv_prog_cc_cross
713
714cat > conftest.$ac_ext << EOF
715
716#line 717 "configure"
717#include "confdefs.h"
718
719main(){return(0);}
720EOF
721if { (eval echo configure:722: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
722 ac_cv_prog_cc_works=yes
723 # If we can't run a trivial program, we are probably using a cross compiler.
724 if (./conftest; exit) 2>/dev/null; then
725 ac_cv_prog_cc_cross=no
726 else
727 ac_cv_prog_cc_cross=yes
728 fi
729else
730 echo "configure: failed program was:" >&5
731 cat conftest.$ac_ext >&5
732 ac_cv_prog_cc_works=no
733fi
734rm -fr conftest*
735ac_ext=c
736# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
737ac_cpp='$CPP $CPPFLAGS'
738ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
739ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
740cross_compiling=$ac_cv_prog_cc_cross
741
742echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
743if test $ac_cv_prog_cc_works = no; then
744 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
745fi
746echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
747echo "configure:748: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
748echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
749cross_compiling=$ac_cv_prog_cc_cross
750
751echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
752echo "configure:753: checking whether we are using GNU C" >&5
753if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
754 echo $ac_n "(cached) $ac_c" 1>&6
755else
756 cat > conftest.c <<EOF
757#ifdef __GNUC__
758 yes;
759#endif
760EOF
761if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:762: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
762 ac_cv_prog_gcc=yes
763else
764 ac_cv_prog_gcc=no
765fi
766fi
767
768echo "$ac_t""$ac_cv_prog_gcc" 1>&6
769
770if test $ac_cv_prog_gcc = yes; then
771 GCC=yes
772else
773 GCC=
774fi
775
776ac_test_CFLAGS="${CFLAGS+set}"
777ac_save_CFLAGS="$CFLAGS"
778CFLAGS=
779echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
780echo "configure:781: checking whether ${CC-cc} accepts -g" >&5
781if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
782 echo $ac_n "(cached) $ac_c" 1>&6
783else
784 echo 'void f(){}' > conftest.c
785if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
786 ac_cv_prog_cc_g=yes
787else
788 ac_cv_prog_cc_g=no
789fi
790rm -f conftest*
791
792fi
793
794echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
795if test "$ac_test_CFLAGS" = set; then
796 CFLAGS="$ac_save_CFLAGS"
797elif test $ac_cv_prog_cc_g = yes; then
798 if test "$GCC" = yes; then
799 CFLAGS="-g -O2"
800 else
801 CFLAGS="-g"
802 fi
803else
804 if test "$GCC" = yes; then
805 CFLAGS="-O2"
806 else
807 CFLAGS=
808 fi
809fi
810
811for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
812do
813# Extract the first word of "$ac_prog", so it can be a program name with args.
814set dummy $ac_prog; ac_word=$2
815echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
816echo "configure:817: checking for $ac_word" >&5
817if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
818 echo $ac_n "(cached) $ac_c" 1>&6
819else
820 if test -n "$CXX"; then
821 ac_cv_prog_CXX="$CXX" # Let the user override the test.
822else
823 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
824 ac_dummy="$PATH"
825 for ac_dir in $ac_dummy; do
826 test -z "$ac_dir" && ac_dir=.
827 if test -f $ac_dir/$ac_word; then
828 ac_cv_prog_CXX="$ac_prog"
829 break
830 fi
831 done
832 IFS="$ac_save_ifs"
833fi
834fi
835CXX="$ac_cv_prog_CXX"
836if test -n "$CXX"; then
837 echo "$ac_t""$CXX" 1>&6
838else
839 echo "$ac_t""no" 1>&6
840fi
841
842test -n "$CXX" && break
843done
844test -n "$CXX" || CXX="gcc"
845
846
847echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
848echo "configure:849: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
849
850ac_ext=C
851# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
852ac_cpp='$CXXCPP $CPPFLAGS'
853ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
854ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
855cross_compiling=$ac_cv_prog_cxx_cross
856
857cat > conftest.$ac_ext << EOF
858
859#line 860 "configure"
860#include "confdefs.h"
861
862int main(){return(0);}
863EOF
864if { (eval echo configure:865: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
865 ac_cv_prog_cxx_works=yes
866 # If we can't run a trivial program, we are probably using a cross compiler.
867 if (./conftest; exit) 2>/dev/null; then
868 ac_cv_prog_cxx_cross=no
869 else
870 ac_cv_prog_cxx_cross=yes
871 fi
872else
873 echo "configure: failed program was:" >&5
874 cat conftest.$ac_ext >&5
875 ac_cv_prog_cxx_works=no
876fi
877rm -fr conftest*
878ac_ext=c
879# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
880ac_cpp='$CPP $CPPFLAGS'
881ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
882ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
883cross_compiling=$ac_cv_prog_cc_cross
884
885echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
886if test $ac_cv_prog_cxx_works = no; then
887 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
888fi
889echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
890echo "configure:891: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
891echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
892cross_compiling=$ac_cv_prog_cxx_cross
893
894echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
895echo "configure:896: checking whether we are using GNU C++" >&5
896if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
897 echo $ac_n "(cached) $ac_c" 1>&6
898else
899 cat > conftest.C <<EOF
900#ifdef __GNUC__
901 yes;
902#endif
903EOF
904if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:905: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
905 ac_cv_prog_gxx=yes
906else
907 ac_cv_prog_gxx=no
908fi
909fi
910
911echo "$ac_t""$ac_cv_prog_gxx" 1>&6
912
913if test $ac_cv_prog_gxx = yes; then
914 GXX=yes
915else
916 GXX=
917fi
918
919ac_test_CXXFLAGS="${CXXFLAGS+set}"
920ac_save_CXXFLAGS="$CXXFLAGS"
921CXXFLAGS=
922echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
923echo "configure:924: checking whether ${CXX-g++} accepts -g" >&5
924if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
925 echo $ac_n "(cached) $ac_c" 1>&6
926else
927 echo 'void f(){}' > conftest.cc
928if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
929 ac_cv_prog_cxx_g=yes
930else
931 ac_cv_prog_cxx_g=no
932fi
933rm -f conftest*
934
935fi
936
937echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
938if test "$ac_test_CXXFLAGS" = set; then
939 CXXFLAGS="$ac_save_CXXFLAGS"
940elif test $ac_cv_prog_cxx_g = yes; then
941 if test "$GXX" = yes; then
942 CXXFLAGS="-g -O2"
943 else
944 CXXFLAGS="-g"
945 fi
946else
947 if test "$GXX" = yes; then
948 CXXFLAGS="-O2"
949 else
950 CXXFLAGS=
951 fi
952fi
953
954for ac_declaration in \
955 ''\
956 '#include <stdlib.h>' \
957 'extern "C" void std::exit (int) throw (); using std::exit;' \
958 'extern "C" void std::exit (int); using std::exit;' \
959 'extern "C" void exit (int) throw ();' \
960 'extern "C" void exit (int);' \
961 'void exit (int);'
962do
963 cat > conftest.$ac_ext <<EOF
964#line 965 "configure"
965#include "confdefs.h"
966#include <stdlib.h>
967$ac_declaration
968int main() {
969exit (42);
970; return 0; }
971EOF
972if { (eval echo configure:973: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
973 :
974else
975 echo "configure: failed program was:" >&5
976 cat conftest.$ac_ext >&5
977 rm -rf conftest*
978 continue
979fi
980rm -f conftest*
981 cat > conftest.$ac_ext <<EOF
982#line 983 "configure"
983#include "confdefs.h"
984$ac_declaration
985int main() {
986exit (42);
987; return 0; }
988EOF
989if { (eval echo configure:990: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
990 rm -rf conftest*
991 break
992else
993 echo "configure: failed program was:" >&5
994 cat conftest.$ac_ext >&5
995fi
996rm -f conftest*
997done
998if test -n "$ac_declaration"; then
999 echo '#ifdef __cplusplus' >>confdefs.h
1000 echo $ac_declaration >>confdefs.h
1001 echo '#endif' >>confdefs.h
1002fi
1003
1004
1005ac_aux_dir=
1006for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1007 if test -f $ac_dir/install-sh; then
1008 ac_aux_dir=$ac_dir
1009 ac_install_sh="$ac_aux_dir/install-sh -c"
1010 break
1011 elif test -f $ac_dir/install.sh; then
1012 ac_aux_dir=$ac_dir
1013 ac_install_sh="$ac_aux_dir/install.sh -c"
1014 break
1015 fi
1016done
1017if test -z "$ac_aux_dir"; then
1018 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
1019fi
1020ac_config_guess=$ac_aux_dir/config.guess
1021ac_config_sub=$ac_aux_dir/config.sub
1022ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
1023
1024# Find a good install program. We prefer a C program (faster),
1025# so one script is as good as another. But avoid the broken or
1026# incompatible versions:
1027# SysV /etc/install, /usr/sbin/install
1028# SunOS /usr/etc/install
1029# IRIX /sbin/install
1030# AIX /bin/install
1031# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1032# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1033# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1034# ./install, which can be erroneously created by make from ./install.sh.
1035echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1036echo "configure:1037: checking for a BSD compatible install" >&5
1037if test -z "$INSTALL"; then
1038if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1039 echo $ac_n "(cached) $ac_c" 1>&6
1040else
1041 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1042 for ac_dir in $PATH; do
1043 # Account for people who put trailing slashes in PATH elements.
1044 case "$ac_dir/" in
1045 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1046 *)
1047 # OSF1 and SCO ODT 3.0 have their own names for install.
1048 # Don't use installbsd from OSF since it installs stuff as root
1049 # by default.
1050 for ac_prog in ginstall scoinst install; do
1051 if test -f $ac_dir/$ac_prog; then
1052 if test $ac_prog = install &&
1053 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1054 # AIX install. It has an incompatible calling convention.
1055 :
1056 else
1057 ac_cv_path_install="$ac_dir/$ac_prog -c"
1058 break 2
1059 fi
1060 fi
1061 done
1062 ;;
1063 esac
1064 done
1065 IFS="$ac_save_IFS"
1066
1067fi
1068 if test "${ac_cv_path_install+set}" = set; then
1069 INSTALL="$ac_cv_path_install"
1070 else
1071 # As a last resort, use the slow shell script. We don't cache a
1072 # path for INSTALL within a source directory, because that will
1073 # break other packages using the cache if that directory is
1074 # removed, or if the path is relative.
1075 INSTALL="$ac_install_sh"
1076 fi
1077fi
1078echo "$ac_t""$INSTALL" 1>&6
1079
1080# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1081# It thinks the first close brace ends the variable substitution.
1082test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1083
1084test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1085
1086test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1087
1088
1089# make sure install is relative to srcdir - if a script
1090if test "$srcdir" = "."; then
1091 # If srcdir isn't just ., then (srcdir) is already prepended.
1092 if test "${ac_install_sh}" = "${INSTALL}"; then
1093 INSTALL="\\\$(top_srcdir)/${ac_install_sh}"
1094 fi
1095fi
1096
1097# Extract the first word of "autoconf", so it can be a program name with args.
1098set dummy autoconf; ac_word=$2
1099echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1100echo "configure:1101: checking for $ac_word" >&5
1101if eval "test \"`echo '$''{'ac_cv_prog_AUTOCONF'+set}'`\" = set"; then
1102 echo $ac_n "(cached) $ac_c" 1>&6
1103else
1104 if test -n "$AUTOCONF"; then
1105 ac_cv_prog_AUTOCONF="$AUTOCONF" # Let the user override the test.
1106else
1107 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1108 ac_dummy="$PATH"
1109 for ac_dir in $ac_dummy; do
1110 test -z "$ac_dir" && ac_dir=.
1111 if test -f $ac_dir/$ac_word; then
1112 ac_cv_prog_AUTOCONF="autoconf"
1113 break
1114 fi
1115 done
1116 IFS="$ac_save_ifs"
1117 test -z "$ac_cv_prog_AUTOCONF" && ac_cv_prog_AUTOCONF="true"
1118fi
1119fi
1120AUTOCONF="$ac_cv_prog_AUTOCONF"
1121if test -n "$AUTOCONF"; then
1122 echo "$ac_t""$AUTOCONF" 1>&6
1123else
1124 echo "$ac_t""no" 1>&6
1125fi
1126
1127# Extract the first word of "strip", so it can be a program name with args.
1128set dummy strip; ac_word=$2
1129echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1130echo "configure:1131: checking for $ac_word" >&5
1131if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
1132 echo $ac_n "(cached) $ac_c" 1>&6
1133else
1134 if test -n "$STRIP"; then
1135 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1136else
1137 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1138 ac_dummy="$PATH"
1139 for ac_dir in $ac_dummy; do
1140 test -z "$ac_dir" && ac_dir=.
1141 if test -f $ac_dir/$ac_word; then
1142 ac_cv_prog_STRIP="strip"
1143 break
1144 fi
1145 done
1146 IFS="$ac_save_ifs"
1147 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
1148fi
1149fi
1150STRIP="$ac_cv_prog_STRIP"
1151if test -n "$STRIP"; then
1152 echo "$ac_t""$STRIP" 1>&6
1153else
1154 echo "$ac_t""no" 1>&6
1155fi
1156
1157
1158for ac_prog in gmake gnumake
1159do
1160# Extract the first word of "$ac_prog", so it can be a program name with args.
1161set dummy $ac_prog; ac_word=$2
1162echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1163echo "configure:1164: checking for $ac_word" >&5
1164if eval "test \"`echo '$''{'ac_cv_path_U_MAKE'+set}'`\" = set"; then
1165 echo $ac_n "(cached) $ac_c" 1>&6
1166else
1167 case "$U_MAKE" in
1168 /*)
1169 ac_cv_path_U_MAKE="$U_MAKE" # Let the user override the test with a path.
1170 ;;
1171 ?:/*)
1172 ac_cv_path_U_MAKE="$U_MAKE" # Let the user override the test with a dos path.
1173 ;;
1174 *)
1175 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1176 ac_dummy="$PATH"
1177 for ac_dir in $ac_dummy; do
1178 test -z "$ac_dir" && ac_dir=.
1179 if test -f $ac_dir/$ac_word; then
1180 ac_cv_path_U_MAKE="$ac_dir/$ac_word"
1181 break
1182 fi
1183 done
1184 IFS="$ac_save_ifs"
1185 ;;
1186esac
1187fi
1188U_MAKE="$ac_cv_path_U_MAKE"
1189if test -n "$U_MAKE"; then
1190 echo "$ac_t""$U_MAKE" 1>&6
1191else
1192 echo "$ac_t""no" 1>&6
1193fi
1194
1195test -n "$U_MAKE" && break
1196done
1197test -n "$U_MAKE" || U_MAKE="make"
1198
1199
1200
1201# Extract the first word of "doxygen", so it can be a program name with args.
1202set dummy doxygen; ac_word=$2
1203echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1204echo "configure:1205: checking for $ac_word" >&5
1205if eval "test \"`echo '$''{'ac_cv_path_DOXYGEN'+set}'`\" = set"; then
1206 echo $ac_n "(cached) $ac_c" 1>&6
1207else
1208 case "$DOXYGEN" in
1209 /*)
1210 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
1211 ;;
1212 ?:/*)
1213 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a dos path.
1214 ;;
1215 *)
1216 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1217 ac_dummy="$PATH:/usr/local/bin:/usr/bin"
1218 for ac_dir in $ac_dummy; do
1219 test -z "$ac_dir" && ac_dir=.
1220 if test -f $ac_dir/$ac_word; then
1221 ac_cv_path_DOXYGEN="$ac_dir/$ac_word"
1222 break
1223 fi
1224 done
1225 IFS="$ac_save_ifs"
1226 ;;
1227esac
1228fi
1229DOXYGEN="$ac_cv_path_DOXYGEN"
1230if test -n "$DOXYGEN"; then
1231 echo "$ac_t""$DOXYGEN" 1>&6
1232else
1233 echo "$ac_t""no" 1>&6
1234fi
1235
1236
1237
1238# Make sure we can run config.sub.
1239if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1240else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1241fi
1242
1243echo $ac_n "checking host system type""... $ac_c" 1>&6
1244echo "configure:1245: checking host system type" >&5
1245
1246host_alias=$host
1247case "$host_alias" in
1248NONE)
1249 case $nonopt in
1250 NONE)
1251 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1252 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1253 fi ;;
1254 *) host_alias=$nonopt ;;
1255 esac ;;
1256esac
1257
1258host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1259host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1260host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1261host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1262echo "$ac_t""$host" 1>&6
1263
1264echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
1265echo "configure:1266: checking for Cygwin environment" >&5
1266if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
1267 echo $ac_n "(cached) $ac_c" 1>&6
1268else
1269 cat > conftest.$ac_ext <<EOF
1270#line 1271 "configure"
1271#include "confdefs.h"
1272
1273int main() {
1274
1275#ifndef __CYGWIN__
1276#define __CYGWIN__ __CYGWIN32__
1277#endif
1278return __CYGWIN__;
1279; return 0; }
1280EOF
1281if { (eval echo configure:1282: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1282 rm -rf conftest*
1283 ac_cv_cygwin=yes
1284else
1285 echo "configure: failed program was:" >&5
1286 cat conftest.$ac_ext >&5
1287 rm -rf conftest*
1288 ac_cv_cygwin=no
1289fi
1290rm -f conftest*
1291rm -f conftest*
1292fi
1293
1294echo "$ac_t""$ac_cv_cygwin" 1>&6
1295CYGWIN=
1296test "$ac_cv_cygwin" = yes && CYGWIN=yes
1297echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
1298echo "configure:1299: checking for mingw32 environment" >&5
1299if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
1300 echo $ac_n "(cached) $ac_c" 1>&6
1301else
1302 cat > conftest.$ac_ext <<EOF
1303#line 1304 "configure"
1304#include "confdefs.h"
1305
1306int main() {
1307return __MINGW32__;
1308; return 0; }
1309EOF
1310if { (eval echo configure:1311: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1311 rm -rf conftest*
1312 ac_cv_mingw32=yes
1313else
1314 echo "configure: failed program was:" >&5
1315 cat conftest.$ac_ext >&5
1316 rm -rf conftest*
1317 ac_cv_mingw32=no
1318fi
1319rm -f conftest*
1320rm -f conftest*
1321fi
1322
1323echo "$ac_t""$ac_cv_mingw32" 1>&6
1324MINGW32=
1325test "$ac_cv_mingw32" = yes && MINGW32=yes
1326
1327
1328echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1329echo "configure:1330: checking for executable suffix" >&5
1330if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1331 echo $ac_n "(cached) $ac_c" 1>&6
1332else
1333 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1334 ac_cv_exeext=.exe
1335else
1336 rm -f conftest*
1337 echo 'int main () { return 0; }' > conftest.$ac_ext
1338 ac_cv_exeext=
1339 if { (eval echo configure:1340: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1340 for file in conftest.*; do
1341 case $file in
1342 *.c | *.o | *.obj) ;;
1343 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1344 esac
1345 done
1346 else
1347 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1348 fi
1349 rm -f conftest*
1350 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1351fi
1352fi
1353
1354EXEEXT=""
1355test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1356echo "$ac_t""${ac_cv_exeext}" 1>&6
1357ac_exeext=$EXEEXT
1358
1359
1360
1361 echo $ac_n "checking whether strict compiling is on""... $ac_c" 1>&6
1362echo "configure:1363: checking whether strict compiling is on" >&5
1363 # Check whether --enable-strict or --disable-strict was given.
1364if test "${enable_strict+set}" = set; then
1365 enableval="$enable_strict"
1366
1367 if test "$enableval" = no
1368 then
1369 ac_use_strict_options=no
1370 else
1371 ac_use_strict_options=yes
1372 fi
1373
1374else
1375 ac_use_strict_options=no
1376fi
1377
1378 echo "$ac_t""$ac_use_strict_options" 1>&6
1379
1380 if test "$ac_use_strict_options" = yes
1381 then
1382 if test "$GCC" = yes
1383 then
1384 CFLAGS="$CFLAGS -Wall -ansi -pedantic -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -Winline"
1385 case "${host}" in
1386 *-*-solaris*)
1387 CFLAGS="$CFLAGS -D__STDC__=0";;
1388 esac
1389 fi
1390 if test "$GXX" = yes
1391 then
1392 CXXFLAGS="$CXXFLAGS -W -Wall -ansi -pedantic -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -Winline"
1393 case "${host}" in
1394 *-*-solaris*)
1395 CXXFLAGS="$CXXFLAGS -D__STDC__=0";;
1396 esac
1397 fi
1398 fi
1399
1400
1401
1402 # Check whether --enable-64bit-libs or --disable-64bit-libs was given.
1403if test "${enable_64bit_libs+set}" = set; then
1404 enableval="$enable_64bit_libs"
1405 ENABLE_64BIT_LIBS=${enableval}
1406else
1407 ENABLE_64BIT_LIBS=yes
1408
1409fi
1410
1411 echo $ac_n "checking for 64-bit executable support""... $ac_c" 1>&6
1412echo "configure:1413: checking for 64-bit executable support" >&5
1413 if test "$ENABLE_64BIT_LIBS" = no; then
1414 case "${host}" in
1415 *-*-hpux*)
1416 case "${CXX}" in
1417 *CC)
1418 CFLAGS="${CFLAGS} +DAportable"
1419 CXXFLAGS="${CXXFLAGS} +DAportable"
1420 ;;
1421 esac;;
1422 esac
1423 else
1424 case "${host}" in
1425 *-*-solaris*)
1426 if test "$ac_cv_prog_gcc" = no; then
1427 SOL64=`$CXX -xarch=v9 2>&1 && $CC -xarch=v9 2>&1 | grep -v usage:`
1428 SPARCV9=`isainfo -n 2>&1 | grep sparcv9`
1429 if test -z "$SOL64" && test -n "$SPARCV9"; then
1430 CFLAGS="${CFLAGS} -xtarget=ultra -xarch=v9"
1431 CXXFLAGS="${CXXFLAGS} -xtarget=ultra -xarch=v9"
1432 LDFLAGS="${LDFLAGS} -xtarget=ultra -xarch=v9"
1433 ENABLE_64BIT_LIBS=yes
1434 else
1435 ENABLE_64BIT_LIBS=no
1436 fi
1437 else
1438 ENABLE_64BIT_LIBS=no
1439 fi
1440 ;;
1441 *-*-aix*)
1442 OLD_CFLAGS="${CFLAGS}"
1443 OLD_CXXFLAGS="${CXXFLAGS}"
1444 OLD_LDFLAGS="${LDFLAGS}"
1445 CFLAGS="${CFLAGS} -q64"
1446 CXXFLAGS="${CXXFLAGS} -q64"
1447 LDFLAGS="${LDFLAGS} -q64"
1448 if test "$cross_compiling" = yes; then
1449 ENABLE_64BIT_LIBS=no
1450else
1451 cat > conftest.$ac_ext <<EOF
1452#line 1453 "configure"
1453#include "confdefs.h"
1454int main(void) {return 0;}
1455EOF
1456if { (eval echo configure:1457: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1457then
1458 ENABLE_64BIT_LIBS=yes
1459else
1460 echo "configure: failed program was:" >&5
1461 cat conftest.$ac_ext >&5
1462 rm -fr conftest*
1463 ENABLE_64BIT_LIBS=no
1464fi
1465rm -fr conftest*
1466fi
1467
1468 if test "$ENABLE_64BIT_LIBS" = no; then
1469 CFLAGS="${OLD_CFLAGS}"
1470 CXXFLAGS="${OLD_CXXFLAGS}"
1471 LDFLAGS="${OLD_LDFLAGS}"
1472 else
1473 ARFLAGS="${ARFLAGS} -X64"
1474 fi
1475 ;;
1476 *-*-hpux*)
1477 OLD_CFLAGS="${CFLAGS}"
1478 OLD_CXXFLAGS="${CXXFLAGS}"
1479 CFLAGS="${CFLAGS} +DA2.0W"
1480 CXXFLAGS="${CXXFLAGS} +DA2.0W"
1481 if test "$cross_compiling" = yes; then
1482 ENABLE_64BIT_LIBS=no
1483else
1484 cat > conftest.$ac_ext <<EOF
1485#line 1486 "configure"
1486#include "confdefs.h"
1487int main(void) {return 0;}
1488EOF
1489if { (eval echo configure:1490: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1490then
1491 ENABLE_64BIT_LIBS=yes
1492else
1493 echo "configure: failed program was:" >&5
1494 cat conftest.$ac_ext >&5
1495 rm -fr conftest*
1496 ENABLE_64BIT_LIBS=no
1497fi
1498rm -fr conftest*
1499fi
1500
1501 if test "$ENABLE_64BIT_LIBS" = no; then
1502 CFLAGS="${OLD_CFLAGS}"
1503 CXXFLAGS="${OLD_CXXFLAGS}"
1504 fi
1505 ;;
1506 *)
1507 ENABLE_64BIT_LIBS=no
1508 ;;
1509 esac
1510 fi
1511 echo "$ac_t""$ENABLE_64BIT_LIBS" 1>&6
1512
1513
1514
1515
1516
1517 echo $ac_n "checking which Makefile fragment to use""... $ac_c" 1>&6
1518echo "configure:1519: checking which Makefile fragment to use" >&5
1519if eval "test \"`echo '$''{'icu_cv_host_frag'+set}'`\" = set"; then
1520 echo $ac_n "(cached) $ac_c" 1>&6
1521else
1522
1523case "${host}" in
1524*-*-solaris*)
1525 if test "$ac_cv_prog_gcc" = yes; then
1526 icu_cv_host_frag=mh-solaris-gcc
1527 else
1528 icu_cv_host_frag=mh-solaris
1529 fi ;;
1530alpha*-*-linux-gnu)
1531 if test "$ac_cv_prog_gcc" = yes; then
1532 icu_cv_host_frag=mh-alpha-linux-gcc
1533 else
1534 icu_cv_host_frag=mh-alpha-linux-cc
1535 fi ;;
1536*-*-linux*) icu_cv_host_frag=mh-linux ;;
1537*-*-cygwin)
1538 if test "$ac_cv_prog_gcc" = yes; then
1539 icu_cv_host_frag=mh-cygwin
1540 else
1541 icu_cv_host_frag=mh-cygwin-msvc
1542 fi ;;
1543*-*-*bsd*) icu_cv_host_frag=mh-bsd-gcc ;;
1544*-*-aix*)
1545 if test -n "`$CXX --help 2>&1 | grep 'IBM C and C++ Compilers$'`"; then
1546 icu_cv_host_frag=mh-aix
1547 else
1548 icu_cv_host_frag=mh-aix-va
1549 fi ;;
1550*-*-hpux*)
1551 if test "$ac_cv_prog_gcc" = yes; then
1552 icu_cv_host_frag=mh-hpux-gcc
1553 else
1554 case "$CXX" in
1555 *aCC) icu_cv_host_frag=mh-hpux-acc ;;
1556 *CC) icu_cv_host_frag=mh-hpux-cc ;;
1557 esac
1558 fi ;;
1559*-*ibm-openedition*|*-*-os390*) icu_cv_host_frag=mh-os390 ;;
1560*-*-os400*) icu_cv_host_frag=mh-os400 ;;
1561*-apple-rhapsody*) icu_cv_host_frag=mh-darwin ;;
1562*-apple-darwin*) icu_cv_host_frag=mh-darwin ;;
1563*-*-irix*) icu_cv_host_frag=mh-irix ;;
1564*-dec-osf*) icu_cv_host_frag=mh-alpha-osf ;;
1565*-*-nto*) icu_cv_host_frag=mh-qnx ;;
1566*-sequent-*) icu_cv_host_frag=mh-ptx ;;
1567*) icu_cv_host_frag=mh-unknown ;;
1568esac
1569
1570
1571fi
1572
1573echo "$ac_t""$icu_cv_host_frag" 1>&6
1574
1575
1576hpuxcma=false
1577
1578case "${host}" in
1579 *-*-hpux10*) hpuxcma=true
1580 echo $ac_n "checking for floor in -lm""... $ac_c" 1>&6
1581echo "configure:1582: checking for floor in -lm" >&5
1582ac_lib_var=`echo m'_'floor | sed 'y%./+-%__p_%'`
1583if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1584 echo $ac_n "(cached) $ac_c" 1>&6
1585else
1586 ac_save_LIBS="$LIBS"
1587LIBS="-lm $LIBS"
1588cat > conftest.$ac_ext <<EOF
1589#line 1590 "configure"
1590#include "confdefs.h"
1591/* Override any gcc2 internal prototype to avoid an error. */
1592/* We use char because int might match the return type of a gcc2
1593 builtin and then its argument prototype would still apply. */
1594char floor();
1595
1596int main() {
1597floor()
1598; return 0; }
1599EOF
1600if { (eval echo configure:1601: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1601 rm -rf conftest*
1602 eval "ac_cv_lib_$ac_lib_var=yes"
1603else
1604 echo "configure: failed program was:" >&5
1605 cat conftest.$ac_ext >&5
1606 rm -rf conftest*
1607 eval "ac_cv_lib_$ac_lib_var=no"
1608fi
1609rm -f conftest*
1610LIBS="$ac_save_LIBS"
1611
1612fi
1613if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1614 echo "$ac_t""yes" 1>&6
1615 LIB_M="-lm"
1616else
1617 echo "$ac_t""no" 1>&6
1618fi
1619 ;;
1620 *-*-hpux*) echo $ac_n "checking for floor in -lm""... $ac_c" 1>&6
1621echo "configure:1622: checking for floor in -lm" >&5
1622ac_lib_var=`echo m'_'floor | sed 'y%./+-%__p_%'`
1623if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1624 echo $ac_n "(cached) $ac_c" 1>&6
1625else
1626 ac_save_LIBS="$LIBS"
1627LIBS="-lm $LIBS"
1628cat > conftest.$ac_ext <<EOF
1629#line 1630 "configure"
1630#include "confdefs.h"
1631/* Override any gcc2 internal prototype to avoid an error. */
1632/* We use char because int might match the return type of a gcc2
1633 builtin and then its argument prototype would still apply. */
1634char floor();
1635
1636int main() {
1637floor()
1638; return 0; }
1639EOF
1640if { (eval echo configure:1641: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1641 rm -rf conftest*
1642 eval "ac_cv_lib_$ac_lib_var=yes"
1643else
1644 echo "configure: failed program was:" >&5
1645 cat conftest.$ac_ext >&5
1646 rm -rf conftest*
1647 eval "ac_cv_lib_$ac_lib_var=no"
1648fi
1649rm -f conftest*
1650LIBS="$ac_save_LIBS"
1651
1652fi
1653if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1654 echo "$ac_t""yes" 1>&6
1655 LIB_M="-lm"
1656else
1657 echo "$ac_t""no" 1>&6
1658fi
1659 ;;
1660
1661 *) echo $ac_n "checking for floor in -lm""... $ac_c" 1>&6
1662echo "configure:1663: checking for floor in -lm" >&5
1663ac_lib_var=`echo m'_'floor | sed 'y%./+-%__p_%'`
1664if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1665 echo $ac_n "(cached) $ac_c" 1>&6
1666else
1667 ac_save_LIBS="$LIBS"
1668LIBS="-lm $LIBS"
1669cat > conftest.$ac_ext <<EOF
1670#line 1671 "configure"
1671#include "confdefs.h"
1672/* Override any gcc2 internal prototype to avoid an error. */
1673/* We use char because int might match the return type of a gcc2
1674 builtin and then its argument prototype would still apply. */
1675char floor();
1676
1677int main() {
1678floor()
1679; return 0; }
1680EOF
1681if { (eval echo configure:1682: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1682 rm -rf conftest*
1683 eval "ac_cv_lib_$ac_lib_var=yes"
1684else
1685 echo "configure: failed program was:" >&5
1686 cat conftest.$ac_ext >&5
1687 rm -rf conftest*
1688 eval "ac_cv_lib_$ac_lib_var=no"
1689fi
1690rm -f conftest*
1691LIBS="$ac_save_LIBS"
1692
1693fi
1694if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1695 echo "$ac_t""yes" 1>&6
1696 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1697 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1698 cat >> confdefs.h <<EOF
1699#define $ac_tr_lib 1
1700EOF
1701
1702 LIBS="-lm $LIBS"
1703
1704else
1705 echo "$ac_t""no" 1>&6
1706fi
1707
1708 LIB_M="" ;;
1709esac
1710
1711
1712
1713if test $hpuxcma = false; then
1714 # Check whether --enable-hpuxcma or --disable-hpuxcma was given.
1715if test "${enable_hpuxcma+set}" = set; then
1716 enableval="$enable_hpuxcma"
1717 case "${enableval}" in
1718 yes) hpuxcma=true;;
1719 no) hpuxcma=false;;
1720 *) { echo "configure: error: bad value ${enableval} for --enable-hpuxcma" 1>&2; exit 1; } ;;
1721 esac
1722fi
1723
1724fi
1725
1726
1727
1728if test "$hpuxcma" = true; then
1729 HPUX_CMA_TRUE=
1730 HPUX_CMA_FALSE='#'
1731else
1732 HPUX_CMA_TRUE='#'
1733 HPUX_CMA_FALSE=
1734fi
1735
1736if test $hpuxcma = true; then
1737 case "${host}" in
1738 *-*-hpux*) hpuxcma=true ;;
1739 *) { echo "configure: error: --enable-hpuxcma is not valid on this platform ${host}" 1>&2; exit 1; } ;;
1740 esac
1741fi
1742
1743echo $ac_n "checking whether to build shared libraries""... $ac_c" 1>&6
1744echo "configure:1745: checking whether to build shared libraries" >&5
1745enabled=no
1746# Check whether --enable-shared or --disable-shared was given.
1747if test "${enable_shared+set}" = set; then
1748 enableval="$enable_shared"
1749 case "${enableval}" in
1750 yes|"") enabled=yes; ENABLE_SHARED=YES ;;
1751 no);;
1752 *) ;;
1753 esac
1754else
1755 enabled=yes; ENABLE_SHARED=YES
1756
1757fi
1758
1759echo "$ac_t""$enabled" 1>&6
1760
1761
1762echo $ac_n "checking whether to build static libraries""... $ac_c" 1>&6
1763echo "configure:1764: checking whether to build static libraries" >&5
1764enabled=no
1765# Check whether --enable-static or --disable-static was given.
1766if test "${enable_static+set}" = set; then
1767 enableval="$enable_static"
1768 case "${enableval}" in
1769 yes|"") enabled=yes; ENABLE_STATIC=YES ;;
1770 no) ;;
1771 *) ;;
1772 esac
1773fi
1774
1775echo "$ac_t""$enabled" 1>&6
1776
1777
1778# Extract the first word of "ranlib", so it can be a program name with args.
1779set dummy ranlib; ac_word=$2
1780echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1781echo "configure:1782: checking for $ac_word" >&5
1782if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1783 echo $ac_n "(cached) $ac_c" 1>&6
1784else
1785 if test -n "$RANLIB"; then
1786 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1787else
1788 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1789 ac_dummy="$PATH"
1790 for ac_dir in $ac_dummy; do
1791 test -z "$ac_dir" && ac_dir=.
1792 if test -f $ac_dir/$ac_word; then
1793 ac_cv_prog_RANLIB="ranlib"
1794 break
1795 fi
1796 done
1797 IFS="$ac_save_ifs"
1798 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1799fi
1800fi
1801RANLIB="$ac_cv_prog_RANLIB"
1802if test -n "$RANLIB"; then
1803 echo "$ac_t""$RANLIB" 1>&6
1804else
1805 echo "$ac_t""no" 1>&6
1806fi
1807
1808# Extract the first word of "ar", so it can be a program name with args.
1809set dummy ar; ac_word=$2
1810echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1811echo "configure:1812: checking for $ac_word" >&5
1812if eval "test \"`echo '$''{'ac_cv_path_AR'+set}'`\" = set"; then
1813 echo $ac_n "(cached) $ac_c" 1>&6
1814else
1815 case "$AR" in
1816 /*)
1817 ac_cv_path_AR="$AR" # Let the user override the test with a path.
1818 ;;
1819 ?:/*)
1820 ac_cv_path_AR="$AR" # Let the user override the test with a dos path.
1821 ;;
1822 *)
1823 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1824 ac_dummy="$PATH:/bin:/usr/bin:/usr/ccs/bin"
1825 for ac_dir in $ac_dummy; do
1826 test -z "$ac_dir" && ac_dir=.
1827 if test -f $ac_dir/$ac_word; then
1828 ac_cv_path_AR="$ac_dir/$ac_word"
1829 break
1830 fi
1831 done
1832 IFS="$ac_save_ifs"
1833 test -z "$ac_cv_path_AR" && ac_cv_path_AR="echo archiver ar not found re-run configure ; false"
1834 ;;
1835esac
1836fi
1837AR="$ac_cv_path_AR"
1838if test -n "$AR"; then
1839 echo "$ac_t""$AR" 1>&6
1840else
1841 echo "$ac_t""no" 1>&6
1842fi
1843
1844
1845echo $ac_n "checking whether to enable renaming of symbols""... $ac_c" 1>&6
1846echo "configure:1847: checking whether to enable renaming of symbols" >&5
1847enabled=yes
1848U_DISABLE_RENAMING=0
1849# Check whether --enable-renaming or --disable-renaming was given.
1850if test "${enable_renaming+set}" = set; then
1851 enableval="$enable_renaming"
1852 case "${enableval}" in
1853 yes|"") enabled=yes ;;
1854 no) enabled=no; U_DISABLE_RENAMING=1 ;;
1855 *) ;;
1856 esac
1857fi
1858
1859echo "$ac_t""$enabled" 1>&6
1860
1861
1862# Check whether --enable-rpath or --disable-rpath was given.
1863if test "${enable_rpath+set}" = set; then
1864 enableval="$enable_rpath"
1865 case "${enableval}" in
1866 yes|"") ENABLE_RPATH=YES ;;
1867 no) ;;
1868 *) ;;
1869 esac
1870else
1871 ENABLE_RPATH=NO
1872
1873fi
1874
1875
1876
1877
1878echo $ac_n "checking for definition of U_INLINE for C""... $ac_c" 1>&6
1879echo "configure:1880: checking for definition of U_INLINE for C" >&5
1880if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1881 echo $ac_n "(cached) $ac_c" 1>&6
1882else
1883 ac_cv_c_inline=no
1884for ac_kw in inline __inline__ __inline; do
1885 cat > conftest.$ac_ext <<EOF
1886#line 1887 "configure"
1887#include "confdefs.h"
1888
1889int main() {
1890} $ac_kw foo() {
1891; return 0; }
1892EOF
1893if { (eval echo configure:1894: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1894 rm -rf conftest*
1895 ac_cv_c_inline=$ac_kw; break
1896else
1897 echo "configure: failed program was:" >&5
1898 cat conftest.$ac_ext >&5
1899fi
1900rm -f conftest*
1901 done
1902
1903fi
1904
1905echo "$ac_t""$ac_cv_c_inline" 1>&6
1906case "$ac_cv_c_inline" in
1907 yes) U_INLINE= "inline" ;;
1908 no ) U_INLINE= ;;
1909 *) U_INLINE=$ac_cv_c_inline ;;
1910esac
1911
1912
1913threads=true
1914
1915# Check whether --enable-threads or --disable-threads was given.
1916if test "${enable_threads+set}" = set; then
1917 enableval="$enable_threads"
1918 case "${enableval}" in
1919 yes) threads=true ;;
1920 no) threads=false ;;
1921 *) { echo "configure: error: bad value ${enableval} for --enable-threads" 1>&2; exit 1; } ;;
1922 esac
1923else
1924 threads=true
1925fi
1926
1927
1928
1929if test "$threads" = true; then
1930 THREADS_TRUE=
1931 THREADS_FALSE='#'
1932else
1933 THREADS_TRUE='#'
1934 THREADS_FALSE=
1935fi
1936
1937ICU_USE_THREADS=0
1938
1939if test $threads = true; then
1940 if test $hpuxcma = true; then
1941 echo $ac_n "checking for pthread_create in -lcma""... $ac_c" 1>&6
1942echo "configure:1943: checking for pthread_create in -lcma" >&5
1943ac_lib_var=`echo cma'_'pthread_create | sed 'y%./+-%__p_%'`
1944if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1945 echo $ac_n "(cached) $ac_c" 1>&6
1946else
1947 ac_save_LIBS="$LIBS"
1948LIBS="-lcma $LIBS"
1949cat > conftest.$ac_ext <<EOF
1950#line 1951 "configure"
1951#include "confdefs.h"
1952/* Override any gcc2 internal prototype to avoid an error. */
1953/* We use char because int might match the return type of a gcc2
1954 builtin and then its argument prototype would still apply. */
1955char pthread_create();
1956
1957int main() {
1958pthread_create()
1959; return 0; }
1960EOF
1961if { (eval echo configure:1962: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1962 rm -rf conftest*
1963 eval "ac_cv_lib_$ac_lib_var=yes"
1964else
1965 echo "configure: failed program was:" >&5
1966 cat conftest.$ac_ext >&5
1967 rm -rf conftest*
1968 eval "ac_cv_lib_$ac_lib_var=no"
1969fi
1970rm -f conftest*
1971LIBS="$ac_save_LIBS"
1972
1973fi
1974if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1975 echo "$ac_t""yes" 1>&6
1976 ac_tr_lib=HAVE_LIB`echo cma | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1977 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1978 cat >> confdefs.h <<EOF
1979#define $ac_tr_lib 1
1980EOF
1981
1982 LIBS="-lcma $LIBS"
1983
1984else
1985 echo "$ac_t""no" 1>&6
1986fi
1987
1988 if test $ac_cv_lib_cma_pthread_create = yes; then
1989 ICU_USE_THREADS=1
1990 fi
1991 else
1992
1993 echo $ac_n "checking for pthread_attr_init in -lpthread""... $ac_c" 1>&6
1994echo "configure:1995: checking for pthread_attr_init in -lpthread" >&5
1995ac_lib_var=`echo pthread'_'pthread_attr_init | sed 'y%./+-%__p_%'`
1996if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1997 echo $ac_n "(cached) $ac_c" 1>&6
1998else
1999 ac_save_LIBS="$LIBS"
2000LIBS="-lpthread $LIBS"
2001cat > conftest.$ac_ext <<EOF
2002#line 2003 "configure"
2003#include "confdefs.h"
2004/* Override any gcc2 internal prototype to avoid an error. */
2005/* We use char because int might match the return type of a gcc2
2006 builtin and then its argument prototype would still apply. */
2007char pthread_attr_init();
2008
2009int main() {
2010pthread_attr_init()
2011; return 0; }
2012EOF
2013if { (eval echo configure:2014: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2014 rm -rf conftest*
2015 eval "ac_cv_lib_$ac_lib_var=yes"
2016else
2017 echo "configure: failed program was:" >&5
2018 cat conftest.$ac_ext >&5
2019 rm -rf conftest*
2020 eval "ac_cv_lib_$ac_lib_var=no"
2021fi
2022rm -f conftest*
2023LIBS="$ac_save_LIBS"
2024
2025fi
2026if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2027 echo "$ac_t""yes" 1>&6
2028 ac_tr_lib=HAVE_LIB`echo pthread | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2029 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2030 cat >> confdefs.h <<EOF
2031#define $ac_tr_lib 1
2032EOF
2033
2034 LIBS="-lpthread $LIBS"
2035
2036else
2037 echo "$ac_t""no" 1>&6
2038fi
2039
2040 if test $ac_cv_lib_pthread_pthread_attr_init = yes; then
2041 ICU_USE_THREADS=1
2042 else
2043
2044
2045echo $ac_n "checking for library containing pthread_mutex_destroy""... $ac_c" 1>&6
2046echo "configure:2047: checking for library containing pthread_mutex_destroy" >&5
2047if eval "test \"`echo '$''{'ac_cv_search_pthread_mutex_destroy'+set}'`\" = set"; then
2048 echo $ac_n "(cached) $ac_c" 1>&6
2049else
2050 ac_func_search_save_LIBS="$LIBS"
2051ac_cv_search_pthread_mutex_destroy="no"
2052for i in pthread pthreads c_r cma; do
2053LIBS="-l$i $ac_func_search_save_LIBS"
2054cat > conftest.$ac_ext <<EOF
2055#line 2056 "configure"
2056#include "confdefs.h"
2057/* Override any gcc2 internal prototype to avoid an error. */
2058/* We use char because int might match the return type of a gcc2
2059 builtin and then its argument prototype would still apply. */
2060char pthread_mutex_destroy();
2061
2062int main() {
2063pthread_mutex_destroy()
2064; return 0; }
2065EOF
2066if { (eval echo configure:2067: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2067 rm -rf conftest*
2068 ac_cv_search_pthread_mutex_destroy="-l$i"
2069break
2070else
2071 echo "configure: failed program was:" >&5
2072 cat conftest.$ac_ext >&5
2073fi
2074rm -f conftest*
2075done
2076if test "$ac_cv_search_pthread_mutex_destroy" = "no"; then
2077cat > conftest.$ac_ext <<EOF
2078#line 2079 "configure"
2079#include "confdefs.h"
2080/* Override any gcc2 internal prototype to avoid an error. */
2081/* We use char because int might match the return type of a gcc2
2082 builtin and then its argument prototype would still apply. */
2083char pthread_mutex_destroy();
2084
2085int main() {
2086pthread_mutex_destroy()
2087; return 0; }
2088EOF
2089if { (eval echo configure:2090: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2090 rm -rf conftest*
2091 ac_cv_search_pthread_mutex_destroy="none required"
2092else
2093 echo "configure: failed program was:" >&5
2094 cat conftest.$ac_ext >&5
2095fi
2096rm -f conftest*
2097fi
2098LIBS="$ac_func_search_save_LIBS"
2099fi
2100
2101echo "$ac_t""$ac_cv_search_pthread_mutex_destroy" 1>&6
2102if test "$ac_cv_search_pthread_mutex_destroy" != "no"; then
2103 test "$ac_cv_search_pthread_mutex_destroy" = "none required" || LIBS="$ac_cv_search_pthread_mutex_destroy $LIBS"
2104
2105else :
2106
2107fi
2108
2109 if test "$ac_cv_search_pthread_mutex_destroy" != no; then
2110 ICU_USE_THREADS=1
2111 else
2112 echo $ac_n "checking for pthread_mutex_init in -lpthread""... $ac_c" 1>&6
2113echo "configure:2114: checking for pthread_mutex_init in -lpthread" >&5
2114ac_lib_var=`echo pthread'_'pthread_mutex_init | sed 'y%./+-%__p_%'`
2115if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2116 echo $ac_n "(cached) $ac_c" 1>&6
2117else
2118 ac_save_LIBS="$LIBS"
2119LIBS="-lpthread $LIBS"
2120cat > conftest.$ac_ext <<EOF
2121#line 2122 "configure"
2122#include "confdefs.h"
2123/* Override any gcc2 internal prototype to avoid an error. */
2124/* We use char because int might match the return type of a gcc2
2125 builtin and then its argument prototype would still apply. */
2126char pthread_mutex_init();
2127
2128int main() {
2129pthread_mutex_init()
2130; return 0; }
2131EOF
2132if { (eval echo configure:2133: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2133 rm -rf conftest*
2134 eval "ac_cv_lib_$ac_lib_var=yes"
2135else
2136 echo "configure: failed program was:" >&5
2137 cat conftest.$ac_ext >&5
2138 rm -rf conftest*
2139 eval "ac_cv_lib_$ac_lib_var=no"
2140fi
2141rm -f conftest*
2142LIBS="$ac_save_LIBS"
2143
2144fi
2145if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2146 echo "$ac_t""yes" 1>&6
2147 ac_tr_lib=HAVE_LIB`echo pthread | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2148 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2149 cat >> confdefs.h <<EOF
2150#define $ac_tr_lib 1
2151EOF
2152
2153 LIBS="-lpthread $LIBS"
2154
2155else
2156 echo "$ac_t""no" 1>&6
2157fi
2158
2159 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
2160 ICU_USE_THREADS=1
2161 fi
2162 fi
2163
2164 echo $ac_n "checking for pthread_mutex_lock""... $ac_c" 1>&6
2165echo "configure:2166: checking for pthread_mutex_lock" >&5
2166if eval "test \"`echo '$''{'ac_cv_func_pthread_mutex_lock'+set}'`\" = set"; then
2167 echo $ac_n "(cached) $ac_c" 1>&6
2168else
2169 cat > conftest.$ac_ext <<EOF
2170#line 2171 "configure"
2171#include "confdefs.h"
2172/* System header to define __stub macros and hopefully few prototypes,
2173 which can conflict with char pthread_mutex_lock(); below. */
2174#include <assert.h>
2175/* Override any gcc2 internal prototype to avoid an error. */
2176/* We use char because int might match the return type of a gcc2
2177 builtin and then its argument prototype would still apply. */
2178char pthread_mutex_lock();
2179
2180int main() {
2181
2182/* The GNU C library defines this for functions which it implements
2183 to always fail with ENOSYS. Some functions are actually named
2184 something starting with __ and the normal name is an alias. */
2185#if defined (__stub_pthread_mutex_lock) || defined (__stub___pthread_mutex_lock)
2186choke me
2187#else
2188pthread_mutex_lock();
2189#endif
2190
2191; return 0; }
2192EOF
2193if { (eval echo configure:2194: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2194 rm -rf conftest*
2195 eval "ac_cv_func_pthread_mutex_lock=yes"
2196else
2197 echo "configure: failed program was:" >&5
2198 cat conftest.$ac_ext >&5
2199 rm -rf conftest*
2200 eval "ac_cv_func_pthread_mutex_lock=no"
2201fi
2202rm -f conftest*
2203fi
2204
2205if eval "test \"`echo '$ac_cv_func_'pthread_mutex_lock`\" = yes"; then
2206 echo "$ac_t""yes" 1>&6
2207 :
2208else
2209 echo "$ac_t""no" 1>&6
2210fi
2211
2212
2213 if test $ac_cv_func_pthread_mutex_lock = yes; then
2214 ICU_USE_THREADS=1
2215 fi
2216 fi
2217 fi
2218fi
2219
2220
2221
2222
2223# The AC_FUNC_MMAP macro doesn't work properly. It seems to be too specific.
2224# Do this check instead.
2225HAVE_MMAP=0
2226echo $ac_n "checking for mmap""... $ac_c" 1>&6
2227echo "configure:2228: checking for mmap" >&5
2228if eval "test \"`echo '$''{'ac_cv_func_mmap_ok'+set}'`\" = set"; then
2229 echo $ac_n "(cached) $ac_c" 1>&6
2230else
2231 cat > conftest.$ac_ext <<EOF
2232#line 2233 "configure"
2233#include "confdefs.h"
2234
2235#include <unistd.h>
2236#include <sys/mman.h>
2237#include <sys/stat.h>
2238#include <fcntl.h>
2239
2240int main() {
2241 mmap((void *)0, 0, PROT_READ, 0, 0, 0);
2242; return 0; }
2243EOF
2244if { (eval echo configure:2245: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2245 rm -rf conftest*
2246 ac_cv_func_mmap_ok=yes
2247else
2248 echo "configure: failed program was:" >&5
2249 cat conftest.$ac_ext >&5
2250 rm -rf conftest*
2251 ac_cv_func_mmap_ok=no
2252fi
2253rm -f conftest*
2254fi
2255
2256echo "$ac_t""$ac_cv_func_mmap_ok" 1>&6
2257if test $ac_cv_func_mmap_ok = yes
2258then
2259 HAVE_MMAP=1
2260fi
2261
2262
2263echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2264echo "configure:2265: checking how to run the C preprocessor" >&5
2265# On Suns, sometimes $CPP names a directory.
2266if test -n "$CPP" && test -d "$CPP"; then
2267 CPP=
2268fi
2269if test -z "$CPP"; then
2270if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2271 echo $ac_n "(cached) $ac_c" 1>&6
2272else
2273 # This must be in double quotes, not single quotes, because CPP may get
2274 # substituted into the Makefile and "${CC-cc}" will confuse make.
2275 CPP="${CC-cc} -E"
2276 # On the NeXT, cc -E runs the code through the compiler's parser,
2277 # not just through cpp.
2278 cat > conftest.$ac_ext <<EOF
2279#line 2280 "configure"
2280#include "confdefs.h"
2281#include <assert.h>
2282Syntax Error
2283EOF
2284ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2285{ (eval echo configure:2286: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2286ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2287if test -z "$ac_err"; then
2288 :
2289else
2290 echo "$ac_err" >&5
2291 echo "configure: failed program was:" >&5
2292 cat conftest.$ac_ext >&5
2293 rm -rf conftest*
2294 CPP="${CC-cc} -E -traditional-cpp"
2295 cat > conftest.$ac_ext <<EOF
2296#line 2297 "configure"
2297#include "confdefs.h"
2298#include <assert.h>
2299Syntax Error
2300EOF
2301ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2302{ (eval echo configure:2303: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2303ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2304if test -z "$ac_err"; then
2305 :
2306else
2307 echo "$ac_err" >&5
2308 echo "configure: failed program was:" >&5
2309 cat conftest.$ac_ext >&5
2310 rm -rf conftest*
2311 CPP="${CC-cc} -nologo -E"
2312 cat > conftest.$ac_ext <<EOF
2313#line 2314 "configure"
2314#include "confdefs.h"
2315#include <assert.h>
2316Syntax Error
2317EOF
2318ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2319{ (eval echo configure:2320: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2320ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2321if test -z "$ac_err"; then
2322 :
2323else
2324 echo "$ac_err" >&5
2325 echo "configure: failed program was:" >&5
2326 cat conftest.$ac_ext >&5
2327 rm -rf conftest*
2328 CPP=/lib/cpp
2329fi
2330rm -f conftest*
2331fi
2332rm -f conftest*
2333fi
2334rm -f conftest*
2335 ac_cv_prog_CPP="$CPP"
2336fi
2337 CPP="$ac_cv_prog_CPP"
2338else
2339 ac_cv_prog_CPP="$CPP"
2340fi
2341echo "$ac_t""$CPP" 1>&6
2342
2343for ac_hdr in inttypes.h
2344do
2345ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2346echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2347echo "configure:2348: checking for $ac_hdr" >&5
2348if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2349 echo $ac_n "(cached) $ac_c" 1>&6
2350else
2351 cat > conftest.$ac_ext <<EOF
2352#line 2353 "configure"
2353#include "confdefs.h"
2354#include <$ac_hdr>
2355EOF
2356ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2357{ (eval echo configure:2358: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2358ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2359if test -z "$ac_err"; then
2360 rm -rf conftest*
2361 eval "ac_cv_header_$ac_safe=yes"
2362else
2363 echo "$ac_err" >&5
2364 echo "configure: failed program was:" >&5
2365 cat conftest.$ac_ext >&5
2366 rm -rf conftest*
2367 eval "ac_cv_header_$ac_safe=no"
2368fi
2369rm -f conftest*
2370fi
2371if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2372 echo "$ac_t""yes" 1>&6
2373 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2374 cat >> confdefs.h <<EOF
2375#define $ac_tr_hdr 1
2376EOF
2377
2378else
2379 echo "$ac_t""no" 1>&6
2380fi
2381done
2382
2383if test $ac_cv_header_inttypes_h = no; then
2384 U_HAVE_INTTYPES_H=0
2385else
2386 U_HAVE_INTTYPES_H=1
2387fi
2388if test "$CC" = ccc; then
2389 echo "$ac_t"""C compiler set to CCC ${CC}" " 1>&6
2390 case "${host}" in
2391 alpha*-*-*) U_HAVE_INTTYPES_H=0;
2392 esac
2393fi
2394
2395
2396
2397# Check whether --with-iostream or --without-iostream was given.
2398if test "${with_iostream+set}" = set; then
2399 withval="$with_iostream"
2400 case "${withval}" in
2401 none) streams=none ;;
2402 old) streams=198506 ;;
2403 std) streams=199711 ;;
2404 auto) streams= ;;
2405 *) { echo "configure: error: bad value ${withval} for --with-iostream" 1>&2; exit 1; } ;;
2406 esac
2407else
2408 streams=
2409fi
2410
2411
2412U_IOSTREAM_SOURCE=0
2413if test x$streams != xnone
2414then
2415
2416 ac_ext=C
2417# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2418ac_cpp='$CXXCPP $CPPFLAGS'
2419ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2420ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2421cross_compiling=$ac_cv_prog_cxx_cross
2422
2423 echo $ac_n "checking iostream usability""... $ac_c" 1>&6
2424echo "configure:2425: checking iostream usability" >&5
2425 cat > conftest.$ac_ext <<EOF
2426#line 2427 "configure"
2427#include "confdefs.h"
2428#include <iostream>
2429int main() {
2430
2431; return 0; }
2432EOF
2433if { (eval echo configure:2434: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2434 rm -rf conftest*
2435 ac_cv_header_iostream=yes
2436else
2437 echo "configure: failed program was:" >&5
2438 cat conftest.$ac_ext >&5
2439 rm -rf conftest*
2440 ac_cv_header_iostream=no
2441fi
2442rm -f conftest*
2443 echo "$ac_t""$ac_cv_header_iostream" 1>&6
2444 if test $ac_cv_header_iostream = yes
2445 then
2446 U_IOSTREAM_SOURCE=199711
2447 else
2448 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
2449echo "configure:2450: checking how to run the C++ preprocessor" >&5
2450if test -z "$CXXCPP"; then
2451if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
2452 echo $ac_n "(cached) $ac_c" 1>&6
2453else
2454 ac_ext=C
2455# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2456ac_cpp='$CXXCPP $CPPFLAGS'
2457ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2458ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2459cross_compiling=$ac_cv_prog_cxx_cross
2460 CXXCPP="${CXX-g++} -E"
2461 cat > conftest.$ac_ext <<EOF
2462#line 2463 "configure"
2463#include "confdefs.h"
2464#include <stdlib.h>
2465EOF
2466ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2467{ (eval echo configure:2468: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2468ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2469if test -z "$ac_err"; then
2470 :
2471else
2472 echo "$ac_err" >&5
2473 echo "configure: failed program was:" >&5
2474 cat conftest.$ac_ext >&5
2475 rm -rf conftest*
2476 CXXCPP=/lib/cpp
2477fi
2478rm -f conftest*
2479 ac_cv_prog_CXXCPP="$CXXCPP"
2480ac_ext=C
2481# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2482ac_cpp='$CXXCPP $CPPFLAGS'
2483ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2484ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2485cross_compiling=$ac_cv_prog_cxx_cross
2486fi
2487fi
2488CXXCPP="$ac_cv_prog_CXXCPP"
2489echo "$ac_t""$CXXCPP" 1>&6
2490
2491ac_safe=`echo "iostream.h" | sed 'y%./+-%__p_%'`
2492echo $ac_n "checking for iostream.h""... $ac_c" 1>&6
2493echo "configure:2494: checking for iostream.h" >&5
2494if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2495 echo $ac_n "(cached) $ac_c" 1>&6
2496else
2497 cat > conftest.$ac_ext <<EOF
2498#line 2499 "configure"
2499#include "confdefs.h"
2500#include <iostream.h>
2501EOF
2502ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2503{ (eval echo configure:2504: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2504ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2505if test -z "$ac_err"; then
2506 rm -rf conftest*
2507 eval "ac_cv_header_$ac_safe=yes"
2508else
2509 echo "$ac_err" >&5
2510 echo "configure: failed program was:" >&5
2511 cat conftest.$ac_ext >&5
2512 rm -rf conftest*
2513 eval "ac_cv_header_$ac_safe=no"
2514fi
2515rm -f conftest*
2516fi
2517if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2518 echo "$ac_t""yes" 1>&6
2519 :
2520else
2521 echo "$ac_t""no" 1>&6
2522fi
2523
2524 if test $ac_cv_header_iostream_h = yes; then
2525 echo $ac_n "checking whether ostream is really defined""... $ac_c" 1>&6
2526echo "configure:2527: checking whether ostream is really defined" >&5
2527 if eval "test \"`echo '$''{'ac_cv_iostream_ok'+set}'`\" = set"; then
2528 echo $ac_n "(cached) $ac_c" 1>&6
2529else
2530 cat > conftest.$ac_ext <<EOF
2531#line 2532 "configure"
2532#include "confdefs.h"
2533#include <iostream.h>
2534int main() {
2535ostream &testout = cout; testout << "test" << endl;
2536; return 0; }
2537EOF
2538if { (eval echo configure:2539: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2539 rm -rf conftest*
2540 ac_cv_iostream_ok=yes
2541else
2542 echo "configure: failed program was:" >&5
2543 cat conftest.$ac_ext >&5
2544 rm -rf conftest*
2545 ac_cv_iostream_ok=no
2546fi
2547rm -f conftest*
2548fi
2549
2550 echo "$ac_t""$ac_cv_iostream_ok" 1>&6
2551 if test $ac_cv_iostream_ok = yes
2552 then
2553 U_IOSTREAM_SOURCE=198506
2554 fi
2555 fi
2556 fi
2557 if test x$streams != x
2558 then
2559 if test $U_IOSTREAM_SOURCE -ge $streams
2560 then
2561 U_IOSTREAM_SOURCE=$streams
2562 else
2563 { echo "configure: error: ${withval} iostream is not available" 1>&2; exit 1; }
2564 fi
2565 fi
2566fi
2567
2568ac_ext=c
2569# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2570ac_cpp='$CPP $CPPFLAGS'
2571ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2572ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2573cross_compiling=$ac_cv_prog_cc_cross
2574
2575
2576echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
2577echo "configure:2578: checking whether byte ordering is bigendian" >&5
2578if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
2579 echo $ac_n "(cached) $ac_c" 1>&6
2580else
2581 ac_cv_c_bigendian=unknown
2582# See if sys/param.h defines the BYTE_ORDER macro.
2583cat > conftest.$ac_ext <<EOF
2584#line 2585 "configure"
2585#include "confdefs.h"
2586#include <sys/types.h>
2587#include <sys/param.h>
2588int main() {
2589
2590#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2591 bogus endian macros
2592#endif
2593; return 0; }
2594EOF
2595if { (eval echo configure:2596: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2596 rm -rf conftest*
2597 # It does; now see whether it defined to BIG_ENDIAN or not.
2598cat > conftest.$ac_ext <<EOF
2599#line 2600 "configure"
2600#include "confdefs.h"
2601#include <sys/types.h>
2602#include <sys/param.h>
2603int main() {
2604
2605#if BYTE_ORDER != BIG_ENDIAN
2606 not big endian
2607#endif
2608; return 0; }
2609EOF
2610if { (eval echo configure:2611: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2611 rm -rf conftest*
2612 ac_cv_c_bigendian=yes
2613else
2614 echo "configure: failed program was:" >&5
2615 cat conftest.$ac_ext >&5
2616 rm -rf conftest*
2617 ac_cv_c_bigendian=no
2618fi
2619rm -f conftest*
2620else
2621 echo "configure: failed program was:" >&5
2622 cat conftest.$ac_ext >&5
2623fi
2624rm -f conftest*
2625if test $ac_cv_c_bigendian = unknown; then
2626if test "$cross_compiling" = yes; then
2627 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2628else
2629 cat > conftest.$ac_ext <<EOF
2630#line 2631 "configure"
2631#include "confdefs.h"
2632main () {
2633 /* Are we little or big endian? From Harbison&Steele. */
2634 union
2635 {
2636 long l;
2637 char c[sizeof (long)];
2638 } u;
2639 u.l = 1;
2640 exit (u.c[sizeof (long) - 1] == 1);
2641}
2642EOF
2643if { (eval echo configure:2644: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2644then
2645 ac_cv_c_bigendian=no
2646else
2647 echo "configure: failed program was:" >&5
2648 cat conftest.$ac_ext >&5
2649 rm -fr conftest*
2650 ac_cv_c_bigendian=yes
2651fi
2652rm -fr conftest*
2653fi
2654
2655fi
2656fi
2657
2658echo "$ac_t""$ac_cv_c_bigendian" 1>&6
2659if test $ac_cv_c_bigendian = yes; then
2660 cat >> confdefs.h <<\EOF
2661#define WORDS_BIGENDIAN 1
2662EOF
2663
2664fi
2665
2666if test $ac_cv_c_bigendian = no; then
2667U_IS_BIG_ENDIAN=0
2668U_ENDIAN_CHAR="l"
2669else
2670U_IS_BIG_ENDIAN=1
2671U_ENDIAN_CHAR="b"
2672fi
2673
2674
2675U_HAVE_NL_LANGINFO_CODESET=0
2676U_NL_LANGINFO_CODESET=-1
2677echo $ac_n "checking for nl_langinfo""... $ac_c" 1>&6
2678echo "configure:2679: checking for nl_langinfo" >&5
2679if eval "test \"`echo '$''{'ac_cv_func_nl_langinfo'+set}'`\" = set"; then
2680 echo $ac_n "(cached) $ac_c" 1>&6
2681else
2682 cat > conftest.$ac_ext <<EOF
2683#line 2684 "configure"
2684#include "confdefs.h"
2685/* System header to define __stub macros and hopefully few prototypes,
2686 which can conflict with char nl_langinfo(); below. */
2687#include <assert.h>
2688/* Override any gcc2 internal prototype to avoid an error. */
2689/* We use char because int might match the return type of a gcc2
2690 builtin and then its argument prototype would still apply. */
2691char nl_langinfo();
2692
2693int main() {
2694
2695/* The GNU C library defines this for functions which it implements
2696 to always fail with ENOSYS. Some functions are actually named
2697 something starting with __ and the normal name is an alias. */
2698#if defined (__stub_nl_langinfo) || defined (__stub___nl_langinfo)
2699choke me
2700#else
2701nl_langinfo();
2702#endif
2703
2704; return 0; }
2705EOF
2706if { (eval echo configure:2707: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2707 rm -rf conftest*
2708 eval "ac_cv_func_nl_langinfo=yes"
2709else
2710 echo "configure: failed program was:" >&5
2711 cat conftest.$ac_ext >&5
2712 rm -rf conftest*
2713 eval "ac_cv_func_nl_langinfo=no"
2714fi
2715rm -f conftest*
2716fi
2717
2718if eval "test \"`echo '$ac_cv_func_'nl_langinfo`\" = yes"; then
2719 echo "$ac_t""yes" 1>&6
2720 U_HAVE_NL_LANGINFO=1
2721else
2722 echo "$ac_t""no" 1>&6
2723U_HAVE_NL_LANGINFO=0
2724fi
2725
2726
2727if test $U_HAVE_NL_LANGINFO -eq 1; then
2728 echo $ac_n "checking for nl_langinfo's argument to obtain the codeset""... $ac_c" 1>&6
2729echo "configure:2730: checking for nl_langinfo's argument to obtain the codeset" >&5
2730if eval "test \"`echo '$''{'ac_cv_nl_langinfo_codeset'+set}'`\" = set"; then
2731 echo $ac_n "(cached) $ac_c" 1>&6
2732else
2733 ac_cv_nl_langinfo_codeset="unknown"
2734 for a in CODESET _NL_CTYPE_CODESET_NAME; do
2735 cat > conftest.$ac_ext <<EOF
2736#line 2737 "configure"
2737#include "confdefs.h"
2738#include <langinfo.h>
2739int main() {
2740nl_langinfo($a);
2741; return 0; }
2742EOF
2743if { (eval echo configure:2744: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2744 rm -rf conftest*
2745 ac_cv_nl_langinfo_codeset="$a"; break
2746else
2747 echo "configure: failed program was:" >&5
2748 cat conftest.$ac_ext >&5
2749fi
2750rm -f conftest*
2751 done
2752fi
2753
2754echo "$ac_t""$ac_cv_nl_langinfo_codeset" 1>&6
2755 if test x$ac_cv_nl_langinfo_codeset != xunknown
2756 then
2757 U_HAVE_NL_LANGINFO_CODESET=1
2758 U_NL_LANGINFO_CODESET=$ac_cv_nl_langinfo_codeset
2759 fi
2760fi
2761
2762
2763
2764ac_ext=C
2765# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2766ac_cpp='$CXXCPP $CPPFLAGS'
2767ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2768ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2769cross_compiling=$ac_cv_prog_cxx_cross
2770
2771echo $ac_n "checking for namespace support""... $ac_c" 1>&6
2772echo "configure:2773: checking for namespace support" >&5
2773if eval "test \"`echo '$''{'ac_cv_namespace_ok'+set}'`\" = set"; then
2774 echo $ac_n "(cached) $ac_c" 1>&6
2775else
2776 cat > conftest.$ac_ext <<EOF
2777#line 2778 "configure"
2778#include "confdefs.h"
2779 namespace x_version {void f(){}};
2780 namespace x = x_version;
2781 using namespace x_version;
2782
2783int main() {
2784 f();
2785; return 0; }
2786EOF
2787if { (eval echo configure:2788: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2788 rm -rf conftest*
2789 ac_cv_namespace_ok=yes
2790else
2791 echo "configure: failed program was:" >&5
2792 cat conftest.$ac_ext >&5
2793 rm -rf conftest*
2794 ac_cv_namespace_ok=no
2795fi
2796rm -f conftest*
2797fi
2798
2799echo "$ac_t""$ac_cv_namespace_ok" 1>&6
2800U_HAVE_NAMESPACE=1
2801if test $ac_cv_namespace_ok = no
2802then
2803 U_HAVE_NAMESPACE=0
2804fi
2805
2806
2807echo $ac_n "checking for properly overriding new and delete""... $ac_c" 1>&6
2808echo "configure:2809: checking for properly overriding new and delete" >&5
2809U_OVERRIDE_CXX_ALLOCATION=0
2810U_HAVE_PLACEMENT_NEW=0
2811if eval "test \"`echo '$''{'ac_cv_override_cxx_allocation_ok'+set}'`\" = set"; then
2812 echo $ac_n "(cached) $ac_c" 1>&6
2813else
2814 cat > conftest.$ac_ext <<EOF
2815#line 2816 "configure"
2816#include "confdefs.h"
2817 #include <stdlib.h>
2818 class UObject {
2819 void *operator new(size_t size) {return malloc(size);}
2820 void *operator new[](size_t size) {return malloc(size);}
2821 void operator delete(void *p) {free(p);}
2822 void operator delete[](void *p) {free(p);}
2823 };
2824
2825int main() {
2826
2827; return 0; }
2828EOF
2829if { (eval echo configure:2830: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2830 rm -rf conftest*
2831 ac_cv_override_cxx_allocation_ok=yes
2832else
2833 echo "configure: failed program was:" >&5
2834 cat conftest.$ac_ext >&5
2835 rm -rf conftest*
2836 ac_cv_override_cxx_allocation_ok=no
2837fi
2838rm -f conftest*
2839fi
2840
2841echo "$ac_t""$ac_cv_override_cxx_allocation_ok" 1>&6
2842if test $ac_cv_override_cxx_allocation_ok = yes
2843then
2844 U_OVERRIDE_CXX_ALLOCATION=1
2845 echo $ac_n "checking for placement new and delete""... $ac_c" 1>&6
2846echo "configure:2847: checking for placement new and delete" >&5
2847 if eval "test \"`echo '$''{'ac_cv_override_placement_new_ok'+set}'`\" = set"; then
2848 echo $ac_n "(cached) $ac_c" 1>&6
2849else
2850 cat > conftest.$ac_ext <<EOF
2851#line 2852 "configure"
2852#include "confdefs.h"
2853 #include <stdlib.h>
2854 class UObject {
2855 void *operator new(size_t size) {return malloc(size);}
2856 void *operator new[](size_t size) {return malloc(size);}
2857 void operator delete(void *p) {free(p);}
2858 void operator delete[](void *p) {free(p);}
2859 void * operator new(size_t, void *ptr) { return ptr; }
2860 void operator delete(void *, void *) {}
2861 };
2862
2863int main() {
2864
2865; return 0; }
2866EOF
2867if { (eval echo configure:2868: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2868 rm -rf conftest*
2869 ac_cv_override_placement_new_ok=yes
2870else
2871 echo "configure: failed program was:" >&5
2872 cat conftest.$ac_ext >&5
2873 rm -rf conftest*
2874 ac_cv_override_placement_new_ok=no
2875fi
2876rm -f conftest*
2877fi
2878
2879 echo "$ac_t""$ac_cv_override_placement_new_ok" 1>&6
2880 if test $ac_cv_override_placement_new_ok = yes
2881 then
2882 U_HAVE_PLACEMENT_NEW=1
2883 fi
2884fi
2885
2886
2887
2888ac_ext=c
2889# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2890ac_cpp='$CPP $CPPFLAGS'
2891ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2892ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2893cross_compiling=$ac_cv_prog_cc_cross
2894
2895echo $ac_n "checking for popen""... $ac_c" 1>&6
2896echo "configure:2897: checking for popen" >&5
2897if eval "test \"`echo '$''{'ac_cv_func_popen'+set}'`\" = set"; then
2898 echo $ac_n "(cached) $ac_c" 1>&6
2899else
2900 cat > conftest.$ac_ext <<EOF
2901#line 2902 "configure"
2902#include "confdefs.h"
2903/* System header to define __stub macros and hopefully few prototypes,
2904 which can conflict with char popen(); below. */
2905#include <assert.h>
2906/* Override any gcc2 internal prototype to avoid an error. */
2907/* We use char because int might match the return type of a gcc2
2908 builtin and then its argument prototype would still apply. */
2909char popen();
2910
2911int main() {
2912
2913/* The GNU C library defines this for functions which it implements
2914 to always fail with ENOSYS. Some functions are actually named
2915 something starting with __ and the normal name is an alias. */
2916#if defined (__stub_popen) || defined (__stub___popen)
2917choke me
2918#else
2919popen();
2920#endif
2921
2922; return 0; }
2923EOF
2924if { (eval echo configure:2925: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2925 rm -rf conftest*
2926 eval "ac_cv_func_popen=yes"
2927else
2928 echo "configure: failed program was:" >&5
2929 cat conftest.$ac_ext >&5
2930 rm -rf conftest*
2931 eval "ac_cv_func_popen=no"
2932fi
2933rm -f conftest*
2934fi
2935
2936if eval "test \"`echo '$ac_cv_func_'popen`\" = yes"; then
2937 echo "$ac_t""yes" 1>&6
2938 :
2939else
2940 echo "$ac_t""no" 1>&6
2941fi
2942
2943if test x$ac_cv_func_popen = xyes
2944then
2945 U_HAVE_POPEN=1
2946else
2947 U_HAVE_POPEN=0
2948fi
2949
2950
2951echo $ac_n "checking for tzset""... $ac_c" 1>&6
2952echo "configure:2953: checking for tzset" >&5
2953if eval "test \"`echo '$''{'ac_cv_func_tzset'+set}'`\" = set"; then
2954 echo $ac_n "(cached) $ac_c" 1>&6
2955else
2956 cat > conftest.$ac_ext <<EOF
2957#line 2958 "configure"
2958#include "confdefs.h"
2959/* System header to define __stub macros and hopefully few prototypes,
2960 which can conflict with char tzset(); below. */
2961#include <assert.h>
2962/* Override any gcc2 internal prototype to avoid an error. */
2963/* We use char because int might match the return type of a gcc2
2964 builtin and then its argument prototype would still apply. */
2965char tzset();
2966
2967int main() {
2968
2969/* The GNU C library defines this for functions which it implements
2970 to always fail with ENOSYS. Some functions are actually named
2971 something starting with __ and the normal name is an alias. */
2972#if defined (__stub_tzset) || defined (__stub___tzset)
2973choke me
2974#else
2975tzset();
2976#endif
2977
2978; return 0; }
2979EOF
2980if { (eval echo configure:2981: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2981 rm -rf conftest*
2982 eval "ac_cv_func_tzset=yes"
2983else
2984 echo "configure: failed program was:" >&5
2985 cat conftest.$ac_ext >&5
2986 rm -rf conftest*
2987 eval "ac_cv_func_tzset=no"
2988fi
2989rm -f conftest*
2990fi
2991
2992if eval "test \"`echo '$ac_cv_func_'tzset`\" = yes"; then
2993 echo "$ac_t""yes" 1>&6
2994 :
2995else
2996 echo "$ac_t""no" 1>&6
2997fi
2998
2999if test x$ac_cv_func_tzset = xyes
3000then
3001 U_TZSET=tzset
3002else
3003 echo $ac_n "checking for _tzset""... $ac_c" 1>&6
3004echo "configure:3005: checking for _tzset" >&5
3005if eval "test \"`echo '$''{'ac_cv_func__tzset'+set}'`\" = set"; then
3006 echo $ac_n "(cached) $ac_c" 1>&6
3007else
3008 cat > conftest.$ac_ext <<EOF
3009#line 3010 "configure"
3010#include "confdefs.h"
3011/* System header to define __stub macros and hopefully few prototypes,
3012 which can conflict with char _tzset(); below. */
3013#include <assert.h>
3014/* Override any gcc2 internal prototype to avoid an error. */
3015/* We use char because int might match the return type of a gcc2
3016 builtin and then its argument prototype would still apply. */
3017char _tzset();
3018
3019int main() {
3020
3021/* The GNU C library defines this for functions which it implements
3022 to always fail with ENOSYS. Some functions are actually named
3023 something starting with __ and the normal name is an alias. */
3024#if defined (__stub__tzset) || defined (__stub____tzset)
3025choke me
3026#else
3027_tzset();
3028#endif
3029
3030; return 0; }
3031EOF
3032if { (eval echo configure:3033: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3033 rm -rf conftest*
3034 eval "ac_cv_func__tzset=yes"
3035else
3036 echo "configure: failed program was:" >&5
3037 cat conftest.$ac_ext >&5
3038 rm -rf conftest*
3039 eval "ac_cv_func__tzset=no"
3040fi
3041rm -f conftest*
3042fi
3043
3044if eval "test \"`echo '$ac_cv_func_'_tzset`\" = yes"; then
3045 echo "$ac_t""yes" 1>&6
3046 :
3047else
3048 echo "$ac_t""no" 1>&6
3049fi
3050
3051 if test x$ac_cv_func__tzset = xyes
3052 then
3053 U_TZSET=_tzset
3054 fi
3055fi
3056
3057echo $ac_n "checking for tzname""... $ac_c" 1>&6
3058echo "configure:3059: checking for tzname" >&5
3059if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then
3060 echo $ac_n "(cached) $ac_c" 1>&6
3061else
3062 cat > conftest.$ac_ext <<EOF
3063#line 3064 "configure"
3064#include "confdefs.h"
3065#ifndef __USE_POSIX
3066#define __USE_POSIX
3067#endif
3068#include <time.h>
3069#ifndef tzname /* For SGI. */
3070extern char *tzname[]; /* RS6000 and others reject char **tzname. */
3071#endif
3072int main() {
3073atoi(*tzname);
3074; return 0; }
3075EOF
3076if { (eval echo configure:3077: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3077 rm -rf conftest*
3078 ac_cv_var_tzname=yes
3079else
3080 echo "configure: failed program was:" >&5
3081 cat conftest.$ac_ext >&5
3082 rm -rf conftest*
3083 ac_cv_var_tzname=no
3084fi
3085rm -f conftest*
3086fi
3087
3088echo "$ac_t""$ac_cv_var_tzname" 1>&6
3089if test $ac_cv_var_tzname = yes; then
3090 U_TZNAME=tzname
3091else
3092 echo $ac_n "checking for _tzname""... $ac_c" 1>&6
3093echo "configure:3094: checking for _tzname" >&5
3094if eval "test \"`echo '$''{'ac_cv_var__tzname'+set}'`\" = set"; then
3095 echo $ac_n "(cached) $ac_c" 1>&6
3096else
3097 cat > conftest.$ac_ext <<EOF
3098#line 3099 "configure"
3099#include "confdefs.h"
3100 #include <time.h>
3101 extern char *_tzname[];
3102
3103int main() {
3104 atoi(*_tzname);
3105; return 0; }
3106EOF
3107if { (eval echo configure:3108: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3108 rm -rf conftest*
3109 ac_cv_var__tzname=yes
3110else
3111 echo "configure: failed program was:" >&5
3112 cat conftest.$ac_ext >&5
3113 rm -rf conftest*
3114 ac_cv_var__tzname=no
3115fi
3116rm -f conftest*
3117fi
3118
3119echo "$ac_t""$ac_cv_var__tzname" 1>&6
3120 if test $ac_cv_var__tzname = yes; then
3121 U_TZNAME=_tzname
3122 fi
3123fi
3124
3125
3126echo $ac_n "checking for timezone""... $ac_c" 1>&6
3127echo "configure:3128: checking for timezone" >&5
3128if eval "test \"`echo '$''{'ac_cv_var_timezone'+set}'`\" = set"; then
3129 echo $ac_n "(cached) $ac_c" 1>&6
3130else
3131 cat > conftest.$ac_ext <<EOF
3132#line 3133 "configure"
3133#include "confdefs.h"
3134#ifndef __USE_POSIX
3135#define __USE_POSIX
3136#endif
3137#ifndef __USE_XOPEN
3138#define __USE_XOPEN
3139#endif
3140#include <time.h>
3141
3142int main() {
3143timezone = 1;
3144; return 0; }
3145EOF
3146if { (eval echo configure:3147: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3147 rm -rf conftest*
3148 ac_cv_var_timezone=yes
3149else
3150 echo "configure: failed program was:" >&5
3151 cat conftest.$ac_ext >&5
3152 rm -rf conftest*
3153 ac_cv_var_timezone=no
3154fi
3155rm -f conftest*
3156fi
3157
3158echo "$ac_t""$ac_cv_var_timezone" 1>&6
3159U_HAVE_TIMEZONE=0
3160if test $ac_cv_var_timezone = yes; then
3161 U_TIMEZONE=timezone
3162 U_HAVE_TIMEZONE=1
3163else
3164 echo $ac_n "checking for __timezone""... $ac_c" 1>&6
3165echo "configure:3166: checking for __timezone" >&5
3166if eval "test \"`echo '$''{'ac_cv_var___timezone'+set}'`\" = set"; then
3167 echo $ac_n "(cached) $ac_c" 1>&6
3168else
3169 cat > conftest.$ac_ext <<EOF
3170#line 3171 "configure"
3171#include "confdefs.h"
3172 #include <time.h>
3173
3174int main() {
3175 __timezone = 1;
3176; return 0; }
3177EOF
3178if { (eval echo configure:3179: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3179 rm -rf conftest*
3180 ac_cv_var___timezone=yes
3181else
3182 echo "configure: failed program was:" >&5
3183 cat conftest.$ac_ext >&5
3184 rm -rf conftest*
3185 ac_cv_var___timezone=no
3186fi
3187rm -f conftest*
3188fi
3189
3190echo "$ac_t""$ac_cv_var___timezone" 1>&6
3191 if test $ac_cv_var___timezone = yes; then
3192 U_TIMEZONE=__timezone
3193 U_HAVE_TIMEZONE=1
3194 else
3195 echo $ac_n "checking for _timezone""... $ac_c" 1>&6
3196echo "configure:3197: checking for _timezone" >&5
3197if eval "test \"`echo '$''{'ac_cv_var__timezone'+set}'`\" = set"; then
3198 echo $ac_n "(cached) $ac_c" 1>&6
3199else
3200 cat > conftest.$ac_ext <<EOF
3201#line 3202 "configure"
3202#include "confdefs.h"
3203 #include <time.h>
3204
3205int main() {
3206 _timezone = 1;
3207; return 0; }
3208EOF
3209if { (eval echo configure:3210: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3210 rm -rf conftest*
3211 ac_cv_var__timezone=yes
3212else
3213 echo "configure: failed program was:" >&5
3214 cat conftest.$ac_ext >&5
3215 rm -rf conftest*
3216 ac_cv_var__timezone=no
3217fi
3218rm -f conftest*
3219fi
3220
3221echo "$ac_t""$ac_cv_var__timezone" 1>&6
3222 if test $ac_cv_var__timezone = yes; then
3223 U_TIMEZONE=_timezone
3224 U_HAVE_TIMEZONE=1
3225 fi
3226 fi
3227fi
3228
3229
3230
3231echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
3232echo "configure:3233: checking for ANSI C header files" >&5
3233if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
3234 echo $ac_n "(cached) $ac_c" 1>&6
3235else
3236 cat > conftest.$ac_ext <<EOF
3237#line 3238 "configure"
3238#include "confdefs.h"
3239#include <stdlib.h>
3240#include <stdarg.h>
3241#include <string.h>
3242#include <float.h>
3243EOF
3244ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3245{ (eval echo configure:3246: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3246ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3247if test -z "$ac_err"; then
3248 rm -rf conftest*
3249 ac_cv_header_stdc=yes
3250else
3251 echo "$ac_err" >&5
3252 echo "configure: failed program was:" >&5
3253 cat conftest.$ac_ext >&5
3254 rm -rf conftest*
3255 ac_cv_header_stdc=no
3256fi
3257rm -f conftest*
3258
3259if test $ac_cv_header_stdc = yes; then
3260 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3261cat > conftest.$ac_ext <<EOF
3262#line 3263 "configure"
3263#include "confdefs.h"
3264#include <string.h>
3265EOF
3266if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3267 egrep "memchr" >/dev/null 2>&1; then
3268 :
3269else
3270 rm -rf conftest*
3271 ac_cv_header_stdc=no
3272fi
3273rm -f conftest*
3274
3275fi
3276
3277if test $ac_cv_header_stdc = yes; then
3278 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3279cat > conftest.$ac_ext <<EOF
3280#line 3281 "configure"
3281#include "confdefs.h"
3282#include <stdlib.h>
3283EOF
3284if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3285 egrep "free" >/dev/null 2>&1; then
3286 :
3287else
3288 rm -rf conftest*
3289 ac_cv_header_stdc=no
3290fi
3291rm -f conftest*
3292
3293fi
3294
3295if test $ac_cv_header_stdc = yes; then
3296 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3297if test "$cross_compiling" = yes; then
3298 :
3299else
3300 cat > conftest.$ac_ext <<EOF
3301#line 3302 "configure"
3302#include "confdefs.h"
3303#include <ctype.h>
3304#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3305#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3306#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3307int main () { int i; for (i = 0; i < 256; i++)
3308if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
3309exit (0); }
3310
3311EOF
3312if { (eval echo configure:3313: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3313then
3314 :
3315else
3316 echo "configure: failed program was:" >&5
3317 cat conftest.$ac_ext >&5
3318 rm -fr conftest*
3319 ac_cv_header_stdc=no
3320fi
3321rm -fr conftest*
3322fi
3323
3324fi
3325fi
3326
3327echo "$ac_t""$ac_cv_header_stdc" 1>&6
3328if test $ac_cv_header_stdc = yes; then
3329 cat >> confdefs.h <<\EOF
3330#define STDC_HEADERS 1
3331EOF
3332
3333fi
3334
3335echo $ac_n "checking for int8_t""... $ac_c" 1>&6
3336echo "configure:3337: checking for int8_t" >&5
3337if eval "test \"`echo '$''{'ac_cv_type_int8_t'+set}'`\" = set"; then
3338 echo $ac_n "(cached) $ac_c" 1>&6
3339else
3340 cat > conftest.$ac_ext <<EOF
3341#line 3342 "configure"
3342#include "confdefs.h"
3343#include <sys/types.h>
3344#if STDC_HEADERS
3345#include <stdlib.h>
3346#include <stddef.h>
3347#endif
3348EOF
3349if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3350 egrep "(^|[^a-zA-Z_0-9])int8_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3351 rm -rf conftest*
3352 ac_cv_type_int8_t=yes
3353else
3354 rm -rf conftest*
3355 ac_cv_type_int8_t=no
3356fi
3357rm -f conftest*
3358
3359fi
3360echo "$ac_t""$ac_cv_type_int8_t" 1>&6
3361if test $ac_cv_type_int8_t = no; then
3362 cat >> confdefs.h <<\EOF
3363#define int8_t signed char
3364EOF
3365
3366fi
3367
3368echo $ac_n "checking for uint8_t""... $ac_c" 1>&6
3369echo "configure:3370: checking for uint8_t" >&5
3370if eval "test \"`echo '$''{'ac_cv_type_uint8_t'+set}'`\" = set"; then
3371 echo $ac_n "(cached) $ac_c" 1>&6
3372else
3373 cat > conftest.$ac_ext <<EOF
3374#line 3375 "configure"
3375#include "confdefs.h"
3376#include <sys/types.h>
3377#if STDC_HEADERS
3378#include <stdlib.h>
3379#include <stddef.h>
3380#endif
3381EOF
3382if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3383 egrep "(^|[^a-zA-Z_0-9])uint8_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3384 rm -rf conftest*
3385 ac_cv_type_uint8_t=yes
3386else
3387 rm -rf conftest*
3388 ac_cv_type_uint8_t=no
3389fi
3390rm -f conftest*
3391
3392fi
3393echo "$ac_t""$ac_cv_type_uint8_t" 1>&6
3394if test $ac_cv_type_uint8_t = no; then
3395 cat >> confdefs.h <<\EOF
3396#define uint8_t unsigned char
3397EOF
3398
3399fi
3400
3401echo $ac_n "checking for int16_t""... $ac_c" 1>&6
3402echo "configure:3403: checking for int16_t" >&5
3403if eval "test \"`echo '$''{'ac_cv_type_int16_t'+set}'`\" = set"; then
3404 echo $ac_n "(cached) $ac_c" 1>&6
3405else
3406 cat > conftest.$ac_ext <<EOF
3407#line 3408 "configure"
3408#include "confdefs.h"
3409#include <sys/types.h>
3410#if STDC_HEADERS
3411#include <stdlib.h>
3412#include <stddef.h>
3413#endif
3414EOF
3415if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3416 egrep "(^|[^a-zA-Z_0-9])int16_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3417 rm -rf conftest*
3418 ac_cv_type_int16_t=yes
3419else
3420 rm -rf conftest*
3421 ac_cv_type_int16_t=no
3422fi
3423rm -f conftest*
3424
3425fi
3426echo "$ac_t""$ac_cv_type_int16_t" 1>&6
3427if test $ac_cv_type_int16_t = no; then
3428 cat >> confdefs.h <<\EOF
3429#define int16_t signed short
3430EOF
3431
3432fi
3433
3434echo $ac_n "checking for uint16_t""... $ac_c" 1>&6
3435echo "configure:3436: checking for uint16_t" >&5
3436if eval "test \"`echo '$''{'ac_cv_type_uint16_t'+set}'`\" = set"; then
3437 echo $ac_n "(cached) $ac_c" 1>&6
3438else
3439 cat > conftest.$ac_ext <<EOF
3440#line 3441 "configure"
3441#include "confdefs.h"
3442#include <sys/types.h>
3443#if STDC_HEADERS
3444#include <stdlib.h>
3445#include <stddef.h>
3446#endif
3447EOF
3448if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3449 egrep "(^|[^a-zA-Z_0-9])uint16_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3450 rm -rf conftest*
3451 ac_cv_type_uint16_t=yes
3452else
3453 rm -rf conftest*
3454 ac_cv_type_uint16_t=no
3455fi
3456rm -f conftest*
3457
3458fi
3459echo "$ac_t""$ac_cv_type_uint16_t" 1>&6
3460if test $ac_cv_type_uint16_t = no; then
3461 cat >> confdefs.h <<\EOF
3462#define uint16_t unsigned short
3463EOF
3464
3465fi
3466
3467echo $ac_n "checking for int32_t""... $ac_c" 1>&6
3468echo "configure:3469: checking for int32_t" >&5
3469if eval "test \"`echo '$''{'ac_cv_type_int32_t'+set}'`\" = set"; then
3470 echo $ac_n "(cached) $ac_c" 1>&6
3471else
3472 cat > conftest.$ac_ext <<EOF
3473#line 3474 "configure"
3474#include "confdefs.h"
3475#include <sys/types.h>
3476#if STDC_HEADERS
3477#include <stdlib.h>
3478#include <stddef.h>
3479#endif
3480EOF
3481if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3482 egrep "(^|[^a-zA-Z_0-9])int32_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3483 rm -rf conftest*
3484 ac_cv_type_int32_t=yes
3485else
3486 rm -rf conftest*
3487 ac_cv_type_int32_t=no
3488fi
3489rm -f conftest*
3490
3491fi
3492echo "$ac_t""$ac_cv_type_int32_t" 1>&6
3493if test $ac_cv_type_int32_t = no; then
3494 cat >> confdefs.h <<\EOF
3495#define int32_t signed long
3496EOF
3497
3498fi
3499
3500echo $ac_n "checking for uint32_t""... $ac_c" 1>&6
3501echo "configure:3502: checking for uint32_t" >&5
3502if eval "test \"`echo '$''{'ac_cv_type_uint32_t'+set}'`\" = set"; then
3503 echo $ac_n "(cached) $ac_c" 1>&6
3504else
3505 cat > conftest.$ac_ext <<EOF
3506#line 3507 "configure"
3507#include "confdefs.h"
3508#include <sys/types.h>
3509#if STDC_HEADERS
3510#include <stdlib.h>
3511#include <stddef.h>
3512#endif
3513EOF
3514if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3515 egrep "(^|[^a-zA-Z_0-9])uint32_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3516 rm -rf conftest*
3517 ac_cv_type_uint32_t=yes
3518else
3519 rm -rf conftest*
3520 ac_cv_type_uint32_t=no
3521fi
3522rm -f conftest*
3523
3524fi
3525echo "$ac_t""$ac_cv_type_uint32_t" 1>&6
3526if test $ac_cv_type_uint32_t = no; then
3527 cat >> confdefs.h <<\EOF
3528#define uint32_t unsigned long
3529EOF
3530
3531fi
3532
3533echo $ac_n "checking for int64_t""... $ac_c" 1>&6
3534echo "configure:3535: checking for int64_t" >&5
3535if eval "test \"`echo '$''{'ac_cv_type_int64_t'+set}'`\" = set"; then
3536 echo $ac_n "(cached) $ac_c" 1>&6
3537else
3538 cat > conftest.$ac_ext <<EOF
3539#line 3540 "configure"
3540#include "confdefs.h"
3541#include <sys/types.h>
3542#if STDC_HEADERS
3543#include <stdlib.h>
3544#include <stddef.h>
3545#endif
3546EOF
3547if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3548 egrep "(^|[^a-zA-Z_0-9])int64_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3549 rm -rf conftest*
3550 ac_cv_type_int64_t=yes
3551else
3552 rm -rf conftest*
3553 ac_cv_type_int64_t=no
3554fi
3555rm -f conftest*
3556
3557fi
3558echo "$ac_t""$ac_cv_type_int64_t" 1>&6
3559if test $ac_cv_type_int64_t = no; then
3560 cat >> confdefs.h <<\EOF
3561#define int64_t signed long long
3562EOF
3563
3564fi
3565
3566echo $ac_n "checking for uint64_t""... $ac_c" 1>&6
3567echo "configure:3568: checking for uint64_t" >&5
3568if eval "test \"`echo '$''{'ac_cv_type_uint64_t'+set}'`\" = set"; then
3569 echo $ac_n "(cached) $ac_c" 1>&6
3570else
3571 cat > conftest.$ac_ext <<EOF
3572#line 3573 "configure"
3573#include "confdefs.h"
3574#include <sys/types.h>
3575#if STDC_HEADERS
3576#include <stdlib.h>
3577#include <stddef.h>
3578#endif
3579EOF
3580if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3581 egrep "(^|[^a-zA-Z_0-9])uint64_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3582 rm -rf conftest*
3583 ac_cv_type_uint64_t=yes
3584else
3585 rm -rf conftest*
3586 ac_cv_type_uint64_t=no
3587fi
3588rm -f conftest*
3589
3590fi
3591echo "$ac_t""$ac_cv_type_uint64_t" 1>&6
3592if test $ac_cv_type_uint64_t = no; then
3593 cat >> confdefs.h <<\EOF
3594#define uint64_t unsigned long long
3595EOF
3596
3597fi
3598
3599
3600if test $ac_cv_type_int8_t = no; then
3601HAVE_INT8_T=0
3602else
3603HAVE_INT8_T=1
3604fi
3605
3606
3607if test $ac_cv_type_uint8_t = no; then
3608HAVE_UINT8_T=0
3609else
3610HAVE_UINT8_T=1
3611fi
3612
3613
3614if test $ac_cv_type_int16_t = no; then
3615HAVE_INT16_T=0
3616else
3617HAVE_INT16_T=1
3618fi
3619
3620
3621if test $ac_cv_type_uint16_t = no; then
3622HAVE_UINT16_T=0
3623else
3624HAVE_UINT16_T=1
3625fi
3626
3627
3628if test $ac_cv_type_int32_t = no; then
3629HAVE_INT32_T=0
3630else
3631HAVE_INT32_T=1
3632fi
3633
3634
3635if test $ac_cv_type_uint32_t = no; then
3636HAVE_UINT32_T=0
3637else
3638HAVE_UINT32_T=1
3639fi
3640
3641
3642if test $ac_cv_type_int64_t = no; then
3643HAVE_INT64_T=0
3644else
3645HAVE_INT64_T=1
3646fi
3647
3648
3649if test $ac_cv_type_uint64_t = no; then
3650HAVE_UINT64_T=0
3651else
3652HAVE_UINT64_T=1
3653fi
3654
3655
3656ac_safe=`echo "wchar.h" | sed 'y%./+-%__p_%'`
3657echo $ac_n "checking for wchar.h""... $ac_c" 1>&6
3658echo "configure:3659: checking for wchar.h" >&5
3659if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3660 echo $ac_n "(cached) $ac_c" 1>&6
3661else
3662 cat > conftest.$ac_ext <<EOF
3663#line 3664 "configure"
3664#include "confdefs.h"
3665#include <wchar.h>
3666EOF
3667ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3668{ (eval echo configure:3669: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3669ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3670if test -z "$ac_err"; then
3671 rm -rf conftest*
3672 eval "ac_cv_header_$ac_safe=yes"
3673else
3674 echo "$ac_err" >&5
3675 echo "configure: failed program was:" >&5
3676 cat conftest.$ac_ext >&5
3677 rm -rf conftest*
3678 eval "ac_cv_header_$ac_safe=no"
3679fi
3680rm -f conftest*
3681fi
3682if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3683 echo "$ac_t""yes" 1>&6
3684 :
3685else
3686 echo "$ac_t""no" 1>&6
3687fi
3688
3689if test "$ac_cv_header_wchar_h" = no
3690then
3691 U_HAVE_WCHAR_H=0
3692 U_HAVE_WCSCPY=0
3693else
3694 cat >> confdefs.h <<\EOF
3695#define HAVE_WCHAR_H 1
3696EOF
3697
3698 U_HAVE_WCHAR_H=1
3699
3700echo $ac_n "checking for library containing wcscpy""... $ac_c" 1>&6
3701echo "configure:3702: checking for library containing wcscpy" >&5
3702if eval "test \"`echo '$''{'ac_cv_search_wcscpy'+set}'`\" = set"; then
3703 echo $ac_n "(cached) $ac_c" 1>&6
3704else
3705 ac_func_search_save_LIBS="$LIBS"
3706ac_cv_search_wcscpy="no"
3707cat > conftest.$ac_ext <<EOF
3708#line 3709 "configure"
3709#include "confdefs.h"
3710/* Override any gcc2 internal prototype to avoid an error. */
3711/* We use char because int might match the return type of a gcc2
3712 builtin and then its argument prototype would still apply. */
3713char wcscpy();
3714
3715int main() {
3716wcscpy()
3717; return 0; }
3718EOF
3719if { (eval echo configure:3720: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3720 rm -rf conftest*
3721 ac_cv_search_wcscpy="none required"
3722else
3723 echo "configure: failed program was:" >&5
3724 cat conftest.$ac_ext >&5
3725fi
3726rm -f conftest*
3727test "$ac_cv_search_wcscpy" = "no" && for i in wcs w; do
3728LIBS="-l$i $ac_func_search_save_LIBS"
3729cat > conftest.$ac_ext <<EOF
3730#line 3731 "configure"
3731#include "confdefs.h"
3732/* Override any gcc2 internal prototype to avoid an error. */
3733/* We use char because int might match the return type of a gcc2
3734 builtin and then its argument prototype would still apply. */
3735char wcscpy();
3736
3737int main() {
3738wcscpy()
3739; return 0; }
3740EOF
3741if { (eval echo configure:3742: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3742 rm -rf conftest*
3743 ac_cv_search_wcscpy="-l$i"
3744break
3745else
3746 echo "configure: failed program was:" >&5
3747 cat conftest.$ac_ext >&5
3748fi
3749rm -f conftest*
3750done
3751LIBS="$ac_func_search_save_LIBS"
3752fi
3753
3754echo "$ac_t""$ac_cv_search_wcscpy" 1>&6
3755if test "$ac_cv_search_wcscpy" != "no"; then
3756 test "$ac_cv_search_wcscpy" = "none required" || LIBS="$ac_cv_search_wcscpy $LIBS"
3757
3758else :
3759
3760fi
3761 if test "$ac_cv_search_wcscpy" != no; then
3762 U_HAVE_WCSCPY=1
3763 else
3764 U_HAVE_WCSCPY=0
3765 fi
3766fi
3767
3768
3769
3770ac_default_sizeof_wchar_t=4
3771echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6
3772echo "configure:3773: checking size of wchar_t" >&5
3773if eval "test \"`echo '$''{'ac_cv_sizeof_wchar_t'+set}'`\" = set"; then
3774 echo $ac_n "(cached) $ac_c" 1>&6
3775else
3776 if test "$cross_compiling" = yes; then
3777 ac_cv_sizeof_wchar_t=$ac_default_sizeof_wchar_t
3778else
3779 cat > conftest.$ac_ext <<EOF
3780#line 3781 "configure"
3781#include "confdefs.h"
3782#if STDC_HEADERS
3783#include <stddef.h>
3784#endif
3785#if HAVE_WCHAR_H
3786#include <string.h>
3787#include <wchar.h>
3788#endif
3789#include <stdio.h>
3790main()
3791{
3792 FILE *f=fopen("conftestval", "w");
3793 if (!f) exit(1);
3794 fprintf(f, "%d\n", sizeof(wchar_t));
3795 exit(0);
3796}
3797EOF
3798if { (eval echo configure:3799: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3799then
3800 ac_cv_sizeof_wchar_t=`cat conftestval`
3801else
3802 echo "configure: failed program was:" >&5
3803 cat conftest.$ac_ext >&5
3804 rm -fr conftest*
3805 ac_cv_sizeof_wchar_t=0
3806fi
3807rm -fr conftest*
3808fi
3809
3810fi
3811echo "$ac_t""$ac_cv_sizeof_wchar_t" 1>&6
3812cat >> confdefs.h <<EOF
3813#define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
3814EOF
3815
3816
3817U_SIZEOF_WCHAR_T=$ac_cv_sizeof_wchar_t
3818if test $U_SIZEOF_WCHAR_T = 0; then
3819 if test $U_HAVE_WCHAR_H=1; then
3820 { echo "configure: error: There is wchar.h but the size of wchar_t is 0" 1>&2; exit 1; }
3821 fi
3822fi
3823
3824
3825ECHO_N=$ac_n
3826ECHO_C=$ac_c
3827
3828
3829
3830# Check whether --enable-extras or --disable-extras was given.
3831if test "${enable_extras+set}" = set; then
3832 enableval="$enable_extras"
3833 case "${enableval}" in
3834 yes) extras=true ;;
3835 no) extras=false ;;
3836 *) { echo "configure: error: bad value ${enableval} for --enable-extras" 1>&2; exit 1; } ;;
3837 esac
3838else
3839 extras=true
3840fi
3841
3842
3843
3844if test "$extras" = true; then
3845 EXTRAS_TRUE=
3846 EXTRAS_FALSE='#'
3847else
3848 EXTRAS_TRUE='#'
3849 EXTRAS_FALSE=
3850fi
3851# Check whether --enable-extras or --disable-extras was given.
3852if test "${enable_extras+set}" = set; then
3853 enableval="$enable_extras"
3854 case "${enableval}" in
3855 yes) ustdio=true ;;
3856 no) ustdio=false ;;
3857 *) { echo "configure: error: bad value ${enableval} for --enable-ustdio" 1>&2; exit 1; } ;;
3858 esac
3859else
3860 ustdio=true
3861fi
3862
3863
3864
3865if test "$ustdio" = true; then
3866 USTDIO_TRUE=
3867 USTDIO_FALSE='#'
3868else
3869 USTDIO_TRUE='#'
3870 USTDIO_FALSE=
3871fi
3872
3873# Check whether --enable-layout or --disable-layout was given.
3874if test "${enable_layout+set}" = set; then
3875 enableval="$enable_layout"
3876 case "${enableval}" in
3877 yes) layout=true ;;
3878 no) layout=false ;;
3879 *) { echo "configure: error: bad value ${enableval} for --enable-layout" 1>&2; exit 1; } ;;
3880 esac
3881else
3882 layout=true
3883fi
3884
3885
3886
3887if test "$layout" = true; then
3888 LAYOUT_TRUE=
3889 LAYOUT_FALSE='#'
3890else
3891 LAYOUT_TRUE='#'
3892 LAYOUT_FALSE=
3893fi
3894
3895# Check whether --with-data-packaging or --without-data-packaging was given.
3896if test "${with_data_packaging+set}" = set; then
3897 withval="$with_data_packaging"
3898 case "${withval}" in
3899 files|archive|library) datapackaging=$withval ;;
3900 auto) datapackaging=$withval ;;
3901 common) datapackaging=archive ;;
3902 dll) datapackaging=library ;;
3903 *) { echo "configure: error: bad value ${withval} for --with-iostream" 1>&2; exit 1; } ;;
3904 esac
3905else
3906 datapackaging=
3907fi
3908
3909
3910thesysconfdir=`eval echo $sysconfdir`
3911
3912thedatadir=`eval echo $datadir`
3913
3914thelibdir=`test "x$exec_prefix" = xNONE && exec_prefix="$prefix"; eval echo $libdir`
3915
3916case $datapackaging in
3917 common)
3918 pkgicudatadir=$datadir
3919 thepkgicudatadir=$thedatadir
3920 ;;
3921 *)
3922 pkgicudatadir=$libdir
3923 thepkgicudatadir=$thelibdir
3924 ;;
3925esac
3926
3927
3928
3929
3930# Check whether --enable-mapped or --disable-mapped was given.
3931if test "${enable_mapped+set}" = set; then
3932 enableval="$enable_mapped"
3933 case "${enableval}" in
3934 yes) mapped=archive ;;
3935 no) mapped=library ;;
3936 *) { echo "configure: error: bad value ${enableval} for --enable-mapped; use --with-data-packaging now" 1>&2; exit 1; } ;;
3937 esac
3938else
3939 mapped=
3940fi
3941
3942
3943if test x"$mapped" != x; then
3944 case $mapped in
3945 archive)
3946 echo "configure: warning: use --with-data-packaging=archive instead of --enable-mapped" 1>&2
3947 ;;
3948 library)
3949 echo "configure: warning: use --with-data-packaging=library instead of --disable-mapped" 1>&2
3950 ;;
3951 esac
3952 if test x"$datapackaging" != x -a x"$mapped" != x"$datapackaging"; then
3953 { echo "configure: error: conflicting values used for --with-data-packaging and deprecated --enable-mapped" 1>&2; exit 1; }
3954 fi
3955 datapackaging=$mapped
3956fi
3957
3958if test x"$datapackaging" = x -o x"$datapackaging" = xauto; then
3959 datapackaging=library
3960fi
3961
3962case "$datapackaging" in
3963 files)
3964 DATA_PACKAGING_CPPFLAGS=-DUDATA_FILES
3965 DATA_PACKAGING_MODE=files
3966 ;;
3967 archive)
3968 DATA_PACKAGING_CPPFLAGS=-DUDATA_MAP
3969 DATA_PACKAGING_MODE=common
3970 ;;
3971 library)
3972 DATA_PACKAGING_CPPFLAGS=-DUDATA_DLL
3973 DATA_PACKAGING_MODE=dll
3974 ;;
3975esac
3976
3977
3978
3979echo $ac_n "checking for a library suffix to use""... $ac_c" 1>&6
3980echo "configure:3981: checking for a library suffix to use" >&5
3981# Check whether --with-library-suffix or --without-library-suffix was given.
3982if test "${with_library_suffix+set}" = set; then
3983 withval="$with_library_suffix"
3984 ICULIBSUFFIX="${withval}"
3985else
3986 ICULIBSUFFIX=
3987fi
3988
3989msg=$ICULIBSUFFIX
3990if test "$msg" = ""; then
3991 msg=none
3992fi
3993echo "$ac_t""$msg" 1>&6
3994
3995if test "$ICULIBSUFFIX" != ""
3996then
3997 U_HAVE_LIB_SUFFIX=1
3998 ICULIBSUFFIXCNAME=`echo _$ICULIBSUFFIX | sed 's/[^A-Za-z0-9_]/_/g'`
3999else
4000 U_HAVE_LIB_SUFFIX=0
4001fi
4002
4003
4004
4005# Check whether --enable-tests or --disable-tests was given.
4006if test "${enable_tests+set}" = set; then
4007 enableval="$enable_tests"
4008 case "${enableval}" in
4009 yes) tests=true ;;
4010 no) tests=false ;;
4011 *) { echo "configure: error: bad value ${enableval} for --enable-tests" 1>&2; exit 1; } ;;
4012 esac
4013else
4014 tests=true
4015fi
4016
4017
4018
4019if test "$tests" = true; then
4020 TESTS_TRUE=
4021 TESTS_FALSE='#'
4022else
4023 TESTS_TRUE='#'
4024 TESTS_FALSE=
4025fi
4026
4027# Check whether --enable-samples or --disable-samples was given.
4028if test "${enable_samples+set}" = set; then
4029 enableval="$enable_samples"
4030 case "${enableval}" in
4031 yes) samples=true ;;
4032 no) samples=false ;;
4033 *) { echo "configure: error: bad value ${enableval} for --enable-samples" 1>&2; exit 1; } ;;
4034 esac
4035else
4036 samples=true
4037fi
4038
4039
4040
4041if test "$samples" = true; then
4042 SAMPLES_TRUE=
4043 SAMPLES_FALSE='#'
4044else
4045 SAMPLES_TRUE='#'
4046 SAMPLES_FALSE=
4047fi
4048
4049ICUDATA_CHAR=$U_ENDIAN_CHAR
4050
4051case "${host}" in
4052 *-*-solaris*) platform=U_SOLARIS ;;
4053 *-*-linux*) platform=U_LINUX ;;
4054 *-*-*bsd*) platform=U_BSD ;;
4055 *-*-aix*) platform=AIX ;;
4056 *-*-hpux*) platform=HPUX ;;
4057 *-apple-darwin*|*-apple-rhapsody*) platform=U_DARWIN ;;
4058 *-*-cygwin*|*-*-mingw*) platform=U_CYGWIN ;;
4059 *-*ibm-openedition*|*-*-os390*) platform=OS390
4060 ICUDATA_CHAR="e" ;;
4061 *-*-os400*) platform=OS400
4062 ICUDATA_CHAR="e" ;;
4063 *-*-nto*) platform=U_QNX ;;
4064 *-dec-osf*) platform=U_OSF ;;
4065 *-*-irix*) platform=IRIX ;;
4066 *-sequent-*) platform=PTX ;;
4067 *) platform=U_UNKNOWN_PLATFORM ;;
4068esac
4069
4070
4071platform_make_fragment_name="$icu_cv_host_frag"
4072platform_make_fragment='$(top_srcdir)/config/'"$platform_make_fragment_name"
4073
4074
4075
4076case "${host}" in
4077 *-*-solaris*) ld_rpath_suf=":" ;;
4078 *-*-linux*) ld_rpath_suf=" " ;;
4079 *-*-*bsd*) ld_rpath_suf=" " ;;
4080 *-*-aix*) ld_rpath_suf="" ;;
4081 *-*-hpux*) ld_rpath_suf=":" ;;
4082 *-*ibm-openedition*|*-*-os390*) ld_rpath_suf="" ;;
4083 *-*-os400*) ld_rpath_suf=" " ;;
4084 *-sequent-*) ld_rpath_suf="" ;;
4085 *-*-irix*) ld_rpath_suf=" " ;;
4086 *) ld_rpath_suf="" ;;
4087esac
4088
4089
4090case "${host}" in
4091 *-*-hpux*)
4092 if test "$ac_cv_prog_gcc" != yes; then
4093 for file in samples/date/date \
4094 samples/cal/cal test/cintltst/cintltst \
4095 tools/makeconv/makeconv tools/genrb/genrb \
4096 tools/genrb/derb tools/genccode/genccode \
4097 tools/gencmn/gencmn tools/gencmn/decmn \
4098 tools/gencnval/gencnval tools/gennorm/gennorm \
4099 tools/gennames/gennames tools/gentest/gentest \
4100 tools/pkgdata/pkgdata tools/genprops/genprops \
4101 tools/genidna/genidna
4102 do
4103 if test -f $file.c; then
4104 mv $file.c $file.cpp
4105 else
4106 echo "# $file.c does not exist or is already renamed [warning]"
4107 fi
4108 done
4109 fi
4110 ;;
4111esac
4112
4113if test "${FORCE_LIBS}" != ""; then
4114 echo " *** Overriding automatically chosen LIBS=$LIBS, using instead FORCE_LIBS=${FORCE_LIBS}" 1>&6
4115 LIBS=${FORCE_LIBS}
4116fi
4117
4118
4119if test "${AIX_SHLIB}" != ""; then
4120 echo " *** setting AIX_SHLIB (AIX only) to ${AIX_SHLIB}]" 1>&6
4121else
4122 AIX_SHLIB=makeC++SharedLib_r
4123fi
4124
4125
4126
4127
4128if test $hpuxcma = true; then
4129 CPPFLAGS="${CPPFLAGS} -D_PTHREADS_DRAFT4 -DHPUX_CMA"
4130fi
4131
4132
4133if test $ICU_USE_THREADS -ne 0
4134then
4135 CPPFLAGS="$CPPFLAGS \$(THREADSCPPFLAGS)"
4136 CFLAGS="$CFLAGS \$(THREADSCFLAGS)"
4137 CXXFLAGS="$CXXFLAGS \$(THREADSCXXFLAGS)"
4138fi
4139
4140if test "$ac_cv_lib_dld_shl_load" = "yes"; then
4141 CPPFLAGS="${CPPFLAGS} -DICU_USE_SHL_LOAD"
4142fi
4143
4144
4145if test "$ac_cv_func_dllload" = "yes"; then
4146 CPPFLAGS="${CPPFLAGS} -DICU_USE_SHL_LOAD"
4147fi
4148
4149trap '' 1 2 15
4150cat > confcache <<\EOF
4151# This file is a shell script that caches the results of configure
4152# tests run on this system so they can be shared between configure
4153# scripts and configure runs. It is not useful on other systems.
4154# If it contains results you don't want to keep, you may remove or edit it.
4155#
4156# By default, configure uses ./config.cache as the cache file,
4157# creating it if it does not exist already. You can give configure
4158# the --cache-file=FILE option to use a different cache file; that is
4159# what configure does when it calls configure scripts in
4160# subdirectories, so they share the cache.
4161# Giving --cache-file=/dev/null disables caching, for debugging configure.
4162# config.status only pays attention to the cache file if you give it the
4163# --recheck option to rerun configure.
4164#
4165EOF
4166# The following way of writing the cache mishandles newlines in values,
4167# but we know of no workaround that is simple, portable, and efficient.
4168# So, don't put newlines in cache variables' values.
4169# Ultrix sh set writes to stderr and can't be redirected directly,
4170# and sets the high bit in the cache file unless we assign to the vars.
4171(set) 2>&1 |
4172 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4173 *ac_space=\ *)
4174 # `set' does not quote correctly, so add quotes (double-quote substitution
4175 # turns \\\\ into \\, and sed turns \\ into \).
4176 sed -n \
4177 -e "s/'/'\\\\''/g" \
4178 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
4179 ;;
4180 *)
4181 # `set' quotes correctly as required by POSIX, so do not add quotes.
4182 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
4183 ;;
4184 esac >> confcache
4185if cmp -s $cache_file confcache; then
4186 :
4187else
4188 if test -w $cache_file; then
4189 echo "updating cache $cache_file"
4190 cat confcache > $cache_file
4191 else
4192 echo "not updating unwritable cache $cache_file"
4193 fi
4194fi
4195rm -f confcache
4196
4197trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
4198
4199test "x$prefix" = xNONE && prefix=$ac_default_prefix
4200# Let make expand exec_prefix.
4201test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4202
4203# Any assignment to VPATH causes Sun make to only execute
4204# the first set of double-colon rules, so remove it if not needed.
4205# If there is a colon in the path, we need to keep it.
4206if test "x$srcdir" = x.; then
4207 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
4208fi
4209
4210trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
4211
4212DEFS=-DHAVE_CONFIG_H
4213
4214# Without the "./", some shells look in PATH for config.status.
4215: ${CONFIG_STATUS=./config.status}
4216
4217echo creating $CONFIG_STATUS
4218rm -f $CONFIG_STATUS
4219cat > $CONFIG_STATUS <<EOF
4220#! /bin/sh
4221# Generated automatically by configure.
4222# Run this file to recreate the current configuration.
4223# This directory was configured as follows,
4224# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4225#
4226# $0 $ac_configure_args
4227#
4228# Compiler output produced by configure, useful for debugging
4229# configure, is in ./config.log if it exists.
4230
4231ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
4232for ac_option
4233do
4234 case "\$ac_option" in
4235 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4236 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
4237 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
4238 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
4239 echo "$CONFIG_STATUS generated by autoconf version 2.13"
4240 exit 0 ;;
4241 -help | --help | --hel | --he | --h)
4242 echo "\$ac_cs_usage"; exit 0 ;;
4243 *) echo "\$ac_cs_usage"; exit 1 ;;
4244 esac
4245done
4246
4247ac_given_srcdir=$srcdir
4248ac_given_INSTALL="$INSTALL"
4249
4250trap 'rm -fr `echo "README icudefs.mk \
4251 Makefile \
4252 data/Makefile data/icupkg.inc \
4253 common/Makefile config/Makefile.inc i18n/Makefile \
4254 layout/Makefile \
4255 layoutex/Makefile \
4256 extra/Makefile extra/ustdio/Makefile \
4257 extra/uconv/Makefile extra/scrptrun/Makefile
4258 stubdata/Makefile \
4259 tools/Makefile tools/ctestfw/Makefile tools/makeconv/Makefile \
4260 tools/genrb/Makefile \
4261 tools/genuca/Makefile \
4262 tools/pkgdata/Makefile \
4263 tools/genccode/Makefile tools/gencmn/Makefile \
4264 tools/gencnval/Makefile tools/gentz/Makefile \
4265 tools/gennames/Makefile tools/toolutil/Makefile \
4266 tools/gentest/Makefile \
4267 tools/gennorm/Makefile \
4268 tools/genprops/Makefile \
4269 tools/genpname/Makefile \
4270 tools/genbrk/Makefile \
4271 tools/genidna/Makefile \
4272 tools/dumpce/Makefile \
4273 test/Makefile test/testdata/Makefile \
4274 test/intltest/Makefile \
4275 test/cintltst/Makefile \
4276 test/iotest/Makefile \
4277 test/ieeetest/Makefile \
4278 test/testmap/Makefile \
4279 test/thaitest/Makefile \
4280 test/letest/Makefile \
4281 test/threadtest/Makefile \
4282 samples/Makefile samples/date/Makefile \
4283 samples/cal/Makefile samples/layout/Makefile \
4284 common/unicode/platform.h common/icucfg.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
4285EOF
4286cat >> $CONFIG_STATUS <<EOF
4287
4288# Protect against being on the right side of a sed subst in config.status.
4289sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
4290 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
4291$ac_vpsub
4292$extrasub
4293s%@SHELL@%$SHELL%g
4294s%@CFLAGS@%$CFLAGS%g
4295s%@CPPFLAGS@%$CPPFLAGS%g
4296s%@CXXFLAGS@%$CXXFLAGS%g
4297s%@FFLAGS@%$FFLAGS%g
4298s%@DEFS@%$DEFS%g
4299s%@LDFLAGS@%$LDFLAGS%g
4300s%@LIBS@%$LIBS%g
4301s%@exec_prefix@%$exec_prefix%g
4302s%@prefix@%$prefix%g
4303s%@program_transform_name@%$program_transform_name%g
4304s%@bindir@%$bindir%g
4305s%@sbindir@%$sbindir%g
4306s%@libexecdir@%$libexecdir%g
4307s%@datadir@%$datadir%g
4308s%@sysconfdir@%$sysconfdir%g
4309s%@sharedstatedir@%$sharedstatedir%g
4310s%@localstatedir@%$localstatedir%g
4311s%@libdir@%$libdir%g
4312s%@includedir@%$includedir%g
4313s%@oldincludedir@%$oldincludedir%g
4314s%@infodir@%$infodir%g
4315s%@mandir@%$mandir%g
4316s%@PACKAGE@%$PACKAGE%g
4317s%@VERSION@%$VERSION%g
4318s%@LIB_VERSION@%$LIB_VERSION%g
4319s%@LIB_VERSION_MAJOR@%$LIB_VERSION_MAJOR%g
4320s%@UNICODE_VERSION@%$UNICODE_VERSION%g
4321s%@CC@%$CC%g
4322s%@CXX@%$CXX%g
4323s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
4324s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
4325s%@INSTALL_DATA@%$INSTALL_DATA%g
4326s%@AUTOCONF@%$AUTOCONF%g
4327s%@STRIP@%$STRIP%g
4328s%@U_MAKE@%$U_MAKE%g
4329s%@DOXYGEN@%$DOXYGEN%g
4330s%@host@%$host%g
4331s%@host_alias@%$host_alias%g
4332s%@host_cpu@%$host_cpu%g
4333s%@host_vendor@%$host_vendor%g
4334s%@host_os@%$host_os%g
4335s%@EXEEXT@%$EXEEXT%g
4336s%@ARFLAGS@%$ARFLAGS%g
4337s%@COMPILE_LINK_ENVVAR@%$COMPILE_LINK_ENVVAR%g
4338s%@LIB_M@%$LIB_M%g
4339s%@HPUX_CMA_TRUE@%$HPUX_CMA_TRUE%g
4340s%@HPUX_CMA_FALSE@%$HPUX_CMA_FALSE%g
4341s%@ENABLE_SHARED@%$ENABLE_SHARED%g
4342s%@ENABLE_STATIC@%$ENABLE_STATIC%g
4343s%@RANLIB@%$RANLIB%g
4344s%@AR@%$AR%g
4345s%@U_DISABLE_RENAMING@%$U_DISABLE_RENAMING%g
4346s%@ENABLE_RPATH@%$ENABLE_RPATH%g
4347s%@U_INLINE@%$U_INLINE%g
4348s%@THREADS_TRUE@%$THREADS_TRUE%g
4349s%@THREADS_FALSE@%$THREADS_FALSE%g
4350s%@ICU_USE_THREADS@%$ICU_USE_THREADS%g
4351s%@HAVE_MMAP@%$HAVE_MMAP%g
4352s%@CPP@%$CPP%g
4353s%@U_HAVE_INTTYPES_H@%$U_HAVE_INTTYPES_H%g
4354s%@CXXCPP@%$CXXCPP%g
4355s%@U_IOSTREAM_SOURCE@%$U_IOSTREAM_SOURCE%g
4356s%@U_IS_BIG_ENDIAN@%$U_IS_BIG_ENDIAN%g
4357s%@U_HAVE_NL_LANGINFO@%$U_HAVE_NL_LANGINFO%g
4358s%@U_HAVE_NL_LANGINFO_CODESET@%$U_HAVE_NL_LANGINFO_CODESET%g
4359s%@U_NL_LANGINFO_CODESET@%$U_NL_LANGINFO_CODESET%g
4360s%@U_HAVE_NAMESPACE@%$U_HAVE_NAMESPACE%g
4361s%@U_OVERRIDE_CXX_ALLOCATION@%$U_OVERRIDE_CXX_ALLOCATION%g
4362s%@U_HAVE_PLACEMENT_NEW@%$U_HAVE_PLACEMENT_NEW%g
4363s%@U_HAVE_POPEN@%$U_HAVE_POPEN%g
4364s%@U_TZSET@%$U_TZSET%g
4365s%@U_TZNAME@%$U_TZNAME%g
4366s%@U_HAVE_TIMEZONE@%$U_HAVE_TIMEZONE%g
4367s%@U_TIMEZONE@%$U_TIMEZONE%g
4368s%@HAVE_INT8_T@%$HAVE_INT8_T%g
4369s%@HAVE_UINT8_T@%$HAVE_UINT8_T%g
4370s%@HAVE_INT16_T@%$HAVE_INT16_T%g
4371s%@HAVE_UINT16_T@%$HAVE_UINT16_T%g
4372s%@HAVE_INT32_T@%$HAVE_INT32_T%g
4373s%@HAVE_UINT32_T@%$HAVE_UINT32_T%g
4374s%@HAVE_INT64_T@%$HAVE_INT64_T%g
4375s%@HAVE_UINT64_T@%$HAVE_UINT64_T%g
4376s%@U_HAVE_WCHAR_H@%$U_HAVE_WCHAR_H%g
4377s%@U_HAVE_WCSCPY@%$U_HAVE_WCSCPY%g
4378s%@U_SIZEOF_WCHAR_T@%$U_SIZEOF_WCHAR_T%g
4379s%@ECHO_N@%$ECHO_N%g
4380s%@ECHO_C@%$ECHO_C%g
4381s%@EXTRAS_TRUE@%$EXTRAS_TRUE%g
4382s%@EXTRAS_FALSE@%$EXTRAS_FALSE%g
4383s%@USTDIO_TRUE@%$USTDIO_TRUE%g
4384s%@USTDIO_FALSE@%$USTDIO_FALSE%g
4385s%@LAYOUT_TRUE@%$LAYOUT_TRUE%g
4386s%@LAYOUT_FALSE@%$LAYOUT_FALSE%g
4387s%@thesysconfdir@%$thesysconfdir%g
4388s%@thedatadir@%$thedatadir%g
4389s%@thelibdir@%$thelibdir%g
4390s%@pkgicudatadir@%$pkgicudatadir%g
4391s%@thepkgicudatadir@%$thepkgicudatadir%g
4392s%@DATA_PACKAGING_CPPFLAGS@%$DATA_PACKAGING_CPPFLAGS%g
4393s%@DATA_PACKAGING_MODE@%$DATA_PACKAGING_MODE%g
4394s%@ICULIBSUFFIX@%$ICULIBSUFFIX%g
4395s%@U_HAVE_LIB_SUFFIX@%$U_HAVE_LIB_SUFFIX%g
4396s%@ICULIBSUFFIXCNAME@%$ICULIBSUFFIXCNAME%g
4397s%@TESTS_TRUE@%$TESTS_TRUE%g
4398s%@TESTS_FALSE@%$TESTS_FALSE%g
4399s%@SAMPLES_TRUE@%$SAMPLES_TRUE%g
4400s%@SAMPLES_FALSE@%$SAMPLES_FALSE%g
4401s%@ICUDATA_CHAR@%$ICUDATA_CHAR%g
4402s%@platform@%$platform%g
4403s%@platform_make_fragment_name@%$platform_make_fragment_name%g
4404s%@platform_make_fragment@%$platform_make_fragment%g
4405s%@ld_rpath_suf@%$ld_rpath_suf%g
4406s%@AIX_SHLIB@%$AIX_SHLIB%g
4407
4408CEOF
4409EOF
4410
4411cat >> $CONFIG_STATUS <<\EOF
4412
4413# Split the substitutions into bite-sized pieces for seds with
4414# small command number limits, like on Digital OSF/1 and HP-UX.
4415ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
4416ac_file=1 # Number of current file.
4417ac_beg=1 # First line for current file.
4418ac_end=$ac_max_sed_cmds # Line after last line for current file.
4419ac_more_lines=:
4420ac_sed_cmds=""
4421while $ac_more_lines; do
4422 if test $ac_beg -gt 1; then
4423 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
4424 else
4425 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
4426 fi
4427 if test ! -s conftest.s$ac_file; then
4428 ac_more_lines=false
4429 rm -f conftest.s$ac_file
4430 else
4431 if test -z "$ac_sed_cmds"; then
4432 ac_sed_cmds="sed -f conftest.s$ac_file"
4433 else
4434 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
4435 fi
4436 ac_file=`expr $ac_file + 1`
4437 ac_beg=$ac_end
4438 ac_end=`expr $ac_end + $ac_max_sed_cmds`
4439 fi
4440done
4441if test -z "$ac_sed_cmds"; then
4442 ac_sed_cmds=cat
4443fi
4444EOF
4445
4446cat >> $CONFIG_STATUS <<EOF
4447
4448CONFIG_FILES=\${CONFIG_FILES-"README icudefs.mk \
4449 Makefile \
4450 data/Makefile data/icupkg.inc \
4451 common/Makefile config/Makefile.inc i18n/Makefile \
4452 layout/Makefile \
4453 layoutex/Makefile \
4454 extra/Makefile extra/ustdio/Makefile \
4455 extra/uconv/Makefile extra/scrptrun/Makefile
4456 stubdata/Makefile \
4457 tools/Makefile tools/ctestfw/Makefile tools/makeconv/Makefile \
4458 tools/genrb/Makefile \
4459 tools/genuca/Makefile \
4460 tools/pkgdata/Makefile \
4461 tools/genccode/Makefile tools/gencmn/Makefile \
4462 tools/gencnval/Makefile tools/gentz/Makefile \
4463 tools/gennames/Makefile tools/toolutil/Makefile \
4464 tools/gentest/Makefile \
4465 tools/gennorm/Makefile \
4466 tools/genprops/Makefile \
4467 tools/genpname/Makefile \
4468 tools/genbrk/Makefile \
4469 tools/genidna/Makefile \
4470 tools/dumpce/Makefile \
4471 test/Makefile test/testdata/Makefile \
4472 test/intltest/Makefile \
4473 test/cintltst/Makefile \
4474 test/iotest/Makefile \
4475 test/ieeetest/Makefile \
4476 test/thaitest/Makefile \
4477 test/testmap/Makefile \
4478 test/letest/Makefile \
4479 test/threadtest/Makefile \
4480 samples/Makefile samples/date/Makefile \
4481 samples/cal/Makefile samples/layout/Makefile \
4482 common/unicode/platform.h"}
4483EOF
4484cat >> $CONFIG_STATUS <<\EOF
4485for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
4486 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4487 case "$ac_file" in
4488 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4489 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4490 *) ac_file_in="${ac_file}.in" ;;
4491 esac
4492
4493 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
4494
4495 # Remove last slash and all that follows it. Not all systems have dirname.
4496 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4497 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4498 # The file is in a subdirectory.
4499 test ! -d "$ac_dir" && mkdir "$ac_dir"
4500 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
4501 # A "../" for each directory in $ac_dir_suffix.
4502 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
4503 else
4504 ac_dir_suffix= ac_dots=
4505 fi
4506
4507 case "$ac_given_srcdir" in
4508 .) srcdir=.
4509 if test -z "$ac_dots"; then top_srcdir=.
4510 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
4511 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
4512 *) # Relative path.
4513 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
4514 top_srcdir="$ac_dots$ac_given_srcdir" ;;
4515 esac
4516
4517 case "$ac_given_INSTALL" in
4518 [/$]*) INSTALL="$ac_given_INSTALL" ;;
4519 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
4520 esac
4521
4522 echo creating "$ac_file"
4523 rm -f "$ac_file"
4524 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
4525 case "$ac_file" in
4526 *Makefile*) ac_comsub="1i\\
4527# $configure_input" ;;
4528 *) ac_comsub= ;;
4529 esac
4530
4531 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4532 sed -e "$ac_comsub
4533s%@configure_input@%$configure_input%g
4534s%@srcdir@%$srcdir%g
4535s%@top_srcdir@%$top_srcdir%g
4536s%@INSTALL@%$INSTALL%g
4537" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
4538fi; done
4539rm -f conftest.s*
4540
4541# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
4542# NAME is the cpp macro being defined and VALUE is the value it is being given.
4543#
4544# ac_d sets the value in "#define NAME VALUE" lines.
4545ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
4546ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
4547ac_dC='\3'
4548ac_dD='%g'
4549# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
4550ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4551ac_uB='\([ ]\)%\1#\2define\3'
4552ac_uC=' '
4553ac_uD='\4%g'
4554# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4555ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4556ac_eB='$%\1#\2define\3'
4557ac_eC=' '
4558ac_eD='%g'
4559
4560if test "${CONFIG_HEADERS+set}" != set; then
4561EOF
4562cat >> $CONFIG_STATUS <<EOF
4563 CONFIG_HEADERS="common/icucfg.h"
4564EOF
4565cat >> $CONFIG_STATUS <<\EOF
4566fi
4567for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
4568 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4569 case "$ac_file" in
4570 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4571 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4572 *) ac_file_in="${ac_file}.in" ;;
4573 esac
4574
4575 echo creating $ac_file
4576
4577 rm -f conftest.frag conftest.in conftest.out
4578 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4579 cat $ac_file_inputs > conftest.in
4580
4581EOF
4582
4583# Transform confdefs.h into a sed script conftest.vals that substitutes
4584# the proper values into config.h.in to produce config.h. And first:
4585# Protect against being on the right side of a sed subst in config.status.
4586# Protect against being in an unquoted here document in config.status.
4587rm -f conftest.vals
4588cat > conftest.hdr <<\EOF
4589s/[\\&%]/\\&/g
4590s%[\\$`]%\\&%g
4591s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
4592s%ac_d%ac_u%gp
4593s%ac_u%ac_e%gp
4594EOF
4595sed -n -f conftest.hdr confdefs.h > conftest.vals
4596rm -f conftest.hdr
4597
4598# This sed command replaces #undef with comments. This is necessary, for
4599# example, in the case of _POSIX_SOURCE, which is predefined and required
4600# on some systems where configure will not decide to define it.
4601cat >> conftest.vals <<\EOF
4602s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
4603EOF
4604
4605# Break up conftest.vals because some shells have a limit on
4606# the size of here documents, and old seds have small limits too.
4607
4608rm -f conftest.tail
4609while :
4610do
4611 ac_lines=`grep -c . conftest.vals`
4612 # grep -c gives empty output for an empty file on some AIX systems.
4613 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
4614 # Write a limited-size here document to conftest.frag.
4615 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
4616 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
4617 echo 'CEOF
4618 sed -f conftest.frag conftest.in > conftest.out
4619 rm -f conftest.in
4620 mv conftest.out conftest.in
4621' >> $CONFIG_STATUS
4622 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
4623 rm -f conftest.vals
4624 mv conftest.tail conftest.vals
4625done
4626rm -f conftest.vals
4627
4628cat >> $CONFIG_STATUS <<\EOF
4629 rm -f conftest.frag conftest.h
4630 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
4631 cat conftest.in >> conftest.h
4632 rm -f conftest.in
4633 if cmp -s $ac_file conftest.h 2>/dev/null; then
4634 echo "$ac_file is unchanged"
4635 rm -f conftest.h
4636 else
4637 # Remove last slash and all that follows it. Not all systems have dirname.
4638 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4639 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4640 # The file is in a subdirectory.
4641 test ! -d "$ac_dir" && mkdir "$ac_dir"
4642 fi
4643 rm -f $ac_file
4644 mv conftest.h $ac_file
4645 fi
4646fi; done
4647
4648EOF
4649cat >> $CONFIG_STATUS <<EOF
4650
4651EOF
4652cat >> $CONFIG_STATUS <<\EOF
4653
4654exit 0
4655EOF
4656chmod +x $CONFIG_STATUS
4657rm -fr confdefs* $ac_clean_files
4658test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
4659
4660
4661if test $ICU_USE_THREADS = 0; then
4662 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
4663fi
4664
4665echo "You must use $U_MAKE to build ICU."