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.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix
=/usr
/local
13 # Any additions from configure.in:
15 --enable-strict compile with strict compiler options [default=no]"
17 --enable-64bit-libs build 64-bit libraries [default=yes]"
19 --enable-hpuxcma build ICU with HPUX CMA threads (only ver>=11) [default=no]"
21 --enable-shared[=PKGS] build shared libraries [default=yes]"
23 --enable-static[=PKGS] build static libraries [default=no]"
25 --enable-renaming add a version suffix to symbols [default=yes]"
27 --enable-rpath use rpath when linking [default is only if necessary]"
29 --enable-threads build ICU with threads [default=yes]"
31 --with-iostream=version specify the version of iostream to use (none, old, std, auto) [default=auto]"
33 --enable-extras build ICU extras [default=yes]"
35 --enable-ustdio build ICU's ustdio library [default=yes]"
37 --enable-layout build ICU's layout library [default=yes]"
39 --with-data-packaging=type specify how to package ICU data (files, archive, library, auto) [default=auto]"
43 --with-library-suffix=suffix tag a suffix to the library names [default=]"
45 --enable-tests build ICU tests [default=yes]"
47 --enable-samples build ICU samples [default=yes]
48 Additionally, the variable FORCE_LIBS may be set before calling configure. If set, it will REPLACE any automatic list of libraries."
50 # Initialize some variables set by options.
51 # The variables have the same names as the options, with
52 # dashes changed to underlines.
54 cache_file
=.
/config.cache
63 program_transform_name
=s
,x
,x
,
71 bindir
='${exec_prefix}/bin'
72 sbindir
='${exec_prefix}/sbin'
73 libexecdir
='${exec_prefix}/libexec'
74 datadir
='${prefix}/share'
75 sysconfdir
='${prefix}/etc'
76 sharedstatedir
='${prefix}/com'
77 localstatedir
='${prefix}/var'
78 libdir
='${exec_prefix}/lib'
79 includedir
='${prefix}/include'
80 oldincludedir
='/usr/include'
81 infodir
='${prefix}/info'
82 mandir
='${prefix}/man'
84 # Initialize some other variables.
87 SHELL
=${CONFIG_SHELL-/bin/sh}
88 # Maximum number of lines to put in a shell here document.
95 # If the previous option needs an argument, assign it.
96 if test -n "$ac_prev"; then
97 eval "$ac_prev=\$ac_option"
103 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
107 # Accept the important Cygnus configure options, so we can diagnose typos.
111 -bindir | --bindir | --bindi | --bind | --bin | --bi)
113 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
114 bindir
="$ac_optarg" ;;
116 -build | --build | --buil | --bui | --bu)
118 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
119 build
="$ac_optarg" ;;
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" ;;
128 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
130 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
132 datadir
="$ac_optarg" ;;
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; }
140 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
141 eval "enable_${ac_feature}=no" ;;
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; }
149 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
154 eval "enable_${ac_feature}='$ac_optarg'" ;;
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" ;;
165 -gas | --gas | --ga | --g)
166 # Obsolete; use --with-gas.
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.
173 Usage: configure [options] [host]
174 Options: [defaults in brackets after descriptions]
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
181 Directory and file names:
182 --prefix=PREFIX install architecture-independent files in PREFIX
184 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
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
191 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
192 --sharedstatedir=DIR modifiable architecture-independent data in DIR
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
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]
211 Features 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
219 if test -n "$ac_help"; then
220 echo "--enable and --with options recognized:$ac_help"
224 -host | --host | --hos | --ho)
226 -host=* | --host=* | --hos=* | --ho=*)
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" ;;
236 -infodir | --infodir | --infodi | --infod | --info | --inf)
238 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
239 infodir
="$ac_optarg" ;;
241 -libdir | --libdir | --libdi | --libd)
243 -libdir=* | --libdir=* | --libdi=* | --libd=*)
244 libdir
="$ac_optarg" ;;
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" ;;
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" ;;
262 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
264 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
265 mandir
="$ac_optarg" ;;
268 # Obsolete; use --without-fp.
271 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
275 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
276 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
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" ;;
288 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
290 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
291 prefix
="$ac_optarg" ;;
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" ;;
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" ;;
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" ;;
324 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
325 | -silent | --silent | --silen | --sile | --sil)
328 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
330 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
332 sbindir
="$ac_optarg" ;;
334 -sharedstatedir | --sharedstatedir | --sharedstatedi \
335 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
336 | --sharedst | --shareds | --shared | --share | --shar \
338 ac_prev
=sharedstatedir
;;
339 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
340 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
341 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
343 sharedstatedir
="$ac_optarg" ;;
345 -site | --site | --sit)
347 -site=* | --site=* | --sit=*)
350 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
352 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
353 srcdir
="$ac_optarg" ;;
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" ;;
362 -target | --target | --targe | --targ | --tar | --ta | --t)
364 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
365 target
="$ac_optarg" ;;
367 -v | -verbose | --verbose | --verbos | --verbo | --verb)
370 -version | --version | --versio | --versi | --vers)
371 echo "configure generated by autoconf version 2.13"
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; }
380 ac_package
=`echo $ac_package| sed 's/-/_/g'`
385 eval "with_${ac_package}='$ac_optarg'" ;;
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; }
393 ac_package
=`echo $ac_package| sed 's/-/_/g'`
394 eval "with_${ac_package}=no" ;;
397 # Obsolete; use --with-x.
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" ;;
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" ;;
414 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
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
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; }
430 if test -n "$ac_prev"; then
431 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
434 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
436 # File descriptor usage:
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
444 if test "$silent" = yes; then
452 This file contains any messages produced by compilers while
453 running configure, to aid debugging if configure makes a mistake.
456 # Strip out --no-create and --no-recursion so they do not pile up.
457 # Also quote any args containing shell metacharacters.
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" ;;
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.
477 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
478 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
479 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
480 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
482 # confdefs.h avoids OS command line length limits that DEFS can exceed.
483 rm -rf conftest
* confdefs.h
484 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
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.
489 ac_unique_file
=common
/unicode
/utypes.h
491 # Find the source files, if location was not specified.
492 if test -z "$srcdir"; then
493 ac_srcdir_defaulted
=yes
494 # Try the directory containing this script, then its parent.
496 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
497 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
499 if test ! -r $srcdir/$ac_unique_file; then
503 ac_srcdir_defaulted
=no
505 if 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; }
509 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
512 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
514 # Prefer explicitly selected file to automatically selected ones.
515 if test -z "$CONFIG_SITE"; then
516 if test "x$prefix" != xNONE
; then
517 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
519 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
522 for ac_site_file
in $CONFIG_SITE; do
523 if test -r "$ac_site_file"; then
524 echo "loading site script $ac_site_file"
529 if test -r "$cache_file"; then
530 echo "loading cache $cache_file"
533 echo "creating cache $cache_file"
538 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
539 ac_cpp
='$CPP $CPPFLAGS'
540 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
541 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
542 cross_compiling
=$ac_cv_prog_cc_cross
546 if (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
555 ac_n
= ac_c
='\c' ac_t
=
564 echo $ac_n "checking for ICU version numbers""... $ac_c" 1>&6
565 echo "configure:566: checking for ICU version numbers" >&5
568 sed -n 's/^[ ]*#[ ]*define[ ]*U_ICU_VERSION[ ]*"\([^"]*\)".*/\1/p' "$@"
570 VERSION
=`geticuversion $srcdir/common/unicode/uversion.h`
571 if 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; }
577 LIB_VERSION
=`echo $VERSION | sed -e 's/\.//' -e 's/^\([^.]*\)$/\1.0/'`
578 LIB_VERSION_MAJOR
=`echo $LIB_VERSION | sed 's/\..*//'`
582 echo "$ac_t""release $VERSION, library $LIB_VERSION" 1>&6
589 # Extract the first word of "gcc", so it can be a program name with args.
590 set dummy gcc
; ac_word
=$2
591 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
592 echo "configure:593: checking for $ac_word" >&5
593 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
594 echo $ac_n "(cached) $ac_c" 1>&6
596 if test -n "$CC"; then
597 ac_cv_prog_CC
="$CC" # Let the user override the test.
599 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
601 for ac_dir
in $ac_dummy; do
602 test -z "$ac_dir" && ac_dir
=.
603 if test -f $ac_dir/$ac_word; then
612 if test -n "$CC"; then
613 echo "$ac_t""$CC" 1>&6
615 echo "$ac_t""no" 1>&6
618 if test -z "$CC"; then
619 # Extract the first word of "cc", so it can be a program name with args.
620 set dummy cc
; ac_word
=$2
621 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
622 echo "configure:623: checking for $ac_word" >&5
623 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
624 echo $ac_n "(cached) $ac_c" 1>&6
626 if test -n "$CC"; then
627 ac_cv_prog_CC
="$CC" # Let the user override the test.
629 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
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
644 if 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
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.
653 set dummy
"$ac_dir/$ac_word" "$@"
661 if test -n "$CC"; then
662 echo "$ac_t""$CC" 1>&6
664 echo "$ac_t""no" 1>&6
667 if test -z "$CC"; then
670 # Extract the first word of "cl", so it can be a program name with args.
671 set dummy cl
; ac_word
=$2
672 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
673 echo "configure:674: checking for $ac_word" >&5
674 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
675 echo $ac_n "(cached) $ac_c" 1>&6
677 if test -n "$CC"; then
678 ac_cv_prog_CC
="$CC" # Let the user override the test.
680 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
682 for ac_dir
in $ac_dummy; do
683 test -z "$ac_dir" && ac_dir
=.
684 if test -f $ac_dir/$ac_word; then
693 if test -n "$CC"; then
694 echo "$ac_t""$CC" 1>&6
696 echo "$ac_t""no" 1>&6
701 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
704 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
705 echo "configure:706: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
708 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
709 ac_cpp
='$CPP $CPPFLAGS'
710 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
711 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
712 cross_compiling
=$ac_cv_prog_cc_cross
714 cat > conftest.
$ac_ext << EOF
716 #line 717 "configure"
717 #include "confdefs.h"
721 if { (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
727 ac_cv_prog_cc_cross
=yes
730 echo "configure: failed program was:" >&5
731 cat conftest.
$ac_ext >&5
732 ac_cv_prog_cc_works
=no
736 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
737 ac_cpp
='$CPP $CPPFLAGS'
738 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
739 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
740 cross_compiling
=$ac_cv_prog_cc_cross
742 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
743 if 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; }
746 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
747 echo "configure:748: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
748 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
749 cross_compiling
=$ac_cv_prog_cc_cross
751 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
752 echo "configure:753: checking whether we are using GNU C" >&5
753 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
754 echo $ac_n "(cached) $ac_c" 1>&6
756 cat > conftest.c
<<EOF
761 if { 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
768 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
770 if test $ac_cv_prog_gcc = yes; then
776 ac_test_CFLAGS
="${CFLAGS+set}"
777 ac_save_CFLAGS
="$CFLAGS"
779 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
780 echo "configure:781: checking whether ${CC-cc} accepts -g" >&5
781 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
782 echo $ac_n "(cached) $ac_c" 1>&6
784 echo 'void f(){}' > conftest.c
785 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
794 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
795 if test "$ac_test_CFLAGS" = set; then
796 CFLAGS
="$ac_save_CFLAGS"
797 elif test $ac_cv_prog_cc_g = yes; then
798 if test "$GCC" = yes; then
804 if test "$GCC" = yes; then
811 for ac_prog
in $CCC c
++ g
++ gcc CC cxx cc
++ cl
813 # Extract the first word of "$ac_prog", so it can be a program name with args.
814 set dummy
$ac_prog; ac_word
=$2
815 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
816 echo "configure:817: checking for $ac_word" >&5
817 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
818 echo $ac_n "(cached) $ac_c" 1>&6
820 if test -n "$CXX"; then
821 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
823 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
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"
835 CXX
="$ac_cv_prog_CXX"
836 if test -n "$CXX"; then
837 echo "$ac_t""$CXX" 1>&6
839 echo "$ac_t""no" 1>&6
842 test -n "$CXX" && break
844 test -n "$CXX" || CXX
="gcc"
847 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
848 echo "configure:849: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
851 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
852 ac_cpp
='$CXXCPP $CPPFLAGS'
853 ac_compile
='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
854 ac_link
='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
855 cross_compiling
=$ac_cv_prog_cxx_cross
857 cat > conftest.
$ac_ext << EOF
859 #line 860 "configure"
860 #include "confdefs.h"
862 int main(){return(0);}
864 if { (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
870 ac_cv_prog_cxx_cross
=yes
873 echo "configure: failed program was:" >&5
874 cat conftest.
$ac_ext >&5
875 ac_cv_prog_cxx_works
=no
879 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
880 ac_cpp
='$CPP $CPPFLAGS'
881 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
882 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
883 cross_compiling
=$ac_cv_prog_cc_cross
885 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
886 if 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; }
889 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
890 echo "configure:891: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
891 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
892 cross_compiling
=$ac_cv_prog_cxx_cross
894 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
895 echo "configure:896: checking whether we are using GNU C++" >&5
896 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
897 echo $ac_n "(cached) $ac_c" 1>&6
899 cat > conftest.C
<<EOF
904 if { 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
911 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
913 if test $ac_cv_prog_gxx = yes; then
919 ac_test_CXXFLAGS
="${CXXFLAGS+set}"
920 ac_save_CXXFLAGS
="$CXXFLAGS"
922 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
923 echo "configure:924: checking whether ${CXX-g++} accepts -g" >&5
924 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
925 echo $ac_n "(cached) $ac_c" 1>&6
927 echo 'void f(){}' > conftest.cc
928 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
937 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
938 if test "$ac_test_CXXFLAGS" = set; then
939 CXXFLAGS
="$ac_save_CXXFLAGS"
940 elif test $ac_cv_prog_cxx_g = yes; then
941 if test "$GXX" = yes; then
947 if test "$GXX" = yes; then
954 for ac_declaration
in \
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);' \
963 cat > conftest.
$ac_ext <<EOF
964 #line 965 "configure"
965 #include "confdefs.h"
972 if { (eval echo configure
:973: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
975 echo "configure: failed program was:" >&5
976 cat conftest.
$ac_ext >&5
981 cat > conftest.
$ac_ext <<EOF
982 #line 983 "configure"
983 #include "confdefs.h"
989 if { (eval echo configure
:990: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
993 echo "configure: failed program was:" >&5
994 cat conftest.
$ac_ext >&5
998 if test -n "$ac_declaration"; then
999 echo '#ifdef __cplusplus' >>confdefs.h
1000 echo $ac_declaration >>confdefs.h
1001 echo '#endif' >>confdefs.h
1006 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
1007 if test -f $ac_dir/install-sh; then
1009 ac_install_sh
="$ac_aux_dir/install-sh -c"
1011 elif test -f $ac_dir/install.sh
; then
1013 ac_install_sh
="$ac_aux_dir/install.sh -c"
1017 if 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; }
1020 ac_config_guess
=$ac_aux_dir/config.guess
1021 ac_config_sub
=$ac_aux_dir/config.sub
1022 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
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
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.
1035 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1036 echo "configure:1037: checking for a BSD compatible install" >&5
1037 if test -z "$INSTALL"; then
1038 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1039 echo $ac_n "(cached) $ac_c" 1>&6
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.
1045 /|.
/|.
//|/etc
/*|/usr
/sbin
/*|/usr
/etc
/*|/sbin
/*|/usr
/afsws
/bin
/*|/usr
/ucb
/*) ;;
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
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.
1057 ac_cv_path_install
="$ac_dir/$ac_prog -c"
1068 if test "${ac_cv_path_install+set}" = set; then
1069 INSTALL
="$ac_cv_path_install"
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"
1078 echo "$ac_t""$INSTALL" 1>&6
1080 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1081 # It thinks the first close brace ends the variable substitution.
1082 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1084 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
1086 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1089 # make sure install is relative to srcdir - if a script
1090 if 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}"
1097 # Extract the first word of "autoconf", so it can be a program name with args.
1098 set dummy autoconf
; ac_word
=$2
1099 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1100 echo "configure:1101: checking for $ac_word" >&5
1101 if eval "test \"`echo '$''{'ac_cv_prog_AUTOCONF'+set}'`\" = set"; then
1102 echo $ac_n "(cached) $ac_c" 1>&6
1104 if test -n "$AUTOCONF"; then
1105 ac_cv_prog_AUTOCONF
="$AUTOCONF" # Let the user override the test.
1107 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
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"
1117 test -z "$ac_cv_prog_AUTOCONF" && ac_cv_prog_AUTOCONF
="true"
1120 AUTOCONF
="$ac_cv_prog_AUTOCONF"
1121 if test -n "$AUTOCONF"; then
1122 echo "$ac_t""$AUTOCONF" 1>&6
1124 echo "$ac_t""no" 1>&6
1127 # Extract the first word of "strip", so it can be a program name with args.
1128 set dummy strip
; ac_word
=$2
1129 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1130 echo "configure:1131: checking for $ac_word" >&5
1131 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
1132 echo $ac_n "(cached) $ac_c" 1>&6
1134 if test -n "$STRIP"; then
1135 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
1137 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
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"
1147 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP
="true"
1150 STRIP
="$ac_cv_prog_STRIP"
1151 if test -n "$STRIP"; then
1152 echo "$ac_t""$STRIP" 1>&6
1154 echo "$ac_t""no" 1>&6
1158 for ac_prog
in gmake gnumake
1160 # Extract the first word of "$ac_prog", so it can be a program name with args.
1161 set dummy
$ac_prog; ac_word
=$2
1162 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1163 echo "configure:1164: checking for $ac_word" >&5
1164 if eval "test \"`echo '$''{'ac_cv_path_U_MAKE'+set}'`\" = set"; then
1165 echo $ac_n "(cached) $ac_c" 1>&6
1169 ac_cv_path_U_MAKE
="$U_MAKE" # Let the user override the test with a path.
1172 ac_cv_path_U_MAKE
="$U_MAKE" # Let the user override the test with a dos path.
1175 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
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"
1188 U_MAKE
="$ac_cv_path_U_MAKE"
1189 if test -n "$U_MAKE"; then
1190 echo "$ac_t""$U_MAKE" 1>&6
1192 echo "$ac_t""no" 1>&6
1195 test -n "$U_MAKE" && break
1197 test -n "$U_MAKE" || U_MAKE
="make"
1201 # Extract the first word of "doxygen", so it can be a program name with args.
1202 set dummy doxygen
; ac_word
=$2
1203 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1204 echo "configure:1205: checking for $ac_word" >&5
1205 if eval "test \"`echo '$''{'ac_cv_path_DOXYGEN'+set}'`\" = set"; then
1206 echo $ac_n "(cached) $ac_c" 1>&6
1210 ac_cv_path_DOXYGEN
="$DOXYGEN" # Let the user override the test with a path.
1213 ac_cv_path_DOXYGEN
="$DOXYGEN" # Let the user override the test with a dos path.
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"
1229 DOXYGEN
="$ac_cv_path_DOXYGEN"
1230 if test -n "$DOXYGEN"; then
1231 echo "$ac_t""$DOXYGEN" 1>&6
1233 echo "$ac_t""no" 1>&6
1238 # Make sure we can run config.sub.
1239 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
1240 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1243 echo $ac_n "checking host system type""... $ac_c" 1>&6
1244 echo "configure:1245: checking host system type" >&5
1247 case "$host_alias" in
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; }
1254 *) host_alias
=$nonopt ;;
1258 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1259 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1260 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1261 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1262 echo "$ac_t""$host" 1>&6
1264 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
1265 echo "configure:1266: checking for Cygwin environment" >&5
1266 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
1267 echo $ac_n "(cached) $ac_c" 1>&6
1269 cat > conftest.
$ac_ext <<EOF
1270 #line 1271 "configure"
1271 #include "confdefs.h"
1276 #define __CYGWIN__ __CYGWIN32__
1281 if { (eval echo configure
:1282: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1285 echo "configure: failed program was:" >&5
1286 cat conftest.
$ac_ext >&5
1294 echo "$ac_t""$ac_cv_cygwin" 1>&6
1296 test "$ac_cv_cygwin" = yes && CYGWIN
=yes
1297 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
1298 echo "configure:1299: checking for mingw32 environment" >&5
1299 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
1300 echo $ac_n "(cached) $ac_c" 1>&6
1302 cat > conftest.
$ac_ext <<EOF
1303 #line 1304 "configure"
1304 #include "confdefs.h"
1310 if { (eval echo configure
:1311: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1314 echo "configure: failed program was:" >&5
1315 cat conftest.
$ac_ext >&5
1323 echo "$ac_t""$ac_cv_mingw32" 1>&6
1325 test "$ac_cv_mingw32" = yes && MINGW32
=yes
1328 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1329 echo "configure:1330: checking for executable suffix" >&5
1330 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1331 echo $ac_n "(cached) $ac_c" 1>&6
1333 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1337 echo 'int main () { return 0; }' > conftest.
$ac_ext
1339 if { (eval echo configure
:1340: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1340 for file in conftest.
*; do
1342 *.c
| *.o
| *.obj
) ;;
1343 *) ac_cv_exeext
=`echo $file | sed -e s/conftest//` ;;
1347 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1350 test x
"${ac_cv_exeext}" = x
&& ac_cv_exeext
=no
1355 test x
"${ac_cv_exeext}" != xno
&& EXEEXT
=${ac_cv_exeext}
1356 echo "$ac_t""${ac_cv_exeext}" 1>&6
1361 echo $ac_n "checking whether strict compiling is on""... $ac_c" 1>&6
1362 echo "configure:1363: checking whether strict compiling is on" >&5
1363 # Check whether --enable-strict or --disable-strict was given.
1364 if test "${enable_strict+set}" = set; then
1365 enableval
="$enable_strict"
1367 if test "$enableval" = no
1369 ac_use_strict_options
=no
1371 ac_use_strict_options
=yes
1375 ac_use_strict_options
=no
1378 echo "$ac_t""$ac_use_strict_options" 1>&6
1380 if test "$ac_use_strict_options" = yes
1382 if test "$GCC" = yes
1384 CFLAGS
="$CFLAGS -Wall -ansi -pedantic -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -Winline"
1387 CFLAGS
="$CFLAGS -D__STDC__=0";;
1390 if test "$GXX" = yes
1392 CXXFLAGS
="$CXXFLAGS -W -Wall -ansi -pedantic -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -Winline"
1395 CXXFLAGS
="$CXXFLAGS -D__STDC__=0";;
1402 # Check whether --enable-64bit-libs or --disable-64bit-libs was given.
1403 if test "${enable_64bit_libs+set}" = set; then
1404 enableval
="$enable_64bit_libs"
1405 ENABLE_64BIT_LIBS
=${enableval}
1407 ENABLE_64BIT_LIBS
=yes
1411 echo $ac_n "checking for 64-bit executable support""... $ac_c" 1>&6
1412 echo "configure:1413: checking for 64-bit executable support" >&5
1413 if test "$ENABLE_64BIT_LIBS" = no
; then
1418 CFLAGS
="${CFLAGS} +DAportable"
1419 CXXFLAGS
="${CXXFLAGS} +DAportable"
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
1435 ENABLE_64BIT_LIBS
=no
1438 ENABLE_64BIT_LIBS
=no
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
1451 cat > conftest.
$ac_ext <<EOF
1452 #line 1453 "configure"
1453 #include "confdefs.h"
1454 int main(void) {return 0;}
1456 if { (eval echo configure
:1457: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1458 ENABLE_64BIT_LIBS
=yes
1460 echo "configure: failed program was:" >&5
1461 cat conftest.
$ac_ext >&5
1463 ENABLE_64BIT_LIBS
=no
1468 if test "$ENABLE_64BIT_LIBS" = no
; then
1469 CFLAGS
="${OLD_CFLAGS}"
1470 CXXFLAGS
="${OLD_CXXFLAGS}"
1471 LDFLAGS
="${OLD_LDFLAGS}"
1473 ARFLAGS
="${ARFLAGS} -X64"
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
1484 cat > conftest.
$ac_ext <<EOF
1485 #line 1486 "configure"
1486 #include "confdefs.h"
1487 int main(void) {return 0;}
1489 if { (eval echo configure
:1490: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1491 ENABLE_64BIT_LIBS
=yes
1493 echo "configure: failed program was:" >&5
1494 cat conftest.
$ac_ext >&5
1496 ENABLE_64BIT_LIBS
=no
1501 if test "$ENABLE_64BIT_LIBS" = no
; then
1502 CFLAGS
="${OLD_CFLAGS}"
1503 CXXFLAGS
="${OLD_CXXFLAGS}"
1507 ENABLE_64BIT_LIBS
=no
1511 echo "$ac_t""$ENABLE_64BIT_LIBS" 1>&6
1517 echo $ac_n "checking which Makefile fragment to use""... $ac_c" 1>&6
1518 echo "configure:1519: checking which Makefile fragment to use" >&5
1519 if eval "test \"`echo '$''{'icu_cv_host_frag'+set}'`\" = set"; then
1520 echo $ac_n "(cached) $ac_c" 1>&6
1525 if test "$ac_cv_prog_gcc" = yes; then
1526 icu_cv_host_frag
=mh
-solaris-gcc
1528 icu_cv_host_frag
=mh
-solaris
1531 if test "$ac_cv_prog_gcc" = yes; then
1532 icu_cv_host_frag
=mh
-alpha-linux-gcc
1534 icu_cv_host_frag
=mh
-alpha-linux-cc
1536 *-*-linux*) icu_cv_host_frag
=mh
-linux ;;
1538 if test "$ac_cv_prog_gcc" = yes; then
1539 icu_cv_host_frag
=mh
-cygwin
1541 icu_cv_host_frag
=mh
-cygwin-msvc
1543 *-*-*bsd
*) icu_cv_host_frag
=mh
-bsd-gcc ;;
1545 if test -n "`$CXX --help 2>&1 | grep 'IBM C and C++ Compilers$'`"; then
1546 icu_cv_host_frag
=mh
-aix
1548 icu_cv_host_frag
=mh
-aix-va
1551 if test "$ac_cv_prog_gcc" = yes; then
1552 icu_cv_host_frag
=mh
-hpux-gcc
1555 *aCC
) icu_cv_host_frag
=mh
-hpux-acc ;;
1556 *CC
) icu_cv_host_frag
=mh
-hpux-cc ;;
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 ;;
1573 echo "$ac_t""$icu_cv_host_frag" 1>&6
1579 *-*-hpux10*) hpuxcma
=true
1580 echo $ac_n "checking for floor in -lm""... $ac_c" 1>&6
1581 echo "configure:1582: checking for floor in -lm" >&5
1582 ac_lib_var
=`echo m'_'floor | sed 'y%./+-%__p_%'`
1583 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1584 echo $ac_n "(cached) $ac_c" 1>&6
1586 ac_save_LIBS
="$LIBS"
1588 cat > 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. */
1600 if { (eval echo configure
:1601: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1602 eval "ac_cv_lib_$ac_lib_var=yes"
1604 echo "configure: failed program was:" >&5
1605 cat conftest.
$ac_ext >&5
1607 eval "ac_cv_lib_$ac_lib_var=no"
1610 LIBS
="$ac_save_LIBS"
1613 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1614 echo "$ac_t""yes" 1>&6
1617 echo "$ac_t""no" 1>&6
1620 *-*-hpux*) echo $ac_n "checking for floor in -lm""... $ac_c" 1>&6
1621 echo "configure:1622: checking for floor in -lm" >&5
1622 ac_lib_var
=`echo m'_'floor | sed 'y%./+-%__p_%'`
1623 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1624 echo $ac_n "(cached) $ac_c" 1>&6
1626 ac_save_LIBS
="$LIBS"
1628 cat > 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. */
1640 if { (eval echo configure
:1641: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1642 eval "ac_cv_lib_$ac_lib_var=yes"
1644 echo "configure: failed program was:" >&5
1645 cat conftest.
$ac_ext >&5
1647 eval "ac_cv_lib_$ac_lib_var=no"
1650 LIBS
="$ac_save_LIBS"
1653 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1654 echo "$ac_t""yes" 1>&6
1657 echo "$ac_t""no" 1>&6
1661 *) echo $ac_n "checking for floor in -lm""... $ac_c" 1>&6
1662 echo "configure:1663: checking for floor in -lm" >&5
1663 ac_lib_var
=`echo m'_'floor | sed 'y%./+-%__p_%'`
1664 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1665 echo $ac_n "(cached) $ac_c" 1>&6
1667 ac_save_LIBS
="$LIBS"
1669 cat > 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. */
1681 if { (eval echo configure
:1682: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1683 eval "ac_cv_lib_$ac_lib_var=yes"
1685 echo "configure: failed program was:" >&5
1686 cat conftest.
$ac_ext >&5
1688 eval "ac_cv_lib_$ac_lib_var=no"
1691 LIBS
="$ac_save_LIBS"
1694 if 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
1705 echo "$ac_t""no" 1>&6
1713 if test $hpuxcma = false
; then
1714 # Check whether --enable-hpuxcma or --disable-hpuxcma was given.
1715 if test "${enable_hpuxcma+set}" = set; then
1716 enableval
="$enable_hpuxcma"
1717 case "${enableval}" in
1720 *) { echo "configure: error: bad value ${enableval} for --enable-hpuxcma" 1>&2; exit 1; } ;;
1728 if test "$hpuxcma" = true
; then
1736 if test $hpuxcma = true
; then
1738 *-*-hpux*) hpuxcma
=true
;;
1739 *) { echo "configure: error: --enable-hpuxcma is not valid on this platform ${host}" 1>&2; exit 1; } ;;
1743 echo $ac_n "checking whether to build shared libraries""... $ac_c" 1>&6
1744 echo "configure:1745: checking whether to build shared libraries" >&5
1746 # Check whether --enable-shared or --disable-shared was given.
1747 if test "${enable_shared+set}" = set; then
1748 enableval
="$enable_shared"
1749 case "${enableval}" in
1750 yes|"") enabled
=yes; ENABLE_SHARED
=YES
;;
1755 enabled
=yes; ENABLE_SHARED
=YES
1759 echo "$ac_t""$enabled" 1>&6
1762 echo $ac_n "checking whether to build static libraries""... $ac_c" 1>&6
1763 echo "configure:1764: checking whether to build static libraries" >&5
1765 # Check whether --enable-static or --disable-static was given.
1766 if test "${enable_static+set}" = set; then
1767 enableval
="$enable_static"
1768 case "${enableval}" in
1769 yes|"") enabled
=yes; ENABLE_STATIC
=YES
;;
1775 echo "$ac_t""$enabled" 1>&6
1778 # Extract the first word of "ranlib", so it can be a program name with args.
1779 set dummy ranlib
; ac_word
=$2
1780 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1781 echo "configure:1782: checking for $ac_word" >&5
1782 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1783 echo $ac_n "(cached) $ac_c" 1>&6
1785 if test -n "$RANLIB"; then
1786 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1788 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
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"
1798 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1801 RANLIB
="$ac_cv_prog_RANLIB"
1802 if test -n "$RANLIB"; then
1803 echo "$ac_t""$RANLIB" 1>&6
1805 echo "$ac_t""no" 1>&6
1808 # Extract the first word of "ar", so it can be a program name with args.
1809 set dummy
ar; ac_word
=$2
1810 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1811 echo "configure:1812: checking for $ac_word" >&5
1812 if eval "test \"`echo '$''{'ac_cv_path_AR'+set}'`\" = set"; then
1813 echo $ac_n "(cached) $ac_c" 1>&6
1817 ac_cv_path_AR
="$AR" # Let the user override the test with a path.
1820 ac_cv_path_AR
="$AR" # Let the user override the test with a dos path.
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"
1833 test -z "$ac_cv_path_AR" && ac_cv_path_AR
="echo archiver ar not found re-run configure ; false"
1838 if test -n "$AR"; then
1839 echo "$ac_t""$AR" 1>&6
1841 echo "$ac_t""no" 1>&6
1845 echo $ac_n "checking whether to enable renaming of symbols""... $ac_c" 1>&6
1846 echo "configure:1847: checking whether to enable renaming of symbols" >&5
1848 U_DISABLE_RENAMING
=0
1849 # Check whether --enable-renaming or --disable-renaming was given.
1850 if 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 ;;
1859 echo "$ac_t""$enabled" 1>&6
1862 # Check whether --enable-rpath or --disable-rpath was given.
1863 if test "${enable_rpath+set}" = set; then
1864 enableval
="$enable_rpath"
1865 case "${enableval}" in
1866 yes|"") ENABLE_RPATH
=YES
;;
1878 echo $ac_n "checking for definition of U_INLINE for C""... $ac_c" 1>&6
1879 echo "configure:1880: checking for definition of U_INLINE for C" >&5
1880 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1881 echo $ac_n "(cached) $ac_c" 1>&6
1884 for ac_kw
in inline __inline__ __inline
; do
1885 cat > conftest.
$ac_ext <<EOF
1886 #line 1887 "configure"
1887 #include "confdefs.h"
1893 if { (eval echo configure
:1894: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1895 ac_cv_c_inline
=$ac_kw; break
1897 echo "configure: failed program was:" >&5
1898 cat conftest.
$ac_ext >&5
1905 echo "$ac_t""$ac_cv_c_inline" 1>&6
1906 case "$ac_cv_c_inline" in
1907 yes) U_INLINE
= "inline" ;;
1909 *) U_INLINE
=$ac_cv_c_inline ;;
1915 # Check whether --enable-threads or --disable-threads was given.
1916 if 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; } ;;
1929 if test "$threads" = true
; then
1939 if test $threads = true
; then
1940 if test $hpuxcma = true
; then
1941 echo $ac_n "checking for pthread_create in -lcma""... $ac_c" 1>&6
1942 echo "configure:1943: checking for pthread_create in -lcma" >&5
1943 ac_lib_var
=`echo cma'_'pthread_create | sed 'y%./+-%__p_%'`
1944 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1945 echo $ac_n "(cached) $ac_c" 1>&6
1947 ac_save_LIBS
="$LIBS"
1949 cat > 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. */
1955 char pthread_create();
1961 if { (eval echo configure
:1962: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1963 eval "ac_cv_lib_$ac_lib_var=yes"
1965 echo "configure: failed program was:" >&5
1966 cat conftest.
$ac_ext >&5
1968 eval "ac_cv_lib_$ac_lib_var=no"
1971 LIBS
="$ac_save_LIBS"
1974 if 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
1985 echo "$ac_t""no" 1>&6
1988 if test $ac_cv_lib_cma_pthread_create = yes; then
1993 echo $ac_n "checking for pthread_attr_init in -lpthread""... $ac_c" 1>&6
1994 echo "configure:1995: checking for pthread_attr_init in -lpthread" >&5
1995 ac_lib_var
=`echo pthread'_'pthread_attr_init | sed 'y%./+-%__p_%'`
1996 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1997 echo $ac_n "(cached) $ac_c" 1>&6
1999 ac_save_LIBS
="$LIBS"
2000 LIBS
="-lpthread $LIBS"
2001 cat > 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. */
2007 char pthread_attr_init();
2013 if { (eval echo configure
:2014: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2015 eval "ac_cv_lib_$ac_lib_var=yes"
2017 echo "configure: failed program was:" >&5
2018 cat conftest.
$ac_ext >&5
2020 eval "ac_cv_lib_$ac_lib_var=no"
2023 LIBS
="$ac_save_LIBS"
2026 if 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
2034 LIBS
="-lpthread $LIBS"
2037 echo "$ac_t""no" 1>&6
2040 if test $ac_cv_lib_pthread_pthread_attr_init = yes; then
2045 echo $ac_n "checking for library containing pthread_mutex_destroy""... $ac_c" 1>&6
2046 echo "configure:2047: checking for library containing pthread_mutex_destroy" >&5
2047 if eval "test \"`echo '$''{'ac_cv_search_pthread_mutex_destroy'+set}'`\" = set"; then
2048 echo $ac_n "(cached) $ac_c" 1>&6
2050 ac_func_search_save_LIBS
="$LIBS"
2051 ac_cv_search_pthread_mutex_destroy
="no"
2052 for i
in pthread pthreads c_r cma
; do
2053 LIBS
="-l$i $ac_func_search_save_LIBS"
2054 cat > 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. */
2060 char pthread_mutex_destroy();
2063 pthread_mutex_destroy()
2066 if { (eval echo configure
:2067: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2068 ac_cv_search_pthread_mutex_destroy
="-l$i"
2071 echo "configure: failed program was:" >&5
2072 cat conftest.
$ac_ext >&5
2076 if test "$ac_cv_search_pthread_mutex_destroy" = "no"; then
2077 cat > 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. */
2083 char pthread_mutex_destroy();
2086 pthread_mutex_destroy()
2089 if { (eval echo configure
:2090: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2091 ac_cv_search_pthread_mutex_destroy
="none required"
2093 echo "configure: failed program was:" >&5
2094 cat conftest.
$ac_ext >&5
2098 LIBS
="$ac_func_search_save_LIBS"
2101 echo "$ac_t""$ac_cv_search_pthread_mutex_destroy" 1>&6
2102 if 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"
2109 if test "$ac_cv_search_pthread_mutex_destroy" != no
; then
2112 echo $ac_n "checking for pthread_mutex_init in -lpthread""... $ac_c" 1>&6
2113 echo "configure:2114: checking for pthread_mutex_init in -lpthread" >&5
2114 ac_lib_var
=`echo pthread'_'pthread_mutex_init | sed 'y%./+-%__p_%'`
2115 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2116 echo $ac_n "(cached) $ac_c" 1>&6
2118 ac_save_LIBS
="$LIBS"
2119 LIBS
="-lpthread $LIBS"
2120 cat > 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. */
2126 char pthread_mutex_init();
2129 pthread_mutex_init()
2132 if { (eval echo configure
:2133: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2134 eval "ac_cv_lib_$ac_lib_var=yes"
2136 echo "configure: failed program was:" >&5
2137 cat conftest.
$ac_ext >&5
2139 eval "ac_cv_lib_$ac_lib_var=no"
2142 LIBS
="$ac_save_LIBS"
2145 if 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
2153 LIBS
="-lpthread $LIBS"
2156 echo "$ac_t""no" 1>&6
2159 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
2164 echo $ac_n "checking for pthread_mutex_lock""... $ac_c" 1>&6
2165 echo "configure:2166: checking for pthread_mutex_lock" >&5
2166 if eval "test \"`echo '$''{'ac_cv_func_pthread_mutex_lock'+set}'`\" = set"; then
2167 echo $ac_n "(cached) $ac_c" 1>&6
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. */
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. */
2178 char pthread_mutex_lock();
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)
2188 pthread_mutex_lock();
2193 if { (eval echo configure
:2194: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2195 eval "ac_cv_func_pthread_mutex_lock=yes"
2197 echo "configure: failed program was:" >&5
2198 cat conftest.
$ac_ext >&5
2200 eval "ac_cv_func_pthread_mutex_lock=no"
2205 if eval "test \"`echo '$ac_cv_func_'pthread_mutex_lock`\" = yes"; then
2206 echo "$ac_t""yes" 1>&6
2209 echo "$ac_t""no" 1>&6
2213 if test $ac_cv_func_pthread_mutex_lock = yes; then
2223 # The AC_FUNC_MMAP macro doesn't work properly. It seems to be too specific.
2224 # Do this check instead.
2226 echo $ac_n "checking for mmap""... $ac_c" 1>&6
2227 echo "configure:2228: checking for mmap" >&5
2228 if eval "test \"`echo '$''{'ac_cv_func_mmap_ok'+set}'`\" = set"; then
2229 echo $ac_n "(cached) $ac_c" 1>&6
2231 cat > conftest.
$ac_ext <<EOF
2232 #line 2233 "configure"
2233 #include "confdefs.h"
2236 #include <sys/mman.h>
2237 #include <sys/stat.h>
2241 mmap((void *)0, 0, PROT_READ, 0, 0, 0);
2244 if { (eval echo configure
:2245: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2246 ac_cv_func_mmap_ok
=yes
2248 echo "configure: failed program was:" >&5
2249 cat conftest.
$ac_ext >&5
2251 ac_cv_func_mmap_ok
=no
2256 echo "$ac_t""$ac_cv_func_mmap_ok" 1>&6
2257 if test $ac_cv_func_mmap_ok = yes
2263 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2264 echo "configure:2265: checking how to run the C preprocessor" >&5
2265 # On Suns, sometimes $CPP names a directory.
2266 if test -n "$CPP" && test -d "$CPP"; then
2269 if test -z "$CPP"; then
2270 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2271 echo $ac_n "(cached) $ac_c" 1>&6
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.
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"
2284 ac_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; }
2286 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2287 if test -z "$ac_err"; then
2291 echo "configure: failed program was:" >&5
2292 cat conftest.
$ac_ext >&5
2294 CPP
="${CC-cc} -E -traditional-cpp"
2295 cat > conftest.
$ac_ext <<EOF
2296 #line 2297 "configure"
2297 #include "confdefs.h"
2301 ac_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; }
2303 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2304 if test -z "$ac_err"; then
2308 echo "configure: failed program was:" >&5
2309 cat conftest.
$ac_ext >&5
2311 CPP
="${CC-cc} -nologo -E"
2312 cat > conftest.
$ac_ext <<EOF
2313 #line 2314 "configure"
2314 #include "confdefs.h"
2318 ac_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; }
2320 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2321 if test -z "$ac_err"; then
2325 echo "configure: failed program was:" >&5
2326 cat conftest.
$ac_ext >&5
2335 ac_cv_prog_CPP
="$CPP"
2337 CPP
="$ac_cv_prog_CPP"
2339 ac_cv_prog_CPP
="$CPP"
2341 echo "$ac_t""$CPP" 1>&6
2343 for ac_hdr
in inttypes.h
2345 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2346 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2347 echo "configure:2348: checking for $ac_hdr" >&5
2348 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2349 echo $ac_n "(cached) $ac_c" 1>&6
2351 cat > conftest.
$ac_ext <<EOF
2352 #line 2353 "configure"
2353 #include "confdefs.h"
2356 ac_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; }
2358 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2359 if test -z "$ac_err"; then
2361 eval "ac_cv_header_$ac_safe=yes"
2364 echo "configure: failed program was:" >&5
2365 cat conftest.
$ac_ext >&5
2367 eval "ac_cv_header_$ac_safe=no"
2371 if 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
2379 echo "$ac_t""no" 1>&6
2383 if test $ac_cv_header_inttypes_h = no
; then
2388 if test "$CC" = ccc
; then
2389 echo "$ac_t"""C compiler
set to CCC
${CC}" " 1>&6
2391 alpha
*-*-*) U_HAVE_INTTYPES_H
=0;
2397 # Check whether --with-iostream or --without-iostream was given.
2398 if 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 ;;
2405 *) { echo "configure: error: bad value ${withval} for --with-iostream" 1>&2; exit 1; } ;;
2413 if test x
$streams != xnone
2417 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2418 ac_cpp
='$CXXCPP $CPPFLAGS'
2419 ac_compile
='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2420 ac_link
='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2421 cross_compiling
=$ac_cv_prog_cxx_cross
2423 echo $ac_n "checking iostream usability""... $ac_c" 1>&6
2424 echo "configure:2425: checking iostream usability" >&5
2425 cat > conftest.
$ac_ext <<EOF
2426 #line 2427 "configure"
2427 #include "confdefs.h"
2433 if { (eval echo configure
:2434: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2435 ac_cv_header_iostream
=yes
2437 echo "configure: failed program was:" >&5
2438 cat conftest.
$ac_ext >&5
2440 ac_cv_header_iostream
=no
2443 echo "$ac_t""$ac_cv_header_iostream" 1>&6
2444 if test $ac_cv_header_iostream = yes
2446 U_IOSTREAM_SOURCE
=199711
2448 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
2449 echo "configure:2450: checking how to run the C++ preprocessor" >&5
2450 if test -z "$CXXCPP"; then
2451 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
2452 echo $ac_n "(cached) $ac_c" 1>&6
2455 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2456 ac_cpp
='$CXXCPP $CPPFLAGS'
2457 ac_compile
='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2458 ac_link
='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2459 cross_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"
2466 ac_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; }
2468 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2469 if test -z "$ac_err"; then
2473 echo "configure: failed program was:" >&5
2474 cat conftest.
$ac_ext >&5
2479 ac_cv_prog_CXXCPP
="$CXXCPP"
2481 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2482 ac_cpp
='$CXXCPP $CPPFLAGS'
2483 ac_compile
='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2484 ac_link
='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2485 cross_compiling
=$ac_cv_prog_cxx_cross
2488 CXXCPP
="$ac_cv_prog_CXXCPP"
2489 echo "$ac_t""$CXXCPP" 1>&6
2491 ac_safe
=`echo "iostream.h" | sed 'y%./+-%__p_%'`
2492 echo $ac_n "checking for iostream.h""... $ac_c" 1>&6
2493 echo "configure:2494: checking for iostream.h" >&5
2494 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2495 echo $ac_n "(cached) $ac_c" 1>&6
2497 cat > conftest.
$ac_ext <<EOF
2498 #line 2499 "configure"
2499 #include "confdefs.h"
2500 #include <iostream.h>
2502 ac_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; }
2504 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2505 if test -z "$ac_err"; then
2507 eval "ac_cv_header_$ac_safe=yes"
2510 echo "configure: failed program was:" >&5
2511 cat conftest.
$ac_ext >&5
2513 eval "ac_cv_header_$ac_safe=no"
2517 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2518 echo "$ac_t""yes" 1>&6
2521 echo "$ac_t""no" 1>&6
2524 if test $ac_cv_header_iostream_h = yes; then
2525 echo $ac_n "checking whether ostream is really defined""... $ac_c" 1>&6
2526 echo "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
2530 cat > conftest.
$ac_ext <<EOF
2531 #line 2532 "configure"
2532 #include "confdefs.h"
2533 #include <iostream.h>
2535 ostream &testout = cout; testout << "test" << endl;
2538 if { (eval echo configure
:2539: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2540 ac_cv_iostream_ok
=yes
2542 echo "configure: failed program was:" >&5
2543 cat conftest.
$ac_ext >&5
2545 ac_cv_iostream_ok
=no
2550 echo "$ac_t""$ac_cv_iostream_ok" 1>&6
2551 if test $ac_cv_iostream_ok = yes
2553 U_IOSTREAM_SOURCE
=198506
2557 if test x
$streams != x
2559 if test $U_IOSTREAM_SOURCE -ge $streams
2561 U_IOSTREAM_SOURCE
=$streams
2563 { echo "configure: error: ${withval} iostream is not available" 1>&2; exit 1; }
2569 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2570 ac_cpp
='$CPP $CPPFLAGS'
2571 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2572 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2573 cross_compiling
=$ac_cv_prog_cc_cross
2576 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
2577 echo "configure:2578: checking whether byte ordering is bigendian" >&5
2578 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
2579 echo $ac_n "(cached) $ac_c" 1>&6
2581 ac_cv_c_bigendian
=unknown
2582 # See if sys/param.h defines the BYTE_ORDER macro.
2583 cat > conftest.
$ac_ext <<EOF
2584 #line 2585 "configure"
2585 #include "confdefs.h"
2586 #include <sys/types.h>
2587 #include <sys/param.h>
2590 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2595 if { (eval echo configure
:2596: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2597 # It does; now see whether it defined to BIG_ENDIAN or not.
2598 cat > conftest.
$ac_ext <<EOF
2599 #line 2600 "configure"
2600 #include "confdefs.h"
2601 #include <sys/types.h>
2602 #include <sys/param.h>
2605 #if BYTE_ORDER != BIG_ENDIAN
2610 if { (eval echo configure
:2611: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2612 ac_cv_c_bigendian
=yes
2614 echo "configure: failed program was:" >&5
2615 cat conftest.
$ac_ext >&5
2617 ac_cv_c_bigendian
=no
2621 echo "configure: failed program was:" >&5
2622 cat conftest.
$ac_ext >&5
2625 if test $ac_cv_c_bigendian = unknown
; then
2626 if test "$cross_compiling" = yes; then
2627 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2629 cat > conftest.
$ac_ext <<EOF
2630 #line 2631 "configure"
2631 #include "confdefs.h"
2633 /* Are we little or big endian? From Harbison&Steele. */
2637 char c[sizeof (long)];
2640 exit (u.c[sizeof (long) - 1] == 1);
2643 if { (eval echo configure
:2644: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2645 ac_cv_c_bigendian
=no
2647 echo "configure: failed program was:" >&5
2648 cat conftest.
$ac_ext >&5
2650 ac_cv_c_bigendian
=yes
2658 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
2659 if test $ac_cv_c_bigendian = yes; then
2660 cat >> confdefs.h
<<\EOF
2661 #define WORDS_BIGENDIAN 1
2666 if test $ac_cv_c_bigendian = no
; then
2675 U_HAVE_NL_LANGINFO_CODESET
=0
2676 U_NL_LANGINFO_CODESET
=-1
2677 echo $ac_n "checking for nl_langinfo""... $ac_c" 1>&6
2678 echo "configure:2679: checking for nl_langinfo" >&5
2679 if eval "test \"`echo '$''{'ac_cv_func_nl_langinfo'+set}'`\" = set"; then
2680 echo $ac_n "(cached) $ac_c" 1>&6
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. */
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. */
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)
2706 if { (eval echo configure
:2707: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2708 eval "ac_cv_func_nl_langinfo=yes"
2710 echo "configure: failed program was:" >&5
2711 cat conftest.
$ac_ext >&5
2713 eval "ac_cv_func_nl_langinfo=no"
2718 if eval "test \"`echo '$ac_cv_func_'nl_langinfo`\" = yes"; then
2719 echo "$ac_t""yes" 1>&6
2720 U_HAVE_NL_LANGINFO
=1
2722 echo "$ac_t""no" 1>&6
2723 U_HAVE_NL_LANGINFO
=0
2727 if 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
2729 echo "configure:2730: checking for nl_langinfo's argument to obtain the codeset" >&5
2730 if eval "test \"`echo '$''{'ac_cv_nl_langinfo_codeset'+set}'`\" = set"; then
2731 echo $ac_n "(cached) $ac_c" 1>&6
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>
2743 if { (eval echo configure
:2744: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2745 ac_cv_nl_langinfo_codeset
="$a"; break
2747 echo "configure: failed program was:" >&5
2748 cat conftest.
$ac_ext >&5
2754 echo "$ac_t""$ac_cv_nl_langinfo_codeset" 1>&6
2755 if test x
$ac_cv_nl_langinfo_codeset != xunknown
2757 U_HAVE_NL_LANGINFO_CODESET
=1
2758 U_NL_LANGINFO_CODESET
=$ac_cv_nl_langinfo_codeset
2765 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2766 ac_cpp
='$CXXCPP $CPPFLAGS'
2767 ac_compile
='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2768 ac_link
='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2769 cross_compiling
=$ac_cv_prog_cxx_cross
2771 echo $ac_n "checking for namespace support""... $ac_c" 1>&6
2772 echo "configure:2773: checking for namespace support" >&5
2773 if eval "test \"`echo '$''{'ac_cv_namespace_ok'+set}'`\" = set"; then
2774 echo $ac_n "(cached) $ac_c" 1>&6
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;
2787 if { (eval echo configure
:2788: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2789 ac_cv_namespace_ok
=yes
2791 echo "configure: failed program was:" >&5
2792 cat conftest.
$ac_ext >&5
2794 ac_cv_namespace_ok
=no
2799 echo "$ac_t""$ac_cv_namespace_ok" 1>&6
2801 if test $ac_cv_namespace_ok = no
2807 echo $ac_n "checking for properly overriding new and delete""... $ac_c" 1>&6
2808 echo "configure:2809: checking for properly overriding new and delete" >&5
2809 U_OVERRIDE_CXX_ALLOCATION
=0
2810 U_HAVE_PLACEMENT_NEW
=0
2811 if eval "test \"`echo '$''{'ac_cv_override_cxx_allocation_ok'+set}'`\" = set"; then
2812 echo $ac_n "(cached) $ac_c" 1>&6
2814 cat > conftest.
$ac_ext <<EOF
2815 #line 2816 "configure"
2816 #include "confdefs.h"
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);}
2829 if { (eval echo configure
:2830: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2831 ac_cv_override_cxx_allocation_ok
=yes
2833 echo "configure: failed program was:" >&5
2834 cat conftest.
$ac_ext >&5
2836 ac_cv_override_cxx_allocation_ok
=no
2841 echo "$ac_t""$ac_cv_override_cxx_allocation_ok" 1>&6
2842 if test $ac_cv_override_cxx_allocation_ok = yes
2844 U_OVERRIDE_CXX_ALLOCATION
=1
2845 echo $ac_n "checking for placement new and delete""... $ac_c" 1>&6
2846 echo "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
2850 cat > conftest.
$ac_ext <<EOF
2851 #line 2852 "configure"
2852 #include "confdefs.h"
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 *) {}
2867 if { (eval echo configure
:2868: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2869 ac_cv_override_placement_new_ok
=yes
2871 echo "configure: failed program was:" >&5
2872 cat conftest.
$ac_ext >&5
2874 ac_cv_override_placement_new_ok
=no
2879 echo "$ac_t""$ac_cv_override_placement_new_ok" 1>&6
2880 if test $ac_cv_override_placement_new_ok = yes
2882 U_HAVE_PLACEMENT_NEW
=1
2889 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2890 ac_cpp
='$CPP $CPPFLAGS'
2891 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2892 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2893 cross_compiling
=$ac_cv_prog_cc_cross
2895 echo $ac_n "checking for popen""... $ac_c" 1>&6
2896 echo "configure:2897: checking for popen" >&5
2897 if eval "test \"`echo '$''{'ac_cv_func_popen'+set}'`\" = set"; then
2898 echo $ac_n "(cached) $ac_c" 1>&6
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. */
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. */
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)
2924 if { (eval echo configure
:2925: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2926 eval "ac_cv_func_popen=yes"
2928 echo "configure: failed program was:" >&5
2929 cat conftest.
$ac_ext >&5
2931 eval "ac_cv_func_popen=no"
2936 if eval "test \"`echo '$ac_cv_func_'popen`\" = yes"; then
2937 echo "$ac_t""yes" 1>&6
2940 echo "$ac_t""no" 1>&6
2943 if test x
$ac_cv_func_popen = xyes
2951 echo $ac_n "checking for tzset""... $ac_c" 1>&6
2952 echo "configure:2953: checking for tzset" >&5
2953 if eval "test \"`echo '$''{'ac_cv_func_tzset'+set}'`\" = set"; then
2954 echo $ac_n "(cached) $ac_c" 1>&6
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. */
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. */
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)
2980 if { (eval echo configure
:2981: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2982 eval "ac_cv_func_tzset=yes"
2984 echo "configure: failed program was:" >&5
2985 cat conftest.
$ac_ext >&5
2987 eval "ac_cv_func_tzset=no"
2992 if eval "test \"`echo '$ac_cv_func_'tzset`\" = yes"; then
2993 echo "$ac_t""yes" 1>&6
2996 echo "$ac_t""no" 1>&6
2999 if test x
$ac_cv_func_tzset = xyes
3003 echo $ac_n "checking for _tzset""... $ac_c" 1>&6
3004 echo "configure:3005: checking for _tzset" >&5
3005 if eval "test \"`echo '$''{'ac_cv_func__tzset'+set}'`\" = set"; then
3006 echo $ac_n "(cached) $ac_c" 1>&6
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. */
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. */
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)
3032 if { (eval echo configure
:3033: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3034 eval "ac_cv_func__tzset=yes"
3036 echo "configure: failed program was:" >&5
3037 cat conftest.
$ac_ext >&5
3039 eval "ac_cv_func__tzset=no"
3044 if eval "test \"`echo '$ac_cv_func_'_tzset`\" = yes"; then
3045 echo "$ac_t""yes" 1>&6
3048 echo "$ac_t""no" 1>&6
3051 if test x
$ac_cv_func__tzset = xyes
3057 echo $ac_n "checking for tzname""... $ac_c" 1>&6
3058 echo "configure:3059: checking for tzname" >&5
3059 if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then
3060 echo $ac_n "(cached) $ac_c" 1>&6
3062 cat > conftest.
$ac_ext <<EOF
3063 #line 3064 "configure"
3064 #include "confdefs.h"
3069 #ifndef tzname /* For SGI. */
3070 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
3076 if { (eval echo configure
:3077: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3078 ac_cv_var_tzname
=yes
3080 echo "configure: failed program was:" >&5
3081 cat conftest.
$ac_ext >&5
3088 echo "$ac_t""$ac_cv_var_tzname" 1>&6
3089 if test $ac_cv_var_tzname = yes; then
3092 echo $ac_n "checking for _tzname""... $ac_c" 1>&6
3093 echo "configure:3094: checking for _tzname" >&5
3094 if eval "test \"`echo '$''{'ac_cv_var__tzname'+set}'`\" = set"; then
3095 echo $ac_n "(cached) $ac_c" 1>&6
3097 cat > conftest.
$ac_ext <<EOF
3098 #line 3099 "configure"
3099 #include "confdefs.h"
3101 extern char *_tzname[];
3107 if { (eval echo configure
:3108: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3109 ac_cv_var__tzname
=yes
3111 echo "configure: failed program was:" >&5
3112 cat conftest.
$ac_ext >&5
3114 ac_cv_var__tzname
=no
3119 echo "$ac_t""$ac_cv_var__tzname" 1>&6
3120 if test $ac_cv_var__tzname = yes; then
3126 echo $ac_n "checking for timezone""... $ac_c" 1>&6
3127 echo "configure:3128: checking for timezone" >&5
3128 if eval "test \"`echo '$''{'ac_cv_var_timezone'+set}'`\" = set"; then
3129 echo $ac_n "(cached) $ac_c" 1>&6
3131 cat > conftest.
$ac_ext <<EOF
3132 #line 3133 "configure"
3133 #include "confdefs.h"
3146 if { (eval echo configure
:3147: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3148 ac_cv_var_timezone
=yes
3150 echo "configure: failed program was:" >&5
3151 cat conftest.
$ac_ext >&5
3153 ac_cv_var_timezone
=no
3158 echo "$ac_t""$ac_cv_var_timezone" 1>&6
3160 if test $ac_cv_var_timezone = yes; then
3164 echo $ac_n "checking for __timezone""... $ac_c" 1>&6
3165 echo "configure:3166: checking for __timezone" >&5
3166 if eval "test \"`echo '$''{'ac_cv_var___timezone'+set}'`\" = set"; then
3167 echo $ac_n "(cached) $ac_c" 1>&6
3169 cat > conftest.
$ac_ext <<EOF
3170 #line 3171 "configure"
3171 #include "confdefs.h"
3178 if { (eval echo configure
:3179: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3180 ac_cv_var___timezone
=yes
3182 echo "configure: failed program was:" >&5
3183 cat conftest.
$ac_ext >&5
3185 ac_cv_var___timezone
=no
3190 echo "$ac_t""$ac_cv_var___timezone" 1>&6
3191 if test $ac_cv_var___timezone = yes; then
3192 U_TIMEZONE
=__timezone
3195 echo $ac_n "checking for _timezone""... $ac_c" 1>&6
3196 echo "configure:3197: checking for _timezone" >&5
3197 if eval "test \"`echo '$''{'ac_cv_var__timezone'+set}'`\" = set"; then
3198 echo $ac_n "(cached) $ac_c" 1>&6
3200 cat > conftest.
$ac_ext <<EOF
3201 #line 3202 "configure"
3202 #include "confdefs.h"
3209 if { (eval echo configure
:3210: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3211 ac_cv_var__timezone
=yes
3213 echo "configure: failed program was:" >&5
3214 cat conftest.
$ac_ext >&5
3216 ac_cv_var__timezone
=no
3221 echo "$ac_t""$ac_cv_var__timezone" 1>&6
3222 if test $ac_cv_var__timezone = yes; then
3223 U_TIMEZONE
=_timezone
3231 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
3232 echo "configure:3233: checking for ANSI C header files" >&5
3233 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
3234 echo $ac_n "(cached) $ac_c" 1>&6
3236 cat > conftest.
$ac_ext <<EOF
3237 #line 3238 "configure"
3238 #include "confdefs.h"
3244 ac_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; }
3246 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3247 if test -z "$ac_err"; then
3249 ac_cv_header_stdc
=yes
3252 echo "configure: failed program was:" >&5
3253 cat conftest.
$ac_ext >&5
3255 ac_cv_header_stdc
=no
3259 if test $ac_cv_header_stdc = yes; then
3260 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3261 cat > conftest.
$ac_ext <<EOF
3262 #line 3263 "configure"
3263 #include "confdefs.h"
3266 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3267 egrep "memchr" >/dev
/null
2>&1; then
3271 ac_cv_header_stdc
=no
3277 if test $ac_cv_header_stdc = yes; then
3278 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3279 cat > conftest.
$ac_ext <<EOF
3280 #line 3281 "configure"
3281 #include "confdefs.h"
3284 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3285 egrep "free" >/dev
/null
2>&1; then
3289 ac_cv_header_stdc
=no
3295 if test $ac_cv_header_stdc = yes; then
3296 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3297 if test "$cross_compiling" = yes; then
3300 cat > conftest.
$ac_ext <<EOF
3301 #line 3302 "configure"
3302 #include "confdefs.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)))
3307 int main () { int i; for (i = 0; i < 256; i++)
3308 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
3312 if { (eval echo configure
:3313: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3316 echo "configure: failed program was:" >&5
3317 cat conftest.
$ac_ext >&5
3319 ac_cv_header_stdc
=no
3327 echo "$ac_t""$ac_cv_header_stdc" 1>&6
3328 if test $ac_cv_header_stdc = yes; then
3329 cat >> confdefs.h
<<\EOF
3330 #define STDC_HEADERS 1
3335 echo $ac_n "checking for int8_t""... $ac_c" 1>&6
3336 echo "configure:3337: checking for int8_t" >&5
3337 if eval "test \"`echo '$''{'ac_cv_type_int8_t'+set}'`\" = set"; then
3338 echo $ac_n "(cached) $ac_c" 1>&6
3340 cat > conftest.
$ac_ext <<EOF
3341 #line 3342 "configure"
3342 #include "confdefs.h"
3343 #include <sys/types.h>
3349 if (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
3352 ac_cv_type_int8_t
=yes
3355 ac_cv_type_int8_t
=no
3360 echo "$ac_t""$ac_cv_type_int8_t" 1>&6
3361 if test $ac_cv_type_int8_t = no
; then
3362 cat >> confdefs.h
<<\EOF
3363 #define int8_t signed char
3368 echo $ac_n "checking for uint8_t""... $ac_c" 1>&6
3369 echo "configure:3370: checking for uint8_t" >&5
3370 if eval "test \"`echo '$''{'ac_cv_type_uint8_t'+set}'`\" = set"; then
3371 echo $ac_n "(cached) $ac_c" 1>&6
3373 cat > conftest.
$ac_ext <<EOF
3374 #line 3375 "configure"
3375 #include "confdefs.h"
3376 #include <sys/types.h>
3382 if (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
3385 ac_cv_type_uint8_t
=yes
3388 ac_cv_type_uint8_t
=no
3393 echo "$ac_t""$ac_cv_type_uint8_t" 1>&6
3394 if test $ac_cv_type_uint8_t = no
; then
3395 cat >> confdefs.h
<<\EOF
3396 #define uint8_t unsigned char
3401 echo $ac_n "checking for int16_t""... $ac_c" 1>&6
3402 echo "configure:3403: checking for int16_t" >&5
3403 if eval "test \"`echo '$''{'ac_cv_type_int16_t'+set}'`\" = set"; then
3404 echo $ac_n "(cached) $ac_c" 1>&6
3406 cat > conftest.
$ac_ext <<EOF
3407 #line 3408 "configure"
3408 #include "confdefs.h"
3409 #include <sys/types.h>
3415 if (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
3418 ac_cv_type_int16_t
=yes
3421 ac_cv_type_int16_t
=no
3426 echo "$ac_t""$ac_cv_type_int16_t" 1>&6
3427 if test $ac_cv_type_int16_t = no
; then
3428 cat >> confdefs.h
<<\EOF
3429 #define int16_t signed short
3434 echo $ac_n "checking for uint16_t""... $ac_c" 1>&6
3435 echo "configure:3436: checking for uint16_t" >&5
3436 if eval "test \"`echo '$''{'ac_cv_type_uint16_t'+set}'`\" = set"; then
3437 echo $ac_n "(cached) $ac_c" 1>&6
3439 cat > conftest.
$ac_ext <<EOF
3440 #line 3441 "configure"
3441 #include "confdefs.h"
3442 #include <sys/types.h>
3448 if (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
3451 ac_cv_type_uint16_t
=yes
3454 ac_cv_type_uint16_t
=no
3459 echo "$ac_t""$ac_cv_type_uint16_t" 1>&6
3460 if test $ac_cv_type_uint16_t = no
; then
3461 cat >> confdefs.h
<<\EOF
3462 #define uint16_t unsigned short
3467 echo $ac_n "checking for int32_t""... $ac_c" 1>&6
3468 echo "configure:3469: checking for int32_t" >&5
3469 if eval "test \"`echo '$''{'ac_cv_type_int32_t'+set}'`\" = set"; then
3470 echo $ac_n "(cached) $ac_c" 1>&6
3472 cat > conftest.
$ac_ext <<EOF
3473 #line 3474 "configure"
3474 #include "confdefs.h"
3475 #include <sys/types.h>
3481 if (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
3484 ac_cv_type_int32_t
=yes
3487 ac_cv_type_int32_t
=no
3492 echo "$ac_t""$ac_cv_type_int32_t" 1>&6
3493 if test $ac_cv_type_int32_t = no
; then
3494 cat >> confdefs.h
<<\EOF
3495 #define int32_t signed long
3500 echo $ac_n "checking for uint32_t""... $ac_c" 1>&6
3501 echo "configure:3502: checking for uint32_t" >&5
3502 if eval "test \"`echo '$''{'ac_cv_type_uint32_t'+set}'`\" = set"; then
3503 echo $ac_n "(cached) $ac_c" 1>&6
3505 cat > conftest.
$ac_ext <<EOF
3506 #line 3507 "configure"
3507 #include "confdefs.h"
3508 #include <sys/types.h>
3514 if (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
3517 ac_cv_type_uint32_t
=yes
3520 ac_cv_type_uint32_t
=no
3525 echo "$ac_t""$ac_cv_type_uint32_t" 1>&6
3526 if test $ac_cv_type_uint32_t = no
; then
3527 cat >> confdefs.h
<<\EOF
3528 #define uint32_t unsigned long
3533 echo $ac_n "checking for int64_t""... $ac_c" 1>&6
3534 echo "configure:3535: checking for int64_t" >&5
3535 if eval "test \"`echo '$''{'ac_cv_type_int64_t'+set}'`\" = set"; then
3536 echo $ac_n "(cached) $ac_c" 1>&6
3538 cat > conftest.
$ac_ext <<EOF
3539 #line 3540 "configure"
3540 #include "confdefs.h"
3541 #include <sys/types.h>
3547 if (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
3550 ac_cv_type_int64_t
=yes
3553 ac_cv_type_int64_t
=no
3558 echo "$ac_t""$ac_cv_type_int64_t" 1>&6
3559 if test $ac_cv_type_int64_t = no
; then
3560 cat >> confdefs.h
<<\EOF
3561 #define int64_t signed long long
3566 echo $ac_n "checking for uint64_t""... $ac_c" 1>&6
3567 echo "configure:3568: checking for uint64_t" >&5
3568 if eval "test \"`echo '$''{'ac_cv_type_uint64_t'+set}'`\" = set"; then
3569 echo $ac_n "(cached) $ac_c" 1>&6
3571 cat > conftest.
$ac_ext <<EOF
3572 #line 3573 "configure"
3573 #include "confdefs.h"
3574 #include <sys/types.h>
3580 if (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
3583 ac_cv_type_uint64_t
=yes
3586 ac_cv_type_uint64_t
=no
3591 echo "$ac_t""$ac_cv_type_uint64_t" 1>&6
3592 if test $ac_cv_type_uint64_t = no
; then
3593 cat >> confdefs.h
<<\EOF
3594 #define uint64_t unsigned long long
3600 if test $ac_cv_type_int8_t = no
; then
3607 if test $ac_cv_type_uint8_t = no
; then
3614 if test $ac_cv_type_int16_t = no
; then
3621 if test $ac_cv_type_uint16_t = no
; then
3628 if test $ac_cv_type_int32_t = no
; then
3635 if test $ac_cv_type_uint32_t = no
; then
3642 if test $ac_cv_type_int64_t = no
; then
3649 if test $ac_cv_type_uint64_t = no
; then
3656 ac_safe
=`echo "wchar.h" | sed 'y%./+-%__p_%'`
3657 echo $ac_n "checking for wchar.h""... $ac_c" 1>&6
3658 echo "configure:3659: checking for wchar.h" >&5
3659 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3660 echo $ac_n "(cached) $ac_c" 1>&6
3662 cat > conftest.
$ac_ext <<EOF
3663 #line 3664 "configure"
3664 #include "confdefs.h"
3667 ac_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; }
3669 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3670 if test -z "$ac_err"; then
3672 eval "ac_cv_header_$ac_safe=yes"
3675 echo "configure: failed program was:" >&5
3676 cat conftest.
$ac_ext >&5
3678 eval "ac_cv_header_$ac_safe=no"
3682 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3683 echo "$ac_t""yes" 1>&6
3686 echo "$ac_t""no" 1>&6
3689 if test "$ac_cv_header_wchar_h" = no
3694 cat >> confdefs.h
<<\EOF
3695 #define HAVE_WCHAR_H 1
3700 echo $ac_n "checking for library containing wcscpy""... $ac_c" 1>&6
3701 echo "configure:3702: checking for library containing wcscpy" >&5
3702 if eval "test \"`echo '$''{'ac_cv_search_wcscpy'+set}'`\" = set"; then
3703 echo $ac_n "(cached) $ac_c" 1>&6
3705 ac_func_search_save_LIBS
="$LIBS"
3706 ac_cv_search_wcscpy
="no"
3707 cat > 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. */
3719 if { (eval echo configure
:3720: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3721 ac_cv_search_wcscpy
="none required"
3723 echo "configure: failed program was:" >&5
3724 cat conftest.
$ac_ext >&5
3727 test "$ac_cv_search_wcscpy" = "no" && for i
in wcs w
; do
3728 LIBS
="-l$i $ac_func_search_save_LIBS"
3729 cat > 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. */
3741 if { (eval echo configure
:3742: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3743 ac_cv_search_wcscpy
="-l$i"
3746 echo "configure: failed program was:" >&5
3747 cat conftest.
$ac_ext >&5
3751 LIBS
="$ac_func_search_save_LIBS"
3754 echo "$ac_t""$ac_cv_search_wcscpy" 1>&6
3755 if test "$ac_cv_search_wcscpy" != "no"; then
3756 test "$ac_cv_search_wcscpy" = "none required" || LIBS
="$ac_cv_search_wcscpy $LIBS"
3761 if test "$ac_cv_search_wcscpy" != no
; then
3770 ac_default_sizeof_wchar_t
=4
3771 echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6
3772 echo "configure:3773: checking size of wchar_t" >&5
3773 if eval "test \"`echo '$''{'ac_cv_sizeof_wchar_t'+set}'`\" = set"; then
3774 echo $ac_n "(cached) $ac_c" 1>&6
3776 if test "$cross_compiling" = yes; then
3777 ac_cv_sizeof_wchar_t
=$ac_default_sizeof_wchar_t
3779 cat > conftest.
$ac_ext <<EOF
3780 #line 3781 "configure"
3781 #include "confdefs.h"
3792 FILE *f=fopen("conftestval", "w");
3794 fprintf(f, "%d\n", sizeof(wchar_t));
3798 if { (eval echo configure
:3799: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3800 ac_cv_sizeof_wchar_t
=`cat conftestval`
3802 echo "configure: failed program was:" >&5
3803 cat conftest.
$ac_ext >&5
3805 ac_cv_sizeof_wchar_t
=0
3811 echo "$ac_t""$ac_cv_sizeof_wchar_t" 1>&6
3812 cat >> confdefs.h
<<EOF
3813 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
3817 U_SIZEOF_WCHAR_T
=$ac_cv_sizeof_wchar_t
3818 if 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; }
3830 # Check whether --enable-extras or --disable-extras was given.
3831 if test "${enable_extras+set}" = set; then
3832 enableval
="$enable_extras"
3833 case "${enableval}" in
3836 *) { echo "configure: error: bad value ${enableval} for --enable-extras" 1>&2; exit 1; } ;;
3844 if test "$extras" = true
; then
3851 # Check whether --enable-extras or --disable-extras was given.
3852 if test "${enable_extras+set}" = set; then
3853 enableval
="$enable_extras"
3854 case "${enableval}" in
3857 *) { echo "configure: error: bad value ${enableval} for --enable-ustdio" 1>&2; exit 1; } ;;
3865 if test "$ustdio" = true
; then
3873 # Check whether --enable-layout or --disable-layout was given.
3874 if test "${enable_layout+set}" = set; then
3875 enableval
="$enable_layout"
3876 case "${enableval}" in
3879 *) { echo "configure: error: bad value ${enableval} for --enable-layout" 1>&2; exit 1; } ;;
3887 if test "$layout" = true
; then
3895 # Check whether --with-data-packaging or --without-data-packaging was given.
3896 if 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; } ;;
3910 thesysconfdir
=`eval echo $sysconfdir`
3912 thedatadir
=`eval echo $datadir`
3914 thelibdir
=`test "x$exec_prefix" = xNONE && exec_prefix="$prefix"; eval echo $libdir`
3916 case $datapackaging in
3918 pkgicudatadir
=$datadir
3919 thepkgicudatadir
=$thedatadir
3922 pkgicudatadir
=$libdir
3923 thepkgicudatadir
=$thelibdir
3930 # Check whether --enable-mapped or --disable-mapped was given.
3931 if 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; } ;;
3943 if test x
"$mapped" != x
; then
3946 echo "configure: warning: use --with-data-packaging=archive instead of --enable-mapped" 1>&2
3949 echo "configure: warning: use --with-data-packaging=library instead of --disable-mapped" 1>&2
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; }
3955 datapackaging
=$mapped
3958 if test x
"$datapackaging" = x
-o x
"$datapackaging" = xauto
; then
3959 datapackaging
=library
3962 case "$datapackaging" in
3964 DATA_PACKAGING_CPPFLAGS
=-DUDATA_FILES
3965 DATA_PACKAGING_MODE
=files
3968 DATA_PACKAGING_CPPFLAGS
=-DUDATA_MAP
3969 DATA_PACKAGING_MODE
=common
3972 DATA_PACKAGING_CPPFLAGS
=-DUDATA_DLL
3973 DATA_PACKAGING_MODE
=dll
3979 echo $ac_n "checking for a library suffix to use""... $ac_c" 1>&6
3980 echo "configure:3981: checking for a library suffix to use" >&5
3981 # Check whether --with-library-suffix or --without-library-suffix was given.
3982 if test "${with_library_suffix+set}" = set; then
3983 withval
="$with_library_suffix"
3984 ICULIBSUFFIX
="${withval}"
3990 if test "$msg" = ""; then
3993 echo "$ac_t""$msg" 1>&6
3995 if test "$ICULIBSUFFIX" != ""
3998 ICULIBSUFFIXCNAME
=`echo _$ICULIBSUFFIX | sed 's/[^A-Za-z0-9_]/_/g'`
4005 # Check whether --enable-tests or --disable-tests was given.
4006 if test "${enable_tests+set}" = set; then
4007 enableval
="$enable_tests"
4008 case "${enableval}" in
4011 *) { echo "configure: error: bad value ${enableval} for --enable-tests" 1>&2; exit 1; } ;;
4019 if test "$tests" = true
; then
4027 # Check whether --enable-samples or --disable-samples was given.
4028 if 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; } ;;
4041 if test "$samples" = true
; then
4049 ICUDATA_CHAR
=$U_ENDIAN_CHAR
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
4061 *-*-os400*) platform
=OS400
4063 *-*-nto*) platform
=U_QNX
;;
4064 *-dec-osf*) platform
=U_OSF
;;
4065 *-*-irix*) platform
=IRIX
;;
4066 *-sequent-*) platform
=PTX
;;
4067 *) platform
=U_UNKNOWN_PLATFORM
;;
4071 platform_make_fragment_name
="$icu_cv_host_frag"
4072 platform_make_fragment
='$(top_srcdir)/config/'"$platform_make_fragment_name"
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
="" ;;
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
4103 if test -f $file.c
; then
4104 mv $file.c
$file.cpp
4106 echo "# $file.c does not exist or is already renamed [warning]"
4113 if test "${FORCE_LIBS}" != ""; then
4114 echo " *** Overriding automatically chosen LIBS=$LIBS, using instead FORCE_LIBS=${FORCE_LIBS}" 1>&6
4119 if test "${AIX_SHLIB}" != ""; then
4120 echo " *** setting AIX_SHLIB (AIX only) to ${AIX_SHLIB}]" 1>&6
4122 AIX_SHLIB
=makeC
++SharedLib_r
4128 if test $hpuxcma = true
; then
4129 CPPFLAGS
="${CPPFLAGS} -D_PTHREADS_DRAFT4 -DHPUX_CMA"
4133 if test $ICU_USE_THREADS -ne 0
4135 CPPFLAGS
="$CPPFLAGS \$(THREADSCPPFLAGS)"
4136 CFLAGS
="$CFLAGS \$(THREADSCFLAGS)"
4137 CXXFLAGS
="$CXXFLAGS \$(THREADSCXXFLAGS)"
4140 if test "$ac_cv_lib_dld_shl_load" = "yes"; then
4141 CPPFLAGS
="${CPPFLAGS} -DICU_USE_SHL_LOAD"
4145 if test "$ac_cv_func_dllload" = "yes"; then
4146 CPPFLAGS
="${CPPFLAGS} -DICU_USE_SHL_LOAD"
4150 cat > 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.
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.
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.
4172 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4174 # `set' does not quote correctly, so add quotes (double-quote substitution
4175 # turns \\\\ into \\, and sed turns \\ into \).
4177 -e "s/'/'\\\\''/g" \
4178 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
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'
4185 if cmp -s $cache_file confcache
; then
4188 if test -w $cache_file; then
4189 echo "updating cache $cache_file"
4190 cat confcache
> $cache_file
4192 echo "not updating unwritable cache $cache_file"
4197 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
4199 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
4200 # Let make expand exec_prefix.
4201 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
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.
4206 if test "x$srcdir" = x.
; then
4207 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
4210 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
4212 DEFS
=-DHAVE_CONFIG_H
4214 # Without the "./", some shells look in PATH for config.status.
4215 : ${CONFIG_STATUS=./config.status}
4217 echo creating
$CONFIG_STATUS
4218 rm -f $CONFIG_STATUS
4219 cat > $CONFIG_STATUS <<EOF
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`:
4226 # $0 $ac_configure_args
4228 # Compiler output produced by configure, useful for debugging
4229 # configure, is in ./config.log if it exists.
4231 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
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"
4241 -help | --help | --hel | --he | --h)
4242 echo "\$ac_cs_usage"; exit 0 ;;
4243 *) echo "\$ac_cs_usage"; exit 1 ;;
4247 ac_given_srcdir=$srcdir
4248 ac_given_INSTALL="$INSTALL"
4250 trap 'rm -fr `echo "README icudefs.mk \
4252 data/Makefile data/icupkg.inc \
4253 common/Makefile config/Makefile.inc i18n/Makefile \
4256 extra/Makefile extra/ustdio/Makefile \
4257 extra/uconv/Makefile extra/scrptrun/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
4286 cat >> $CONFIG_STATUS <<EOF
4288 # Protect against being on the right side of a sed subst in config.status.
4289 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
4290 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
4294 s%@CFLAGS@%$CFLAGS%g
4295 s%@CPPFLAGS@%$CPPFLAGS%g
4296 s%@CXXFLAGS@%$CXXFLAGS%g
4297 s%@FFLAGS@%$FFLAGS%g
4299 s%@LDFLAGS@%$LDFLAGS%g
4301 s%@exec_prefix@%$exec_prefix%g
4302 s%@prefix@%$prefix%g
4303 s%@program_transform_name@%$program_transform_name%g
4304 s%@bindir@%$bindir%g
4305 s%@sbindir@%$sbindir%g
4306 s%@libexecdir@%$libexecdir%g
4307 s%@datadir@%$datadir%g
4308 s%@sysconfdir@%$sysconfdir%g
4309 s%@sharedstatedir@%$sharedstatedir%g
4310 s%@localstatedir@%$localstatedir%g
4311 s%@libdir@%$libdir%g
4312 s%@includedir@%$includedir%g
4313 s%@oldincludedir@%$oldincludedir%g
4314 s%@infodir@%$infodir%g
4315 s%@mandir@%$mandir%g
4316 s%@PACKAGE@%$PACKAGE%g
4317 s%@VERSION@%$VERSION%g
4318 s%@LIB_VERSION@%$LIB_VERSION%g
4319 s%@LIB_VERSION_MAJOR@%$LIB_VERSION_MAJOR%g
4320 s%@UNICODE_VERSION@%$UNICODE_VERSION%g
4323 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
4324 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
4325 s%@INSTALL_DATA@%$INSTALL_DATA%g
4326 s%@AUTOCONF@%$AUTOCONF%g
4328 s%@U_MAKE@%$U_MAKE%g
4329 s%@DOXYGEN@%$DOXYGEN%g
4331 s%@host_alias@%$host_alias%g
4332 s%@host_cpu@%$host_cpu%g
4333 s%@host_vendor@%$host_vendor%g
4334 s%@host_os@%$host_os%g
4335 s%@EXEEXT@%$EXEEXT%g
4336 s%@ARFLAGS@%$ARFLAGS%g
4337 s%@COMPILE_LINK_ENVVAR@%$COMPILE_LINK_ENVVAR%g
4339 s%@HPUX_CMA_TRUE@%$HPUX_CMA_TRUE%g
4340 s%@HPUX_CMA_FALSE@%$HPUX_CMA_FALSE%g
4341 s%@ENABLE_SHARED@%$ENABLE_SHARED%g
4342 s%@ENABLE_STATIC@%$ENABLE_STATIC%g
4343 s%@RANLIB@%$RANLIB%g
4345 s%@U_DISABLE_RENAMING@%$U_DISABLE_RENAMING%g
4346 s%@ENABLE_RPATH@%$ENABLE_RPATH%g
4347 s%@U_INLINE@%$U_INLINE%g
4348 s%@THREADS_TRUE@%$THREADS_TRUE%g
4349 s%@THREADS_FALSE@%$THREADS_FALSE%g
4350 s%@ICU_USE_THREADS@%$ICU_USE_THREADS%g
4351 s%@HAVE_MMAP@%$HAVE_MMAP%g
4353 s%@U_HAVE_INTTYPES_H@%$U_HAVE_INTTYPES_H%g
4354 s%@CXXCPP@%$CXXCPP%g
4355 s%@U_IOSTREAM_SOURCE@%$U_IOSTREAM_SOURCE%g
4356 s%@U_IS_BIG_ENDIAN@%$U_IS_BIG_ENDIAN%g
4357 s%@U_HAVE_NL_LANGINFO@%$U_HAVE_NL_LANGINFO%g
4358 s%@U_HAVE_NL_LANGINFO_CODESET@%$U_HAVE_NL_LANGINFO_CODESET%g
4359 s%@U_NL_LANGINFO_CODESET@%$U_NL_LANGINFO_CODESET%g
4360 s%@U_HAVE_NAMESPACE@%$U_HAVE_NAMESPACE%g
4361 s%@U_OVERRIDE_CXX_ALLOCATION@%$U_OVERRIDE_CXX_ALLOCATION%g
4362 s%@U_HAVE_PLACEMENT_NEW@%$U_HAVE_PLACEMENT_NEW%g
4363 s%@U_HAVE_POPEN@%$U_HAVE_POPEN%g
4364 s%@U_TZSET@%$U_TZSET%g
4365 s%@U_TZNAME@%$U_TZNAME%g
4366 s%@U_HAVE_TIMEZONE@%$U_HAVE_TIMEZONE%g
4367 s%@U_TIMEZONE@%$U_TIMEZONE%g
4368 s%@HAVE_INT8_T@%$HAVE_INT8_T%g
4369 s%@HAVE_UINT8_T@%$HAVE_UINT8_T%g
4370 s%@HAVE_INT16_T@%$HAVE_INT16_T%g
4371 s%@HAVE_UINT16_T@%$HAVE_UINT16_T%g
4372 s%@HAVE_INT32_T@%$HAVE_INT32_T%g
4373 s%@HAVE_UINT32_T@%$HAVE_UINT32_T%g
4374 s%@HAVE_INT64_T@%$HAVE_INT64_T%g
4375 s%@HAVE_UINT64_T@%$HAVE_UINT64_T%g
4376 s%@U_HAVE_WCHAR_H@%$U_HAVE_WCHAR_H%g
4377 s%@U_HAVE_WCSCPY@%$U_HAVE_WCSCPY%g
4378 s%@U_SIZEOF_WCHAR_T@%$U_SIZEOF_WCHAR_T%g
4379 s%@ECHO_N@%$ECHO_N%g
4380 s%@ECHO_C@%$ECHO_C%g
4381 s%@EXTRAS_TRUE@%$EXTRAS_TRUE%g
4382 s%@EXTRAS_FALSE@%$EXTRAS_FALSE%g
4383 s%@USTDIO_TRUE@%$USTDIO_TRUE%g
4384 s%@USTDIO_FALSE@%$USTDIO_FALSE%g
4385 s%@LAYOUT_TRUE@%$LAYOUT_TRUE%g
4386 s%@LAYOUT_FALSE@%$LAYOUT_FALSE%g
4387 s%@thesysconfdir@%$thesysconfdir%g
4388 s%@thedatadir@%$thedatadir%g
4389 s%@thelibdir@%$thelibdir%g
4390 s%@pkgicudatadir@%$pkgicudatadir%g
4391 s%@thepkgicudatadir@%$thepkgicudatadir%g
4392 s%@DATA_PACKAGING_CPPFLAGS@%$DATA_PACKAGING_CPPFLAGS%g
4393 s%@DATA_PACKAGING_MODE@%$DATA_PACKAGING_MODE%g
4394 s%@ICULIBSUFFIX@%$ICULIBSUFFIX%g
4395 s%@U_HAVE_LIB_SUFFIX@%$U_HAVE_LIB_SUFFIX%g
4396 s%@ICULIBSUFFIXCNAME@%$ICULIBSUFFIXCNAME%g
4397 s%@TESTS_TRUE@%$TESTS_TRUE%g
4398 s%@TESTS_FALSE@%$TESTS_FALSE%g
4399 s%@SAMPLES_TRUE@%$SAMPLES_TRUE%g
4400 s%@SAMPLES_FALSE@%$SAMPLES_FALSE%g
4401 s%@ICUDATA_CHAR@%$ICUDATA_CHAR%g
4402 s%@platform@%$platform%g
4403 s%@platform_make_fragment_name@%$platform_make_fragment_name%g
4404 s%@platform_make_fragment@%$platform_make_fragment%g
4405 s%@ld_rpath_suf@%$ld_rpath_suf%g
4406 s%@AIX_SHLIB@%$AIX_SHLIB%g
4411 cat >> $CONFIG_STATUS <<\EOF
4413 # Split the substitutions into bite-sized pieces for seds with
4414 # small command number limits, like on Digital OSF/1 and HP-UX.
4415 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
4416 ac_file
=1 # Number of current file.
4417 ac_beg
=1 # First line for current file.
4418 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
4421 while $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
4425 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
4427 if test ! -s conftest.s
$ac_file; then
4429 rm -f conftest.s
$ac_file
4431 if test -z "$ac_sed_cmds"; then
4432 ac_sed_cmds
="sed -f conftest.s$ac_file"
4434 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
4436 ac_file
=`expr $ac_file + 1`
4438 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
4441 if test -z "$ac_sed_cmds"; then
4446 cat >> $CONFIG_STATUS <<EOF
4448 CONFIG_FILES=\${CONFIG_FILES-"README icudefs.mk \
4450 data/Makefile data/icupkg.inc \
4451 common/Makefile config/Makefile.inc i18n/Makefile \
4454 extra/Makefile extra/ustdio/Makefile \
4455 extra/uconv/Makefile extra/scrptrun/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"}
4484 cat >> $CONFIG_STATUS <<\EOF
4485 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
4486 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.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" ;;
4493 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
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'`
4504 ac_dir_suffix
= ac_dots
=
4507 case "$ac_given_srcdir" in
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" ;;
4513 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
4514 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
4517 case "$ac_given_INSTALL" in
4518 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
4519 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
4522 echo creating
"$ac_file"
4524 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
4526 *Makefile
*) ac_comsub
="1i\\
4527 # $configure_input" ;;
4531 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4533 s%@configure_input@%$configure_input%g
4534 s%@srcdir@%$srcdir%g
4535 s%@top_srcdir@%$top_srcdir%g
4536 s%@INSTALL@%$INSTALL%g
4537 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
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.
4544 # ac_d sets the value in "#define NAME VALUE" lines.
4545 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
4546 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
4549 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
4550 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4551 ac_uB
='\([ ]\)%\1#\2define\3'
4554 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4555 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4556 ac_eB
='$%\1#\2define\3'
4560 if test "${CONFIG_HEADERS+set}" != set; then
4562 cat >> $CONFIG_STATUS <<EOF
4563 CONFIG_HEADERS="common/icucfg.h"
4565 cat >> $CONFIG_STATUS <<\EOF
4567 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
4568 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.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" ;;
4575 echo creating
$ac_file
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
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.
4588 cat > conftest.hdr
<<\EOF
4591 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
4595 sed -n -f conftest.hdr confdefs.h > conftest.vals
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.
4601 cat >> conftest.vals <<\EOF
4602 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
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.
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
4618 sed -f conftest.frag conftest.in > conftest.out
4620 mv conftest.out conftest.in
4622 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
4624 mv conftest.tail conftest.vals
4628 cat >> $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
4633 if cmp -s $ac_file conftest.h 2>/dev/null; then
4634 echo "$ac_file is unchanged"
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"
4644 mv conftest.h $ac_file
4649 cat >> $CONFIG_STATUS <<EOF
4652 cat >> $CONFIG_STATUS <<\EOF
4656 chmod +x $CONFIG_STATUS
4657 rm -fr confdefs* $ac_clean_files
4658 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
4661 if 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
4665 echo "You must use $U_MAKE to build ICU."