Debian Codegraph @

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