Debian Codegraph @

source/configure

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