]>
Commit | Line | Data |
---|---|---|
b75a7d8f | 1 | #! /bin/sh |
b75a7d8f | 2 | # Guess values for system-dependent variables and create Makefiles. |
b331163b | 3 | # Generated by GNU Autoconf 2.69 for ICU 55.1. |
729e4ab9 | 4 | # |
b331163b | 5 | # Report bugs to <http://icu-project.org/bugs>. |
729e4ab9 | 6 | # |
b331163b | 7 | # Copyright (c) 1999-2015, International Business Machines Corporation and others. All Rights Reserved. |
729e4ab9 | 8 | # |
b331163b A |
9 | # |
10 | # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. | |
729e4ab9 | 11 | # |
b75a7d8f A |
12 | # |
13 | # This configure script is free software; the Free Software Foundation | |
14 | # gives unlimited permission to copy, distribute and modify it. | |
729e4ab9 A |
15 | ## -------------------- ## |
16 | ## M4sh Initialization. ## | |
17 | ## -------------------- ## | |
73c04bcf | 18 | |
729e4ab9 A |
19 | # Be more Bourne compatible |
20 | DUALCASE=1; export DUALCASE # for MKS sh | |
21 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
73c04bcf A |
22 | emulate sh |
23 | NULLCMD=: | |
729e4ab9 | 24 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
73c04bcf A |
25 | # is contrary to our usage. Disable this feature. |
26 | alias -g '${1+"$@"}'='"$@"' | |
729e4ab9 A |
27 | setopt NO_GLOB_SUBST |
28 | else | |
29 | case `(set -o) 2>/dev/null` in #( | |
30 | *posix*) : | |
31 | set -o posix ;; #( | |
32 | *) : | |
33 | ;; | |
34 | esac | |
73c04bcf | 35 | fi |
73c04bcf | 36 | |
729e4ab9 A |
37 | |
38 | as_nl=' | |
39 | ' | |
40 | export as_nl | |
41 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
42 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
43 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
44 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
45 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
46 | # but without wasting forks for bash or zsh. | |
47 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
48 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
49 | as_echo='print -r --' | |
50 | as_echo_n='print -rn --' | |
51 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
52 | as_echo='printf %s\n' | |
53 | as_echo_n='printf %s' | |
54 | else | |
55 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
56 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
57 | as_echo_n='/usr/ucb/echo -n' | |
58 | else | |
59 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
60 | as_echo_n_body='eval | |
61 | arg=$1; | |
62 | case $arg in #( | |
63 | *"$as_nl"*) | |
64 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
65 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
66 | esac; | |
67 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
68 | ' | |
69 | export as_echo_n_body | |
70 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
71 | fi | |
72 | export as_echo_body | |
73 | as_echo='sh -c $as_echo_body as_echo' | |
74 | fi | |
75 | ||
76 | # The user is always right. | |
77 | if test "${PATH_SEPARATOR+set}" != set; then | |
78 | PATH_SEPARATOR=: | |
79 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
80 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
81 | PATH_SEPARATOR=';' | |
82 | } | |
73c04bcf A |
83 | fi |
84 | ||
85 | ||
729e4ab9 A |
86 | # IFS |
87 | # We need space, tab and new line, in precisely that order. Quoting is | |
88 | # there to prevent editors from complaining about space-tab. | |
89 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
90 | # splitting by setting IFS to empty value.) | |
91 | IFS=" "" $as_nl" | |
92 | ||
93 | # Find who we are. Look in the path if we contain no directory separator. | |
4388f060 | 94 | as_myself= |
729e4ab9 A |
95 | case $0 in #(( |
96 | *[\\/]* ) as_myself=$0 ;; | |
97 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
98 | for as_dir in $PATH | |
99 | do | |
100 | IFS=$as_save_IFS | |
101 | test -z "$as_dir" && as_dir=. | |
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 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
115 | exit 1 | |
116 | fi | |
117 | ||
118 | # Unset variables that we do not need and which cause bugs (e.g. in | |
119 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
120 | # suppresses any "Segmentation fault" message there. '((' could | |
121 | # trigger a bug in pdksh 5.2.14. | |
122 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
123 | do eval test x\${$as_var+set} = xset \ | |
124 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
125 | done | |
73c04bcf A |
126 | PS1='$ ' |
127 | PS2='> ' | |
128 | PS4='+ ' | |
129 | ||
130 | # NLS nuisances. | |
729e4ab9 A |
131 | LC_ALL=C |
132 | export LC_ALL | |
133 | LANGUAGE=C | |
134 | export LANGUAGE | |
135 | ||
136 | # CDPATH. | |
137 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
138 | ||
b331163b A |
139 | # Use a proper internal environment variable to ensure we don't fall |
140 | # into an infinite loop, continuously re-executing ourselves. | |
141 | if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then | |
142 | _as_can_reexec=no; export _as_can_reexec; | |
143 | # We cannot yet assume a decent shell, so we have to provide a | |
144 | # neutralization value for shells without unset; and this also | |
145 | # works around shells that cannot unset nonexistent variables. | |
146 | # Preserve -v and -x to the replacement shell. | |
147 | BASH_ENV=/dev/null | |
148 | ENV=/dev/null | |
149 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
150 | case $- in # (((( | |
151 | *v*x* | *x*v* ) as_opts=-vx ;; | |
152 | *v* ) as_opts=-v ;; | |
153 | *x* ) as_opts=-x ;; | |
154 | * ) as_opts= ;; | |
155 | esac | |
156 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} | |
157 | # Admittedly, this is quite paranoid, since all the known shells bail | |
158 | # out after a failed `exec'. | |
159 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 | |
160 | as_fn_exit 255 | |
161 | fi | |
162 | # We don't want this to propagate to other subprocesses. | |
163 | { _as_can_reexec=; unset _as_can_reexec;} | |
729e4ab9 A |
164 | if test "x$CONFIG_SHELL" = x; then |
165 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : | |
166 | emulate sh | |
167 | NULLCMD=: | |
168 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which | |
169 | # is contrary to our usage. Disable this feature. | |
170 | alias -g '\${1+\"\$@\"}'='\"\$@\"' | |
171 | setopt NO_GLOB_SUBST | |
172 | else | |
173 | case \`(set -o) 2>/dev/null\` in #( | |
174 | *posix*) : | |
175 | set -o posix ;; #( | |
176 | *) : | |
177 | ;; | |
178 | esac | |
179 | fi | |
180 | " | |
181 | as_required="as_fn_return () { (exit \$1); } | |
182 | as_fn_success () { as_fn_return 0; } | |
183 | as_fn_failure () { as_fn_return 1; } | |
184 | as_fn_ret_success () { return 0; } | |
185 | as_fn_ret_failure () { return 1; } | |
186 | ||
187 | exitcode=0 | |
188 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } | |
189 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } | |
190 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } | |
191 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } | |
192 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : | |
193 | ||
194 | else | |
195 | exitcode=1; echo positional parameters were not saved. | |
196 | fi | |
b331163b A |
197 | test x\$exitcode = x0 || exit 1 |
198 | test -x / || exit 1" | |
729e4ab9 A |
199 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO |
200 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO | |
201 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && | |
202 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 | |
203 | test \$(( 1 + 1 )) = 2 || exit 1" | |
204 | if (eval "$as_required") 2>/dev/null; then : | |
205 | as_have_required=yes | |
206 | else | |
207 | as_have_required=no | |
208 | fi | |
209 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : | |
210 | ||
211 | else | |
212 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
213 | as_found=false | |
214 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
73c04bcf | 215 | do |
729e4ab9 A |
216 | IFS=$as_save_IFS |
217 | test -z "$as_dir" && as_dir=. | |
218 | as_found=: | |
219 | case $as_dir in #( | |
220 | /*) | |
221 | for as_base in sh bash ksh sh5; do | |
222 | # Try only shells that exist, to save several forks. | |
223 | as_shell=$as_dir/$as_base | |
224 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | |
225 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
226 | CONFIG_SHELL=$as_shell as_have_required=yes | |
227 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
228 | break 2 | |
229 | fi | |
230 | fi | |
231 | done;; | |
232 | esac | |
233 | as_found=false | |
234 | done | |
235 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && | |
236 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : | |
237 | CONFIG_SHELL=$SHELL as_have_required=yes | |
238 | fi; } | |
239 | IFS=$as_save_IFS | |
240 | ||
241 | ||
242 | if test "x$CONFIG_SHELL" != x; then : | |
b331163b A |
243 | export CONFIG_SHELL |
244 | # We cannot yet assume a decent shell, so we have to provide a | |
245 | # neutralization value for shells without unset; and this also | |
246 | # works around shells that cannot unset nonexistent variables. | |
247 | # Preserve -v and -x to the replacement shell. | |
248 | BASH_ENV=/dev/null | |
249 | ENV=/dev/null | |
250 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
251 | case $- in # (((( | |
252 | *v*x* | *x*v* ) as_opts=-vx ;; | |
253 | *v* ) as_opts=-v ;; | |
254 | *x* ) as_opts=-x ;; | |
255 | * ) as_opts= ;; | |
256 | esac | |
257 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} | |
258 | # Admittedly, this is quite paranoid, since all the known shells bail | |
259 | # out after a failed `exec'. | |
260 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 | |
261 | exit 255 | |
729e4ab9 A |
262 | fi |
263 | ||
264 | if test x$as_have_required = xno; then : | |
265 | $as_echo "$0: This script requires a shell more modern than all" | |
266 | $as_echo "$0: the shells that I found on your system." | |
267 | if test x${ZSH_VERSION+set} = xset ; then | |
268 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" | |
269 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." | |
73c04bcf | 270 | else |
b331163b A |
271 | $as_echo "$0: Please tell bug-autoconf@gnu.org and |
272 | $0: http://icu-project.org/bugs about your system, | |
729e4ab9 A |
273 | $0: including any error possibly output before this |
274 | $0: message. Then install a modern shell, or manually run | |
275 | $0: the script under such a shell if you do have one." | |
73c04bcf | 276 | fi |
729e4ab9 A |
277 | exit 1 |
278 | fi | |
279 | fi | |
280 | fi | |
281 | SHELL=${CONFIG_SHELL-/bin/sh} | |
282 | export SHELL | |
283 | # Unset more variables known to interfere with behavior of common tools. | |
284 | CLICOLOR_FORCE= GREP_OPTIONS= | |
285 | unset CLICOLOR_FORCE GREP_OPTIONS | |
286 | ||
287 | ## --------------------- ## | |
288 | ## M4sh Shell Functions. ## | |
289 | ## --------------------- ## | |
290 | # as_fn_unset VAR | |
291 | # --------------- | |
292 | # Portably unset VAR. | |
293 | as_fn_unset () | |
294 | { | |
295 | { eval $1=; unset $1;} | |
296 | } | |
297 | as_unset=as_fn_unset | |
298 | ||
299 | # as_fn_set_status STATUS | |
300 | # ----------------------- | |
301 | # Set $? to STATUS, without forking. | |
302 | as_fn_set_status () | |
303 | { | |
304 | return $1 | |
305 | } # as_fn_set_status | |
306 | ||
307 | # as_fn_exit STATUS | |
308 | # ----------------- | |
309 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
310 | as_fn_exit () | |
311 | { | |
312 | set +e | |
313 | as_fn_set_status $1 | |
314 | exit $1 | |
315 | } # as_fn_exit | |
316 | ||
317 | # as_fn_mkdir_p | |
318 | # ------------- | |
319 | # Create "$as_dir" as a directory, including parents if necessary. | |
320 | as_fn_mkdir_p () | |
321 | { | |
322 | ||
323 | case $as_dir in #( | |
324 | -*) as_dir=./$as_dir;; | |
325 | esac | |
326 | test -d "$as_dir" || eval $as_mkdir_p || { | |
327 | as_dirs= | |
328 | while :; do | |
329 | case $as_dir in #( | |
330 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
331 | *) as_qdir=$as_dir;; | |
332 | esac | |
333 | as_dirs="'$as_qdir' $as_dirs" | |
334 | as_dir=`$as_dirname -- "$as_dir" || | |
335 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
336 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
337 | X"$as_dir" : 'X\(//\)$' \| \ | |
338 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
339 | $as_echo X"$as_dir" | | |
340 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
341 | s//\1/ | |
342 | q | |
343 | } | |
344 | /^X\(\/\/\)[^/].*/{ | |
345 | s//\1/ | |
346 | q | |
347 | } | |
348 | /^X\(\/\/\)$/{ | |
349 | s//\1/ | |
350 | q | |
351 | } | |
352 | /^X\(\/\).*/{ | |
353 | s//\1/ | |
354 | q | |
355 | } | |
356 | s/.*/./; q'` | |
357 | test -d "$as_dir" && break | |
358 | done | |
359 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
360 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" | |
361 | ||
362 | ||
363 | } # as_fn_mkdir_p | |
b331163b A |
364 | |
365 | # as_fn_executable_p FILE | |
366 | # ----------------------- | |
367 | # Test if FILE is an executable regular file. | |
368 | as_fn_executable_p () | |
369 | { | |
370 | test -f "$1" && test -x "$1" | |
371 | } # as_fn_executable_p | |
729e4ab9 A |
372 | # as_fn_append VAR VALUE |
373 | # ---------------------- | |
374 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
375 | # advantage of any shell optimizations that allow amortized linear growth over | |
376 | # repeated appends, instead of the typical quadratic growth present in naive | |
377 | # implementations. | |
378 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
379 | eval 'as_fn_append () | |
380 | { | |
381 | eval $1+=\$2 | |
382 | }' | |
383 | else | |
384 | as_fn_append () | |
385 | { | |
386 | eval $1=\$$1\$2 | |
387 | } | |
388 | fi # as_fn_append | |
389 | ||
390 | # as_fn_arith ARG... | |
391 | # ------------------ | |
392 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
393 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
394 | # must be portable across $(()) and expr. | |
395 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
396 | eval 'as_fn_arith () | |
397 | { | |
398 | as_val=$(( $* )) | |
399 | }' | |
400 | else | |
401 | as_fn_arith () | |
402 | { | |
403 | as_val=`expr "$@" || test $? -eq 1` | |
404 | } | |
405 | fi # as_fn_arith | |
406 | ||
407 | ||
408 | # as_fn_error STATUS ERROR [LINENO LOG_FD] | |
409 | # ---------------------------------------- | |
410 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
411 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
412 | # script with STATUS, using 1 if that was 0. | |
413 | as_fn_error () | |
414 | { | |
415 | as_status=$1; test $as_status -eq 0 && as_status=1 | |
416 | if test "$4"; then | |
417 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
418 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
419 | fi | |
420 | $as_echo "$as_me: error: $2" >&2 | |
421 | as_fn_exit $as_status | |
422 | } # as_fn_error | |
73c04bcf | 423 | |
729e4ab9 A |
424 | if expr a : '\(a\)' >/dev/null 2>&1 && |
425 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
73c04bcf A |
426 | as_expr=expr |
427 | else | |
428 | as_expr=false | |
429 | fi | |
430 | ||
729e4ab9 | 431 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
73c04bcf A |
432 | as_basename=basename |
433 | else | |
434 | as_basename=false | |
435 | fi | |
436 | ||
729e4ab9 A |
437 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
438 | as_dirname=dirname | |
439 | else | |
440 | as_dirname=false | |
441 | fi | |
73c04bcf | 442 | |
729e4ab9 | 443 | as_me=`$as_basename -- "$0" || |
73c04bcf A |
444 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
445 | X"$0" : 'X\(//\)$' \| \ | |
729e4ab9 A |
446 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
447 | $as_echo X/"$0" | | |
448 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
449 | s//\1/ | |
450 | q | |
451 | } | |
452 | /^X\/\(\/\/\)$/{ | |
453 | s//\1/ | |
454 | q | |
455 | } | |
456 | /^X\/\(\/\).*/{ | |
457 | s//\1/ | |
458 | q | |
459 | } | |
460 | s/.*/./; q'` | |
73c04bcf | 461 | |
73c04bcf A |
462 | # Avoid depending upon Character Ranges. |
463 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
464 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
465 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
466 | as_cr_digits='0123456789' | |
467 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
468 | ||
73c04bcf | 469 | |
729e4ab9 A |
470 | as_lineno_1=$LINENO as_lineno_1a=$LINENO |
471 | as_lineno_2=$LINENO as_lineno_2a=$LINENO | |
472 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && | |
473 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { | |
474 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) | |
475 | sed -n ' | |
476 | p | |
477 | /[$]LINENO/= | |
478 | ' <$as_myself | | |
73c04bcf | 479 | sed ' |
729e4ab9 A |
480 | s/[$]LINENO.*/&-/ |
481 | t lineno | |
482 | b | |
483 | :lineno | |
73c04bcf | 484 | N |
729e4ab9 A |
485 | :loop |
486 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
73c04bcf | 487 | t loop |
729e4ab9 | 488 | s/-\n.*// |
73c04bcf | 489 | ' >$as_me.lineno && |
729e4ab9 A |
490 | chmod +x "$as_me.lineno" || |
491 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } | |
73c04bcf | 492 | |
b331163b A |
493 | # If we had to re-execute with $CONFIG_SHELL, we're ensured to have |
494 | # already done that, so ensure we don't try to do so again and fall | |
495 | # in an infinite loop. This has already happened in practice. | |
496 | _as_can_reexec=no; export _as_can_reexec | |
73c04bcf A |
497 | # Don't try to exec as it changes $[0], causing all sort of problems |
498 | # (the dirname of $[0] is not the place where we might find the | |
729e4ab9 A |
499 | # original and so on. Autoconf is especially sensitive to this). |
500 | . "./$as_me.lineno" | |
73c04bcf A |
501 | # Exit status is that of the last command. |
502 | exit | |
503 | } | |
504 | ||
729e4ab9 A |
505 | ECHO_C= ECHO_N= ECHO_T= |
506 | case `echo -n x` in #((((( | |
507 | -n*) | |
508 | case `echo 'xy\c'` in | |
509 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
510 | xy) ECHO_C='\c';; | |
511 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
512 | ECHO_T=' ';; | |
513 | esac;; | |
514 | *) | |
515 | ECHO_N='-n';; | |
73c04bcf A |
516 | esac |
517 | ||
729e4ab9 A |
518 | rm -f conf$$ conf$$.exe conf$$.file |
519 | if test -d conf$$.dir; then | |
520 | rm -f conf$$.dir/conf$$.file | |
73c04bcf | 521 | else |
729e4ab9 A |
522 | rm -f conf$$.dir |
523 | mkdir conf$$.dir 2>/dev/null | |
73c04bcf | 524 | fi |
729e4ab9 A |
525 | if (echo >conf$$.file) 2>/dev/null; then |
526 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
73c04bcf | 527 | as_ln_s='ln -s' |
729e4ab9 A |
528 | # ... but there are two gotchas: |
529 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
530 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
b331163b | 531 | # In both cases, we have to default to `cp -pR'. |
729e4ab9 | 532 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
b331163b | 533 | as_ln_s='cp -pR' |
729e4ab9 A |
534 | elif ln conf$$.file conf$$ 2>/dev/null; then |
535 | as_ln_s=ln | |
536 | else | |
b331163b | 537 | as_ln_s='cp -pR' |
73c04bcf | 538 | fi |
73c04bcf | 539 | else |
b331163b | 540 | as_ln_s='cp -pR' |
73c04bcf | 541 | fi |
729e4ab9 A |
542 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
543 | rmdir conf$$.dir 2>/dev/null | |
73c04bcf A |
544 | |
545 | if mkdir -p . 2>/dev/null; then | |
729e4ab9 | 546 | as_mkdir_p='mkdir -p "$as_dir"' |
73c04bcf A |
547 | else |
548 | test -d ./-p && rmdir ./-p | |
549 | as_mkdir_p=false | |
550 | fi | |
551 | ||
b331163b A |
552 | as_test_x='test -x' |
553 | as_executable_p=as_fn_executable_p | |
73c04bcf A |
554 | |
555 | # Sed expression to map a string onto a valid CPP name. | |
556 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
557 | ||
558 | # Sed expression to map a string onto a valid variable name. | |
559 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
560 | ||
561 | ||
729e4ab9 A |
562 | test -n "$DJDIR" || exec 7<&0 </dev/null |
563 | exec 6>&1 | |
73c04bcf A |
564 | |
565 | # Name of the host. | |
729e4ab9 | 566 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, |
73c04bcf A |
567 | # so uname gets run too. |
568 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
b75a7d8f | 569 | |
73c04bcf A |
570 | # |
571 | # Initializations. | |
572 | # | |
b75a7d8f | 573 | ac_default_prefix=/usr/local |
729e4ab9 | 574 | ac_clean_files= |
73c04bcf | 575 | ac_config_libobj_dir=. |
729e4ab9 | 576 | LIBOBJS= |
73c04bcf A |
577 | cross_compiling=no |
578 | subdirs= | |
579 | MFLAGS= | |
580 | MAKEFLAGS= | |
73c04bcf A |
581 | |
582 | # Identity of this package. | |
b331163b A |
583 | PACKAGE_NAME='ICU' |
584 | PACKAGE_TARNAME='International Components for Unicode' | |
585 | PACKAGE_VERSION='55.1' | |
586 | PACKAGE_STRING='ICU 55.1' | |
587 | PACKAGE_BUGREPORT='http://icu-project.org/bugs' | |
588 | PACKAGE_URL='http://icu-project.org' | |
589 | ||
73c04bcf A |
590 | ac_unique_file="common/unicode/utypes.h" |
591 | # Factoring default headers for most tests. | |
592 | ac_includes_default="\ | |
593 | #include <stdio.h> | |
729e4ab9 | 594 | #ifdef HAVE_SYS_TYPES_H |
73c04bcf A |
595 | # include <sys/types.h> |
596 | #endif | |
729e4ab9 | 597 | #ifdef HAVE_SYS_STAT_H |
73c04bcf A |
598 | # include <sys/stat.h> |
599 | #endif | |
729e4ab9 | 600 | #ifdef STDC_HEADERS |
73c04bcf A |
601 | # include <stdlib.h> |
602 | # include <stddef.h> | |
603 | #else | |
729e4ab9 | 604 | # ifdef HAVE_STDLIB_H |
73c04bcf A |
605 | # include <stdlib.h> |
606 | # endif | |
607 | #endif | |
729e4ab9 A |
608 | #ifdef HAVE_STRING_H |
609 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | |
73c04bcf A |
610 | # include <memory.h> |
611 | # endif | |
612 | # include <string.h> | |
613 | #endif | |
729e4ab9 | 614 | #ifdef HAVE_STRINGS_H |
73c04bcf A |
615 | # include <strings.h> |
616 | #endif | |
729e4ab9 | 617 | #ifdef HAVE_INTTYPES_H |
73c04bcf | 618 | # include <inttypes.h> |
73c04bcf | 619 | #endif |
729e4ab9 A |
620 | #ifdef HAVE_STDINT_H |
621 | # include <stdint.h> | |
622 | #endif | |
623 | #ifdef HAVE_UNISTD_H | |
73c04bcf A |
624 | # include <unistd.h> |
625 | #endif" | |
626 | ||
57a6839d A |
627 | ac_subst_vars='UCONFIG_CXXFLAGS |
628 | UCONFIG_CFLAGS | |
629 | UCONFIG_CPPFLAGS | |
630 | LTLIBOBJS | |
729e4ab9 | 631 | LIBOBJS |
4388f060 A |
632 | LIBCXXFLAGS |
633 | LIBCFLAGS | |
729e4ab9 A |
634 | platform_make_fragment |
635 | platform_make_fragment_name | |
636 | platform | |
637 | ICUDATA_CHAR | |
638 | SAMPLES_TRUE | |
639 | TESTS_TRUE | |
640 | ICULIBSUFFIXCNAME | |
641 | U_HAVE_LIB_SUFFIX | |
642 | ICULIBSUFFIX | |
643 | DATA_PACKAGING_MODE | |
644 | thepkgicudatadir | |
645 | pkgicudatadir | |
57a6839d | 646 | TOOLS_TRUE |
b331163b | 647 | LAYOUTEX_TRUE |
729e4ab9 A |
648 | LAYOUT_TRUE |
649 | ICUIO_TRUE | |
650 | EXTRAS_TRUE | |
729e4ab9 A |
651 | U_HAVE_WCSCPY |
652 | U_HAVE_WCHAR_H | |
729e4ab9 A |
653 | U_TIMEZONE |
654 | U_HAVE_TIMEZONE | |
655 | U_TZNAME | |
656 | U_HAVE_TZNAME | |
657 | U_TZSET | |
658 | U_HAVE_TZSET | |
659 | U_HAVE_POPEN | |
729e4ab9 A |
660 | U_HAVE_PLACEMENT_NEW |
661 | U_OVERRIDE_CXX_ALLOCATION | |
729e4ab9 A |
662 | U_NL_LANGINFO_CODESET |
663 | U_HAVE_NL_LANGINFO_CODESET | |
664 | U_IS_BIG_ENDIAN | |
729e4ab9 A |
665 | U_HAVE_DIRENT_H |
666 | U_HAVE_INTTYPES_H | |
667 | GENCCODE_ASSEMBLY | |
668 | HAVE_MMAP | |
669 | LIB_THREAD | |
57a6839d | 670 | U_HAVE_ATOMIC |
729e4ab9 | 671 | U_HAVE_STD_STRING |
729e4ab9 | 672 | ENABLE_RPATH |
729e4ab9 A |
673 | U_ENABLE_DYLOAD |
674 | U_ENABLE_TRACING | |
675 | U_DISABLE_RENAMING | |
676 | AR | |
677 | RANLIB | |
729e4ab9 A |
678 | U_DEFAULT_SHOW_DRAFT |
679 | UCLN_NO_AUTO_CLEANUP | |
680 | ENABLE_STATIC | |
681 | ENABLE_SHARED | |
682 | LIB_M | |
683 | COMPILE_LINK_ENVVAR | |
684 | ARFLAGS | |
685 | EGREP | |
686 | GREP | |
687 | DOXYGEN | |
688 | cross_buildroot | |
689 | U_MAKE | |
690 | cross_compiling | |
691 | INSTALL_DATA | |
692 | INSTALL_SCRIPT | |
693 | INSTALL_PROGRAM | |
694 | CPP | |
b331163b A |
695 | ICULEHB_LIBS |
696 | ICULEHB_CFLAGS | |
697 | PKG_CONFIG | |
729e4ab9 A |
698 | ac_ct_CXX |
699 | CXXFLAGS | |
700 | CXX | |
701 | OBJEXT | |
702 | EXEEXT | |
703 | ac_ct_CC | |
704 | LDFLAGS | |
705 | CFLAGS | |
706 | CC | |
707 | ENABLE_RELEASE | |
708 | ENABLE_DEBUG | |
709 | CPPFLAGS | |
729e4ab9 A |
710 | host_os |
711 | host_vendor | |
712 | host_cpu | |
713 | host | |
714 | build_os | |
715 | build_vendor | |
716 | build_cpu | |
717 | build | |
718 | UNICODE_VERSION | |
719 | LIB_VERSION_MAJOR | |
720 | LIB_VERSION | |
721 | VERSION | |
722 | ICU_ECHO_T | |
723 | ICU_ECHO_C | |
724 | ICU_ECHO_N | |
725 | PACKAGE | |
726 | target_alias | |
727 | host_alias | |
728 | build_alias | |
729 | LIBS | |
730 | ECHO_T | |
731 | ECHO_N | |
732 | ECHO_C | |
733 | DEFS | |
734 | mandir | |
735 | localedir | |
736 | libdir | |
737 | psdir | |
738 | pdfdir | |
739 | dvidir | |
740 | htmldir | |
741 | infodir | |
742 | docdir | |
743 | oldincludedir | |
744 | includedir | |
745 | localstatedir | |
746 | sharedstatedir | |
747 | sysconfdir | |
748 | datadir | |
749 | datarootdir | |
750 | libexecdir | |
751 | sbindir | |
752 | bindir | |
753 | program_transform_name | |
754 | prefix | |
755 | exec_prefix | |
756 | PACKAGE_URL | |
757 | PACKAGE_BUGREPORT | |
758 | PACKAGE_STRING | |
759 | PACKAGE_VERSION | |
760 | PACKAGE_TARNAME | |
761 | PACKAGE_NAME | |
762 | PATH_SEPARATOR | |
763 | SHELL' | |
73c04bcf | 764 | ac_subst_files='' |
729e4ab9 A |
765 | ac_user_opts=' |
766 | enable_option_checking | |
767 | enable_debug | |
768 | enable_release | |
769 | with_cross_build | |
770 | enable_strict | |
771 | enable_64bit_libs | |
772 | with_library_bits | |
773 | enable_shared | |
774 | enable_static | |
775 | enable_auto_cleanup | |
776 | enable_draft | |
777 | enable_renaming | |
778 | enable_tracing | |
779 | enable_dyload | |
780 | enable_rpath | |
729e4ab9 | 781 | enable_weak_threads |
729e4ab9 A |
782 | enable_extras |
783 | enable_icuio | |
784 | enable_layout | |
b331163b | 785 | enable_layoutex |
57a6839d | 786 | enable_tools |
729e4ab9 A |
787 | with_data_packaging |
788 | with_library_suffix | |
789 | enable_tests | |
790 | enable_samples | |
791 | ' | |
792 | ac_precious_vars='build_alias | |
793 | host_alias | |
794 | target_alias | |
795 | CC | |
796 | CFLAGS | |
797 | LDFLAGS | |
798 | LIBS | |
799 | CPPFLAGS | |
800 | CXX | |
801 | CXXFLAGS | |
802 | CCC | |
b331163b A |
803 | PKG_CONFIG |
804 | ICULEHB_CFLAGS | |
805 | ICULEHB_LIBS | |
729e4ab9 A |
806 | CPP' |
807 | ||
b75a7d8f A |
808 | |
809 | # Initialize some variables set by options. | |
73c04bcf A |
810 | ac_init_help= |
811 | ac_init_version=false | |
729e4ab9 A |
812 | ac_unrecognized_opts= |
813 | ac_unrecognized_sep= | |
b75a7d8f A |
814 | # The variables have the same names as the options, with |
815 | # dashes changed to underlines. | |
73c04bcf | 816 | cache_file=/dev/null |
b75a7d8f | 817 | exec_prefix=NONE |
b75a7d8f | 818 | no_create= |
b75a7d8f A |
819 | no_recursion= |
820 | prefix=NONE | |
821 | program_prefix=NONE | |
822 | program_suffix=NONE | |
823 | program_transform_name=s,x,x, | |
824 | silent= | |
825 | site= | |
826 | srcdir= | |
b75a7d8f A |
827 | verbose= |
828 | x_includes=NONE | |
829 | x_libraries=NONE | |
73c04bcf A |
830 | |
831 | # Installation directory options. | |
832 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
833 | # and all the variables that are supposed to be based on exec_prefix | |
834 | # by default will actually change. | |
835 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
729e4ab9 | 836 | # (The list follows the same order as the GNU Coding Standards.) |
b75a7d8f A |
837 | bindir='${exec_prefix}/bin' |
838 | sbindir='${exec_prefix}/sbin' | |
839 | libexecdir='${exec_prefix}/libexec' | |
46f4442e A |
840 | datarootdir='${prefix}/share' |
841 | datadir='${datarootdir}' | |
b75a7d8f A |
842 | sysconfdir='${prefix}/etc' |
843 | sharedstatedir='${prefix}/com' | |
844 | localstatedir='${prefix}/var' | |
b75a7d8f A |
845 | includedir='${prefix}/include' |
846 | oldincludedir='/usr/include' | |
b331163b | 847 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
729e4ab9 A |
848 | infodir='${datarootdir}/info' |
849 | htmldir='${docdir}' | |
850 | dvidir='${docdir}' | |
851 | pdfdir='${docdir}' | |
852 | psdir='${docdir}' | |
853 | libdir='${exec_prefix}/lib' | |
854 | localedir='${datarootdir}/locale' | |
855 | mandir='${datarootdir}/man' | |
b75a7d8f | 856 | |
b75a7d8f | 857 | ac_prev= |
729e4ab9 | 858 | ac_dashdash= |
b75a7d8f A |
859 | for ac_option |
860 | do | |
b75a7d8f A |
861 | # If the previous option needs an argument, assign it. |
862 | if test -n "$ac_prev"; then | |
729e4ab9 | 863 | eval $ac_prev=\$ac_option |
b75a7d8f A |
864 | ac_prev= |
865 | continue | |
866 | fi | |
867 | ||
729e4ab9 A |
868 | case $ac_option in |
869 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
870 | *=) ac_optarg= ;; | |
871 | *) ac_optarg=yes ;; | |
872 | esac | |
b75a7d8f A |
873 | |
874 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
875 | ||
729e4ab9 A |
876 | case $ac_dashdash$ac_option in |
877 | --) | |
878 | ac_dashdash=yes ;; | |
b75a7d8f A |
879 | |
880 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
881 | ac_prev=bindir ;; | |
882 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
73c04bcf | 883 | bindir=$ac_optarg ;; |
b75a7d8f A |
884 | |
885 | -build | --build | --buil | --bui | --bu) | |
73c04bcf | 886 | ac_prev=build_alias ;; |
b75a7d8f | 887 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
73c04bcf | 888 | build_alias=$ac_optarg ;; |
b75a7d8f A |
889 | |
890 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
891 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
892 | ac_prev=cache_file ;; | |
893 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
894 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
73c04bcf A |
895 | cache_file=$ac_optarg ;; |
896 | ||
897 | --config-cache | -C) | |
898 | cache_file=config.cache ;; | |
729e4ab9 A |
899 | |
900 | -datadir | --datadir | --datadi | --datad) | |
901 | ac_prev=datadir ;; | |
902 | -datadir=* | --datadir=* | --datadi=* | --datad=*) | |
903 | datadir=$ac_optarg ;; | |
904 | ||
46f4442e A |
905 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
906 | | --dataroo | --dataro | --datar) | |
907 | ac_prev=datarootdir ;; | |
729e4ab9 | 908 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
46f4442e A |
909 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
910 | datarootdir=$ac_optarg ;; | |
729e4ab9 | 911 | |
b75a7d8f | 912 | -disable-* | --disable-*) |
729e4ab9 | 913 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
b75a7d8f | 914 | # Reject names that are not valid shell variable names. |
729e4ab9 A |
915 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
916 | as_fn_error $? "invalid feature name: $ac_useropt" | |
917 | ac_useropt_orig=$ac_useropt | |
918 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
919 | case $ac_user_opts in | |
920 | *" | |
921 | "enable_$ac_useropt" | |
922 | "*) ;; | |
923 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
924 | ac_unrecognized_sep=', ';; | |
925 | esac | |
926 | eval enable_$ac_useropt=no ;; | |
927 | ||
928 | -docdir | --docdir | --docdi | --doc | --do) | |
929 | ac_prev=docdir ;; | |
930 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
931 | docdir=$ac_optarg ;; | |
932 | ||
933 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
934 | ac_prev=dvidir ;; | |
935 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
936 | dvidir=$ac_optarg ;; | |
b75a7d8f A |
937 | |
938 | -enable-* | --enable-*) | |
729e4ab9 | 939 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
b75a7d8f | 940 | # Reject names that are not valid shell variable names. |
729e4ab9 A |
941 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
942 | as_fn_error $? "invalid feature name: $ac_useropt" | |
943 | ac_useropt_orig=$ac_useropt | |
944 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
945 | case $ac_user_opts in | |
946 | *" | |
947 | "enable_$ac_useropt" | |
948 | "*) ;; | |
949 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
950 | ac_unrecognized_sep=', ';; | |
b75a7d8f | 951 | esac |
729e4ab9 | 952 | eval enable_$ac_useropt=\$ac_optarg ;; |
b75a7d8f A |
953 | |
954 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
955 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
956 | | --exec | --exe | --ex) | |
957 | ac_prev=exec_prefix ;; | |
958 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
959 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
960 | | --exec=* | --exe=* | --ex=*) | |
73c04bcf | 961 | exec_prefix=$ac_optarg ;; |
b75a7d8f A |
962 | |
963 | -gas | --gas | --ga | --g) | |
964 | # Obsolete; use --with-gas. | |
965 | with_gas=yes ;; | |
966 | ||
73c04bcf A |
967 | -help | --help | --hel | --he | -h) |
968 | ac_init_help=long ;; | |
969 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
970 | ac_init_help=recursive ;; | |
971 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
972 | ac_init_help=short ;; | |
b75a7d8f A |
973 | |
974 | -host | --host | --hos | --ho) | |
73c04bcf | 975 | ac_prev=host_alias ;; |
b75a7d8f | 976 | -host=* | --host=* | --hos=* | --ho=*) |
73c04bcf | 977 | host_alias=$ac_optarg ;; |
b75a7d8f | 978 | |
729e4ab9 A |
979 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
980 | ac_prev=htmldir ;; | |
981 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
982 | | --ht=*) | |
983 | htmldir=$ac_optarg ;; | |
984 | ||
b75a7d8f A |
985 | -includedir | --includedir | --includedi | --included | --include \ |
986 | | --includ | --inclu | --incl | --inc) | |
987 | ac_prev=includedir ;; | |
988 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
989 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
73c04bcf | 990 | includedir=$ac_optarg ;; |
b75a7d8f A |
991 | |
992 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
993 | ac_prev=infodir ;; | |
994 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
73c04bcf | 995 | infodir=$ac_optarg ;; |
b75a7d8f A |
996 | |
997 | -libdir | --libdir | --libdi | --libd) | |
998 | ac_prev=libdir ;; | |
999 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
73c04bcf | 1000 | libdir=$ac_optarg ;; |
b75a7d8f A |
1001 | |
1002 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
1003 | | --libexe | --libex | --libe) | |
1004 | ac_prev=libexecdir ;; | |
1005 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
1006 | | --libexe=* | --libex=* | --libe=*) | |
73c04bcf | 1007 | libexecdir=$ac_optarg ;; |
b75a7d8f | 1008 | |
729e4ab9 A |
1009 | -localedir | --localedir | --localedi | --localed | --locale) |
1010 | ac_prev=localedir ;; | |
1011 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
1012 | localedir=$ac_optarg ;; | |
1013 | ||
b75a7d8f | 1014 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
729e4ab9 | 1015 | | --localstate | --localstat | --localsta | --localst | --locals) |
b75a7d8f A |
1016 | ac_prev=localstatedir ;; |
1017 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
729e4ab9 | 1018 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
73c04bcf | 1019 | localstatedir=$ac_optarg ;; |
b75a7d8f A |
1020 | |
1021 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1022 | ac_prev=mandir ;; | |
1023 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
73c04bcf | 1024 | mandir=$ac_optarg ;; |
b75a7d8f A |
1025 | |
1026 | -nfp | --nfp | --nf) | |
1027 | # Obsolete; use --without-fp. | |
1028 | with_fp=no ;; | |
1029 | ||
1030 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
73c04bcf | 1031 | | --no-cr | --no-c | -n) |
b75a7d8f A |
1032 | no_create=yes ;; |
1033 | ||
1034 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1035 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1036 | no_recursion=yes ;; | |
1037 | ||
1038 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1039 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1040 | | --oldin | --oldi | --old | --ol | --o) | |
1041 | ac_prev=oldincludedir ;; | |
1042 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1043 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1044 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
73c04bcf | 1045 | oldincludedir=$ac_optarg ;; |
b75a7d8f A |
1046 | |
1047 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1048 | ac_prev=prefix ;; | |
1049 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
73c04bcf | 1050 | prefix=$ac_optarg ;; |
b75a7d8f A |
1051 | |
1052 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1053 | | --program-pre | --program-pr | --program-p) | |
1054 | ac_prev=program_prefix ;; | |
1055 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1056 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
73c04bcf | 1057 | program_prefix=$ac_optarg ;; |
b75a7d8f A |
1058 | |
1059 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1060 | | --program-suf | --program-su | --program-s) | |
1061 | ac_prev=program_suffix ;; | |
1062 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1063 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
73c04bcf | 1064 | program_suffix=$ac_optarg ;; |
b75a7d8f A |
1065 | |
1066 | -program-transform-name | --program-transform-name \ | |
1067 | | --program-transform-nam | --program-transform-na \ | |
1068 | | --program-transform-n | --program-transform- \ | |
1069 | | --program-transform | --program-transfor \ | |
1070 | | --program-transfo | --program-transf \ | |
1071 | | --program-trans | --program-tran \ | |
1072 | | --progr-tra | --program-tr | --program-t) | |
1073 | ac_prev=program_transform_name ;; | |
1074 | -program-transform-name=* | --program-transform-name=* \ | |
1075 | | --program-transform-nam=* | --program-transform-na=* \ | |
1076 | | --program-transform-n=* | --program-transform-=* \ | |
1077 | | --program-transform=* | --program-transfor=* \ | |
1078 | | --program-transfo=* | --program-transf=* \ | |
1079 | | --program-trans=* | --program-tran=* \ | |
1080 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
73c04bcf | 1081 | program_transform_name=$ac_optarg ;; |
b75a7d8f | 1082 | |
729e4ab9 A |
1083 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1084 | ac_prev=pdfdir ;; | |
1085 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1086 | pdfdir=$ac_optarg ;; | |
1087 | ||
1088 | -psdir | --psdir | --psdi | --psd | --ps) | |
1089 | ac_prev=psdir ;; | |
1090 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1091 | psdir=$ac_optarg ;; | |
1092 | ||
b75a7d8f A |
1093 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1094 | | -silent | --silent | --silen | --sile | --sil) | |
1095 | silent=yes ;; | |
1096 | ||
1097 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1098 | ac_prev=sbindir ;; | |
1099 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1100 | | --sbi=* | --sb=*) | |
73c04bcf | 1101 | sbindir=$ac_optarg ;; |
b75a7d8f A |
1102 | |
1103 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1104 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1105 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1106 | | --sha | --sh) | |
1107 | ac_prev=sharedstatedir ;; | |
1108 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1109 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1110 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1111 | | --sha=* | --sh=*) | |
73c04bcf | 1112 | sharedstatedir=$ac_optarg ;; |
b75a7d8f A |
1113 | |
1114 | -site | --site | --sit) | |
1115 | ac_prev=site ;; | |
1116 | -site=* | --site=* | --sit=*) | |
73c04bcf | 1117 | site=$ac_optarg ;; |
b75a7d8f A |
1118 | |
1119 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1120 | ac_prev=srcdir ;; | |
1121 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
73c04bcf | 1122 | srcdir=$ac_optarg ;; |
b75a7d8f A |
1123 | |
1124 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1125 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1126 | ac_prev=sysconfdir ;; | |
1127 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1128 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
73c04bcf | 1129 | sysconfdir=$ac_optarg ;; |
b75a7d8f A |
1130 | |
1131 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
73c04bcf | 1132 | ac_prev=target_alias ;; |
b75a7d8f | 1133 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
73c04bcf | 1134 | target_alias=$ac_optarg ;; |
b75a7d8f A |
1135 | |
1136 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1137 | verbose=yes ;; | |
1138 | ||
73c04bcf A |
1139 | -version | --version | --versio | --versi | --vers | -V) |
1140 | ac_init_version=: ;; | |
b75a7d8f A |
1141 | |
1142 | -with-* | --with-*) | |
729e4ab9 | 1143 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
b75a7d8f | 1144 | # Reject names that are not valid shell variable names. |
729e4ab9 A |
1145 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1146 | as_fn_error $? "invalid package name: $ac_useropt" | |
1147 | ac_useropt_orig=$ac_useropt | |
1148 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1149 | case $ac_user_opts in | |
1150 | *" | |
1151 | "with_$ac_useropt" | |
1152 | "*) ;; | |
1153 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1154 | ac_unrecognized_sep=', ';; | |
b75a7d8f | 1155 | esac |
729e4ab9 | 1156 | eval with_$ac_useropt=\$ac_optarg ;; |
b75a7d8f A |
1157 | |
1158 | -without-* | --without-*) | |
729e4ab9 | 1159 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
b75a7d8f | 1160 | # Reject names that are not valid shell variable names. |
729e4ab9 A |
1161 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1162 | as_fn_error $? "invalid package name: $ac_useropt" | |
1163 | ac_useropt_orig=$ac_useropt | |
1164 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1165 | case $ac_user_opts in | |
1166 | *" | |
1167 | "with_$ac_useropt" | |
1168 | "*) ;; | |
1169 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1170 | ac_unrecognized_sep=', ';; | |
1171 | esac | |
1172 | eval with_$ac_useropt=no ;; | |
b75a7d8f A |
1173 | |
1174 | --x) | |
1175 | # Obsolete; use --with-x. | |
1176 | with_x=yes ;; | |
1177 | ||
1178 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1179 | | --x-incl | --x-inc | --x-in | --x-i) | |
1180 | ac_prev=x_includes ;; | |
1181 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1182 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
73c04bcf | 1183 | x_includes=$ac_optarg ;; |
b75a7d8f A |
1184 | |
1185 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1186 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1187 | ac_prev=x_libraries ;; | |
1188 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1189 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
73c04bcf | 1190 | x_libraries=$ac_optarg ;; |
b75a7d8f | 1191 | |
729e4ab9 A |
1192 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
1193 | Try \`$0 --help' for more information" | |
b75a7d8f A |
1194 | ;; |
1195 | ||
73c04bcf A |
1196 | *=*) |
1197 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1198 | # Reject names that are not valid shell variable names. | |
729e4ab9 A |
1199 | case $ac_envvar in #( |
1200 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
1201 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; | |
1202 | esac | |
1203 | eval $ac_envvar=\$ac_optarg | |
73c04bcf A |
1204 | export $ac_envvar ;; |
1205 | ||
b75a7d8f | 1206 | *) |
73c04bcf | 1207 | # FIXME: should be removed in autoconf 3.0. |
729e4ab9 | 1208 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
73c04bcf | 1209 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
729e4ab9 | 1210 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
4388f060 | 1211 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
b75a7d8f A |
1212 | ;; |
1213 | ||
1214 | esac | |
1215 | done | |
1216 | ||
1217 | if test -n "$ac_prev"; then | |
73c04bcf | 1218 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
729e4ab9 | 1219 | as_fn_error $? "missing argument to $ac_option" |
b75a7d8f | 1220 | fi |
b75a7d8f | 1221 | |
729e4ab9 A |
1222 | if test -n "$ac_unrecognized_opts"; then |
1223 | case $enable_option_checking in | |
1224 | no) ;; | |
1225 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; | |
1226 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; | |
73c04bcf | 1227 | esac |
729e4ab9 | 1228 | fi |
b75a7d8f | 1229 | |
729e4ab9 A |
1230 | # Check all directory arguments for consistency. |
1231 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1232 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1233 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1234 | libdir localedir mandir | |
b75a7d8f | 1235 | do |
729e4ab9 A |
1236 | eval ac_val=\$$ac_var |
1237 | # Remove trailing slashes. | |
1238 | case $ac_val in | |
1239 | */ ) | |
1240 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1241 | eval $ac_var=\$ac_val;; | |
1242 | esac | |
1243 | # Be sure to have absolute directory names. | |
73c04bcf | 1244 | case $ac_val in |
729e4ab9 A |
1245 | [\\/$]* | ?:[\\/]* ) continue;; |
1246 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
b75a7d8f | 1247 | esac |
729e4ab9 | 1248 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
b75a7d8f A |
1249 | done |
1250 | ||
73c04bcf A |
1251 | # There might be people who depend on the old broken behavior: `$host' |
1252 | # used to hold the argument of --host etc. | |
1253 | # FIXME: To remove some day. | |
1254 | build=$build_alias | |
1255 | host=$host_alias | |
1256 | target=$target_alias | |
1257 | ||
1258 | # FIXME: To remove some day. | |
1259 | if test "x$host_alias" != x; then | |
1260 | if test "x$build_alias" = x; then | |
1261 | cross_compiling=maybe | |
73c04bcf A |
1262 | elif test "x$build_alias" != "x$host_alias"; then |
1263 | cross_compiling=yes | |
1264 | fi | |
1265 | fi | |
b75a7d8f | 1266 | |
73c04bcf A |
1267 | ac_tool_prefix= |
1268 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1269 | ||
1270 | test "$silent" = yes && exec 6>/dev/null | |
b75a7d8f | 1271 | |
b75a7d8f | 1272 | |
729e4ab9 A |
1273 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1274 | ac_ls_di=`ls -di .` && | |
1275 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
1276 | as_fn_error $? "working directory cannot be determined" | |
1277 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | |
1278 | as_fn_error $? "pwd does not report name of working directory" | |
1279 | ||
1280 | ||
b75a7d8f A |
1281 | # Find the source files, if location was not specified. |
1282 | if test -z "$srcdir"; then | |
1283 | ac_srcdir_defaulted=yes | |
729e4ab9 A |
1284 | # Try the directory containing this script, then the parent directory. |
1285 | ac_confdir=`$as_dirname -- "$as_myself" || | |
1286 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1287 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1288 | X"$as_myself" : 'X\(//\)$' \| \ | |
1289 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1290 | $as_echo X"$as_myself" | | |
1291 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
1292 | s//\1/ | |
1293 | q | |
1294 | } | |
1295 | /^X\(\/\/\)[^/].*/{ | |
1296 | s//\1/ | |
1297 | q | |
1298 | } | |
1299 | /^X\(\/\/\)$/{ | |
1300 | s//\1/ | |
1301 | q | |
1302 | } | |
1303 | /^X\(\/\).*/{ | |
1304 | s//\1/ | |
1305 | q | |
1306 | } | |
1307 | s/.*/./; q'` | |
b75a7d8f | 1308 | srcdir=$ac_confdir |
729e4ab9 | 1309 | if test ! -r "$srcdir/$ac_unique_file"; then |
b75a7d8f A |
1310 | srcdir=.. |
1311 | fi | |
1312 | else | |
1313 | ac_srcdir_defaulted=no | |
1314 | fi | |
729e4ab9 A |
1315 | if test ! -r "$srcdir/$ac_unique_file"; then |
1316 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
1317 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" | |
1318 | fi | |
1319 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | |
1320 | ac_abs_confdir=`( | |
1321 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" | |
1322 | pwd)` | |
1323 | # When building in place, set srcdir=. | |
1324 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1325 | srcdir=. | |
1326 | fi | |
1327 | # Remove unnecessary trailing slashes from srcdir. | |
1328 | # Double slashes in file names in object file debugging info | |
1329 | # mess up M-x gdb in Emacs. | |
1330 | case $srcdir in | |
1331 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1332 | esac | |
1333 | for ac_var in $ac_precious_vars; do | |
1334 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1335 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1336 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1337 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1338 | done | |
b75a7d8f | 1339 | |
73c04bcf A |
1340 | # |
1341 | # Report the --help message. | |
1342 | # | |
1343 | if test "$ac_init_help" = "long"; then | |
1344 | # Omit some internal or obsolete options to make the list less imposing. | |
1345 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1346 | cat <<_ACEOF | |
b331163b | 1347 | \`configure' configures ICU 55.1 to adapt to many kinds of systems. |
73c04bcf A |
1348 | |
1349 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1350 | ||
1351 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1352 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1353 | ||
1354 | Defaults for the options are specified in brackets. | |
1355 | ||
1356 | Configuration: | |
1357 | -h, --help display this help and exit | |
1358 | --help=short display options specific to this package | |
1359 | --help=recursive display the short help of all the included packages | |
1360 | -V, --version display version information and exit | |
729e4ab9 | 1361 | -q, --quiet, --silent do not print \`checking ...' messages |
73c04bcf A |
1362 | --cache-file=FILE cache test results in FILE [disabled] |
1363 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1364 | -n, --no-create do not create output files | |
1365 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1366 | ||
73c04bcf A |
1367 | Installation directories: |
1368 | --prefix=PREFIX install architecture-independent files in PREFIX | |
729e4ab9 | 1369 | [$ac_default_prefix] |
73c04bcf | 1370 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
729e4ab9 | 1371 | [PREFIX] |
73c04bcf A |
1372 | |
1373 | By default, \`make install' will install all the files in | |
1374 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1375 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1376 | for instance \`--prefix=\$HOME'. | |
1377 | ||
1378 | For better control, use the options below. | |
1379 | ||
1380 | Fine tuning of the installation directories: | |
729e4ab9 A |
1381 | --bindir=DIR user executables [EPREFIX/bin] |
1382 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1383 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1384 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1385 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1386 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1387 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1388 | --includedir=DIR C header files [PREFIX/include] | |
1389 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1390 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1391 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1392 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1393 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1394 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
b331163b A |
1395 | --docdir=DIR documentation root [DATAROOTDIR/doc/International |
1396 | Components for Unicode] | |
729e4ab9 A |
1397 | --htmldir=DIR html documentation [DOCDIR] |
1398 | --dvidir=DIR dvi documentation [DOCDIR] | |
1399 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1400 | --psdir=DIR ps documentation [DOCDIR] | |
73c04bcf A |
1401 | _ACEOF |
1402 | ||
1403 | cat <<\_ACEOF | |
1404 | ||
1405 | System types: | |
1406 | --build=BUILD configure for building on BUILD [guessed] | |
1407 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1408 | _ACEOF | |
1409 | fi | |
1410 | ||
1411 | if test -n "$ac_init_help"; then | |
b331163b A |
1412 | case $ac_init_help in |
1413 | short | recursive ) echo "Configuration of ICU 55.1:";; | |
1414 | esac | |
73c04bcf A |
1415 | cat <<\_ACEOF |
1416 | ||
1417 | Optional Features: | |
729e4ab9 | 1418 | --disable-option-checking ignore unrecognized --enable/--with options |
73c04bcf A |
1419 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1420 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
4388f060 | 1421 | --enable-debug build debug libraries and enable the U_DEBUG define default=no |
73c04bcf | 1422 | --enable-release build release libraries default=yes |
729e4ab9 A |
1423 | --enable-strict compile with strict compiler options default=yes |
1424 | --enable-64bit-libs (deprecated, use --with-library-bits) build 64-bit libraries default= platform default | |
1425 | --enable-shared build shared libraries default=yes | |
1426 | --enable-static build static libraries default=no | |
1427 | --enable-auto-cleanup enable auto cleanup of libraries default=no | |
1428 | --enable-draft enable draft APIs (and internal APIs) default=yes | |
73c04bcf | 1429 | --enable-renaming add a version suffix to symbols default=yes |
46f4442e | 1430 | --enable-tracing enable function and data tracing default=no |
729e4ab9 | 1431 | --disable-dyload disable dynamic loading default=no |
73c04bcf | 1432 | --enable-rpath use rpath when linking default is only if necessary |
46f4442e | 1433 | --enable-weak-threads weakly reference the threading library default=no |
73c04bcf A |
1434 | --enable-extras build ICU extras default=yes |
1435 | --enable-icuio build ICU's icuio library default=yes | |
b331163b A |
1436 | --enable-layout build ICU's DEPRECATED layout library default=yes |
1437 | --enable-layoutex build ICU's Paragraph Layout library default=same-as-layout. | |
1438 | If not building with the ICU Layout library, then icu-le-hb must be installed via pkg-config. | |
1439 | See http://harfbuzz.org | |
57a6839d | 1440 | --enable-tools build ICU's tools default=yes |
73c04bcf A |
1441 | --enable-tests build ICU tests default=yes |
1442 | --enable-samples build ICU samples default=yes | |
46f4442e A |
1443 | |
1444 | Additionally, the variable FORCE_LIBS may be set before calling configure. | |
1445 | If set, it will REPLACE any automatic list of libraries. | |
73c04bcf A |
1446 | |
1447 | Optional Packages: | |
1448 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1449 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
729e4ab9 A |
1450 | --with-cross-build=dir specify an absolute path to the build directory of an ICU built for the current platform default=no cross dir |
1451 | --with-library-bits=bits specify how many bits to use for the library (32, 64, 64else32, nochange) default=nochange | |
b331163b A |
1452 | --with-data-packaging specify how to package ICU data. Possible values: |
1453 | files raw files (.res, etc) | |
1454 | archive build a single icudtXX.dat file | |
1455 | library shared library (.dll/.so/etc.) | |
1456 | static static library (.a/.lib/etc.) | |
1457 | auto build shared if possible (default) | |
1458 | See http://userguide.icu-project.org/icudata for more info. | |
73c04bcf A |
1459 | --with-library-suffix=suffix tag a suffix to the library names default= |
1460 | ||
1461 | Some influential environment variables: | |
1462 | CC C compiler command | |
1463 | CFLAGS C compiler flags | |
1464 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1465 | nonstandard directory <lib dir> | |
729e4ab9 A |
1466 | LIBS libraries to pass to the linker, e.g. -l<library> |
1467 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if | |
1468 | you have headers in a nonstandard directory <include dir> | |
73c04bcf A |
1469 | CXX C++ compiler command |
1470 | CXXFLAGS C++ compiler flags | |
b331163b A |
1471 | PKG_CONFIG path to pkg-config utility |
1472 | ICULEHB_CFLAGS | |
1473 | C compiler flags for ICULEHB, overriding pkg-config | |
1474 | ICULEHB_LIBS | |
1475 | linker flags for ICULEHB, overriding pkg-config | |
73c04bcf A |
1476 | CPP C preprocessor |
1477 | ||
1478 | Use these variables to override the choices made by `configure' or to help | |
1479 | it to find libraries and programs with nonstandard names/locations. | |
1480 | ||
b331163b A |
1481 | Report bugs to <http://icu-project.org/bugs>. |
1482 | ICU home page: <http://icu-project.org>. | |
73c04bcf | 1483 | _ACEOF |
729e4ab9 | 1484 | ac_status=$? |
73c04bcf A |
1485 | fi |
1486 | ||
1487 | if test "$ac_init_help" = "recursive"; then | |
1488 | # If there are subdirs, report their specific --help. | |
73c04bcf | 1489 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
729e4ab9 A |
1490 | test -d "$ac_dir" || |
1491 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1492 | continue | |
73c04bcf A |
1493 | ac_builddir=. |
1494 | ||
729e4ab9 A |
1495 | case "$ac_dir" in |
1496 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1497 | *) | |
1498 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
1499 | # A ".." for each directory in $ac_dir_suffix. | |
1500 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
1501 | case $ac_top_builddir_sub in | |
1502 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1503 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1504 | esac ;; | |
1505 | esac | |
1506 | ac_abs_top_builddir=$ac_pwd | |
1507 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1508 | # for backward compatibility: | |
1509 | ac_top_builddir=$ac_top_build_prefix | |
73c04bcf A |
1510 | |
1511 | case $srcdir in | |
729e4ab9 | 1512 | .) # We are building in place. |
73c04bcf | 1513 | ac_srcdir=. |
729e4ab9 A |
1514 | ac_top_srcdir=$ac_top_builddir_sub |
1515 | ac_abs_top_srcdir=$ac_pwd ;; | |
1516 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
73c04bcf | 1517 | ac_srcdir=$srcdir$ac_dir_suffix; |
729e4ab9 A |
1518 | ac_top_srcdir=$srcdir |
1519 | ac_abs_top_srcdir=$srcdir ;; | |
1520 | *) # Relative name. | |
1521 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1522 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1523 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
73c04bcf | 1524 | esac |
729e4ab9 A |
1525 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1526 | ||
1527 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1528 | # Check for guested configure. | |
1529 | if test -f "$ac_srcdir/configure.gnu"; then | |
1530 | echo && | |
1531 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1532 | elif test -f "$ac_srcdir/configure"; then | |
1533 | echo && | |
1534 | $SHELL "$ac_srcdir/configure" --help=recursive | |
73c04bcf | 1535 | else |
729e4ab9 A |
1536 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
1537 | fi || ac_status=$? | |
1538 | cd "$ac_pwd" || { ac_status=$?; break; } | |
73c04bcf A |
1539 | done |
1540 | fi | |
1541 | ||
729e4ab9 | 1542 | test -n "$ac_init_help" && exit $ac_status |
73c04bcf A |
1543 | if $ac_init_version; then |
1544 | cat <<\_ACEOF | |
b331163b A |
1545 | ICU configure 55.1 |
1546 | generated by GNU Autoconf 2.69 | |
73c04bcf | 1547 | |
b331163b | 1548 | Copyright (C) 2012 Free Software Foundation, Inc. |
73c04bcf A |
1549 | This configure script is free software; the Free Software Foundation |
1550 | gives unlimited permission to copy, distribute and modify it. | |
729e4ab9 | 1551 | |
b331163b | 1552 | Copyright (c) 1999-2014, International Business Machines Corporation and others. All Rights Reserved. |
73c04bcf | 1553 | _ACEOF |
729e4ab9 | 1554 | exit |
73c04bcf | 1555 | fi |
73c04bcf | 1556 | |
729e4ab9 A |
1557 | ## ------------------------ ## |
1558 | ## Autoconf initialization. ## | |
1559 | ## ------------------------ ## | |
73c04bcf | 1560 | |
729e4ab9 A |
1561 | # ac_fn_c_try_compile LINENO |
1562 | # -------------------------- | |
1563 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1564 | ac_fn_c_try_compile () | |
1565 | { | |
1566 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1567 | rm -f conftest.$ac_objext | |
1568 | if { { ac_try="$ac_compile" | |
1569 | case "(($ac_try" in | |
1570 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1571 | *) ac_try_echo=$ac_try;; | |
1572 | esac | |
1573 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1574 | $as_echo "$ac_try_echo"; } >&5 | |
1575 | (eval "$ac_compile") 2>conftest.err | |
1576 | ac_status=$? | |
1577 | if test -s conftest.err; then | |
1578 | grep -v '^ *+' conftest.err >conftest.er1 | |
1579 | cat conftest.er1 >&5 | |
1580 | mv -f conftest.er1 conftest.err | |
1581 | fi | |
1582 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1583 | test $ac_status = 0; } && { | |
1584 | test -z "$ac_c_werror_flag" || | |
1585 | test ! -s conftest.err | |
1586 | } && test -s conftest.$ac_objext; then : | |
1587 | ac_retval=0 | |
1588 | else | |
1589 | $as_echo "$as_me: failed program was:" >&5 | |
1590 | sed 's/^/| /' conftest.$ac_ext >&5 | |
73c04bcf | 1591 | |
729e4ab9 A |
1592 | ac_retval=1 |
1593 | fi | |
4388f060 | 1594 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
729e4ab9 A |
1595 | as_fn_set_status $ac_retval |
1596 | ||
1597 | } # ac_fn_c_try_compile | |
1598 | ||
1599 | # ac_fn_cxx_try_compile LINENO | |
1600 | # ---------------------------- | |
1601 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1602 | ac_fn_cxx_try_compile () | |
73c04bcf | 1603 | { |
729e4ab9 A |
1604 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1605 | rm -f conftest.$ac_objext | |
1606 | if { { ac_try="$ac_compile" | |
1607 | case "(($ac_try" in | |
1608 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1609 | *) ac_try_echo=$ac_try;; | |
1610 | esac | |
1611 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1612 | $as_echo "$ac_try_echo"; } >&5 | |
1613 | (eval "$ac_compile") 2>conftest.err | |
1614 | ac_status=$? | |
1615 | if test -s conftest.err; then | |
1616 | grep -v '^ *+' conftest.err >conftest.er1 | |
1617 | cat conftest.er1 >&5 | |
1618 | mv -f conftest.er1 conftest.err | |
1619 | fi | |
1620 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1621 | test $ac_status = 0; } && { | |
1622 | test -z "$ac_cxx_werror_flag" || | |
1623 | test ! -s conftest.err | |
1624 | } && test -s conftest.$ac_objext; then : | |
1625 | ac_retval=0 | |
1626 | else | |
1627 | $as_echo "$as_me: failed program was:" >&5 | |
1628 | sed 's/^/| /' conftest.$ac_ext >&5 | |
73c04bcf | 1629 | |
729e4ab9 A |
1630 | ac_retval=1 |
1631 | fi | |
4388f060 | 1632 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
729e4ab9 | 1633 | as_fn_set_status $ac_retval |
73c04bcf | 1634 | |
729e4ab9 | 1635 | } # ac_fn_cxx_try_compile |
73c04bcf | 1636 | |
729e4ab9 A |
1637 | # ac_fn_c_try_cpp LINENO |
1638 | # ---------------------- | |
1639 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
1640 | ac_fn_c_try_cpp () | |
1641 | { | |
1642 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1643 | if { { ac_try="$ac_cpp conftest.$ac_ext" | |
1644 | case "(($ac_try" in | |
1645 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1646 | *) ac_try_echo=$ac_try;; | |
1647 | esac | |
1648 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1649 | $as_echo "$ac_try_echo"; } >&5 | |
1650 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | |
1651 | ac_status=$? | |
1652 | if test -s conftest.err; then | |
1653 | grep -v '^ *+' conftest.err >conftest.er1 | |
1654 | cat conftest.er1 >&5 | |
1655 | mv -f conftest.er1 conftest.err | |
1656 | fi | |
1657 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1658 | test $ac_status = 0; } > conftest.i && { | |
1659 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
1660 | test ! -s conftest.err | |
1661 | }; then : | |
1662 | ac_retval=0 | |
1663 | else | |
1664 | $as_echo "$as_me: failed program was:" >&5 | |
1665 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1666 | ||
1667 | ac_retval=1 | |
1668 | fi | |
4388f060 | 1669 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
729e4ab9 A |
1670 | as_fn_set_status $ac_retval |
1671 | ||
1672 | } # ac_fn_c_try_cpp | |
1673 | ||
1674 | # ac_fn_cxx_try_link LINENO | |
1675 | # ------------------------- | |
1676 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1677 | ac_fn_cxx_try_link () | |
1678 | { | |
1679 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1680 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1681 | if { { ac_try="$ac_link" | |
1682 | case "(($ac_try" in | |
1683 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1684 | *) ac_try_echo=$ac_try;; | |
1685 | esac | |
1686 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1687 | $as_echo "$ac_try_echo"; } >&5 | |
1688 | (eval "$ac_link") 2>conftest.err | |
1689 | ac_status=$? | |
1690 | if test -s conftest.err; then | |
1691 | grep -v '^ *+' conftest.err >conftest.er1 | |
1692 | cat conftest.er1 >&5 | |
1693 | mv -f conftest.er1 conftest.err | |
1694 | fi | |
1695 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1696 | test $ac_status = 0; } && { | |
1697 | test -z "$ac_cxx_werror_flag" || | |
1698 | test ! -s conftest.err | |
1699 | } && test -s conftest$ac_exeext && { | |
1700 | test "$cross_compiling" = yes || | |
b331163b | 1701 | test -x conftest$ac_exeext |
729e4ab9 A |
1702 | }; then : |
1703 | ac_retval=0 | |
1704 | else | |
1705 | $as_echo "$as_me: failed program was:" >&5 | |
1706 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1707 | ||
1708 | ac_retval=1 | |
1709 | fi | |
1710 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1711 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1712 | # interfere with the next link command; also delete a directory that is | |
1713 | # left behind by Apple's compiler. We do this before executing the actions. | |
1714 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
4388f060 | 1715 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
729e4ab9 A |
1716 | as_fn_set_status $ac_retval |
1717 | ||
1718 | } # ac_fn_cxx_try_link | |
1719 | ||
1720 | # ac_fn_c_try_run LINENO | |
1721 | # ---------------------- | |
1722 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | |
1723 | # that executables *can* be run. | |
1724 | ac_fn_c_try_run () | |
1725 | { | |
1726 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1727 | if { { ac_try="$ac_link" | |
1728 | case "(($ac_try" in | |
1729 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1730 | *) ac_try_echo=$ac_try;; | |
1731 | esac | |
1732 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1733 | $as_echo "$ac_try_echo"; } >&5 | |
1734 | (eval "$ac_link") 2>&5 | |
1735 | ac_status=$? | |
1736 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1737 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | |
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 | $as_echo "$ac_try_echo"; } >&5 | |
1744 | (eval "$ac_try") 2>&5 | |
1745 | ac_status=$? | |
1746 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1747 | test $ac_status = 0; }; }; then : | |
1748 | ac_retval=0 | |
1749 | else | |
1750 | $as_echo "$as_me: program exited with status $ac_status" >&5 | |
1751 | $as_echo "$as_me: failed program was:" >&5 | |
1752 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1753 | ||
1754 | ac_retval=$ac_status | |
1755 | fi | |
1756 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
4388f060 | 1757 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
729e4ab9 A |
1758 | as_fn_set_status $ac_retval |
1759 | ||
1760 | } # ac_fn_c_try_run | |
1761 | ||
1762 | # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES | |
1763 | # -------------------------------------------- | |
1764 | # Tries to find the compile-time value of EXPR in a program that includes | |
1765 | # INCLUDES, setting VAR accordingly. Returns whether the value could be | |
1766 | # computed | |
1767 | ac_fn_c_compute_int () | |
1768 | { | |
1769 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1770 | if test "$cross_compiling" = yes; then | |
1771 | # Depending upon the size, compute the lo and hi bounds. | |
1772 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1773 | /* end confdefs.h. */ | |
1774 | $4 | |
1775 | int | |
1776 | main () | |
1777 | { | |
1778 | static int test_array [1 - 2 * !(($2) >= 0)]; | |
b331163b A |
1779 | test_array [0] = 0; |
1780 | return test_array [0]; | |
729e4ab9 A |
1781 | |
1782 | ; | |
1783 | return 0; | |
1784 | } | |
1785 | _ACEOF | |
1786 | if ac_fn_c_try_compile "$LINENO"; then : | |
1787 | ac_lo=0 ac_mid=0 | |
1788 | while :; do | |
1789 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1790 | /* end confdefs.h. */ | |
1791 | $4 | |
1792 | int | |
1793 | main () | |
1794 | { | |
1795 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; | |
b331163b A |
1796 | test_array [0] = 0; |
1797 | return test_array [0]; | |
729e4ab9 A |
1798 | |
1799 | ; | |
1800 | return 0; | |
1801 | } | |
1802 | _ACEOF | |
1803 | if ac_fn_c_try_compile "$LINENO"; then : | |
1804 | ac_hi=$ac_mid; break | |
1805 | else | |
1806 | as_fn_arith $ac_mid + 1 && ac_lo=$as_val | |
1807 | if test $ac_lo -le $ac_mid; then | |
1808 | ac_lo= ac_hi= | |
1809 | break | |
1810 | fi | |
1811 | as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val | |
1812 | fi | |
1813 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1814 | done | |
1815 | else | |
1816 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1817 | /* end confdefs.h. */ | |
1818 | $4 | |
1819 | int | |
1820 | main () | |
1821 | { | |
1822 | static int test_array [1 - 2 * !(($2) < 0)]; | |
b331163b A |
1823 | test_array [0] = 0; |
1824 | return test_array [0]; | |
729e4ab9 A |
1825 | |
1826 | ; | |
1827 | return 0; | |
1828 | } | |
1829 | _ACEOF | |
1830 | if ac_fn_c_try_compile "$LINENO"; then : | |
1831 | ac_hi=-1 ac_mid=-1 | |
1832 | while :; do | |
1833 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1834 | /* end confdefs.h. */ | |
1835 | $4 | |
1836 | int | |
1837 | main () | |
1838 | { | |
1839 | static int test_array [1 - 2 * !(($2) >= $ac_mid)]; | |
b331163b A |
1840 | test_array [0] = 0; |
1841 | return test_array [0]; | |
729e4ab9 A |
1842 | |
1843 | ; | |
1844 | return 0; | |
1845 | } | |
1846 | _ACEOF | |
1847 | if ac_fn_c_try_compile "$LINENO"; then : | |
1848 | ac_lo=$ac_mid; break | |
1849 | else | |
1850 | as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val | |
1851 | if test $ac_mid -le $ac_hi; then | |
1852 | ac_lo= ac_hi= | |
1853 | break | |
1854 | fi | |
1855 | as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val | |
1856 | fi | |
1857 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1858 | done | |
1859 | else | |
1860 | ac_lo= ac_hi= | |
1861 | fi | |
1862 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1863 | fi | |
1864 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1865 | # Binary search between lo and hi bounds. | |
1866 | while test "x$ac_lo" != "x$ac_hi"; do | |
1867 | as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val | |
1868 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1869 | /* end confdefs.h. */ | |
1870 | $4 | |
1871 | int | |
1872 | main () | |
1873 | { | |
1874 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; | |
b331163b A |
1875 | test_array [0] = 0; |
1876 | return test_array [0]; | |
729e4ab9 A |
1877 | |
1878 | ; | |
1879 | return 0; | |
1880 | } | |
1881 | _ACEOF | |
1882 | if ac_fn_c_try_compile "$LINENO"; then : | |
1883 | ac_hi=$ac_mid | |
1884 | else | |
1885 | as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val | |
1886 | fi | |
1887 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1888 | done | |
1889 | case $ac_lo in #(( | |
1890 | ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; | |
1891 | '') ac_retval=1 ;; | |
1892 | esac | |
1893 | else | |
1894 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1895 | /* end confdefs.h. */ | |
1896 | $4 | |
1897 | static long int longval () { return $2; } | |
1898 | static unsigned long int ulongval () { return $2; } | |
1899 | #include <stdio.h> | |
1900 | #include <stdlib.h> | |
1901 | int | |
1902 | main () | |
1903 | { | |
1904 | ||
1905 | FILE *f = fopen ("conftest.val", "w"); | |
1906 | if (! f) | |
1907 | return 1; | |
1908 | if (($2) < 0) | |
1909 | { | |
1910 | long int i = longval (); | |
1911 | if (i != ($2)) | |
1912 | return 1; | |
1913 | fprintf (f, "%ld", i); | |
1914 | } | |
1915 | else | |
1916 | { | |
1917 | unsigned long int i = ulongval (); | |
1918 | if (i != ($2)) | |
1919 | return 1; | |
1920 | fprintf (f, "%lu", i); | |
1921 | } | |
1922 | /* Do not output a trailing newline, as this causes \r\n confusion | |
1923 | on some platforms. */ | |
1924 | return ferror (f) || fclose (f) != 0; | |
1925 | ||
1926 | ; | |
1927 | return 0; | |
1928 | } | |
1929 | _ACEOF | |
1930 | if ac_fn_c_try_run "$LINENO"; then : | |
1931 | echo >>conftest.val; read $3 <conftest.val; ac_retval=0 | |
1932 | else | |
1933 | ac_retval=1 | |
1934 | fi | |
1935 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
1936 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
1937 | rm -f conftest.val | |
1938 | ||
1939 | fi | |
4388f060 | 1940 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
729e4ab9 A |
1941 | as_fn_set_status $ac_retval |
1942 | ||
1943 | } # ac_fn_c_compute_int | |
1944 | ||
1945 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES | |
1946 | # ------------------------------------------------------- | |
1947 | # Tests whether HEADER exists and can be compiled using the include files in | |
1948 | # INCLUDES, setting the cache variable VAR accordingly. | |
1949 | ac_fn_c_check_header_compile () | |
1950 | { | |
1951 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1952 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1953 | $as_echo_n "checking for $2... " >&6; } | |
4388f060 | 1954 | if eval \${$3+:} false; then : |
729e4ab9 A |
1955 | $as_echo_n "(cached) " >&6 |
1956 | else | |
1957 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1958 | /* end confdefs.h. */ | |
1959 | $4 | |
1960 | #include <$2> | |
1961 | _ACEOF | |
1962 | if ac_fn_c_try_compile "$LINENO"; then : | |
1963 | eval "$3=yes" | |
1964 | else | |
1965 | eval "$3=no" | |
1966 | fi | |
1967 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1968 | fi | |
1969 | eval ac_res=\$$3 | |
1970 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1971 | $as_echo "$ac_res" >&6; } | |
4388f060 | 1972 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
729e4ab9 A |
1973 | |
1974 | } # ac_fn_c_check_header_compile | |
1975 | ||
1976 | # ac_fn_c_try_link LINENO | |
1977 | # ----------------------- | |
1978 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1979 | ac_fn_c_try_link () | |
1980 | { | |
1981 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1982 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1983 | if { { ac_try="$ac_link" | |
1984 | case "(($ac_try" in | |
1985 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1986 | *) ac_try_echo=$ac_try;; | |
1987 | esac | |
1988 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1989 | $as_echo "$ac_try_echo"; } >&5 | |
1990 | (eval "$ac_link") 2>conftest.err | |
1991 | ac_status=$? | |
1992 | if test -s conftest.err; then | |
1993 | grep -v '^ *+' conftest.err >conftest.er1 | |
1994 | cat conftest.er1 >&5 | |
1995 | mv -f conftest.er1 conftest.err | |
1996 | fi | |
1997 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1998 | test $ac_status = 0; } && { | |
1999 | test -z "$ac_c_werror_flag" || | |
2000 | test ! -s conftest.err | |
2001 | } && test -s conftest$ac_exeext && { | |
2002 | test "$cross_compiling" = yes || | |
b331163b | 2003 | test -x conftest$ac_exeext |
729e4ab9 A |
2004 | }; then : |
2005 | ac_retval=0 | |
2006 | else | |
2007 | $as_echo "$as_me: failed program was:" >&5 | |
2008 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2009 | ||
2010 | ac_retval=1 | |
2011 | fi | |
2012 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
2013 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
2014 | # interfere with the next link command; also delete a directory that is | |
2015 | # left behind by Apple's compiler. We do this before executing the actions. | |
2016 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
4388f060 | 2017 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
729e4ab9 A |
2018 | as_fn_set_status $ac_retval |
2019 | ||
2020 | } # ac_fn_c_try_link | |
2021 | ||
2022 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES | |
2023 | # ------------------------------------------------------- | |
2024 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using | |
2025 | # the include files in INCLUDES and setting the cache variable VAR | |
2026 | # accordingly. | |
2027 | ac_fn_c_check_header_mongrel () | |
2028 | { | |
2029 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
4388f060 | 2030 | if eval \${$3+:} false; then : |
729e4ab9 A |
2031 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
2032 | $as_echo_n "checking for $2... " >&6; } | |
4388f060 | 2033 | if eval \${$3+:} false; then : |
729e4ab9 A |
2034 | $as_echo_n "(cached) " >&6 |
2035 | fi | |
2036 | eval ac_res=\$$3 | |
2037 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2038 | $as_echo "$ac_res" >&6; } | |
2039 | else | |
2040 | # Is the header compilable? | |
2041 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | |
2042 | $as_echo_n "checking $2 usability... " >&6; } | |
2043 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2044 | /* end confdefs.h. */ | |
2045 | $4 | |
2046 | #include <$2> | |
2047 | _ACEOF | |
2048 | if ac_fn_c_try_compile "$LINENO"; then : | |
2049 | ac_header_compiler=yes | |
2050 | else | |
2051 | ac_header_compiler=no | |
2052 | fi | |
2053 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2054 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 | |
2055 | $as_echo "$ac_header_compiler" >&6; } | |
2056 | ||
2057 | # Is the header present? | |
2058 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | |
2059 | $as_echo_n "checking $2 presence... " >&6; } | |
2060 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2061 | /* end confdefs.h. */ | |
2062 | #include <$2> | |
2063 | _ACEOF | |
2064 | if ac_fn_c_try_cpp "$LINENO"; then : | |
2065 | ac_header_preproc=yes | |
2066 | else | |
2067 | ac_header_preproc=no | |
2068 | fi | |
2069 | rm -f conftest.err conftest.i conftest.$ac_ext | |
2070 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 | |
2071 | $as_echo "$ac_header_preproc" >&6; } | |
2072 | ||
2073 | # So? What about this header? | |
2074 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( | |
2075 | yes:no: ) | |
2076 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 | |
2077 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
2078 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
2079 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
2080 | ;; | |
2081 | no:yes:* ) | |
2082 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 | |
2083 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | |
2084 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 | |
2085 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} | |
2086 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | |
2087 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | |
2088 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 | |
2089 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} | |
2090 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
2091 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
b331163b A |
2092 | ( $as_echo "## ------------------------------------------ ## |
2093 | ## Report this to http://icu-project.org/bugs ## | |
2094 | ## ------------------------------------------ ##" | |
2095 | ) | sed "s/^/$as_me: WARNING: /" >&2 | |
729e4ab9 A |
2096 | ;; |
2097 | esac | |
2098 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
2099 | $as_echo_n "checking for $2... " >&6; } | |
4388f060 | 2100 | if eval \${$3+:} false; then : |
729e4ab9 A |
2101 | $as_echo_n "(cached) " >&6 |
2102 | else | |
2103 | eval "$3=\$ac_header_compiler" | |
2104 | fi | |
2105 | eval ac_res=\$$3 | |
2106 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2107 | $as_echo "$ac_res" >&6; } | |
2108 | fi | |
4388f060 | 2109 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
729e4ab9 A |
2110 | |
2111 | } # ac_fn_c_check_header_mongrel | |
2112 | ||
2113 | # ac_fn_c_check_func LINENO FUNC VAR | |
2114 | # ---------------------------------- | |
2115 | # Tests whether FUNC exists, setting the cache variable VAR accordingly | |
2116 | ac_fn_c_check_func () | |
2117 | { | |
2118 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2119 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
2120 | $as_echo_n "checking for $2... " >&6; } | |
4388f060 | 2121 | if eval \${$3+:} false; then : |
729e4ab9 A |
2122 | $as_echo_n "(cached) " >&6 |
2123 | else | |
2124 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2125 | /* end confdefs.h. */ | |
2126 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. | |
2127 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
2128 | #define $2 innocuous_$2 | |
2129 | ||
2130 | /* System header to define __stub macros and hopefully few prototypes, | |
2131 | which can conflict with char $2 (); below. | |
2132 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
2133 | <limits.h> exists even on freestanding compilers. */ | |
2134 | ||
2135 | #ifdef __STDC__ | |
2136 | # include <limits.h> | |
2137 | #else | |
2138 | # include <assert.h> | |
2139 | #endif | |
2140 | ||
2141 | #undef $2 | |
2142 | ||
2143 | /* Override any GCC internal prototype to avoid an error. | |
2144 | Use char because int might match the return type of a GCC | |
2145 | builtin and then its argument prototype would still apply. */ | |
2146 | #ifdef __cplusplus | |
2147 | extern "C" | |
2148 | #endif | |
2149 | char $2 (); | |
2150 | /* The GNU C library defines this for functions which it implements | |
2151 | to always fail with ENOSYS. Some functions are actually named | |
2152 | something starting with __ and the normal name is an alias. */ | |
2153 | #if defined __stub_$2 || defined __stub___$2 | |
2154 | choke me | |
2155 | #endif | |
2156 | ||
2157 | int | |
2158 | main () | |
2159 | { | |
2160 | return $2 (); | |
2161 | ; | |
2162 | return 0; | |
2163 | } | |
2164 | _ACEOF | |
2165 | if ac_fn_c_try_link "$LINENO"; then : | |
2166 | eval "$3=yes" | |
2167 | else | |
2168 | eval "$3=no" | |
2169 | fi | |
2170 | rm -f core conftest.err conftest.$ac_objext \ | |
2171 | conftest$ac_exeext conftest.$ac_ext | |
2172 | fi | |
2173 | eval ac_res=\$$3 | |
2174 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2175 | $as_echo "$ac_res" >&6; } | |
4388f060 | 2176 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
729e4ab9 A |
2177 | |
2178 | } # ac_fn_c_check_func | |
2179 | ||
2180 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES | |
2181 | # ------------------------------------------- | |
2182 | # Tests whether TYPE exists after having included INCLUDES, setting cache | |
2183 | # variable VAR accordingly. | |
2184 | ac_fn_c_check_type () | |
2185 | { | |
2186 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2187 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
2188 | $as_echo_n "checking for $2... " >&6; } | |
4388f060 | 2189 | if eval \${$3+:} false; then : |
729e4ab9 A |
2190 | $as_echo_n "(cached) " >&6 |
2191 | else | |
2192 | eval "$3=no" | |
2193 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2194 | /* end confdefs.h. */ | |
2195 | $4 | |
2196 | int | |
2197 | main () | |
2198 | { | |
2199 | if (sizeof ($2)) | |
2200 | return 0; | |
2201 | ; | |
2202 | return 0; | |
2203 | } | |
2204 | _ACEOF | |
2205 | if ac_fn_c_try_compile "$LINENO"; then : | |
2206 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2207 | /* end confdefs.h. */ | |
2208 | $4 | |
2209 | int | |
2210 | main () | |
2211 | { | |
2212 | if (sizeof (($2))) | |
2213 | return 0; | |
2214 | ; | |
2215 | return 0; | |
2216 | } | |
2217 | _ACEOF | |
2218 | if ac_fn_c_try_compile "$LINENO"; then : | |
2219 | ||
2220 | else | |
2221 | eval "$3=yes" | |
2222 | fi | |
2223 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2224 | fi | |
2225 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2226 | fi | |
2227 | eval ac_res=\$$3 | |
2228 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2229 | $as_echo "$ac_res" >&6; } | |
4388f060 | 2230 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
729e4ab9 A |
2231 | |
2232 | } # ac_fn_c_check_type | |
2233 | cat >config.log <<_ACEOF | |
2234 | This file contains any messages produced by compilers while | |
2235 | running configure, to aid debugging if configure makes a mistake. | |
2236 | ||
b331163b A |
2237 | It was created by ICU $as_me 55.1, which was |
2238 | generated by GNU Autoconf 2.69. Invocation command line was | |
729e4ab9 A |
2239 | |
2240 | $ $0 $@ | |
2241 | ||
2242 | _ACEOF | |
2243 | exec 5>>config.log | |
2244 | { | |
2245 | cat <<_ASUNAME | |
2246 | ## --------- ## | |
2247 | ## Platform. ## | |
2248 | ## --------- ## | |
2249 | ||
2250 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
2251 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
2252 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
2253 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
2254 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
2255 | ||
2256 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
2257 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
2258 | ||
2259 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
2260 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
2261 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
2262 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` | |
73c04bcf A |
2263 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
2264 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
2265 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
2266 | ||
2267 | _ASUNAME | |
2268 | ||
2269 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2270 | for as_dir in $PATH | |
2271 | do | |
2272 | IFS=$as_save_IFS | |
2273 | test -z "$as_dir" && as_dir=. | |
729e4ab9 A |
2274 | $as_echo "PATH: $as_dir" |
2275 | done | |
2276 | IFS=$as_save_IFS | |
73c04bcf A |
2277 | |
2278 | } >&5 | |
2279 | ||
2280 | cat >&5 <<_ACEOF | |
2281 | ||
2282 | ||
2283 | ## ----------- ## | |
2284 | ## Core tests. ## | |
2285 | ## ----------- ## | |
2286 | ||
2287 | _ACEOF | |
2288 | ||
2289 | ||
2290 | # Keep a trace of the command line. | |
2291 | # Strip out --no-create and --no-recursion so they do not pile up. | |
2292 | # Strip out --silent because we don't want to record it for future runs. | |
2293 | # Also quote any args containing shell meta-characters. | |
2294 | # Make two passes to allow for proper duplicate-argument suppression. | |
2295 | ac_configure_args= | |
2296 | ac_configure_args0= | |
2297 | ac_configure_args1= | |
73c04bcf A |
2298 | ac_must_keep_next=false |
2299 | for ac_pass in 1 2 | |
2300 | do | |
2301 | for ac_arg | |
2302 | do | |
2303 | case $ac_arg in | |
2304 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
2305 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
2306 | | -silent | --silent | --silen | --sile | --sil) | |
2307 | continue ;; | |
729e4ab9 A |
2308 | *\'*) |
2309 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
73c04bcf A |
2310 | esac |
2311 | case $ac_pass in | |
729e4ab9 | 2312 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
73c04bcf | 2313 | 2) |
729e4ab9 | 2314 | as_fn_append ac_configure_args1 " '$ac_arg'" |
73c04bcf A |
2315 | if test $ac_must_keep_next = true; then |
2316 | ac_must_keep_next=false # Got value, back to normal. | |
2317 | else | |
2318 | case $ac_arg in | |
2319 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
2320 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
2321 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
2322 | | -with-* | --with-* | -without-* | --without-* | --x) | |
2323 | case "$ac_configure_args0 " in | |
2324 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
2325 | esac | |
2326 | ;; | |
2327 | -* ) ac_must_keep_next=true ;; | |
2328 | esac | |
2329 | fi | |
729e4ab9 | 2330 | as_fn_append ac_configure_args " '$ac_arg'" |
73c04bcf A |
2331 | ;; |
2332 | esac | |
2333 | done | |
2334 | done | |
729e4ab9 A |
2335 | { ac_configure_args0=; unset ac_configure_args0;} |
2336 | { ac_configure_args1=; unset ac_configure_args1;} | |
73c04bcf A |
2337 | |
2338 | # When interrupted or exit'd, cleanup temporary files, and complete | |
2339 | # config.log. We remove comments because anyway the quotes in there | |
2340 | # would cause problems or look ugly. | |
729e4ab9 A |
2341 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
2342 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
73c04bcf A |
2343 | trap 'exit_status=$? |
2344 | # Save into config.log some information that might help in debugging. | |
2345 | { | |
2346 | echo | |
2347 | ||
729e4ab9 | 2348 | $as_echo "## ---------------- ## |
73c04bcf | 2349 | ## Cache variables. ## |
729e4ab9 | 2350 | ## ---------------- ##" |
73c04bcf A |
2351 | echo |
2352 | # The following way of writing the cache mishandles newlines in values, | |
729e4ab9 A |
2353 | ( |
2354 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
2355 | eval ac_val=\$$ac_var | |
2356 | case $ac_val in #( | |
2357 | *${as_nl}*) | |
2358 | case $ac_var in #( | |
2359 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
2360 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
2361 | esac | |
2362 | case $ac_var in #( | |
2363 | _ | IFS | as_nl) ;; #( | |
2364 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
2365 | *) { eval $ac_var=; unset $ac_var;} ;; | |
2366 | esac ;; | |
2367 | esac | |
2368 | done | |
73c04bcf | 2369 | (set) 2>&1 | |
729e4ab9 A |
2370 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
2371 | *${as_nl}ac_space=\ *) | |
73c04bcf | 2372 | sed -n \ |
729e4ab9 A |
2373 | "s/'\''/'\''\\\\'\'''\''/g; |
2374 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
2375 | ;; #( | |
73c04bcf | 2376 | *) |
729e4ab9 | 2377 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
73c04bcf | 2378 | ;; |
729e4ab9 A |
2379 | esac | |
2380 | sort | |
2381 | ) | |
73c04bcf A |
2382 | echo |
2383 | ||
729e4ab9 | 2384 | $as_echo "## ----------------- ## |
73c04bcf | 2385 | ## Output variables. ## |
729e4ab9 | 2386 | ## ----------------- ##" |
73c04bcf A |
2387 | echo |
2388 | for ac_var in $ac_subst_vars | |
2389 | do | |
729e4ab9 A |
2390 | eval ac_val=\$$ac_var |
2391 | case $ac_val in | |
2392 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2393 | esac | |
2394 | $as_echo "$ac_var='\''$ac_val'\''" | |
73c04bcf A |
2395 | done | sort |
2396 | echo | |
2397 | ||
2398 | if test -n "$ac_subst_files"; then | |
729e4ab9 A |
2399 | $as_echo "## ------------------- ## |
2400 | ## File substitutions. ## | |
2401 | ## ------------------- ##" | |
73c04bcf A |
2402 | echo |
2403 | for ac_var in $ac_subst_files | |
2404 | do | |
729e4ab9 A |
2405 | eval ac_val=\$$ac_var |
2406 | case $ac_val in | |
2407 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2408 | esac | |
2409 | $as_echo "$ac_var='\''$ac_val'\''" | |
73c04bcf A |
2410 | done | sort |
2411 | echo | |
2412 | fi | |
2413 | ||
2414 | if test -s confdefs.h; then | |
729e4ab9 | 2415 | $as_echo "## ----------- ## |
73c04bcf | 2416 | ## confdefs.h. ## |
729e4ab9 | 2417 | ## ----------- ##" |
73c04bcf | 2418 | echo |
729e4ab9 | 2419 | cat confdefs.h |
73c04bcf A |
2420 | echo |
2421 | fi | |
2422 | test "$ac_signal" != 0 && | |
729e4ab9 A |
2423 | $as_echo "$as_me: caught signal $ac_signal" |
2424 | $as_echo "$as_me: exit $exit_status" | |
73c04bcf | 2425 | } >&5 |
729e4ab9 A |
2426 | rm -f core *.core core.conftest.* && |
2427 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
73c04bcf | 2428 | exit $exit_status |
729e4ab9 | 2429 | ' 0 |
73c04bcf | 2430 | for ac_signal in 1 2 13 15; do |
729e4ab9 | 2431 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
73c04bcf A |
2432 | done |
2433 | ac_signal=0 | |
2434 | ||
2435 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
729e4ab9 A |
2436 | rm -f -r conftest* confdefs.h |
2437 | ||
2438 | $as_echo "/* confdefs.h */" > confdefs.h | |
73c04bcf A |
2439 | |
2440 | # Predefined preprocessor variables. | |
2441 | ||
2442 | cat >>confdefs.h <<_ACEOF | |
2443 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
2444 | _ACEOF | |
2445 | ||
73c04bcf A |
2446 | cat >>confdefs.h <<_ACEOF |
2447 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
2448 | _ACEOF | |
2449 | ||
729e4ab9 A |
2450 | cat >>confdefs.h <<_ACEOF |
2451 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
2452 | _ACEOF | |
73c04bcf | 2453 | |
729e4ab9 A |
2454 | cat >>confdefs.h <<_ACEOF |
2455 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
2456 | _ACEOF | |
73c04bcf | 2457 | |
729e4ab9 A |
2458 | cat >>confdefs.h <<_ACEOF |
2459 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
2460 | _ACEOF | |
73c04bcf | 2461 | |
729e4ab9 A |
2462 | cat >>confdefs.h <<_ACEOF |
2463 | #define PACKAGE_URL "$PACKAGE_URL" | |
2464 | _ACEOF | |
73c04bcf | 2465 | |
73c04bcf | 2466 | |
729e4ab9 A |
2467 | # Let the site file select an alternate cache file if it wants to. |
2468 | # Prefer an explicitly selected file to automatically selected ones. | |
2469 | ac_site_file1=NONE | |
2470 | ac_site_file2=NONE | |
2471 | if test -n "$CONFIG_SITE"; then | |
2472 | # We do not want a PATH search for config.site. | |
2473 | case $CONFIG_SITE in #(( | |
2474 | -*) ac_site_file1=./$CONFIG_SITE;; | |
2475 | */*) ac_site_file1=$CONFIG_SITE;; | |
2476 | *) ac_site_file1=./$CONFIG_SITE;; | |
2477 | esac | |
2478 | elif test "x$prefix" != xNONE; then | |
2479 | ac_site_file1=$prefix/share/config.site | |
2480 | ac_site_file2=$prefix/etc/config.site | |
b75a7d8f | 2481 | else |
729e4ab9 A |
2482 | ac_site_file1=$ac_default_prefix/share/config.site |
2483 | ac_site_file2=$ac_default_prefix/etc/config.site | |
2484 | fi | |
2485 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" | |
73c04bcf | 2486 | do |
729e4ab9 A |
2487 | test "x$ac_site_file" = xNONE && continue |
2488 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then | |
2489 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 | |
2490 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
2491 | sed 's/^/| /' "$ac_site_file" >&5 | |
2492 | . "$ac_site_file" \ | |
2493 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2494 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2495 | as_fn_error $? "failed to load site script $ac_site_file | |
2496 | See \`config.log' for more details" "$LINENO" 5; } | |
73c04bcf A |
2497 | fi |
2498 | done | |
73c04bcf | 2499 | |
729e4ab9 A |
2500 | if test -r "$cache_file"; then |
2501 | # Some versions of bash will fail to source /dev/null (special files | |
2502 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. | |
2503 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then | |
2504 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 | |
2505 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
2506 | case $cache_file in | |
2507 | [\\/]* | ?:[\\/]* ) . "$cache_file";; | |
2508 | *) . "./$cache_file";; | |
2509 | esac | |
b75a7d8f | 2510 | fi |
b75a7d8f | 2511 | else |
729e4ab9 A |
2512 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
2513 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
2514 | >$cache_file | |
b75a7d8f A |
2515 | fi |
2516 | ||
729e4ab9 A |
2517 | # Check that the precious variables saved in the cache have kept the same |
2518 | # value. | |
2519 | ac_cache_corrupted=false | |
2520 | for ac_var in $ac_precious_vars; do | |
2521 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
2522 | eval ac_new_set=\$ac_env_${ac_var}_set | |
2523 | eval ac_old_val=\$ac_cv_env_${ac_var}_value | |
2524 | eval ac_new_val=\$ac_env_${ac_var}_value | |
2525 | case $ac_old_set,$ac_new_set in | |
2526 | set,) | |
2527 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
2528 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
2529 | ac_cache_corrupted=: ;; | |
2530 | ,set) | |
2531 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 | |
2532 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
2533 | ac_cache_corrupted=: ;; | |
2534 | ,);; | |
2535 | *) | |
2536 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
2537 | # differences in whitespace do not lead to failure. | |
2538 | ac_old_val_w=`echo x $ac_old_val` | |
2539 | ac_new_val_w=`echo x $ac_new_val` | |
2540 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
2541 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | |
2542 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
2543 | ac_cache_corrupted=: | |
2544 | else | |
2545 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
2546 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
2547 | eval $ac_var=\$ac_old_val | |
2548 | fi | |
2549 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | |
2550 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
2551 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | |
2552 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
2553 | fi;; | |
2554 | esac | |
2555 | # Pass precious variables to config.status. | |
2556 | if test "$ac_new_set" = set; then | |
2557 | case $ac_new_val in | |
2558 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2559 | *) ac_arg=$ac_var=$ac_new_val ;; | |
2560 | esac | |
2561 | case " $ac_configure_args " in | |
2562 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
2563 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; | |
2564 | esac | |
73c04bcf A |
2565 | fi |
2566 | done | |
729e4ab9 A |
2567 | if $ac_cache_corrupted; then |
2568 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2569 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2570 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
2571 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
2572 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 | |
b75a7d8f | 2573 | fi |
729e4ab9 A |
2574 | ## -------------------- ## |
2575 | ## Main body of script. ## | |
2576 | ## -------------------- ## | |
73c04bcf | 2577 | |
729e4ab9 A |
2578 | ac_ext=c |
2579 | ac_cpp='$CPP $CPPFLAGS' | |
2580 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2581 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2582 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
73c04bcf | 2583 | |
73c04bcf | 2584 | |
b75a7d8f | 2585 | |
4388f060 | 2586 | |
73c04bcf | 2587 | |
73c04bcf | 2588 | |
729e4ab9 | 2589 | PACKAGE="icu" |
73c04bcf | 2590 | |
73c04bcf | 2591 | |
729e4ab9 A |
2592 | # Use custom echo test for newline option |
2593 | # Current autoconf (2.65) gives incorrect echo newline option | |
2594 | # for icu-config | |
2595 | # This may be removed later - mow (June 17, 2010) | |
2596 | ICU_ECHO_C= ICU_ECHO_N= ICU_ECHO_T= | |
2597 | case `/bin/sh -c "echo -n x"` in | |
2598 | -n*) | |
2599 | case `/bin/sh -c "echo 'x\c'"` in | |
2600 | *c*) ICU_ECHO_T=' ';; # ECHO_T is single tab character. | |
2601 | *) ICU_ECHO_C='\c';; | |
2602 | esac;; | |
2603 | *) | |
2604 | ICU_ECHO_N='-n';; | |
2605 | esac | |
73c04bcf | 2606 | |
73c04bcf | 2607 | |
b75a7d8f | 2608 | |
73c04bcf | 2609 | |
729e4ab9 A |
2610 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ICU version numbers" >&5 |
2611 | $as_echo_n "checking for ICU version numbers... " >&6; } | |
73c04bcf | 2612 | |
729e4ab9 A |
2613 | # Get the ICU version from uversion.h or other headers |
2614 | geticuversion() { | |
2615 | sed -n 's/^[ ]*#[ ]*define[ ]*U_ICU_VERSION[ ]*"\([^"]*\)".*/\1/p' "$@" | |
2616 | } | |
2617 | getuversion() { | |
2618 | sed -n 's/^[ ]*#[ ]*define[ ]*U_UNICODE_VERSION[ ]*"\([^"]*\)".*/\1/p' "$@" | |
2619 | } | |
2620 | VERSION=`geticuversion $srcdir/common/unicode/uvernum.h` | |
2621 | if test x"$VERSION" = x; then | |
4388f060 | 2622 | as_fn_error $? "Cannot determine ICU version number from uvernum.h header file" "$LINENO" 5 |
729e4ab9 | 2623 | fi |
73c04bcf | 2624 | |
4388f060 A |
2625 | #TODO: IcuBug:8502 |
2626 | #if test "$VERSION" != "$PACKAGE_VERSION"; then | |
2627 | # AC_MSG_ERROR([configure was generated for $PACKAGE_VERSION but uvernum.h has $VERSION - please rerun autoconf]) | |
2628 | #fi | |
2629 | ||
729e4ab9 A |
2630 | UNICODE_VERSION=`getuversion $srcdir/common/unicode/uchar.h` |
2631 | if test x"$UNICODE_VERSION" = x; then | |
4388f060 | 2632 | as_fn_error $? "Cannot determine Unicode version number from uchar.h header file" "$LINENO" 5 |
b75a7d8f | 2633 | fi |
729e4ab9 A |
2634 | # Compute a reasonable library version from the release version. This is |
2635 | # very bad, but that's wanted... We want to make sure that the LIB_VERSION | |
2636 | # has at least a dot in it, so we'll add a .0 if needed. | |
4388f060 A |
2637 | #[LIB_VERSION=`echo $VERSION | sed -e 's/\.//' -e 's/^\([^.]*\)$/\1.0/'`] |
2638 | LIB_VERSION=$VERSION | |
729e4ab9 | 2639 | LIB_VERSION_MAJOR=`echo $LIB_VERSION | sed 's/\..*//'` |
73c04bcf | 2640 | |
729e4ab9 A |
2641 | |
2642 | ||
2643 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: release $VERSION, library $LIB_VERSION, unicode version $UNICODE_VERSION" >&5 | |
2644 | $as_echo "release $VERSION, library $LIB_VERSION, unicode version $UNICODE_VERSION" >&6; } | |
2645 | ||
2646 | ||
2647 | ||
2648 | # Determine the host system | |
2649 | ac_aux_dir= | |
2650 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do | |
2651 | if test -f "$ac_dir/install-sh"; then | |
2652 | ac_aux_dir=$ac_dir | |
2653 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
2654 | break | |
2655 | elif test -f "$ac_dir/install.sh"; then | |
2656 | ac_aux_dir=$ac_dir | |
2657 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
2658 | break | |
2659 | elif test -f "$ac_dir/shtool"; then | |
2660 | ac_aux_dir=$ac_dir | |
2661 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
2662 | break | |
2663 | fi | |
73c04bcf | 2664 | done |
729e4ab9 A |
2665 | if test -z "$ac_aux_dir"; then |
2666 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 | |
b75a7d8f A |
2667 | fi |
2668 | ||
729e4ab9 A |
2669 | # These three variables are undocumented and unsupported, |
2670 | # and are intended to be withdrawn in a future Autoconf release. | |
2671 | # They can cause serious problems if a builder's source tree is in a directory | |
2672 | # whose full name contains unusual characters. | |
2673 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2674 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2675 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
73c04bcf | 2676 | |
73c04bcf | 2677 | |
729e4ab9 A |
2678 | # Make sure we can run config.sub. |
2679 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || | |
2680 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 | |
2681 | ||
2682 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | |
2683 | $as_echo_n "checking build system type... " >&6; } | |
4388f060 | 2684 | if ${ac_cv_build+:} false; then : |
729e4ab9 A |
2685 | $as_echo_n "(cached) " >&6 |
2686 | else | |
2687 | ac_build_alias=$build_alias | |
2688 | test "x$ac_build_alias" = x && | |
2689 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
2690 | test "x$ac_build_alias" = x && | |
2691 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 | |
2692 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || | |
2693 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 | |
2694 | ||
2695 | fi | |
2696 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 | |
2697 | $as_echo "$ac_cv_build" >&6; } | |
2698 | case $ac_cv_build in | |
2699 | *-*-*) ;; | |
2700 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; | |
2701 | esac | |
2702 | build=$ac_cv_build | |
2703 | ac_save_IFS=$IFS; IFS='-' | |
2704 | set x $ac_cv_build | |
2705 | shift | |
2706 | build_cpu=$1 | |
2707 | build_vendor=$2 | |
2708 | shift; shift | |
2709 | # Remember, the first character of IFS is used to create $*, | |
2710 | # except with old shells: | |
2711 | build_os=$* | |
2712 | IFS=$ac_save_IFS | |
2713 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
b75a7d8f | 2714 | |
73c04bcf | 2715 | |
729e4ab9 A |
2716 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
2717 | $as_echo_n "checking host system type... " >&6; } | |
4388f060 | 2718 | if ${ac_cv_host+:} false; then : |
729e4ab9 A |
2719 | $as_echo_n "(cached) " >&6 |
2720 | else | |
2721 | if test "x$host_alias" = x; then | |
2722 | ac_cv_host=$ac_cv_build | |
2723 | else | |
2724 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
2725 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 | |
b75a7d8f A |
2726 | fi |
2727 | ||
73c04bcf | 2728 | fi |
729e4ab9 A |
2729 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
2730 | $as_echo "$ac_cv_host" >&6; } | |
2731 | case $ac_cv_host in | |
2732 | *-*-*) ;; | |
2733 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; | |
2734 | esac | |
2735 | host=$ac_cv_host | |
2736 | ac_save_IFS=$IFS; IFS='-' | |
2737 | set x $ac_cv_host | |
2738 | shift | |
2739 | host_cpu=$1 | |
2740 | host_vendor=$2 | |
2741 | shift; shift | |
2742 | # Remember, the first character of IFS is used to create $*, | |
2743 | # except with old shells: | |
2744 | host_os=$* | |
2745 | IFS=$ac_save_IFS | |
2746 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
73c04bcf | 2747 | |
73c04bcf | 2748 | |
b75a7d8f | 2749 | |
73c04bcf | 2750 | |
b75a7d8f | 2751 | |
729e4ab9 A |
2752 | # This variable is needed on z/OS because the C++ compiler only recognizes .C |
2753 | _CXX_CXXSUFFIX=cpp | |
2754 | export _CXX_CXXSUFFIX | |
b75a7d8f | 2755 | |
4388f060 | 2756 | # Accumulate #defines |
57a6839d A |
2757 | |
2758 | # CONFIG_CPPFLAGS: These are defines that are set for ICU Build time only. | |
2759 | # They are only needed for building ICU itself. Example: platform stuff | |
4388f060 | 2760 | CONFIG_CPPFLAGS="" |
57a6839d A |
2761 | # UCONFIG_CPPFLAGS: These are defines which are set for ICU build time, |
2762 | # and also a notice is output that they need to be set | |
2763 | # for end-users of ICU also. uconfig.h.prepend is generated | |
2764 | # with, for example, "#define U_DISABLE_RENAMING 1" | |
2765 | # Example: ICU configuration stuff | |
4388f060 | 2766 | UCONFIG_CPPFLAGS="" |
57a6839d A |
2767 | # UCONFIG_CFLAGS: contains a copy of anything that needs to be set by end users |
2768 | # such as -std | |
2769 | UCONFIG_CFLAGS="" | |
4388f060 | 2770 | |
729e4ab9 A |
2771 | # Check whether to build debug libraries |
2772 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build debug libraries" >&5 | |
2773 | $as_echo_n "checking whether to build debug libraries... " >&6; } | |
2774 | enabled=no | |
2775 | ENABLE_DEBUG=0 | |
2776 | # Check whether --enable-debug was given. | |
2777 | if test "${enable_debug+set}" = set; then : | |
2778 | enableval=$enable_debug; case "${enableval}" in | |
4388f060 | 2779 | yes|"") enabled=yes; ENABLE_DEBUG=1; CONFIG_CPPFLAGS="$CONFIG_CPPFLAGS -DU_DEBUG=1" ;; |
729e4ab9 A |
2780 | *) ;; |
2781 | esac | |
73c04bcf | 2782 | fi |
b75a7d8f | 2783 | |
729e4ab9 A |
2784 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enabled" >&5 |
2785 | $as_echo "$enabled" >&6; } | |
b75a7d8f | 2786 | |
73c04bcf | 2787 | |
729e4ab9 A |
2788 | # Check whether to build release libraries |
2789 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build release libraries" >&5 | |
2790 | $as_echo_n "checking whether to build release libraries... " >&6; } | |
2791 | enabled=yes | |
2792 | ENABLE_RELEASE=1 | |
2793 | # Check whether --enable-release was given. | |
2794 | if test "${enable_release+set}" = set; then : | |
2795 | enableval=$enable_release; case "${enableval}" in | |
2796 | no) enabled=no; ENABLE_RELEASE=0 ;; | |
2797 | *) ;; | |
2798 | esac | |
73c04bcf | 2799 | fi |
73c04bcf | 2800 | |
729e4ab9 A |
2801 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enabled" >&5 |
2802 | $as_echo "$enabled" >&6; } | |
73c04bcf | 2803 | |
73c04bcf | 2804 | |
729e4ab9 A |
2805 | # Don't use the default C/CXXFLags |
2806 | : ${CFLAGS=""} | |
2807 | : ${CXXFLAGS=""} | |
2808 | ||
51004dcb | 2809 | # Checks for compilers |
b75a7d8f | 2810 | ac_ext=c |
b75a7d8f | 2811 | ac_cpp='$CPP $CPPFLAGS' |
73c04bcf A |
2812 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
2813 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2814 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
73c04bcf | 2815 | if test -n "$ac_tool_prefix"; then |
51004dcb | 2816 | for ac_prog in clang gcc cc c99 c89 xlc_r xlc cl.exe icc |
729e4ab9 A |
2817 | do |
2818 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
2819 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
2820 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2821 | $as_echo_n "checking for $ac_word... " >&6; } | |
4388f060 | 2822 | if ${ac_cv_prog_CC+:} false; then : |
729e4ab9 | 2823 | $as_echo_n "(cached) " >&6 |
b75a7d8f | 2824 | else |
729e4ab9 A |
2825 | if test -n "$CC"; then |
2826 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2827 | else | |
2828 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
73c04bcf A |
2829 | for as_dir in $PATH |
2830 | do | |
2831 | IFS=$as_save_IFS | |
2832 | test -z "$as_dir" && as_dir=. | |
729e4ab9 | 2833 | for ac_exec_ext in '' $ac_executable_extensions; do |
b331163b | 2834 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
729e4ab9 A |
2835 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
2836 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
73c04bcf A |
2837 | break 2 |
2838 | fi | |
2839 | done | |
729e4ab9 A |
2840 | done |
2841 | IFS=$as_save_IFS | |
73c04bcf | 2842 | |
b75a7d8f | 2843 | fi |
729e4ab9 A |
2844 | fi |
2845 | CC=$ac_cv_prog_CC | |
2846 | if test -n "$CC"; then | |
2847 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
2848 | $as_echo "$CC" >&6; } | |
b75a7d8f | 2849 | else |
729e4ab9 A |
2850 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2851 | $as_echo "no" >&6; } | |
b75a7d8f A |
2852 | fi |
2853 | ||
b75a7d8f | 2854 | |
729e4ab9 A |
2855 | test -n "$CC" && break |
2856 | done | |
2857 | fi | |
2858 | if test -z "$CC"; then | |
2859 | ac_ct_CC=$CC | |
51004dcb | 2860 | for ac_prog in clang gcc cc c99 c89 xlc_r xlc cl.exe icc |
729e4ab9 A |
2861 | do |
2862 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2863 | set dummy $ac_prog; ac_word=$2 | |
2864 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2865 | $as_echo_n "checking for $ac_word... " >&6; } | |
4388f060 | 2866 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
729e4ab9 | 2867 | $as_echo_n "(cached) " >&6 |
b75a7d8f | 2868 | else |
729e4ab9 A |
2869 | if test -n "$ac_ct_CC"; then |
2870 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2871 | else | |
2872 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2873 | for as_dir in $PATH | |
73c04bcf A |
2874 | do |
2875 | IFS=$as_save_IFS | |
2876 | test -z "$as_dir" && as_dir=. | |
729e4ab9 | 2877 | for ac_exec_ext in '' $ac_executable_extensions; do |
b331163b | 2878 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
729e4ab9 A |
2879 | ac_cv_prog_ac_ct_CC="$ac_prog" |
2880 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
73c04bcf A |
2881 | break 2 |
2882 | fi | |
2883 | done | |
729e4ab9 A |
2884 | done |
2885 | IFS=$as_save_IFS | |
73c04bcf | 2886 | |
b75a7d8f | 2887 | fi |
729e4ab9 A |
2888 | fi |
2889 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2890 | if test -n "$ac_ct_CC"; then | |
2891 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
2892 | $as_echo "$ac_ct_CC" >&6; } | |
b75a7d8f | 2893 | else |
729e4ab9 A |
2894 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2895 | $as_echo "no" >&6; } | |
b75a7d8f A |
2896 | fi |
2897 | ||
2898 | ||
729e4ab9 A |
2899 | test -n "$ac_ct_CC" && break |
2900 | done | |
b75a7d8f | 2901 | |
729e4ab9 A |
2902 | if test "x$ac_ct_CC" = x; then |
2903 | CC="" | |
2904 | else | |
2905 | case $cross_compiling:$ac_tool_warned in | |
2906 | yes:) | |
2907 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
2908 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
2909 | ac_tool_warned=yes ;; | |
73c04bcf | 2910 | esac |
729e4ab9 A |
2911 | CC=$ac_ct_CC |
2912 | fi | |
73c04bcf | 2913 | fi |
73c04bcf | 2914 | |
73c04bcf | 2915 | |
729e4ab9 A |
2916 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2917 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2918 | as_fn_error $? "no acceptable C compiler found in \$PATH | |
2919 | See \`config.log' for more details" "$LINENO" 5; } | |
73c04bcf | 2920 | |
729e4ab9 A |
2921 | # Provide some information about the compiler. |
2922 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | |
2923 | set X $ac_compile | |
2924 | ac_compiler=$2 | |
2925 | for ac_option in --version -v -V -qversion; do | |
2926 | { { ac_try="$ac_compiler $ac_option >&5" | |
2927 | case "(($ac_try" in | |
2928 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2929 | *) ac_try_echo=$ac_try;; | |
2930 | esac | |
2931 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2932 | $as_echo "$ac_try_echo"; } >&5 | |
2933 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
73c04bcf | 2934 | ac_status=$? |
729e4ab9 A |
2935 | if test -s conftest.err; then |
2936 | sed '10a\ | |
2937 | ... rest of stderr output deleted ... | |
2938 | 10q' conftest.err >conftest.er1 | |
2939 | cat conftest.er1 >&5 | |
2940 | fi | |
2941 | rm -f conftest.er1 conftest.err | |
2942 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2943 | test $ac_status = 0; } | |
2944 | done | |
73c04bcf | 2945 | |
729e4ab9 | 2946 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
73c04bcf | 2947 | /* end confdefs.h. */ |
729e4ab9 A |
2948 | |
2949 | int | |
2950 | main () | |
2951 | { | |
2952 | ||
2953 | ; | |
2954 | return 0; | |
2955 | } | |
73c04bcf | 2956 | _ACEOF |
729e4ab9 A |
2957 | ac_clean_files_save=$ac_clean_files |
2958 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" | |
2959 | # Try to create an executable without -o first, disregard a.out. | |
2960 | # It will help us diagnose broken compilers, and finding out an intuition | |
2961 | # of exeext. | |
2962 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 | |
2963 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
2964 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
73c04bcf | 2965 | |
729e4ab9 A |
2966 | # The possible output files: |
2967 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
b75a7d8f | 2968 | |
729e4ab9 A |
2969 | ac_rmfiles= |
2970 | for ac_file in $ac_files | |
2971 | do | |
2972 | case $ac_file in | |
2973 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
2974 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
2975 | esac | |
2976 | done | |
2977 | rm -f $ac_rmfiles | |
b75a7d8f | 2978 | |
729e4ab9 A |
2979 | if { { ac_try="$ac_link_default" |
2980 | case "(($ac_try" in | |
2981 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2982 | *) ac_try_echo=$ac_try;; | |
2983 | esac | |
2984 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2985 | $as_echo "$ac_try_echo"; } >&5 | |
2986 | (eval "$ac_link_default") 2>&5 | |
2987 | ac_status=$? | |
2988 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2989 | test $ac_status = 0; }; then : | |
2990 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
2991 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
2992 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
2993 | # so that the user can short-circuit this test for compilers unknown to | |
2994 | # Autoconf. | |
2995 | for ac_file in $ac_files '' | |
2996 | do | |
2997 | test -f "$ac_file" || continue | |
2998 | case $ac_file in | |
2999 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) | |
3000 | ;; | |
3001 | [ab].out ) | |
3002 | # We found the default executable, but exeext='' is most | |
3003 | # certainly right. | |
3004 | break;; | |
3005 | *.* ) | |
3006 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; | |
3007 | then :; else | |
3008 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3009 | fi | |
3010 | # We set ac_cv_exeext here because the later test for it is not | |
3011 | # safe: cross compilers may not add the suffix if given an `-o' | |
3012 | # argument, so we may need to know it at that point already. | |
3013 | # Even if this section looks crufty: it has the advantage of | |
3014 | # actually working. | |
3015 | break;; | |
3016 | * ) | |
3017 | break;; | |
3018 | esac | |
3019 | done | |
3020 | test "$ac_cv_exeext" = no && ac_cv_exeext= | |
b75a7d8f | 3021 | |
729e4ab9 A |
3022 | else |
3023 | ac_file='' | |
3024 | fi | |
3025 | if test -z "$ac_file"; then : | |
3026 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3027 | $as_echo "no" >&6; } | |
3028 | $as_echo "$as_me: failed program was:" >&5 | |
3029 | sed 's/^/| /' conftest.$ac_ext >&5 | |
b75a7d8f | 3030 | |
729e4ab9 A |
3031 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3032 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3033 | as_fn_error 77 "C compiler cannot create executables | |
3034 | See \`config.log' for more details" "$LINENO" 5; } | |
3035 | else | |
3036 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3037 | $as_echo "yes" >&6; } | |
3038 | fi | |
3039 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 | |
3040 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
3041 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
3042 | $as_echo "$ac_file" >&6; } | |
3043 | ac_exeext=$ac_cv_exeext | |
b75a7d8f | 3044 | |
729e4ab9 A |
3045 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
3046 | ac_clean_files=$ac_clean_files_save | |
3047 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 | |
3048 | $as_echo_n "checking for suffix of executables... " >&6; } | |
3049 | if { { ac_try="$ac_link" | |
3050 | case "(($ac_try" in | |
3051 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3052 | *) ac_try_echo=$ac_try;; | |
3053 | esac | |
3054 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3055 | $as_echo "$ac_try_echo"; } >&5 | |
3056 | (eval "$ac_link") 2>&5 | |
3057 | ac_status=$? | |
3058 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3059 | test $ac_status = 0; }; then : | |
3060 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
3061 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
3062 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
3063 | # `rm'. | |
3064 | for ac_file in conftest.exe conftest conftest.*; do | |
3065 | test -f "$ac_file" || continue | |
3066 | case $ac_file in | |
3067 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
3068 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3069 | break;; | |
3070 | * ) break;; | |
3071 | esac | |
3072 | done | |
b75a7d8f | 3073 | else |
729e4ab9 A |
3074 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3075 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3076 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link | |
3077 | See \`config.log' for more details" "$LINENO" 5; } | |
3078 | fi | |
3079 | rm -f conftest conftest$ac_cv_exeext | |
3080 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 | |
3081 | $as_echo "$ac_cv_exeext" >&6; } | |
73c04bcf | 3082 | |
729e4ab9 A |
3083 | rm -f conftest.$ac_ext |
3084 | EXEEXT=$ac_cv_exeext | |
3085 | ac_exeext=$EXEEXT | |
3086 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
46f4442e | 3087 | /* end confdefs.h. */ |
729e4ab9 | 3088 | #include <stdio.h> |
46f4442e A |
3089 | int |
3090 | main () | |
3091 | { | |
729e4ab9 A |
3092 | FILE *f = fopen ("conftest.out", "w"); |
3093 | return ferror (f) || fclose (f) != 0; | |
46f4442e A |
3094 | |
3095 | ; | |
3096 | return 0; | |
3097 | } | |
3098 | _ACEOF | |
729e4ab9 A |
3099 | ac_clean_files="$ac_clean_files conftest.out" |
3100 | # Check that the compiler produces executables we can run. If not, either | |
3101 | # the compiler is broken, or we cross compile. | |
3102 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | |
3103 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
3104 | if test "$cross_compiling" != yes; then | |
3105 | { { ac_try="$ac_link" | |
3106 | case "(($ac_try" in | |
3107 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3108 | *) ac_try_echo=$ac_try;; | |
b75a7d8f | 3109 | esac |
729e4ab9 A |
3110 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3111 | $as_echo "$ac_try_echo"; } >&5 | |
3112 | (eval "$ac_link") 2>&5 | |
3113 | ac_status=$? | |
3114 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3115 | test $ac_status = 0; } | |
3116 | if { ac_try='./conftest$ac_cv_exeext' | |
3117 | { { case "(($ac_try" in | |
3118 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3119 | *) ac_try_echo=$ac_try;; | |
3120 | esac | |
3121 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3122 | $as_echo "$ac_try_echo"; } >&5 | |
3123 | (eval "$ac_try") 2>&5 | |
3124 | ac_status=$? | |
3125 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3126 | test $ac_status = 0; }; }; then | |
3127 | cross_compiling=no | |
3128 | else | |
3129 | if test "$cross_compiling" = maybe; then | |
3130 | cross_compiling=yes | |
3131 | else | |
3132 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3133 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3134 | as_fn_error $? "cannot run C compiled programs. | |
3135 | If you meant to cross compile, use \`--host'. | |
3136 | See \`config.log' for more details" "$LINENO" 5; } | |
3137 | fi | |
3138 | fi | |
73c04bcf | 3139 | fi |
729e4ab9 A |
3140 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 |
3141 | $as_echo "$cross_compiling" >&6; } | |
b75a7d8f | 3142 | |
729e4ab9 A |
3143 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out |
3144 | ac_clean_files=$ac_clean_files_save | |
3145 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 | |
3146 | $as_echo_n "checking for suffix of object files... " >&6; } | |
4388f060 | 3147 | if ${ac_cv_objext+:} false; then : |
729e4ab9 | 3148 | $as_echo_n "(cached) " >&6 |
b75a7d8f | 3149 | else |
729e4ab9 | 3150 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
73c04bcf A |
3151 | /* end confdefs.h. */ |
3152 | ||
73c04bcf A |
3153 | int |
3154 | main () | |
3155 | { | |
729e4ab9 | 3156 | |
73c04bcf A |
3157 | ; |
3158 | return 0; | |
3159 | } | |
3160 | _ACEOF | |
729e4ab9 A |
3161 | rm -f conftest.o conftest.obj |
3162 | if { { ac_try="$ac_compile" | |
3163 | case "(($ac_try" in | |
3164 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3165 | *) ac_try_echo=$ac_try;; | |
3166 | esac | |
3167 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3168 | $as_echo "$ac_try_echo"; } >&5 | |
3169 | (eval "$ac_compile") 2>&5 | |
3170 | ac_status=$? | |
3171 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3172 | test $ac_status = 0; }; then : | |
3173 | for ac_file in conftest.o conftest.obj conftest.*; do | |
3174 | test -f "$ac_file" || continue; | |
3175 | case $ac_file in | |
3176 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; | |
3177 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
3178 | break;; | |
3179 | esac | |
3180 | done | |
73c04bcf | 3181 | else |
729e4ab9 | 3182 | $as_echo "$as_me: failed program was:" >&5 |
73c04bcf A |
3183 | sed 's/^/| /' conftest.$ac_ext >&5 |
3184 | ||
729e4ab9 A |
3185 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3186 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3187 | as_fn_error $? "cannot compute suffix of object files: cannot compile | |
3188 | See \`config.log' for more details" "$LINENO" 5; } | |
73c04bcf | 3189 | fi |
729e4ab9 | 3190 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
b75a7d8f | 3191 | fi |
729e4ab9 A |
3192 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
3193 | $as_echo "$ac_cv_objext" >&6; } | |
3194 | OBJEXT=$ac_cv_objext | |
3195 | ac_objext=$OBJEXT | |
3196 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 | |
3197 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
4388f060 | 3198 | if ${ac_cv_c_compiler_gnu+:} false; then : |
729e4ab9 | 3199 | $as_echo_n "(cached) " >&6 |
73c04bcf | 3200 | else |
729e4ab9 | 3201 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
73c04bcf A |
3202 | /* end confdefs.h. */ |
3203 | ||
73c04bcf A |
3204 | int |
3205 | main () | |
3206 | { | |
729e4ab9 A |
3207 | #ifndef __GNUC__ |
3208 | choke me | |
3209 | #endif | |
3210 | ||
73c04bcf A |
3211 | ; |
3212 | return 0; | |
3213 | } | |
3214 | _ACEOF | |
729e4ab9 A |
3215 | if ac_fn_c_try_compile "$LINENO"; then : |
3216 | ac_compiler_gnu=yes | |
73c04bcf | 3217 | else |
729e4ab9 | 3218 | ac_compiler_gnu=no |
73c04bcf | 3219 | fi |
729e4ab9 A |
3220 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3221 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
b75a7d8f | 3222 | |
b75a7d8f | 3223 | fi |
729e4ab9 A |
3224 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
3225 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
3226 | if test $ac_compiler_gnu = yes; then | |
3227 | GCC=yes | |
b75a7d8f | 3228 | else |
729e4ab9 | 3229 | GCC= |
374ca955 | 3230 | fi |
729e4ab9 A |
3231 | ac_test_CFLAGS=${CFLAGS+set} |
3232 | ac_save_CFLAGS=$CFLAGS | |
3233 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 | |
3234 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
4388f060 | 3235 | if ${ac_cv_prog_cc_g+:} false; then : |
729e4ab9 A |
3236 | $as_echo_n "(cached) " >&6 |
3237 | else | |
3238 | ac_save_c_werror_flag=$ac_c_werror_flag | |
3239 | ac_c_werror_flag=yes | |
3240 | ac_cv_prog_cc_g=no | |
3241 | CFLAGS="-g" | |
3242 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3243 | /* end confdefs.h. */ | |
374ca955 | 3244 | |
729e4ab9 A |
3245 | int |
3246 | main () | |
3247 | { | |
374ca955 | 3248 | |
729e4ab9 A |
3249 | ; |
3250 | return 0; | |
3251 | } | |
46f4442e | 3252 | _ACEOF |
729e4ab9 A |
3253 | if ac_fn_c_try_compile "$LINENO"; then : |
3254 | ac_cv_prog_cc_g=yes | |
3255 | else | |
3256 | CFLAGS="" | |
3257 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
46f4442e | 3258 | /* end confdefs.h. */ |
729e4ab9 | 3259 | |
46f4442e A |
3260 | int |
3261 | main () | |
3262 | { | |
729e4ab9 | 3263 | |
46f4442e A |
3264 | ; |
3265 | return 0; | |
3266 | } | |
3267 | _ACEOF | |
729e4ab9 A |
3268 | if ac_fn_c_try_compile "$LINENO"; then : |
3269 | ||
b75a7d8f | 3270 | else |
729e4ab9 A |
3271 | ac_c_werror_flag=$ac_save_c_werror_flag |
3272 | CFLAGS="-g" | |
3273 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3274 | /* end confdefs.h. */ | |
73c04bcf | 3275 | |
729e4ab9 A |
3276 | int |
3277 | main () | |
3278 | { | |
3279 | ||
3280 | ; | |
3281 | return 0; | |
3282 | } | |
3283 | _ACEOF | |
3284 | if ac_fn_c_try_compile "$LINENO"; then : | |
3285 | ac_cv_prog_cc_g=yes | |
3286 | fi | |
3287 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3288 | fi | |
3289 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3290 | fi | |
3291 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3292 | ac_c_werror_flag=$ac_save_c_werror_flag | |
3293 | fi | |
3294 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
3295 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
3296 | if test "$ac_test_CFLAGS" = set; then | |
3297 | CFLAGS=$ac_save_CFLAGS | |
3298 | elif test $ac_cv_prog_cc_g = yes; then | |
3299 | if test "$GCC" = yes; then | |
3300 | CFLAGS="-g -O2" | |
3301 | else | |
3302 | CFLAGS="-g" | |
3303 | fi | |
3304 | else | |
3305 | if test "$GCC" = yes; then | |
3306 | CFLAGS="-O2" | |
3307 | else | |
3308 | CFLAGS= | |
3309 | fi | |
b75a7d8f | 3310 | fi |
729e4ab9 A |
3311 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
3312 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
4388f060 | 3313 | if ${ac_cv_prog_cc_c89+:} false; then : |
729e4ab9 | 3314 | $as_echo_n "(cached) " >&6 |
73c04bcf | 3315 | else |
729e4ab9 A |
3316 | ac_cv_prog_cc_c89=no |
3317 | ac_save_CC=$CC | |
3318 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
46f4442e | 3319 | /* end confdefs.h. */ |
729e4ab9 A |
3320 | #include <stdarg.h> |
3321 | #include <stdio.h> | |
b331163b | 3322 | struct stat; |
729e4ab9 A |
3323 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
3324 | struct buf { int x; }; | |
3325 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
3326 | static char *e (p, i) | |
3327 | char **p; | |
3328 | int i; | |
3329 | { | |
3330 | return p[i]; | |
3331 | } | |
3332 | static char *f (char * (*g) (char **, int), char **p, ...) | |
3333 | { | |
3334 | char *s; | |
3335 | va_list v; | |
3336 | va_start (v,p); | |
3337 | s = g (p, va_arg (v,int)); | |
3338 | va_end (v); | |
3339 | return s; | |
3340 | } | |
3341 | ||
3342 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
3343 | function prototypes and stuff, but not '\xHH' hex character constants. | |
3344 | These don't provoke an error unfortunately, instead are silently treated | |
3345 | as 'x'. The following induces an error, until -std is added to get | |
3346 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
3347 | array size at least. It's necessary to write '\x00'==0 to get something | |
3348 | that's true only with -std. */ | |
3349 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
3350 | ||
3351 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | |
3352 | inside strings and character constants. */ | |
3353 | #define FOO(x) 'x' | |
3354 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
3355 | ||
3356 | int test (int i, double x); | |
3357 | struct s1 {int (*f) (int a);}; | |
3358 | struct s2 {int (*f) (double a);}; | |
3359 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
3360 | int argc; | |
3361 | char **argv; | |
46f4442e A |
3362 | int |
3363 | main () | |
3364 | { | |
729e4ab9 | 3365 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
46f4442e A |
3366 | ; |
3367 | return 0; | |
3368 | } | |
3369 | _ACEOF | |
729e4ab9 A |
3370 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
3371 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
3372 | do | |
3373 | CC="$ac_save_CC $ac_arg" | |
3374 | if ac_fn_c_try_compile "$LINENO"; then : | |
3375 | ac_cv_prog_cc_c89=$ac_arg | |
46f4442e | 3376 | fi |
729e4ab9 A |
3377 | rm -f core conftest.err conftest.$ac_objext |
3378 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
3379 | done | |
3380 | rm -f conftest.$ac_ext | |
3381 | CC=$ac_save_CC | |
46f4442e | 3382 | |
729e4ab9 A |
3383 | fi |
3384 | # AC_CACHE_VAL | |
3385 | case "x$ac_cv_prog_cc_c89" in | |
3386 | x) | |
3387 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
3388 | $as_echo "none needed" >&6; } ;; | |
3389 | xno) | |
3390 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
3391 | $as_echo "unsupported" >&6; } ;; | |
3392 | *) | |
3393 | CC="$CC $ac_cv_prog_cc_c89" | |
3394 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
3395 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
3396 | esac | |
3397 | if test "x$ac_cv_prog_cc_c89" != xno; then : | |
46f4442e | 3398 | |
729e4ab9 | 3399 | fi |
46f4442e | 3400 | |
729e4ab9 A |
3401 | ac_ext=c |
3402 | ac_cpp='$CPP $CPPFLAGS' | |
3403 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3404 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3405 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
46f4442e | 3406 | |
51004dcb A |
3407 | # Make sure that we try clang++ first, which provides C++11 support. |
3408 | # The g++ compiler is less likely to support C++11. | |
729e4ab9 A |
3409 | ac_ext=cpp |
3410 | ac_cpp='$CXXCPP $CPPFLAGS' | |
3411 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3412 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3413 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
3414 | if test -z "$CXX"; then | |
3415 | if test -n "$CCC"; then | |
3416 | CXX=$CCC | |
3417 | else | |
3418 | if test -n "$ac_tool_prefix"; then | |
51004dcb | 3419 | for ac_prog in clang++ g++ c++ gpp xlC_r xlC aCC CC cxx cc++ cl.exe icc FCC KCC RCC |
729e4ab9 A |
3420 | do |
3421 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
3422 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
3423 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3424 | $as_echo_n "checking for $ac_word... " >&6; } | |
4388f060 | 3425 | if ${ac_cv_prog_CXX+:} false; then : |
729e4ab9 | 3426 | $as_echo_n "(cached) " >&6 |
46f4442e | 3427 | else |
729e4ab9 A |
3428 | if test -n "$CXX"; then |
3429 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
46f4442e A |
3430 | else |
3431 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3432 | for as_dir in $PATH | |
3433 | do | |
3434 | IFS=$as_save_IFS | |
3435 | test -z "$as_dir" && as_dir=. | |
729e4ab9 | 3436 | for ac_exec_ext in '' $ac_executable_extensions; do |
b331163b | 3437 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
729e4ab9 A |
3438 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
3439 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
46f4442e A |
3440 | break 2 |
3441 | fi | |
3442 | done | |
729e4ab9 A |
3443 | done |
3444 | IFS=$as_save_IFS | |
46f4442e A |
3445 | |
3446 | fi | |
3447 | fi | |
729e4ab9 A |
3448 | CXX=$ac_cv_prog_CXX |
3449 | if test -n "$CXX"; then | |
3450 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 | |
3451 | $as_echo "$CXX" >&6; } | |
46f4442e | 3452 | else |
729e4ab9 A |
3453 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3454 | $as_echo "no" >&6; } | |
46f4442e A |
3455 | fi |
3456 | ||
729e4ab9 A |
3457 | |
3458 | test -n "$CXX" && break | |
3459 | done | |
46f4442e | 3460 | fi |
729e4ab9 A |
3461 | if test -z "$CXX"; then |
3462 | ac_ct_CXX=$CXX | |
51004dcb | 3463 | for ac_prog in clang++ g++ c++ gpp xlC_r xlC aCC CC cxx cc++ cl.exe icc FCC KCC RCC |
729e4ab9 A |
3464 | do |
3465 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3466 | set dummy $ac_prog; ac_word=$2 | |
3467 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3468 | $as_echo_n "checking for $ac_word... " >&6; } | |
4388f060 | 3469 | if ${ac_cv_prog_ac_ct_CXX+:} false; then : |
729e4ab9 | 3470 | $as_echo_n "(cached) " >&6 |
b75a7d8f | 3471 | else |
729e4ab9 A |
3472 | if test -n "$ac_ct_CXX"; then |
3473 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
73c04bcf A |
3474 | else |
3475 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3476 | for as_dir in $PATH | |
3477 | do | |
3478 | IFS=$as_save_IFS | |
3479 | test -z "$as_dir" && as_dir=. | |
729e4ab9 | 3480 | for ac_exec_ext in '' $ac_executable_extensions; do |
b331163b | 3481 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
729e4ab9 A |
3482 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
3483 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
73c04bcf A |
3484 | break 2 |
3485 | fi | |
3486 | done | |
729e4ab9 A |
3487 | done |
3488 | IFS=$as_save_IFS | |
73c04bcf | 3489 | |
73c04bcf A |
3490 | fi |
3491 | fi | |
729e4ab9 A |
3492 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
3493 | if test -n "$ac_ct_CXX"; then | |
3494 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 | |
3495 | $as_echo "$ac_ct_CXX" >&6; } | |
73c04bcf | 3496 | else |
729e4ab9 A |
3497 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3498 | $as_echo "no" >&6; } | |
73c04bcf A |
3499 | fi |
3500 | ||
b75a7d8f | 3501 | |
729e4ab9 | 3502 | test -n "$ac_ct_CXX" && break |
73c04bcf A |
3503 | done |
3504 | ||
729e4ab9 A |
3505 | if test "x$ac_ct_CXX" = x; then |
3506 | CXX="g++" | |
3507 | else | |
3508 | case $cross_compiling:$ac_tool_warned in | |
3509 | yes:) | |
3510 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3511 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3512 | ac_tool_warned=yes ;; | |
b75a7d8f | 3513 | esac |
729e4ab9 A |
3514 | CXX=$ac_ct_CXX |
3515 | fi | |
b75a7d8f | 3516 | fi |
73c04bcf | 3517 | |
729e4ab9 | 3518 | fi |
b75a7d8f | 3519 | fi |
729e4ab9 A |
3520 | # Provide some information about the compiler. |
3521 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 | |
3522 | set X $ac_compile | |
3523 | ac_compiler=$2 | |
3524 | for ac_option in --version -v -V -qversion; do | |
3525 | { { ac_try="$ac_compiler $ac_option >&5" | |
3526 | case "(($ac_try" in | |
3527 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3528 | *) ac_try_echo=$ac_try;; | |
3529 | esac | |
3530 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3531 | $as_echo "$ac_try_echo"; } >&5 | |
3532 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
3533 | ac_status=$? | |
3534 | if test -s conftest.err; then | |
3535 | sed '10a\ | |
3536 | ... rest of stderr output deleted ... | |
3537 | 10q' conftest.err >conftest.er1 | |
3538 | cat conftest.er1 >&5 | |
3539 | fi | |
3540 | rm -f conftest.er1 conftest.err | |
3541 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3542 | test $ac_status = 0; } | |
3543 | done | |
b75a7d8f | 3544 | |
729e4ab9 A |
3545 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 |
3546 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } | |
4388f060 | 3547 | if ${ac_cv_cxx_compiler_gnu+:} false; then : |
729e4ab9 | 3548 | $as_echo_n "(cached) " >&6 |
b75a7d8f | 3549 | else |
729e4ab9 | 3550 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
73c04bcf A |
3551 | /* end confdefs.h. */ |
3552 | ||
3553 | int | |
3554 | main () | |
3555 | { | |
729e4ab9 A |
3556 | #ifndef __GNUC__ |
3557 | choke me | |
3558 | #endif | |
3559 | ||
73c04bcf A |
3560 | ; |
3561 | return 0; | |
3562 | } | |
3563 | _ACEOF | |
729e4ab9 A |
3564 | if ac_fn_cxx_try_compile "$LINENO"; then : |
3565 | ac_compiler_gnu=yes | |
b75a7d8f | 3566 | else |
729e4ab9 | 3567 | ac_compiler_gnu=no |
b75a7d8f | 3568 | fi |
729e4ab9 A |
3569 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3570 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu | |
b75a7d8f | 3571 | |
73c04bcf | 3572 | fi |
729e4ab9 A |
3573 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 |
3574 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } | |
3575 | if test $ac_compiler_gnu = yes; then | |
3576 | GXX=yes | |
b75a7d8f | 3577 | else |
729e4ab9 | 3578 | GXX= |
b75a7d8f | 3579 | fi |
729e4ab9 A |
3580 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
3581 | ac_save_CXXFLAGS=$CXXFLAGS | |
3582 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 | |
3583 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } | |
4388f060 | 3584 | if ${ac_cv_prog_cxx_g+:} false; then : |
729e4ab9 A |
3585 | $as_echo_n "(cached) " >&6 |
3586 | else | |
3587 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag | |
3588 | ac_cxx_werror_flag=yes | |
3589 | ac_cv_prog_cxx_g=no | |
3590 | CXXFLAGS="-g" | |
3591 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3592 | /* end confdefs.h. */ | |
3593 | ||
73c04bcf A |
3594 | int |
3595 | main () | |
3596 | { | |
729e4ab9 | 3597 | |
73c04bcf A |
3598 | ; |
3599 | return 0; | |
3600 | } | |
3601 | _ACEOF | |
729e4ab9 A |
3602 | if ac_fn_cxx_try_compile "$LINENO"; then : |
3603 | ac_cv_prog_cxx_g=yes | |
b75a7d8f | 3604 | else |
729e4ab9 A |
3605 | CXXFLAGS="" |
3606 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
73c04bcf A |
3607 | /* end confdefs.h. */ |
3608 | ||
73c04bcf A |
3609 | int |
3610 | main () | |
3611 | { | |
729e4ab9 | 3612 | |
73c04bcf A |
3613 | ; |
3614 | return 0; | |
3615 | } | |
3616 | _ACEOF | |
729e4ab9 | 3617 | if ac_fn_cxx_try_compile "$LINENO"; then : |
73c04bcf | 3618 | |
729e4ab9 A |
3619 | else |
3620 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
3621 | CXXFLAGS="-g" | |
3622 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
73c04bcf A |
3623 | /* end confdefs.h. */ |
3624 | ||
73c04bcf A |
3625 | int |
3626 | main () | |
3627 | { | |
729e4ab9 | 3628 | |
73c04bcf A |
3629 | ; |
3630 | return 0; | |
3631 | } | |
3632 | _ACEOF | |
729e4ab9 A |
3633 | if ac_fn_cxx_try_compile "$LINENO"; then : |
3634 | ac_cv_prog_cxx_g=yes | |
3635 | fi | |
3636 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3637 | fi | |
3638 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3639 | fi | |
3640 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3641 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
3642 | fi | |
3643 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 | |
3644 | $as_echo "$ac_cv_prog_cxx_g" >&6; } | |
3645 | if test "$ac_test_CXXFLAGS" = set; then | |
3646 | CXXFLAGS=$ac_save_CXXFLAGS | |
3647 | elif test $ac_cv_prog_cxx_g = yes; then | |
3648 | if test "$GXX" = yes; then | |
3649 | CXXFLAGS="-g -O2" | |
3650 | else | |
3651 | CXXFLAGS="-g" | |
3652 | fi | |
b75a7d8f | 3653 | else |
729e4ab9 A |
3654 | if test "$GXX" = yes; then |
3655 | CXXFLAGS="-O2" | |
3656 | else | |
3657 | CXXFLAGS= | |
3658 | fi | |
3659 | fi | |
3660 | ac_ext=c | |
3661 | ac_cpp='$CPP $CPPFLAGS' | |
3662 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3663 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3664 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
73c04bcf | 3665 | |
729e4ab9 | 3666 | |
b331163b A |
3667 | # pkg-config is needed for harfbuzz support |
3668 | ||
3669 | ||
3670 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then | |
3671 | if test -n "$ac_tool_prefix"; then | |
3672 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. | |
3673 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 | |
3674 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3675 | $as_echo_n "checking for $ac_word... " >&6; } | |
3676 | if ${ac_cv_path_PKG_CONFIG+:} false; then : | |
3677 | $as_echo_n "(cached) " >&6 | |
3678 | else | |
3679 | case $PKG_CONFIG in | |
3680 | [\\/]* | ?:[\\/]*) | |
3681 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
3682 | ;; | |
3683 | *) | |
3684 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3685 | for as_dir in $PATH | |
3686 | do | |
3687 | IFS=$as_save_IFS | |
3688 | test -z "$as_dir" && as_dir=. | |
3689 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3690 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3691 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
3692 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3693 | break 2 | |
3694 | fi | |
3695 | done | |
3696 | done | |
3697 | IFS=$as_save_IFS | |
3698 | ||
3699 | ;; | |
3700 | esac | |
3701 | fi | |
3702 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
3703 | if test -n "$PKG_CONFIG"; then | |
3704 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 | |
3705 | $as_echo "$PKG_CONFIG" >&6; } | |
3706 | else | |
3707 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3708 | $as_echo "no" >&6; } | |
3709 | fi | |
3710 | ||
3711 | ||
3712 | fi | |
3713 | if test -z "$ac_cv_path_PKG_CONFIG"; then | |
3714 | ac_pt_PKG_CONFIG=$PKG_CONFIG | |
3715 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
3716 | set dummy pkg-config; ac_word=$2 | |
3717 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3718 | $as_echo_n "checking for $ac_word... " >&6; } | |
3719 | if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : | |
3720 | $as_echo_n "(cached) " >&6 | |
3721 | else | |
3722 | case $ac_pt_PKG_CONFIG in | |
3723 | [\\/]* | ?:[\\/]*) | |
3724 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. | |
3725 | ;; | |
3726 | *) | |
3727 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3728 | for as_dir in $PATH | |
3729 | do | |
3730 | IFS=$as_save_IFS | |
3731 | test -z "$as_dir" && as_dir=. | |
3732 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3733 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3734 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
3735 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3736 | break 2 | |
3737 | fi | |
3738 | done | |
3739 | done | |
3740 | IFS=$as_save_IFS | |
3741 | ||
3742 | ;; | |
3743 | esac | |
3744 | fi | |
3745 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG | |
3746 | if test -n "$ac_pt_PKG_CONFIG"; then | |
3747 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 | |
3748 | $as_echo "$ac_pt_PKG_CONFIG" >&6; } | |
3749 | else | |
3750 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3751 | $as_echo "no" >&6; } | |
3752 | fi | |
3753 | ||
3754 | if test "x$ac_pt_PKG_CONFIG" = x; then | |
3755 | PKG_CONFIG="" | |
3756 | else | |
3757 | case $cross_compiling:$ac_tool_warned in | |
3758 | yes:) | |
3759 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3760 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3761 | ac_tool_warned=yes ;; | |
3762 | esac | |
3763 | PKG_CONFIG=$ac_pt_PKG_CONFIG | |
3764 | fi | |
3765 | else | |
3766 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" | |
3767 | fi | |
3768 | ||
3769 | fi | |
3770 | if test -n "$PKG_CONFIG"; then | |
3771 | _pkg_min_version=0.20 | |
3772 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 | |
3773 | $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } | |
3774 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then | |
3775 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3776 | $as_echo "yes" >&6; } | |
3777 | else | |
3778 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3779 | $as_echo "no" >&6; } | |
3780 | PKG_CONFIG="" | |
3781 | fi | |
3782 | ||
3783 | fi | |
3784 | ||
3785 | pkg_failed=no | |
3786 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ICULEHB" >&5 | |
3787 | $as_echo_n "checking for ICULEHB... " >&6; } | |
3788 | ||
3789 | if test -n "$ICULEHB_CFLAGS"; then | |
3790 | pkg_cv_ICULEHB_CFLAGS="$ICULEHB_CFLAGS" | |
3791 | elif test -n "$PKG_CONFIG"; then | |
3792 | if test -n "$PKG_CONFIG" && \ | |
3793 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"icu-le-hb\""; } >&5 | |
3794 | ($PKG_CONFIG --exists --print-errors "icu-le-hb") 2>&5 | |
3795 | ac_status=$? | |
3796 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3797 | test $ac_status = 0; }; then | |
3798 | pkg_cv_ICULEHB_CFLAGS=`$PKG_CONFIG --cflags "icu-le-hb" 2>/dev/null` | |
3799 | else | |
3800 | pkg_failed=yes | |
3801 | fi | |
3802 | else | |
3803 | pkg_failed=untried | |
3804 | fi | |
3805 | if test -n "$ICULEHB_LIBS"; then | |
3806 | pkg_cv_ICULEHB_LIBS="$ICULEHB_LIBS" | |
3807 | elif test -n "$PKG_CONFIG"; then | |
3808 | if test -n "$PKG_CONFIG" && \ | |
3809 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"icu-le-hb\""; } >&5 | |
3810 | ($PKG_CONFIG --exists --print-errors "icu-le-hb") 2>&5 | |
3811 | ac_status=$? | |
3812 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3813 | test $ac_status = 0; }; then | |
3814 | pkg_cv_ICULEHB_LIBS=`$PKG_CONFIG --libs "icu-le-hb" 2>/dev/null` | |
3815 | else | |
3816 | pkg_failed=yes | |
3817 | fi | |
3818 | else | |
3819 | pkg_failed=untried | |
3820 | fi | |
3821 | ||
3822 | ||
3823 | ||
3824 | if test $pkg_failed = yes; then | |
3825 | ||
3826 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
3827 | _pkg_short_errors_supported=yes | |
3828 | else | |
3829 | _pkg_short_errors_supported=no | |
3830 | fi | |
3831 | if test $_pkg_short_errors_supported = yes; then | |
3832 | ICULEHB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "icu-le-hb" 2>&1` | |
3833 | else | |
3834 | ICULEHB_PKG_ERRORS=`$PKG_CONFIG --print-errors "icu-le-hb" 2>&1` | |
3835 | fi | |
3836 | # Put the nasty error message in config.log where it belongs | |
3837 | echo "$ICULEHB_PKG_ERRORS" >&5 | |
3838 | ||
3839 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3840 | $as_echo "no" >&6; } | |
3841 | : | |
3842 | elif test $pkg_failed = untried; then | |
3843 | : | |
3844 | else | |
3845 | ICULEHB_CFLAGS=$pkg_cv_ICULEHB_CFLAGS | |
3846 | ICULEHB_LIBS=$pkg_cv_ICULEHB_LIBS | |
3847 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3848 | $as_echo "yes" >&6; } | |
3849 | have_icu_le_hb=true | |
3850 | fi | |
3851 | ||
729e4ab9 A |
3852 | # Ensure that if CXXFLAGS/CFLAGS were not set when calling configure, set it correctly based on (enable/disable) debug or release option |
3853 | # The release mode use is the default one for autoconf | |
3854 | if test "$GCC" = yes; then | |
3855 | if test "$CFLAGS" = ""; then | |
3856 | if test "$ENABLE_DEBUG" = 1; then | |
3857 | CFLAGS=-g | |
3858 | fi | |
3859 | if test "$ENABLE_RELEASE" = 1; then | |
3860 | CFLAGS="$CFLAGS -O2" | |
3861 | fi | |
3862 | fi | |
3863 | if test "$CXXFLAGS" = ""; then | |
3864 | if test "$ENABLE_DEBUG" = 1; then | |
3865 | CXXFLAGS=-g | |
3866 | fi | |
3867 | if test "$ENABLE_RELEASE" = 1; then | |
3868 | CXXFLAGS="$CXXFLAGS -O2" | |
3869 | fi | |
3870 | fi | |
b75a7d8f | 3871 | fi |
729e4ab9 A |
3872 | |
3873 | ac_ext=c | |
3874 | ac_cpp='$CPP $CPPFLAGS' | |
3875 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3876 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3877 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3878 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 | |
3879 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | |
3880 | # On Suns, sometimes $CPP names a directory. | |
3881 | if test -n "$CPP" && test -d "$CPP"; then | |
3882 | CPP= | |
b75a7d8f | 3883 | fi |
729e4ab9 | 3884 | if test -z "$CPP"; then |
4388f060 | 3885 | if ${ac_cv_prog_CPP+:} false; then : |
729e4ab9 A |
3886 | $as_echo_n "(cached) " >&6 |
3887 | else | |
3888 | # Double quotes because CPP needs to be expanded | |
3889 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
3890 | do | |
3891 | ac_preproc_ok=false | |
3892 | for ac_c_preproc_warn_flag in '' yes | |
3893 | do | |
3894 | # Use a header file that comes with gcc, so configuring glibc | |
3895 | # with a fresh cross-compiler works. | |
3896 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3897 | # <limits.h> exists even on freestanding compilers. | |
3898 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3899 | # not just through cpp. "Syntax error" is here to catch this case. | |
3900 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3901 | /* end confdefs.h. */ | |
3902 | #ifdef __STDC__ | |
3903 | # include <limits.h> | |
3904 | #else | |
3905 | # include <assert.h> | |
3906 | #endif | |
3907 | Syntax error | |
3908 | _ACEOF | |
3909 | if ac_fn_c_try_cpp "$LINENO"; then : | |
3910 | ||
3911 | else | |
3912 | # Broken: fails on valid input. | |
3913 | continue | |
b75a7d8f | 3914 | fi |
729e4ab9 | 3915 | rm -f conftest.err conftest.i conftest.$ac_ext |
73c04bcf | 3916 | |
729e4ab9 A |
3917 | # OK, works on sane cases. Now check whether nonexistent headers |
3918 | # can be detected and how. | |
3919 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3920 | /* end confdefs.h. */ | |
3921 | #include <ac_nonexistent.h> | |
3922 | _ACEOF | |
3923 | if ac_fn_c_try_cpp "$LINENO"; then : | |
3924 | # Broken: success on invalid input. | |
3925 | continue | |
3926 | else | |
3927 | # Passes both tests. | |
3928 | ac_preproc_ok=: | |
3929 | break | |
3930 | fi | |
3931 | rm -f conftest.err conftest.i conftest.$ac_ext | |
73c04bcf | 3932 | |
729e4ab9 A |
3933 | done |
3934 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3935 | rm -f conftest.i conftest.err conftest.$ac_ext | |
3936 | if $ac_preproc_ok; then : | |
3937 | break | |
b75a7d8f A |
3938 | fi |
3939 | ||
729e4ab9 A |
3940 | done |
3941 | ac_cv_prog_CPP=$CPP | |
73c04bcf | 3942 | |
729e4ab9 A |
3943 | fi |
3944 | CPP=$ac_cv_prog_CPP | |
73c04bcf | 3945 | else |
729e4ab9 A |
3946 | ac_cv_prog_CPP=$CPP |
3947 | fi | |
3948 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 | |
3949 | $as_echo "$CPP" >&6; } | |
3950 | ac_preproc_ok=false | |
3951 | for ac_c_preproc_warn_flag in '' yes | |
3952 | do | |
3953 | # Use a header file that comes with gcc, so configuring glibc | |
3954 | # with a fresh cross-compiler works. | |
3955 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3956 | # <limits.h> exists even on freestanding compilers. | |
3957 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3958 | # not just through cpp. "Syntax error" is here to catch this case. | |
3959 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
73c04bcf | 3960 | /* end confdefs.h. */ |
729e4ab9 A |
3961 | #ifdef __STDC__ |
3962 | # include <limits.h> | |
3963 | #else | |
3964 | # include <assert.h> | |
73c04bcf | 3965 | #endif |
729e4ab9 | 3966 | Syntax error |
73c04bcf | 3967 | _ACEOF |
729e4ab9 A |
3968 | if ac_fn_c_try_cpp "$LINENO"; then : |
3969 | ||
73c04bcf | 3970 | else |
729e4ab9 A |
3971 | # Broken: fails on valid input. |
3972 | continue | |
3973 | fi | |
3974 | rm -f conftest.err conftest.i conftest.$ac_ext | |
3975 | ||
3976 | # OK, works on sane cases. Now check whether nonexistent headers | |
3977 | # can be detected and how. | |
3978 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3979 | /* end confdefs.h. */ | |
3980 | #include <ac_nonexistent.h> | |
3981 | _ACEOF | |
3982 | if ac_fn_c_try_cpp "$LINENO"; then : | |
3983 | # Broken: success on invalid input. | |
3984 | continue | |
3985 | else | |
3986 | # Passes both tests. | |
3987 | ac_preproc_ok=: | |
3988 | break | |
3989 | fi | |
3990 | rm -f conftest.err conftest.i conftest.$ac_ext | |
3991 | ||
3992 | done | |
3993 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3994 | rm -f conftest.i conftest.err conftest.$ac_ext | |
3995 | if $ac_preproc_ok; then : | |
3996 | ||
3997 | else | |
3998 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3999 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4000 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check | |
4001 | See \`config.log' for more details" "$LINENO" 5; } | |
4002 | fi | |
4003 | ||
4004 | ac_ext=c | |
4005 | ac_cpp='$CPP $CPPFLAGS' | |
4006 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4007 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4008 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4009 | ||
4010 | ||
4011 | # Find a good install program. We prefer a C program (faster), | |
4012 | # so one script is as good as another. But avoid the broken or | |
4013 | # incompatible versions: | |
4014 | # SysV /etc/install, /usr/sbin/install | |
4015 | # SunOS /usr/etc/install | |
4016 | # IRIX /sbin/install | |
4017 | # AIX /bin/install | |
4018 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
4019 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
4020 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
4021 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
4022 | # OS/2's system install, which has a completely different semantic | |
4023 | # ./install, which can be erroneously created by make from ./install.sh. | |
4024 | # Reject install programs that cannot install multiple files. | |
4025 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 | |
4026 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
4027 | if test -z "$INSTALL"; then | |
4388f060 | 4028 | if ${ac_cv_path_install+:} false; then : |
729e4ab9 A |
4029 | $as_echo_n "(cached) " >&6 |
4030 | else | |
4031 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4032 | for as_dir in $PATH | |
4033 | do | |
4034 | IFS=$as_save_IFS | |
4035 | test -z "$as_dir" && as_dir=. | |
4036 | # Account for people who put trailing slashes in PATH elements. | |
4037 | case $as_dir/ in #(( | |
4038 | ./ | .// | /[cC]/* | \ | |
4039 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
4040 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ | |
4041 | /usr/ucb/* ) ;; | |
4042 | *) | |
4043 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
4044 | # Don't use installbsd from OSF since it installs stuff as root | |
4045 | # by default. | |
4046 | for ac_prog in ginstall scoinst install; do | |
4047 | for ac_exec_ext in '' $ac_executable_extensions; do | |
b331163b | 4048 | if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
729e4ab9 A |
4049 | if test $ac_prog = install && |
4050 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
4051 | # AIX install. It has an incompatible calling convention. | |
4052 | : | |
4053 | elif test $ac_prog = install && | |
4054 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
4055 | # program-specific install script used by HP pwplus--don't use. | |
4056 | : | |
4057 | else | |
4058 | rm -rf conftest.one conftest.two conftest.dir | |
4059 | echo one > conftest.one | |
4060 | echo two > conftest.two | |
4061 | mkdir conftest.dir | |
4062 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
4063 | test -s conftest.one && test -s conftest.two && | |
4064 | test -s conftest.dir/conftest.one && | |
4065 | test -s conftest.dir/conftest.two | |
4066 | then | |
4067 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
4068 | break 3 | |
4069 | fi | |
4070 | fi | |
4071 | fi | |
4072 | done | |
4073 | done | |
4074 | ;; | |
4075 | esac | |
4076 | ||
4077 | done | |
4078 | IFS=$as_save_IFS | |
4079 | ||
4080 | rm -rf conftest.one conftest.two conftest.dir | |
73c04bcf | 4081 | |
73c04bcf | 4082 | fi |
729e4ab9 A |
4083 | if test "${ac_cv_path_install+set}" = set; then |
4084 | INSTALL=$ac_cv_path_install | |
4085 | else | |
4086 | # As a last resort, use the slow shell script. Don't cache a | |
4087 | # value for INSTALL within a source directory, because that will | |
4088 | # break other packages using the cache if that directory is | |
4089 | # removed, or if the value is a relative name. | |
4090 | INSTALL=$ac_install_sh | |
4091 | fi | |
73c04bcf | 4092 | fi |
729e4ab9 A |
4093 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
4094 | $as_echo "$INSTALL" >&6; } | |
73c04bcf | 4095 | |
729e4ab9 A |
4096 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
4097 | # It thinks the first close brace ends the variable substitution. | |
4098 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
73c04bcf | 4099 | |
729e4ab9 | 4100 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
73c04bcf | 4101 | |
729e4ab9 | 4102 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
73c04bcf | 4103 | |
73c04bcf | 4104 | |
73c04bcf | 4105 | |
73c04bcf | 4106 | |
729e4ab9 A |
4107 | ac_ext=cpp |
4108 | ac_cpp='$CXXCPP $CPPFLAGS' | |
4109 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4110 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4111 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
73c04bcf | 4112 | |
729e4ab9 A |
4113 | |
4114 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4115 | /* end confdefs.h. */ | |
73c04bcf A |
4116 | |
4117 | int | |
4118 | main () | |
4119 | { | |
729e4ab9 | 4120 | |
73c04bcf A |
4121 | ; |
4122 | return 0; | |
4123 | } | |
4124 | _ACEOF | |
729e4ab9 | 4125 | if ac_fn_cxx_try_link "$LINENO"; then : |
73c04bcf | 4126 | |
73c04bcf | 4127 | fi |
729e4ab9 A |
4128 | rm -f core conftest.err conftest.$ac_objext \ |
4129 | conftest$ac_exeext conftest.$ac_ext | |
4130 | ac_ext=c | |
4131 | ac_cpp='$CPP $CPPFLAGS' | |
4132 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4133 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4134 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
73c04bcf A |
4135 | |
4136 | ||
729e4ab9 A |
4137 | # make sure install is relative to srcdir - if a script |
4138 | if test "$srcdir" = "."; then | |
4139 | # If srcdir isn't just ., then (srcdir) is already prepended. | |
4140 | if test "${ac_install_sh}" = "${INSTALL}"; then | |
4141 | INSTALL="\\\$(top_srcdir)/${ac_install_sh}" | |
73c04bcf | 4142 | fi |
73c04bcf A |
4143 | fi |
4144 | ||
729e4ab9 A |
4145 | #AC_CHECK_PROG(AUTOCONF, autoconf, autoconf, true) |
4146 | #AC_CHECK_PROG(STRIP, strip, strip, true) | |
73c04bcf | 4147 | |
729e4ab9 A |
4148 | # Check for the platform make |
4149 | for ac_prog in gmake gnumake | |
4150 | do | |
4151 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4152 | set dummy $ac_prog; ac_word=$2 | |
4153 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4154 | $as_echo_n "checking for $ac_word... " >&6; } | |
4388f060 | 4155 | if ${ac_cv_path_U_MAKE+:} false; then : |
729e4ab9 A |
4156 | $as_echo_n "(cached) " >&6 |
4157 | else | |
4158 | case $U_MAKE in | |
4159 | [\\/]* | ?:[\\/]*) | |
4160 | ac_cv_path_U_MAKE="$U_MAKE" # Let the user override the test with a path. | |
4161 | ;; | |
4162 | *) | |
4163 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4164 | for as_dir in $PATH | |
4165 | do | |
4166 | IFS=$as_save_IFS | |
4167 | test -z "$as_dir" && as_dir=. | |
4168 | for ac_exec_ext in '' $ac_executable_extensions; do | |
b331163b | 4169 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
729e4ab9 A |
4170 | ac_cv_path_U_MAKE="$as_dir/$ac_word$ac_exec_ext" |
4171 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4172 | break 2 | |
4173 | fi | |
4174 | done | |
4175 | done | |
4176 | IFS=$as_save_IFS | |
73c04bcf | 4177 | |
729e4ab9 A |
4178 | ;; |
4179 | esac | |
4180 | fi | |
4181 | U_MAKE=$ac_cv_path_U_MAKE | |
4182 | if test -n "$U_MAKE"; then | |
4183 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $U_MAKE" >&5 | |
4184 | $as_echo "$U_MAKE" >&6; } | |
4185 | else | |
4186 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4187 | $as_echo "no" >&6; } | |
4188 | fi | |
46f4442e A |
4189 | |
4190 | ||
729e4ab9 A |
4191 | test -n "$U_MAKE" && break |
4192 | done | |
4193 | test -n "$U_MAKE" || U_MAKE="make" | |
73c04bcf | 4194 | |
73c04bcf | 4195 | |
73c04bcf | 4196 | |
73c04bcf | 4197 | |
73c04bcf | 4198 | |
729e4ab9 A |
4199 | # Check whether --with-cross-build was given. |
4200 | if test "${with_cross_build+set}" = set; then : | |
4201 | withval=$with_cross_build; cross_buildroot="${withval}" | |
4202 | else | |
4203 | cross_buildroot="" | |
73c04bcf A |
4204 | fi |
4205 | ||
4206 | ||
729e4ab9 A |
4207 | if test "X$cross_buildroot" = "X"; then |
4208 | if test "$cross_compiling" = "yes"; then | |
4209 | 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 | |
4210 | fi | |
4211 | else | |
4212 | if test -f "${cross_buildroot}/config/icucross.mk"; then | |
4213 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using cross buildroot: $cross_buildroot" >&5 | |
4214 | $as_echo "Using cross buildroot: $cross_buildroot" >&6; } | |
46f4442e | 4215 | else |
729e4ab9 A |
4216 | if test -d "${cross_buildroot}"; then |
4217 | as_fn_error $? "${cross_buildroot}/config/icucross.mk not found. Please build ICU in ${cross_buildroot} first." "$LINENO" 5 | |
4218 | else | |
4219 | as_fn_error $? "No such directory ${cross_buildroot} supplied as the argument to --with-cross-build. Use an absolute path." "$LINENO" 5 | |
4220 | fi | |
4221 | fi | |
4222 | fi | |
73c04bcf A |
4223 | |
4224 | ||
729e4ab9 A |
4225 | # Check for doxygen to generate documentation |
4226 | # Extract the first word of "doxygen", so it can be a program name with args. | |
4227 | set dummy doxygen; ac_word=$2 | |
4228 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4229 | $as_echo_n "checking for $ac_word... " >&6; } | |
4388f060 | 4230 | if ${ac_cv_path_DOXYGEN+:} false; then : |
729e4ab9 | 4231 | $as_echo_n "(cached) " >&6 |
73c04bcf | 4232 | else |
729e4ab9 A |
4233 | case $DOXYGEN in |
4234 | [\\/]* | ?:[\\/]*) | |
4235 | ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path. | |
4236 | ;; | |
4237 | *) | |
4238 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4239 | as_dummy="$PATH:/usr/local/bin:/usr/bin" | |
4240 | for as_dir in $as_dummy | |
73c04bcf | 4241 | do |
729e4ab9 A |
4242 | IFS=$as_save_IFS |
4243 | test -z "$as_dir" && as_dir=. | |
4244 | for ac_exec_ext in '' $ac_executable_extensions; do | |
b331163b | 4245 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
729e4ab9 A |
4246 | ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext" |
4247 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4248 | break 2 | |
73c04bcf | 4249 | fi |
729e4ab9 A |
4250 | done |
4251 | done | |
4252 | IFS=$as_save_IFS | |
4253 | ||
4254 | ;; | |
4255 | esac | |
73c04bcf | 4256 | fi |
729e4ab9 A |
4257 | DOXYGEN=$ac_cv_path_DOXYGEN |
4258 | if test -n "$DOXYGEN"; then | |
4259 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5 | |
4260 | $as_echo "$DOXYGEN" >&6; } | |
73c04bcf | 4261 | else |
729e4ab9 A |
4262 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4263 | $as_echo "no" >&6; } | |
4264 | fi | |
4265 | ||
4266 | ||
4267 | ||
4268 | # Check that the linker is usable | |
4269 | ||
4270 | case "${host}" in | |
4271 | *-*-cygwin*|*-*-mingw*) | |
4272 | if test "$GCC" != yes && test -n "`link --version 2>&1 | grep 'GNU coreutils'`"; then | |
4273 | as_fn_error $? "link.exe is not a valid linker. Your PATH is incorrect. | |
4274 | Please follow the directions in ICU's readme." "$LINENO" 5 | |
4275 | fi;; | |
4276 | *);; | |
4277 | esac | |
4278 | ||
4279 | # Determine the executable suffix | |
4280 | # We don't use AC_EXEEXT because some compilers output separate debugging | |
4281 | # files, which confuses the AC_EXEEXT macro. | |
4282 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking checking for executable suffix" >&5 | |
4283 | $as_echo_n "checking checking for executable suffix... " >&6; } | |
4284 | case "${host}" in | |
4285 | *-*-cygwin*|*-*-mingw*) EXEEXT=.exe ;; | |
4286 | *) EXEEXT="" ;; | |
4287 | esac | |
4288 | ac_exeext=$EXEEXT | |
4289 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXEEXT" >&5 | |
4290 | $as_echo "$EXEEXT" >&6; } | |
73c04bcf | 4291 | |
73c04bcf | 4292 | |
729e4ab9 A |
4293 | # Determine how strict we want to be when compiling |
4294 | ||
4295 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strict compiling is on" >&5 | |
4296 | $as_echo_n "checking whether strict compiling is on... " >&6; } | |
4297 | # Check whether --enable-strict was given. | |
4298 | if test "${enable_strict+set}" = set; then : | |
4299 | enableval=$enable_strict; | |
4300 | if test "$enableval" = no | |
4301 | then | |
4302 | ac_use_strict_options=no | |
4303 | else | |
4304 | ac_use_strict_options=yes | |
4305 | fi | |
4306 | ||
73c04bcf | 4307 | else |
729e4ab9 | 4308 | ac_use_strict_options=yes |
73c04bcf | 4309 | fi |
73c04bcf | 4310 | |
729e4ab9 A |
4311 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_use_strict_options" >&5 |
4312 | $as_echo "$ac_use_strict_options" >&6; } | |
73c04bcf | 4313 | |
729e4ab9 A |
4314 | if test "$ac_use_strict_options" = yes |
4315 | then | |
4316 | if test "$GCC" = yes | |
4317 | then | |
57a6839d | 4318 | case "${host}" in |
57a6839d A |
4319 | *) |
4320 | # Do not use -ansi. It limits us to C90, and it breaks some platforms. | |
4321 | # We use -std=c99 to disable the gnu99 defaults and its associated warnings | |
4322 | CFLAGS="$CFLAGS -std=c99" | |
4323 | ;; | |
4324 | esac | |
4325 | ||
4326 | CFLAGS="$CFLAGS -Wall -pedantic -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings" | |
729e4ab9 A |
4327 | else |
4328 | case "${host}" in | |
4329 | *-*-cygwin) | |
4330 | if test "`$CC /help 2>&1 | head -c9`" = "Microsoft" | |
4331 | then | |
4332 | CFLAGS="$CFLAGS /W4" | |
b331163b A |
4333 | fi ;; |
4334 | *-*-mingw*) | |
4335 | CFLAGS="$CFLAGS -W4" ;; | |
729e4ab9 A |
4336 | esac |
4337 | fi | |
4338 | if test "$GXX" = yes | |
4339 | then | |
51004dcb | 4340 | CXXFLAGS="$CXXFLAGS -W -Wall -pedantic -Wpointer-arith -Wwrite-strings -Wno-long-long" |
729e4ab9 A |
4341 | else |
4342 | case "${host}" in | |
4343 | *-*-cygwin) | |
4344 | if test "`$CXX /help 2>&1 | head -c9`" = "Microsoft" | |
4345 | then | |
4346 | CXXFLAGS="$CXXFLAGS /W4" | |
b331163b A |
4347 | fi ;; |
4348 | *-*-mingw*) | |
4349 | CFLAGS="$CFLAGS -W4" ;; | |
729e4ab9 A |
4350 | esac |
4351 | fi | |
4352 | fi | |
73c04bcf | 4353 | |
73c04bcf | 4354 | |
729e4ab9 A |
4355 | # Check if we can build and use 64-bit libraries |
4356 | ||
4357 | ||
4358 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 | |
4359 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | |
4388f060 | 4360 | if ${ac_cv_path_GREP+:} false; then : |
729e4ab9 | 4361 | $as_echo_n "(cached) " >&6 |
73c04bcf | 4362 | else |
729e4ab9 A |
4363 | if test -z "$GREP"; then |
4364 | ac_path_GREP_found=false | |
4365 | # Loop through the user's path and test for each of PROGNAME-LIST | |
4366 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4367 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
73c04bcf | 4368 | do |
729e4ab9 A |
4369 | IFS=$as_save_IFS |
4370 | test -z "$as_dir" && as_dir=. | |
4371 | for ac_prog in grep ggrep; do | |
4372 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4373 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
b331163b | 4374 | as_fn_executable_p "$ac_path_GREP" || continue |
729e4ab9 A |
4375 | # Check for GNU ac_path_GREP and select it if it is found. |
4376 | # Check for GNU $ac_path_GREP | |
4377 | case `"$ac_path_GREP" --version 2>&1` in | |
4378 | *GNU*) | |
4379 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
4380 | *) | |
4381 | ac_count=0 | |
4382 | $as_echo_n 0123456789 >"conftest.in" | |
4383 | while : | |
4384 | do | |
4385 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4386 | mv "conftest.tmp" "conftest.in" | |
4387 | cp "conftest.in" "conftest.nl" | |
4388 | $as_echo 'GREP' >> "conftest.nl" | |
4389 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4390 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4391 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
4392 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
4393 | # Best one so far, save it but keep looking for a better one | |
4394 | ac_cv_path_GREP="$ac_path_GREP" | |
4395 | ac_path_GREP_max=$ac_count | |
4396 | fi | |
4397 | # 10*(2^10) chars as input seems more than enough | |
4398 | test $ac_count -gt 10 && break | |
4399 | done | |
4400 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4401 | esac | |
4402 | ||
4403 | $ac_path_GREP_found && break 3 | |
4404 | done | |
4405 | done | |
4406 | done | |
4407 | IFS=$as_save_IFS | |
4408 | if test -z "$ac_cv_path_GREP"; then | |
4409 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
73c04bcf A |
4410 | fi |
4411 | else | |
729e4ab9 | 4412 | ac_cv_path_GREP=$GREP |
73c04bcf | 4413 | fi |
73c04bcf | 4414 | |
73c04bcf | 4415 | fi |
729e4ab9 A |
4416 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 |
4417 | $as_echo "$ac_cv_path_GREP" >&6; } | |
4418 | GREP="$ac_cv_path_GREP" | |
73c04bcf | 4419 | |
73c04bcf | 4420 | |
729e4ab9 A |
4421 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
4422 | $as_echo_n "checking for egrep... " >&6; } | |
4388f060 | 4423 | if ${ac_cv_path_EGREP+:} false; then : |
729e4ab9 A |
4424 | $as_echo_n "(cached) " >&6 |
4425 | else | |
4426 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | |
4427 | then ac_cv_path_EGREP="$GREP -E" | |
4428 | else | |
4429 | if test -z "$EGREP"; then | |
4430 | ac_path_EGREP_found=false | |
4431 | # Loop through the user's path and test for each of PROGNAME-LIST | |
4432 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4433 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
4434 | do | |
4435 | IFS=$as_save_IFS | |
4436 | test -z "$as_dir" && as_dir=. | |
4437 | for ac_prog in egrep; do | |
4438 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4439 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
b331163b | 4440 | as_fn_executable_p "$ac_path_EGREP" || continue |
729e4ab9 A |
4441 | # Check for GNU ac_path_EGREP and select it if it is found. |
4442 | # Check for GNU $ac_path_EGREP | |
4443 | case `"$ac_path_EGREP" --version 2>&1` in | |
4444 | *GNU*) | |
4445 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
4446 | *) | |
4447 | ac_count=0 | |
4448 | $as_echo_n 0123456789 >"conftest.in" | |
4449 | while : | |
4450 | do | |
4451 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4452 | mv "conftest.tmp" "conftest.in" | |
4453 | cp "conftest.in" "conftest.nl" | |
4454 | $as_echo 'EGREP' >> "conftest.nl" | |
4455 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4456 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4457 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
4458 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
4459 | # Best one so far, save it but keep looking for a better one | |
4460 | ac_cv_path_EGREP="$ac_path_EGREP" | |
4461 | ac_path_EGREP_max=$ac_count | |
4462 | fi | |
4463 | # 10*(2^10) chars as input seems more than enough | |
4464 | test $ac_count -gt 10 && break | |
4465 | done | |
4466 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4467 | esac | |
73c04bcf | 4468 | |
729e4ab9 A |
4469 | $ac_path_EGREP_found && break 3 |
4470 | done | |
4471 | done | |
4472 | done | |
4473 | IFS=$as_save_IFS | |
4474 | if test -z "$ac_cv_path_EGREP"; then | |
4475 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
4476 | fi | |
73c04bcf | 4477 | else |
729e4ab9 | 4478 | ac_cv_path_EGREP=$EGREP |
73c04bcf A |
4479 | fi |
4480 | ||
729e4ab9 | 4481 | fi |
73c04bcf | 4482 | fi |
729e4ab9 A |
4483 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
4484 | $as_echo "$ac_cv_path_EGREP" >&6; } | |
4485 | EGREP="$ac_cv_path_EGREP" | |
73c04bcf A |
4486 | |
4487 | ||
729e4ab9 A |
4488 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
4489 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
4388f060 | 4490 | if ${ac_cv_header_stdc+:} false; then : |
729e4ab9 | 4491 | $as_echo_n "(cached) " >&6 |
73c04bcf | 4492 | else |
729e4ab9 | 4493 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
73c04bcf A |
4494 | /* end confdefs.h. */ |
4495 | #include <stdlib.h> | |
4496 | #include <stdarg.h> | |
4497 | #include <string.h> | |
4498 | #include <float.h> | |
4499 | ||
4500 | int | |
4501 | main () | |
4502 | { | |
4503 | ||
4504 | ; | |
4505 | return 0; | |
4506 | } | |
4507 | _ACEOF | |
729e4ab9 | 4508 | if ac_fn_c_try_compile "$LINENO"; then : |
73c04bcf A |
4509 | ac_cv_header_stdc=yes |
4510 | else | |
729e4ab9 | 4511 | ac_cv_header_stdc=no |
73c04bcf | 4512 | fi |
729e4ab9 | 4513 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
73c04bcf A |
4514 | |
4515 | if test $ac_cv_header_stdc = yes; then | |
4516 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
729e4ab9 | 4517 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
73c04bcf A |
4518 | /* end confdefs.h. */ |
4519 | #include <string.h> | |
4520 | ||
4521 | _ACEOF | |
4522 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
729e4ab9 A |
4523 | $EGREP "memchr" >/dev/null 2>&1; then : |
4524 | ||
73c04bcf A |
4525 | else |
4526 | ac_cv_header_stdc=no | |
b75a7d8f A |
4527 | fi |
4528 | rm -f conftest* | |
b75a7d8f A |
4529 | |
4530 | fi | |
b75a7d8f | 4531 | |
73c04bcf A |
4532 | if test $ac_cv_header_stdc = yes; then |
4533 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
729e4ab9 | 4534 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
73c04bcf A |
4535 | /* end confdefs.h. */ |
4536 | #include <stdlib.h> | |
b75a7d8f | 4537 | |
73c04bcf A |
4538 | _ACEOF |
4539 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
729e4ab9 A |
4540 | $EGREP "free" >/dev/null 2>&1; then : |
4541 | ||
b75a7d8f | 4542 | else |
73c04bcf | 4543 | ac_cv_header_stdc=no |
b75a7d8f | 4544 | fi |
73c04bcf | 4545 | rm -f conftest* |
b75a7d8f | 4546 | |
73c04bcf | 4547 | fi |
b75a7d8f | 4548 | |
73c04bcf A |
4549 | if test $ac_cv_header_stdc = yes; then |
4550 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
729e4ab9 | 4551 | if test "$cross_compiling" = yes; then : |
73c04bcf | 4552 | : |
b75a7d8f | 4553 | else |
729e4ab9 | 4554 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
73c04bcf A |
4555 | /* end confdefs.h. */ |
4556 | #include <ctype.h> | |
729e4ab9 | 4557 | #include <stdlib.h> |
73c04bcf A |
4558 | #if ((' ' & 0x0FF) == 0x020) |
4559 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
4560 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
b75a7d8f | 4561 | #else |
73c04bcf A |
4562 | # define ISLOWER(c) \ |
4563 | (('a' <= (c) && (c) <= 'i') \ | |
4564 | || ('j' <= (c) && (c) <= 'r') \ | |
4565 | || ('s' <= (c) && (c) <= 'z')) | |
4566 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
b75a7d8f A |
4567 | #endif |
4568 | ||
73c04bcf A |
4569 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
4570 | int | |
4571 | main () | |
4572 | { | |
4573 | int i; | |
4574 | for (i = 0; i < 256; i++) | |
4575 | if (XOR (islower (i), ISLOWER (i)) | |
4576 | || toupper (i) != TOUPPER (i)) | |
729e4ab9 A |
4577 | return 2; |
4578 | return 0; | |
73c04bcf A |
4579 | } |
4580 | _ACEOF | |
729e4ab9 | 4581 | if ac_fn_c_try_run "$LINENO"; then : |
73c04bcf | 4582 | |
729e4ab9 A |
4583 | else |
4584 | ac_cv_header_stdc=no | |
73c04bcf | 4585 | fi |
729e4ab9 A |
4586 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
4587 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
b75a7d8f | 4588 | fi |
729e4ab9 | 4589 | |
b75a7d8f | 4590 | fi |
b75a7d8f | 4591 | fi |
729e4ab9 A |
4592 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
4593 | $as_echo "$ac_cv_header_stdc" >&6; } | |
73c04bcf | 4594 | if test $ac_cv_header_stdc = yes; then |
b75a7d8f | 4595 | |
729e4ab9 | 4596 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
b75a7d8f | 4597 | |
b75a7d8f A |
4598 | fi |
4599 | ||
73c04bcf | 4600 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
729e4ab9 A |
4601 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
4602 | inttypes.h stdint.h unistd.h | |
4603 | do : | |
4604 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4605 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
4606 | " | |
4607 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
4608 | cat >>confdefs.h <<_ACEOF | |
4609 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
4610 | _ACEOF | |
b75a7d8f | 4611 | |
729e4ab9 | 4612 | fi |
b75a7d8f | 4613 | |
729e4ab9 | 4614 | done |
b75a7d8f | 4615 | |
b75a7d8f | 4616 | |
b75a7d8f | 4617 | |
729e4ab9 A |
4618 | BITS_REQ=nochange |
4619 | ENABLE_64BIT_LIBS=unknown | |
4620 | ## revisit this for cross-compile. | |
b75a7d8f | 4621 | |
729e4ab9 A |
4622 | # Check whether --enable-64bit-libs was given. |
4623 | if test "${enable_64bit_libs+set}" = set; then : | |
4624 | enableval=$enable_64bit_libs; echo "note, use --with-library-bits instead of --*-64bit-libs" | |
4625 | case "${enableval}" in | |
4626 | no|false|32) with_library_bits=32; ;; | |
4627 | yes|true|64) with_library_bits=64else32 ;; | |
4628 | nochange) with_library_bits=nochange; ;; | |
4629 | *) as_fn_error $? "bad value ${enableval} for '--*-64bit-libs'" "$LINENO" 5 ;; | |
4630 | esac | |
4631 | fi | |
374ca955 A |
4632 | |
4633 | ||
4634 | ||
73c04bcf | 4635 | |
729e4ab9 A |
4636 | # Check whether --with-library-bits was given. |
4637 | if test "${with_library_bits+set}" = set; then : | |
4638 | withval=$with_library_bits; case "${withval}" in | |
4639 | ""|nochange) BITS_REQ=$withval ;; | |
4640 | 32|64|64else32) BITS_REQ=$withval ;; | |
4641 | *) as_fn_error $? "bad value ${withval} for --with-library-bits" "$LINENO" 5 ;; | |
4642 | esac | |
4643 | fi | |
4644 | ||
4645 | ||
4646 | # don't use these for cross compiling | |
4647 | if test "$cross_compiling" = "yes" -a "${BITS_REQ}" != "nochange"; then | |
4648 | 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 | |
4649 | fi | |
4650 | # The cast to long int works around a bug in the HP C Compiler | |
4651 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
4652 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
4653 | # This bug is HP SR number 8606223364. | |
4654 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5 | |
4655 | $as_echo_n "checking size of void *... " >&6; } | |
4388f060 | 4656 | if ${ac_cv_sizeof_void_p+:} false; then : |
729e4ab9 | 4657 | $as_echo_n "(cached) " >&6 |
73c04bcf | 4658 | else |
729e4ab9 | 4659 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then : |
73c04bcf | 4660 | |
729e4ab9 A |
4661 | else |
4662 | if test "$ac_cv_type_void_p" = yes; then | |
4663 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
4664 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4665 | as_fn_error 77 "cannot compute sizeof (void *) | |
4666 | See \`config.log' for more details" "$LINENO" 5; } | |
4667 | else | |
4668 | ac_cv_sizeof_void_p=0 | |
4669 | fi | |
73c04bcf | 4670 | fi |
73c04bcf | 4671 | |
b75a7d8f | 4672 | fi |
729e4ab9 A |
4673 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5 |
4674 | $as_echo "$ac_cv_sizeof_void_p" >&6; } | |
73c04bcf A |
4675 | |
4676 | ||
4677 | ||
729e4ab9 A |
4678 | cat >>confdefs.h <<_ACEOF |
4679 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p | |
73c04bcf | 4680 | _ACEOF |
729e4ab9 A |
4681 | |
4682 | ||
4683 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether runnable 64 bit binaries are built by default" >&5 | |
4684 | $as_echo_n "checking whether runnable 64 bit binaries are built by default... " >&6; } | |
4685 | case $ac_cv_sizeof_void_p in | |
4686 | 8) DEFAULT_64BIT=yes ;; | |
4687 | 4) DEFAULT_64BIT=no ;; | |
4688 | *) DEFAULT_64BIT=unknown | |
4689 | esac | |
4690 | BITS_GOT=unknown | |
4691 | ||
4692 | # 'OK' here means, we can exit any further checking, everything's copa | |
4693 | BITS_OK=yes | |
4694 | ||
4695 | # do we need to check for buildable/runnable 32 or 64 bit? | |
4696 | BITS_CHECK_32=no | |
4697 | BITS_CHECK_64=no | |
4698 | ||
4699 | # later, can we run the 32/64 bit binaries so made? | |
4700 | BITS_RUN_32=no | |
4701 | BITS_RUN_64=no | |
4702 | ||
4703 | if test "$DEFAULT_64BIT" = "yes"; then | |
4704 | # we get 64 bits by default. | |
4705 | BITS_GOT=64 | |
4706 | case "$BITS_REQ" in | |
4707 | 32) | |
4708 | # need to look for 32 bit support. | |
4709 | BITS_CHECK_32=yes | |
4710 | # not copa. | |
4711 | BITS_OK=no;; | |
4712 | # everyone else is happy. | |
4713 | nochange) ;; | |
4714 | *) ;; | |
4715 | esac | |
4716 | elif test "$DEFAULT_64BIT" = "no"; then | |
4717 | # not 64 bit by default. | |
4718 | BITS_GOT=32 | |
4719 | case "$BITS_REQ" in | |
4720 | 64|64else32) | |
4721 | BITS_CHECK_64=yes | |
4722 | #BITS_CHECK_32=yes | |
4723 | BITS_OK=no;; | |
4724 | nochange) ;; | |
4725 | *) ;; | |
4726 | esac | |
4727 | elif test "$DEFAULT_64BIT" = "unknown"; then | |
4728 | # cross compiling. | |
4729 | BITS_GOT=unknown | |
4730 | case "$BITS_REQ" in | |
4731 | 64|64else32) BITS_OK=no | |
4732 | BITS_CHECK_32=yes | |
4733 | BITS_CHECK_64=yes ;; | |
4734 | 32) BITS_OK=no;; | |
4735 | nochange) ;; | |
4736 | *) ;; | |
4737 | esac | |
4738 | fi | |
4739 | ||
4740 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEFAULT_64BIT" >&5 | |
4741 | $as_echo "$DEFAULT_64BIT" >&6; }; | |
4742 | ||
4743 | if test "$BITS_OK" != "yes"; then | |
4744 | # not copa. back these up. | |
4745 | CFLAGS_OLD="${CFLAGS}" | |
4746 | CXXFLAGS_OLD="${CXXFLAGS}" | |
4747 | LDFLAGS_OLD="${LDFLAGS}" | |
4748 | ARFLAGS_OLD="${ARFLAGS}" | |
4749 | ||
4750 | CFLAGS_32="${CFLAGS}" | |
4751 | CXXFLAGS_32="${CXXFLAGS}" | |
4752 | LDFLAGS_32="${LDFLAGS}" | |
4753 | ARFLAGS_32="${ARFLAGS}" | |
4754 | ||
4755 | CFLAGS_64="${CFLAGS}" | |
4756 | CXXFLAGS_64="${CXXFLAGS}" | |
4757 | LDFLAGS_64="${LDFLAGS}" | |
4758 | ARFLAGS_64="${ARFLAGS}" | |
4759 | ||
4760 | CAN_BUILD_64=unknown | |
4761 | CAN_BUILD_32=unknown | |
4762 | # These results can't be cached because is sets compiler flags. | |
4763 | if test "$BITS_CHECK_64" = "yes"; then | |
4764 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to build 64-bit executables" >&5 | |
4765 | $as_echo_n "checking how to build 64-bit executables... " >&6; } | |
4766 | CAN_BUILD_64=no | |
4767 | #### | |
4768 | # Find out if we think we can *build* for 64 bit. Doesn't check whether we can run it. | |
4769 | # Note, we don't have to actually check if the options work- we'll try them before using them. | |
4770 | # So, only try actually testing the options, if you are trying to decide between multiple options. | |
4771 | # On exit from the following clauses: | |
4772 | # if CAN_BUILD_64=yes: | |
4773 | # *FLAGS are assumed to contain the right settings for 64bit | |
4774 | # else if CAN_BUILD_64=no: (default) | |
4775 | # *FLAGS are assumed to be trashed, and will be reset from *FLAGS_OLD | |
4776 | ||
4777 | if test "$GCC" = yes; then | |
4778 | CFLAGS="${CFLAGS} -m64" | |
4779 | CXXFLAGS="${CXXFLAGS} -m64" | |
4780 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
73c04bcf | 4781 | /* end confdefs.h. */ |
729e4ab9 | 4782 | int main(void) {return (sizeof(void*)*8==64)?0:1;} |
73c04bcf | 4783 | _ACEOF |
729e4ab9 A |
4784 | if ac_fn_c_try_compile "$LINENO"; then : |
4785 | CAN_BUILD_64=yes | |
73c04bcf | 4786 | else |
729e4ab9 | 4787 | CAN_BUILD_64=no |
73c04bcf | 4788 | fi |
729e4ab9 A |
4789 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4790 | else | |
4791 | case "${host}" in | |
4792 | sparc*-*-solaris*) | |
4793 | # 1. try -m64 | |
4794 | CFLAGS="${CFLAGS} -m64" | |
4795 | CXXFLAGS="${CXXFLAGS} -m64" | |
4388f060 A |
4796 | if test "$cross_compiling" = yes; then : |
4797 | CAN_BUILD_64=unknown | |
4798 | else | |
4799 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
729e4ab9 A |
4800 | /* end confdefs.h. */ |
4801 | int main(void) {return (sizeof(void*)*8==64)?0:1;} | |
4802 | _ACEOF | |
4388f060 | 4803 | if ac_fn_c_try_run "$LINENO"; then : |
729e4ab9 A |
4804 | CAN_BUILD_64=yes |
4805 | else | |
4806 | CAN_BUILD_64=no | |
4807 | fi | |
4388f060 A |
4808 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
4809 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
4810 | fi | |
4811 | ||
729e4ab9 A |
4812 | if test "$CAN_BUILD_64" != yes; then |
4813 | # Nope. back out changes. | |
4814 | CFLAGS="${CFLAGS_OLD}" | |
b331163b | 4815 | CXXFLAGS="${CXXFLAGS_OLD}" |
729e4ab9 A |
4816 | # 2. try xarch=v9 [deprecated] |
4817 | ## TODO: cross compile: the following won't work. | |
4818 | SPARCV9=`isainfo -n 2>&1 | grep sparcv9` | |
4819 | SOL64=`$CXX -xarch=v9 2>&1 && $CC -xarch=v9 2>&1 | grep -v usage:` | |
4820 | # "Warning: -xarch=v9 is deprecated, use -m64 to create 64-bit programs" | |
4821 | if test -z "$SOL64" && test -n "$SPARCV9"; then | |
4822 | CFLAGS="${CFLAGS} -xtarget=ultra -xarch=v9" | |
4823 | CXXFLAGS="${CXXFLAGS} -xtarget=ultra -xarch=v9" | |
4824 | LDFLAGS="${LDFLAGS} -xtarget=ultra -xarch=v9" | |
4825 | CAN_BUILD_64=yes | |
4826 | fi | |
4827 | fi | |
4828 | ;; | |
4829 | i386-*-solaris*) | |
4830 | # 1. try -m64 | |
4831 | CFLAGS="${CFLAGS} -m64" | |
4832 | CXXFLAGS="${CXXFLAGS} -m64" | |
4388f060 A |
4833 | if test "$cross_compiling" = yes; then : |
4834 | CAN_BUILD_64=unknown | |
4835 | else | |
4836 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
729e4ab9 A |
4837 | /* end confdefs.h. */ |
4838 | int main(void) {return (sizeof(void*)*8==64)?0:1;} | |
4839 | _ACEOF | |
4388f060 | 4840 | if ac_fn_c_try_run "$LINENO"; then : |
729e4ab9 A |
4841 | CAN_BUILD_64=yes |
4842 | else | |
4843 | CAN_BUILD_64=no | |
4844 | fi | |
4388f060 A |
4845 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
4846 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
4847 | fi | |
4848 | ||
729e4ab9 A |
4849 | if test "$CAN_BUILD_64" != yes; then |
4850 | # Nope. back out changes. | |
4851 | CFLAGS="${CFLAGS_OLD}" | |
4852 | CXXFLAGS="${CXXFLAGS_OLD}" | |
4853 | # 2. try the older compiler option | |
4854 | ## TODO: cross compile problem | |
4388f060 | 4855 | AMD64=`isainfo -n 2>&1 | grep amd64` |
729e4ab9 A |
4856 | SOL64=`$CXX -xtarget=generic64 2>&1 && $CC -xtarget=generic64 2>&1 | grep -v usage:` |
4857 | if test -z "$SOL64" && test -n "$AMD64"; then | |
4858 | CFLAGS="${CFLAGS} -xtarget=generic64" | |
4859 | CXXFLAGS="${CXXFLAGS} -xtarget=generic64" | |
4860 | CAN_BUILD_64=yes | |
4861 | fi | |
4862 | fi | |
4863 | ;; | |
4864 | ia64-*-linux*) | |
4865 | # check for ecc/ecpc compiler support | |
4866 | ## TODO: cross compiler problem | |
4867 | if test -n "`$CXX --help 2>&1 && $CC --help 2>&1 | grep -v Intel`"; then | |
4868 | if test -n "`$CXX --help 2>&1 && $CC --help 2>&1 | grep -v Itanium`"; then | |
4869 | CAN_BUILD_64=yes | |
4870 | fi | |
4871 | fi | |
4872 | ;; | |
4873 | *-*-cygwin) | |
4874 | # vcvarsamd64.bat should have been used to enable 64-bit builds. | |
4875 | # We only do this check to display the correct answer. | |
4876 | ## TODO: cross compiler problem | |
4877 | if test -n "`$CXX -help 2>&1 | grep 'for x64'`"; then | |
4878 | CAN_BUILD_64=yes | |
4879 | fi | |
4880 | ;; | |
4881 | *-*-aix*|powerpc64-*-linux*) | |
4882 | CFLAGS="${CFLAGS} -q64" | |
4883 | CXXFLAGS="${CXXFLAGS} -q64" | |
4884 | LDFLAGS="${LDFLAGS} -q64" | |
4885 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4886 | /* end confdefs.h. */ | |
4887 | int main(void) {return (sizeof(void*)*8==64)?0:1;} | |
73c04bcf | 4888 | _ACEOF |
729e4ab9 A |
4889 | if ac_fn_c_try_compile "$LINENO"; then : |
4890 | CAN_BUILD_64=yes | |
4891 | else | |
4892 | CAN_BUILD_64=no | |
4893 | fi | |
4894 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4895 | if test "$CAN_BUILD_64" = yes; then | |
4896 | # worked- set other options. | |
4897 | case "${host}" in | |
4898 | *-*-aix*) | |
4899 | # tell AIX what executable mode to use. | |
4900 | ARFLAGS="${ARFLAGS} -X64" | |
4901 | esac | |
4902 | fi | |
4903 | ;; | |
4904 | *-*-hpux*) | |
4905 | # First we try the newer +DD64, if that doesn't work, | |
4906 | # try other options. | |
4907 | ||
4908 | CFLAGS="${CFLAGS} +DD64" | |
4909 | CXXFLAGS="${CXXFLAGS} +DD64" | |
4910 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
73c04bcf | 4911 | /* end confdefs.h. */ |
729e4ab9 A |
4912 | int main(void) {return (sizeof(void*)*8==64)?0:1;} |
4913 | _ACEOF | |
4914 | if ac_fn_c_try_compile "$LINENO"; then : | |
4915 | CAN_BUILD_64=yes | |
4916 | else | |
4917 | CAN_BUILD_64=no | |
4918 | fi | |
4919 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4920 | if test "$CAN_BUILD_64" != yes; then | |
4921 | # reset | |
4922 | CFLAGS="${CFLAGS_OLD}" | |
4923 | CXXFLAGS="${CXXFLAGS_OLD}" | |
4924 | # append | |
4925 | CFLAGS="${CFLAGS} +DA2.0W" | |
4926 | CXXFLAGS="${CXXFLAGS} +DA2.0W" | |
4927 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4928 | /* end confdefs.h. */ | |
4929 | int main(void) {return (sizeof(void*)*8==64)?0:1;} | |
73c04bcf | 4930 | _ACEOF |
729e4ab9 A |
4931 | if ac_fn_c_try_compile "$LINENO"; then : |
4932 | CAN_BUILD_64=yes | |
b75a7d8f | 4933 | else |
729e4ab9 | 4934 | CAN_BUILD_64=no |
b75a7d8f | 4935 | fi |
729e4ab9 A |
4936 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4937 | fi | |
4938 | ;; | |
4939 | *-*ibm-openedition*|*-*-os390*) | |
4940 | CFLAGS="${CFLAGS} -Wc,lp64" | |
4941 | CXXFLAGS="${CXXFLAGS} -Wc,lp64" | |
4942 | LDFLAGS="${LDFLAGS} -Wl,lp64" | |
4943 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4944 | /* end confdefs.h. */ | |
4945 | int main(void) {return (sizeof(void*)*8==64)?0:1;} | |
4946 | _ACEOF | |
4947 | if ac_fn_c_try_compile "$LINENO"; then : | |
4948 | CAN_BUILD_64=yes | |
b75a7d8f | 4949 | else |
729e4ab9 | 4950 | CAN_BUILD_64=no |
b75a7d8f | 4951 | fi |
729e4ab9 A |
4952 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4953 | ;; | |
4954 | *) | |
4955 | # unknown platform. | |
4956 | ;; | |
4957 | esac | |
4958 | fi | |
4959 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAN_BUILD_64" >&5 | |
4960 | $as_echo "$CAN_BUILD_64" >&6; } | |
4961 | if test "$CAN_BUILD_64" = yes; then | |
4962 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether runnable 64-bit binaries are being built " >&5 | |
4963 | $as_echo_n "checking whether runnable 64-bit binaries are being built ... " >&6; } | |
4964 | if test "$cross_compiling" = yes; then : | |
4965 | BITS_RUN_64=unknown | |
4966 | else | |
4967 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4968 | /* end confdefs.h. */ | |
4969 | int main(void) {return (sizeof(void*)*8==64)?0:1;} | |
4970 | _ACEOF | |
4971 | if ac_fn_c_try_run "$LINENO"; then : | |
4972 | BITS_RUN_64=yes | |
73c04bcf | 4973 | else |
729e4ab9 | 4974 | BITS_RUN_64=no |
b75a7d8f | 4975 | fi |
729e4ab9 A |
4976 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
4977 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
b75a7d8f | 4978 | fi |
73c04bcf | 4979 | |
729e4ab9 A |
4980 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BITS_RUN_64" >&5 |
4981 | $as_echo "$BITS_RUN_64" >&6; }; | |
b75a7d8f | 4982 | |
729e4ab9 A |
4983 | CFLAGS_64="${CFLAGS}" |
4984 | CXXFLAGS_64="${CXXFLAGS}" | |
4985 | LDFLAGS_64="${LDFLAGS}" | |
4986 | ARFLAGS_64="${ARFLAGS}" | |
4987 | fi | |
4988 | # put it back. | |
4989 | CFLAGS="${CFLAGS_OLD}" | |
4990 | CXXFLAGS="${CXXFLAGS_OLD}" | |
4991 | LDFLAGS="${LDFLAGS_OLD}" | |
4992 | ARFLAGS="${ARFLAGS_OLD}" | |
4993 | fi | |
4994 | if test "$BITS_CHECK_32" = "yes"; then | |
4995 | # see comment under 'if BITS_CHECK_64', above. | |
4996 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to build 32-bit executables" >&5 | |
4997 | $as_echo_n "checking how to build 32-bit executables... " >&6; } | |
4998 | if test "$GCC" = yes; then | |
4999 | CFLAGS="${CFLAGS} -m32" | |
5000 | CXXFLAGS="${CXXFLAGS} -m32" | |
5001 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5002 | /* end confdefs.h. */ | |
5003 | int main(void) {return (sizeof(void*)*8==32)?0:1;} | |
5004 | _ACEOF | |
5005 | if ac_fn_c_try_compile "$LINENO"; then : | |
5006 | CAN_BUILD_32=yes | |
b75a7d8f | 5007 | else |
729e4ab9 | 5008 | CAN_BUILD_32=no |
b75a7d8f | 5009 | fi |
729e4ab9 A |
5010 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5011 | fi | |
5012 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAN_BUILD_32" >&5 | |
5013 | $as_echo "$CAN_BUILD_32" >&6; } | |
5014 | if test "$CAN_BUILD_32" = yes; then | |
5015 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether runnable 32-bit binaries are being built " >&5 | |
5016 | $as_echo_n "checking whether runnable 32-bit binaries are being built ... " >&6; } | |
5017 | if test "$cross_compiling" = yes; then : | |
5018 | BITS_RUN_32=unknown | |
5019 | else | |
5020 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5021 | /* end confdefs.h. */ | |
5022 | int main(void) {return (sizeof(void*)*8==32)?0:1;} | |
5023 | _ACEOF | |
5024 | if ac_fn_c_try_run "$LINENO"; then : | |
5025 | BITS_RUN_32=yes | |
5026 | else | |
5027 | BITS_RUN_32=no | |
5028 | fi | |
5029 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
5030 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
b75a7d8f A |
5031 | fi |
5032 | ||
729e4ab9 A |
5033 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BITS_RUN_32" >&5 |
5034 | $as_echo "$BITS_RUN_32" >&6; }; | |
5035 | CFLAGS_32="${CFLAGS}" | |
5036 | CXXFLAGS_32="${CXXFLAGS}" | |
5037 | LDFLAGS_32="${LDFLAGS}" | |
5038 | ARFLAGS_32="${ARFLAGS}" | |
5039 | fi | |
5040 | # put it back. | |
5041 | CFLAGS="${CFLAGS_OLD}" | |
5042 | CXXFLAGS="${CXXFLAGS_OLD}" | |
5043 | LDFLAGS="${LDFLAGS_OLD}" | |
5044 | ARFLAGS="${ARFLAGS_OLD}" | |
5045 | fi | |
b75a7d8f | 5046 | |
729e4ab9 A |
5047 | ## |
5048 | # OK. Now, we've tested for 32 and 64 bitness. Let's see what we'll do. | |
5049 | # | |
b75a7d8f | 5050 | |
729e4ab9 A |
5051 | # First, implement 64else32 |
5052 | if test "$BITS_REQ" = "64else32"; then | |
5053 | if test "$BITS_RUN_64" = "yes"; then | |
5054 | BITS_REQ=64 | |
5055 | else | |
5056 | # no changes. | |
5057 | BITS_OK=yes | |
5058 | fi | |
5059 | fi | |
73c04bcf | 5060 | |
729e4ab9 A |
5061 | # implement. |
5062 | if test "$BITS_REQ" = "32" -a "$BITS_RUN_32" = "yes"; then | |
5063 | CFLAGS="${CFLAGS_32}" | |
5064 | CXXFLAGS="${CXXFLAGS_32}" | |
5065 | LDFLAGS="${LDFLAGS_32}" | |
5066 | ARFLAGS="${ARFLAGS_32}" | |
5067 | BITS_OK=yes | |
5068 | elif test "$BITS_REQ" = "64" -a "$BITS_RUN_64" = "yes"; then | |
5069 | CFLAGS="${CFLAGS_64}" | |
5070 | CXXFLAGS="${CXXFLAGS_64}" | |
5071 | LDFLAGS="${LDFLAGS_64}" | |
5072 | ARFLAGS="${ARFLAGS_64}" | |
5073 | BITS_OK=yes | |
5074 | elif test "$BITS_OK" != "yes"; then | |
5075 | 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 | |
5076 | fi | |
5077 | fi | |
b75a7d8f | 5078 | |
73c04bcf A |
5079 | |
5080 | ||
b75a7d8f | 5081 | |
729e4ab9 | 5082 | # Determine the Makefile fragment |
73c04bcf | 5083 | |
729e4ab9 A |
5084 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking which Makefile fragment to use for ${host}" >&5 |
5085 | $as_echo_n "checking which Makefile fragment to use for ${host}... " >&6; } | |
4388f060 | 5086 | if ${icu_cv_host_frag+:} false; then : |
729e4ab9 A |
5087 | $as_echo_n "(cached) " >&6 |
5088 | else | |
5089 | ||
5090 | case "${host}" in | |
5091 | *-*-solaris*) | |
5092 | if test "$GCC" = yes; then | |
5093 | icu_cv_host_frag=mh-solaris-gcc | |
5094 | else | |
5095 | icu_cv_host_frag=mh-solaris | |
5096 | fi ;; | |
5097 | alpha*-*-linux-gnu) | |
5098 | if test "$GCC" = yes; then | |
5099 | icu_cv_host_frag=mh-alpha-linux-gcc | |
5100 | else | |
5101 | icu_cv_host_frag=mh-alpha-linux-cc | |
5102 | fi ;; | |
5103 | powerpc*-*-linux*) | |
5104 | if test "$GCC" = yes; then | |
5105 | icu_cv_host_frag=mh-linux | |
5106 | else | |
5107 | icu_cv_host_frag=mh-linux-va | |
5108 | fi ;; | |
5109 | *-*-linux*|*-*-gnu|*-*-k*bsd*-gnu|*-*-kopensolaris*-gnu) icu_cv_host_frag=mh-linux ;; | |
b331163b | 5110 | i[34567]86-*-cygwin) |
729e4ab9 | 5111 | if test "$GCC" = yes; then |
b331163b A |
5112 | icu_cv_host_frag=mh-cygwin |
5113 | else | |
5114 | icu_cv_host_frag=mh-cygwin-msvc | |
5115 | fi ;; | |
5116 | x86_64-*-cygwin) | |
5117 | if test "$GCC" = yes; then | |
5118 | icu_cv_host_frag=mh-cygwin64 | |
5119 | else | |
5120 | icu_cv_host_frag=mh-cygwin-msvc | |
5121 | fi ;; | |
5122 | *-*-mingw*) | |
5123 | if test "$GCC" = yes; then | |
5124 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
51004dcb A |
5125 | /* end confdefs.h. */ |
5126 | ||
5127 | #ifndef __MINGW64__ | |
5128 | #error This is not MinGW64 | |
5129 | #endif | |
5130 | int | |
5131 | main () | |
5132 | { | |
5133 | ||
5134 | ; | |
5135 | return 0; | |
5136 | } | |
5137 | _ACEOF | |
5138 | if ac_fn_c_try_compile "$LINENO"; then : | |
5139 | icu_cv_host_frag=mh-mingw64 | |
5140 | else | |
729e4ab9 | 5141 | icu_cv_host_frag=mh-mingw |
51004dcb | 5142 | fi |
729e4ab9 A |
5143 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5144 | else | |
b331163b A |
5145 | case "${host}" in |
5146 | *-*-mingw*) icu_cv_host_frag=mh-msys-msvc ;; | |
5147 | *-*-cygwin) icu_cv_host_frag=mh-cygwin-msvc ;; | |
5148 | esac | |
729e4ab9 A |
5149 | fi ;; |
5150 | *-*-*bsd*|*-*-dragonfly*) icu_cv_host_frag=mh-bsd-gcc ;; | |
5151 | *-*-aix*) | |
5152 | if test "$GCC" = yes; then | |
5153 | icu_cv_host_frag=mh-aix-gcc | |
5154 | else | |
5155 | icu_cv_host_frag=mh-aix-va | |
5156 | fi ;; | |
5157 | *-*-hpux*) | |
5158 | if test "$GCC" = yes; then | |
5159 | icu_cv_host_frag=mh-hpux-gcc | |
5160 | else | |
5161 | case "$CXX" in | |
5162 | *aCC) icu_cv_host_frag=mh-hpux-acc ;; | |
5163 | esac | |
5164 | fi ;; | |
5165 | *-*ibm-openedition*|*-*-os390*) icu_cv_host_frag=mh-os390 ;; | |
5166 | *-*-os400*) icu_cv_host_frag=mh-os400 ;; | |
5167 | *-apple-rhapsody*) icu_cv_host_frag=mh-darwin ;; | |
5168 | *-apple-darwin*) icu_cv_host_frag=mh-darwin ;; | |
5169 | *-*-beos) icu_cv_host_frag=mh-beos ;; | |
5170 | *-*-haiku) icu_cv_host_frag=mh-haiku ;; | |
5171 | *-*-irix*) icu_cv_host_frag=mh-irix ;; | |
5172 | *-dec-osf*) icu_cv_host_frag=mh-alpha-osf ;; | |
5173 | *-*-nto*) icu_cv_host_frag=mh-qnx ;; | |
5174 | *-ncr-*) icu_cv_host_frag=mh-mpras ;; | |
5175 | *) icu_cv_host_frag=mh-unknown ;; | |
5176 | esac | |
5177 | ||
73c04bcf | 5178 | |
b75a7d8f | 5179 | fi |
729e4ab9 A |
5180 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $icu_cv_host_frag" >&5 |
5181 | $as_echo "$icu_cv_host_frag" >&6; } | |
5182 | ||
5183 | ||
5184 | # Checks for libraries and other host specific stuff | |
5185 | # On HP/UX, don't link to -lm from a shared lib because it isn't | |
5186 | # PIC (at least on 10.2) | |
5187 | case "${host}" in | |
5188 | *-*-hpux*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking for floor in -lm" >&5 | |
5189 | $as_echo_n "checking for floor in -lm... " >&6; } | |
4388f060 | 5190 | if ${ac_cv_lib_m_floor+:} false; then : |
729e4ab9 | 5191 | $as_echo_n "(cached) " >&6 |
73c04bcf | 5192 | else |
729e4ab9 A |
5193 | ac_check_lib_save_LIBS=$LIBS |
5194 | LIBS="-lm $LIBS" | |
5195 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
73c04bcf | 5196 | /* end confdefs.h. */ |
729e4ab9 A |
5197 | |
5198 | /* Override any GCC internal prototype to avoid an error. | |
5199 | Use char because int might match the return type of a GCC | |
5200 | builtin and then its argument prototype would still apply. */ | |
5201 | #ifdef __cplusplus | |
5202 | extern "C" | |
5203 | #endif | |
5204 | char floor (); | |
73c04bcf A |
5205 | int |
5206 | main () | |
5207 | { | |
729e4ab9 | 5208 | return floor (); |
73c04bcf A |
5209 | ; |
5210 | return 0; | |
5211 | } | |
5212 | _ACEOF | |
729e4ab9 A |
5213 | if ac_fn_c_try_link "$LINENO"; then : |
5214 | ac_cv_lib_m_floor=yes | |
b75a7d8f | 5215 | else |
729e4ab9 | 5216 | ac_cv_lib_m_floor=no |
b75a7d8f | 5217 | fi |
729e4ab9 A |
5218 | rm -f core conftest.err conftest.$ac_objext \ |
5219 | conftest$ac_exeext conftest.$ac_ext | |
5220 | LIBS=$ac_check_lib_save_LIBS | |
b75a7d8f | 5221 | fi |
729e4ab9 A |
5222 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_floor" >&5 |
5223 | $as_echo "$ac_cv_lib_m_floor" >&6; } | |
4388f060 | 5224 | if test "x$ac_cv_lib_m_floor" = xyes; then : |
729e4ab9 | 5225 | LIB_M="-lm" |
b75a7d8f | 5226 | fi |
729e4ab9 | 5227 | ;; |
b75a7d8f | 5228 | |
729e4ab9 A |
5229 | *) { $as_echo "$as_me:${as_lineno-$LINENO}: checking for floor in -lm" >&5 |
5230 | $as_echo_n "checking for floor in -lm... " >&6; } | |
4388f060 | 5231 | if ${ac_cv_lib_m_floor+:} false; then : |
729e4ab9 | 5232 | $as_echo_n "(cached) " >&6 |
73c04bcf | 5233 | else |
729e4ab9 A |
5234 | ac_check_lib_save_LIBS=$LIBS |
5235 | LIBS="-lm $LIBS" | |
5236 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
73c04bcf | 5237 | /* end confdefs.h. */ |
b75a7d8f | 5238 | |
729e4ab9 A |
5239 | /* Override any GCC internal prototype to avoid an error. |
5240 | Use char because int might match the return type of a GCC | |
5241 | builtin and then its argument prototype would still apply. */ | |
5242 | #ifdef __cplusplus | |
5243 | extern "C" | |
5244 | #endif | |
5245 | char floor (); | |
73c04bcf A |
5246 | int |
5247 | main () | |
5248 | { | |
729e4ab9 | 5249 | return floor (); |
73c04bcf A |
5250 | ; |
5251 | return 0; | |
5252 | } | |
5253 | _ACEOF | |
729e4ab9 A |
5254 | if ac_fn_c_try_link "$LINENO"; then : |
5255 | ac_cv_lib_m_floor=yes | |
5256 | else | |
5257 | ac_cv_lib_m_floor=no | |
5258 | fi | |
5259 | rm -f core conftest.err conftest.$ac_objext \ | |
5260 | conftest$ac_exeext conftest.$ac_ext | |
5261 | LIBS=$ac_check_lib_save_LIBS | |
5262 | fi | |
5263 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_floor" >&5 | |
5264 | $as_echo "$ac_cv_lib_m_floor" >&6; } | |
4388f060 | 5265 | if test "x$ac_cv_lib_m_floor" = xyes; then : |
729e4ab9 A |
5266 | cat >>confdefs.h <<_ACEOF |
5267 | #define HAVE_LIBM 1 | |
73c04bcf | 5268 | _ACEOF |
729e4ab9 A |
5269 | |
5270 | LIBS="-lm $LIBS" | |
5271 | ||
5272 | fi | |
5273 | ||
5274 | LIB_M="" ;; | |
5275 | esac | |
5276 | ||
5277 | ||
5278 | # Check whether to build shared libraries | |
5279 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 | |
5280 | $as_echo_n "checking whether to build shared libraries... " >&6; } | |
5281 | enabled=no | |
5282 | # Check whether --enable-shared was given. | |
5283 | if test "${enable_shared+set}" = set; then : | |
5284 | enableval=$enable_shared; case "${enableval}" in | |
5285 | yes|"") enabled=yes; ENABLE_SHARED=YES ;; | |
5286 | no);; | |
5287 | *) ;; | |
5288 | esac | |
5289 | else | |
5290 | enabled=yes; ENABLE_SHARED=YES | |
5291 | ||
5292 | fi | |
5293 | ||
5294 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enabled" >&5 | |
5295 | $as_echo "$enabled" >&6; } | |
5296 | ||
5297 | ||
5298 | # Check whether to build static libraries | |
5299 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 | |
5300 | $as_echo_n "checking whether to build static libraries... " >&6; } | |
5301 | enabled=no | |
5302 | # Check whether --enable-static was given. | |
5303 | if test "${enable_static+set}" = set; then : | |
5304 | enableval=$enable_static; case "${enableval}" in | |
5305 | yes|"") enabled=yes; ENABLE_STATIC=YES ;; | |
5306 | no) ;; | |
5307 | *) ;; | |
5308 | esac | |
5309 | fi | |
5310 | ||
5311 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enabled" >&5 | |
5312 | $as_echo "$enabled" >&6; } | |
5313 | ||
5314 | ||
4388f060 A |
5315 | # When building release static library, there might be some optimization flags we can use |
5316 | if test "$ENABLE_STATIC" = "YES"; then | |
5317 | if test "$ENABLE_SHARED" != "YES"; then | |
5318 | if test "$ENABLE_RELEASE" = 1; then | |
5319 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can use static library optimization option" >&5 | |
5320 | $as_echo_n "checking whether we can use static library optimization option... " >&6; } | |
5321 | CHECK_STATIC_OPT_FLAG=no | |
5322 | ||
5323 | OLD_CPPFLAGS="${CPPFLAGS}" | |
5324 | OLD_LDFLAGS="${LDFLAGS}" | |
5325 | ||
5326 | case "${host}" in | |
5327 | *-linux*|i*86-*-*bsd*|i*86-pc-gnu) | |
51004dcb | 5328 | if test "$GCC" = yes; then |
4388f060 A |
5329 | CPPFLAGS="${CPPFLAGS} -ffunction-sections -fdata-sections" |
5330 | LDFLAGS="${LDFLAGS} -Wl,--gc-sections" | |
5331 | fi | |
5332 | ;; | |
5333 | *) | |
5334 | ;; | |
5335 | esac | |
5336 | ||
5337 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5338 | /* end confdefs.h. */ | |
5339 | ||
5340 | int | |
5341 | main () | |
5342 | { | |
5343 | ||
5344 | ; | |
5345 | return 0; | |
5346 | } | |
5347 | _ACEOF | |
5348 | if ac_fn_c_try_link "$LINENO"; then : | |
5349 | CHECK_STATIC_OPT_FLAG=yes | |
5350 | else | |
5351 | CHECK_STATIC_OPT_FLAG=no | |
5352 | fi | |
5353 | rm -f core conftest.err conftest.$ac_objext \ | |
5354 | conftest$ac_exeext conftest.$ac_ext | |
5355 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_STATIC_OPT_FLAG" >&5 | |
5356 | $as_echo "$CHECK_STATIC_OPT_FLAG" >&6; } | |
5357 | if test "$CHECK_STATIC_OPT_FLAG" = no; then | |
5358 | CPPFLAGS="${OLD_CPPFLAGS}" | |
5359 | LDFLAGS="${OLD_LDFLAGS}" | |
5360 | fi | |
5361 | fi | |
5362 | fi | |
5363 | fi | |
5364 | ||
5365 | ||
729e4ab9 A |
5366 | # Check whether to enable auto cleanup of libraries |
5367 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable auto cleanup of libraries" >&5 | |
5368 | $as_echo_n "checking whether to enable auto cleanup of libraries... " >&6; } | |
5369 | enabled=no | |
5370 | UCLN_NO_AUTO_CLEANUP=1 | |
5371 | # Check whether --enable-auto-cleanup was given. | |
5372 | if test "${enable_auto_cleanup+set}" = set; then : | |
5373 | enableval=$enable_auto_cleanup; case "${enableval}" in | |
4388f060 A |
5374 | yes) enabled=yes; |
5375 | CONFIG_CPPFLAGS="$CONFIG_CPPFLAGS -DUCLN_NO_AUTO_CLEANUP=0"; | |
5376 | UCLN_NO_AUTO_CLEANUP=0 | |
5377 | ;; | |
729e4ab9 A |
5378 | *) ;; |
5379 | esac | |
5380 | fi | |
5381 | ||
5382 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enabled" >&5 | |
5383 | $as_echo "$enabled" >&6; } | |
5384 | ||
5385 | ||
5386 | # MSVC floating-point option | |
5387 | MSVC_RELEASE_FLAG="" | |
5388 | if test $enabled = yes | |
5389 | then | |
b331163b | 5390 | if test $icu_cv_host_frag = mh-cygwin-msvc -o $icu_cv_host_frag = mh-msys-msvc |
729e4ab9 A |
5391 | then |
5392 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
73c04bcf | 5393 | /* end confdefs.h. */ |
729e4ab9 A |
5394 | |
5395 | #if defined _MSC_VER && _MSC_VER >= 1400 | |
5396 | #else | |
5397 | Microsoft Visual C++ < 2005 | |
5398 | #endif | |
b75a7d8f | 5399 | |
73c04bcf A |
5400 | int |
5401 | main () | |
5402 | { | |
73c04bcf A |
5403 | |
5404 | ; | |
5405 | return 0; | |
5406 | } | |
5407 | _ACEOF | |
729e4ab9 A |
5408 | if ac_fn_c_try_compile "$LINENO"; then : |
5409 | MSVC_RELEASE_FLAG="/fp:precise" | |
b75a7d8f | 5410 | else |
729e4ab9 A |
5411 | MSVC_RELEASE_FLAG="/Op" |
5412 | fi | |
5413 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
73c04bcf | 5414 | |
729e4ab9 A |
5415 | CFLAGS="${CFLAGS} ${MSVC_RELEASE_FLAG}" |
5416 | CXXFLAGS="${CXXFLAGS} ${MSVC_RELEASE_FLAG}" | |
5417 | fi | |
b75a7d8f | 5418 | fi |
73c04bcf | 5419 | |
729e4ab9 A |
5420 | # Check whether to enabled draft APIs |
5421 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable draft APIs" >&5 | |
5422 | $as_echo_n "checking whether to enable draft APIs... " >&6; } | |
5423 | enabled=yes | |
5424 | U_DEFAULT_SHOW_DRAFT=1 | |
5425 | # Check whether --enable-draft was given. | |
5426 | if test "${enable_draft+set}" = set; then : | |
5427 | enableval=$enable_draft; case "${enableval}" in | |
4388f060 A |
5428 | no) enabled=no; U_DEFAULT_SHOW_DRAFT=0; |
5429 | CONFIG_CPPFLAGS="$CONFIG_CPPFLAGS -DU_DEFAULT_SHOW_DRAFT=0" | |
5430 | ;; | |
729e4ab9 A |
5431 | *) ;; |
5432 | esac | |
5433 | fi | |
5434 | ||
5435 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enabled" >&5 | |
5436 | $as_echo "$enabled" >&6; } | |
5437 | # Make sure that we can use draft API in ICU. | |
5438 | if test "$U_DEFAULT_SHOW_DRAFT" = 0; then | |
4388f060 | 5439 | CONFIG_CPPFLAGS="$CONFIG_CPPFLAGS -DU_SHOW_DRAFT_API" |
729e4ab9 | 5440 | fi |
729e4ab9 A |
5441 | |
5442 | ||
5443 | if test -n "$ac_tool_prefix"; then | |
5444 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
5445 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
5446 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5447 | $as_echo_n "checking for $ac_word... " >&6; } | |
4388f060 | 5448 | if ${ac_cv_prog_RANLIB+:} false; then : |
729e4ab9 A |
5449 | $as_echo_n "(cached) " >&6 |
5450 | else | |
5451 | if test -n "$RANLIB"; then | |
5452 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
5453 | else | |
5454 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5455 | for as_dir in $PATH | |
5456 | do | |
5457 | IFS=$as_save_IFS | |
5458 | test -z "$as_dir" && as_dir=. | |
5459 | for ac_exec_ext in '' $ac_executable_extensions; do | |
b331163b | 5460 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
729e4ab9 A |
5461 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
5462 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5463 | break 2 | |
5464 | fi | |
5465 | done | |
5466 | done | |
5467 | IFS=$as_save_IFS | |
5468 | ||
5469 | fi | |
5470 | fi | |
5471 | RANLIB=$ac_cv_prog_RANLIB | |
5472 | if test -n "$RANLIB"; then | |
5473 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 | |
5474 | $as_echo "$RANLIB" >&6; } | |
5475 | else | |
5476 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5477 | $as_echo "no" >&6; } | |
5478 | fi | |
5479 | ||
73c04bcf | 5480 | |
b75a7d8f | 5481 | fi |
729e4ab9 A |
5482 | if test -z "$ac_cv_prog_RANLIB"; then |
5483 | ac_ct_RANLIB=$RANLIB | |
5484 | # Extract the first word of "ranlib", so it can be a program name with args. | |
5485 | set dummy ranlib; ac_word=$2 | |
5486 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5487 | $as_echo_n "checking for $ac_word... " >&6; } | |
4388f060 | 5488 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : |
729e4ab9 A |
5489 | $as_echo_n "(cached) " >&6 |
5490 | else | |
5491 | if test -n "$ac_ct_RANLIB"; then | |
5492 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
5493 | else | |
5494 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5495 | for as_dir in $PATH | |
5496 | do | |
5497 | IFS=$as_save_IFS | |
5498 | test -z "$as_dir" && as_dir=. | |
5499 | for ac_exec_ext in '' $ac_executable_extensions; do | |
b331163b | 5500 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
729e4ab9 A |
5501 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
5502 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5503 | break 2 | |
5504 | fi | |
5505 | done | |
5506 | done | |
5507 | IFS=$as_save_IFS | |
5508 | ||
b75a7d8f | 5509 | fi |
b75a7d8f | 5510 | fi |
729e4ab9 A |
5511 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
5512 | if test -n "$ac_ct_RANLIB"; then | |
5513 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 | |
5514 | $as_echo "$ac_ct_RANLIB" >&6; } | |
5515 | else | |
5516 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5517 | $as_echo "no" >&6; } | |
b75a7d8f A |
5518 | fi |
5519 | ||
729e4ab9 A |
5520 | if test "x$ac_ct_RANLIB" = x; then |
5521 | RANLIB=":" | |
5522 | else | |
5523 | case $cross_compiling:$ac_tool_warned in | |
5524 | yes:) | |
5525 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5526 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5527 | ac_tool_warned=yes ;; | |
73c04bcf | 5528 | esac |
729e4ab9 A |
5529 | RANLIB=$ac_ct_RANLIB |
5530 | fi | |
5531 | else | |
5532 | RANLIB="$ac_cv_prog_RANLIB" | |
5533 | fi | |
b75a7d8f | 5534 | |
729e4ab9 A |
5535 | |
5536 | # look for 'ar' the proper way | |
729e4ab9 A |
5537 | if test -n "$ac_tool_prefix"; then |
5538 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
5539 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
5540 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5541 | $as_echo_n "checking for $ac_word... " >&6; } | |
4388f060 | 5542 | if ${ac_cv_prog_AR+:} false; then : |
729e4ab9 | 5543 | $as_echo_n "(cached) " >&6 |
b75a7d8f | 5544 | else |
729e4ab9 A |
5545 | if test -n "$AR"; then |
5546 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
5547 | else | |
5548 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5549 | for as_dir in $PATH | |
5550 | do | |
5551 | IFS=$as_save_IFS | |
5552 | test -z "$as_dir" && as_dir=. | |
5553 | for ac_exec_ext in '' $ac_executable_extensions; do | |
b331163b | 5554 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
729e4ab9 A |
5555 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
5556 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5557 | break 2 | |
5558 | fi | |
5559 | done | |
5560 | done | |
5561 | IFS=$as_save_IFS | |
5562 | ||
5563 | fi | |
5564 | fi | |
5565 | AR=$ac_cv_prog_AR | |
5566 | if test -n "$AR"; then | |
5567 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 | |
5568 | $as_echo "$AR" >&6; } | |
5569 | else | |
5570 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5571 | $as_echo "no" >&6; } | |
b75a7d8f A |
5572 | fi |
5573 | ||
5574 | ||
729e4ab9 A |
5575 | fi |
5576 | if test -z "$ac_cv_prog_AR"; then | |
5577 | ac_ct_AR=$AR | |
5578 | # Extract the first word of "ar", so it can be a program name with args. | |
5579 | set dummy ar; ac_word=$2 | |
5580 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5581 | $as_echo_n "checking for $ac_word... " >&6; } | |
4388f060 | 5582 | if ${ac_cv_prog_ac_ct_AR+:} false; then : |
729e4ab9 A |
5583 | $as_echo_n "(cached) " >&6 |
5584 | else | |
5585 | if test -n "$ac_ct_AR"; then | |
5586 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
5587 | else | |
5588 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5589 | for as_dir in $PATH | |
5590 | do | |
5591 | IFS=$as_save_IFS | |
5592 | test -z "$as_dir" && as_dir=. | |
5593 | for ac_exec_ext in '' $ac_executable_extensions; do | |
b331163b | 5594 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
729e4ab9 A |
5595 | ac_cv_prog_ac_ct_AR="ar" |
5596 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5597 | break 2 | |
5598 | fi | |
5599 | done | |
5600 | done | |
5601 | IFS=$as_save_IFS | |
5602 | ||
5603 | fi | |
5604 | fi | |
5605 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
5606 | if test -n "$ac_ct_AR"; then | |
5607 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 | |
5608 | $as_echo "$ac_ct_AR" >&6; } | |
5609 | else | |
5610 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5611 | $as_echo "no" >&6; } | |
5612 | fi | |
5613 | ||
5614 | if test "x$ac_ct_AR" = x; then | |
4388f060 | 5615 | AR="false" |
729e4ab9 A |
5616 | else |
5617 | case $cross_compiling:$ac_tool_warned in | |
5618 | yes:) | |
5619 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5620 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5621 | ac_tool_warned=yes ;; | |
5622 | esac | |
5623 | AR=$ac_ct_AR | |
5624 | fi | |
73c04bcf | 5625 | else |
729e4ab9 A |
5626 | AR="$ac_cv_prog_AR" |
5627 | fi | |
5628 | ||
729e4ab9 A |
5629 | |
5630 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable renaming of symbols" >&5 | |
5631 | $as_echo_n "checking whether to enable renaming of symbols... " >&6; } | |
5632 | enabled=yes | |
5633 | U_DISABLE_RENAMING=0 | |
5634 | # Check whether --enable-renaming was given. | |
5635 | if test "${enable_renaming+set}" = set; then : | |
5636 | enableval=$enable_renaming; case "${enableval}" in | |
5637 | yes|"") enabled=yes ;; | |
4388f060 A |
5638 | no) enabled=no; U_DISABLE_RENAMING=1; |
5639 | UCONFIG_CPPFLAGS="${UCONFIG_CPPFLAGS} -DU_DISABLE_RENAMING=1" | |
5640 | ;; | |
729e4ab9 A |
5641 | *) ;; |
5642 | esac | |
5643 | fi | |
5644 | ||
5645 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enabled" >&5 | |
5646 | $as_echo "$enabled" >&6; } | |
5647 | ||
5648 | ||
5649 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable function and data tracing" >&5 | |
5650 | $as_echo_n "checking whether to enable function and data tracing... " >&6; } | |
5651 | enabled=no | |
5652 | U_ENABLE_TRACING=0 | |
5653 | # Check whether --enable-tracing was given. | |
5654 | if test "${enable_tracing+set}" = set; then : | |
5655 | enableval=$enable_tracing; case "${enableval}" in | |
4388f060 A |
5656 | yes|"") enabled=yes; |
5657 | CONFIG_CPPFLAGS="$CONFIG_CPPFLAGS -DU_ENABLE_TRACING=1"; | |
5658 | U_ENABLE_TRACING=1 ;; | |
729e4ab9 A |
5659 | no) enabled=no; U_ENABLE_TRACING=0 ;; |
5660 | *) ;; | |
5661 | esac | |
5662 | fi | |
5663 | ||
5664 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enabled" >&5 | |
5665 | $as_echo "$enabled" >&6; } | |
5666 | ||
5667 | ||
57a6839d A |
5668 | # check if elf.h is present. |
5669 | for ac_header in elf.h | |
5670 | do : | |
5671 | ac_fn_c_check_header_mongrel "$LINENO" "elf.h" "ac_cv_header_elf_h" "$ac_includes_default" | |
5672 | if test "x$ac_cv_header_elf_h" = xyes; then : | |
5673 | cat >>confdefs.h <<_ACEOF | |
5674 | #define HAVE_ELF_H 1 | |
5675 | _ACEOF | |
5676 | ||
5677 | fi | |
5678 | ||
5679 | done | |
5680 | ||
5681 | if test "x$ac_cv_header_elf_h" = "xyes"; then | |
5682 | CONFIG_CPPFLAGS="$CONFIG_CPPFLAGS -DU_HAVE_ELF_H=1"; | |
5683 | fi | |
729e4ab9 A |
5684 | |
5685 | U_ENABLE_DYLOAD=1 | |
4388f060 | 5686 | enable=yes |
729e4ab9 A |
5687 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable dynamic loading of plugins" >&5 |
5688 | $as_echo_n "checking whether to enable dynamic loading of plugins... " >&6; } | |
729e4ab9 A |
5689 | # Check whether --enable-dyload was given. |
5690 | if test "${enable_dyload+set}" = set; then : | |
5691 | enableval=$enable_dyload; case "${enableval}" in | |
5692 | yes|"") | |
5693 | U_ENABLE_DYLOAD=1 | |
4388f060 A |
5694 | enable=yes |
5695 | ;; | |
729e4ab9 A |
5696 | no) |
5697 | U_ENABLE_DYLOAD=0; | |
4388f060 A |
5698 | enable=no; |
5699 | CONFIG_CPPFLAGS="$CONFIG_CPPFLAGS -DU_ENABLE_DYLOAD=0"; | |
5700 | ;; | |
729e4ab9 A |
5701 | *) ;; |
5702 | esac | |
5703 | fi | |
5704 | ||
4388f060 A |
5705 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable" >&5 |
5706 | $as_echo "$enable" >&6; } | |
729e4ab9 A |
5707 | |
5708 | ||
4388f060 A |
5709 | if test "$enable" = "yes"; then |
5710 | for ac_header in dlfcn.h | |
729e4ab9 A |
5711 | do : |
5712 | ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default" | |
4388f060 | 5713 | if test "x$ac_cv_header_dlfcn_h" = xyes; then : |
729e4ab9 A |
5714 | cat >>confdefs.h <<_ACEOF |
5715 | #define HAVE_DLFCN_H 1 | |
73c04bcf | 5716 | _ACEOF |
73c04bcf | 5717 | |
729e4ab9 | 5718 | fi |
73c04bcf | 5719 | |
729e4ab9 | 5720 | done |
b75a7d8f | 5721 | |
4388f060 A |
5722 | #AC_MSG_RESULT($enabled) |
5723 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5 | |
729e4ab9 | 5724 | $as_echo_n "checking for library containing dlopen... " >&6; } |
4388f060 | 5725 | if ${ac_cv_search_dlopen+:} false; then : |
729e4ab9 A |
5726 | $as_echo_n "(cached) " >&6 |
5727 | else | |
5728 | ac_func_search_save_LIBS=$LIBS | |
5729 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5730 | /* end confdefs.h. */ | |
b75a7d8f | 5731 | |
729e4ab9 A |
5732 | /* Override any GCC internal prototype to avoid an error. |
5733 | Use char because int might match the return type of a GCC | |
73c04bcf | 5734 | builtin and then its argument prototype would still apply. */ |
73c04bcf | 5735 | #ifdef __cplusplus |
729e4ab9 | 5736 | extern "C" |
b75a7d8f | 5737 | #endif |
729e4ab9 | 5738 | char dlopen (); |
73c04bcf A |
5739 | int |
5740 | main () | |
5741 | { | |
729e4ab9 | 5742 | return dlopen (); |
73c04bcf A |
5743 | ; |
5744 | return 0; | |
5745 | } | |
5746 | _ACEOF | |
729e4ab9 A |
5747 | for ac_lib in '' dl; do |
5748 | if test -z "$ac_lib"; then | |
5749 | ac_res="none required" | |
5750 | else | |
5751 | ac_res=-l$ac_lib | |
5752 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
5753 | fi | |
5754 | if ac_fn_c_try_link "$LINENO"; then : | |
5755 | ac_cv_search_dlopen=$ac_res | |
5756 | fi | |
5757 | rm -f core conftest.err conftest.$ac_objext \ | |
5758 | conftest$ac_exeext | |
4388f060 | 5759 | if ${ac_cv_search_dlopen+:} false; then : |
729e4ab9 A |
5760 | break |
5761 | fi | |
5762 | done | |
4388f060 | 5763 | if ${ac_cv_search_dlopen+:} false; then : |
729e4ab9 | 5764 | |
73c04bcf | 5765 | else |
729e4ab9 A |
5766 | ac_cv_search_dlopen=no |
5767 | fi | |
5768 | rm conftest.$ac_ext | |
5769 | LIBS=$ac_func_search_save_LIBS | |
5770 | fi | |
5771 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5 | |
5772 | $as_echo "$ac_cv_search_dlopen" >&6; } | |
5773 | ac_res=$ac_cv_search_dlopen | |
5774 | if test "$ac_res" != no; then : | |
5775 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
73c04bcf | 5776 | |
73c04bcf | 5777 | fi |
729e4ab9 | 5778 | |
4388f060 | 5779 | for ac_func in dlopen |
729e4ab9 A |
5780 | do : |
5781 | ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" | |
4388f060 | 5782 | if test "x$ac_cv_func_dlopen" = xyes; then : |
729e4ab9 A |
5783 | cat >>confdefs.h <<_ACEOF |
5784 | #define HAVE_DLOPEN 1 | |
5785 | _ACEOF | |
5786 | ||
73c04bcf | 5787 | fi |
729e4ab9 A |
5788 | done |
5789 | ||
729e4ab9 | 5790 | |
4388f060 A |
5791 | if test "x$ac_cv_func_dlopen" != xyes; then |
5792 | CONFIG_CPPFLAGS="$CONFIG_CPPFLAGS -DHAVE_DLOPEN=0" | |
5793 | fi | |
5794 | fi | |
729e4ab9 A |
5795 | |
5796 | # Check for miscellanous functions. | |
729e4ab9 A |
5797 | # So, use for putil / tools only. |
5798 | # Note that this will generate HAVE_GETTIMEOFDAY, not U_HAVE_GETTIMEOFDAY | |
729e4ab9 A |
5799 | for ac_func in gettimeofday |
5800 | do : | |
5801 | ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday" | |
4388f060 | 5802 | if test "x$ac_cv_func_gettimeofday" = xyes; then : |
729e4ab9 A |
5803 | cat >>confdefs.h <<_ACEOF |
5804 | #define HAVE_GETTIMEOFDAY 1 | |
5805 | _ACEOF | |
5806 | ||
5807 | fi | |
5808 | done | |
5809 | ||
5810 | ||
4388f060 | 5811 | |
729e4ab9 A |
5812 | # Check whether to use the evil rpath or not |
5813 | # Check whether --enable-rpath was given. | |
5814 | if test "${enable_rpath+set}" = set; then : | |
5815 | enableval=$enable_rpath; case "${enableval}" in | |
5816 | yes|"") ENABLE_RPATH=YES ;; | |
5817 | no) ;; | |
5818 | *) ;; | |
5819 | esac | |
b75a7d8f | 5820 | else |
729e4ab9 A |
5821 | ENABLE_RPATH=NO |
5822 | ||
b75a7d8f A |
5823 | fi |
5824 | ||
729e4ab9 A |
5825 | |
5826 | ||
5827 | ||
b75a7d8f | 5828 | |
729e4ab9 | 5829 | ac_ext=cpp |
b75a7d8f | 5830 | ac_cpp='$CXXCPP $CPPFLAGS' |
73c04bcf A |
5831 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
5832 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5833 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
5834 | ||
729e4ab9 A |
5835 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have a C++ compiler" >&5 |
5836 | $as_echo_n "checking if we have a C++ compiler... " >&6; } | |
5837 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
73c04bcf | 5838 | /* end confdefs.h. */ |
73c04bcf A |
5839 | |
5840 | int | |
5841 | main () | |
5842 | { | |
729e4ab9 | 5843 | |
73c04bcf A |
5844 | ; |
5845 | return 0; | |
5846 | } | |
5847 | _ACEOF | |
729e4ab9 A |
5848 | if ac_fn_cxx_try_compile "$LINENO"; then : |
5849 | cxx_okay=yes | |
b75a7d8f | 5850 | else |
729e4ab9 | 5851 | cxx_okay=no |
b75a7d8f | 5852 | fi |
729e4ab9 A |
5853 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5854 | if test $cxx_okay = yes | |
b75a7d8f | 5855 | then |
4388f060 A |
5856 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Good" >&5 |
5857 | $as_echo "Good" >&6; } | |
729e4ab9 A |
5858 | else |
5859 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5860 | $as_echo "no" >&6; } | |
5861 | as_fn_error $? "C++ compiler $CXX does not work or no compiler found" "$LINENO" 5 | |
b75a7d8f A |
5862 | fi |
5863 | ||
57a6839d A |
5864 | if [ "$GXX" = yes ]; then |
5865 | # if CXXFLAGS does not have a "-std=" setting, set it now to -std=c++0x, | |
5866 | # and check that the compiler still works. | |
5867 | if ! echo "$CXXFLAGS" | grep '\-std=' >/dev/null 2>&1; then | |
5868 | OLD_CXXFLAGS="${CXXFLAGS}" | |
5869 | CXXFLAGS="$CXXFLAGS --std=c++0x" | |
5870 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have a C++11 compiler" >&5 | |
5871 | $as_echo_n "checking if we have a C++11 compiler... " >&6; } | |
5872 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5873 | /* end confdefs.h. */ | |
5874 | ||
5875 | int | |
5876 | main () | |
5877 | { | |
5878 | ||
5879 | ; | |
5880 | return 0; | |
5881 | } | |
5882 | _ACEOF | |
5883 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
5884 | cxx11_okay=yes | |
5885 | else | |
5886 | cxx11_okay=no | |
5887 | fi | |
5888 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5889 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cxx11_okay" >&5 | |
5890 | $as_echo "$cxx11_okay" >&6; } | |
5891 | if [ $cxx11_okay = yes ]; then | |
5892 | { $as_echo "$as_me:${as_lineno-$LINENO}: Adding CXXFLAGS option --std=c++0x" >&5 | |
5893 | $as_echo "$as_me: Adding CXXFLAGS option --std=c++0x" >&6;} | |
5894 | UCONFIG_CXXFLAGS="${UCONFIG_CXXFLAGS} --std=c++0x" | |
5895 | else | |
5896 | CXXFLAGS="$OLD_CXXFLAGS" | |
5897 | fi | |
5898 | fi | |
5899 | fi | |
5900 | ||
729e4ab9 A |
5901 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if #include <string> works" >&5 |
5902 | $as_echo_n "checking if #include <string> works... " >&6; } | |
5903 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
73c04bcf | 5904 | /* end confdefs.h. */ |
729e4ab9 | 5905 | #include <string> |
73c04bcf A |
5906 | int |
5907 | main () | |
5908 | { | |
5909 | ||
5910 | ; | |
5911 | return 0; | |
5912 | } | |
5913 | _ACEOF | |
729e4ab9 A |
5914 | if ac_fn_cxx_try_compile "$LINENO"; then : |
5915 | ac_cv_header_stdstring=yes | |
b75a7d8f | 5916 | else |
729e4ab9 A |
5917 | ac_cv_header_stdstring=no |
5918 | fi | |
5919 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5920 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdstring" >&5 | |
5921 | $as_echo "$ac_cv_header_stdstring" >&6; } | |
5922 | if test $ac_cv_header_stdstring = yes | |
5923 | then | |
5924 | U_HAVE_STD_STRING=1 | |
4388f060 A |
5925 | else |
5926 | U_HAVE_STD_STRING=0 | |
5927 | CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_STD_STRING=0" | |
729e4ab9 A |
5928 | fi |
5929 | ||
57a6839d A |
5930 | |
5931 | ||
5932 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if #include <atomic> works" >&5 | |
5933 | $as_echo_n "checking if #include <atomic> works... " >&6; } | |
5934 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5935 | /* end confdefs.h. */ | |
5936 | #include <atomic> | |
5937 | int | |
5938 | main () | |
5939 | { | |
5940 | ||
5941 | ; | |
5942 | return 0; | |
5943 | } | |
5944 | _ACEOF | |
5945 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
5946 | ac_cv_header_atomic=yes | |
5947 | else | |
5948 | ac_cv_header_atomic=no | |
5949 | fi | |
5950 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5951 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_atomic" >&5 | |
5952 | $as_echo "$ac_cv_header_atomic" >&6; } | |
5953 | if test $ac_cv_header_atomic = yes | |
5954 | then | |
5955 | U_HAVE_ATOMIC=1 | |
5956 | else | |
5957 | U_HAVE_ATOMIC=0 | |
5958 | fi | |
5959 | # Make this available via CPPFLAGS | |
5960 | CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_ATOMIC=${U_HAVE_ATOMIC}" | |
5961 | ||
5962 | ||
729e4ab9 A |
5963 | ac_ext=c |
5964 | ac_cpp='$CPP $CPPFLAGS' | |
5965 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5966 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5967 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5968 | ||
5969 | ||
51004dcb | 5970 | # Always build ICU with multi-threading support. |
729e4ab9 | 5971 | threads=true |
51004dcb | 5972 | ICU_USE_THREADS=1 |
729e4ab9 A |
5973 | OLD_LIBS=${LIBS} |
5974 | ||
5975 | if test $threads = true; then | |
5976 | # For Compaq Tru64 (OSF1), we must look for pthread_attr_init | |
5977 | # and must do this before seaching for pthread_mutex_destroy, or | |
5978 | # we will pick up libpthreads.so not libpthread.so | |
5979 | # If this fails, then we must test for HPUX specials, before | |
5980 | # moving on to a more generic test | |
5981 | ||
5982 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_attr_init in -lpthread" >&5 | |
5983 | $as_echo_n "checking for pthread_attr_init in -lpthread... " >&6; } | |
4388f060 | 5984 | if ${ac_cv_lib_pthread_pthread_attr_init+:} false; then : |
729e4ab9 | 5985 | $as_echo_n "(cached) " >&6 |
73c04bcf | 5986 | else |
729e4ab9 A |
5987 | ac_check_lib_save_LIBS=$LIBS |
5988 | LIBS="-lpthread $LIBS" | |
5989 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
73c04bcf | 5990 | /* end confdefs.h. */ |
73c04bcf | 5991 | |
729e4ab9 A |
5992 | /* Override any GCC internal prototype to avoid an error. |
5993 | Use char because int might match the return type of a GCC | |
5994 | builtin and then its argument prototype would still apply. */ | |
5995 | #ifdef __cplusplus | |
5996 | extern "C" | |
5997 | #endif | |
5998 | char pthread_attr_init (); | |
73c04bcf A |
5999 | int |
6000 | main () | |
6001 | { | |
729e4ab9 | 6002 | return pthread_attr_init (); |
73c04bcf A |
6003 | ; |
6004 | return 0; | |
6005 | } | |
6006 | _ACEOF | |
729e4ab9 A |
6007 | if ac_fn_c_try_link "$LINENO"; then : |
6008 | ac_cv_lib_pthread_pthread_attr_init=yes | |
b75a7d8f | 6009 | else |
729e4ab9 | 6010 | ac_cv_lib_pthread_pthread_attr_init=no |
b75a7d8f | 6011 | fi |
729e4ab9 A |
6012 | rm -f core conftest.err conftest.$ac_objext \ |
6013 | conftest$ac_exeext conftest.$ac_ext | |
6014 | LIBS=$ac_check_lib_save_LIBS | |
b75a7d8f | 6015 | fi |
729e4ab9 A |
6016 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_attr_init" >&5 |
6017 | $as_echo "$ac_cv_lib_pthread_pthread_attr_init" >&6; } | |
4388f060 | 6018 | if test "x$ac_cv_lib_pthread_pthread_attr_init" = xyes; then : |
729e4ab9 A |
6019 | cat >>confdefs.h <<_ACEOF |
6020 | #define HAVE_LIBPTHREAD 1 | |
6021 | _ACEOF | |
b75a7d8f | 6022 | |
729e4ab9 | 6023 | LIBS="-lpthread $LIBS" |
b75a7d8f | 6024 | |
729e4ab9 | 6025 | fi |
b75a7d8f | 6026 | |
729e4ab9 A |
6027 | if test $ac_cv_lib_pthread_pthread_attr_init = yes; then |
6028 | ICU_USE_THREADS=1 | |
6029 | else | |
6030 | # Locate the right library for POSIX threads. We look for the | |
6031 | # symbols in the libraries first, because on Solaris libc provides | |
6032 | # pthread_create but libpthread has the real code :( | |
6033 | # AIX uses libpthreads instead of libpthread, and HP/UX uses libpthread | |
6034 | # FreeBSD users may need libpthread if they do not have libc_r. | |
b75a7d8f | 6035 | |
73c04bcf | 6036 | |
729e4ab9 A |
6037 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_mutex_destroy" >&5 |
6038 | $as_echo_n "checking for library containing pthread_mutex_destroy... " >&6; } | |
4388f060 | 6039 | if ${ac_cv_search_pthread_mutex_destroy+:} false; then : |
729e4ab9 | 6040 | $as_echo_n "(cached) " >&6 |
73c04bcf | 6041 | else |
729e4ab9 A |
6042 | ac_func_search_save_LIBS="$LIBS" |
6043 | ac_cv_search_pthread_mutex_destroy="no" | |
6044 | for i in pthread pthreads c_r ; do | |
6045 | LIBS="-l$i $ac_func_search_save_LIBS" | |
6046 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
73c04bcf | 6047 | /* end confdefs.h. */ |
b75a7d8f | 6048 | |
729e4ab9 A |
6049 | /* Override any GCC internal prototype to avoid an error. |
6050 | Use char because int might match the return type of a GCC | |
6051 | builtin and then its argument prototype would still apply. */ | |
73c04bcf A |
6052 | #ifdef __cplusplus |
6053 | extern "C" | |
73c04bcf | 6054 | #endif |
729e4ab9 A |
6055 | char pthread_mutex_destroy (); |
6056 | int | |
6057 | main () | |
6058 | { | |
6059 | return pthread_mutex_destroy (); | |
6060 | ; | |
6061 | return 0; | |
6062 | } | |
6063 | _ACEOF | |
6064 | if ac_fn_c_try_link "$LINENO"; then : | |
6065 | ac_cv_search_pthread_mutex_destroy="-l$i" | |
6066 | break | |
6067 | fi | |
6068 | rm -f core conftest.err conftest.$ac_objext \ | |
6069 | conftest$ac_exeext conftest.$ac_ext | |
6070 | done | |
6071 | if test "$ac_cv_search_pthread_mutex_destroy" = "no"; then | |
6072 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6073 | /* end confdefs.h. */ | |
6074 | ||
6075 | /* Override any GCC internal prototype to avoid an error. | |
6076 | Use char because int might match the return type of a GCC | |
73c04bcf | 6077 | builtin and then its argument prototype would still apply. */ |
729e4ab9 A |
6078 | #ifdef __cplusplus |
6079 | extern "C" | |
73c04bcf | 6080 | #endif |
729e4ab9 A |
6081 | char pthread_mutex_destroy (); |
6082 | int | |
6083 | main () | |
6084 | { | |
6085 | return pthread_mutex_destroy (); | |
6086 | ; | |
6087 | return 0; | |
6088 | } | |
6089 | _ACEOF | |
6090 | if ac_fn_c_try_link "$LINENO"; then : | |
6091 | ac_cv_search_pthread_mutex_destroy="none required" | |
6092 | fi | |
6093 | rm -f core conftest.err conftest.$ac_objext \ | |
6094 | conftest$ac_exeext conftest.$ac_ext | |
6095 | fi | |
6096 | LIBS="$ac_func_search_save_LIBS" | |
6097 | fi | |
6098 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_mutex_destroy" >&5 | |
6099 | $as_echo "$ac_cv_search_pthread_mutex_destroy" >&6; } | |
6100 | if test "$ac_cv_search_pthread_mutex_destroy" != "no"; then | |
6101 | test "$ac_cv_search_pthread_mutex_destroy" = "none required" || LIBS="$ac_cv_search_pthread_mutex_destroy $LIBS" | |
6102 | ||
6103 | else : | |
6104 | ||
6105 | fi | |
6106 | ||
6107 | if test "$ac_cv_search_pthread_mutex_destroy" != no; then | |
6108 | ICU_USE_THREADS=1 | |
6109 | else | |
6110 | # For HP 11 | |
6111 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_init in -lpthread" >&5 | |
6112 | $as_echo_n "checking for pthread_mutex_init in -lpthread... " >&6; } | |
4388f060 | 6113 | if ${ac_cv_lib_pthread_pthread_mutex_init+:} false; then : |
729e4ab9 A |
6114 | $as_echo_n "(cached) " >&6 |
6115 | else | |
6116 | ac_check_lib_save_LIBS=$LIBS | |
6117 | LIBS="-lpthread $LIBS" | |
6118 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6119 | /* end confdefs.h. */ | |
6120 | ||
6121 | /* Override any GCC internal prototype to avoid an error. | |
6122 | Use char because int might match the return type of a GCC | |
6123 | builtin and then its argument prototype would still apply. */ | |
73c04bcf | 6124 | #ifdef __cplusplus |
729e4ab9 | 6125 | extern "C" |
b75a7d8f | 6126 | #endif |
729e4ab9 | 6127 | char pthread_mutex_init (); |
73c04bcf A |
6128 | int |
6129 | main () | |
6130 | { | |
729e4ab9 | 6131 | return pthread_mutex_init (); |
73c04bcf A |
6132 | ; |
6133 | return 0; | |
6134 | } | |
6135 | _ACEOF | |
729e4ab9 A |
6136 | if ac_fn_c_try_link "$LINENO"; then : |
6137 | ac_cv_lib_pthread_pthread_mutex_init=yes | |
73c04bcf | 6138 | else |
729e4ab9 A |
6139 | ac_cv_lib_pthread_pthread_mutex_init=no |
6140 | fi | |
6141 | rm -f core conftest.err conftest.$ac_objext \ | |
6142 | conftest$ac_exeext conftest.$ac_ext | |
6143 | LIBS=$ac_check_lib_save_LIBS | |
6144 | fi | |
6145 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5 | |
6146 | $as_echo "$ac_cv_lib_pthread_pthread_mutex_init" >&6; } | |
4388f060 | 6147 | if test "x$ac_cv_lib_pthread_pthread_mutex_init" = xyes; then : |
729e4ab9 A |
6148 | cat >>confdefs.h <<_ACEOF |
6149 | #define HAVE_LIBPTHREAD 1 | |
6150 | _ACEOF | |
6151 | ||
6152 | LIBS="-lpthread $LIBS" | |
73c04bcf | 6153 | |
73c04bcf | 6154 | fi |
729e4ab9 A |
6155 | |
6156 | if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then | |
6157 | ICU_USE_THREADS=1 | |
6158 | fi | |
6159 | fi | |
6160 | ||
6161 | ac_fn_c_check_func "$LINENO" "pthread_mutex_lock" "ac_cv_func_pthread_mutex_lock" | |
4388f060 | 6162 | if test "x$ac_cv_func_pthread_mutex_lock" = xyes; then : |
729e4ab9 | 6163 | |
73c04bcf | 6164 | fi |
b75a7d8f | 6165 | |
729e4ab9 A |
6166 | |
6167 | if test $ac_cv_func_pthread_mutex_lock = yes; then | |
6168 | ICU_USE_THREADS=1 | |
6169 | fi | |
6170 | fi | |
6171 | # Check to see if we are using CygWin with MSVC | |
6172 | case "${host}" in | |
6173 | *-pc-cygwin*|*-pc-mingw*) | |
6174 | # For gcc, the thread options are set by mh-mingw/mh-cygwin | |
6175 | # For msvc, the thread options are set by runConfigureICU | |
6176 | ICU_USE_THREADS=1 | |
6177 | ;; | |
6178 | *-*-hpux*) | |
6179 | # Add -mt because it does several nice things on newer compilers. | |
6180 | case "${icu_cv_host_frag}" in | |
6181 | mh-hpux-acc) | |
6182 | OLD_CXXFLAGS="${CXXFLAGS}" | |
6183 | CXXFLAGS="${CXXFLAGS} -mt" | |
6184 | if test x"`${CXX} ${CXXFLAGS} 2>&1`" != x""; then | |
6185 | CXXFLAGS="${OLD_CXXFLAGS}" | |
57a6839d A |
6186 | else |
6187 | UCONFIG_CXXFLAGS="${UCONFIG_CXXFLAGS} -mt" | |
6188 | fi | |
729e4ab9 A |
6189 | ;; |
6190 | esac | |
6191 | ;; | |
6192 | *-*-solaris*) | |
6193 | case "${icu_cv_host_frag}" in | |
6194 | mh-solaris) | |
6195 | LIBS="${LIBS} -mt" | |
6196 | ;; | |
6197 | esac | |
6198 | ;; | |
6199 | esac | |
b75a7d8f A |
6200 | fi |
6201 | ||
729e4ab9 A |
6202 | # Check whether --enable-weak-threads was given. |
6203 | if test "${enable_weak_threads+set}" = set; then : | |
6204 | enableval=$enable_weak_threads; case "${enableval}" in | |
6205 | yes) | |
6206 | LIB_THREAD="${LIBS%${OLD_LIBS}}" | |
6207 | LIBS=${OLD_LIBS} | |
6208 | ;; | |
6209 | no) ;; | |
6210 | *) as_fn_error $? "bad value ${enableval} for --enable-weak-threads" "$LINENO" 5 ;; | |
6211 | esac | |
6212 | fi | |
73c04bcf | 6213 | |
b75a7d8f | 6214 | |
b75a7d8f | 6215 | |
729e4ab9 | 6216 | # Check for mmap() |
b75a7d8f | 6217 | |
729e4ab9 A |
6218 | # The AC_FUNC_MMAP macro doesn't work properly. It seems to be too specific. |
6219 | # Do this check instead. | |
6220 | HAVE_MMAP=0 | |
6221 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mmap" >&5 | |
6222 | $as_echo_n "checking for mmap... " >&6; } | |
4388f060 | 6223 | if ${ac_cv_func_mmap_ok+:} false; then : |
729e4ab9 A |
6224 | $as_echo_n "(cached) " >&6 |
6225 | else | |
6226 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6227 | /* end confdefs.h. */ | |
6228 | #include <unistd.h> | |
6229 | #include <sys/mman.h> | |
6230 | #include <sys/stat.h> | |
6231 | #include <fcntl.h> | |
73c04bcf A |
6232 | int |
6233 | main () | |
6234 | { | |
729e4ab9 | 6235 | mmap((void *)0, 0, PROT_READ, 0, 0, 0); |
73c04bcf A |
6236 | ; |
6237 | return 0; | |
6238 | } | |
6239 | _ACEOF | |
729e4ab9 A |
6240 | if ac_fn_c_try_link "$LINENO"; then : |
6241 | ac_cv_func_mmap_ok=yes | |
73c04bcf | 6242 | else |
729e4ab9 | 6243 | ac_cv_func_mmap_ok=no |
73c04bcf | 6244 | fi |
729e4ab9 A |
6245 | rm -f core conftest.err conftest.$ac_objext \ |
6246 | conftest$ac_exeext conftest.$ac_ext | |
73c04bcf | 6247 | fi |
b75a7d8f | 6248 | |
729e4ab9 A |
6249 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_ok" >&5 |
6250 | $as_echo "$ac_cv_func_mmap_ok" >&6; } | |
6251 | if test $ac_cv_func_mmap_ok = yes | |
b75a7d8f | 6252 | then |
729e4ab9 | 6253 | HAVE_MMAP=1 |
4388f060 A |
6254 | else |
6255 | CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_MMAP=0" | |
729e4ab9 | 6256 | fi |
73c04bcf | 6257 | |
73c04bcf | 6258 | |
729e4ab9 A |
6259 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for genccode assembly" >&5 |
6260 | $as_echo_n "checking for genccode assembly... " >&6; } | |
6261 | ||
6262 | # Check to see if genccode can generate simple assembly. | |
6263 | GENCCODE_ASSEMBLY= | |
6264 | case "${host}" in | |
4388f060 | 6265 | *-linux*|*-kfreebsd*-gnu*|i*86-*-*bsd*|i*86-pc-gnu) |
729e4ab9 A |
6266 | if test "$GCC" = yes; then |
6267 | # We're using gcc, and the simple -a gcc command line works for genccode | |
6268 | GENCCODE_ASSEMBLY="-a gcc" | |
6269 | fi ;; | |
6270 | i*86-*-solaris*) | |
6271 | if test "$GCC" = yes; then | |
6272 | # When using gcc, look if we're also using GNU as. | |
6273 | # When using GNU as, the simple -a gcc command line works for genccode. | |
6274 | asv=`"${CC}" -print-prog-name=as 2>/dev/null` | |
6275 | asv=`"${asv}" --version 2>/dev/null` | |
6276 | case "X${asv}" in | |
6277 | X*GNU*) GENCCODE_ASSEMBLY="-a gcc" ;; | |
6278 | X*) GENCCODE_ASSEMBLY="-a sun-x86" ;; | |
6279 | esac | |
6280 | unset asv | |
6281 | else | |
6282 | GENCCODE_ASSEMBLY="-a sun-x86" | |
6283 | fi ;; | |
6284 | sparc-*-solaris*) | |
6285 | GENCCODE_ASSEMBLY="-a sun" | |
6286 | ;; | |
6287 | ia64-*-hpux*) | |
6288 | GENCCODE_ASSEMBLY="-a aCC-ia64" | |
6289 | ;; | |
6290 | esac | |
b75a7d8f | 6291 | |
b75a7d8f | 6292 | |
729e4ab9 A |
6293 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENCCODE_ASSEMBLY" >&5 |
6294 | $as_echo "$GENCCODE_ASSEMBLY" >&6; } | |
b75a7d8f | 6295 | |
729e4ab9 A |
6296 | # Checks for header files |
6297 | for ac_header in inttypes.h | |
6298 | do : | |
6299 | ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default" | |
4388f060 | 6300 | if test "x$ac_cv_header_inttypes_h" = xyes; then : |
729e4ab9 A |
6301 | cat >>confdefs.h <<_ACEOF |
6302 | #define HAVE_INTTYPES_H 1 | |
73c04bcf | 6303 | _ACEOF |
73c04bcf | 6304 | |
73c04bcf | 6305 | fi |
729e4ab9 A |
6306 | |
6307 | done | |
6308 | ||
6309 | if test $ac_cv_header_inttypes_h = no; then | |
6310 | U_HAVE_INTTYPES_H=0 | |
4388f060 | 6311 | CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_INTTYPES_H=0" |
729e4ab9 A |
6312 | else |
6313 | U_HAVE_INTTYPES_H=1 | |
6314 | fi | |
6315 | if test "$CC" = ccc; then | |
6316 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"C compiler set to CCC ${CC}\" " >&5 | |
6317 | $as_echo "\"C compiler set to CCC ${CC}\" " >&6; } | |
6318 | case "${host}" in | |
6319 | alpha*-*-*) U_HAVE_INTTYPES_H=0; | |
4388f060 | 6320 | CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_INTTYPES_H=0" |
729e4ab9 A |
6321 | esac |
6322 | fi | |
6323 | ||
6324 | ||
6325 | ||
6326 | for ac_header in dirent.h | |
6327 | do : | |
6328 | ac_fn_c_check_header_mongrel "$LINENO" "dirent.h" "ac_cv_header_dirent_h" "$ac_includes_default" | |
4388f060 | 6329 | if test "x$ac_cv_header_dirent_h" = xyes; then : |
729e4ab9 A |
6330 | cat >>confdefs.h <<_ACEOF |
6331 | #define HAVE_DIRENT_H 1 | |
6332 | _ACEOF | |
6333 | ||
73c04bcf | 6334 | fi |
b75a7d8f | 6335 | |
729e4ab9 A |
6336 | done |
6337 | ||
6338 | if test $ac_cv_header_dirent_h = no; then | |
6339 | U_HAVE_DIRENT_H=0 | |
4388f060 | 6340 | CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_DIRENT_H=0" |
729e4ab9 A |
6341 | else |
6342 | U_HAVE_DIRENT_H=1 | |
b75a7d8f A |
6343 | fi |
6344 | ||
374ca955 A |
6345 | |
6346 | ||
729e4ab9 A |
6347 | # Check for endianness |
6348 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 | |
6349 | $as_echo_n "checking whether byte ordering is bigendian... " >&6; } | |
4388f060 | 6350 | if ${ac_cv_c_bigendian+:} false; then : |
729e4ab9 | 6351 | $as_echo_n "(cached) " >&6 |
b75a7d8f | 6352 | else |
729e4ab9 A |
6353 | ac_cv_c_bigendian=unknown |
6354 | # See if we're dealing with a universal compiler. | |
6355 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
73c04bcf | 6356 | /* end confdefs.h. */ |
729e4ab9 A |
6357 | #ifndef __APPLE_CC__ |
6358 | not a universal capable compiler | |
6359 | #endif | |
6360 | typedef int dummy; | |
6361 | ||
6362 | _ACEOF | |
6363 | if ac_fn_c_try_compile "$LINENO"; then : | |
6364 | ||
6365 | # Check for potential -arch flags. It is not universal unless | |
6366 | # there are at least two -arch flags with different values. | |
6367 | ac_arch= | |
6368 | ac_prev= | |
6369 | for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do | |
6370 | if test -n "$ac_prev"; then | |
6371 | case $ac_word in | |
6372 | i?86 | x86_64 | ppc | ppc64) | |
6373 | if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then | |
6374 | ac_arch=$ac_word | |
6375 | else | |
6376 | ac_cv_c_bigendian=universal | |
6377 | break | |
6378 | fi | |
6379 | ;; | |
6380 | esac | |
6381 | ac_prev= | |
6382 | elif test "x$ac_word" = "x-arch"; then | |
6383 | ac_prev=arch | |
6384 | fi | |
6385 | done | |
6386 | fi | |
6387 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6388 | if test $ac_cv_c_bigendian = unknown; then | |
6389 | # See if sys/param.h defines the BYTE_ORDER macro. | |
6390 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6391 | /* end confdefs.h. */ | |
6392 | #include <sys/types.h> | |
6393 | #include <sys/param.h> | |
b75a7d8f | 6394 | |
73c04bcf A |
6395 | int |
6396 | main () | |
6397 | { | |
729e4ab9 A |
6398 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ |
6399 | && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ | |
6400 | && LITTLE_ENDIAN) | |
6401 | bogus endian macros | |
6402 | #endif | |
6403 | ||
73c04bcf A |
6404 | ; |
6405 | return 0; | |
6406 | } | |
6407 | _ACEOF | |
729e4ab9 A |
6408 | if ac_fn_c_try_compile "$LINENO"; then : |
6409 | # It does; now see whether it defined to BIG_ENDIAN or not. | |
6410 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
73c04bcf | 6411 | /* end confdefs.h. */ |
729e4ab9 A |
6412 | #include <sys/types.h> |
6413 | #include <sys/param.h> | |
6414 | ||
73c04bcf A |
6415 | int |
6416 | main () | |
6417 | { | |
729e4ab9 A |
6418 | #if BYTE_ORDER != BIG_ENDIAN |
6419 | not big endian | |
6420 | #endif | |
6421 | ||
73c04bcf A |
6422 | ; |
6423 | return 0; | |
6424 | } | |
6425 | _ACEOF | |
729e4ab9 A |
6426 | if ac_fn_c_try_compile "$LINENO"; then : |
6427 | ac_cv_c_bigendian=yes | |
b75a7d8f | 6428 | else |
729e4ab9 | 6429 | ac_cv_c_bigendian=no |
b75a7d8f | 6430 | fi |
729e4ab9 | 6431 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
b75a7d8f | 6432 | fi |
729e4ab9 A |
6433 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
6434 | fi | |
6435 | if test $ac_cv_c_bigendian = unknown; then | |
6436 | # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). | |
6437 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
73c04bcf | 6438 | /* end confdefs.h. */ |
729e4ab9 A |
6439 | #include <limits.h> |
6440 | ||
73c04bcf A |
6441 | int |
6442 | main () | |
6443 | { | |
729e4ab9 A |
6444 | #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) |
6445 | bogus endian macros | |
6446 | #endif | |
6447 | ||
73c04bcf A |
6448 | ; |
6449 | return 0; | |
6450 | } | |
6451 | _ACEOF | |
729e4ab9 A |
6452 | if ac_fn_c_try_compile "$LINENO"; then : |
6453 | # It does; now see whether it defined to _BIG_ENDIAN or not. | |
6454 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
73c04bcf | 6455 | /* end confdefs.h. */ |
729e4ab9 A |
6456 | #include <limits.h> |
6457 | ||
73c04bcf A |
6458 | int |
6459 | main () | |
6460 | { | |
729e4ab9 A |
6461 | #ifndef _BIG_ENDIAN |
6462 | not big endian | |
6463 | #endif | |
6464 | ||
73c04bcf A |
6465 | ; |
6466 | return 0; | |
6467 | } | |
6468 | _ACEOF | |
729e4ab9 A |
6469 | if ac_fn_c_try_compile "$LINENO"; then : |
6470 | ac_cv_c_bigendian=yes | |
b75a7d8f | 6471 | else |
729e4ab9 | 6472 | ac_cv_c_bigendian=no |
b75a7d8f | 6473 | fi |
729e4ab9 | 6474 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
b75a7d8f | 6475 | fi |
729e4ab9 A |
6476 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
6477 | fi | |
6478 | if test $ac_cv_c_bigendian = unknown; then | |
6479 | # Compile a test program. | |
6480 | if test "$cross_compiling" = yes; then : | |
6481 | # Try to guess by grepping values from an object file. | |
6482 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
73c04bcf | 6483 | /* end confdefs.h. */ |
729e4ab9 A |
6484 | short int ascii_mm[] = |
6485 | { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; | |
6486 | short int ascii_ii[] = | |
6487 | { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; | |
6488 | int use_ascii (int i) { | |
6489 | return ascii_mm[i] + ascii_ii[i]; | |
6490 | } | |
6491 | short int ebcdic_ii[] = | |
6492 | { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; | |
6493 | short int ebcdic_mm[] = | |
6494 | { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; | |
6495 | int use_ebcdic (int i) { | |
6496 | return ebcdic_mm[i] + ebcdic_ii[i]; | |
6497 | } | |
6498 | extern int foo; | |
6499 | ||
73c04bcf A |
6500 | int |
6501 | main () | |
6502 | { | |
729e4ab9 | 6503 | return use_ascii (foo) == use_ebcdic (foo); |
73c04bcf A |
6504 | ; |
6505 | return 0; | |
6506 | } | |
6507 | _ACEOF | |
729e4ab9 A |
6508 | if ac_fn_c_try_compile "$LINENO"; then : |
6509 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then | |
6510 | ac_cv_c_bigendian=yes | |
6511 | fi | |
6512 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then | |
6513 | if test "$ac_cv_c_bigendian" = unknown; then | |
6514 | ac_cv_c_bigendian=no | |
6515 | else | |
6516 | # finding both strings is unlikely to happen, but who knows? | |
6517 | ac_cv_c_bigendian=unknown | |
6518 | fi | |
6519 | fi | |
6520 | fi | |
6521 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6522 | else | |
6523 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
73c04bcf A |
6524 | /* end confdefs.h. */ |
6525 | $ac_includes_default | |
6526 | int | |
6527 | main () | |
6528 | { | |
729e4ab9 A |
6529 | |
6530 | /* Are we little or big endian? From Harbison&Steele. */ | |
6531 | union | |
6532 | { | |
6533 | long int l; | |
6534 | char c[sizeof (long int)]; | |
6535 | } u; | |
6536 | u.l = 1; | |
6537 | return u.c[sizeof (long int) - 1] == 1; | |
6538 | ||
73c04bcf A |
6539 | ; |
6540 | return 0; | |
6541 | } | |
6542 | _ACEOF | |
729e4ab9 A |
6543 | if ac_fn_c_try_run "$LINENO"; then : |
6544 | ac_cv_c_bigendian=no | |
b75a7d8f | 6545 | else |
729e4ab9 | 6546 | ac_cv_c_bigendian=yes |
b75a7d8f | 6547 | fi |
729e4ab9 A |
6548 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
6549 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
73c04bcf | 6550 | fi |
b75a7d8f | 6551 | |
729e4ab9 | 6552 | fi |
b75a7d8f | 6553 | fi |
729e4ab9 A |
6554 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 |
6555 | $as_echo "$ac_cv_c_bigendian" >&6; } | |
6556 | case $ac_cv_c_bigendian in #( | |
6557 | yes) | |
6558 | $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h | |
6559 | ;; #( | |
6560 | no) | |
6561 | ;; #( | |
6562 | universal) | |
6563 | ||
6564 | $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h | |
6565 | ||
6566 | ;; #( | |
6567 | *) | |
6568 | as_fn_error $? "unknown endianness | |
6569 | presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; | |
6570 | esac | |
b75a7d8f | 6571 | |
729e4ab9 A |
6572 | if test $ac_cv_c_bigendian = no; then |
6573 | U_IS_BIG_ENDIAN=0 | |
6574 | U_ENDIAN_CHAR="l" | |
b75a7d8f | 6575 | else |
729e4ab9 A |
6576 | U_IS_BIG_ENDIAN=1 |
6577 | U_ENDIAN_CHAR="b" | |
73c04bcf | 6578 | fi |
73c04bcf | 6579 | |
b75a7d8f | 6580 | |
729e4ab9 A |
6581 | # Do various POSIX related checks |
6582 | U_HAVE_NL_LANGINFO_CODESET=0 | |
6583 | U_NL_LANGINFO_CODESET=-1 | |
6584 | ac_fn_c_check_func "$LINENO" "nl_langinfo" "ac_cv_func_nl_langinfo" | |
4388f060 | 6585 | if test "x$ac_cv_func_nl_langinfo" = xyes; then : |
729e4ab9 A |
6586 | U_HAVE_NL_LANGINFO=1 |
6587 | else | |
6588 | U_HAVE_NL_LANGINFO=0 | |
b75a7d8f A |
6589 | fi |
6590 | ||
729e4ab9 A |
6591 | if test $U_HAVE_NL_LANGINFO -eq 1; then |
6592 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo's argument to obtain the codeset" >&5 | |
6593 | $as_echo_n "checking for nl_langinfo's argument to obtain the codeset... " >&6; } | |
4388f060 | 6594 | if ${ac_cv_nl_langinfo_codeset+:} false; then : |
729e4ab9 | 6595 | $as_echo_n "(cached) " >&6 |
b75a7d8f | 6596 | else |
729e4ab9 A |
6597 | ac_cv_nl_langinfo_codeset="unknown" |
6598 | for a in CODESET _NL_CTYPE_CODESET_NAME; do | |
6599 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
73c04bcf | 6600 | /* end confdefs.h. */ |
729e4ab9 | 6601 | #include <langinfo.h> |
73c04bcf A |
6602 | int |
6603 | main () | |
6604 | { | |
729e4ab9 | 6605 | nl_langinfo($a); |
73c04bcf A |
6606 | ; |
6607 | return 0; | |
6608 | } | |
6609 | _ACEOF | |
729e4ab9 A |
6610 | if ac_fn_c_try_link "$LINENO"; then : |
6611 | ac_cv_nl_langinfo_codeset="$a"; break | |
b75a7d8f | 6612 | fi |
729e4ab9 A |
6613 | rm -f core conftest.err conftest.$ac_objext \ |
6614 | conftest$ac_exeext conftest.$ac_ext | |
6615 | done | |
6616 | fi | |
6617 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_nl_langinfo_codeset" >&5 | |
6618 | $as_echo "$ac_cv_nl_langinfo_codeset" >&6; } | |
6619 | if test x$ac_cv_nl_langinfo_codeset != xunknown | |
6620 | then | |
6621 | U_HAVE_NL_LANGINFO_CODESET=1 | |
6622 | U_NL_LANGINFO_CODESET=$ac_cv_nl_langinfo_codeset | |
4388f060 A |
6623 | if test "x${ac_cv_nl_langinfo_codeset}" != "xCODESET" |
6624 | then | |
6625 | CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DNL_LANGINFO_CODESET=${ac_cv_nl_langinfo_codeset}" | |
6626 | fi | |
6627 | else | |
6628 | CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_NL_LANGINFO_CODESET=0" | |
729e4ab9 | 6629 | fi |
73c04bcf | 6630 | fi |
73c04bcf | 6631 | |
b75a7d8f | 6632 | |
b75a7d8f | 6633 | |
729e4ab9 A |
6634 | # Namespace support checks |
6635 | ac_ext=cpp | |
6636 | ac_cpp='$CXXCPP $CPPFLAGS' | |
6637 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6638 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6639 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
6640 | ||
6641 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for namespace support" >&5 | |
6642 | $as_echo_n "checking for namespace support... " >&6; } | |
4388f060 | 6643 | if ${ac_cv_namespace_ok+:} false; then : |
729e4ab9 | 6644 | $as_echo_n "(cached) " >&6 |
b75a7d8f | 6645 | else |
729e4ab9 | 6646 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
73c04bcf | 6647 | /* end confdefs.h. */ |
729e4ab9 A |
6648 | namespace x_version {void f(){}} |
6649 | namespace x = x_version; | |
6650 | using namespace x_version; | |
6651 | ||
73c04bcf A |
6652 | int |
6653 | main () | |
729e4ab9 A |
6654 | { |
6655 | f(); | |
73c04bcf A |
6656 | ; |
6657 | return 0; | |
6658 | } | |
6659 | _ACEOF | |
729e4ab9 A |
6660 | if ac_fn_cxx_try_link "$LINENO"; then : |
6661 | ac_cv_namespace_ok=yes | |
b75a7d8f | 6662 | else |
729e4ab9 | 6663 | ac_cv_namespace_ok=no |
b75a7d8f | 6664 | fi |
729e4ab9 A |
6665 | rm -f core conftest.err conftest.$ac_objext \ |
6666 | conftest$ac_exeext conftest.$ac_ext | |
73c04bcf | 6667 | fi |
b75a7d8f | 6668 | |
729e4ab9 A |
6669 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_namespace_ok" >&5 |
6670 | $as_echo "$ac_cv_namespace_ok" >&6; } | |
729e4ab9 A |
6671 | if test $ac_cv_namespace_ok = no |
6672 | then | |
4388f060 | 6673 | as_fn_error $? "Namespace support is required to build ICU." "$LINENO" 5 |
b75a7d8f A |
6674 | fi |
6675 | ||
729e4ab9 A |
6676 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for properly overriding new and delete" >&5 |
6677 | $as_echo_n "checking for properly overriding new and delete... " >&6; } | |
6678 | U_OVERRIDE_CXX_ALLOCATION=0 | |
6679 | U_HAVE_PLACEMENT_NEW=0 | |
4388f060 | 6680 | if ${ac_cv_override_cxx_allocation_ok+:} false; then : |
729e4ab9 | 6681 | $as_echo_n "(cached) " >&6 |
b75a7d8f | 6682 | else |
729e4ab9 | 6683 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
73c04bcf | 6684 | /* end confdefs.h. */ |
729e4ab9 A |
6685 | #include <stdlib.h> |
6686 | class UMemory { | |
6687 | public: | |
6688 | void *operator new(size_t size) {return malloc(size);} | |
6689 | void *operator new[](size_t size) {return malloc(size);} | |
6690 | void operator delete(void *p) {free(p);} | |
6691 | void operator delete[](void *p) {free(p);} | |
6692 | }; | |
6693 | ||
73c04bcf A |
6694 | int |
6695 | main () | |
6696 | { | |
729e4ab9 | 6697 | |
73c04bcf A |
6698 | ; |
6699 | return 0; | |
6700 | } | |
6701 | _ACEOF | |
729e4ab9 A |
6702 | if ac_fn_cxx_try_link "$LINENO"; then : |
6703 | ac_cv_override_cxx_allocation_ok=yes | |
b75a7d8f | 6704 | else |
729e4ab9 | 6705 | ac_cv_override_cxx_allocation_ok=no |
b75a7d8f | 6706 | fi |
729e4ab9 A |
6707 | rm -f core conftest.err conftest.$ac_objext \ |
6708 | conftest$ac_exeext conftest.$ac_ext | |
b75a7d8f A |
6709 | fi |
6710 | ||
729e4ab9 A |
6711 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_override_cxx_allocation_ok" >&5 |
6712 | $as_echo "$ac_cv_override_cxx_allocation_ok" >&6; } | |
6713 | if test $ac_cv_override_cxx_allocation_ok = yes | |
6714 | then | |
6715 | U_OVERRIDE_CXX_ALLOCATION=1 | |
6716 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for placement new and delete" >&5 | |
6717 | $as_echo_n "checking for placement new and delete... " >&6; } | |
4388f060 | 6718 | if ${ac_cv_override_placement_new_ok+:} false; then : |
729e4ab9 | 6719 | $as_echo_n "(cached) " >&6 |
b75a7d8f | 6720 | else |
729e4ab9 | 6721 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
73c04bcf | 6722 | /* end confdefs.h. */ |
729e4ab9 A |
6723 | #include <stdlib.h> |
6724 | class UMemory { | |
6725 | public: | |
6726 | void *operator new(size_t size) {return malloc(size);} | |
6727 | void *operator new[](size_t size) {return malloc(size);} | |
6728 | void operator delete(void *p) {free(p);} | |
6729 | void operator delete[](void *p) {free(p);} | |
6730 | void * operator new(size_t, void *ptr) { return ptr; } | |
6731 | void operator delete(void *, void *) {} | |
6732 | }; | |
6733 | ||
73c04bcf A |
6734 | int |
6735 | main () | |
6736 | { | |
729e4ab9 | 6737 | |
73c04bcf A |
6738 | ; |
6739 | return 0; | |
6740 | } | |
6741 | _ACEOF | |
729e4ab9 A |
6742 | if ac_fn_cxx_try_link "$LINENO"; then : |
6743 | ac_cv_override_placement_new_ok=yes | |
b75a7d8f | 6744 | else |
729e4ab9 | 6745 | ac_cv_override_placement_new_ok=no |
b75a7d8f | 6746 | fi |
729e4ab9 A |
6747 | rm -f core conftest.err conftest.$ac_objext \ |
6748 | conftest$ac_exeext conftest.$ac_ext | |
73c04bcf | 6749 | fi |
b75a7d8f | 6750 | |
729e4ab9 A |
6751 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_override_placement_new_ok" >&5 |
6752 | $as_echo "$ac_cv_override_placement_new_ok" >&6; } | |
6753 | if test $ac_cv_override_placement_new_ok = yes | |
6754 | then | |
6755 | U_HAVE_PLACEMENT_NEW=1 | |
4388f060 A |
6756 | else |
6757 | CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_PLACEMENT_NEW=0" | |
729e4ab9 | 6758 | fi |
b75a7d8f | 6759 | else |
4388f060 | 6760 | CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_OVERRIDE_CXX_ALLOCATION=0" |
b75a7d8f | 6761 | fi |
4388f060 | 6762 | |
b75a7d8f A |
6763 | |
6764 | ||
729e4ab9 A |
6765 | ac_ext=c |
6766 | ac_cpp='$CPP $CPPFLAGS' | |
6767 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6768 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6769 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
b75a7d8f | 6770 | |
729e4ab9 | 6771 | ac_fn_c_check_func "$LINENO" "popen" "ac_cv_func_popen" |
4388f060 | 6772 | if test "x$ac_cv_func_popen" = xyes; then : |
b75a7d8f | 6773 | |
b75a7d8f A |
6774 | fi |
6775 | ||
729e4ab9 A |
6776 | if test x$ac_cv_func_popen = xyes |
6777 | then | |
6778 | U_HAVE_POPEN=1 | |
b75a7d8f | 6779 | else |
4388f060 | 6780 | CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_POPEN=0" |
729e4ab9 | 6781 | U_HAVE_POPEN=0 |
b75a7d8f A |
6782 | fi |
6783 | ||
6784 | ||
729e4ab9 | 6785 | ac_fn_c_check_func "$LINENO" "tzset" "ac_cv_func_tzset" |
4388f060 | 6786 | if test "x$ac_cv_func_tzset" = xyes; then : |
73c04bcf | 6787 | |
73c04bcf | 6788 | fi |
73c04bcf | 6789 | |
729e4ab9 A |
6790 | U_HAVE_TZSET=0 |
6791 | if test x$ac_cv_func_tzset = xyes | |
6792 | then | |
6793 | U_TZSET=tzset | |
6794 | U_HAVE_TZSET=1 | |
73c04bcf | 6795 | else |
729e4ab9 | 6796 | ac_fn_c_check_func "$LINENO" "_tzset" "ac_cv_func__tzset" |
4388f060 | 6797 | if test "x$ac_cv_func__tzset" = xyes; then : |
73c04bcf | 6798 | |
73c04bcf | 6799 | fi |
73c04bcf | 6800 | |
729e4ab9 A |
6801 | if test x$ac_cv_func__tzset = xyes |
6802 | then | |
6803 | U_TZSET=_tzset | |
6804 | U_HAVE_TZSET=1 | |
4388f060 A |
6805 | else |
6806 | CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_TZSET=0" | |
729e4ab9 | 6807 | fi |
b75a7d8f A |
6808 | fi |
6809 | ||
73c04bcf | 6810 | |
b75a7d8f | 6811 | |
729e4ab9 A |
6812 | U_HAVE_TZNAME=0 |
6813 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5 | |
6814 | $as_echo_n "checking for tzname... " >&6; } | |
4388f060 | 6815 | if ${ac_cv_var_tzname+:} false; then : |
729e4ab9 | 6816 | $as_echo_n "(cached) " >&6 |
73c04bcf | 6817 | else |
729e4ab9 | 6818 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
73c04bcf | 6819 | /* end confdefs.h. */ |
729e4ab9 A |
6820 | #ifndef __USE_POSIX |
6821 | #define __USE_POSIX | |
6822 | #endif | |
6823 | #include <stdlib.h> | |
6824 | #include <time.h> | |
6825 | #ifndef tzname /* For SGI. */ | |
6826 | extern char *tzname[]; /* RS6000 and others reject char **tzname. */ | |
73c04bcf | 6827 | #endif |
73c04bcf A |
6828 | int |
6829 | main () | |
6830 | { | |
729e4ab9 | 6831 | atoi(*tzname); |
73c04bcf A |
6832 | ; |
6833 | return 0; | |
6834 | } | |
6835 | _ACEOF | |
729e4ab9 A |
6836 | if ac_fn_c_try_link "$LINENO"; then : |
6837 | ac_cv_var_tzname=yes | |
b75a7d8f | 6838 | else |
729e4ab9 | 6839 | ac_cv_var_tzname=no |
b75a7d8f | 6840 | fi |
729e4ab9 A |
6841 | rm -f core conftest.err conftest.$ac_objext \ |
6842 | conftest$ac_exeext conftest.$ac_ext | |
6843 | fi | |
6844 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5 | |
6845 | $as_echo "$ac_cv_var_tzname" >&6; } | |
6846 | if test $ac_cv_var_tzname = yes; then | |
6847 | U_TZNAME=tzname | |
6848 | U_HAVE_TZNAME=1 | |
6849 | else | |
6850 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _tzname" >&5 | |
6851 | $as_echo_n "checking for _tzname... " >&6; } | |
4388f060 | 6852 | if ${ac_cv_var__tzname+:} false; then : |
729e4ab9 A |
6853 | $as_echo_n "(cached) " >&6 |
6854 | else | |
6855 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
73c04bcf | 6856 | /* end confdefs.h. */ |
729e4ab9 A |
6857 | #include <stdlib.h> |
6858 | #include <time.h> | |
6859 | extern char *_tzname[]; | |
73c04bcf A |
6860 | int |
6861 | main () | |
6862 | { | |
729e4ab9 | 6863 | atoi(*_tzname); |
73c04bcf A |
6864 | ; |
6865 | return 0; | |
6866 | } | |
6867 | _ACEOF | |
729e4ab9 A |
6868 | if ac_fn_c_try_link "$LINENO"; then : |
6869 | ac_cv_var__tzname=yes | |
b75a7d8f | 6870 | else |
729e4ab9 | 6871 | ac_cv_var__tzname=no |
73c04bcf | 6872 | fi |
729e4ab9 A |
6873 | rm -f core conftest.err conftest.$ac_objext \ |
6874 | conftest$ac_exeext conftest.$ac_ext | |
b75a7d8f | 6875 | fi |
729e4ab9 A |
6876 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var__tzname" >&5 |
6877 | $as_echo "$ac_cv_var__tzname" >&6; } | |
6878 | if test $ac_cv_var__tzname = yes; then | |
6879 | U_TZNAME=_tzname | |
6880 | U_HAVE_TZNAME=1 | |
4388f060 A |
6881 | else |
6882 | CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_TZNAME=0" | |
b75a7d8f A |
6883 | fi |
6884 | fi | |
6885 | ||
6886 | ||
6887 | ||
729e4ab9 A |
6888 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timezone" >&5 |
6889 | $as_echo_n "checking for timezone... " >&6; } | |
4388f060 | 6890 | if ${ac_cv_var_timezone+:} false; then : |
729e4ab9 | 6891 | $as_echo_n "(cached) " >&6 |
b75a7d8f | 6892 | else |
729e4ab9 | 6893 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
73c04bcf | 6894 | /* end confdefs.h. */ |
729e4ab9 A |
6895 | #ifndef __USE_POSIX |
6896 | #define __USE_POSIX | |
b75a7d8f | 6897 | #endif |
729e4ab9 A |
6898 | #ifndef __USE_XOPEN |
6899 | #define __USE_XOPEN | |
b75a7d8f | 6900 | #endif |
729e4ab9 | 6901 | #include <time.h> |
46f4442e A |
6902 | |
6903 | int | |
6904 | main () | |
b75a7d8f | 6905 | { |
729e4ab9 | 6906 | timezone = 1; |
46f4442e A |
6907 | ; |
6908 | return 0; | |
b75a7d8f | 6909 | } |
73c04bcf | 6910 | _ACEOF |
729e4ab9 A |
6911 | if ac_fn_c_try_link "$LINENO"; then : |
6912 | ac_cv_var_timezone=yes | |
b75a7d8f | 6913 | else |
729e4ab9 | 6914 | ac_cv_var_timezone=no |
b75a7d8f | 6915 | fi |
729e4ab9 A |
6916 | rm -f core conftest.err conftest.$ac_objext \ |
6917 | conftest$ac_exeext conftest.$ac_ext | |
b75a7d8f | 6918 | fi |
729e4ab9 A |
6919 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_timezone" >&5 |
6920 | $as_echo "$ac_cv_var_timezone" >&6; } | |
6921 | U_HAVE_TIMEZONE=0 | |
6922 | if test $ac_cv_var_timezone = yes; then | |
6923 | U_TIMEZONE=timezone | |
6924 | U_HAVE_TIMEZONE=1 | |
46f4442e | 6925 | else |
729e4ab9 A |
6926 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __timezone" >&5 |
6927 | $as_echo_n "checking for __timezone... " >&6; } | |
4388f060 | 6928 | if ${ac_cv_var___timezone+:} false; then : |
729e4ab9 A |
6929 | $as_echo_n "(cached) " >&6 |
6930 | else | |
6931 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
46f4442e | 6932 | /* end confdefs.h. */ |
729e4ab9 | 6933 | #include <time.h> |
46f4442e A |
6934 | int |
6935 | main () | |
6936 | { | |
729e4ab9 | 6937 | __timezone = 1; |
46f4442e A |
6938 | ; |
6939 | return 0; | |
6940 | } | |
6941 | _ACEOF | |
729e4ab9 A |
6942 | if ac_fn_c_try_link "$LINENO"; then : |
6943 | ac_cv_var___timezone=yes | |
6944 | else | |
6945 | ac_cv_var___timezone=no | |
6946 | fi | |
6947 | rm -f core conftest.err conftest.$ac_objext \ | |
6948 | conftest$ac_exeext conftest.$ac_ext | |
6949 | fi | |
6950 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var___timezone" >&5 | |
6951 | $as_echo "$ac_cv_var___timezone" >&6; } | |
6952 | if test $ac_cv_var___timezone = yes; then | |
6953 | U_TIMEZONE=__timezone | |
6954 | U_HAVE_TIMEZONE=1 | |
6955 | else | |
6956 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _timezone" >&5 | |
6957 | $as_echo_n "checking for _timezone... " >&6; } | |
4388f060 | 6958 | if ${ac_cv_var__timezone+:} false; then : |
729e4ab9 A |
6959 | $as_echo_n "(cached) " >&6 |
6960 | else | |
6961 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
46f4442e | 6962 | /* end confdefs.h. */ |
729e4ab9 | 6963 | #include <time.h> |
46f4442e A |
6964 | int |
6965 | main () | |
6966 | { | |
729e4ab9 | 6967 | _timezone = 1; |
46f4442e A |
6968 | ; |
6969 | return 0; | |
6970 | } | |
6971 | _ACEOF | |
729e4ab9 A |
6972 | if ac_fn_c_try_link "$LINENO"; then : |
6973 | ac_cv_var__timezone=yes | |
46f4442e | 6974 | else |
729e4ab9 A |
6975 | ac_cv_var__timezone=no |
6976 | fi | |
6977 | rm -f core conftest.err conftest.$ac_objext \ | |
6978 | conftest$ac_exeext conftest.$ac_ext | |
6979 | fi | |
6980 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var__timezone" >&5 | |
6981 | $as_echo "$ac_cv_var__timezone" >&6; } | |
6982 | if test $ac_cv_var__timezone = yes; then | |
6983 | U_TIMEZONE=_timezone | |
6984 | U_HAVE_TIMEZONE=1 | |
4388f060 A |
6985 | else |
6986 | CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_TIMEZONE=0" | |
729e4ab9 A |
6987 | fi |
6988 | fi | |
6989 | fi | |
6990 | ||
6991 | ||
6992 | ||
6993 | # Checks for typedefs | |
6994 | ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default" | |
4388f060 | 6995 | if test "x$ac_cv_type_int8_t" = xyes; then : |
729e4ab9 A |
6996 | |
6997 | else | |
6998 | ||
6999 | cat >>confdefs.h <<_ACEOF | |
7000 | #define int8_t signed char | |
7001 | _ACEOF | |
46f4442e | 7002 | |
46f4442e | 7003 | fi |
729e4ab9 A |
7004 | |
7005 | ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default" | |
4388f060 | 7006 | if test "x$ac_cv_type_uint8_t" = xyes; then : |
729e4ab9 | 7007 | |
46f4442e | 7008 | else |
46f4442e | 7009 | |
729e4ab9 A |
7010 | cat >>confdefs.h <<_ACEOF |
7011 | #define uint8_t unsigned char | |
46f4442e | 7012 | _ACEOF |
46f4442e | 7013 | |
729e4ab9 | 7014 | fi |
46f4442e | 7015 | |
729e4ab9 | 7016 | ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default" |
4388f060 | 7017 | if test "x$ac_cv_type_int16_t" = xyes; then : |
46f4442e | 7018 | |
729e4ab9 A |
7019 | else |
7020 | ||
7021 | cat >>confdefs.h <<_ACEOF | |
7022 | #define int16_t signed short | |
46f4442e | 7023 | _ACEOF |
729e4ab9 A |
7024 | |
7025 | fi | |
7026 | ||
7027 | ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default" | |
4388f060 | 7028 | if test "x$ac_cv_type_uint16_t" = xyes; then : |
729e4ab9 A |
7029 | |
7030 | else | |
7031 | ||
7032 | cat >>confdefs.h <<_ACEOF | |
7033 | #define uint16_t unsigned short | |
46f4442e | 7034 | _ACEOF |
46f4442e | 7035 | |
729e4ab9 | 7036 | fi |
46f4442e | 7037 | |
729e4ab9 | 7038 | ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default" |
4388f060 | 7039 | if test "x$ac_cv_type_int32_t" = xyes; then : |
46f4442e | 7040 | |
729e4ab9 A |
7041 | else |
7042 | ||
7043 | cat >>confdefs.h <<_ACEOF | |
7044 | #define int32_t signed long | |
46f4442e | 7045 | _ACEOF |
729e4ab9 A |
7046 | |
7047 | fi | |
7048 | ||
7049 | ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default" | |
4388f060 | 7050 | if test "x$ac_cv_type_uint32_t" = xyes; then : |
729e4ab9 A |
7051 | |
7052 | else | |
7053 | ||
7054 | cat >>confdefs.h <<_ACEOF | |
7055 | #define uint32_t unsigned long | |
7056 | _ACEOF | |
7057 | ||
7058 | fi | |
7059 | ||
7060 | ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default" | |
4388f060 | 7061 | if test "x$ac_cv_type_int64_t" = xyes; then : |
729e4ab9 A |
7062 | |
7063 | else | |
7064 | ||
7065 | cat >>confdefs.h <<_ACEOF | |
7066 | #define int64_t signed long long | |
7067 | _ACEOF | |
7068 | ||
7069 | fi | |
7070 | ||
7071 | ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default" | |
4388f060 | 7072 | if test "x$ac_cv_type_uint64_t" = xyes; then : |
729e4ab9 A |
7073 | |
7074 | else | |
7075 | ||
7076 | cat >>confdefs.h <<_ACEOF | |
7077 | #define uint64_t unsigned long long | |
7078 | _ACEOF | |
7079 | ||
7080 | fi | |
7081 | ||
7082 | ||
7083 | if test $ac_cv_type_int8_t = no; then | |
4388f060 | 7084 | CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_INT8_T=0" |
729e4ab9 A |
7085 | fi |
7086 | ||
729e4ab9 | 7087 | if test $ac_cv_type_uint8_t = no; then |
4388f060 | 7088 | CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_UINT8_T=0" |
729e4ab9 A |
7089 | fi |
7090 | ||
729e4ab9 | 7091 | if test $ac_cv_type_int16_t = no; then |
4388f060 | 7092 | CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_INT16_T=0" |
729e4ab9 A |
7093 | fi |
7094 | ||
729e4ab9 | 7095 | if test $ac_cv_type_uint16_t = no; then |
4388f060 | 7096 | CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_UINT16_T=0" |
729e4ab9 A |
7097 | fi |
7098 | ||
729e4ab9 | 7099 | if test $ac_cv_type_int32_t = no; then |
4388f060 | 7100 | CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_INT32_T=0" |
729e4ab9 A |
7101 | fi |
7102 | ||
729e4ab9 | 7103 | if test $ac_cv_type_uint32_t = no; then |
4388f060 | 7104 | CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_UINT32_T=0" |
729e4ab9 A |
7105 | fi |
7106 | ||
729e4ab9 | 7107 | if test $ac_cv_type_int64_t = no; then |
4388f060 | 7108 | CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_INT64_T=0" |
729e4ab9 A |
7109 | fi |
7110 | ||
729e4ab9 | 7111 | if test $ac_cv_type_uint64_t = no; then |
4388f060 | 7112 | CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_UINT64_T=0" |
729e4ab9 A |
7113 | fi |
7114 | ||
729e4ab9 A |
7115 | # Do various wchar_t related checks |
7116 | ac_fn_c_check_header_mongrel "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default" | |
4388f060 | 7117 | if test "x$ac_cv_header_wchar_h" = xyes; then : |
729e4ab9 A |
7118 | |
7119 | fi | |
7120 | ||
7121 | ||
7122 | if test "$ac_cv_header_wchar_h" = no | |
7123 | then | |
7124 | U_HAVE_WCHAR_H=0 | |
7125 | U_HAVE_WCSCPY=0 | |
4388f060 | 7126 | CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_WCHAR_H=0 -DU_HAVE_WCSCPY=0" |
46f4442e | 7127 | else |
46f4442e | 7128 | |
729e4ab9 | 7129 | $as_echo "#define HAVE_WCHAR_H 1" >>confdefs.h |
46f4442e | 7130 | |
729e4ab9 A |
7131 | U_HAVE_WCHAR_H=1 |
7132 | # Some broken systems have wchar.h but not some of its functions... | |
7133 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing wcscpy" >&5 | |
7134 | $as_echo_n "checking for library containing wcscpy... " >&6; } | |
4388f060 | 7135 | if ${ac_cv_search_wcscpy+:} false; then : |
729e4ab9 A |
7136 | $as_echo_n "(cached) " >&6 |
7137 | else | |
7138 | ac_func_search_save_LIBS=$LIBS | |
7139 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
46f4442e A |
7140 | /* end confdefs.h. */ |
7141 | ||
729e4ab9 A |
7142 | /* Override any GCC internal prototype to avoid an error. |
7143 | Use char because int might match the return type of a GCC | |
7144 | builtin and then its argument prototype would still apply. */ | |
7145 | #ifdef __cplusplus | |
7146 | extern "C" | |
46f4442e | 7147 | #endif |
729e4ab9 | 7148 | char wcscpy (); |
46f4442e A |
7149 | int |
7150 | main () | |
7151 | { | |
729e4ab9 | 7152 | return wcscpy (); |
46f4442e A |
7153 | ; |
7154 | return 0; | |
7155 | } | |
7156 | _ACEOF | |
729e4ab9 A |
7157 | for ac_lib in '' wcs w; do |
7158 | if test -z "$ac_lib"; then | |
7159 | ac_res="none required" | |
7160 | else | |
7161 | ac_res=-l$ac_lib | |
7162 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
7163 | fi | |
7164 | if ac_fn_c_try_link "$LINENO"; then : | |
7165 | ac_cv_search_wcscpy=$ac_res | |
7166 | fi | |
7167 | rm -f core conftest.err conftest.$ac_objext \ | |
7168 | conftest$ac_exeext | |
4388f060 | 7169 | if ${ac_cv_search_wcscpy+:} false; then : |
729e4ab9 | 7170 | break |
46f4442e | 7171 | fi |
46f4442e | 7172 | done |
4388f060 | 7173 | if ${ac_cv_search_wcscpy+:} false; then : |
729e4ab9 | 7174 | |
46f4442e | 7175 | else |
729e4ab9 A |
7176 | ac_cv_search_wcscpy=no |
7177 | fi | |
7178 | rm conftest.$ac_ext | |
7179 | LIBS=$ac_func_search_save_LIBS | |
7180 | fi | |
7181 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_wcscpy" >&5 | |
7182 | $as_echo "$ac_cv_search_wcscpy" >&6; } | |
7183 | ac_res=$ac_cv_search_wcscpy | |
7184 | if test "$ac_res" != no; then : | |
7185 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
7186 | ||
7187 | fi | |
7188 | ||
7189 | if test "$ac_cv_search_wcscpy" != no; then | |
7190 | U_HAVE_WCSCPY=1 | |
7191 | else | |
7192 | U_HAVE_WCSCPY=0 | |
4388f060 | 7193 | CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_WCSCPY=0" |
729e4ab9 A |
7194 | fi |
7195 | fi | |
7196 | ||
7197 | ||
46f4442e | 7198 | |
729e4ab9 A |
7199 | # The cast to long int works around a bug in the HP C Compiler |
7200 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
7201 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
7202 | # This bug is HP SR number 8606223364. | |
7203 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of wchar_t" >&5 | |
7204 | $as_echo_n "checking size of wchar_t... " >&6; } | |
4388f060 | 7205 | if ${ac_cv_sizeof_wchar_t+:} false; then : |
729e4ab9 A |
7206 | $as_echo_n "(cached) " >&6 |
7207 | else | |
7208 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (wchar_t))" "ac_cv_sizeof_wchar_t" " | |
46f4442e A |
7209 | #if STDC_HEADERS |
7210 | #include <stddef.h> | |
7211 | #endif | |
7212 | #include <stdlib.h> | |
7213 | #if HAVE_WCHAR_H | |
7214 | #include <string.h> | |
7215 | #include <wchar.h> | |
7216 | #endif | |
729e4ab9 | 7217 | "; then : |
46f4442e | 7218 | |
46f4442e | 7219 | else |
729e4ab9 A |
7220 | if test "$ac_cv_type_wchar_t" = yes; then |
7221 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
7222 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
7223 | as_fn_error 77 "cannot compute sizeof (wchar_t) | |
7224 | See \`config.log' for more details" "$LINENO" 5; } | |
7225 | else | |
7226 | ac_cv_sizeof_wchar_t=0 | |
7227 | fi | |
46f4442e | 7228 | fi |
729e4ab9 | 7229 | |
46f4442e | 7230 | fi |
729e4ab9 A |
7231 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_wchar_t" >&5 |
7232 | $as_echo "$ac_cv_sizeof_wchar_t" >&6; } | |
7233 | ||
7234 | ||
7235 | ||
46f4442e A |
7236 | cat >>confdefs.h <<_ACEOF |
7237 | #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t | |
7238 | _ACEOF | |
7239 | ||
7240 | ||
7241 | U_SIZEOF_WCHAR_T=$ac_cv_sizeof_wchar_t | |
7242 | # We do this check to verify that everything is okay. | |
7243 | if test $U_SIZEOF_WCHAR_T = 0; then | |
7244 | if test $U_HAVE_WCHAR_H=1; then | |
729e4ab9 | 7245 | as_fn_error $? "There is wchar.h but the size of wchar_t is 0" "$LINENO" 5 |
46f4442e A |
7246 | fi |
7247 | fi | |
7248 | ||
729e4ab9 A |
7249 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UTF-16 string literal support" >&5 |
7250 | $as_echo_n "checking for UTF-16 string literal support... " >&6; } | |
46f4442e A |
7251 | U_CHECK_UTF16_STRING=1 |
7252 | CHECK_UTF16_STRING_RESULT="unknown" | |
729e4ab9 | 7253 | |
46f4442e A |
7254 | case "${host}" in |
7255 | *-*-aix*|powerpc64-*-linux*) | |
51004dcb | 7256 | if test "$GCC" = no; then |
46f4442e A |
7257 | OLD_CFLAGS="${CFLAGS}" |
7258 | OLD_CXXFLAGS="${CXXFLAGS}" | |
7259 | CFLAGS="${CFLAGS} -qutf" | |
7260 | CXXFLAGS="${CXXFLAGS} -qutf" | |
729e4ab9 | 7261 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
46f4442e A |
7262 | /* end confdefs.h. */ |
7263 | const unsigned short hello[] = u"hello"; | |
7264 | int | |
7265 | main () | |
7266 | { | |
7267 | ||
7268 | ; | |
7269 | return 0; | |
7270 | } | |
7271 | _ACEOF | |
729e4ab9 | 7272 | if ac_fn_c_try_compile "$LINENO"; then : |
46f4442e A |
7273 | U_CHECK_UTF16_STRING=1 |
7274 | else | |
729e4ab9 | 7275 | U_CHECK_UTF16_STRING=0 |
46f4442e | 7276 | fi |
729e4ab9 | 7277 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
46f4442e A |
7278 | if test "$U_CHECK_UTF16_STRING" = 0; then |
7279 | CFLAGS="${OLD_CFLAGS}" | |
7280 | CXXFLAGS="${OLD_CXXFLAGS}" | |
7281 | else | |
57a6839d | 7282 | UCONFIG_CXXFLAGS="${UCONFIG_CXXFLAGS} -qutf" |
46f4442e A |
7283 | CHECK_UTF16_STRING_RESULT="-qutf" |
7284 | fi | |
7285 | fi | |
7286 | ;; | |
7287 | *-*-solaris*) | |
51004dcb | 7288 | if test "$GCC" = no; then |
46f4442e A |
7289 | OLD_CFLAGS="${CFLAGS}" |
7290 | OLD_CXXFLAGS="${CXXFLAGS}" | |
7291 | CFLAGS="${CFLAGS} -xustr=ascii_utf16_ushort" | |
7292 | CXXFLAGS="${CXXFLAGS} -xustr=ascii_utf16_ushort" | |
729e4ab9 | 7293 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
46f4442e A |
7294 | /* end confdefs.h. */ |
7295 | const unsigned short hello[] = U"hello"; | |
7296 | int | |
7297 | main () | |
7298 | { | |
7299 | ||
7300 | ; | |
7301 | return 0; | |
7302 | } | |
7303 | _ACEOF | |
729e4ab9 | 7304 | if ac_fn_c_try_compile "$LINENO"; then : |
46f4442e A |
7305 | U_CHECK_UTF16_STRING=1 |
7306 | else | |
729e4ab9 | 7307 | U_CHECK_UTF16_STRING=0 |
46f4442e | 7308 | fi |
729e4ab9 | 7309 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
46f4442e A |
7310 | if test "$U_CHECK_UTF16_STRING" = 0; then |
7311 | CFLAGS="${OLD_CFLAGS}" | |
7312 | CXXFLAGS="${OLD_CXXFLAGS}" | |
7313 | else | |
7314 | CHECK_UTF16_STRING_RESULT="-xustr=ascii_utf16_ushort" | |
57a6839d A |
7315 | UCONFIG_CXXFLAGS="${UCONFIG_CXXFLAGS} -xustr=ascii_utf16_ushort" |
7316 | UCONFIG_CFLAGS="${UCONFIG_CFLAGS} -xustr=ascii_utf16_ushort" | |
46f4442e A |
7317 | # Since we can't detect the availability of this UTF-16 syntax at compile time, |
7318 | # we depend on configure telling us that we can use it. | |
7319 | # Since we can't ensure ICU users use -xustr=ascii_utf16_ushort, | |
7320 | # we only use this macro within ICU. | |
7321 | # If an ICU user uses icu-config, this feature will be enabled. | |
4388f060 | 7322 | CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_CHECK_UTF16_STRING=1" |
46f4442e A |
7323 | U_CHECK_UTF16_STRING=0 |
7324 | fi | |
7325 | fi | |
7326 | ;; | |
7327 | *-*-hpux*) | |
51004dcb | 7328 | if test "$GCC" = no; then |
729e4ab9 A |
7329 | # The option will be detected at compile time without additional compiler options. |
7330 | CHECK_UTF16_STRING_RESULT="available" | |
46f4442e A |
7331 | fi |
7332 | ;; | |
7333 | *-*-cygwin) | |
729e4ab9 A |
7334 | # wchar_t can be used |
7335 | CHECK_UTF16_STRING_RESULT="available" | |
46f4442e A |
7336 | ;; |
7337 | *) | |
7338 | ;; | |
7339 | esac | |
729e4ab9 A |
7340 | |
7341 | # GCC >= 4.4 supports UTF16 string literals. The CFLAGS and CXXFLAGS may change in the future. | |
51004dcb A |
7342 | if test "$CHECK_UTF16_STRING_RESULT" = "unknown"; then |
7343 | if test "$GCC" = yes; then | |
729e4ab9 | 7344 | OLD_CFLAGS="${CFLAGS}" |
51004dcb | 7345 | CFLAGS="${CFLAGS} -std=gnu99" |
729e4ab9 A |
7346 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7347 | /* end confdefs.h. */ | |
7348 | ||
51004dcb | 7349 | static const char16_t test[] = u"This is a UTF16 literal string."; |
729e4ab9 A |
7350 | |
7351 | int | |
7352 | main () | |
7353 | { | |
7354 | ||
7355 | ; | |
7356 | return 0; | |
7357 | } | |
7358 | _ACEOF | |
7359 | if ac_fn_c_try_compile "$LINENO"; then : | |
51004dcb | 7360 | CC_UTF16_STRING=1 |
729e4ab9 | 7361 | else |
51004dcb | 7362 | CC_UTF16_STRING=0 |
729e4ab9 A |
7363 | fi |
7364 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
51004dcb | 7365 | if test "$CC_UTF16_STRING" = 1; then |
57a6839d | 7366 | UCONFIG_CFLAGS="${UCONFIG_CFLAGS} -std=gnu99" |
51004dcb | 7367 | CHECK_UTF16_STRING_RESULT="C only"; |
729e4ab9 A |
7368 | else |
7369 | CFLAGS="${OLD_CFLAGS}" | |
729e4ab9 A |
7370 | fi |
7371 | fi | |
51004dcb | 7372 | if test "$GXX" = yes; then |
51004dcb | 7373 | # -Wno-return-type-c-linkage is desired so that stable ICU API is not warned about. |
51004dcb A |
7374 | ac_ext=cpp |
7375 | ac_cpp='$CXXCPP $CPPFLAGS' | |
7376 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7377 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7378 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
729e4ab9 | 7379 | |
51004dcb A |
7380 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7381 | /* end confdefs.h. */ | |
729e4ab9 | 7382 | |
51004dcb A |
7383 | static const char16_t test[] = u"This is a UTF16 literal string."; |
7384 | ||
7385 | int | |
7386 | main () | |
7387 | { | |
7388 | ||
7389 | ; | |
7390 | return 0; | |
7391 | } | |
7392 | _ACEOF | |
7393 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
7394 | CXX_UTF16_STRING=1 | |
7395 | else | |
7396 | CXX_UTF16_STRING=0 | |
7397 | fi | |
7398 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7399 | ac_ext=c | |
7400 | ac_cpp='$CPP $CPPFLAGS' | |
7401 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7402 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7403 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
7404 | ||
7405 | if test "$CXX_UTF16_STRING" = 1; then | |
7406 | if test "$CC_UTF16_STRING" = 1; then | |
7407 | CHECK_UTF16_STRING_RESULT="available"; | |
7408 | else | |
7409 | CHECK_UTF16_STRING_RESULT="C++ only"; | |
7410 | fi | |
51004dcb A |
7411 | fi |
7412 | fi | |
7413 | fi | |
729e4ab9 A |
7414 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_UTF16_STRING_RESULT" >&5 |
7415 | $as_echo "$CHECK_UTF16_STRING_RESULT" >&6; } | |
46f4442e | 7416 | |
729e4ab9 A |
7417 | # Enable/disable extras |
7418 | # Check whether --enable-extras was given. | |
7419 | if test "${enable_extras+set}" = set; then : | |
7420 | enableval=$enable_extras; case "${enableval}" in | |
46f4442e A |
7421 | yes) extras=true ;; |
7422 | no) extras=false ;; | |
729e4ab9 | 7423 | *) as_fn_error $? "bad value ${enableval} for --enable-extras" "$LINENO" 5 ;; |
46f4442e A |
7424 | esac |
7425 | else | |
7426 | extras=true | |
729e4ab9 A |
7427 | fi |
7428 | ||
46f4442e A |
7429 | |
7430 | if test "$extras" = true; then | |
7431 | EXTRAS_TRUE= | |
7432 | else | |
7433 | EXTRAS_TRUE='#' | |
7434 | fi | |
729e4ab9 A |
7435 | # Check whether --enable-icuio was given. |
7436 | if test "${enable_icuio+set}" = set; then : | |
7437 | enableval=$enable_icuio; case "${enableval}" in | |
46f4442e A |
7438 | yes) icuio=true ;; |
7439 | no) icuio=false ;; | |
729e4ab9 | 7440 | *) as_fn_error $? "bad value ${enableval} for --enable-icuio" "$LINENO" 5 ;; |
46f4442e A |
7441 | esac |
7442 | else | |
374ca955 | 7443 | icuio=true |
729e4ab9 A |
7444 | fi |
7445 | ||
b75a7d8f | 7446 | |
374ca955 A |
7447 | if test "$icuio" = true; then |
7448 | ICUIO_TRUE= | |
b75a7d8f | 7449 | else |
374ca955 | 7450 | ICUIO_TRUE='#' |
b75a7d8f A |
7451 | fi |
7452 | ||
729e4ab9 A |
7453 | # Enable/disable layout |
7454 | # Check whether --enable-layout was given. | |
7455 | if test "${enable_layout+set}" = set; then : | |
7456 | enableval=$enable_layout; case "${enableval}" in | |
b75a7d8f A |
7457 | yes) layout=true ;; |
7458 | no) layout=false ;; | |
729e4ab9 | 7459 | *) as_fn_error $? "bad value ${enableval} for --enable-layout" "$LINENO" 5 ;; |
b75a7d8f A |
7460 | esac |
7461 | else | |
7462 | layout=true | |
729e4ab9 A |
7463 | fi |
7464 | ||
b75a7d8f | 7465 | |
b75a7d8f A |
7466 | if test "$layout" = true; then |
7467 | LAYOUT_TRUE= | |
b75a7d8f A |
7468 | else |
7469 | LAYOUT_TRUE='#' | |
b75a7d8f A |
7470 | fi |
7471 | ||
b331163b A |
7472 | # Enable/disable layoutex |
7473 | # Check whether --enable-layoutex was given. | |
7474 | if test "${enable_layoutex+set}" = set; then : | |
7475 | enableval=$enable_layoutex; case "${enableval}" in | |
7476 | yes) layoutex=true ;; | |
7477 | no) layoutex=false ;; | |
7478 | *) as_fn_error $? "bad value ${enableval} for --enable-layoutex" "$LINENO" 5 ;; | |
7479 | esac | |
7480 | else | |
7481 | layoutex=$layout | |
7482 | fi | |
7483 | ||
7484 | ||
7485 | if test "$layoutex" = true; then | |
7486 | LAYOUTEX_TRUE= | |
7487 | else | |
7488 | LAYOUTEX_TRUE='#' | |
7489 | fi | |
7490 | ||
57a6839d A |
7491 | # Enable/disable tools |
7492 | # Check whether --enable-tools was given. | |
7493 | if test "${enable_tools+set}" = set; then : | |
7494 | enableval=$enable_tools; case "${enableval}" in | |
7495 | yes) tools=true ;; | |
7496 | no) tools=false ;; | |
7497 | *) as_fn_error $? "bad value ${enableval} for --enable-tools" "$LINENO" 5 ;; | |
7498 | esac | |
7499 | else | |
7500 | tools=true | |
7501 | fi | |
7502 | ||
7503 | ||
7504 | if test "$tools" = true; then | |
7505 | TOOLS_TRUE= | |
7506 | else | |
7507 | TOOLS_TRUE='#' | |
7508 | fi | |
7509 | ||
73c04bcf | 7510 | |
729e4ab9 A |
7511 | # Check whether --with-data-packaging was given. |
7512 | if test "${with_data_packaging+set}" = set; then : | |
7513 | withval=$with_data_packaging; case "${withval}" in | |
b75a7d8f A |
7514 | files|archive|library) datapackaging=$withval ;; |
7515 | auto) datapackaging=$withval ;; | |
7516 | common) datapackaging=archive ;; | |
7517 | dll) datapackaging=library ;; | |
374ca955 | 7518 | static) datapackaging=static ;; |
729e4ab9 | 7519 | *) as_fn_error $? "bad value ${withval} for --with-data-packaging" "$LINENO" 5 ;; |
b75a7d8f A |
7520 | esac |
7521 | else | |
7522 | datapackaging= | |
729e4ab9 A |
7523 | fi |
7524 | ||
b75a7d8f | 7525 | |
729e4ab9 A |
7526 | # Note: 'thesysconfdir' is an evaluated version, for Man pages, so also for thedatadir, thelibdir, etc.. |
7527 | # thesysconfdir=`eval echo $sysconfdir` | |
b75a7d8f | 7528 | thedatadir=`eval echo $datadir` |
729e4ab9 | 7529 | # 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}. |
374ca955 A |
7530 | pkgicudatadir=$datadir |
7531 | thepkgicudatadir=$thedatadir | |
b75a7d8f A |
7532 | |
7533 | ||
7534 | ||
7535 | ||
b75a7d8f | 7536 | if test x"$datapackaging" = x -o x"$datapackaging" = xauto; then |
729e4ab9 | 7537 | # default to library |
b75a7d8f | 7538 | datapackaging=library |
729e4ab9 A |
7539 | if test "$ENABLE_STATIC" = "YES"; then |
7540 | if test "$ENABLE_SHARED" != "YES"; then | |
7541 | datapackaging=static | |
7542 | fi | |
7543 | fi | |
b75a7d8f A |
7544 | fi |
7545 | ||
729e4ab9 A |
7546 | datapackaging_dir=`eval echo $thedatadir`"/icu/${VERSION}" |
7547 | ||
7548 | datapackaging_msg="(No explaination for mode $datapackaging.)" | |
7549 | ||
7550 | 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." | |
7551 | 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." | |
7552 | datapackaging_howfound="(unknown)" | |
7553 | ||
b75a7d8f A |
7554 | case "$datapackaging" in |
7555 | files) | |
729e4ab9 A |
7556 | DATA_PACKAGING_MODE=files |
7557 | datapackaging_msg="ICU data will be stored in individual files." | |
7558 | datapackaging_howfound="$datapackaging_msg_path" | |
7559 | ;; | |
b75a7d8f | 7560 | archive) |
729e4ab9 A |
7561 | DATA_PACKAGING_MODE=common |
7562 | datapackaging_msg="ICU data will be stored in a single .dat file." | |
7563 | datapackaging_howfound="$datapackaging_msg_path" | |
7564 | ;; | |
b75a7d8f | 7565 | library) |
729e4ab9 A |
7566 | DATA_PACKAGING_MODE=dll |
7567 | datapackaging_msg="ICU data will be linked with ICU." | |
7568 | if test "$ENABLE_STATIC" = "YES"; then | |
7569 | datapackaging_msg="$datapackaging_msg A static data library will be built. " | |
7570 | fi | |
7571 | if test "$ENABLE_SHARED" = "YES"; then | |
7572 | datapackaging_msg="$datapackaging_msg A shared data library will be built. " | |
7573 | fi | |
7574 | datapackaging_howfound="$datapackaging_msg_set" | |
7575 | ;; | |
7576 | static) | |
7577 | DATA_PACKAGING_MODE=static | |
7578 | datapackaging_msg="ICU data will be stored in a static library." | |
7579 | datapackaging_howfound="$datapackaging_msg_set" | |
7580 | ;; | |
b75a7d8f A |
7581 | esac |
7582 | ||
7583 | ||
729e4ab9 A |
7584 | # Sets a library suffix |
7585 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a library suffix to use" >&5 | |
7586 | $as_echo_n "checking for a library suffix to use... " >&6; } | |
b75a7d8f | 7587 | |
729e4ab9 A |
7588 | # Check whether --with-library-suffix was given. |
7589 | if test "${with_library_suffix+set}" = set; then : | |
7590 | withval=$with_library_suffix; ICULIBSUFFIX="${withval}" | |
b75a7d8f A |
7591 | else |
7592 | ICULIBSUFFIX= | |
729e4ab9 A |
7593 | fi |
7594 | ||
b75a7d8f A |
7595 | msg=$ICULIBSUFFIX |
7596 | if test "$msg" = ""; then | |
7597 | msg=none | |
7598 | fi | |
729e4ab9 A |
7599 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg" >&5 |
7600 | $as_echo "$msg" >&6; } | |
b75a7d8f A |
7601 | |
7602 | if test "$ICULIBSUFFIX" != "" | |
7603 | then | |
7604 | U_HAVE_LIB_SUFFIX=1 | |
729e4ab9 | 7605 | ICULIBSUFFIXCNAME=`echo _$ICULIBSUFFIX | sed 's/^A-Za-z0-9_/_/g'` |
4388f060 | 7606 | UCONFIG_CPPFLAGS="${UCONFIG_CPPFLAGS} -DU_HAVE_LIB_SUFFIX=1 -DU_LIB_SUFFIX_C_NAME=${ICULIBSUFFIXCNAME} " |
b75a7d8f A |
7607 | else |
7608 | U_HAVE_LIB_SUFFIX=0 | |
7609 | fi | |
7610 | ||
7611 | ||
7612 | ||
729e4ab9 A |
7613 | # Enable/disable tests |
7614 | # Check whether --enable-tests was given. | |
7615 | if test "${enable_tests+set}" = set; then : | |
7616 | enableval=$enable_tests; case "${enableval}" in | |
b75a7d8f A |
7617 | yes) tests=true ;; |
7618 | no) tests=false ;; | |
729e4ab9 | 7619 | *) as_fn_error $? "bad value ${enableval} for --enable-tests" "$LINENO" 5 ;; |
b75a7d8f A |
7620 | esac |
7621 | else | |
7622 | tests=true | |
729e4ab9 A |
7623 | fi |
7624 | ||
b75a7d8f | 7625 | |
b75a7d8f A |
7626 | if test "$tests" = true; then |
7627 | TESTS_TRUE= | |
b75a7d8f A |
7628 | else |
7629 | TESTS_TRUE='#' | |
b75a7d8f A |
7630 | fi |
7631 | ||
729e4ab9 A |
7632 | # Enable/disable samples |
7633 | # Check whether --enable-samples was given. | |
7634 | if test "${enable_samples+set}" = set; then : | |
7635 | enableval=$enable_samples; case "${enableval}" in | |
b75a7d8f A |
7636 | yes) samples=true ;; |
7637 | no) samples=false ;; | |
729e4ab9 | 7638 | *) as_fn_error $? "bad value ${enableval} for --enable-samples" "$LINENO" 5 ;; |
b75a7d8f A |
7639 | esac |
7640 | else | |
7641 | samples=true | |
729e4ab9 A |
7642 | fi |
7643 | ||
b75a7d8f | 7644 | |
b75a7d8f A |
7645 | if test "$samples" = true; then |
7646 | SAMPLES_TRUE= | |
b75a7d8f A |
7647 | else |
7648 | SAMPLES_TRUE='#' | |
b75a7d8f A |
7649 | fi |
7650 | ||
7651 | ICUDATA_CHAR=$U_ENDIAN_CHAR | |
7652 | ||
729e4ab9 A |
7653 | # Platform-specific Makefile setup |
7654 | # set ICUDATA_CHAR to 'e' for any EBCDIC (which should be big endian) platform. | |
b75a7d8f A |
7655 | case "${host}" in |
7656 | *-*-solaris*) platform=U_SOLARIS ;; | |
729e4ab9 | 7657 | *-*-linux*|*-*-gnu|*-*-k*bsd*-gnu|*-*-kopensolaris*-gnu) platform=U_LINUX ;; |
73c04bcf | 7658 | *-*-*bsd*|*-*-dragonfly*) platform=U_BSD ;; |
374ca955 A |
7659 | *-*-aix*) platform=U_AIX ;; |
7660 | *-*-hpux*) platform=U_HPUX ;; | |
b75a7d8f | 7661 | *-apple-darwin*|*-apple-rhapsody*) platform=U_DARWIN ;; |
4388f060 A |
7662 | *-*-cygwin*) platform=U_CYGWIN ;; |
7663 | *-*-mingw*) platform=U_MINGW ;; | |
b75a7d8f | 7664 | *-*ibm-openedition*|*-*-os390*) platform=OS390 |
73c04bcf A |
7665 | if test "${ICU_ENABLE_ASCII_STRINGS}" != "1"; then |
7666 | ICUDATA_CHAR="e" | |
7667 | fi ;; | |
b75a7d8f | 7668 | *-*-os400*) platform=OS400 |
73c04bcf A |
7669 | if test "${ICU_ENABLE_ASCII_STRINGS}" != "1"; then |
7670 | ICUDATA_CHAR="e" | |
7671 | fi ;; | |
b75a7d8f A |
7672 | *-*-nto*) platform=U_QNX ;; |
7673 | *-dec-osf*) platform=U_OSF ;; | |
374ca955 A |
7674 | *-*-beos) platform=U_BEOS ;; |
7675 | *-*-irix*) platform=U_IRIX ;; | |
7676 | *-ncr-*) platform=U_MPRAS ;; | |
b75a7d8f A |
7677 | *) platform=U_UNKNOWN_PLATFORM ;; |
7678 | esac | |
7679 | ||
7680 | ||
7681 | platform_make_fragment_name="$icu_cv_host_frag" | |
7682 | platform_make_fragment='$(top_srcdir)/config/'"$platform_make_fragment_name" | |
7683 | ||
7684 | ||
7685 | ||
b75a7d8f A |
7686 | if test "${FORCE_LIBS}" != ""; then |
7687 | echo " *** Overriding automatically chosen LIBS=$LIBS, using instead FORCE_LIBS=${FORCE_LIBS}" 1>&6 | |
7688 | LIBS=${FORCE_LIBS} | |
7689 | fi | |
7690 | ||
729e4ab9 A |
7691 | # Now that we're done using CPPFLAGS etc. for tests, we can change it |
7692 | # for build. | |
b75a7d8f | 7693 | |
57a6839d A |
7694 | if test "${CC}" == "clang"; then |
7695 | CLANGCFLAGS="-Qunused-arguments -Wno-parentheses-equality" | |
7696 | else | |
7697 | CLANGCFLAGS="" | |
7698 | fi | |
7699 | ||
7700 | if test "${CXX}" == "clang++"; then | |
7701 | CLANGCXXFLAGS="-Qunused-arguments -Wno-parentheses-equality" | |
7702 | else | |
7703 | CLANGCXXFLAGS="" | |
7704 | fi | |
7705 | ||
51004dcb | 7706 | CPPFLAGS="$CPPFLAGS \$(THREADSCPPFLAGS)" |
57a6839d A |
7707 | CFLAGS="$CFLAGS \$(THREADSCFLAGS) $CLANGCFLAGS" |
7708 | CXXFLAGS="$CXXFLAGS \$(THREADSCXXFLAGS) $CLANGCXXFLAGS" | |
b75a7d8f | 7709 | |
4388f060 A |
7710 | |
7711 | ||
7712 | ||
7713 | # append all config cppflags | |
7714 | CPPFLAGS="$CPPFLAGS $CONFIG_CPPFLAGS $UCONFIG_CPPFLAGS" | |
7715 | ||
7716 | echo "CPPFLAGS=$CPPFLAGS" | |
7717 | echo "CFLAGS=$CFLAGS" | |
7718 | echo "CXXFLAGS=$CXXFLAGS" | |
7719 | ||
7720 | ||
729e4ab9 | 7721 | # output the Makefiles |
57a6839d | 7722 | 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 layout/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/tzcode/Makefile tools/gencfu/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/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/perf/leperf/Makefile samples/Makefile samples/date/Makefile samples/cal/Makefile samples/layout/Makefile" |
729e4ab9 | 7723 | |
73c04bcf | 7724 | cat >confcache <<\_ACEOF |
b75a7d8f A |
7725 | # This file is a shell script that caches the results of configure |
7726 | # tests run on this system so they can be shared between configure | |
73c04bcf A |
7727 | # scripts and configure runs, see configure's option --config-cache. |
7728 | # It is not useful on other systems. If it contains results you don't | |
7729 | # want to keep, you may remove or edit it. | |
b75a7d8f | 7730 | # |
73c04bcf A |
7731 | # config.status only pays attention to the cache file if you give it |
7732 | # the --recheck option to rerun configure. | |
b75a7d8f | 7733 | # |
73c04bcf A |
7734 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
7735 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
7736 | # following values. | |
7737 | ||
7738 | _ACEOF | |
7739 | ||
b75a7d8f A |
7740 | # The following way of writing the cache mishandles newlines in values, |
7741 | # but we know of no workaround that is simple, portable, and efficient. | |
729e4ab9 | 7742 | # So, we kill variables containing newlines. |
b75a7d8f A |
7743 | # Ultrix sh set writes to stderr and can't be redirected directly, |
7744 | # and sets the high bit in the cache file unless we assign to the vars. | |
729e4ab9 A |
7745 | ( |
7746 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
7747 | eval ac_val=\$$ac_var | |
7748 | case $ac_val in #( | |
7749 | *${as_nl}*) | |
7750 | case $ac_var in #( | |
7751 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
7752 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
7753 | esac | |
7754 | case $ac_var in #( | |
7755 | _ | IFS | as_nl) ;; #( | |
7756 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
7757 | *) { eval $ac_var=; unset $ac_var;} ;; | |
7758 | esac ;; | |
7759 | esac | |
7760 | done | |
7761 | ||
73c04bcf | 7762 | (set) 2>&1 | |
729e4ab9 A |
7763 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
7764 | *${as_nl}ac_space=\ *) | |
7765 | # `set' does not quote correctly, so add quotes: double-quote | |
7766 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
73c04bcf A |
7767 | sed -n \ |
7768 | "s/'/'\\\\''/g; | |
7769 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
729e4ab9 | 7770 | ;; #( |
73c04bcf A |
7771 | *) |
7772 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
729e4ab9 | 7773 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
73c04bcf | 7774 | ;; |
729e4ab9 A |
7775 | esac | |
7776 | sort | |
7777 | ) | | |
73c04bcf | 7778 | sed ' |
729e4ab9 | 7779 | /^ac_cv_env_/b end |
73c04bcf | 7780 | t clear |
729e4ab9 | 7781 | :clear |
73c04bcf A |
7782 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
7783 | t end | |
729e4ab9 A |
7784 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
7785 | :end' >>confcache | |
7786 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
7787 | if test -w "$cache_file"; then | |
4388f060 | 7788 | if test "x$cache_file" != "x/dev/null"; then |
729e4ab9 A |
7789 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
7790 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
4388f060 A |
7791 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
7792 | cat confcache >"$cache_file" | |
7793 | else | |
7794 | case $cache_file in #( | |
7795 | */* | ?:*) | |
7796 | mv -f confcache "$cache_file"$$ && | |
7797 | mv -f "$cache_file"$$ "$cache_file" ;; #( | |
7798 | *) | |
7799 | mv -f confcache "$cache_file" ;; | |
7800 | esac | |
7801 | fi | |
7802 | fi | |
b75a7d8f | 7803 | else |
729e4ab9 A |
7804 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
7805 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
b75a7d8f A |
7806 | fi |
7807 | fi | |
7808 | rm -f confcache | |
7809 | ||
b75a7d8f A |
7810 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
7811 | # Let make expand exec_prefix. | |
7812 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
7813 | ||
4388f060 A |
7814 | # Transform confdefs.h into DEFS. |
7815 | # Protect against shell expansion while executing Makefile rules. | |
7816 | # Protect against Makefile macro expansion. | |
7817 | # | |
7818 | # If the first sed substitution is executed (which looks for macros that | |
7819 | # take arguments), then branch to the quote section. Otherwise, | |
7820 | # look for a macro that doesn't take arguments. | |
7821 | ac_script=' | |
7822 | :mline | |
7823 | /\\$/{ | |
7824 | N | |
7825 | s,\\\n,, | |
7826 | b mline | |
7827 | } | |
7828 | t clear | |
7829 | :clear | |
7830 | s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g | |
7831 | t quote | |
7832 | s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g | |
7833 | t quote | |
7834 | b any | |
7835 | :quote | |
7836 | s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g | |
7837 | s/\[/\\&/g | |
7838 | s/\]/\\&/g | |
7839 | s/\$/$$/g | |
7840 | H | |
7841 | :any | |
7842 | ${ | |
7843 | g | |
7844 | s/^\n// | |
7845 | s/\n/ /g | |
7846 | p | |
7847 | } | |
7848 | ' | |
7849 | DEFS=`sed -n "$ac_script" confdefs.h` | |
7850 | ||
b75a7d8f | 7851 | |
73c04bcf A |
7852 | ac_libobjs= |
7853 | ac_ltlibobjs= | |
729e4ab9 | 7854 | U= |
73c04bcf A |
7855 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
7856 | # 1. Remove the extension, and $U if already installed. | |
729e4ab9 A |
7857 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
7858 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
7859 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
7860 | # will be set to the directory where LIBOBJS objects are built. | |
7861 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
7862 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
73c04bcf A |
7863 | done |
7864 | LIBOBJS=$ac_libobjs | |
b75a7d8f | 7865 | |
73c04bcf A |
7866 | LTLIBOBJS=$ac_ltlibobjs |
7867 | ||
7868 | ||
7869 | ||
729e4ab9 | 7870 | |
4388f060 | 7871 | : "${CONFIG_STATUS=./config.status}" |
729e4ab9 | 7872 | ac_write_fail=0 |
73c04bcf A |
7873 | ac_clean_files_save=$ac_clean_files |
7874 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
729e4ab9 A |
7875 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
7876 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
7877 | as_write_fail=0 | |
7878 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
73c04bcf A |
7879 | #! $SHELL |
7880 | # Generated by $as_me. | |
b75a7d8f | 7881 | # Run this file to recreate the current configuration. |
b75a7d8f | 7882 | # Compiler output produced by configure, useful for debugging |
73c04bcf | 7883 | # configure, is in config.log if it exists. |
b75a7d8f | 7884 | |
73c04bcf A |
7885 | debug=false |
7886 | ac_cs_recheck=false | |
7887 | ac_cs_silent=false | |
73c04bcf | 7888 | |
729e4ab9 A |
7889 | SHELL=\${CONFIG_SHELL-$SHELL} |
7890 | export SHELL | |
7891 | _ASEOF | |
7892 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
7893 | ## -------------------- ## | |
7894 | ## M4sh Initialization. ## | |
7895 | ## -------------------- ## | |
7896 | ||
7897 | # Be more Bourne compatible | |
7898 | DUALCASE=1; export DUALCASE # for MKS sh | |
7899 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
73c04bcf A |
7900 | emulate sh |
7901 | NULLCMD=: | |
729e4ab9 | 7902 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
73c04bcf A |
7903 | # is contrary to our usage. Disable this feature. |
7904 | alias -g '${1+"$@"}'='"$@"' | |
729e4ab9 | 7905 | setopt NO_GLOB_SUBST |
73c04bcf | 7906 | else |
729e4ab9 A |
7907 | case `(set -o) 2>/dev/null` in #( |
7908 | *posix*) : | |
7909 | set -o posix ;; #( | |
7910 | *) : | |
7911 | ;; | |
7912 | esac | |
73c04bcf A |
7913 | fi |
7914 | ||
7915 | ||
729e4ab9 A |
7916 | as_nl=' |
7917 | ' | |
7918 | export as_nl | |
7919 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
7920 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
7921 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
7922 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
7923 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
7924 | # but without wasting forks for bash or zsh. | |
7925 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
7926 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
7927 | as_echo='print -r --' | |
7928 | as_echo_n='print -rn --' | |
7929 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
7930 | as_echo='printf %s\n' | |
7931 | as_echo_n='printf %s' | |
7932 | else | |
7933 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
7934 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
7935 | as_echo_n='/usr/ucb/echo -n' | |
73c04bcf | 7936 | else |
729e4ab9 A |
7937 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
7938 | as_echo_n_body='eval | |
7939 | arg=$1; | |
7940 | case $arg in #( | |
7941 | *"$as_nl"*) | |
7942 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
7943 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
7944 | esac; | |
7945 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
7946 | ' | |
7947 | export as_echo_n_body | |
7948 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
73c04bcf | 7949 | fi |
729e4ab9 A |
7950 | export as_echo_body |
7951 | as_echo='sh -c $as_echo_body as_echo' | |
73c04bcf A |
7952 | fi |
7953 | ||
73c04bcf A |
7954 | # The user is always right. |
7955 | if test "${PATH_SEPARATOR+set}" != set; then | |
729e4ab9 A |
7956 | PATH_SEPARATOR=: |
7957 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
7958 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
7959 | PATH_SEPARATOR=';' | |
7960 | } | |
73c04bcf A |
7961 | fi |
7962 | ||
7963 | ||
729e4ab9 A |
7964 | # IFS |
7965 | # We need space, tab and new line, in precisely that order. Quoting is | |
7966 | # there to prevent editors from complaining about space-tab. | |
7967 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
7968 | # splitting by setting IFS to empty value.) | |
7969 | IFS=" "" $as_nl" | |
7970 | ||
7971 | # Find who we are. Look in the path if we contain no directory separator. | |
4388f060 | 7972 | as_myself= |
729e4ab9 A |
7973 | case $0 in #(( |
7974 | *[\\/]* ) as_myself=$0 ;; | |
7975 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
73c04bcf A |
7976 | for as_dir in $PATH |
7977 | do | |
7978 | IFS=$as_save_IFS | |
7979 | test -z "$as_dir" && as_dir=. | |
729e4ab9 A |
7980 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
7981 | done | |
7982 | IFS=$as_save_IFS | |
7983 | ||
7984 | ;; | |
7985 | esac | |
7986 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
7987 | # in which case we are not to be found in the path. | |
7988 | if test "x$as_myself" = x; then | |
7989 | as_myself=$0 | |
7990 | fi | |
7991 | if test ! -f "$as_myself"; then | |
7992 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
7993 | exit 1 | |
7994 | fi | |
7995 | ||
7996 | # Unset variables that we do not need and which cause bugs (e.g. in | |
7997 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
7998 | # suppresses any "Segmentation fault" message there. '((' could | |
7999 | # trigger a bug in pdksh 5.2.14. | |
8000 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
8001 | do eval test x\${$as_var+set} = xset \ | |
8002 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
73c04bcf | 8003 | done |
729e4ab9 A |
8004 | PS1='$ ' |
8005 | PS2='> ' | |
8006 | PS4='+ ' | |
73c04bcf | 8007 | |
729e4ab9 A |
8008 | # NLS nuisances. |
8009 | LC_ALL=C | |
8010 | export LC_ALL | |
8011 | LANGUAGE=C | |
8012 | export LANGUAGE | |
8013 | ||
8014 | # CDPATH. | |
8015 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
8016 | ||
8017 | ||
8018 | # as_fn_error STATUS ERROR [LINENO LOG_FD] | |
8019 | # ---------------------------------------- | |
8020 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
8021 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
8022 | # script with STATUS, using 1 if that was 0. | |
8023 | as_fn_error () | |
8024 | { | |
8025 | as_status=$1; test $as_status -eq 0 && as_status=1 | |
8026 | if test "$4"; then | |
8027 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
8028 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
b75a7d8f | 8029 | fi |
729e4ab9 A |
8030 | $as_echo "$as_me: error: $2" >&2 |
8031 | as_fn_exit $as_status | |
8032 | } # as_fn_error | |
b75a7d8f | 8033 | |
73c04bcf | 8034 | |
729e4ab9 A |
8035 | # as_fn_set_status STATUS |
8036 | # ----------------------- | |
8037 | # Set $? to STATUS, without forking. | |
8038 | as_fn_set_status () | |
8039 | { | |
8040 | return $1 | |
8041 | } # as_fn_set_status | |
73c04bcf | 8042 | |
729e4ab9 A |
8043 | # as_fn_exit STATUS |
8044 | # ----------------- | |
8045 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
8046 | as_fn_exit () | |
8047 | { | |
8048 | set +e | |
8049 | as_fn_set_status $1 | |
8050 | exit $1 | |
8051 | } # as_fn_exit | |
8052 | ||
8053 | # as_fn_unset VAR | |
8054 | # --------------- | |
8055 | # Portably unset VAR. | |
8056 | as_fn_unset () | |
8057 | { | |
8058 | { eval $1=; unset $1;} | |
8059 | } | |
8060 | as_unset=as_fn_unset | |
8061 | # as_fn_append VAR VALUE | |
8062 | # ---------------------- | |
8063 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
8064 | # advantage of any shell optimizations that allow amortized linear growth over | |
8065 | # repeated appends, instead of the typical quadratic growth present in naive | |
8066 | # implementations. | |
8067 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
8068 | eval 'as_fn_append () | |
8069 | { | |
8070 | eval $1+=\$2 | |
8071 | }' | |
8072 | else | |
8073 | as_fn_append () | |
8074 | { | |
8075 | eval $1=\$$1\$2 | |
8076 | } | |
8077 | fi # as_fn_append | |
8078 | ||
8079 | # as_fn_arith ARG... | |
8080 | # ------------------ | |
8081 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
8082 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
8083 | # must be portable across $(()) and expr. | |
8084 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
8085 | eval 'as_fn_arith () | |
8086 | { | |
8087 | as_val=$(( $* )) | |
8088 | }' | |
8089 | else | |
8090 | as_fn_arith () | |
8091 | { | |
8092 | as_val=`expr "$@" || test $? -eq 1` | |
8093 | } | |
8094 | fi # as_fn_arith | |
b75a7d8f | 8095 | |
73c04bcf | 8096 | |
729e4ab9 A |
8097 | if expr a : '\(a\)' >/dev/null 2>&1 && |
8098 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
73c04bcf A |
8099 | as_expr=expr |
8100 | else | |
8101 | as_expr=false | |
8102 | fi | |
8103 | ||
729e4ab9 A |
8104 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
8105 | as_basename=basename | |
8106 | else | |
8107 | as_basename=false | |
8108 | fi | |
8109 | ||
8110 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | |
8111 | as_dirname=dirname | |
8112 | else | |
8113 | as_dirname=false | |
8114 | fi | |
8115 | ||
8116 | as_me=`$as_basename -- "$0" || | |
8117 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
8118 | X"$0" : 'X\(//\)$' \| \ | |
8119 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | |
8120 | $as_echo X/"$0" | | |
8121 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
8122 | s//\1/ | |
8123 | q | |
8124 | } | |
8125 | /^X\/\(\/\/\)$/{ | |
8126 | s//\1/ | |
8127 | q | |
8128 | } | |
8129 | /^X\/\(\/\).*/{ | |
8130 | s//\1/ | |
8131 | q | |
8132 | } | |
8133 | s/.*/./; q'` | |
8134 | ||
8135 | # Avoid depending upon Character Ranges. | |
8136 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
8137 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
8138 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
8139 | as_cr_digits='0123456789' | |
8140 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
8141 | ||
8142 | ECHO_C= ECHO_N= ECHO_T= | |
8143 | case `echo -n x` in #((((( | |
8144 | -n*) | |
8145 | case `echo 'xy\c'` in | |
8146 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
8147 | xy) ECHO_C='\c';; | |
8148 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
8149 | ECHO_T=' ';; | |
8150 | esac;; | |
8151 | *) | |
8152 | ECHO_N='-n';; | |
8153 | esac | |
8154 | ||
73c04bcf | 8155 | rm -f conf$$ conf$$.exe conf$$.file |
729e4ab9 A |
8156 | if test -d conf$$.dir; then |
8157 | rm -f conf$$.dir/conf$$.file | |
8158 | else | |
8159 | rm -f conf$$.dir | |
8160 | mkdir conf$$.dir 2>/dev/null | |
8161 | fi | |
8162 | if (echo >conf$$.file) 2>/dev/null; then | |
8163 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
73c04bcf | 8164 | as_ln_s='ln -s' |
729e4ab9 A |
8165 | # ... but there are two gotchas: |
8166 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
8167 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
b331163b | 8168 | # In both cases, we have to default to `cp -pR'. |
729e4ab9 | 8169 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
b331163b | 8170 | as_ln_s='cp -pR' |
729e4ab9 A |
8171 | elif ln conf$$.file conf$$ 2>/dev/null; then |
8172 | as_ln_s=ln | |
8173 | else | |
b331163b | 8174 | as_ln_s='cp -pR' |
b75a7d8f | 8175 | fi |
73c04bcf | 8176 | else |
b331163b | 8177 | as_ln_s='cp -pR' |
73c04bcf | 8178 | fi |
729e4ab9 A |
8179 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
8180 | rmdir conf$$.dir 2>/dev/null | |
8181 | ||
8182 | ||
8183 | # as_fn_mkdir_p | |
8184 | # ------------- | |
8185 | # Create "$as_dir" as a directory, including parents if necessary. | |
8186 | as_fn_mkdir_p () | |
8187 | { | |
8188 | ||
8189 | case $as_dir in #( | |
8190 | -*) as_dir=./$as_dir;; | |
8191 | esac | |
8192 | test -d "$as_dir" || eval $as_mkdir_p || { | |
8193 | as_dirs= | |
8194 | while :; do | |
8195 | case $as_dir in #( | |
8196 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
8197 | *) as_qdir=$as_dir;; | |
8198 | esac | |
8199 | as_dirs="'$as_qdir' $as_dirs" | |
8200 | as_dir=`$as_dirname -- "$as_dir" || | |
8201 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
8202 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
8203 | X"$as_dir" : 'X\(//\)$' \| \ | |
8204 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
8205 | $as_echo X"$as_dir" | | |
8206 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
8207 | s//\1/ | |
8208 | q | |
8209 | } | |
8210 | /^X\(\/\/\)[^/].*/{ | |
8211 | s//\1/ | |
8212 | q | |
8213 | } | |
8214 | /^X\(\/\/\)$/{ | |
8215 | s//\1/ | |
8216 | q | |
8217 | } | |
8218 | /^X\(\/\).*/{ | |
8219 | s//\1/ | |
8220 | q | |
8221 | } | |
8222 | s/.*/./; q'` | |
8223 | test -d "$as_dir" && break | |
8224 | done | |
8225 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
8226 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" | |
b75a7d8f | 8227 | |
729e4ab9 A |
8228 | |
8229 | } # as_fn_mkdir_p | |
73c04bcf | 8230 | if mkdir -p . 2>/dev/null; then |
729e4ab9 | 8231 | as_mkdir_p='mkdir -p "$as_dir"' |
73c04bcf A |
8232 | else |
8233 | test -d ./-p && rmdir ./-p | |
8234 | as_mkdir_p=false | |
8235 | fi | |
8236 | ||
b331163b A |
8237 | |
8238 | # as_fn_executable_p FILE | |
8239 | # ----------------------- | |
8240 | # Test if FILE is an executable regular file. | |
8241 | as_fn_executable_p () | |
8242 | { | |
8243 | test -f "$1" && test -x "$1" | |
8244 | } # as_fn_executable_p | |
8245 | as_test_x='test -x' | |
8246 | as_executable_p=as_fn_executable_p | |
73c04bcf A |
8247 | |
8248 | # Sed expression to map a string onto a valid CPP name. | |
8249 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
8250 | ||
8251 | # Sed expression to map a string onto a valid variable name. | |
8252 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
8253 | ||
8254 | ||
73c04bcf | 8255 | exec 6>&1 |
729e4ab9 A |
8256 | ## ----------------------------------- ## |
8257 | ## Main body of $CONFIG_STATUS script. ## | |
8258 | ## ----------------------------------- ## | |
8259 | _ASEOF | |
8260 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
8261 | ||
8262 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
8263 | # Save the log message, to keep $0 and so on meaningful, and to | |
73c04bcf | 8264 | # report actual input values of CONFIG_FILES etc. instead of their |
729e4ab9 A |
8265 | # values after options handling. |
8266 | ac_log=" | |
b331163b A |
8267 | This file was extended by ICU $as_me 55.1, which was |
8268 | generated by GNU Autoconf 2.69. Invocation command line was | |
73c04bcf A |
8269 | |
8270 | CONFIG_FILES = $CONFIG_FILES | |
8271 | CONFIG_HEADERS = $CONFIG_HEADERS | |
8272 | CONFIG_LINKS = $CONFIG_LINKS | |
8273 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
8274 | $ $0 $@ | |
8275 | ||
729e4ab9 A |
8276 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
8277 | " | |
8278 | ||
73c04bcf A |
8279 | _ACEOF |
8280 | ||
729e4ab9 A |
8281 | case $ac_config_files in *" |
8282 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
8283 | esac | |
73c04bcf | 8284 | |
73c04bcf | 8285 | |
73c04bcf | 8286 | |
729e4ab9 A |
8287 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
8288 | # Files that config.status was made for. | |
8289 | config_files="$ac_config_files" | |
73c04bcf | 8290 | |
729e4ab9 | 8291 | _ACEOF |
73c04bcf | 8292 | |
729e4ab9 | 8293 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
73c04bcf | 8294 | ac_cs_usage="\ |
729e4ab9 A |
8295 | \`$as_me' instantiates files and other configuration actions |
8296 | from templates according to the current configuration. Unless the files | |
8297 | and actions are specified as TAGs, all are instantiated by default. | |
73c04bcf | 8298 | |
729e4ab9 | 8299 | Usage: $0 [OPTION]... [TAG]... |
73c04bcf A |
8300 | |
8301 | -h, --help print this help, then exit | |
729e4ab9 A |
8302 | -V, --version print version number and configuration settings, then exit |
8303 | --config print configuration, then exit | |
8304 | -q, --quiet, --silent | |
8305 | do not print progress messages | |
73c04bcf A |
8306 | -d, --debug don't remove temporary files |
8307 | --recheck update $as_me by reconfiguring in the same conditions | |
729e4ab9 A |
8308 | --file=FILE[:TEMPLATE] |
8309 | instantiate the configuration file FILE | |
73c04bcf A |
8310 | |
8311 | Configuration files: | |
8312 | $config_files | |
8313 | ||
b331163b A |
8314 | Report bugs to <http://icu-project.org/bugs>. |
8315 | ICU home page: <http://icu-project.org>." | |
73c04bcf | 8316 | |
729e4ab9 A |
8317 | _ACEOF |
8318 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
8319 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" | |
73c04bcf | 8320 | ac_cs_version="\\ |
b331163b A |
8321 | ICU config.status 55.1 |
8322 | configured by $0, generated by GNU Autoconf 2.69, | |
729e4ab9 | 8323 | with options \\"\$ac_cs_config\\" |
73c04bcf | 8324 | |
b331163b | 8325 | Copyright (C) 2012 Free Software Foundation, Inc. |
73c04bcf A |
8326 | This config.status script is free software; the Free Software Foundation |
8327 | gives unlimited permission to copy, distribute and modify it." | |
729e4ab9 A |
8328 | |
8329 | ac_pwd='$ac_pwd' | |
8330 | srcdir='$srcdir' | |
8331 | INSTALL='$INSTALL' | |
8332 | test -n "\$AWK" || AWK=awk | |
73c04bcf A |
8333 | _ACEOF |
8334 | ||
729e4ab9 A |
8335 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
8336 | # The default lists apply if the user does not specify any file. | |
73c04bcf A |
8337 | ac_need_defaults=: |
8338 | while test $# != 0 | |
8339 | do | |
8340 | case $1 in | |
729e4ab9 A |
8341 | --*=?*) |
8342 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
8343 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
73c04bcf A |
8344 | ac_shift=: |
8345 | ;; | |
729e4ab9 A |
8346 | --*=) |
8347 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
8348 | ac_optarg= | |
8349 | ac_shift=: | |
8350 | ;; | |
8351 | *) | |
73c04bcf A |
8352 | ac_option=$1 |
8353 | ac_optarg=$2 | |
8354 | ac_shift=shift | |
8355 | ;; | |
73c04bcf A |
8356 | esac |
8357 | ||
8358 | case $ac_option in | |
8359 | # Handling of the options. | |
73c04bcf A |
8360 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
8361 | ac_cs_recheck=: ;; | |
729e4ab9 A |
8362 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
8363 | $as_echo "$ac_cs_version"; exit ;; | |
8364 | --config | --confi | --conf | --con | --co | --c ) | |
8365 | $as_echo "$ac_cs_config"; exit ;; | |
8366 | --debug | --debu | --deb | --de | --d | -d ) | |
73c04bcf A |
8367 | debug=: ;; |
8368 | --file | --fil | --fi | --f ) | |
8369 | $ac_shift | |
729e4ab9 A |
8370 | case $ac_optarg in |
8371 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
8372 | '') as_fn_error $? "missing file argument" ;; | |
8373 | esac | |
8374 | as_fn_append CONFIG_FILES " '$ac_optarg'" | |
73c04bcf | 8375 | ac_need_defaults=false;; |
4388f060 | 8376 | --he | --h | --help | --hel | -h ) |
729e4ab9 | 8377 | $as_echo "$ac_cs_usage"; exit ;; |
73c04bcf A |
8378 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
8379 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
8380 | ac_cs_silent=: ;; | |
8381 | ||
8382 | # This is an error. | |
729e4ab9 A |
8383 | -*) as_fn_error $? "unrecognized option: \`$1' |
8384 | Try \`$0 --help' for more information." ;; | |
73c04bcf | 8385 | |
729e4ab9 A |
8386 | *) as_fn_append ac_config_targets " $1" |
8387 | ac_need_defaults=false ;; | |
73c04bcf A |
8388 | |
8389 | esac | |
8390 | shift | |
8391 | done | |
8392 | ||
8393 | ac_configure_extra_args= | |
8394 | ||
8395 | if $ac_cs_silent; then | |
8396 | exec 6>/dev/null | |
8397 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
8398 | fi | |
8399 | ||
8400 | _ACEOF | |
729e4ab9 | 8401 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
73c04bcf | 8402 | if \$ac_cs_recheck; then |
b331163b | 8403 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
729e4ab9 A |
8404 | shift |
8405 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
8406 | CONFIG_SHELL='$SHELL' | |
8407 | export CONFIG_SHELL | |
8408 | exec "\$@" | |
73c04bcf A |
8409 | fi |
8410 | ||
8411 | _ACEOF | |
729e4ab9 A |
8412 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
8413 | exec 5>>config.log | |
8414 | { | |
8415 | echo | |
8416 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
8417 | ## Running $as_me. ## | |
8418 | _ASBOX | |
8419 | $as_echo "$ac_log" | |
8420 | } >&5 | |
73c04bcf | 8421 | |
729e4ab9 A |
8422 | _ACEOF |
8423 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
8424 | _ACEOF | |
73c04bcf | 8425 | |
729e4ab9 | 8426 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
73c04bcf | 8427 | |
729e4ab9 | 8428 | # Handling of arguments. |
73c04bcf A |
8429 | for ac_config_target in $ac_config_targets |
8430 | do | |
729e4ab9 | 8431 | case $ac_config_target in |
729e4ab9 A |
8432 | "icudefs.mk") CONFIG_FILES="$CONFIG_FILES icudefs.mk" ;; |
8433 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
8434 | "data/pkgdataMakefile") CONFIG_FILES="$CONFIG_FILES data/pkgdataMakefile" ;; | |
8435 | "config/Makefile.inc") CONFIG_FILES="$CONFIG_FILES config/Makefile.inc" ;; | |
8436 | "config/icu.pc") CONFIG_FILES="$CONFIG_FILES config/icu.pc" ;; | |
8437 | "config/pkgdataMakefile") CONFIG_FILES="$CONFIG_FILES config/pkgdataMakefile" ;; | |
8438 | "data/Makefile") CONFIG_FILES="$CONFIG_FILES data/Makefile" ;; | |
8439 | "stubdata/Makefile") CONFIG_FILES="$CONFIG_FILES stubdata/Makefile" ;; | |
8440 | "common/Makefile") CONFIG_FILES="$CONFIG_FILES common/Makefile" ;; | |
8441 | "i18n/Makefile") CONFIG_FILES="$CONFIG_FILES i18n/Makefile" ;; | |
8442 | "layout/Makefile") CONFIG_FILES="$CONFIG_FILES layout/Makefile" ;; | |
8443 | "layoutex/Makefile") CONFIG_FILES="$CONFIG_FILES layoutex/Makefile" ;; | |
8444 | "io/Makefile") CONFIG_FILES="$CONFIG_FILES io/Makefile" ;; | |
8445 | "extra/Makefile") CONFIG_FILES="$CONFIG_FILES extra/Makefile" ;; | |
8446 | "extra/uconv/Makefile") CONFIG_FILES="$CONFIG_FILES extra/uconv/Makefile" ;; | |
8447 | "extra/uconv/pkgdataMakefile") CONFIG_FILES="$CONFIG_FILES extra/uconv/pkgdataMakefile" ;; | |
8448 | "extra/scrptrun/Makefile") CONFIG_FILES="$CONFIG_FILES extra/scrptrun/Makefile" ;; | |
8449 | "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;; | |
8450 | "tools/ctestfw/Makefile") CONFIG_FILES="$CONFIG_FILES tools/ctestfw/Makefile" ;; | |
8451 | "tools/toolutil/Makefile") CONFIG_FILES="$CONFIG_FILES tools/toolutil/Makefile" ;; | |
8452 | "tools/makeconv/Makefile") CONFIG_FILES="$CONFIG_FILES tools/makeconv/Makefile" ;; | |
8453 | "tools/genrb/Makefile") CONFIG_FILES="$CONFIG_FILES tools/genrb/Makefile" ;; | |
8454 | "tools/genccode/Makefile") CONFIG_FILES="$CONFIG_FILES tools/genccode/Makefile" ;; | |
8455 | "tools/gencmn/Makefile") CONFIG_FILES="$CONFIG_FILES tools/gencmn/Makefile" ;; | |
8456 | "tools/gencnval/Makefile") CONFIG_FILES="$CONFIG_FILES tools/gencnval/Makefile" ;; | |
51004dcb | 8457 | "tools/gendict/Makefile") CONFIG_FILES="$CONFIG_FILES tools/gendict/Makefile" ;; |
729e4ab9 A |
8458 | "tools/gentest/Makefile") CONFIG_FILES="$CONFIG_FILES tools/gentest/Makefile" ;; |
8459 | "tools/gennorm2/Makefile") CONFIG_FILES="$CONFIG_FILES tools/gennorm2/Makefile" ;; | |
8460 | "tools/genbrk/Makefile") CONFIG_FILES="$CONFIG_FILES tools/genbrk/Makefile" ;; | |
8461 | "tools/gensprep/Makefile") CONFIG_FILES="$CONFIG_FILES tools/gensprep/Makefile" ;; | |
8462 | "tools/icuinfo/Makefile") CONFIG_FILES="$CONFIG_FILES tools/icuinfo/Makefile" ;; | |
8463 | "tools/icupkg/Makefile") CONFIG_FILES="$CONFIG_FILES tools/icupkg/Makefile" ;; | |
8464 | "tools/icuswap/Makefile") CONFIG_FILES="$CONFIG_FILES tools/icuswap/Makefile" ;; | |
8465 | "tools/pkgdata/Makefile") CONFIG_FILES="$CONFIG_FILES tools/pkgdata/Makefile" ;; | |
8466 | "tools/tzcode/Makefile") CONFIG_FILES="$CONFIG_FILES tools/tzcode/Makefile" ;; | |
8467 | "tools/gencfu/Makefile") CONFIG_FILES="$CONFIG_FILES tools/gencfu/Makefile" ;; | |
8468 | "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;; | |
8469 | "test/compat/Makefile") CONFIG_FILES="$CONFIG_FILES test/compat/Makefile" ;; | |
8470 | "test/testdata/Makefile") CONFIG_FILES="$CONFIG_FILES test/testdata/Makefile" ;; | |
8471 | "test/testdata/pkgdataMakefile") CONFIG_FILES="$CONFIG_FILES test/testdata/pkgdataMakefile" ;; | |
8472 | "test/hdrtst/Makefile") CONFIG_FILES="$CONFIG_FILES test/hdrtst/Makefile" ;; | |
8473 | "test/intltest/Makefile") CONFIG_FILES="$CONFIG_FILES test/intltest/Makefile" ;; | |
8474 | "test/cintltst/Makefile") CONFIG_FILES="$CONFIG_FILES test/cintltst/Makefile" ;; | |
8475 | "test/iotest/Makefile") CONFIG_FILES="$CONFIG_FILES test/iotest/Makefile" ;; | |
8476 | "test/letest/Makefile") CONFIG_FILES="$CONFIG_FILES test/letest/Makefile" ;; | |
8477 | "test/perf/Makefile") CONFIG_FILES="$CONFIG_FILES test/perf/Makefile" ;; | |
8478 | "test/perf/collationperf/Makefile") CONFIG_FILES="$CONFIG_FILES test/perf/collationperf/Makefile" ;; | |
51004dcb | 8479 | "test/perf/collperf/Makefile") CONFIG_FILES="$CONFIG_FILES test/perf/collperf/Makefile" ;; |
57a6839d | 8480 | "test/perf/collperf2/Makefile") CONFIG_FILES="$CONFIG_FILES test/perf/collperf2/Makefile" ;; |
4388f060 | 8481 | "test/perf/dicttrieperf/Makefile") CONFIG_FILES="$CONFIG_FILES test/perf/dicttrieperf/Makefile" ;; |
729e4ab9 A |
8482 | "test/perf/ubrkperf/Makefile") CONFIG_FILES="$CONFIG_FILES test/perf/ubrkperf/Makefile" ;; |
8483 | "test/perf/charperf/Makefile") CONFIG_FILES="$CONFIG_FILES test/perf/charperf/Makefile" ;; | |
8484 | "test/perf/convperf/Makefile") CONFIG_FILES="$CONFIG_FILES test/perf/convperf/Makefile" ;; | |
8485 | "test/perf/normperf/Makefile") CONFIG_FILES="$CONFIG_FILES test/perf/normperf/Makefile" ;; | |
8486 | "test/perf/DateFmtPerf/Makefile") CONFIG_FILES="$CONFIG_FILES test/perf/DateFmtPerf/Makefile" ;; | |
4388f060 | 8487 | "test/perf/howExpensiveIs/Makefile") CONFIG_FILES="$CONFIG_FILES test/perf/howExpensiveIs/Makefile" ;; |
729e4ab9 A |
8488 | "test/perf/strsrchperf/Makefile") CONFIG_FILES="$CONFIG_FILES test/perf/strsrchperf/Makefile" ;; |
8489 | "test/perf/unisetperf/Makefile") CONFIG_FILES="$CONFIG_FILES test/perf/unisetperf/Makefile" ;; | |
8490 | "test/perf/usetperf/Makefile") CONFIG_FILES="$CONFIG_FILES test/perf/usetperf/Makefile" ;; | |
8491 | "test/perf/ustrperf/Makefile") CONFIG_FILES="$CONFIG_FILES test/perf/ustrperf/Makefile" ;; | |
8492 | "test/perf/utfperf/Makefile") CONFIG_FILES="$CONFIG_FILES test/perf/utfperf/Makefile" ;; | |
8493 | "test/perf/utrie2perf/Makefile") CONFIG_FILES="$CONFIG_FILES test/perf/utrie2perf/Makefile" ;; | |
57a6839d | 8494 | "test/perf/leperf/Makefile") CONFIG_FILES="$CONFIG_FILES test/perf/leperf/Makefile" ;; |
729e4ab9 A |
8495 | "samples/Makefile") CONFIG_FILES="$CONFIG_FILES samples/Makefile" ;; |
8496 | "samples/date/Makefile") CONFIG_FILES="$CONFIG_FILES samples/date/Makefile" ;; | |
8497 | "samples/cal/Makefile") CONFIG_FILES="$CONFIG_FILES samples/cal/Makefile" ;; | |
8498 | "samples/layout/Makefile") CONFIG_FILES="$CONFIG_FILES samples/layout/Makefile" ;; | |
729e4ab9 A |
8499 | |
8500 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; | |
b75a7d8f | 8501 | esac |
73c04bcf A |
8502 | done |
8503 | ||
729e4ab9 | 8504 | |
73c04bcf A |
8505 | # If the user did not use the arguments to specify the items to instantiate, |
8506 | # then the envvar interface is used. Set only those that are not. | |
8507 | # We use the long form for the default assignment because of an extremely | |
8508 | # bizarre bug on SunOS 4.1.3. | |
8509 | if $ac_need_defaults; then | |
8510 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
73c04bcf A |
8511 | fi |
8512 | ||
8513 | # Have a temporary directory for convenience. Make it in the build tree | |
729e4ab9 | 8514 | # simply because there is no reason against having it here, and in addition, |
73c04bcf | 8515 | # creating and moving files from /tmp can sometimes cause problems. |
729e4ab9 A |
8516 | # Hook for its removal unless debugging. |
8517 | # Note that there is a small window in which the directory will not be cleaned: | |
8518 | # after its creation but before its name has been assigned to `$tmp'. | |
73c04bcf A |
8519 | $debug || |
8520 | { | |
4388f060 | 8521 | tmp= ac_tmp= |
729e4ab9 | 8522 | trap 'exit_status=$? |
4388f060 A |
8523 | : "${ac_tmp:=$tmp}" |
8524 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status | |
729e4ab9 A |
8525 | ' 0 |
8526 | trap 'as_fn_exit 1' 1 2 13 15 | |
73c04bcf | 8527 | } |
73c04bcf A |
8528 | # Create a (secure) tmp directory for tmp files. |
8529 | ||
8530 | { | |
729e4ab9 | 8531 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
4388f060 | 8532 | test -d "$tmp" |
73c04bcf A |
8533 | } || |
8534 | { | |
729e4ab9 A |
8535 | tmp=./conf$$-$RANDOM |
8536 | (umask 077 && mkdir "$tmp") | |
8537 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 | |
4388f060 | 8538 | ac_tmp=$tmp |
729e4ab9 A |
8539 | |
8540 | # Set up the scripts for CONFIG_FILES section. | |
8541 | # No need to generate them if there are no CONFIG_FILES. | |
8542 | # This happens for instance with `./config.status config.h'. | |
8543 | if test -n "$CONFIG_FILES"; then | |
8544 | ||
8545 | ||
8546 | ac_cr=`echo X | tr X '\015'` | |
8547 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
8548 | # But we know of no other shell where ac_cr would be empty at this | |
8549 | # point, so we can use a bashism as a fallback. | |
8550 | if test "x$ac_cr" = x; then | |
8551 | eval ac_cr=\$\'\\r\' | |
8552 | fi | |
8553 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
8554 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
8555 | ac_cs_awk_cr='\\r' | |
8556 | else | |
8557 | ac_cs_awk_cr=$ac_cr | |
8558 | fi | |
8559 | ||
4388f060 | 8560 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
729e4ab9 A |
8561 | _ACEOF |
8562 | ||
8563 | ||
8564 | { | |
8565 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
8566 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
8567 | echo "_ACEOF" | |
8568 | } >conf$$subs.sh || | |
8569 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | |
8570 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` | |
8571 | ac_delim='%!_!# ' | |
8572 | for ac_last_try in false false false false false :; do | |
8573 | . ./conf$$subs.sh || | |
8574 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | |
8575 | ||
8576 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
8577 | if test $ac_delim_n = $ac_delim_num; then | |
8578 | break | |
8579 | elif $ac_last_try; then | |
8580 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | |
8581 | else | |
8582 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
8583 | fi | |
8584 | done | |
8585 | rm -f conf$$subs.sh | |
8586 | ||
8587 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
4388f060 | 8588 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
729e4ab9 A |
8589 | _ACEOF |
8590 | sed -n ' | |
8591 | h | |
8592 | s/^/S["/; s/!.*/"]=/ | |
8593 | p | |
8594 | g | |
8595 | s/^[^!]*!// | |
8596 | :repl | |
8597 | t repl | |
8598 | s/'"$ac_delim"'$// | |
8599 | t delim | |
8600 | :nl | |
8601 | h | |
8602 | s/\(.\{148\}\)..*/\1/ | |
8603 | t more1 | |
8604 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
8605 | p | |
8606 | n | |
8607 | b repl | |
8608 | :more1 | |
8609 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
8610 | p | |
8611 | g | |
8612 | s/.\{148\}// | |
8613 | t nl | |
8614 | :delim | |
8615 | h | |
8616 | s/\(.\{148\}\)..*/\1/ | |
8617 | t more2 | |
8618 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
8619 | p | |
8620 | b | |
8621 | :more2 | |
8622 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
8623 | p | |
8624 | g | |
8625 | s/.\{148\}// | |
8626 | t delim | |
8627 | ' <conf$$subs.awk | sed ' | |
8628 | /^[^""]/{ | |
8629 | N | |
8630 | s/\n// | |
8631 | } | |
8632 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
8633 | rm -f conf$$subs.awk | |
8634 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
8635 | _ACAWK | |
4388f060 | 8636 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
729e4ab9 A |
8637 | for (key in S) S_is_set[key] = 1 |
8638 | FS = "\a" | |
8639 | ||
8640 | } | |
73c04bcf | 8641 | { |
729e4ab9 A |
8642 | line = $ 0 |
8643 | nfields = split(line, field, "@") | |
8644 | substed = 0 | |
8645 | len = length(field[1]) | |
8646 | for (i = 2; i < nfields; i++) { | |
8647 | key = field[i] | |
8648 | keylen = length(key) | |
8649 | if (S_is_set[key]) { | |
8650 | value = S[key] | |
8651 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
8652 | len += length(value) + length(field[++i]) | |
8653 | substed = 1 | |
8654 | } else | |
8655 | len += 1 + keylen | |
8656 | } | |
8657 | ||
8658 | print line | |
73c04bcf A |
8659 | } |
8660 | ||
729e4ab9 A |
8661 | _ACAWK |
8662 | _ACEOF | |
8663 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
8664 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
8665 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
8666 | else | |
8667 | cat | |
4388f060 | 8668 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
729e4ab9 | 8669 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 |
73c04bcf A |
8670 | _ACEOF |
8671 | ||
729e4ab9 A |
8672 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
8673 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and | |
8674 | # trailing colons and then remove the whole line if VPATH becomes empty | |
8675 | # (actually we leave an empty line to preserve line numbers). | |
8676 | if test "x$srcdir" = x.; then | |
8677 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ | |
8678 | h | |
8679 | s/// | |
8680 | s/^/:/ | |
8681 | s/[ ]*$/:/ | |
8682 | s/:\$(srcdir):/:/g | |
8683 | s/:\${srcdir}:/:/g | |
8684 | s/:@srcdir@:/:/g | |
8685 | s/^:*// | |
8686 | s/:*$// | |
8687 | x | |
8688 | s/\(=[ ]*\).*/\1/ | |
8689 | G | |
8690 | s/\n// | |
8691 | s/^[^=]*=[ ]*$// | |
8692 | }' | |
8693 | fi | |
b75a7d8f | 8694 | |
729e4ab9 A |
8695 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
8696 | fi # test -n "$CONFIG_FILES" | |
73c04bcf | 8697 | |
729e4ab9 | 8698 | |
4388f060 | 8699 | eval set X " :F $CONFIG_FILES " |
729e4ab9 A |
8700 | shift |
8701 | for ac_tag | |
8702 | do | |
8703 | case $ac_tag in | |
8704 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
8705 | esac | |
8706 | case $ac_mode$ac_tag in | |
8707 | :[FHL]*:*);; | |
8708 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; | |
8709 | :[FH]-) ac_tag=-:-;; | |
8710 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
8711 | esac | |
8712 | ac_save_IFS=$IFS | |
8713 | IFS=: | |
8714 | set x $ac_tag | |
8715 | IFS=$ac_save_IFS | |
8716 | shift | |
8717 | ac_file=$1 | |
8718 | shift | |
8719 | ||
8720 | case $ac_mode in | |
8721 | :L) ac_source=$1;; | |
8722 | :[FH]) | |
8723 | ac_file_inputs= | |
8724 | for ac_f | |
8725 | do | |
8726 | case $ac_f in | |
4388f060 | 8727 | -) ac_f="$ac_tmp/stdin";; |
729e4ab9 A |
8728 | *) # Look for the file first in the build tree, then in the source tree |
8729 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
8730 | # because $ac_f cannot contain `:'. | |
8731 | test -f "$ac_f" || | |
8732 | case $ac_f in | |
8733 | [\\/$]*) false;; | |
8734 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
8735 | esac || | |
8736 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; | |
8737 | esac | |
8738 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
8739 | as_fn_append ac_file_inputs " '$ac_f'" | |
8740 | done | |
8741 | ||
8742 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
8743 | # use $as_me), people would be surprised to read: | |
8744 | # /* config.h. Generated by config.status. */ | |
8745 | configure_input='Generated from '` | |
8746 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
8747 | `' by configure.' | |
8748 | if test x"$ac_file" != x-; then | |
8749 | configure_input="$ac_file. $configure_input" | |
8750 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | |
8751 | $as_echo "$as_me: creating $ac_file" >&6;} | |
8752 | fi | |
8753 | # Neutralize special characters interpreted by sed in replacement strings. | |
8754 | case $configure_input in #( | |
8755 | *\&* | *\|* | *\\* ) | |
8756 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
8757 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
8758 | *) ac_sed_conf_input=$configure_input;; | |
8759 | esac | |
8760 | ||
8761 | case $ac_tag in | |
4388f060 | 8762 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
729e4ab9 A |
8763 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; |
8764 | esac | |
8765 | ;; | |
b75a7d8f A |
8766 | esac |
8767 | ||
729e4ab9 | 8768 | ac_dir=`$as_dirname -- "$ac_file" || |
73c04bcf A |
8769 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
8770 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
8771 | X"$ac_file" : 'X\(//\)$' \| \ | |
729e4ab9 A |
8772 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
8773 | $as_echo X"$ac_file" | | |
8774 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
8775 | s//\1/ | |
8776 | q | |
8777 | } | |
8778 | /^X\(\/\/\)[^/].*/{ | |
8779 | s//\1/ | |
8780 | q | |
8781 | } | |
8782 | /^X\(\/\/\)$/{ | |
8783 | s//\1/ | |
8784 | q | |
8785 | } | |
8786 | /^X\(\/\).*/{ | |
8787 | s//\1/ | |
8788 | q | |
8789 | } | |
8790 | s/.*/./; q'` | |
8791 | as_dir="$ac_dir"; as_fn_mkdir_p | |
73c04bcf A |
8792 | ac_builddir=. |
8793 | ||
729e4ab9 A |
8794 | case "$ac_dir" in |
8795 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
8796 | *) | |
8797 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
8798 | # A ".." for each directory in $ac_dir_suffix. | |
8799 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
8800 | case $ac_top_builddir_sub in | |
8801 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
8802 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
8803 | esac ;; | |
8804 | esac | |
8805 | ac_abs_top_builddir=$ac_pwd | |
8806 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
8807 | # for backward compatibility: | |
8808 | ac_top_builddir=$ac_top_build_prefix | |
73c04bcf A |
8809 | |
8810 | case $srcdir in | |
729e4ab9 | 8811 | .) # We are building in place. |
73c04bcf | 8812 | ac_srcdir=. |
729e4ab9 A |
8813 | ac_top_srcdir=$ac_top_builddir_sub |
8814 | ac_abs_top_srcdir=$ac_pwd ;; | |
8815 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
73c04bcf | 8816 | ac_srcdir=$srcdir$ac_dir_suffix; |
729e4ab9 A |
8817 | ac_top_srcdir=$srcdir |
8818 | ac_abs_top_srcdir=$srcdir ;; | |
8819 | *) # Relative name. | |
8820 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
8821 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
8822 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
73c04bcf | 8823 | esac |
729e4ab9 | 8824 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
73c04bcf | 8825 | |
73c04bcf | 8826 | |
729e4ab9 A |
8827 | case $ac_mode in |
8828 | :F) | |
8829 | # | |
8830 | # CONFIG_FILE | |
8831 | # | |
73c04bcf A |
8832 | |
8833 | case $INSTALL in | |
8834 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
729e4ab9 | 8835 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
b75a7d8f | 8836 | esac |
729e4ab9 | 8837 | _ACEOF |
b75a7d8f | 8838 | |
729e4ab9 A |
8839 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
8840 | # If the template does not know about datarootdir, expand it. | |
8841 | # FIXME: This hack should be removed a few years after 2.60. | |
8842 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
8843 | ac_sed_dataroot=' | |
8844 | /datarootdir/ { | |
8845 | p | |
8846 | q | |
8847 | } | |
8848 | /@datadir@/p | |
8849 | /@docdir@/p | |
8850 | /@infodir@/p | |
8851 | /@localedir@/p | |
8852 | /@mandir@/p' | |
8853 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
8854 | *datarootdir*) ac_datarootdir_seen=yes;; | |
8855 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
8856 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
8857 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
8858 | _ACEOF | |
8859 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
8860 | ac_datarootdir_hack=' | |
8861 | s&@datadir@&$datadir&g | |
8862 | s&@docdir@&$docdir&g | |
8863 | s&@infodir@&$infodir&g | |
8864 | s&@localedir@&$localedir&g | |
8865 | s&@mandir@&$mandir&g | |
8866 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
8867 | esac | |
73c04bcf | 8868 | _ACEOF |
729e4ab9 A |
8869 | |
8870 | # Neutralize VPATH when `$srcdir' = `.'. | |
8871 | # Shell code in configure.ac might set extrasub. | |
8872 | # FIXME: do we really want to maintain this feature? | |
8873 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
8874 | ac_sed_extra="$ac_vpsub | |
73c04bcf A |
8875 | $extrasub |
8876 | _ACEOF | |
729e4ab9 | 8877 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
73c04bcf A |
8878 | :t |
8879 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
729e4ab9 A |
8880 | s|@configure_input@|$ac_sed_conf_input|;t t |
8881 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
8882 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
8883 | s&@srcdir@&$ac_srcdir&;t t | |
8884 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
8885 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
8886 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
8887 | s&@builddir@&$ac_builddir&;t t | |
8888 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
8889 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
8890 | s&@INSTALL@&$ac_INSTALL&;t t | |
8891 | $ac_datarootdir_hack | |
8892 | " | |
4388f060 A |
8893 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ |
8894 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
729e4ab9 A |
8895 | |
8896 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
4388f060 A |
8897 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
8898 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ | |
8899 | "$ac_tmp/out"`; test -z "$ac_out"; } && | |
729e4ab9 A |
8900 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
8901 | which seems to be undefined. Please make sure it is defined" >&5 | |
8902 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
8903 | which seems to be undefined. Please make sure it is defined" >&2;} | |
8904 | ||
4388f060 | 8905 | rm -f "$ac_tmp/stdin" |
729e4ab9 | 8906 | case $ac_file in |
4388f060 A |
8907 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
8908 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; | |
729e4ab9 A |
8909 | esac \ |
8910 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
8911 | ;; | |
4388f060 | 8912 | |
73c04bcf | 8913 | |
b75a7d8f | 8914 | |
b75a7d8f A |
8915 | esac |
8916 | ||
729e4ab9 | 8917 | done # for ac_tag |
b75a7d8f | 8918 | |
b75a7d8f | 8919 | |
729e4ab9 | 8920 | as_fn_exit 0 |
73c04bcf | 8921 | _ACEOF |
73c04bcf A |
8922 | ac_clean_files=$ac_clean_files_save |
8923 | ||
729e4ab9 A |
8924 | test $ac_write_fail = 0 || |
8925 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 | |
8926 | ||
73c04bcf A |
8927 | |
8928 | # configure is writing to config.log, and then calls config.status. | |
8929 | # config.status does its own redirection, appending to config.log. | |
8930 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
8931 | # by configure, so config.status won't be able to write to it; its | |
8932 | # output is simply discarded. So we exec the FD to /dev/null, | |
8933 | # effectively closing config.log, so it can be properly (re)opened and | |
8934 | # appended to by config.status. When coming back to configure, we | |
8935 | # need to make the FD available again. | |
8936 | if test "$no_create" != yes; then | |
8937 | ac_cs_success=: | |
8938 | ac_config_status_args= | |
8939 | test "$silent" = yes && | |
8940 | ac_config_status_args="$ac_config_status_args --quiet" | |
8941 | exec 5>/dev/null | |
8942 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
8943 | exec 5>>config.log | |
8944 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
8945 | # would make configure fail if this is the last instruction. | |
729e4ab9 | 8946 | $ac_cs_success || as_fn_exit 1 |
73c04bcf | 8947 | fi |
729e4ab9 A |
8948 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
8949 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
8950 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
8951 | fi | |
8952 | ||
b75a7d8f | 8953 | |
729e4ab9 A |
8954 | echo |
8955 | echo "ICU for C/C++ $VERSION is ready to be built." | |
8956 | echo "=== Important Notes: ===" | |
b75a7d8f | 8957 | |
729e4ab9 A |
8958 | echo "Data Packaging: $datapackaging" |
8959 | echo " This means: $datapackaging_msg" | |
8960 | echo " To locate data: $datapackaging_howfound" | |
8961 | ||
73c04bcf | 8962 | if test -n "`$U_MAKE -v 2>&1 | grep '^GNU Make'`"; then |
729e4ab9 | 8963 | echo "Building ICU: Use a GNU make such as $U_MAKE to build ICU." |
73c04bcf | 8964 | else |
729e4ab9 | 8965 | echo "** WARNING: $U_MAKE may not be GNU make." |
73c04bcf | 8966 | echo "This may cause ICU to fail to build. Please make sure that GNU make" |
729e4ab9 A |
8967 | echo "is in your PATH so that the configure script can detect its location." |
8968 | fi | |
4388f060 A |
8969 | if test "x$AR" = "xfalse"; then |
8970 | echo "*** WARNING: Archiver ar not found. Set AR= or fix PATH. Some builds (such as static) may fail." | |
8971 | fi | |
729e4ab9 A |
8972 | |
8973 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the version of \"$U_MAKE\"" >&5 | |
8974 | $as_echo_n "checking the version of \"$U_MAKE\"... " >&6; } | |
8975 | if "$U_MAKE" -f "$srcdir/config/gmakever.mk" PLATFORM="$platform"; then | |
8976 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 | |
8977 | $as_echo "ok" >&6; } | |
8978 | else | |
8979 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: too old or test failed - try upgrading GNU Make" >&5 | |
8980 | $as_echo "too old or test failed - try upgrading GNU Make" >&6; } | |
73c04bcf A |
8981 | fi |
8982 | ||
57a6839d | 8983 | |
4388f060 A |
8984 | if test -n "$UCONFIG_CPPFLAGS"; then |
8985 | HDRFILE="uconfig.h.prepend" | |
8986 | echo "*** WARNING: You must set the following flags before code compiled against this ICU will function properly:" | |
8987 | echo | |
8988 | echo " ${UCONFIG_CPPFLAGS}" | |
8989 | echo | |
8990 | 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.' | |
8991 | echo "Creating the file ${HDRFILE}" | |
8992 | echo | |
8993 | echo '--------------- ' "${HDRFILE}" | |
8994 | echo > "${HDRFILE}" | |
8995 | echo '/* ICU customizations: put these lines at the top of uconfig.h */' >> "${HDRFILE}" | |
8996 | echo >> "${HDRFILE}" | |
8997 | for flag in ${UCONFIG_CPPFLAGS}; | |
8998 | do | |
8999 | echo " /* $flag */" >> "${HDRFILE}" | |
9000 | case "${flag}" in | |
9001 | -D*=*) | |
9002 | \echo "${flag}" | sed -n 's%-D\([^=]*\)=%#define \1 %p' >> "${HDRFILE}" | |
9003 | \echo >> "${HDRFILE}" | |
9004 | ;; | |
9005 | -D*) | |
9006 | \echo "${flag}" | sed -n 's%-D\([^=]*\)%#define \1 %p' >> "${HDRFILE}" | |
9007 | \echo >> "${HDRFILE}" | |
9008 | ;; | |
9009 | *) | |
9010 | \echo "/* Not sure how to handle this argument: ${flag} */" >> "${HDRFILE}" | |
9011 | \echo >> "${HDRFILE}" | |
9012 | ;; | |
9013 | esac | |
9014 | done | |
9015 | cat "${HDRFILE}" | |
9016 | \echo "/* End of ${HDRFILE} ------------ */" >> "${HDRFILE}" | |
9017 | echo >> "${HDRFILE}" | |
9018 | echo '--------------- end ' "${HDRFILE}" | |
9019 | fi | |
9020 | ||
57a6839d A |
9021 | |
9022 | if test -n "$UCONFIG_CFLAGS"; then | |
9023 | echo "C apps may want to build with CFLAGS = ${UCONFIG_CFLAGS}" | |
9024 | fi | |
9025 | ||
9026 | if test -n "$UCONFIG_CXXFLAGS"; then | |
9027 | echo "C++ apps may want to build with CXXFLAGS = ${UCONFIG_CXXFLAGS}" | |
9028 | fi | |
9029 | ||
9030 | if test "$tools" = false; | |
9031 | then | |
9032 | echo "## Note: you have disabled ICU's tools. This ICU cannot build its own data or tests." | |
9033 | echo "## Expect build failures in the 'data', 'test', and other directories." | |
9034 | fi | |
9035 | ||
73c04bcf | 9036 | $as_unset _CXX_CXXSUFFIX |