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