]>
Commit | Line | Data |
---|---|---|
b75a7d8f A |
1 | #! /bin/sh |
2 | ||
3 | # Guess values for system-dependent variables and create Makefiles. | |
4 | # Generated automatically using autoconf version 2.13 | |
5 | # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. | |
6 | # | |
7 | # This configure script is free software; the Free Software Foundation | |
8 | # gives unlimited permission to copy, distribute and modify it. | |
9 | ||
10 | # Defaults: | |
11 | ac_help= | |
12 | ac_default_prefix=/usr/local | |
13 | # Any additions from configure.in: | |
14 | ac_help="$ac_help | |
15 | --enable-strict compile with strict compiler options [default=no]" | |
16 | ac_help="$ac_help | |
17 | --enable-64bit-libs build 64-bit libraries [default=yes]" | |
18 | ac_help="$ac_help | |
374ca955 | 19 | --enable-shared build shared libraries [default=yes]" |
b75a7d8f | 20 | ac_help="$ac_help |
374ca955 | 21 | --enable-static build static libraries [default=no]" |
b75a7d8f | 22 | ac_help="$ac_help |
374ca955 A |
23 | --enable-debug build debug libraries [default=no]" |
24 | ac_help="$ac_help | |
25 | --enable-release build release libraries [default=yes]" | |
b75a7d8f A |
26 | ac_help="$ac_help |
27 | --enable-renaming add a version suffix to symbols [default=yes]" | |
374ca955 A |
28 | ac_help="$ac_help |
29 | --enable-tracing enable function and data tracing [default=yes]" | |
b75a7d8f A |
30 | ac_help="$ac_help |
31 | --enable-rpath use rpath when linking [default is only if necessary]" | |
32 | ac_help="$ac_help | |
374ca955 | 33 | --enable-threads build ICU with thread safety [default=yes]" |
b75a7d8f A |
34 | ac_help="$ac_help |
35 | --with-iostream=version specify the version of iostream to use (none, old, std, auto) [default=auto]" | |
36 | ac_help="$ac_help | |
37 | --enable-extras build ICU extras [default=yes]" | |
38 | ac_help="$ac_help | |
374ca955 | 39 | --enable-icuio build ICU's icuio library [default=yes]" |
b75a7d8f A |
40 | ac_help="$ac_help |
41 | --enable-layout build ICU's layout library [default=yes]" | |
42 | ac_help="$ac_help | |
43 | --with-data-packaging=type specify how to package ICU data (files, archive, library, auto) [default=auto]" | |
44 | ac_help="$ac_help | |
45 | " | |
46 | ac_help="$ac_help | |
47 | --with-library-suffix=suffix tag a suffix to the library names [default=]" | |
48 | ac_help="$ac_help | |
49 | --enable-tests build ICU tests [default=yes]" | |
50 | ac_help="$ac_help | |
51 | --enable-samples build ICU samples [default=yes] | |
52 | Additionally, the variable FORCE_LIBS may be set before calling configure. If set, it will REPLACE any automatic list of libraries." | |
53 | ||
54 | # Initialize some variables set by options. | |
55 | # The variables have the same names as the options, with | |
56 | # dashes changed to underlines. | |
57 | build=NONE | |
58 | cache_file=./config.cache | |
59 | exec_prefix=NONE | |
60 | host=NONE | |
61 | no_create= | |
62 | nonopt=NONE | |
63 | no_recursion= | |
64 | prefix=NONE | |
65 | program_prefix=NONE | |
66 | program_suffix=NONE | |
67 | program_transform_name=s,x,x, | |
68 | silent= | |
69 | site= | |
70 | srcdir= | |
71 | target=NONE | |
72 | verbose= | |
73 | x_includes=NONE | |
74 | x_libraries=NONE | |
75 | bindir='${exec_prefix}/bin' | |
76 | sbindir='${exec_prefix}/sbin' | |
77 | libexecdir='${exec_prefix}/libexec' | |
78 | datadir='${prefix}/share' | |
79 | sysconfdir='${prefix}/etc' | |
80 | sharedstatedir='${prefix}/com' | |
81 | localstatedir='${prefix}/var' | |
82 | libdir='${exec_prefix}/lib' | |
83 | includedir='${prefix}/include' | |
84 | oldincludedir='/usr/include' | |
85 | infodir='${prefix}/info' | |
86 | mandir='${prefix}/man' | |
87 | ||
88 | # Initialize some other variables. | |
89 | subdirs= | |
90 | MFLAGS= MAKEFLAGS= | |
91 | SHELL=${CONFIG_SHELL-/bin/sh} | |
92 | # Maximum number of lines to put in a shell here document. | |
93 | ac_max_here_lines=12 | |
94 | ||
95 | ac_prev= | |
96 | for ac_option | |
97 | do | |
98 | ||
99 | # If the previous option needs an argument, assign it. | |
100 | if test -n "$ac_prev"; then | |
101 | eval "$ac_prev=\$ac_option" | |
102 | ac_prev= | |
103 | continue | |
104 | fi | |
105 | ||
106 | case "$ac_option" in | |
107 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; | |
108 | *) ac_optarg= ;; | |
109 | esac | |
110 | ||
111 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
112 | ||
113 | case "$ac_option" in | |
114 | ||
115 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
116 | ac_prev=bindir ;; | |
117 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
118 | bindir="$ac_optarg" ;; | |
119 | ||
120 | -build | --build | --buil | --bui | --bu) | |
121 | ac_prev=build ;; | |
122 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
123 | build="$ac_optarg" ;; | |
124 | ||
125 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
126 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
127 | ac_prev=cache_file ;; | |
128 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
129 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
130 | cache_file="$ac_optarg" ;; | |
131 | ||
132 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | |
133 | ac_prev=datadir ;; | |
134 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
135 | | --da=*) | |
136 | datadir="$ac_optarg" ;; | |
137 | ||
138 | -disable-* | --disable-*) | |
139 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` | |
140 | # Reject names that are not valid shell variable names. | |
141 | if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then | |
142 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
143 | fi | |
144 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
145 | eval "enable_${ac_feature}=no" ;; | |
146 | ||
147 | -enable-* | --enable-*) | |
148 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` | |
149 | # Reject names that are not valid shell variable names. | |
150 | if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then | |
151 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
152 | fi | |
153 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
154 | case "$ac_option" in | |
155 | *=*) ;; | |
156 | *) ac_optarg=yes ;; | |
157 | esac | |
158 | eval "enable_${ac_feature}='$ac_optarg'" ;; | |
159 | ||
160 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
161 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
162 | | --exec | --exe | --ex) | |
163 | ac_prev=exec_prefix ;; | |
164 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
165 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
166 | | --exec=* | --exe=* | --ex=*) | |
167 | exec_prefix="$ac_optarg" ;; | |
168 | ||
169 | -gas | --gas | --ga | --g) | |
170 | # Obsolete; use --with-gas. | |
171 | with_gas=yes ;; | |
172 | ||
173 | -help | --help | --hel | --he) | |
174 | # Omit some internal or obsolete options to make the list less imposing. | |
175 | # This message is too long to be a string in the A/UX 3.1 sh. | |
176 | cat << EOF | |
177 | Usage: configure [options] [host] | |
178 | Options: [defaults in brackets after descriptions] | |
179 | Configuration: | |
180 | --cache-file=FILE cache test results in FILE | |
181 | --help print this message | |
182 | --no-create do not create output files | |
183 | --quiet, --silent do not print \`checking...' messages | |
184 | --version print the version of autoconf that created configure | |
185 | Directory and file names: | |
186 | --prefix=PREFIX install architecture-independent files in PREFIX | |
187 | [$ac_default_prefix] | |
188 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
189 | [same as prefix] | |
190 | --bindir=DIR user executables in DIR [EPREFIX/bin] | |
191 | --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] | |
192 | --libexecdir=DIR program executables in DIR [EPREFIX/libexec] | |
193 | --datadir=DIR read-only architecture-independent data in DIR | |
194 | [PREFIX/share] | |
195 | --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] | |
196 | --sharedstatedir=DIR modifiable architecture-independent data in DIR | |
197 | [PREFIX/com] | |
198 | --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] | |
199 | --libdir=DIR object code libraries in DIR [EPREFIX/lib] | |
200 | --includedir=DIR C header files in DIR [PREFIX/include] | |
201 | --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] | |
202 | --infodir=DIR info documentation in DIR [PREFIX/info] | |
203 | --mandir=DIR man documentation in DIR [PREFIX/man] | |
204 | --srcdir=DIR find the sources in DIR [configure dir or ..] | |
205 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
206 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
207 | --program-transform-name=PROGRAM | |
208 | run sed PROGRAM on installed program names | |
209 | EOF | |
210 | cat << EOF | |
211 | Host type: | |
212 | --build=BUILD configure for building on BUILD [BUILD=HOST] | |
213 | --host=HOST configure for HOST [guessed] | |
214 | --target=TARGET configure for TARGET [TARGET=HOST] | |
215 | Features and packages: | |
216 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
217 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
218 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
219 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
220 | --x-includes=DIR X include files are in DIR | |
221 | --x-libraries=DIR X library files are in DIR | |
222 | EOF | |
223 | if test -n "$ac_help"; then | |
224 | echo "--enable and --with options recognized:$ac_help" | |
225 | fi | |
226 | exit 0 ;; | |
227 | ||
228 | -host | --host | --hos | --ho) | |
229 | ac_prev=host ;; | |
230 | -host=* | --host=* | --hos=* | --ho=*) | |
231 | host="$ac_optarg" ;; | |
232 | ||
233 | -includedir | --includedir | --includedi | --included | --include \ | |
234 | | --includ | --inclu | --incl | --inc) | |
235 | ac_prev=includedir ;; | |
236 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
237 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
238 | includedir="$ac_optarg" ;; | |
239 | ||
240 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
241 | ac_prev=infodir ;; | |
242 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
243 | infodir="$ac_optarg" ;; | |
244 | ||
245 | -libdir | --libdir | --libdi | --libd) | |
246 | ac_prev=libdir ;; | |
247 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
248 | libdir="$ac_optarg" ;; | |
249 | ||
250 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
251 | | --libexe | --libex | --libe) | |
252 | ac_prev=libexecdir ;; | |
253 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
254 | | --libexe=* | --libex=* | --libe=*) | |
255 | libexecdir="$ac_optarg" ;; | |
256 | ||
257 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
258 | | --localstate | --localstat | --localsta | --localst \ | |
259 | | --locals | --local | --loca | --loc | --lo) | |
260 | ac_prev=localstatedir ;; | |
261 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
262 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | |
263 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
264 | localstatedir="$ac_optarg" ;; | |
265 | ||
266 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
267 | ac_prev=mandir ;; | |
268 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
269 | mandir="$ac_optarg" ;; | |
270 | ||
271 | -nfp | --nfp | --nf) | |
272 | # Obsolete; use --without-fp. | |
273 | with_fp=no ;; | |
274 | ||
275 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
276 | | --no-cr | --no-c) | |
277 | no_create=yes ;; | |
278 | ||
279 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
280 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
281 | no_recursion=yes ;; | |
282 | ||
283 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
284 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
285 | | --oldin | --oldi | --old | --ol | --o) | |
286 | ac_prev=oldincludedir ;; | |
287 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
288 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
289 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
290 | oldincludedir="$ac_optarg" ;; | |
291 | ||
292 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
293 | ac_prev=prefix ;; | |
294 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
295 | prefix="$ac_optarg" ;; | |
296 | ||
297 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
298 | | --program-pre | --program-pr | --program-p) | |
299 | ac_prev=program_prefix ;; | |
300 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
301 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
302 | program_prefix="$ac_optarg" ;; | |
303 | ||
304 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
305 | | --program-suf | --program-su | --program-s) | |
306 | ac_prev=program_suffix ;; | |
307 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
308 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
309 | program_suffix="$ac_optarg" ;; | |
310 | ||
311 | -program-transform-name | --program-transform-name \ | |
312 | | --program-transform-nam | --program-transform-na \ | |
313 | | --program-transform-n | --program-transform- \ | |
314 | | --program-transform | --program-transfor \ | |
315 | | --program-transfo | --program-transf \ | |
316 | | --program-trans | --program-tran \ | |
317 | | --progr-tra | --program-tr | --program-t) | |
318 | ac_prev=program_transform_name ;; | |
319 | -program-transform-name=* | --program-transform-name=* \ | |
320 | | --program-transform-nam=* | --program-transform-na=* \ | |
321 | | --program-transform-n=* | --program-transform-=* \ | |
322 | | --program-transform=* | --program-transfor=* \ | |
323 | | --program-transfo=* | --program-transf=* \ | |
324 | | --program-trans=* | --program-tran=* \ | |
325 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
326 | program_transform_name="$ac_optarg" ;; | |
327 | ||
328 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
329 | | -silent | --silent | --silen | --sile | --sil) | |
330 | silent=yes ;; | |
331 | ||
332 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
333 | ac_prev=sbindir ;; | |
334 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
335 | | --sbi=* | --sb=*) | |
336 | sbindir="$ac_optarg" ;; | |
337 | ||
338 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
339 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
340 | | --sharedst | --shareds | --shared | --share | --shar \ | |
341 | | --sha | --sh) | |
342 | ac_prev=sharedstatedir ;; | |
343 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
344 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
345 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
346 | | --sha=* | --sh=*) | |
347 | sharedstatedir="$ac_optarg" ;; | |
348 | ||
349 | -site | --site | --sit) | |
350 | ac_prev=site ;; | |
351 | -site=* | --site=* | --sit=*) | |
352 | site="$ac_optarg" ;; | |
353 | ||
354 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
355 | ac_prev=srcdir ;; | |
356 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
357 | srcdir="$ac_optarg" ;; | |
358 | ||
359 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
360 | | --syscon | --sysco | --sysc | --sys | --sy) | |
361 | ac_prev=sysconfdir ;; | |
362 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
363 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
364 | sysconfdir="$ac_optarg" ;; | |
365 | ||
366 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
367 | ac_prev=target ;; | |
368 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
369 | target="$ac_optarg" ;; | |
370 | ||
371 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
372 | verbose=yes ;; | |
373 | ||
374 | -version | --version | --versio | --versi | --vers) | |
375 | echo "configure generated by autoconf version 2.13" | |
376 | exit 0 ;; | |
377 | ||
378 | -with-* | --with-*) | |
379 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` | |
380 | # Reject names that are not valid shell variable names. | |
381 | if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then | |
382 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
383 | fi | |
384 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
385 | case "$ac_option" in | |
386 | *=*) ;; | |
387 | *) ac_optarg=yes ;; | |
388 | esac | |
389 | eval "with_${ac_package}='$ac_optarg'" ;; | |
390 | ||
391 | -without-* | --without-*) | |
392 | ac_package=`echo $ac_option|sed -e 's/-*without-//'` | |
393 | # Reject names that are not valid shell variable names. | |
394 | if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then | |
395 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
396 | fi | |
397 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
398 | eval "with_${ac_package}=no" ;; | |
399 | ||
400 | --x) | |
401 | # Obsolete; use --with-x. | |
402 | with_x=yes ;; | |
403 | ||
404 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
405 | | --x-incl | --x-inc | --x-in | --x-i) | |
406 | ac_prev=x_includes ;; | |
407 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
408 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
409 | x_includes="$ac_optarg" ;; | |
410 | ||
411 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
412 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
413 | ac_prev=x_libraries ;; | |
414 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
415 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
416 | x_libraries="$ac_optarg" ;; | |
417 | ||
418 | -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } | |
419 | ;; | |
420 | ||
421 | *) | |
422 | if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then | |
423 | echo "configure: warning: $ac_option: invalid host type" 1>&2 | |
424 | fi | |
425 | if test "x$nonopt" != xNONE; then | |
426 | { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } | |
427 | fi | |
428 | nonopt="$ac_option" | |
429 | ;; | |
430 | ||
431 | esac | |
432 | done | |
433 | ||
434 | if test -n "$ac_prev"; then | |
435 | { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } | |
436 | fi | |
437 | ||
438 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 | |
439 | ||
440 | # File descriptor usage: | |
441 | # 0 standard input | |
442 | # 1 file creation | |
443 | # 2 errors and warnings | |
444 | # 3 some systems may open it to /dev/tty | |
445 | # 4 used on the Kubota Titan | |
446 | # 6 checking for... messages and results | |
447 | # 5 compiler messages saved in config.log | |
448 | if test "$silent" = yes; then | |
449 | exec 6>/dev/null | |
450 | else | |
451 | exec 6>&1 | |
452 | fi | |
453 | exec 5>./config.log | |
454 | ||
455 | echo "\ | |
456 | This file contains any messages produced by compilers while | |
457 | running configure, to aid debugging if configure makes a mistake. | |
458 | " 1>&5 | |
459 | ||
460 | # Strip out --no-create and --no-recursion so they do not pile up. | |
461 | # Also quote any args containing shell metacharacters. | |
462 | ac_configure_args= | |
463 | for ac_arg | |
464 | do | |
465 | case "$ac_arg" in | |
466 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
467 | | --no-cr | --no-c) ;; | |
468 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
469 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; | |
470 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) | |
471 | ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
472 | *) ac_configure_args="$ac_configure_args $ac_arg" ;; | |
473 | esac | |
474 | done | |
475 | ||
476 | # NLS nuisances. | |
477 | # Only set these to C if already set. These must not be set unconditionally | |
478 | # because not all systems understand e.g. LANG=C (notably SCO). | |
479 | # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! | |
480 | # Non-C LC_CTYPE values break the ctype check. | |
481 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi | |
482 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi | |
483 | if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi | |
484 | if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi | |
485 | ||
486 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
487 | rm -rf conftest* confdefs.h | |
488 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
489 | echo > confdefs.h | |
490 | ||
491 | # A filename unique to this package, relative to the directory that | |
492 | # configure is in, which we can look for to find out if srcdir is correct. | |
493 | ac_unique_file=common/unicode/utypes.h | |
494 | ||
495 | # Find the source files, if location was not specified. | |
496 | if test -z "$srcdir"; then | |
497 | ac_srcdir_defaulted=yes | |
498 | # Try the directory containing this script, then its parent. | |
499 | ac_prog=$0 | |
500 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` | |
501 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. | |
502 | srcdir=$ac_confdir | |
503 | if test ! -r $srcdir/$ac_unique_file; then | |
504 | srcdir=.. | |
505 | fi | |
506 | else | |
507 | ac_srcdir_defaulted=no | |
508 | fi | |
509 | if test ! -r $srcdir/$ac_unique_file; then | |
510 | if test "$ac_srcdir_defaulted" = yes; then | |
511 | { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } | |
512 | else | |
513 | { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } | |
514 | fi | |
515 | fi | |
516 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` | |
517 | ||
518 | # Prefer explicitly selected file to automatically selected ones. | |
519 | if test -z "$CONFIG_SITE"; then | |
520 | if test "x$prefix" != xNONE; then | |
521 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
522 | else | |
523 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
524 | fi | |
525 | fi | |
526 | for ac_site_file in $CONFIG_SITE; do | |
527 | if test -r "$ac_site_file"; then | |
528 | echo "loading site script $ac_site_file" | |
529 | . "$ac_site_file" | |
530 | fi | |
531 | done | |
532 | ||
533 | if test -r "$cache_file"; then | |
534 | echo "loading cache $cache_file" | |
535 | . $cache_file | |
536 | else | |
537 | echo "creating cache $cache_file" | |
538 | > $cache_file | |
539 | fi | |
540 | ||
541 | ac_ext=c | |
542 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
543 | ac_cpp='$CPP $CPPFLAGS' | |
544 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
545 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
546 | cross_compiling=$ac_cv_prog_cc_cross | |
547 | ||
548 | ac_exeext= | |
549 | ac_objext=o | |
550 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then | |
551 | # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. | |
552 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then | |
553 | ac_n= ac_c=' | |
554 | ' ac_t=' ' | |
555 | else | |
556 | ac_n=-n ac_c= ac_t= | |
557 | fi | |
558 | else | |
559 | ac_n= ac_c='\c' ac_t= | |
560 | fi | |
561 | ||
562 | ||
563 | ||
564 | ||
565 | PACKAGE="icu" | |
566 | ||
567 | ||
568 | echo $ac_n "checking for ICU version numbers""... $ac_c" 1>&6 | |
374ca955 | 569 | echo "configure:570: checking for ICU version numbers" >&5 |
b75a7d8f A |
570 | |
571 | geticuversion() { | |
572 | sed -n 's/^[ ]*#[ ]*define[ ]*U_ICU_VERSION[ ]*"\([^"]*\)".*/\1/p' "$@" | |
573 | } | |
574 | VERSION=`geticuversion $srcdir/common/unicode/uversion.h` | |
575 | if test x"$VERSION" = x; then | |
576 | VERSION=`geticuversion $srcdir/common/unicode/*.h` | |
577 | if test x"$VERSION" = x; then | |
578 | { echo "configure: error: Cannot determine ICU version number from header files" 1>&2; exit 1; } | |
579 | fi | |
580 | fi | |
581 | LIB_VERSION=`echo $VERSION | sed -e 's/\.//' -e 's/^\([^.]*\)$/\1.0/'` | |
582 | LIB_VERSION_MAJOR=`echo $LIB_VERSION | sed 's/\..*//'` | |
583 | ||
584 | ||
585 | ||
586 | echo "$ac_t""release $VERSION, library $LIB_VERSION" 1>&6 | |
587 | ||
374ca955 | 588 | UNICODE_VERSION="4.0.1" |
b75a7d8f A |
589 | |
590 | ||
591 | ||
374ca955 | 592 | #AC_SUBST(CINTLTST_CPPFLAGS) |
b75a7d8f A |
593 | |
594 | # Extract the first word of "gcc", so it can be a program name with args. | |
595 | set dummy gcc; ac_word=$2 | |
596 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
374ca955 | 597 | echo "configure:598: checking for $ac_word" >&5 |
b75a7d8f A |
598 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
599 | echo $ac_n "(cached) $ac_c" 1>&6 | |
600 | else | |
601 | if test -n "$CC"; then | |
602 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
603 | else | |
604 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
605 | ac_dummy="$PATH" | |
606 | for ac_dir in $ac_dummy; do | |
607 | test -z "$ac_dir" && ac_dir=. | |
608 | if test -f $ac_dir/$ac_word; then | |
609 | ac_cv_prog_CC="gcc" | |
610 | break | |
611 | fi | |
612 | done | |
613 | IFS="$ac_save_ifs" | |
614 | fi | |
615 | fi | |
616 | CC="$ac_cv_prog_CC" | |
617 | if test -n "$CC"; then | |
618 | echo "$ac_t""$CC" 1>&6 | |
619 | else | |
620 | echo "$ac_t""no" 1>&6 | |
621 | fi | |
622 | ||
623 | if test -z "$CC"; then | |
624 | # Extract the first word of "cc", so it can be a program name with args. | |
625 | set dummy cc; ac_word=$2 | |
626 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
374ca955 | 627 | echo "configure:628: checking for $ac_word" >&5 |
b75a7d8f A |
628 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
629 | echo $ac_n "(cached) $ac_c" 1>&6 | |
630 | else | |
631 | if test -n "$CC"; then | |
632 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
633 | else | |
634 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
635 | ac_prog_rejected=no | |
636 | ac_dummy="$PATH" | |
637 | for ac_dir in $ac_dummy; do | |
638 | test -z "$ac_dir" && ac_dir=. | |
639 | if test -f $ac_dir/$ac_word; then | |
640 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then | |
641 | ac_prog_rejected=yes | |
642 | continue | |
643 | fi | |
644 | ac_cv_prog_CC="cc" | |
645 | break | |
646 | fi | |
647 | done | |
648 | IFS="$ac_save_ifs" | |
649 | if test $ac_prog_rejected = yes; then | |
650 | # We found a bogon in the path, so make sure we never use it. | |
651 | set dummy $ac_cv_prog_CC | |
652 | shift | |
653 | if test $# -gt 0; then | |
654 | # We chose a different compiler from the bogus one. | |
655 | # However, it has the same basename, so the bogon will be chosen | |
656 | # first if we set CC to just the basename; use the full file name. | |
657 | shift | |
658 | set dummy "$ac_dir/$ac_word" "$@" | |
659 | shift | |
660 | ac_cv_prog_CC="$@" | |
661 | fi | |
662 | fi | |
663 | fi | |
664 | fi | |
665 | CC="$ac_cv_prog_CC" | |
666 | if test -n "$CC"; then | |
667 | echo "$ac_t""$CC" 1>&6 | |
668 | else | |
669 | echo "$ac_t""no" 1>&6 | |
670 | fi | |
671 | ||
672 | if test -z "$CC"; then | |
673 | case "`uname -s`" in | |
674 | *win32* | *WIN32*) | |
675 | # Extract the first word of "cl", so it can be a program name with args. | |
676 | set dummy cl; ac_word=$2 | |
677 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
374ca955 | 678 | echo "configure:679: checking for $ac_word" >&5 |
b75a7d8f A |
679 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
680 | echo $ac_n "(cached) $ac_c" 1>&6 | |
681 | else | |
682 | if test -n "$CC"; then | |
683 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
684 | else | |
685 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
686 | ac_dummy="$PATH" | |
687 | for ac_dir in $ac_dummy; do | |
688 | test -z "$ac_dir" && ac_dir=. | |
689 | if test -f $ac_dir/$ac_word; then | |
690 | ac_cv_prog_CC="cl" | |
691 | break | |
692 | fi | |
693 | done | |
694 | IFS="$ac_save_ifs" | |
695 | fi | |
696 | fi | |
697 | CC="$ac_cv_prog_CC" | |
698 | if test -n "$CC"; then | |
699 | echo "$ac_t""$CC" 1>&6 | |
700 | else | |
701 | echo "$ac_t""no" 1>&6 | |
702 | fi | |
703 | ;; | |
704 | esac | |
705 | fi | |
706 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } | |
707 | fi | |
708 | ||
709 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 | |
374ca955 | 710 | echo "configure:711: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
b75a7d8f A |
711 | |
712 | ac_ext=c | |
713 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
714 | ac_cpp='$CPP $CPPFLAGS' | |
715 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
716 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
717 | cross_compiling=$ac_cv_prog_cc_cross | |
718 | ||
719 | cat > conftest.$ac_ext << EOF | |
720 | ||
374ca955 | 721 | #line 722 "configure" |
b75a7d8f A |
722 | #include "confdefs.h" |
723 | ||
724 | main(){return(0);} | |
725 | EOF | |
374ca955 | 726 | if { (eval echo configure:727: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
b75a7d8f A |
727 | ac_cv_prog_cc_works=yes |
728 | # If we can't run a trivial program, we are probably using a cross compiler. | |
729 | if (./conftest; exit) 2>/dev/null; then | |
730 | ac_cv_prog_cc_cross=no | |
731 | else | |
732 | ac_cv_prog_cc_cross=yes | |
733 | fi | |
734 | else | |
735 | echo "configure: failed program was:" >&5 | |
736 | cat conftest.$ac_ext >&5 | |
737 | ac_cv_prog_cc_works=no | |
738 | fi | |
739 | rm -fr conftest* | |
740 | ac_ext=c | |
741 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
742 | ac_cpp='$CPP $CPPFLAGS' | |
743 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
744 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
745 | cross_compiling=$ac_cv_prog_cc_cross | |
746 | ||
747 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 | |
748 | if test $ac_cv_prog_cc_works = no; then | |
749 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } | |
750 | fi | |
751 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | |
374ca955 | 752 | echo "configure:753: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 |
b75a7d8f A |
753 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
754 | cross_compiling=$ac_cv_prog_cc_cross | |
755 | ||
756 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 | |
374ca955 | 757 | echo "configure:758: checking whether we are using GNU C" >&5 |
b75a7d8f A |
758 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
759 | echo $ac_n "(cached) $ac_c" 1>&6 | |
760 | else | |
761 | cat > conftest.c <<EOF | |
762 | #ifdef __GNUC__ | |
763 | yes; | |
764 | #endif | |
765 | EOF | |
374ca955 | 766 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:767: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
b75a7d8f A |
767 | ac_cv_prog_gcc=yes |
768 | else | |
769 | ac_cv_prog_gcc=no | |
770 | fi | |
771 | fi | |
772 | ||
773 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 | |
774 | ||
775 | if test $ac_cv_prog_gcc = yes; then | |
776 | GCC=yes | |
777 | else | |
778 | GCC= | |
779 | fi | |
780 | ||
781 | ac_test_CFLAGS="${CFLAGS+set}" | |
782 | ac_save_CFLAGS="$CFLAGS" | |
783 | CFLAGS= | |
784 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 | |
374ca955 | 785 | echo "configure:786: checking whether ${CC-cc} accepts -g" >&5 |
b75a7d8f A |
786 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then |
787 | echo $ac_n "(cached) $ac_c" 1>&6 | |
788 | else | |
789 | echo 'void f(){}' > conftest.c | |
790 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then | |
791 | ac_cv_prog_cc_g=yes | |
792 | else | |
793 | ac_cv_prog_cc_g=no | |
794 | fi | |
795 | rm -f conftest* | |
796 | ||
797 | fi | |
798 | ||
799 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 | |
800 | if test "$ac_test_CFLAGS" = set; then | |
801 | CFLAGS="$ac_save_CFLAGS" | |
802 | elif test $ac_cv_prog_cc_g = yes; then | |
803 | if test "$GCC" = yes; then | |
804 | CFLAGS="-g -O2" | |
805 | else | |
806 | CFLAGS="-g" | |
807 | fi | |
808 | else | |
809 | if test "$GCC" = yes; then | |
810 | CFLAGS="-O2" | |
811 | else | |
812 | CFLAGS= | |
813 | fi | |
814 | fi | |
815 | ||
816 | for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl | |
817 | do | |
818 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
819 | set dummy $ac_prog; ac_word=$2 | |
820 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
374ca955 | 821 | echo "configure:822: checking for $ac_word" >&5 |
b75a7d8f A |
822 | if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then |
823 | echo $ac_n "(cached) $ac_c" 1>&6 | |
824 | else | |
825 | if test -n "$CXX"; then | |
826 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
827 | else | |
828 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
829 | ac_dummy="$PATH" | |
830 | for ac_dir in $ac_dummy; do | |
831 | test -z "$ac_dir" && ac_dir=. | |
832 | if test -f $ac_dir/$ac_word; then | |
833 | ac_cv_prog_CXX="$ac_prog" | |
834 | break | |
835 | fi | |
836 | done | |
837 | IFS="$ac_save_ifs" | |
838 | fi | |
839 | fi | |
840 | CXX="$ac_cv_prog_CXX" | |
841 | if test -n "$CXX"; then | |
842 | echo "$ac_t""$CXX" 1>&6 | |
843 | else | |
844 | echo "$ac_t""no" 1>&6 | |
845 | fi | |
846 | ||
847 | test -n "$CXX" && break | |
848 | done | |
849 | test -n "$CXX" || CXX="gcc" | |
850 | ||
851 | ||
852 | echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6 | |
374ca955 | 853 | echo "configure:854: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5 |
b75a7d8f A |
854 | |
855 | ac_ext=C | |
856 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
857 | ac_cpp='$CXXCPP $CPPFLAGS' | |
858 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
859 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
860 | cross_compiling=$ac_cv_prog_cxx_cross | |
861 | ||
862 | cat > conftest.$ac_ext << EOF | |
863 | ||
374ca955 | 864 | #line 865 "configure" |
b75a7d8f A |
865 | #include "confdefs.h" |
866 | ||
867 | int main(){return(0);} | |
868 | EOF | |
374ca955 | 869 | if { (eval echo configure:870: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
b75a7d8f A |
870 | ac_cv_prog_cxx_works=yes |
871 | # If we can't run a trivial program, we are probably using a cross compiler. | |
872 | if (./conftest; exit) 2>/dev/null; then | |
873 | ac_cv_prog_cxx_cross=no | |
874 | else | |
875 | ac_cv_prog_cxx_cross=yes | |
876 | fi | |
877 | else | |
878 | echo "configure: failed program was:" >&5 | |
879 | cat conftest.$ac_ext >&5 | |
880 | ac_cv_prog_cxx_works=no | |
881 | fi | |
882 | rm -fr conftest* | |
883 | ac_ext=c | |
884 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
885 | ac_cpp='$CPP $CPPFLAGS' | |
886 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
887 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
888 | cross_compiling=$ac_cv_prog_cc_cross | |
889 | ||
890 | echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6 | |
891 | if test $ac_cv_prog_cxx_works = no; then | |
892 | { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; } | |
893 | fi | |
894 | echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | |
374ca955 | 895 | echo "configure:896: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5 |
b75a7d8f A |
896 | echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6 |
897 | cross_compiling=$ac_cv_prog_cxx_cross | |
898 | ||
899 | echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6 | |
374ca955 | 900 | echo "configure:901: checking whether we are using GNU C++" >&5 |
b75a7d8f A |
901 | if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then |
902 | echo $ac_n "(cached) $ac_c" 1>&6 | |
903 | else | |
904 | cat > conftest.C <<EOF | |
905 | #ifdef __GNUC__ | |
906 | yes; | |
907 | #endif | |
908 | EOF | |
374ca955 | 909 | if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:910: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
b75a7d8f A |
910 | ac_cv_prog_gxx=yes |
911 | else | |
912 | ac_cv_prog_gxx=no | |
913 | fi | |
914 | fi | |
915 | ||
916 | echo "$ac_t""$ac_cv_prog_gxx" 1>&6 | |
917 | ||
918 | if test $ac_cv_prog_gxx = yes; then | |
919 | GXX=yes | |
920 | else | |
921 | GXX= | |
922 | fi | |
923 | ||
924 | ac_test_CXXFLAGS="${CXXFLAGS+set}" | |
925 | ac_save_CXXFLAGS="$CXXFLAGS" | |
926 | CXXFLAGS= | |
927 | echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6 | |
374ca955 | 928 | echo "configure:929: checking whether ${CXX-g++} accepts -g" >&5 |
b75a7d8f A |
929 | if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then |
930 | echo $ac_n "(cached) $ac_c" 1>&6 | |
931 | else | |
932 | echo 'void f(){}' > conftest.cc | |
933 | if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then | |
934 | ac_cv_prog_cxx_g=yes | |
935 | else | |
936 | ac_cv_prog_cxx_g=no | |
937 | fi | |
938 | rm -f conftest* | |
939 | ||
940 | fi | |
941 | ||
942 | echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6 | |
943 | if test "$ac_test_CXXFLAGS" = set; then | |
944 | CXXFLAGS="$ac_save_CXXFLAGS" | |
945 | elif test $ac_cv_prog_cxx_g = yes; then | |
946 | if test "$GXX" = yes; then | |
947 | CXXFLAGS="-g -O2" | |
948 | else | |
949 | CXXFLAGS="-g" | |
950 | fi | |
951 | else | |
952 | if test "$GXX" = yes; then | |
953 | CXXFLAGS="-O2" | |
954 | else | |
955 | CXXFLAGS= | |
956 | fi | |
957 | fi | |
958 | ||
b75a7d8f A |
959 | ac_aux_dir= |
960 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
961 | if test -f $ac_dir/install-sh; then | |
962 | ac_aux_dir=$ac_dir | |
963 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
964 | break | |
965 | elif test -f $ac_dir/install.sh; then | |
966 | ac_aux_dir=$ac_dir | |
967 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
968 | break | |
969 | fi | |
970 | done | |
971 | if test -z "$ac_aux_dir"; then | |
972 | { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } | |
973 | fi | |
974 | ac_config_guess=$ac_aux_dir/config.guess | |
975 | ac_config_sub=$ac_aux_dir/config.sub | |
976 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. | |
977 | ||
978 | # Find a good install program. We prefer a C program (faster), | |
979 | # so one script is as good as another. But avoid the broken or | |
980 | # incompatible versions: | |
981 | # SysV /etc/install, /usr/sbin/install | |
982 | # SunOS /usr/etc/install | |
983 | # IRIX /sbin/install | |
984 | # AIX /bin/install | |
985 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
986 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
987 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
988 | # ./install, which can be erroneously created by make from ./install.sh. | |
989 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 | |
374ca955 | 990 | echo "configure:991: checking for a BSD compatible install" >&5 |
b75a7d8f A |
991 | if test -z "$INSTALL"; then |
992 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then | |
993 | echo $ac_n "(cached) $ac_c" 1>&6 | |
994 | else | |
995 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" | |
996 | for ac_dir in $PATH; do | |
997 | # Account for people who put trailing slashes in PATH elements. | |
998 | case "$ac_dir/" in | |
999 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; | |
1000 | *) | |
1001 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
1002 | # Don't use installbsd from OSF since it installs stuff as root | |
1003 | # by default. | |
1004 | for ac_prog in ginstall scoinst install; do | |
1005 | if test -f $ac_dir/$ac_prog; then | |
1006 | if test $ac_prog = install && | |
1007 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then | |
1008 | # AIX install. It has an incompatible calling convention. | |
1009 | : | |
1010 | else | |
1011 | ac_cv_path_install="$ac_dir/$ac_prog -c" | |
1012 | break 2 | |
1013 | fi | |
1014 | fi | |
1015 | done | |
1016 | ;; | |
1017 | esac | |
1018 | done | |
1019 | IFS="$ac_save_IFS" | |
1020 | ||
1021 | fi | |
1022 | if test "${ac_cv_path_install+set}" = set; then | |
1023 | INSTALL="$ac_cv_path_install" | |
1024 | else | |
1025 | # As a last resort, use the slow shell script. We don't cache a | |
1026 | # path for INSTALL within a source directory, because that will | |
1027 | # break other packages using the cache if that directory is | |
1028 | # removed, or if the path is relative. | |
1029 | INSTALL="$ac_install_sh" | |
1030 | fi | |
1031 | fi | |
1032 | echo "$ac_t""$INSTALL" 1>&6 | |
1033 | ||
1034 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
1035 | # It thinks the first close brace ends the variable substitution. | |
1036 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
1037 | ||
1038 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' | |
1039 | ||
1040 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
1041 | ||
1042 | ||
1043 | # make sure install is relative to srcdir - if a script | |
1044 | if test "$srcdir" = "."; then | |
1045 | # If srcdir isn't just ., then (srcdir) is already prepended. | |
1046 | if test "${ac_install_sh}" = "${INSTALL}"; then | |
1047 | INSTALL="\\\$(top_srcdir)/${ac_install_sh}" | |
1048 | fi | |
1049 | fi | |
1050 | ||
374ca955 | 1051 | #AC_CHECK_PROG(AUTOCONF, autoconf, autoconf, true) |
b75a7d8f A |
1052 | # Extract the first word of "strip", so it can be a program name with args. |
1053 | set dummy strip; ac_word=$2 | |
1054 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
374ca955 | 1055 | echo "configure:1056: checking for $ac_word" >&5 |
b75a7d8f A |
1056 | if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then |
1057 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1058 | else | |
1059 | if test -n "$STRIP"; then | |
1060 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
1061 | else | |
1062 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
1063 | ac_dummy="$PATH" | |
1064 | for ac_dir in $ac_dummy; do | |
1065 | test -z "$ac_dir" && ac_dir=. | |
1066 | if test -f $ac_dir/$ac_word; then | |
1067 | ac_cv_prog_STRIP="strip" | |
1068 | break | |
1069 | fi | |
1070 | done | |
1071 | IFS="$ac_save_ifs" | |
1072 | test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true" | |
1073 | fi | |
1074 | fi | |
1075 | STRIP="$ac_cv_prog_STRIP" | |
1076 | if test -n "$STRIP"; then | |
1077 | echo "$ac_t""$STRIP" 1>&6 | |
1078 | else | |
1079 | echo "$ac_t""no" 1>&6 | |
1080 | fi | |
1081 | ||
1082 | ||
1083 | for ac_prog in gmake gnumake | |
1084 | do | |
1085 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
1086 | set dummy $ac_prog; ac_word=$2 | |
1087 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
374ca955 | 1088 | echo "configure:1089: checking for $ac_word" >&5 |
b75a7d8f A |
1089 | if eval "test \"`echo '$''{'ac_cv_path_U_MAKE'+set}'`\" = set"; then |
1090 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1091 | else | |
1092 | case "$U_MAKE" in | |
1093 | /*) | |
1094 | ac_cv_path_U_MAKE="$U_MAKE" # Let the user override the test with a path. | |
1095 | ;; | |
1096 | ?:/*) | |
1097 | ac_cv_path_U_MAKE="$U_MAKE" # Let the user override the test with a dos path. | |
1098 | ;; | |
1099 | *) | |
1100 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
1101 | ac_dummy="$PATH" | |
1102 | for ac_dir in $ac_dummy; do | |
1103 | test -z "$ac_dir" && ac_dir=. | |
1104 | if test -f $ac_dir/$ac_word; then | |
1105 | ac_cv_path_U_MAKE="$ac_dir/$ac_word" | |
1106 | break | |
1107 | fi | |
1108 | done | |
1109 | IFS="$ac_save_ifs" | |
1110 | ;; | |
1111 | esac | |
1112 | fi | |
1113 | U_MAKE="$ac_cv_path_U_MAKE" | |
1114 | if test -n "$U_MAKE"; then | |
1115 | echo "$ac_t""$U_MAKE" 1>&6 | |
1116 | else | |
1117 | echo "$ac_t""no" 1>&6 | |
1118 | fi | |
1119 | ||
1120 | test -n "$U_MAKE" && break | |
1121 | done | |
1122 | test -n "$U_MAKE" || U_MAKE="make" | |
1123 | ||
1124 | ||
1125 | ||
1126 | # Extract the first word of "doxygen", so it can be a program name with args. | |
1127 | set dummy doxygen; ac_word=$2 | |
1128 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
374ca955 | 1129 | echo "configure:1130: checking for $ac_word" >&5 |
b75a7d8f A |
1130 | if eval "test \"`echo '$''{'ac_cv_path_DOXYGEN'+set}'`\" = set"; then |
1131 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1132 | else | |
1133 | case "$DOXYGEN" in | |
1134 | /*) | |
1135 | ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path. | |
1136 | ;; | |
1137 | ?:/*) | |
1138 | ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a dos path. | |
1139 | ;; | |
1140 | *) | |
1141 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
1142 | ac_dummy="$PATH:/usr/local/bin:/usr/bin" | |
1143 | for ac_dir in $ac_dummy; do | |
1144 | test -z "$ac_dir" && ac_dir=. | |
1145 | if test -f $ac_dir/$ac_word; then | |
1146 | ac_cv_path_DOXYGEN="$ac_dir/$ac_word" | |
1147 | break | |
1148 | fi | |
1149 | done | |
1150 | IFS="$ac_save_ifs" | |
1151 | ;; | |
1152 | esac | |
1153 | fi | |
1154 | DOXYGEN="$ac_cv_path_DOXYGEN" | |
1155 | if test -n "$DOXYGEN"; then | |
1156 | echo "$ac_t""$DOXYGEN" 1>&6 | |
1157 | else | |
1158 | echo "$ac_t""no" 1>&6 | |
1159 | fi | |
1160 | ||
1161 | ||
1162 | ||
1163 | # Make sure we can run config.sub. | |
1164 | if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : | |
1165 | else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } | |
1166 | fi | |
1167 | ||
1168 | echo $ac_n "checking host system type""... $ac_c" 1>&6 | |
374ca955 | 1169 | echo "configure:1170: checking host system type" >&5 |
b75a7d8f A |
1170 | |
1171 | host_alias=$host | |
1172 | case "$host_alias" in | |
1173 | NONE) | |
1174 | case $nonopt in | |
1175 | NONE) | |
1176 | if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : | |
1177 | else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } | |
1178 | fi ;; | |
1179 | *) host_alias=$nonopt ;; | |
1180 | esac ;; | |
1181 | esac | |
1182 | ||
1183 | host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` | |
1184 | host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1185 | host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1186 | host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1187 | echo "$ac_t""$host" 1>&6 | |
1188 | ||
1189 | echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6 | |
374ca955 | 1190 | echo "configure:1191: checking for Cygwin environment" >&5 |
b75a7d8f A |
1191 | if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then |
1192 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1193 | else | |
1194 | cat > conftest.$ac_ext <<EOF | |
374ca955 | 1195 | #line 1196 "configure" |
b75a7d8f A |
1196 | #include "confdefs.h" |
1197 | ||
1198 | int main() { | |
1199 | ||
1200 | #ifndef __CYGWIN__ | |
1201 | #define __CYGWIN__ __CYGWIN32__ | |
1202 | #endif | |
1203 | return __CYGWIN__; | |
1204 | ; return 0; } | |
1205 | EOF | |
374ca955 | 1206 | if { (eval echo configure:1207: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
b75a7d8f A |
1207 | rm -rf conftest* |
1208 | ac_cv_cygwin=yes | |
1209 | else | |
1210 | echo "configure: failed program was:" >&5 | |
1211 | cat conftest.$ac_ext >&5 | |
1212 | rm -rf conftest* | |
1213 | ac_cv_cygwin=no | |
1214 | fi | |
1215 | rm -f conftest* | |
1216 | rm -f conftest* | |
1217 | fi | |
1218 | ||
1219 | echo "$ac_t""$ac_cv_cygwin" 1>&6 | |
1220 | CYGWIN= | |
1221 | test "$ac_cv_cygwin" = yes && CYGWIN=yes | |
1222 | echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6 | |
374ca955 | 1223 | echo "configure:1224: checking for mingw32 environment" >&5 |
b75a7d8f A |
1224 | if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then |
1225 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1226 | else | |
1227 | cat > conftest.$ac_ext <<EOF | |
374ca955 | 1228 | #line 1229 "configure" |
b75a7d8f A |
1229 | #include "confdefs.h" |
1230 | ||
1231 | int main() { | |
1232 | return __MINGW32__; | |
1233 | ; return 0; } | |
1234 | EOF | |
374ca955 | 1235 | if { (eval echo configure:1236: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
b75a7d8f A |
1236 | rm -rf conftest* |
1237 | ac_cv_mingw32=yes | |
1238 | else | |
1239 | echo "configure: failed program was:" >&5 | |
1240 | cat conftest.$ac_ext >&5 | |
1241 | rm -rf conftest* | |
1242 | ac_cv_mingw32=no | |
1243 | fi | |
1244 | rm -f conftest* | |
1245 | rm -f conftest* | |
1246 | fi | |
1247 | ||
1248 | echo "$ac_t""$ac_cv_mingw32" 1>&6 | |
1249 | MINGW32= | |
1250 | test "$ac_cv_mingw32" = yes && MINGW32=yes | |
1251 | ||
1252 | ||
1253 | echo $ac_n "checking for executable suffix""... $ac_c" 1>&6 | |
374ca955 | 1254 | echo "configure:1255: checking for executable suffix" >&5 |
b75a7d8f A |
1255 | if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then |
1256 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1257 | else | |
1258 | if test "$CYGWIN" = yes || test "$MINGW32" = yes; then | |
1259 | ac_cv_exeext=.exe | |
1260 | else | |
1261 | rm -f conftest* | |
1262 | echo 'int main () { return 0; }' > conftest.$ac_ext | |
1263 | ac_cv_exeext= | |
374ca955 | 1264 | if { (eval echo configure:1265: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then |
b75a7d8f A |
1265 | for file in conftest.*; do |
1266 | case $file in | |
1267 | *.c | *.o | *.obj) ;; | |
1268 | *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;; | |
1269 | esac | |
1270 | done | |
1271 | else | |
1272 | { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; } | |
1273 | fi | |
1274 | rm -f conftest* | |
1275 | test x"${ac_cv_exeext}" = x && ac_cv_exeext=no | |
1276 | fi | |
1277 | fi | |
1278 | ||
1279 | EXEEXT="" | |
1280 | test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext} | |
1281 | echo "$ac_t""${ac_cv_exeext}" 1>&6 | |
1282 | ac_exeext=$EXEEXT | |
1283 | ||
1284 | ||
1285 | ||
1286 | echo $ac_n "checking whether strict compiling is on""... $ac_c" 1>&6 | |
374ca955 | 1287 | echo "configure:1288: checking whether strict compiling is on" >&5 |
b75a7d8f A |
1288 | # Check whether --enable-strict or --disable-strict was given. |
1289 | if test "${enable_strict+set}" = set; then | |
1290 | enableval="$enable_strict" | |
1291 | ||
374ca955 A |
1292 | if test "$enableval" = no |
1293 | then | |
1294 | ac_use_strict_options=no | |
b75a7d8f | 1295 | else |
374ca955 | 1296 | ac_use_strict_options=yes |
b75a7d8f A |
1297 | fi |
1298 | ||
1299 | else | |
1300 | ac_use_strict_options=no | |
1301 | fi | |
1302 | ||
1303 | echo "$ac_t""$ac_use_strict_options" 1>&6 | |
1304 | ||
1305 | if test "$ac_use_strict_options" = yes | |
1306 | then | |
1307 | if test "$GCC" = yes | |
1308 | then | |
374ca955 | 1309 | CFLAGS="$CFLAGS -Wall -ansi -pedantic -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -Winline -Wno-long-long" |
b75a7d8f A |
1310 | case "${host}" in |
1311 | *-*-solaris*) | |
1312 | CFLAGS="$CFLAGS -D__STDC__=0";; | |
1313 | esac | |
374ca955 A |
1314 | else |
1315 | case "${host}" in | |
1316 | *-*-cygwin) | |
1317 | if test "`$CC /help 2>&1 | head -c9`" = "Microsoft" | |
1318 | then | |
1319 | CFLAGS="$CFLAGS /W4" | |
1320 | fi | |
1321 | esac | |
b75a7d8f A |
1322 | fi |
1323 | if test "$GXX" = yes | |
1324 | then | |
374ca955 | 1325 | CXXFLAGS="$CXXFLAGS -W -Wall -ansi -pedantic -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -Winline -Wno-long-long" |
b75a7d8f A |
1326 | case "${host}" in |
1327 | *-*-solaris*) | |
1328 | CXXFLAGS="$CXXFLAGS -D__STDC__=0";; | |
1329 | esac | |
374ca955 A |
1330 | else |
1331 | case "${host}" in | |
1332 | *-*-cygwin) | |
1333 | if test "`$CXX /help 2>&1 | head -c9`" = "Microsoft" | |
1334 | then | |
1335 | CXXFLAGS="$CXXFLAGS /W4" | |
1336 | fi | |
1337 | esac | |
b75a7d8f A |
1338 | fi |
1339 | fi | |
1340 | ||
1341 | ||
1342 | ||
1343 | # Check whether --enable-64bit-libs or --disable-64bit-libs was given. | |
1344 | if test "${enable_64bit_libs+set}" = set; then | |
1345 | enableval="$enable_64bit_libs" | |
1346 | ENABLE_64BIT_LIBS=${enableval} | |
1347 | else | |
1348 | ENABLE_64BIT_LIBS=yes | |
1349 | ||
1350 | fi | |
1351 | ||
1352 | echo $ac_n "checking for 64-bit executable support""... $ac_c" 1>&6 | |
374ca955 A |
1353 | echo "configure:1354: checking for 64-bit executable support" >&5 |
1354 | if test "$ENABLE_64BIT_LIBS" != no; then | |
b75a7d8f A |
1355 | case "${host}" in |
1356 | *-*-solaris*) | |
374ca955 A |
1357 | SPARCV9=`isainfo -n 2>&1 | grep sparcv9` |
1358 | if test "$GCC" = yes; then | |
1359 | # We could add a check for -m64 depending on the gcc version. | |
1360 | ENABLE_64BIT_LIBS=no | |
1361 | else | |
b75a7d8f | 1362 | SOL64=`$CXX -xarch=v9 2>&1 && $CC -xarch=v9 2>&1 | grep -v usage:` |
b75a7d8f A |
1363 | if test -z "$SOL64" && test -n "$SPARCV9"; then |
1364 | CFLAGS="${CFLAGS} -xtarget=ultra -xarch=v9" | |
1365 | CXXFLAGS="${CXXFLAGS} -xtarget=ultra -xarch=v9" | |
1366 | LDFLAGS="${LDFLAGS} -xtarget=ultra -xarch=v9" | |
1367 | ENABLE_64BIT_LIBS=yes | |
1368 | else | |
1369 | ENABLE_64BIT_LIBS=no | |
1370 | fi | |
374ca955 A |
1371 | fi |
1372 | ;; | |
1373 | ia64-*-linux*) | |
1374 | if test "$GCC" = yes; then | |
1375 | # gcc compiler support | |
1376 | if test -n "`$CXX -dumpspecs 2>&1 && $CC -dumpspecs 2>&1 | grep -v __LP64__`"; then | |
1377 | ENABLE_64BIT_LIBS=yes | |
1378 | else | |
1379 | ENABLE_64BIT_LIBS=no | |
1380 | fi | |
1381 | else | |
1382 | # check for ecc/ecpc compiler support | |
1383 | if test -n "`$CXX --help 2>&1 && $CC --help 2>&1 | grep -v Intel`"; then | |
1384 | if test -n "`$CXX --help 2>&1 && $CC --help 2>&1 | grep -v Itanium`"; then | |
1385 | ENABLE_64BIT_LIBS=yes | |
1386 | else | |
1387 | ENABLE_64BIT_LIBS=no | |
1388 | fi | |
1389 | else | |
1390 | # unknown | |
1391 | ENABLE_64BIT_LIBS=no | |
1392 | fi | |
1393 | fi | |
1394 | ;; | |
1395 | x86_64-*-linux*) | |
1396 | if test "$GCC" = yes; then | |
1397 | if test -n "`$CXX -dumpspecs 2>&1 && $CC -dumpspecs 2>&1 | grep -v __LP64__`"; then | |
1398 | ENABLE_64BIT_LIBS=yes | |
1399 | else | |
1400 | ENABLE_64BIT_LIBS=no | |
1401 | fi | |
b75a7d8f | 1402 | else |
374ca955 | 1403 | # unknown |
b75a7d8f A |
1404 | ENABLE_64BIT_LIBS=no |
1405 | fi | |
1406 | ;; | |
374ca955 A |
1407 | *-*-aix*|powerpc64-*-linux*) |
1408 | if test "$ac_cv_prog_gcc" = no; then | |
1409 | # Note: Have not tested 64-bitness with gcc. | |
1410 | # Maybe the flag "-maix64" could be used with gcc? | |
1411 | OLD_CFLAGS="${CFLAGS}" | |
1412 | OLD_CXXFLAGS="${CXXFLAGS}" | |
1413 | OLD_LDFLAGS="${LDFLAGS}" | |
1414 | CFLAGS="${CFLAGS} -q64" | |
1415 | CXXFLAGS="${CXXFLAGS} -q64" | |
1416 | LDFLAGS="${LDFLAGS} -q64" | |
1417 | if test "$cross_compiling" = yes; then | |
b75a7d8f A |
1418 | ENABLE_64BIT_LIBS=no |
1419 | else | |
1420 | cat > conftest.$ac_ext <<EOF | |
374ca955 | 1421 | #line 1422 "configure" |
b75a7d8f A |
1422 | #include "confdefs.h" |
1423 | int main(void) {return 0;} | |
1424 | EOF | |
374ca955 | 1425 | if { (eval echo configure:1426: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
b75a7d8f A |
1426 | then |
1427 | ENABLE_64BIT_LIBS=yes | |
1428 | else | |
1429 | echo "configure: failed program was:" >&5 | |
1430 | cat conftest.$ac_ext >&5 | |
1431 | rm -fr conftest* | |
1432 | ENABLE_64BIT_LIBS=no | |
1433 | fi | |
1434 | rm -fr conftest* | |
1435 | fi | |
1436 | ||
374ca955 A |
1437 | if test "$ENABLE_64BIT_LIBS" = no; then |
1438 | CFLAGS="${OLD_CFLAGS}" | |
1439 | CXXFLAGS="${OLD_CXXFLAGS}" | |
1440 | LDFLAGS="${OLD_LDFLAGS}" | |
1441 | else | |
1442 | case "${host}" in | |
1443 | *-*-aix*) | |
1444 | ARFLAGS="${ARFLAGS} -X64" | |
1445 | esac | |
1446 | fi | |
b75a7d8f A |
1447 | fi |
1448 | ;; | |
1449 | *-*-hpux*) | |
374ca955 | 1450 | |
b75a7d8f A |
1451 | OLD_CFLAGS="${CFLAGS}" |
1452 | OLD_CXXFLAGS="${CXXFLAGS}" | |
374ca955 A |
1453 | CFLAGS="${CFLAGS} +DD64" |
1454 | CXXFLAGS="${CXXFLAGS} +DD64" | |
b75a7d8f A |
1455 | if test "$cross_compiling" = yes; then |
1456 | ENABLE_64BIT_LIBS=no | |
1457 | else | |
1458 | cat > conftest.$ac_ext <<EOF | |
374ca955 | 1459 | #line 1460 "configure" |
b75a7d8f A |
1460 | #include "confdefs.h" |
1461 | int main(void) {return 0;} | |
1462 | EOF | |
374ca955 | 1463 | if { (eval echo configure:1464: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
b75a7d8f A |
1464 | then |
1465 | ENABLE_64BIT_LIBS=yes | |
1466 | else | |
1467 | echo "configure: failed program was:" >&5 | |
1468 | cat conftest.$ac_ext >&5 | |
1469 | rm -fr conftest* | |
1470 | ENABLE_64BIT_LIBS=no | |
1471 | fi | |
1472 | rm -fr conftest* | |
1473 | fi | |
1474 | ||
1475 | if test "$ENABLE_64BIT_LIBS" = no; then | |
1476 | CFLAGS="${OLD_CFLAGS}" | |
1477 | CXXFLAGS="${OLD_CXXFLAGS}" | |
374ca955 A |
1478 | CFLAGS="${CFLAGS} +DA2.0W" |
1479 | CXXFLAGS="${CXXFLAGS} +DA2.0W" | |
1480 | if test "$cross_compiling" = yes; then | |
1481 | ENABLE_64BIT_LIBS=no | |
1482 | else | |
1483 | cat > conftest.$ac_ext <<EOF | |
1484 | #line 1485 "configure" | |
1485 | #include "confdefs.h" | |
1486 | int main(void) {return 0;} | |
1487 | EOF | |
1488 | if { (eval echo configure:1489: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | |
1489 | then | |
1490 | ENABLE_64BIT_LIBS=yes | |
1491 | else | |
1492 | echo "configure: failed program was:" >&5 | |
1493 | cat conftest.$ac_ext >&5 | |
1494 | rm -fr conftest* | |
1495 | ENABLE_64BIT_LIBS=no | |
1496 | fi | |
1497 | rm -fr conftest* | |
1498 | fi | |
1499 | ||
1500 | if test "$ENABLE_64BIT_LIBS" = no; then | |
1501 | CFLAGS="${OLD_CFLAGS}" | |
1502 | CXXFLAGS="${OLD_CXXFLAGS}" | |
1503 | fi | |
b75a7d8f A |
1504 | fi |
1505 | ;; | |
1506 | *) | |
1507 | ENABLE_64BIT_LIBS=no | |
1508 | ;; | |
1509 | esac | |
1510 | fi | |
1511 | echo "$ac_t""$ENABLE_64BIT_LIBS" 1>&6 | |
1512 | ||
1513 | ||
1514 | ||
1515 | ||
1516 | ||
1517 | echo $ac_n "checking which Makefile fragment to use""... $ac_c" 1>&6 | |
1518 | echo "configure:1519: checking which Makefile fragment to use" >&5 | |
1519 | if eval "test \"`echo '$''{'icu_cv_host_frag'+set}'`\" = set"; then | |
1520 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1521 | else | |
1522 | ||
1523 | case "${host}" in | |
1524 | *-*-solaris*) | |
374ca955 | 1525 | if test "$GCC" = yes; then |
b75a7d8f A |
1526 | icu_cv_host_frag=mh-solaris-gcc |
1527 | else | |
1528 | icu_cv_host_frag=mh-solaris | |
1529 | fi ;; | |
1530 | alpha*-*-linux-gnu) | |
374ca955 | 1531 | if test "$GCC" = yes; then |
b75a7d8f A |
1532 | icu_cv_host_frag=mh-alpha-linux-gcc |
1533 | else | |
1534 | icu_cv_host_frag=mh-alpha-linux-cc | |
1535 | fi ;; | |
374ca955 A |
1536 | powerpc*-*-linux*) |
1537 | if test "$GCC" = yes; then | |
1538 | icu_cv_host_frag=mh-linux | |
1539 | else | |
1540 | icu_cv_host_frag=mh-linux-va | |
1541 | fi ;; | |
b75a7d8f A |
1542 | *-*-linux*) icu_cv_host_frag=mh-linux ;; |
1543 | *-*-cygwin) | |
374ca955 | 1544 | if test "$GCC" = yes; then |
b75a7d8f A |
1545 | icu_cv_host_frag=mh-cygwin |
1546 | else | |
1547 | icu_cv_host_frag=mh-cygwin-msvc | |
1548 | fi ;; | |
374ca955 A |
1549 | *-*-mingw32) |
1550 | if test "$GCC" = yes; then | |
1551 | icu_cv_host_frag=mh-mingw | |
1552 | else | |
1553 | icu_cv_host_frag=mh-cygwin-msvc | |
1554 | fi ;; | |
b75a7d8f A |
1555 | *-*-*bsd*) icu_cv_host_frag=mh-bsd-gcc ;; |
1556 | *-*-aix*) | |
374ca955 A |
1557 | if test "$GCC" = yes; then |
1558 | icu_cv_host_frag=mh-aix-gcc | |
b75a7d8f | 1559 | else |
374ca955 A |
1560 | if test -n "`$CXX --help 2>&1 | grep 'IBM C and C++ Compilers$'`"; then |
1561 | icu_cv_host_frag=mh-aix | |
1562 | else | |
1563 | icu_cv_host_frag=mh-aix-va | |
1564 | fi | |
b75a7d8f A |
1565 | fi ;; |
1566 | *-*-hpux*) | |
374ca955 | 1567 | if test "$GCC" = yes; then |
b75a7d8f A |
1568 | icu_cv_host_frag=mh-hpux-gcc |
1569 | else | |
1570 | case "$CXX" in | |
1571 | *aCC) icu_cv_host_frag=mh-hpux-acc ;; | |
1572 | *CC) icu_cv_host_frag=mh-hpux-cc ;; | |
1573 | esac | |
1574 | fi ;; | |
1575 | *-*ibm-openedition*|*-*-os390*) icu_cv_host_frag=mh-os390 ;; | |
1576 | *-*-os400*) icu_cv_host_frag=mh-os400 ;; | |
1577 | *-apple-rhapsody*) icu_cv_host_frag=mh-darwin ;; | |
1578 | *-apple-darwin*) icu_cv_host_frag=mh-darwin ;; | |
374ca955 | 1579 | *-*-beos) icu_cv_host_frag=mh-beos ;; |
b75a7d8f A |
1580 | *-*-irix*) icu_cv_host_frag=mh-irix ;; |
1581 | *-dec-osf*) icu_cv_host_frag=mh-alpha-osf ;; | |
1582 | *-*-nto*) icu_cv_host_frag=mh-qnx ;; | |
374ca955 | 1583 | *-ncr-*) icu_cv_host_frag=mh-mpras ;; |
b75a7d8f A |
1584 | *-sequent-*) icu_cv_host_frag=mh-ptx ;; |
1585 | *) icu_cv_host_frag=mh-unknown ;; | |
1586 | esac | |
1587 | ||
1588 | ||
1589 | fi | |
1590 | ||
1591 | echo "$ac_t""$icu_cv_host_frag" 1>&6 | |
1592 | ||
1593 | ||
b75a7d8f | 1594 | case "${host}" in |
b75a7d8f | 1595 | *-*-hpux*) echo $ac_n "checking for floor in -lm""... $ac_c" 1>&6 |
374ca955 | 1596 | echo "configure:1597: checking for floor in -lm" >&5 |
b75a7d8f A |
1597 | ac_lib_var=`echo m'_'floor | sed 'y%./+-%__p_%'` |
1598 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
1599 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1600 | else | |
1601 | ac_save_LIBS="$LIBS" | |
1602 | LIBS="-lm $LIBS" | |
1603 | cat > conftest.$ac_ext <<EOF | |
374ca955 | 1604 | #line 1605 "configure" |
b75a7d8f A |
1605 | #include "confdefs.h" |
1606 | /* Override any gcc2 internal prototype to avoid an error. */ | |
1607 | /* We use char because int might match the return type of a gcc2 | |
1608 | builtin and then its argument prototype would still apply. */ | |
1609 | char floor(); | |
1610 | ||
1611 | int main() { | |
1612 | floor() | |
1613 | ; return 0; } | |
1614 | EOF | |
374ca955 | 1615 | if { (eval echo configure:1616: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
b75a7d8f A |
1616 | rm -rf conftest* |
1617 | eval "ac_cv_lib_$ac_lib_var=yes" | |
1618 | else | |
1619 | echo "configure: failed program was:" >&5 | |
1620 | cat conftest.$ac_ext >&5 | |
1621 | rm -rf conftest* | |
1622 | eval "ac_cv_lib_$ac_lib_var=no" | |
1623 | fi | |
1624 | rm -f conftest* | |
1625 | LIBS="$ac_save_LIBS" | |
1626 | ||
1627 | fi | |
1628 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
1629 | echo "$ac_t""yes" 1>&6 | |
1630 | LIB_M="-lm" | |
1631 | else | |
1632 | echo "$ac_t""no" 1>&6 | |
1633 | fi | |
1634 | ;; | |
1635 | ||
1636 | *) echo $ac_n "checking for floor in -lm""... $ac_c" 1>&6 | |
374ca955 | 1637 | echo "configure:1638: checking for floor in -lm" >&5 |
b75a7d8f A |
1638 | ac_lib_var=`echo m'_'floor | sed 'y%./+-%__p_%'` |
1639 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
1640 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1641 | else | |
1642 | ac_save_LIBS="$LIBS" | |
1643 | LIBS="-lm $LIBS" | |
1644 | cat > conftest.$ac_ext <<EOF | |
374ca955 | 1645 | #line 1646 "configure" |
b75a7d8f A |
1646 | #include "confdefs.h" |
1647 | /* Override any gcc2 internal prototype to avoid an error. */ | |
1648 | /* We use char because int might match the return type of a gcc2 | |
1649 | builtin and then its argument prototype would still apply. */ | |
1650 | char floor(); | |
1651 | ||
1652 | int main() { | |
1653 | floor() | |
1654 | ; return 0; } | |
1655 | EOF | |
374ca955 | 1656 | if { (eval echo configure:1657: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
b75a7d8f A |
1657 | rm -rf conftest* |
1658 | eval "ac_cv_lib_$ac_lib_var=yes" | |
1659 | else | |
1660 | echo "configure: failed program was:" >&5 | |
1661 | cat conftest.$ac_ext >&5 | |
1662 | rm -rf conftest* | |
1663 | eval "ac_cv_lib_$ac_lib_var=no" | |
1664 | fi | |
1665 | rm -f conftest* | |
1666 | LIBS="$ac_save_LIBS" | |
1667 | ||
1668 | fi | |
1669 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
1670 | echo "$ac_t""yes" 1>&6 | |
1671 | ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \ | |
1672 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` | |
1673 | cat >> confdefs.h <<EOF | |
1674 | #define $ac_tr_lib 1 | |
1675 | EOF | |
1676 | ||
1677 | LIBS="-lm $LIBS" | |
1678 | ||
1679 | else | |
1680 | echo "$ac_t""no" 1>&6 | |
1681 | fi | |
1682 | ||
1683 | LIB_M="" ;; | |
1684 | esac | |
1685 | ||
1686 | ||
b75a7d8f | 1687 | echo $ac_n "checking whether to build shared libraries""... $ac_c" 1>&6 |
374ca955 | 1688 | echo "configure:1689: checking whether to build shared libraries" >&5 |
b75a7d8f A |
1689 | enabled=no |
1690 | # Check whether --enable-shared or --disable-shared was given. | |
1691 | if test "${enable_shared+set}" = set; then | |
1692 | enableval="$enable_shared" | |
1693 | case "${enableval}" in | |
1694 | yes|"") enabled=yes; ENABLE_SHARED=YES ;; | |
1695 | no);; | |
1696 | *) ;; | |
1697 | esac | |
1698 | else | |
1699 | enabled=yes; ENABLE_SHARED=YES | |
1700 | ||
1701 | fi | |
1702 | ||
1703 | echo "$ac_t""$enabled" 1>&6 | |
1704 | ||
1705 | ||
1706 | echo $ac_n "checking whether to build static libraries""... $ac_c" 1>&6 | |
374ca955 | 1707 | echo "configure:1708: checking whether to build static libraries" >&5 |
b75a7d8f A |
1708 | enabled=no |
1709 | # Check whether --enable-static or --disable-static was given. | |
1710 | if test "${enable_static+set}" = set; then | |
1711 | enableval="$enable_static" | |
1712 | case "${enableval}" in | |
1713 | yes|"") enabled=yes; ENABLE_STATIC=YES ;; | |
1714 | no) ;; | |
1715 | *) ;; | |
1716 | esac | |
1717 | fi | |
1718 | ||
1719 | echo "$ac_t""$enabled" 1>&6 | |
1720 | ||
1721 | ||
374ca955 A |
1722 | echo $ac_n "checking whether to build debug libraries""... $ac_c" 1>&6 |
1723 | echo "configure:1724: checking whether to build debug libraries" >&5 | |
1724 | enabled=no | |
1725 | ENABLE_DEBUG=0 | |
1726 | # Check whether --enable-debug or --disable-debug was given. | |
1727 | if test "${enable_debug+set}" = set; then | |
1728 | enableval="$enable_debug" | |
1729 | case "${enableval}" in | |
1730 | yes|"") enabled=yes; ENABLE_DEBUG=1 ;; | |
1731 | *) ;; | |
1732 | esac | |
1733 | fi | |
1734 | ||
1735 | echo "$ac_t""$enabled" 1>&6 | |
1736 | ||
1737 | ||
1738 | echo $ac_n "checking whether to build release libraries""... $ac_c" 1>&6 | |
1739 | echo "configure:1740: checking whether to build release libraries" >&5 | |
1740 | enabled=yes | |
1741 | ENABLE_RELEASE=1 | |
1742 | # Check whether --enable-release or --disable-release was given. | |
1743 | if test "${enable_release+set}" = set; then | |
1744 | enableval="$enable_release" | |
1745 | case "${enableval}" in | |
1746 | no) enabled=no; ENABLE_RELEASE=0 ;; | |
1747 | *) ;; | |
1748 | esac | |
1749 | fi | |
1750 | ||
1751 | echo "$ac_t""$enabled" 1>&6 | |
1752 | ||
1753 | ||
b75a7d8f A |
1754 | # Extract the first word of "ranlib", so it can be a program name with args. |
1755 | set dummy ranlib; ac_word=$2 | |
1756 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
374ca955 | 1757 | echo "configure:1758: checking for $ac_word" >&5 |
b75a7d8f A |
1758 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
1759 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1760 | else | |
1761 | if test -n "$RANLIB"; then | |
1762 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
1763 | else | |
1764 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
1765 | ac_dummy="$PATH" | |
1766 | for ac_dir in $ac_dummy; do | |
1767 | test -z "$ac_dir" && ac_dir=. | |
1768 | if test -f $ac_dir/$ac_word; then | |
1769 | ac_cv_prog_RANLIB="ranlib" | |
1770 | break | |
1771 | fi | |
1772 | done | |
1773 | IFS="$ac_save_ifs" | |
1774 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" | |
1775 | fi | |
1776 | fi | |
1777 | RANLIB="$ac_cv_prog_RANLIB" | |
1778 | if test -n "$RANLIB"; then | |
1779 | echo "$ac_t""$RANLIB" 1>&6 | |
1780 | else | |
1781 | echo "$ac_t""no" 1>&6 | |
1782 | fi | |
1783 | ||
1784 | # Extract the first word of "ar", so it can be a program name with args. | |
1785 | set dummy ar; ac_word=$2 | |
1786 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
374ca955 | 1787 | echo "configure:1788: checking for $ac_word" >&5 |
b75a7d8f A |
1788 | if eval "test \"`echo '$''{'ac_cv_path_AR'+set}'`\" = set"; then |
1789 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1790 | else | |
1791 | case "$AR" in | |
1792 | /*) | |
1793 | ac_cv_path_AR="$AR" # Let the user override the test with a path. | |
1794 | ;; | |
1795 | ?:/*) | |
1796 | ac_cv_path_AR="$AR" # Let the user override the test with a dos path. | |
1797 | ;; | |
1798 | *) | |
1799 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
1800 | ac_dummy="$PATH:/bin:/usr/bin:/usr/ccs/bin" | |
1801 | for ac_dir in $ac_dummy; do | |
1802 | test -z "$ac_dir" && ac_dir=. | |
1803 | if test -f $ac_dir/$ac_word; then | |
1804 | ac_cv_path_AR="$ac_dir/$ac_word" | |
1805 | break | |
1806 | fi | |
1807 | done | |
1808 | IFS="$ac_save_ifs" | |
1809 | test -z "$ac_cv_path_AR" && ac_cv_path_AR="echo archiver ar not found re-run configure ; false" | |
1810 | ;; | |
1811 | esac | |
1812 | fi | |
1813 | AR="$ac_cv_path_AR" | |
1814 | if test -n "$AR"; then | |
1815 | echo "$ac_t""$AR" 1>&6 | |
1816 | else | |
1817 | echo "$ac_t""no" 1>&6 | |
1818 | fi | |
1819 | ||
1820 | ||
1821 | echo $ac_n "checking whether to enable renaming of symbols""... $ac_c" 1>&6 | |
374ca955 | 1822 | echo "configure:1823: checking whether to enable renaming of symbols" >&5 |
b75a7d8f A |
1823 | enabled=yes |
1824 | U_DISABLE_RENAMING=0 | |
1825 | # Check whether --enable-renaming or --disable-renaming was given. | |
1826 | if test "${enable_renaming+set}" = set; then | |
1827 | enableval="$enable_renaming" | |
1828 | case "${enableval}" in | |
1829 | yes|"") enabled=yes ;; | |
1830 | no) enabled=no; U_DISABLE_RENAMING=1 ;; | |
1831 | *) ;; | |
1832 | esac | |
1833 | fi | |
1834 | ||
1835 | echo "$ac_t""$enabled" 1>&6 | |
1836 | ||
1837 | ||
374ca955 A |
1838 | echo $ac_n "checking whether to enable function and data tracing""... $ac_c" 1>&6 |
1839 | echo "configure:1840: checking whether to enable function and data tracing" >&5 | |
1840 | enabled=yes | |
1841 | U_ENABLE_TRACING=1 | |
1842 | # Check whether --enable-tracing or --disable-tracing was given. | |
1843 | if test "${enable_tracing+set}" = set; then | |
1844 | enableval="$enable_tracing" | |
1845 | case "${enableval}" in | |
1846 | yes|"") enabled=yes ;; | |
1847 | no) enabled=no; U_ENABLE_TRACING=0 ;; | |
1848 | *) ;; | |
1849 | esac | |
1850 | fi | |
1851 | ||
1852 | echo "$ac_t""$enabled" 1>&6 | |
1853 | ||
1854 | ||
b75a7d8f A |
1855 | # Check whether --enable-rpath or --disable-rpath was given. |
1856 | if test "${enable_rpath+set}" = set; then | |
1857 | enableval="$enable_rpath" | |
1858 | case "${enableval}" in | |
1859 | yes|"") ENABLE_RPATH=YES ;; | |
1860 | no) ;; | |
1861 | *) ;; | |
1862 | esac | |
1863 | else | |
1864 | ENABLE_RPATH=NO | |
1865 | ||
1866 | fi | |
1867 | ||
1868 | ||
1869 | ||
1870 | ||
1871 | echo $ac_n "checking for definition of U_INLINE for C""... $ac_c" 1>&6 | |
374ca955 | 1872 | echo "configure:1873: checking for definition of U_INLINE for C" >&5 |
b75a7d8f A |
1873 | if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then |
1874 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1875 | else | |
1876 | ac_cv_c_inline=no | |
1877 | for ac_kw in inline __inline__ __inline; do | |
1878 | cat > conftest.$ac_ext <<EOF | |
374ca955 | 1879 | #line 1880 "configure" |
b75a7d8f A |
1880 | #include "confdefs.h" |
1881 | ||
1882 | int main() { | |
374ca955 | 1883 | return 0;} $ac_kw int foo() { |
b75a7d8f A |
1884 | ; return 0; } |
1885 | EOF | |
374ca955 | 1886 | if { (eval echo configure:1887: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
b75a7d8f A |
1887 | rm -rf conftest* |
1888 | ac_cv_c_inline=$ac_kw; break | |
1889 | else | |
1890 | echo "configure: failed program was:" >&5 | |
1891 | cat conftest.$ac_ext >&5 | |
1892 | fi | |
1893 | rm -f conftest* | |
1894 | done | |
1895 | ||
1896 | fi | |
1897 | ||
1898 | echo "$ac_t""$ac_cv_c_inline" 1>&6 | |
1899 | case "$ac_cv_c_inline" in | |
1900 | yes) U_INLINE= "inline" ;; | |
1901 | no ) U_INLINE= ;; | |
1902 | *) U_INLINE=$ac_cv_c_inline ;; | |
1903 | esac | |
1904 | ||
1905 | ||
1906 | threads=true | |
1907 | ||
1908 | # Check whether --enable-threads or --disable-threads was given. | |
1909 | if test "${enable_threads+set}" = set; then | |
1910 | enableval="$enable_threads" | |
1911 | case "${enableval}" in | |
1912 | yes) threads=true ;; | |
1913 | no) threads=false ;; | |
1914 | *) { echo "configure: error: bad value ${enableval} for --enable-threads" 1>&2; exit 1; } ;; | |
1915 | esac | |
1916 | else | |
1917 | threads=true | |
1918 | fi | |
1919 | ||
1920 | ||
b75a7d8f A |
1921 | if test "$threads" = true; then |
1922 | THREADS_TRUE= | |
b75a7d8f A |
1923 | else |
1924 | THREADS_TRUE='#' | |
b75a7d8f A |
1925 | fi |
1926 | ||
1927 | ICU_USE_THREADS=0 | |
1928 | ||
1929 | if test $threads = true; then | |
b75a7d8f A |
1930 | |
1931 | echo $ac_n "checking for pthread_attr_init in -lpthread""... $ac_c" 1>&6 | |
374ca955 | 1932 | echo "configure:1933: checking for pthread_attr_init in -lpthread" >&5 |
b75a7d8f A |
1933 | ac_lib_var=`echo pthread'_'pthread_attr_init | sed 'y%./+-%__p_%'` |
1934 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
1935 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1936 | else | |
1937 | ac_save_LIBS="$LIBS" | |
1938 | LIBS="-lpthread $LIBS" | |
1939 | cat > conftest.$ac_ext <<EOF | |
374ca955 | 1940 | #line 1941 "configure" |
b75a7d8f A |
1941 | #include "confdefs.h" |
1942 | /* Override any gcc2 internal prototype to avoid an error. */ | |
1943 | /* We use char because int might match the return type of a gcc2 | |
1944 | builtin and then its argument prototype would still apply. */ | |
1945 | char pthread_attr_init(); | |
1946 | ||
1947 | int main() { | |
1948 | pthread_attr_init() | |
1949 | ; return 0; } | |
1950 | EOF | |
374ca955 | 1951 | if { (eval echo configure:1952: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
b75a7d8f A |
1952 | rm -rf conftest* |
1953 | eval "ac_cv_lib_$ac_lib_var=yes" | |
1954 | else | |
1955 | echo "configure: failed program was:" >&5 | |
1956 | cat conftest.$ac_ext >&5 | |
1957 | rm -rf conftest* | |
1958 | eval "ac_cv_lib_$ac_lib_var=no" | |
1959 | fi | |
1960 | rm -f conftest* | |
1961 | LIBS="$ac_save_LIBS" | |
1962 | ||
1963 | fi | |
1964 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
1965 | echo "$ac_t""yes" 1>&6 | |
1966 | ac_tr_lib=HAVE_LIB`echo pthread | sed -e 's/[^a-zA-Z0-9_]/_/g' \ | |
1967 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` | |
1968 | cat >> confdefs.h <<EOF | |
1969 | #define $ac_tr_lib 1 | |
1970 | EOF | |
1971 | ||
1972 | LIBS="-lpthread $LIBS" | |
1973 | ||
1974 | else | |
1975 | echo "$ac_t""no" 1>&6 | |
1976 | fi | |
1977 | ||
1978 | if test $ac_cv_lib_pthread_pthread_attr_init = yes; then | |
1979 | ICU_USE_THREADS=1 | |
1980 | else | |
374ca955 | 1981 | |
b75a7d8f A |
1982 | |
1983 | echo $ac_n "checking for library containing pthread_mutex_destroy""... $ac_c" 1>&6 | |
374ca955 | 1984 | echo "configure:1985: checking for library containing pthread_mutex_destroy" >&5 |
b75a7d8f A |
1985 | if eval "test \"`echo '$''{'ac_cv_search_pthread_mutex_destroy'+set}'`\" = set"; then |
1986 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1987 | else | |
1988 | ac_func_search_save_LIBS="$LIBS" | |
1989 | ac_cv_search_pthread_mutex_destroy="no" | |
374ca955 | 1990 | for i in pthread pthreads c_r ; do |
b75a7d8f A |
1991 | LIBS="-l$i $ac_func_search_save_LIBS" |
1992 | cat > conftest.$ac_ext <<EOF | |
374ca955 | 1993 | #line 1994 "configure" |
b75a7d8f A |
1994 | #include "confdefs.h" |
1995 | /* Override any gcc2 internal prototype to avoid an error. */ | |
1996 | /* We use char because int might match the return type of a gcc2 | |
1997 | builtin and then its argument prototype would still apply. */ | |
1998 | char pthread_mutex_destroy(); | |
1999 | ||
2000 | int main() { | |
2001 | pthread_mutex_destroy() | |
2002 | ; return 0; } | |
2003 | EOF | |
374ca955 | 2004 | if { (eval echo configure:2005: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
b75a7d8f A |
2005 | rm -rf conftest* |
2006 | ac_cv_search_pthread_mutex_destroy="-l$i" | |
2007 | break | |
2008 | else | |
2009 | echo "configure: failed program was:" >&5 | |
2010 | cat conftest.$ac_ext >&5 | |
2011 | fi | |
2012 | rm -f conftest* | |
2013 | done | |
2014 | if test "$ac_cv_search_pthread_mutex_destroy" = "no"; then | |
2015 | cat > conftest.$ac_ext <<EOF | |
374ca955 | 2016 | #line 2017 "configure" |
b75a7d8f A |
2017 | #include "confdefs.h" |
2018 | /* Override any gcc2 internal prototype to avoid an error. */ | |
2019 | /* We use char because int might match the return type of a gcc2 | |
2020 | builtin and then its argument prototype would still apply. */ | |
2021 | char pthread_mutex_destroy(); | |
2022 | ||
2023 | int main() { | |
2024 | pthread_mutex_destroy() | |
2025 | ; return 0; } | |
2026 | EOF | |
374ca955 | 2027 | if { (eval echo configure:2028: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
b75a7d8f A |
2028 | rm -rf conftest* |
2029 | ac_cv_search_pthread_mutex_destroy="none required" | |
2030 | else | |
2031 | echo "configure: failed program was:" >&5 | |
2032 | cat conftest.$ac_ext >&5 | |
2033 | fi | |
2034 | rm -f conftest* | |
2035 | fi | |
2036 | LIBS="$ac_func_search_save_LIBS" | |
2037 | fi | |
2038 | ||
2039 | echo "$ac_t""$ac_cv_search_pthread_mutex_destroy" 1>&6 | |
2040 | if test "$ac_cv_search_pthread_mutex_destroy" != "no"; then | |
2041 | test "$ac_cv_search_pthread_mutex_destroy" = "none required" || LIBS="$ac_cv_search_pthread_mutex_destroy $LIBS" | |
2042 | ||
2043 | else : | |
2044 | ||
2045 | fi | |
2046 | ||
2047 | if test "$ac_cv_search_pthread_mutex_destroy" != no; then | |
2048 | ICU_USE_THREADS=1 | |
2049 | else | |
2050 | echo $ac_n "checking for pthread_mutex_init in -lpthread""... $ac_c" 1>&6 | |
374ca955 | 2051 | echo "configure:2052: checking for pthread_mutex_init in -lpthread" >&5 |
b75a7d8f A |
2052 | ac_lib_var=`echo pthread'_'pthread_mutex_init | sed 'y%./+-%__p_%'` |
2053 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
2054 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2055 | else | |
2056 | ac_save_LIBS="$LIBS" | |
2057 | LIBS="-lpthread $LIBS" | |
2058 | cat > conftest.$ac_ext <<EOF | |
374ca955 | 2059 | #line 2060 "configure" |
b75a7d8f A |
2060 | #include "confdefs.h" |
2061 | /* Override any gcc2 internal prototype to avoid an error. */ | |
2062 | /* We use char because int might match the return type of a gcc2 | |
2063 | builtin and then its argument prototype would still apply. */ | |
2064 | char pthread_mutex_init(); | |
2065 | ||
2066 | int main() { | |
2067 | pthread_mutex_init() | |
2068 | ; return 0; } | |
2069 | EOF | |
374ca955 | 2070 | if { (eval echo configure:2071: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
b75a7d8f A |
2071 | rm -rf conftest* |
2072 | eval "ac_cv_lib_$ac_lib_var=yes" | |
2073 | else | |
2074 | echo "configure: failed program was:" >&5 | |
2075 | cat conftest.$ac_ext >&5 | |
2076 | rm -rf conftest* | |
2077 | eval "ac_cv_lib_$ac_lib_var=no" | |
2078 | fi | |
2079 | rm -f conftest* | |
2080 | LIBS="$ac_save_LIBS" | |
2081 | ||
2082 | fi | |
2083 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
2084 | echo "$ac_t""yes" 1>&6 | |
2085 | ac_tr_lib=HAVE_LIB`echo pthread | sed -e 's/[^a-zA-Z0-9_]/_/g' \ | |
2086 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` | |
2087 | cat >> confdefs.h <<EOF | |
2088 | #define $ac_tr_lib 1 | |
2089 | EOF | |
2090 | ||
2091 | LIBS="-lpthread $LIBS" | |
2092 | ||
2093 | else | |
2094 | echo "$ac_t""no" 1>&6 | |
2095 | fi | |
2096 | ||
2097 | if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then | |
2098 | ICU_USE_THREADS=1 | |
2099 | fi | |
2100 | fi | |
2101 | ||
2102 | echo $ac_n "checking for pthread_mutex_lock""... $ac_c" 1>&6 | |
374ca955 | 2103 | echo "configure:2104: checking for pthread_mutex_lock" >&5 |
b75a7d8f A |
2104 | if eval "test \"`echo '$''{'ac_cv_func_pthread_mutex_lock'+set}'`\" = set"; then |
2105 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2106 | else | |
2107 | cat > conftest.$ac_ext <<EOF | |
374ca955 | 2108 | #line 2109 "configure" |
b75a7d8f A |
2109 | #include "confdefs.h" |
2110 | /* System header to define __stub macros and hopefully few prototypes, | |
2111 | which can conflict with char pthread_mutex_lock(); below. */ | |
2112 | #include <assert.h> | |
2113 | /* Override any gcc2 internal prototype to avoid an error. */ | |
2114 | /* We use char because int might match the return type of a gcc2 | |
2115 | builtin and then its argument prototype would still apply. */ | |
2116 | char pthread_mutex_lock(); | |
2117 | ||
2118 | int main() { | |
2119 | ||
2120 | /* The GNU C library defines this for functions which it implements | |
2121 | to always fail with ENOSYS. Some functions are actually named | |
2122 | something starting with __ and the normal name is an alias. */ | |
2123 | #if defined (__stub_pthread_mutex_lock) || defined (__stub___pthread_mutex_lock) | |
2124 | choke me | |
2125 | #else | |
2126 | pthread_mutex_lock(); | |
2127 | #endif | |
2128 | ||
2129 | ; return 0; } | |
2130 | EOF | |
374ca955 | 2131 | if { (eval echo configure:2132: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
b75a7d8f A |
2132 | rm -rf conftest* |
2133 | eval "ac_cv_func_pthread_mutex_lock=yes" | |
2134 | else | |
2135 | echo "configure: failed program was:" >&5 | |
2136 | cat conftest.$ac_ext >&5 | |
2137 | rm -rf conftest* | |
2138 | eval "ac_cv_func_pthread_mutex_lock=no" | |
2139 | fi | |
2140 | rm -f conftest* | |
2141 | fi | |
2142 | ||
2143 | if eval "test \"`echo '$ac_cv_func_'pthread_mutex_lock`\" = yes"; then | |
2144 | echo "$ac_t""yes" 1>&6 | |
2145 | : | |
2146 | else | |
2147 | echo "$ac_t""no" 1>&6 | |
2148 | fi | |
2149 | ||
2150 | ||
2151 | if test $ac_cv_func_pthread_mutex_lock = yes; then | |
2152 | ICU_USE_THREADS=1 | |
2153 | fi | |
374ca955 A |
2154 | case "${host}" in |
2155 | *-pc-cygwin*|*-pc-mingw*) | |
2156 | if test "$ac_cv_prog_gcc" = no; then | |
2157 | ICU_USE_THREADS=1 | |
2158 | fi ;; | |
2159 | *-*-hpux*) | |
2160 | case "${icu_cv_host_frag}" in | |
2161 | mh-hpux-acc) | |
2162 | OLD_CXXFLAGS="${CXXFLAGS}" | |
2163 | CXXFLAGS="${CXXFLAGS} -mt" | |
2164 | if test x"`${CXX} ${CXXFLAGS} 2>&1`" != x""; then | |
2165 | CXXFLAGS="${OLD_CXXFLAGS}" | |
2166 | fi | |
2167 | ;; | |
2168 | esac | |
2169 | ;; | |
2170 | esac | |
b75a7d8f | 2171 | fi |
b75a7d8f A |
2172 | fi |
2173 | ||
2174 | ||
2175 | ||
2176 | ||
2177 | # The AC_FUNC_MMAP macro doesn't work properly. It seems to be too specific. | |
2178 | # Do this check instead. | |
2179 | HAVE_MMAP=0 | |
2180 | echo $ac_n "checking for mmap""... $ac_c" 1>&6 | |
374ca955 | 2181 | echo "configure:2182: checking for mmap" >&5 |
b75a7d8f A |
2182 | if eval "test \"`echo '$''{'ac_cv_func_mmap_ok'+set}'`\" = set"; then |
2183 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2184 | else | |
2185 | cat > conftest.$ac_ext <<EOF | |
374ca955 | 2186 | #line 2187 "configure" |
b75a7d8f A |
2187 | #include "confdefs.h" |
2188 | ||
2189 | #include <unistd.h> | |
2190 | #include <sys/mman.h> | |
2191 | #include <sys/stat.h> | |
2192 | #include <fcntl.h> | |
2193 | ||
2194 | int main() { | |
2195 | mmap((void *)0, 0, PROT_READ, 0, 0, 0); | |
2196 | ; return 0; } | |
2197 | EOF | |
374ca955 | 2198 | if { (eval echo configure:2199: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
b75a7d8f A |
2199 | rm -rf conftest* |
2200 | ac_cv_func_mmap_ok=yes | |
2201 | else | |
2202 | echo "configure: failed program was:" >&5 | |
2203 | cat conftest.$ac_ext >&5 | |
2204 | rm -rf conftest* | |
2205 | ac_cv_func_mmap_ok=no | |
2206 | fi | |
2207 | rm -f conftest* | |
2208 | fi | |
2209 | ||
2210 | echo "$ac_t""$ac_cv_func_mmap_ok" 1>&6 | |
2211 | if test $ac_cv_func_mmap_ok = yes | |
2212 | then | |
2213 | HAVE_MMAP=1 | |
2214 | fi | |
2215 | ||
2216 | ||
374ca955 A |
2217 | GENCCODE_ASSEMBLY= |
2218 | case "${host}" in | |
2219 | i*86-*-*bsd*|i*86-*-linux*|x86_64-*-linux*|powerpc*-*-linux*) | |
2220 | if test "$GCC" = yes; then | |
2221 | GENCCODE_ASSEMBLY="-a gcc" | |
2222 | fi ;; | |
2223 | esac | |
2224 | ||
2225 | ||
2226 | ||
b75a7d8f | 2227 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 |
374ca955 | 2228 | echo "configure:2229: checking how to run the C preprocessor" >&5 |
b75a7d8f A |
2229 | # On Suns, sometimes $CPP names a directory. |
2230 | if test -n "$CPP" && test -d "$CPP"; then | |
2231 | CPP= | |
2232 | fi | |
2233 | if test -z "$CPP"; then | |
2234 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then | |
2235 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2236 | else | |
2237 | # This must be in double quotes, not single quotes, because CPP may get | |
2238 | # substituted into the Makefile and "${CC-cc}" will confuse make. | |
2239 | CPP="${CC-cc} -E" | |
2240 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
2241 | # not just through cpp. | |
2242 | cat > conftest.$ac_ext <<EOF | |
374ca955 | 2243 | #line 2244 "configure" |
b75a7d8f A |
2244 | #include "confdefs.h" |
2245 | #include <assert.h> | |
2246 | Syntax Error | |
2247 | EOF | |
2248 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
374ca955 | 2249 | { (eval echo configure:2250: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
b75a7d8f A |
2250 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
2251 | if test -z "$ac_err"; then | |
2252 | : | |
2253 | else | |
2254 | echo "$ac_err" >&5 | |
2255 | echo "configure: failed program was:" >&5 | |
2256 | cat conftest.$ac_ext >&5 | |
2257 | rm -rf conftest* | |
2258 | CPP="${CC-cc} -E -traditional-cpp" | |
2259 | cat > conftest.$ac_ext <<EOF | |
374ca955 | 2260 | #line 2261 "configure" |
b75a7d8f A |
2261 | #include "confdefs.h" |
2262 | #include <assert.h> | |
2263 | Syntax Error | |
2264 | EOF | |
2265 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
374ca955 | 2266 | { (eval echo configure:2267: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
b75a7d8f A |
2267 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
2268 | if test -z "$ac_err"; then | |
2269 | : | |
2270 | else | |
2271 | echo "$ac_err" >&5 | |
2272 | echo "configure: failed program was:" >&5 | |
2273 | cat conftest.$ac_ext >&5 | |
2274 | rm -rf conftest* | |
2275 | CPP="${CC-cc} -nologo -E" | |
2276 | cat > conftest.$ac_ext <<EOF | |
374ca955 | 2277 | #line 2278 "configure" |
b75a7d8f A |
2278 | #include "confdefs.h" |
2279 | #include <assert.h> | |
2280 | Syntax Error | |
2281 | EOF | |
2282 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
374ca955 | 2283 | { (eval echo configure:2284: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
b75a7d8f A |
2284 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
2285 | if test -z "$ac_err"; then | |
2286 | : | |
2287 | else | |
2288 | echo "$ac_err" >&5 | |
2289 | echo "configure: failed program was:" >&5 | |
2290 | cat conftest.$ac_ext >&5 | |
2291 | rm -rf conftest* | |
2292 | CPP=/lib/cpp | |
2293 | fi | |
2294 | rm -f conftest* | |
2295 | fi | |
2296 | rm -f conftest* | |
2297 | fi | |
2298 | rm -f conftest* | |
2299 | ac_cv_prog_CPP="$CPP" | |
2300 | fi | |
2301 | CPP="$ac_cv_prog_CPP" | |
2302 | else | |
2303 | ac_cv_prog_CPP="$CPP" | |
2304 | fi | |
2305 | echo "$ac_t""$CPP" 1>&6 | |
2306 | ||
2307 | for ac_hdr in inttypes.h | |
2308 | do | |
2309 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
2310 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
374ca955 | 2311 | echo "configure:2312: checking for $ac_hdr" >&5 |
b75a7d8f A |
2312 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
2313 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2314 | else | |
2315 | cat > conftest.$ac_ext <<EOF | |
374ca955 | 2316 | #line 2317 "configure" |
b75a7d8f A |
2317 | #include "confdefs.h" |
2318 | #include <$ac_hdr> | |
2319 | EOF | |
2320 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
374ca955 | 2321 | { (eval echo configure:2322: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
b75a7d8f A |
2322 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
2323 | if test -z "$ac_err"; then | |
2324 | rm -rf conftest* | |
2325 | eval "ac_cv_header_$ac_safe=yes" | |
2326 | else | |
2327 | echo "$ac_err" >&5 | |
2328 | echo "configure: failed program was:" >&5 | |
2329 | cat conftest.$ac_ext >&5 | |
2330 | rm -rf conftest* | |
2331 | eval "ac_cv_header_$ac_safe=no" | |
2332 | fi | |
2333 | rm -f conftest* | |
2334 | fi | |
2335 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
2336 | echo "$ac_t""yes" 1>&6 | |
2337 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
2338 | cat >> confdefs.h <<EOF | |
2339 | #define $ac_tr_hdr 1 | |
2340 | EOF | |
2341 | ||
2342 | else | |
2343 | echo "$ac_t""no" 1>&6 | |
2344 | fi | |
2345 | done | |
2346 | ||
2347 | if test $ac_cv_header_inttypes_h = no; then | |
2348 | U_HAVE_INTTYPES_H=0 | |
2349 | else | |
2350 | U_HAVE_INTTYPES_H=1 | |
2351 | fi | |
2352 | if test "$CC" = ccc; then | |
2353 | echo "$ac_t"""C compiler set to CCC ${CC}" " 1>&6 | |
2354 | case "${host}" in | |
2355 | alpha*-*-*) U_HAVE_INTTYPES_H=0; | |
2356 | esac | |
2357 | fi | |
2358 | ||
2359 | ||
2360 | ||
2361 | # Check whether --with-iostream or --without-iostream was given. | |
2362 | if test "${with_iostream+set}" = set; then | |
2363 | withval="$with_iostream" | |
2364 | case "${withval}" in | |
2365 | none) streams=none ;; | |
2366 | old) streams=198506 ;; | |
2367 | std) streams=199711 ;; | |
2368 | auto) streams= ;; | |
2369 | *) { echo "configure: error: bad value ${withval} for --with-iostream" 1>&2; exit 1; } ;; | |
2370 | esac | |
2371 | else | |
2372 | streams= | |
2373 | fi | |
2374 | ||
2375 | ||
2376 | U_IOSTREAM_SOURCE=0 | |
2377 | if test x$streams != xnone | |
2378 | then | |
2379 | ||
2380 | ac_ext=C | |
2381 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
2382 | ac_cpp='$CXXCPP $CPPFLAGS' | |
2383 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
2384 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
2385 | cross_compiling=$ac_cv_prog_cxx_cross | |
2386 | ||
374ca955 A |
2387 | OLD_CXXFLAGS="${CXXFLAGS}" |
2388 | case "${icu_cv_host_frag}" in | |
2389 | mh-hpux-acc) | |
2390 | CXXFLAGS="${CXXFLAGS} -AA" | |
2391 | ;; | |
2392 | esac | |
b75a7d8f | 2393 | echo $ac_n "checking iostream usability""... $ac_c" 1>&6 |
374ca955 | 2394 | echo "configure:2395: checking iostream usability" >&5 |
b75a7d8f | 2395 | cat > conftest.$ac_ext <<EOF |
374ca955 | 2396 | #line 2397 "configure" |
b75a7d8f A |
2397 | #include "confdefs.h" |
2398 | #include <iostream> | |
2399 | int main() { | |
2400 | ||
2401 | ; return 0; } | |
2402 | EOF | |
374ca955 | 2403 | if { (eval echo configure:2404: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
b75a7d8f A |
2404 | rm -rf conftest* |
2405 | ac_cv_header_iostream=yes | |
2406 | else | |
2407 | echo "configure: failed program was:" >&5 | |
2408 | cat conftest.$ac_ext >&5 | |
2409 | rm -rf conftest* | |
2410 | ac_cv_header_iostream=no | |
2411 | fi | |
2412 | rm -f conftest* | |
374ca955 A |
2413 | if test $icu_cv_host_frag = mh-cygwin-msvc |
2414 | then | |
2415 | ac_cv_header_iostream=yes | |
2416 | fi | |
b75a7d8f A |
2417 | echo "$ac_t""$ac_cv_header_iostream" 1>&6 |
2418 | if test $ac_cv_header_iostream = yes | |
2419 | then | |
2420 | U_IOSTREAM_SOURCE=199711 | |
2421 | else | |
374ca955 | 2422 | CXXFLAGS="${OLD_CXXFLAGS}" |
b75a7d8f | 2423 | echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6 |
374ca955 | 2424 | echo "configure:2425: checking how to run the C++ preprocessor" >&5 |
b75a7d8f A |
2425 | if test -z "$CXXCPP"; then |
2426 | if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then | |
2427 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2428 | else | |
2429 | ac_ext=C | |
2430 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
2431 | ac_cpp='$CXXCPP $CPPFLAGS' | |
2432 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
2433 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
2434 | cross_compiling=$ac_cv_prog_cxx_cross | |
2435 | CXXCPP="${CXX-g++} -E" | |
2436 | cat > conftest.$ac_ext <<EOF | |
374ca955 | 2437 | #line 2438 "configure" |
b75a7d8f A |
2438 | #include "confdefs.h" |
2439 | #include <stdlib.h> | |
2440 | EOF | |
2441 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
374ca955 | 2442 | { (eval echo configure:2443: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
b75a7d8f A |
2443 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
2444 | if test -z "$ac_err"; then | |
2445 | : | |
2446 | else | |
2447 | echo "$ac_err" >&5 | |
2448 | echo "configure: failed program was:" >&5 | |
2449 | cat conftest.$ac_ext >&5 | |
2450 | rm -rf conftest* | |
2451 | CXXCPP=/lib/cpp | |
2452 | fi | |
2453 | rm -f conftest* | |
2454 | ac_cv_prog_CXXCPP="$CXXCPP" | |
2455 | ac_ext=C | |
2456 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
2457 | ac_cpp='$CXXCPP $CPPFLAGS' | |
2458 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
2459 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
2460 | cross_compiling=$ac_cv_prog_cxx_cross | |
2461 | fi | |
2462 | fi | |
2463 | CXXCPP="$ac_cv_prog_CXXCPP" | |
2464 | echo "$ac_t""$CXXCPP" 1>&6 | |
2465 | ||
2466 | ac_safe=`echo "iostream.h" | sed 'y%./+-%__p_%'` | |
2467 | echo $ac_n "checking for iostream.h""... $ac_c" 1>&6 | |
374ca955 | 2468 | echo "configure:2469: checking for iostream.h" >&5 |
b75a7d8f A |
2469 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
2470 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2471 | else | |
2472 | cat > conftest.$ac_ext <<EOF | |
374ca955 | 2473 | #line 2474 "configure" |
b75a7d8f A |
2474 | #include "confdefs.h" |
2475 | #include <iostream.h> | |
2476 | EOF | |
2477 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
374ca955 | 2478 | { (eval echo configure:2479: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
b75a7d8f A |
2479 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
2480 | if test -z "$ac_err"; then | |
2481 | rm -rf conftest* | |
2482 | eval "ac_cv_header_$ac_safe=yes" | |
2483 | else | |
2484 | echo "$ac_err" >&5 | |
2485 | echo "configure: failed program was:" >&5 | |
2486 | cat conftest.$ac_ext >&5 | |
2487 | rm -rf conftest* | |
2488 | eval "ac_cv_header_$ac_safe=no" | |
2489 | fi | |
2490 | rm -f conftest* | |
2491 | fi | |
2492 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
2493 | echo "$ac_t""yes" 1>&6 | |
2494 | : | |
2495 | else | |
2496 | echo "$ac_t""no" 1>&6 | |
2497 | fi | |
2498 | ||
2499 | if test $ac_cv_header_iostream_h = yes; then | |
2500 | echo $ac_n "checking whether ostream is really defined""... $ac_c" 1>&6 | |
374ca955 | 2501 | echo "configure:2502: checking whether ostream is really defined" >&5 |
b75a7d8f A |
2502 | if eval "test \"`echo '$''{'ac_cv_iostream_ok'+set}'`\" = set"; then |
2503 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2504 | else | |
2505 | cat > conftest.$ac_ext <<EOF | |
374ca955 | 2506 | #line 2507 "configure" |
b75a7d8f A |
2507 | #include "confdefs.h" |
2508 | #include <iostream.h> | |
2509 | int main() { | |
2510 | ostream &testout = cout; testout << "test" << endl; | |
2511 | ; return 0; } | |
2512 | EOF | |
374ca955 | 2513 | if { (eval echo configure:2514: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
b75a7d8f A |
2514 | rm -rf conftest* |
2515 | ac_cv_iostream_ok=yes | |
2516 | else | |
2517 | echo "configure: failed program was:" >&5 | |
2518 | cat conftest.$ac_ext >&5 | |
2519 | rm -rf conftest* | |
2520 | ac_cv_iostream_ok=no | |
2521 | fi | |
2522 | rm -f conftest* | |
2523 | fi | |
2524 | ||
2525 | echo "$ac_t""$ac_cv_iostream_ok" 1>&6 | |
2526 | if test $ac_cv_iostream_ok = yes | |
2527 | then | |
2528 | U_IOSTREAM_SOURCE=198506 | |
2529 | fi | |
2530 | fi | |
2531 | fi | |
2532 | if test x$streams != x | |
2533 | then | |
2534 | if test $U_IOSTREAM_SOURCE -ge $streams | |
2535 | then | |
2536 | U_IOSTREAM_SOURCE=$streams | |
374ca955 A |
2537 | case "${icu_cv_host_frag}" in |
2538 | mh-hpux-acc) | |
2539 | if test $U_IOSTREAM_SOURCE -lt 199711; then | |
2540 | CXXFLAGS=${OLD_CXXFLAGS} | |
2541 | fi | |
2542 | ;; | |
2543 | esac | |
b75a7d8f A |
2544 | else |
2545 | { echo "configure: error: ${withval} iostream is not available" 1>&2; exit 1; } | |
2546 | fi | |
2547 | fi | |
2548 | fi | |
2549 | ||
2550 | ac_ext=c | |
2551 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
2552 | ac_cpp='$CPP $CPPFLAGS' | |
2553 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
2554 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
2555 | cross_compiling=$ac_cv_prog_cc_cross | |
2556 | ||
2557 | ||
2558 | echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6 | |
374ca955 | 2559 | echo "configure:2560: checking whether byte ordering is bigendian" >&5 |
b75a7d8f A |
2560 | if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then |
2561 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2562 | else | |
2563 | ac_cv_c_bigendian=unknown | |
2564 | # See if sys/param.h defines the BYTE_ORDER macro. | |
2565 | cat > conftest.$ac_ext <<EOF | |
374ca955 | 2566 | #line 2567 "configure" |
b75a7d8f A |
2567 | #include "confdefs.h" |
2568 | #include <sys/types.h> | |
2569 | #include <sys/param.h> | |
2570 | int main() { | |
2571 | ||
2572 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN | |
2573 | bogus endian macros | |
2574 | #endif | |
2575 | ; return 0; } | |
2576 | EOF | |
374ca955 | 2577 | if { (eval echo configure:2578: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
b75a7d8f A |
2578 | rm -rf conftest* |
2579 | # It does; now see whether it defined to BIG_ENDIAN or not. | |
2580 | cat > conftest.$ac_ext <<EOF | |
374ca955 | 2581 | #line 2582 "configure" |
b75a7d8f A |
2582 | #include "confdefs.h" |
2583 | #include <sys/types.h> | |
2584 | #include <sys/param.h> | |
2585 | int main() { | |
2586 | ||
2587 | #if BYTE_ORDER != BIG_ENDIAN | |
2588 | not big endian | |
2589 | #endif | |
2590 | ; return 0; } | |
2591 | EOF | |
374ca955 | 2592 | if { (eval echo configure:2593: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
b75a7d8f A |
2593 | rm -rf conftest* |
2594 | ac_cv_c_bigendian=yes | |
2595 | else | |
2596 | echo "configure: failed program was:" >&5 | |
2597 | cat conftest.$ac_ext >&5 | |
2598 | rm -rf conftest* | |
2599 | ac_cv_c_bigendian=no | |
2600 | fi | |
2601 | rm -f conftest* | |
2602 | else | |
2603 | echo "configure: failed program was:" >&5 | |
2604 | cat conftest.$ac_ext >&5 | |
2605 | fi | |
2606 | rm -f conftest* | |
2607 | if test $ac_cv_c_bigendian = unknown; then | |
2608 | if test "$cross_compiling" = yes; then | |
2609 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } | |
2610 | else | |
2611 | cat > conftest.$ac_ext <<EOF | |
374ca955 | 2612 | #line 2613 "configure" |
b75a7d8f A |
2613 | #include "confdefs.h" |
2614 | main () { | |
2615 | /* Are we little or big endian? From Harbison&Steele. */ | |
2616 | union | |
2617 | { | |
2618 | long l; | |
2619 | char c[sizeof (long)]; | |
2620 | } u; | |
2621 | u.l = 1; | |
2622 | exit (u.c[sizeof (long) - 1] == 1); | |
2623 | } | |
2624 | EOF | |
374ca955 | 2625 | if { (eval echo configure:2626: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
b75a7d8f A |
2626 | then |
2627 | ac_cv_c_bigendian=no | |
2628 | else | |
2629 | echo "configure: failed program was:" >&5 | |
2630 | cat conftest.$ac_ext >&5 | |
2631 | rm -fr conftest* | |
2632 | ac_cv_c_bigendian=yes | |
2633 | fi | |
2634 | rm -fr conftest* | |
2635 | fi | |
2636 | ||
2637 | fi | |
2638 | fi | |
2639 | ||
2640 | echo "$ac_t""$ac_cv_c_bigendian" 1>&6 | |
2641 | if test $ac_cv_c_bigendian = yes; then | |
2642 | cat >> confdefs.h <<\EOF | |
2643 | #define WORDS_BIGENDIAN 1 | |
2644 | EOF | |
2645 | ||
2646 | fi | |
2647 | ||
2648 | if test $ac_cv_c_bigendian = no; then | |
2649 | U_IS_BIG_ENDIAN=0 | |
2650 | U_ENDIAN_CHAR="l" | |
2651 | else | |
2652 | U_IS_BIG_ENDIAN=1 | |
2653 | U_ENDIAN_CHAR="b" | |
2654 | fi | |
2655 | ||
2656 | ||
2657 | U_HAVE_NL_LANGINFO_CODESET=0 | |
2658 | U_NL_LANGINFO_CODESET=-1 | |
2659 | echo $ac_n "checking for nl_langinfo""... $ac_c" 1>&6 | |
374ca955 | 2660 | echo "configure:2661: checking for nl_langinfo" >&5 |
b75a7d8f A |
2661 | if eval "test \"`echo '$''{'ac_cv_func_nl_langinfo'+set}'`\" = set"; then |
2662 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2663 | else | |
2664 | cat > conftest.$ac_ext <<EOF | |
374ca955 | 2665 | #line 2666 "configure" |
b75a7d8f A |
2666 | #include "confdefs.h" |
2667 | /* System header to define __stub macros and hopefully few prototypes, | |
2668 | which can conflict with char nl_langinfo(); below. */ | |
2669 | #include <assert.h> | |
2670 | /* Override any gcc2 internal prototype to avoid an error. */ | |
2671 | /* We use char because int might match the return type of a gcc2 | |
2672 | builtin and then its argument prototype would still apply. */ | |
2673 | char nl_langinfo(); | |
2674 | ||
2675 | int main() { | |
2676 | ||
2677 | /* The GNU C library defines this for functions which it implements | |
2678 | to always fail with ENOSYS. Some functions are actually named | |
2679 | something starting with __ and the normal name is an alias. */ | |
2680 | #if defined (__stub_nl_langinfo) || defined (__stub___nl_langinfo) | |
2681 | choke me | |
2682 | #else | |
2683 | nl_langinfo(); | |
2684 | #endif | |
2685 | ||
2686 | ; return 0; } | |
2687 | EOF | |
374ca955 | 2688 | if { (eval echo configure:2689: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
b75a7d8f A |
2689 | rm -rf conftest* |
2690 | eval "ac_cv_func_nl_langinfo=yes" | |
2691 | else | |
2692 | echo "configure: failed program was:" >&5 | |
2693 | cat conftest.$ac_ext >&5 | |
2694 | rm -rf conftest* | |
2695 | eval "ac_cv_func_nl_langinfo=no" | |
2696 | fi | |
2697 | rm -f conftest* | |
2698 | fi | |
2699 | ||
2700 | if eval "test \"`echo '$ac_cv_func_'nl_langinfo`\" = yes"; then | |
2701 | echo "$ac_t""yes" 1>&6 | |
2702 | U_HAVE_NL_LANGINFO=1 | |
2703 | else | |
2704 | echo "$ac_t""no" 1>&6 | |
2705 | U_HAVE_NL_LANGINFO=0 | |
2706 | fi | |
2707 | ||
2708 | ||
2709 | if test $U_HAVE_NL_LANGINFO -eq 1; then | |
2710 | echo $ac_n "checking for nl_langinfo's argument to obtain the codeset""... $ac_c" 1>&6 | |
374ca955 | 2711 | echo "configure:2712: checking for nl_langinfo's argument to obtain the codeset" >&5 |
b75a7d8f A |
2712 | if eval "test \"`echo '$''{'ac_cv_nl_langinfo_codeset'+set}'`\" = set"; then |
2713 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2714 | else | |
2715 | ac_cv_nl_langinfo_codeset="unknown" | |
2716 | for a in CODESET _NL_CTYPE_CODESET_NAME; do | |
2717 | cat > conftest.$ac_ext <<EOF | |
374ca955 | 2718 | #line 2719 "configure" |
b75a7d8f A |
2719 | #include "confdefs.h" |
2720 | #include <langinfo.h> | |
2721 | int main() { | |
2722 | nl_langinfo($a); | |
2723 | ; return 0; } | |
2724 | EOF | |
374ca955 | 2725 | if { (eval echo configure:2726: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
b75a7d8f A |
2726 | rm -rf conftest* |
2727 | ac_cv_nl_langinfo_codeset="$a"; break | |
2728 | else | |
2729 | echo "configure: failed program was:" >&5 | |
2730 | cat conftest.$ac_ext >&5 | |
2731 | fi | |
2732 | rm -f conftest* | |
2733 | done | |
2734 | fi | |
2735 | ||
2736 | echo "$ac_t""$ac_cv_nl_langinfo_codeset" 1>&6 | |
2737 | if test x$ac_cv_nl_langinfo_codeset != xunknown | |
2738 | then | |
2739 | U_HAVE_NL_LANGINFO_CODESET=1 | |
2740 | U_NL_LANGINFO_CODESET=$ac_cv_nl_langinfo_codeset | |
2741 | fi | |
2742 | fi | |
2743 | ||
2744 | ||
2745 | ||
2746 | ac_ext=C | |
2747 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
2748 | ac_cpp='$CXXCPP $CPPFLAGS' | |
2749 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
2750 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
2751 | cross_compiling=$ac_cv_prog_cxx_cross | |
2752 | ||
2753 | echo $ac_n "checking for namespace support""... $ac_c" 1>&6 | |
374ca955 | 2754 | echo "configure:2755: checking for namespace support" >&5 |
b75a7d8f A |
2755 | if eval "test \"`echo '$''{'ac_cv_namespace_ok'+set}'`\" = set"; then |
2756 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2757 | else | |
2758 | cat > conftest.$ac_ext <<EOF | |
374ca955 | 2759 | #line 2760 "configure" |
b75a7d8f A |
2760 | #include "confdefs.h" |
2761 | namespace x_version {void f(){}}; | |
2762 | namespace x = x_version; | |
2763 | using namespace x_version; | |
2764 | ||
2765 | int main() { | |
2766 | f(); | |
2767 | ; return 0; } | |
2768 | EOF | |
374ca955 | 2769 | if { (eval echo configure:2770: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
b75a7d8f A |
2770 | rm -rf conftest* |
2771 | ac_cv_namespace_ok=yes | |
2772 | else | |
2773 | echo "configure: failed program was:" >&5 | |
2774 | cat conftest.$ac_ext >&5 | |
2775 | rm -rf conftest* | |
2776 | ac_cv_namespace_ok=no | |
2777 | fi | |
2778 | rm -f conftest* | |
2779 | fi | |
2780 | ||
2781 | echo "$ac_t""$ac_cv_namespace_ok" 1>&6 | |
2782 | U_HAVE_NAMESPACE=1 | |
2783 | if test $ac_cv_namespace_ok = no | |
2784 | then | |
2785 | U_HAVE_NAMESPACE=0 | |
2786 | fi | |
2787 | ||
2788 | ||
2789 | echo $ac_n "checking for properly overriding new and delete""... $ac_c" 1>&6 | |
374ca955 | 2790 | echo "configure:2791: checking for properly overriding new and delete" >&5 |
b75a7d8f A |
2791 | U_OVERRIDE_CXX_ALLOCATION=0 |
2792 | U_HAVE_PLACEMENT_NEW=0 | |
2793 | if eval "test \"`echo '$''{'ac_cv_override_cxx_allocation_ok'+set}'`\" = set"; then | |
2794 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2795 | else | |
2796 | cat > conftest.$ac_ext <<EOF | |
374ca955 | 2797 | #line 2798 "configure" |
b75a7d8f A |
2798 | #include "confdefs.h" |
2799 | #include <stdlib.h> | |
374ca955 A |
2800 | class UMemory { |
2801 | public: | |
b75a7d8f A |
2802 | void *operator new(size_t size) {return malloc(size);} |
2803 | void *operator new[](size_t size) {return malloc(size);} | |
2804 | void operator delete(void *p) {free(p);} | |
2805 | void operator delete[](void *p) {free(p);} | |
2806 | }; | |
2807 | ||
2808 | int main() { | |
2809 | ||
2810 | ; return 0; } | |
2811 | EOF | |
374ca955 | 2812 | if { (eval echo configure:2813: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
b75a7d8f A |
2813 | rm -rf conftest* |
2814 | ac_cv_override_cxx_allocation_ok=yes | |
2815 | else | |
2816 | echo "configure: failed program was:" >&5 | |
2817 | cat conftest.$ac_ext >&5 | |
2818 | rm -rf conftest* | |
2819 | ac_cv_override_cxx_allocation_ok=no | |
2820 | fi | |
2821 | rm -f conftest* | |
2822 | fi | |
2823 | ||
2824 | echo "$ac_t""$ac_cv_override_cxx_allocation_ok" 1>&6 | |
2825 | if test $ac_cv_override_cxx_allocation_ok = yes | |
2826 | then | |
2827 | U_OVERRIDE_CXX_ALLOCATION=1 | |
2828 | echo $ac_n "checking for placement new and delete""... $ac_c" 1>&6 | |
374ca955 | 2829 | echo "configure:2830: checking for placement new and delete" >&5 |
b75a7d8f A |
2830 | if eval "test \"`echo '$''{'ac_cv_override_placement_new_ok'+set}'`\" = set"; then |
2831 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2832 | else | |
2833 | cat > conftest.$ac_ext <<EOF | |
374ca955 | 2834 | #line 2835 "configure" |
b75a7d8f A |
2835 | #include "confdefs.h" |
2836 | #include <stdlib.h> | |
374ca955 A |
2837 | class UMemory { |
2838 | public: | |
b75a7d8f A |
2839 | void *operator new(size_t size) {return malloc(size);} |
2840 | void *operator new[](size_t size) {return malloc(size);} | |
2841 | void operator delete(void *p) {free(p);} | |
2842 | void operator delete[](void *p) {free(p);} | |
2843 | void * operator new(size_t, void *ptr) { return ptr; } | |
2844 | void operator delete(void *, void *) {} | |
2845 | }; | |
2846 | ||
2847 | int main() { | |
2848 | ||
2849 | ; return 0; } | |
2850 | EOF | |
374ca955 | 2851 | if { (eval echo configure:2852: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
b75a7d8f A |
2852 | rm -rf conftest* |
2853 | ac_cv_override_placement_new_ok=yes | |
2854 | else | |
2855 | echo "configure: failed program was:" >&5 | |
2856 | cat conftest.$ac_ext >&5 | |
2857 | rm -rf conftest* | |
2858 | ac_cv_override_placement_new_ok=no | |
2859 | fi | |
2860 | rm -f conftest* | |
2861 | fi | |
2862 | ||
2863 | echo "$ac_t""$ac_cv_override_placement_new_ok" 1>&6 | |
2864 | if test $ac_cv_override_placement_new_ok = yes | |
2865 | then | |
2866 | U_HAVE_PLACEMENT_NEW=1 | |
2867 | fi | |
2868 | fi | |
2869 | ||
2870 | ||
2871 | ||
2872 | ac_ext=c | |
2873 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
2874 | ac_cpp='$CPP $CPPFLAGS' | |
2875 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
2876 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
2877 | cross_compiling=$ac_cv_prog_cc_cross | |
2878 | ||
2879 | echo $ac_n "checking for popen""... $ac_c" 1>&6 | |
374ca955 | 2880 | echo "configure:2881: checking for popen" >&5 |
b75a7d8f A |
2881 | if eval "test \"`echo '$''{'ac_cv_func_popen'+set}'`\" = set"; then |
2882 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2883 | else | |
2884 | cat > conftest.$ac_ext <<EOF | |
374ca955 | 2885 | #line 2886 "configure" |
b75a7d8f A |
2886 | #include "confdefs.h" |
2887 | /* System header to define __stub macros and hopefully few prototypes, | |
2888 | which can conflict with char popen(); below. */ | |
2889 | #include <assert.h> | |
2890 | /* Override any gcc2 internal prototype to avoid an error. */ | |
2891 | /* We use char because int might match the return type of a gcc2 | |
2892 | builtin and then its argument prototype would still apply. */ | |
2893 | char popen(); | |
2894 | ||
2895 | int main() { | |
2896 | ||
2897 | /* The GNU C library defines this for functions which it implements | |
2898 | to always fail with ENOSYS. Some functions are actually named | |
2899 | something starting with __ and the normal name is an alias. */ | |
2900 | #if defined (__stub_popen) || defined (__stub___popen) | |
2901 | choke me | |
2902 | #else | |
2903 | popen(); | |
2904 | #endif | |
2905 | ||
2906 | ; return 0; } | |
2907 | EOF | |
374ca955 | 2908 | if { (eval echo configure:2909: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
b75a7d8f A |
2909 | rm -rf conftest* |
2910 | eval "ac_cv_func_popen=yes" | |
2911 | else | |
2912 | echo "configure: failed program was:" >&5 | |
2913 | cat conftest.$ac_ext >&5 | |
2914 | rm -rf conftest* | |
2915 | eval "ac_cv_func_popen=no" | |
2916 | fi | |
2917 | rm -f conftest* | |
2918 | fi | |
2919 | ||
2920 | if eval "test \"`echo '$ac_cv_func_'popen`\" = yes"; then | |
2921 | echo "$ac_t""yes" 1>&6 | |
2922 | : | |
2923 | else | |
2924 | echo "$ac_t""no" 1>&6 | |
2925 | fi | |
2926 | ||
2927 | if test x$ac_cv_func_popen = xyes | |
2928 | then | |
2929 | U_HAVE_POPEN=1 | |
2930 | else | |
2931 | U_HAVE_POPEN=0 | |
2932 | fi | |
2933 | ||
2934 | ||
2935 | echo $ac_n "checking for tzset""... $ac_c" 1>&6 | |
374ca955 | 2936 | echo "configure:2937: checking for tzset" >&5 |
b75a7d8f A |
2937 | if eval "test \"`echo '$''{'ac_cv_func_tzset'+set}'`\" = set"; then |
2938 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2939 | else | |
2940 | cat > conftest.$ac_ext <<EOF | |
374ca955 | 2941 | #line 2942 "configure" |
b75a7d8f A |
2942 | #include "confdefs.h" |
2943 | /* System header to define __stub macros and hopefully few prototypes, | |
2944 | which can conflict with char tzset(); below. */ | |
2945 | #include <assert.h> | |
2946 | /* Override any gcc2 internal prototype to avoid an error. */ | |
2947 | /* We use char because int might match the return type of a gcc2 | |
2948 | builtin and then its argument prototype would still apply. */ | |
2949 | char tzset(); | |
2950 | ||
2951 | int main() { | |
2952 | ||
2953 | /* The GNU C library defines this for functions which it implements | |
2954 | to always fail with ENOSYS. Some functions are actually named | |
2955 | something starting with __ and the normal name is an alias. */ | |
2956 | #if defined (__stub_tzset) || defined (__stub___tzset) | |
2957 | choke me | |
2958 | #else | |
2959 | tzset(); | |
2960 | #endif | |
2961 | ||
2962 | ; return 0; } | |
2963 | EOF | |
374ca955 | 2964 | if { (eval echo configure:2965: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
b75a7d8f A |
2965 | rm -rf conftest* |
2966 | eval "ac_cv_func_tzset=yes" | |
2967 | else | |
2968 | echo "configure: failed program was:" >&5 | |
2969 | cat conftest.$ac_ext >&5 | |
2970 | rm -rf conftest* | |
2971 | eval "ac_cv_func_tzset=no" | |
2972 | fi | |
2973 | rm -f conftest* | |
2974 | fi | |
2975 | ||
2976 | if eval "test \"`echo '$ac_cv_func_'tzset`\" = yes"; then | |
2977 | echo "$ac_t""yes" 1>&6 | |
2978 | : | |
2979 | else | |
2980 | echo "$ac_t""no" 1>&6 | |
2981 | fi | |
2982 | ||
374ca955 | 2983 | U_HAVE_TZSET=0 |
b75a7d8f A |
2984 | if test x$ac_cv_func_tzset = xyes |
2985 | then | |
2986 | U_TZSET=tzset | |
374ca955 | 2987 | U_HAVE_TZSET=1 |
b75a7d8f A |
2988 | else |
2989 | echo $ac_n "checking for _tzset""... $ac_c" 1>&6 | |
374ca955 | 2990 | echo "configure:2991: checking for _tzset" >&5 |
b75a7d8f A |
2991 | if eval "test \"`echo '$''{'ac_cv_func__tzset'+set}'`\" = set"; then |
2992 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2993 | else | |
2994 | cat > conftest.$ac_ext <<EOF | |
374ca955 | 2995 | #line 2996 "configure" |
b75a7d8f A |
2996 | #include "confdefs.h" |
2997 | /* System header to define __stub macros and hopefully few prototypes, | |
2998 | which can conflict with char _tzset(); below. */ | |
2999 | #include <assert.h> | |
3000 | /* Override any gcc2 internal prototype to avoid an error. */ | |
3001 | /* We use char because int might match the return type of a gcc2 | |
3002 | builtin and then its argument prototype would still apply. */ | |
3003 | char _tzset(); | |
3004 | ||
3005 | int main() { | |
3006 | ||
3007 | /* The GNU C library defines this for functions which it implements | |
3008 | to always fail with ENOSYS. Some functions are actually named | |
3009 | something starting with __ and the normal name is an alias. */ | |
3010 | #if defined (__stub__tzset) || defined (__stub____tzset) | |
3011 | choke me | |
3012 | #else | |
3013 | _tzset(); | |
3014 | #endif | |
3015 | ||
3016 | ; return 0; } | |
3017 | EOF | |
374ca955 | 3018 | if { (eval echo configure:3019: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
b75a7d8f A |
3019 | rm -rf conftest* |
3020 | eval "ac_cv_func__tzset=yes" | |
3021 | else | |
3022 | echo "configure: failed program was:" >&5 | |
3023 | cat conftest.$ac_ext >&5 | |
3024 | rm -rf conftest* | |
3025 | eval "ac_cv_func__tzset=no" | |
3026 | fi | |
3027 | rm -f conftest* | |
3028 | fi | |
3029 | ||
3030 | if eval "test \"`echo '$ac_cv_func_'_tzset`\" = yes"; then | |
3031 | echo "$ac_t""yes" 1>&6 | |
3032 | : | |
3033 | else | |
3034 | echo "$ac_t""no" 1>&6 | |
3035 | fi | |
3036 | ||
3037 | if test x$ac_cv_func__tzset = xyes | |
3038 | then | |
374ca955 A |
3039 | U_TZSET=_tzset |
3040 | U_HAVE_TZSET=1 | |
b75a7d8f A |
3041 | fi |
3042 | fi | |
3043 | ||
374ca955 A |
3044 | |
3045 | ||
3046 | U_HAVE_TZNAME=0 | |
b75a7d8f | 3047 | echo $ac_n "checking for tzname""... $ac_c" 1>&6 |
374ca955 | 3048 | echo "configure:3049: checking for tzname" >&5 |
b75a7d8f A |
3049 | if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then |
3050 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3051 | else | |
3052 | cat > conftest.$ac_ext <<EOF | |
374ca955 | 3053 | #line 3054 "configure" |
b75a7d8f A |
3054 | #include "confdefs.h" |
3055 | #ifndef __USE_POSIX | |
3056 | #define __USE_POSIX | |
3057 | #endif | |
374ca955 | 3058 | #include <stdlib.h> |
b75a7d8f A |
3059 | #include <time.h> |
3060 | #ifndef tzname /* For SGI. */ | |
3061 | extern char *tzname[]; /* RS6000 and others reject char **tzname. */ | |
3062 | #endif | |
3063 | int main() { | |
3064 | atoi(*tzname); | |
3065 | ; return 0; } | |
3066 | EOF | |
374ca955 | 3067 | if { (eval echo configure:3068: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
b75a7d8f A |
3068 | rm -rf conftest* |
3069 | ac_cv_var_tzname=yes | |
3070 | else | |
3071 | echo "configure: failed program was:" >&5 | |
3072 | cat conftest.$ac_ext >&5 | |
3073 | rm -rf conftest* | |
3074 | ac_cv_var_tzname=no | |
3075 | fi | |
3076 | rm -f conftest* | |
3077 | fi | |
3078 | ||
3079 | echo "$ac_t""$ac_cv_var_tzname" 1>&6 | |
3080 | if test $ac_cv_var_tzname = yes; then | |
3081 | U_TZNAME=tzname | |
374ca955 | 3082 | U_HAVE_TZNAME=1 |
b75a7d8f A |
3083 | else |
3084 | echo $ac_n "checking for _tzname""... $ac_c" 1>&6 | |
374ca955 | 3085 | echo "configure:3086: checking for _tzname" >&5 |
b75a7d8f A |
3086 | if eval "test \"`echo '$''{'ac_cv_var__tzname'+set}'`\" = set"; then |
3087 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3088 | else | |
3089 | cat > conftest.$ac_ext <<EOF | |
374ca955 | 3090 | #line 3091 "configure" |
b75a7d8f | 3091 | #include "confdefs.h" |
374ca955 | 3092 | #include <stdlib.h> |
b75a7d8f A |
3093 | #include <time.h> |
3094 | extern char *_tzname[]; | |
3095 | ||
3096 | int main() { | |
3097 | atoi(*_tzname); | |
3098 | ; return 0; } | |
3099 | EOF | |
374ca955 | 3100 | if { (eval echo configure:3101: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
b75a7d8f A |
3101 | rm -rf conftest* |
3102 | ac_cv_var__tzname=yes | |
3103 | else | |
3104 | echo "configure: failed program was:" >&5 | |
3105 | cat conftest.$ac_ext >&5 | |
3106 | rm -rf conftest* | |
3107 | ac_cv_var__tzname=no | |
3108 | fi | |
3109 | rm -f conftest* | |
3110 | fi | |
3111 | ||
3112 | echo "$ac_t""$ac_cv_var__tzname" 1>&6 | |
3113 | if test $ac_cv_var__tzname = yes; then | |
3114 | U_TZNAME=_tzname | |
374ca955 | 3115 | U_HAVE_TZNAME=1 |
b75a7d8f A |
3116 | fi |
3117 | fi | |
3118 | ||
3119 | ||
374ca955 | 3120 | |
b75a7d8f | 3121 | echo $ac_n "checking for timezone""... $ac_c" 1>&6 |
374ca955 | 3122 | echo "configure:3123: checking for timezone" >&5 |
b75a7d8f A |
3123 | if eval "test \"`echo '$''{'ac_cv_var_timezone'+set}'`\" = set"; then |
3124 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3125 | else | |
3126 | cat > conftest.$ac_ext <<EOF | |
374ca955 | 3127 | #line 3128 "configure" |
b75a7d8f A |
3128 | #include "confdefs.h" |
3129 | #ifndef __USE_POSIX | |
3130 | #define __USE_POSIX | |
3131 | #endif | |
3132 | #ifndef __USE_XOPEN | |
3133 | #define __USE_XOPEN | |
3134 | #endif | |
3135 | #include <time.h> | |
3136 | ||
3137 | int main() { | |
3138 | timezone = 1; | |
3139 | ; return 0; } | |
3140 | EOF | |
374ca955 | 3141 | if { (eval echo configure:3142: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
b75a7d8f A |
3142 | rm -rf conftest* |
3143 | ac_cv_var_timezone=yes | |
3144 | else | |
3145 | echo "configure: failed program was:" >&5 | |
3146 | cat conftest.$ac_ext >&5 | |
3147 | rm -rf conftest* | |
3148 | ac_cv_var_timezone=no | |
3149 | fi | |
3150 | rm -f conftest* | |
3151 | fi | |
3152 | ||
3153 | echo "$ac_t""$ac_cv_var_timezone" 1>&6 | |
3154 | U_HAVE_TIMEZONE=0 | |
3155 | if test $ac_cv_var_timezone = yes; then | |
3156 | U_TIMEZONE=timezone | |
3157 | U_HAVE_TIMEZONE=1 | |
3158 | else | |
3159 | echo $ac_n "checking for __timezone""... $ac_c" 1>&6 | |
374ca955 | 3160 | echo "configure:3161: checking for __timezone" >&5 |
b75a7d8f A |
3161 | if eval "test \"`echo '$''{'ac_cv_var___timezone'+set}'`\" = set"; then |
3162 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3163 | else | |
3164 | cat > conftest.$ac_ext <<EOF | |
374ca955 | 3165 | #line 3166 "configure" |
b75a7d8f A |
3166 | #include "confdefs.h" |
3167 | #include <time.h> | |
3168 | ||
3169 | int main() { | |
3170 | __timezone = 1; | |
3171 | ; return 0; } | |
3172 | EOF | |
374ca955 | 3173 | if { (eval echo configure:3174: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
b75a7d8f A |
3174 | rm -rf conftest* |
3175 | ac_cv_var___timezone=yes | |
3176 | else | |
3177 | echo "configure: failed program was:" >&5 | |
3178 | cat conftest.$ac_ext >&5 | |
3179 | rm -rf conftest* | |
3180 | ac_cv_var___timezone=no | |
3181 | fi | |
3182 | rm -f conftest* | |
3183 | fi | |
3184 | ||
3185 | echo "$ac_t""$ac_cv_var___timezone" 1>&6 | |
3186 | if test $ac_cv_var___timezone = yes; then | |
3187 | U_TIMEZONE=__timezone | |
3188 | U_HAVE_TIMEZONE=1 | |
3189 | else | |
3190 | echo $ac_n "checking for _timezone""... $ac_c" 1>&6 | |
374ca955 | 3191 | echo "configure:3192: checking for _timezone" >&5 |
b75a7d8f A |
3192 | if eval "test \"`echo '$''{'ac_cv_var__timezone'+set}'`\" = set"; then |
3193 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3194 | else | |
3195 | cat > conftest.$ac_ext <<EOF | |
374ca955 | 3196 | #line 3197 "configure" |
b75a7d8f A |
3197 | #include "confdefs.h" |
3198 | #include <time.h> | |
3199 | ||
3200 | int main() { | |
3201 | _timezone = 1; | |
3202 | ; return 0; } | |
3203 | EOF | |
374ca955 | 3204 | if { (eval echo configure:3205: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
b75a7d8f A |
3205 | rm -rf conftest* |
3206 | ac_cv_var__timezone=yes | |
3207 | else | |
3208 | echo "configure: failed program was:" >&5 | |
3209 | cat conftest.$ac_ext >&5 | |
3210 | rm -rf conftest* | |
3211 | ac_cv_var__timezone=no | |
3212 | fi | |
3213 | rm -f conftest* | |
3214 | fi | |
3215 | ||
3216 | echo "$ac_t""$ac_cv_var__timezone" 1>&6 | |
3217 | if test $ac_cv_var__timezone = yes; then | |
3218 | U_TIMEZONE=_timezone | |
3219 | U_HAVE_TIMEZONE=1 | |
3220 | fi | |
3221 | fi | |
3222 | fi | |
3223 | ||
3224 | ||
3225 | ||
3226 | echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 | |
374ca955 | 3227 | echo "configure:3228: checking for ANSI C header files" >&5 |
b75a7d8f A |
3228 | if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then |
3229 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3230 | else | |
3231 | cat > conftest.$ac_ext <<EOF | |
374ca955 | 3232 | #line 3233 "configure" |
b75a7d8f A |
3233 | #include "confdefs.h" |
3234 | #include <stdlib.h> | |
3235 | #include <stdarg.h> | |
3236 | #include <string.h> | |
3237 | #include <float.h> | |
3238 | EOF | |
3239 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
374ca955 | 3240 | { (eval echo configure:3241: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
b75a7d8f A |
3241 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
3242 | if test -z "$ac_err"; then | |
3243 | rm -rf conftest* | |
3244 | ac_cv_header_stdc=yes | |
3245 | else | |
3246 | echo "$ac_err" >&5 | |
3247 | echo "configure: failed program was:" >&5 | |
3248 | cat conftest.$ac_ext >&5 | |
3249 | rm -rf conftest* | |
3250 | ac_cv_header_stdc=no | |
3251 | fi | |
3252 | rm -f conftest* | |
3253 | ||
3254 | if test $ac_cv_header_stdc = yes; then | |
3255 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
3256 | cat > conftest.$ac_ext <<EOF | |
374ca955 | 3257 | #line 3258 "configure" |
b75a7d8f A |
3258 | #include "confdefs.h" |
3259 | #include <string.h> | |
3260 | EOF | |
3261 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
3262 | egrep "memchr" >/dev/null 2>&1; then | |
3263 | : | |
3264 | else | |
3265 | rm -rf conftest* | |
3266 | ac_cv_header_stdc=no | |
3267 | fi | |
3268 | rm -f conftest* | |
3269 | ||
3270 | fi | |
3271 | ||
3272 | if test $ac_cv_header_stdc = yes; then | |
3273 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
3274 | cat > conftest.$ac_ext <<EOF | |
374ca955 | 3275 | #line 3276 "configure" |
b75a7d8f A |
3276 | #include "confdefs.h" |
3277 | #include <stdlib.h> | |
3278 | EOF | |
3279 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
3280 | egrep "free" >/dev/null 2>&1; then | |
3281 | : | |
3282 | else | |
3283 | rm -rf conftest* | |
3284 | ac_cv_header_stdc=no | |
3285 | fi | |
3286 | rm -f conftest* | |
3287 | ||
3288 | fi | |
3289 | ||
3290 | if test $ac_cv_header_stdc = yes; then | |
3291 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
3292 | if test "$cross_compiling" = yes; then | |
3293 | : | |
3294 | else | |
3295 | cat > conftest.$ac_ext <<EOF | |
374ca955 | 3296 | #line 3297 "configure" |
b75a7d8f A |
3297 | #include "confdefs.h" |
3298 | #include <ctype.h> | |
3299 | #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
3300 | #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
3301 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
3302 | int main () { int i; for (i = 0; i < 256; i++) | |
3303 | if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); | |
3304 | exit (0); } | |
3305 | ||
3306 | EOF | |
374ca955 | 3307 | if { (eval echo configure:3308: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
b75a7d8f A |
3308 | then |
3309 | : | |
3310 | else | |
3311 | echo "configure: failed program was:" >&5 | |
3312 | cat conftest.$ac_ext >&5 | |
3313 | rm -fr conftest* | |
3314 | ac_cv_header_stdc=no | |
3315 | fi | |
3316 | rm -fr conftest* | |
3317 | fi | |
3318 | ||
3319 | fi | |
3320 | fi | |
3321 | ||
3322 | echo "$ac_t""$ac_cv_header_stdc" 1>&6 | |
3323 | if test $ac_cv_header_stdc = yes; then | |
3324 | cat >> confdefs.h <<\EOF | |
3325 | #define STDC_HEADERS 1 | |
3326 | EOF | |
3327 | ||
3328 | fi | |
3329 | ||
3330 | echo $ac_n "checking for int8_t""... $ac_c" 1>&6 | |
374ca955 | 3331 | echo "configure:3332: checking for int8_t" >&5 |
b75a7d8f A |
3332 | if eval "test \"`echo '$''{'ac_cv_type_int8_t'+set}'`\" = set"; then |
3333 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3334 | else | |
3335 | cat > conftest.$ac_ext <<EOF | |
374ca955 | 3336 | #line 3337 "configure" |
b75a7d8f A |
3337 | #include "confdefs.h" |
3338 | #include <sys/types.h> | |
3339 | #if STDC_HEADERS | |
3340 | #include <stdlib.h> | |
3341 | #include <stddef.h> | |
3342 | #endif | |
3343 | EOF | |
3344 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
3345 | egrep "(^|[^a-zA-Z_0-9])int8_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
3346 | rm -rf conftest* | |
3347 | ac_cv_type_int8_t=yes | |
3348 | else | |
3349 | rm -rf conftest* | |
3350 | ac_cv_type_int8_t=no | |
3351 | fi | |
3352 | rm -f conftest* | |
3353 | ||
3354 | fi | |
3355 | echo "$ac_t""$ac_cv_type_int8_t" 1>&6 | |
3356 | if test $ac_cv_type_int8_t = no; then | |
3357 | cat >> confdefs.h <<\EOF | |
3358 | #define int8_t signed char | |
3359 | EOF | |
3360 | ||
3361 | fi | |
3362 | ||
3363 | echo $ac_n "checking for uint8_t""... $ac_c" 1>&6 | |
374ca955 | 3364 | echo "configure:3365: checking for uint8_t" >&5 |
b75a7d8f A |
3365 | if eval "test \"`echo '$''{'ac_cv_type_uint8_t'+set}'`\" = set"; then |
3366 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3367 | else | |
3368 | cat > conftest.$ac_ext <<EOF | |
374ca955 | 3369 | #line 3370 "configure" |
b75a7d8f A |
3370 | #include "confdefs.h" |
3371 | #include <sys/types.h> | |
3372 | #if STDC_HEADERS | |
3373 | #include <stdlib.h> | |
3374 | #include <stddef.h> | |
3375 | #endif | |
3376 | EOF | |
3377 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
3378 | egrep "(^|[^a-zA-Z_0-9])uint8_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
3379 | rm -rf conftest* | |
3380 | ac_cv_type_uint8_t=yes | |
3381 | else | |
3382 | rm -rf conftest* | |
3383 | ac_cv_type_uint8_t=no | |
3384 | fi | |
3385 | rm -f conftest* | |
3386 | ||
3387 | fi | |
3388 | echo "$ac_t""$ac_cv_type_uint8_t" 1>&6 | |
3389 | if test $ac_cv_type_uint8_t = no; then | |
3390 | cat >> confdefs.h <<\EOF | |
3391 | #define uint8_t unsigned char | |
3392 | EOF | |
3393 | ||
3394 | fi | |
3395 | ||
3396 | echo $ac_n "checking for int16_t""... $ac_c" 1>&6 | |
374ca955 | 3397 | echo "configure:3398: checking for int16_t" >&5 |
b75a7d8f A |
3398 | if eval "test \"`echo '$''{'ac_cv_type_int16_t'+set}'`\" = set"; then |
3399 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3400 | else | |
3401 | cat > conftest.$ac_ext <<EOF | |
374ca955 | 3402 | #line 3403 "configure" |
b75a7d8f A |
3403 | #include "confdefs.h" |
3404 | #include <sys/types.h> | |
3405 | #if STDC_HEADERS | |
3406 | #include <stdlib.h> | |
3407 | #include <stddef.h> | |
3408 | #endif | |
3409 | EOF | |
3410 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
3411 | egrep "(^|[^a-zA-Z_0-9])int16_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
3412 | rm -rf conftest* | |
3413 | ac_cv_type_int16_t=yes | |
3414 | else | |
3415 | rm -rf conftest* | |
3416 | ac_cv_type_int16_t=no | |
3417 | fi | |
3418 | rm -f conftest* | |
3419 | ||
3420 | fi | |
3421 | echo "$ac_t""$ac_cv_type_int16_t" 1>&6 | |
3422 | if test $ac_cv_type_int16_t = no; then | |
3423 | cat >> confdefs.h <<\EOF | |
3424 | #define int16_t signed short | |
3425 | EOF | |
3426 | ||
3427 | fi | |
3428 | ||
3429 | echo $ac_n "checking for uint16_t""... $ac_c" 1>&6 | |
374ca955 | 3430 | echo "configure:3431: checking for uint16_t" >&5 |
b75a7d8f A |
3431 | if eval "test \"`echo '$''{'ac_cv_type_uint16_t'+set}'`\" = set"; then |
3432 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3433 | else | |
3434 | cat > conftest.$ac_ext <<EOF | |
374ca955 | 3435 | #line 3436 "configure" |
b75a7d8f A |
3436 | #include "confdefs.h" |
3437 | #include <sys/types.h> | |
3438 | #if STDC_HEADERS | |
3439 | #include <stdlib.h> | |
3440 | #include <stddef.h> | |
3441 | #endif | |
3442 | EOF | |
3443 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
3444 | egrep "(^|[^a-zA-Z_0-9])uint16_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
3445 | rm -rf conftest* | |
3446 | ac_cv_type_uint16_t=yes | |
3447 | else | |
3448 | rm -rf conftest* | |
3449 | ac_cv_type_uint16_t=no | |
3450 | fi | |
3451 | rm -f conftest* | |
3452 | ||
3453 | fi | |
3454 | echo "$ac_t""$ac_cv_type_uint16_t" 1>&6 | |
3455 | if test $ac_cv_type_uint16_t = no; then | |
3456 | cat >> confdefs.h <<\EOF | |
3457 | #define uint16_t unsigned short | |
3458 | EOF | |
3459 | ||
3460 | fi | |
3461 | ||
3462 | echo $ac_n "checking for int32_t""... $ac_c" 1>&6 | |
374ca955 | 3463 | echo "configure:3464: checking for int32_t" >&5 |
b75a7d8f A |
3464 | if eval "test \"`echo '$''{'ac_cv_type_int32_t'+set}'`\" = set"; then |
3465 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3466 | else | |
3467 | cat > conftest.$ac_ext <<EOF | |
374ca955 | 3468 | #line 3469 "configure" |
b75a7d8f A |
3469 | #include "confdefs.h" |
3470 | #include <sys/types.h> | |
3471 | #if STDC_HEADERS | |
3472 | #include <stdlib.h> | |
3473 | #include <stddef.h> | |
3474 | #endif | |
3475 | EOF | |
3476 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
3477 | egrep "(^|[^a-zA-Z_0-9])int32_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
3478 | rm -rf conftest* | |
3479 | ac_cv_type_int32_t=yes | |
3480 | else | |
3481 | rm -rf conftest* | |
3482 | ac_cv_type_int32_t=no | |
3483 | fi | |
3484 | rm -f conftest* | |
3485 | ||
3486 | fi | |
3487 | echo "$ac_t""$ac_cv_type_int32_t" 1>&6 | |
3488 | if test $ac_cv_type_int32_t = no; then | |
3489 | cat >> confdefs.h <<\EOF | |
3490 | #define int32_t signed long | |
3491 | EOF | |
3492 | ||
3493 | fi | |
3494 | ||
3495 | echo $ac_n "checking for uint32_t""... $ac_c" 1>&6 | |
374ca955 | 3496 | echo "configure:3497: checking for uint32_t" >&5 |
b75a7d8f A |
3497 | if eval "test \"`echo '$''{'ac_cv_type_uint32_t'+set}'`\" = set"; then |
3498 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3499 | else | |
3500 | cat > conftest.$ac_ext <<EOF | |
374ca955 | 3501 | #line 3502 "configure" |
b75a7d8f A |
3502 | #include "confdefs.h" |
3503 | #include <sys/types.h> | |
3504 | #if STDC_HEADERS | |
3505 | #include <stdlib.h> | |
3506 | #include <stddef.h> | |
3507 | #endif | |
3508 | EOF | |
3509 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
3510 | egrep "(^|[^a-zA-Z_0-9])uint32_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
3511 | rm -rf conftest* | |
3512 | ac_cv_type_uint32_t=yes | |
3513 | else | |
3514 | rm -rf conftest* | |
3515 | ac_cv_type_uint32_t=no | |
3516 | fi | |
3517 | rm -f conftest* | |
3518 | ||
3519 | fi | |
3520 | echo "$ac_t""$ac_cv_type_uint32_t" 1>&6 | |
3521 | if test $ac_cv_type_uint32_t = no; then | |
3522 | cat >> confdefs.h <<\EOF | |
3523 | #define uint32_t unsigned long | |
3524 | EOF | |
3525 | ||
3526 | fi | |
3527 | ||
3528 | echo $ac_n "checking for int64_t""... $ac_c" 1>&6 | |
374ca955 | 3529 | echo "configure:3530: checking for int64_t" >&5 |
b75a7d8f A |
3530 | if eval "test \"`echo '$''{'ac_cv_type_int64_t'+set}'`\" = set"; then |
3531 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3532 | else | |
3533 | cat > conftest.$ac_ext <<EOF | |
374ca955 | 3534 | #line 3535 "configure" |
b75a7d8f A |
3535 | #include "confdefs.h" |
3536 | #include <sys/types.h> | |
3537 | #if STDC_HEADERS | |
3538 | #include <stdlib.h> | |
3539 | #include <stddef.h> | |
3540 | #endif | |
3541 | EOF | |
3542 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
3543 | egrep "(^|[^a-zA-Z_0-9])int64_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
3544 | rm -rf conftest* | |
3545 | ac_cv_type_int64_t=yes | |
3546 | else | |
3547 | rm -rf conftest* | |
3548 | ac_cv_type_int64_t=no | |
3549 | fi | |
3550 | rm -f conftest* | |
3551 | ||
3552 | fi | |
3553 | echo "$ac_t""$ac_cv_type_int64_t" 1>&6 | |
3554 | if test $ac_cv_type_int64_t = no; then | |
3555 | cat >> confdefs.h <<\EOF | |
3556 | #define int64_t signed long long | |
3557 | EOF | |
3558 | ||
3559 | fi | |
3560 | ||
3561 | echo $ac_n "checking for uint64_t""... $ac_c" 1>&6 | |
374ca955 | 3562 | echo "configure:3563: checking for uint64_t" >&5 |
b75a7d8f A |
3563 | if eval "test \"`echo '$''{'ac_cv_type_uint64_t'+set}'`\" = set"; then |
3564 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3565 | else | |
3566 | cat > conftest.$ac_ext <<EOF | |
374ca955 | 3567 | #line 3568 "configure" |
b75a7d8f A |
3568 | #include "confdefs.h" |
3569 | #include <sys/types.h> | |
3570 | #if STDC_HEADERS | |
3571 | #include <stdlib.h> | |
3572 | #include <stddef.h> | |
3573 | #endif | |
3574 | EOF | |
3575 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
3576 | egrep "(^|[^a-zA-Z_0-9])uint64_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
3577 | rm -rf conftest* | |
3578 | ac_cv_type_uint64_t=yes | |
3579 | else | |
3580 | rm -rf conftest* | |
3581 | ac_cv_type_uint64_t=no | |
3582 | fi | |
3583 | rm -f conftest* | |
3584 | ||
3585 | fi | |
3586 | echo "$ac_t""$ac_cv_type_uint64_t" 1>&6 | |
3587 | if test $ac_cv_type_uint64_t = no; then | |
3588 | cat >> confdefs.h <<\EOF | |
3589 | #define uint64_t unsigned long long | |
3590 | EOF | |
3591 | ||
3592 | fi | |
3593 | ||
3594 | ||
3595 | if test $ac_cv_type_int8_t = no; then | |
3596 | HAVE_INT8_T=0 | |
3597 | else | |
3598 | HAVE_INT8_T=1 | |
3599 | fi | |
3600 | ||
3601 | ||
3602 | if test $ac_cv_type_uint8_t = no; then | |
3603 | HAVE_UINT8_T=0 | |
3604 | else | |
3605 | HAVE_UINT8_T=1 | |
3606 | fi | |
3607 | ||
3608 | ||
3609 | if test $ac_cv_type_int16_t = no; then | |
3610 | HAVE_INT16_T=0 | |
3611 | else | |
3612 | HAVE_INT16_T=1 | |
3613 | fi | |
3614 | ||
3615 | ||
3616 | if test $ac_cv_type_uint16_t = no; then | |
3617 | HAVE_UINT16_T=0 | |
3618 | else | |
3619 | HAVE_UINT16_T=1 | |
3620 | fi | |
3621 | ||
3622 | ||
3623 | if test $ac_cv_type_int32_t = no; then | |
3624 | HAVE_INT32_T=0 | |
3625 | else | |
3626 | HAVE_INT32_T=1 | |
3627 | fi | |
3628 | ||
3629 | ||
3630 | if test $ac_cv_type_uint32_t = no; then | |
3631 | HAVE_UINT32_T=0 | |
3632 | else | |
3633 | HAVE_UINT32_T=1 | |
3634 | fi | |
3635 | ||
3636 | ||
3637 | if test $ac_cv_type_int64_t = no; then | |
3638 | HAVE_INT64_T=0 | |
3639 | else | |
3640 | HAVE_INT64_T=1 | |
3641 | fi | |
3642 | ||
3643 | ||
3644 | if test $ac_cv_type_uint64_t = no; then | |
3645 | HAVE_UINT64_T=0 | |
3646 | else | |
3647 | HAVE_UINT64_T=1 | |
3648 | fi | |
3649 | ||
3650 | ||
3651 | ac_safe=`echo "wchar.h" | sed 'y%./+-%__p_%'` | |
3652 | echo $ac_n "checking for wchar.h""... $ac_c" 1>&6 | |
374ca955 | 3653 | echo "configure:3654: checking for wchar.h" >&5 |
b75a7d8f A |
3654 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
3655 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3656 | else | |
3657 | cat > conftest.$ac_ext <<EOF | |
374ca955 | 3658 | #line 3659 "configure" |
b75a7d8f A |
3659 | #include "confdefs.h" |
3660 | #include <wchar.h> | |
3661 | EOF | |
3662 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
374ca955 | 3663 | { (eval echo configure:3664: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
b75a7d8f A |
3664 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
3665 | if test -z "$ac_err"; then | |
3666 | rm -rf conftest* | |
3667 | eval "ac_cv_header_$ac_safe=yes" | |
3668 | else | |
3669 | echo "$ac_err" >&5 | |
3670 | echo "configure: failed program was:" >&5 | |
3671 | cat conftest.$ac_ext >&5 | |
3672 | rm -rf conftest* | |
3673 | eval "ac_cv_header_$ac_safe=no" | |
3674 | fi | |
3675 | rm -f conftest* | |
3676 | fi | |
3677 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
3678 | echo "$ac_t""yes" 1>&6 | |
3679 | : | |
3680 | else | |
3681 | echo "$ac_t""no" 1>&6 | |
3682 | fi | |
3683 | ||
3684 | if test "$ac_cv_header_wchar_h" = no | |
3685 | then | |
3686 | U_HAVE_WCHAR_H=0 | |
3687 | U_HAVE_WCSCPY=0 | |
3688 | else | |
3689 | cat >> confdefs.h <<\EOF | |
3690 | #define HAVE_WCHAR_H 1 | |
3691 | EOF | |
3692 | ||
3693 | U_HAVE_WCHAR_H=1 | |
3694 | ||
3695 | echo $ac_n "checking for library containing wcscpy""... $ac_c" 1>&6 | |
374ca955 | 3696 | echo "configure:3697: checking for library containing wcscpy" >&5 |
b75a7d8f A |
3697 | if eval "test \"`echo '$''{'ac_cv_search_wcscpy'+set}'`\" = set"; then |
3698 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3699 | else | |
3700 | ac_func_search_save_LIBS="$LIBS" | |
3701 | ac_cv_search_wcscpy="no" | |
3702 | cat > conftest.$ac_ext <<EOF | |
374ca955 | 3703 | #line 3704 "configure" |
b75a7d8f A |
3704 | #include "confdefs.h" |
3705 | /* Override any gcc2 internal prototype to avoid an error. */ | |
3706 | /* We use char because int might match the return type of a gcc2 | |
3707 | builtin and then its argument prototype would still apply. */ | |
3708 | char wcscpy(); | |
3709 | ||
3710 | int main() { | |
3711 | wcscpy() | |
3712 | ; return 0; } | |
3713 | EOF | |
374ca955 | 3714 | if { (eval echo configure:3715: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
b75a7d8f A |
3715 | rm -rf conftest* |
3716 | ac_cv_search_wcscpy="none required" | |
3717 | else | |
3718 | echo "configure: failed program was:" >&5 | |
3719 | cat conftest.$ac_ext >&5 | |
3720 | fi | |
3721 | rm -f conftest* | |
3722 | test "$ac_cv_search_wcscpy" = "no" && for i in wcs w; do | |
3723 | LIBS="-l$i $ac_func_search_save_LIBS" | |
3724 | cat > conftest.$ac_ext <<EOF | |
374ca955 | 3725 | #line 3726 "configure" |
b75a7d8f A |
3726 | #include "confdefs.h" |
3727 | /* Override any gcc2 internal prototype to avoid an error. */ | |
3728 | /* We use char because int might match the return type of a gcc2 | |
3729 | builtin and then its argument prototype would still apply. */ | |
3730 | char wcscpy(); | |
3731 | ||
3732 | int main() { | |
3733 | wcscpy() | |
3734 | ; return 0; } | |
3735 | EOF | |
374ca955 | 3736 | if { (eval echo configure:3737: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
b75a7d8f A |
3737 | rm -rf conftest* |
3738 | ac_cv_search_wcscpy="-l$i" | |
3739 | break | |
3740 | else | |
3741 | echo "configure: failed program was:" >&5 | |
3742 | cat conftest.$ac_ext >&5 | |
3743 | fi | |
3744 | rm -f conftest* | |
3745 | done | |
3746 | LIBS="$ac_func_search_save_LIBS" | |
3747 | fi | |
3748 | ||
3749 | echo "$ac_t""$ac_cv_search_wcscpy" 1>&6 | |
3750 | if test "$ac_cv_search_wcscpy" != "no"; then | |
3751 | test "$ac_cv_search_wcscpy" = "none required" || LIBS="$ac_cv_search_wcscpy $LIBS" | |
3752 | ||
3753 | else : | |
3754 | ||
3755 | fi | |
3756 | if test "$ac_cv_search_wcscpy" != no; then | |
3757 | U_HAVE_WCSCPY=1 | |
3758 | else | |
3759 | U_HAVE_WCSCPY=0 | |
3760 | fi | |
3761 | fi | |
3762 | ||
3763 | ||
3764 | ||
3765 | ac_default_sizeof_wchar_t=4 | |
3766 | echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6 | |
374ca955 | 3767 | echo "configure:3768: checking size of wchar_t" >&5 |
b75a7d8f A |
3768 | if eval "test \"`echo '$''{'ac_cv_sizeof_wchar_t'+set}'`\" = set"; then |
3769 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3770 | else | |
3771 | if test "$cross_compiling" = yes; then | |
3772 | ac_cv_sizeof_wchar_t=$ac_default_sizeof_wchar_t | |
3773 | else | |
3774 | cat > conftest.$ac_ext <<EOF | |
374ca955 | 3775 | #line 3776 "configure" |
b75a7d8f A |
3776 | #include "confdefs.h" |
3777 | #if STDC_HEADERS | |
3778 | #include <stddef.h> | |
3779 | #endif | |
3780 | #if HAVE_WCHAR_H | |
3781 | #include <string.h> | |
3782 | #include <wchar.h> | |
3783 | #endif | |
3784 | #include <stdio.h> | |
3785 | main() | |
3786 | { | |
3787 | FILE *f=fopen("conftestval", "w"); | |
3788 | if (!f) exit(1); | |
3789 | fprintf(f, "%d\n", sizeof(wchar_t)); | |
3790 | exit(0); | |
3791 | } | |
3792 | EOF | |
374ca955 | 3793 | if { (eval echo configure:3794: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
b75a7d8f A |
3794 | then |
3795 | ac_cv_sizeof_wchar_t=`cat conftestval` | |
3796 | else | |
3797 | echo "configure: failed program was:" >&5 | |
3798 | cat conftest.$ac_ext >&5 | |
3799 | rm -fr conftest* | |
3800 | ac_cv_sizeof_wchar_t=0 | |
3801 | fi | |
3802 | rm -fr conftest* | |
3803 | fi | |
3804 | ||
3805 | fi | |
3806 | echo "$ac_t""$ac_cv_sizeof_wchar_t" 1>&6 | |
3807 | cat >> confdefs.h <<EOF | |
3808 | #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t | |
3809 | EOF | |
3810 | ||
3811 | ||
3812 | U_SIZEOF_WCHAR_T=$ac_cv_sizeof_wchar_t | |
3813 | if test $U_SIZEOF_WCHAR_T = 0; then | |
3814 | if test $U_HAVE_WCHAR_H=1; then | |
3815 | { echo "configure: error: There is wchar.h but the size of wchar_t is 0" 1>&2; exit 1; } | |
3816 | fi | |
3817 | fi | |
3818 | ||
3819 | ||
374ca955 A |
3820 | #dnl Echo |
3821 | #ECHO_N=$ac_n | |
3822 | #ECHO_C=$ac_c | |
3823 | #AC_SUBST(ECHO_N) | |
3824 | #AC_SUBST(ECHO_C) | |
b75a7d8f A |
3825 | |
3826 | # Check whether --enable-extras or --disable-extras was given. | |
3827 | if test "${enable_extras+set}" = set; then | |
3828 | enableval="$enable_extras" | |
3829 | case "${enableval}" in | |
3830 | yes) extras=true ;; | |
3831 | no) extras=false ;; | |
3832 | *) { echo "configure: error: bad value ${enableval} for --enable-extras" 1>&2; exit 1; } ;; | |
3833 | esac | |
3834 | else | |
3835 | extras=true | |
3836 | fi | |
3837 | ||
3838 | ||
b75a7d8f A |
3839 | if test "$extras" = true; then |
3840 | EXTRAS_TRUE= | |
b75a7d8f A |
3841 | else |
3842 | EXTRAS_TRUE='#' | |
b75a7d8f A |
3843 | fi |
3844 | # Check whether --enable-extras or --disable-extras was given. | |
3845 | if test "${enable_extras+set}" = set; then | |
3846 | enableval="$enable_extras" | |
3847 | case "${enableval}" in | |
374ca955 A |
3848 | yes) icuio=true ;; |
3849 | no) icuio=false ;; | |
3850 | *) { echo "configure: error: bad value ${enableval} for --enable-icuio" 1>&2; exit 1; } ;; | |
b75a7d8f A |
3851 | esac |
3852 | else | |
374ca955 | 3853 | icuio=true |
b75a7d8f A |
3854 | fi |
3855 | ||
3856 | ||
374ca955 A |
3857 | if test "$icuio" = true; then |
3858 | ICUIO_TRUE= | |
b75a7d8f | 3859 | else |
374ca955 | 3860 | ICUIO_TRUE='#' |
b75a7d8f A |
3861 | fi |
3862 | ||
3863 | # Check whether --enable-layout or --disable-layout was given. | |
3864 | if test "${enable_layout+set}" = set; then | |
3865 | enableval="$enable_layout" | |
3866 | case "${enableval}" in | |
3867 | yes) layout=true ;; | |
3868 | no) layout=false ;; | |
3869 | *) { echo "configure: error: bad value ${enableval} for --enable-layout" 1>&2; exit 1; } ;; | |
3870 | esac | |
3871 | else | |
3872 | layout=true | |
3873 | fi | |
3874 | ||
3875 | ||
b75a7d8f A |
3876 | if test "$layout" = true; then |
3877 | LAYOUT_TRUE= | |
b75a7d8f A |
3878 | else |
3879 | LAYOUT_TRUE='#' | |
b75a7d8f A |
3880 | fi |
3881 | ||
3882 | # Check whether --with-data-packaging or --without-data-packaging was given. | |
3883 | if test "${with_data_packaging+set}" = set; then | |
3884 | withval="$with_data_packaging" | |
3885 | case "${withval}" in | |
3886 | files|archive|library) datapackaging=$withval ;; | |
3887 | auto) datapackaging=$withval ;; | |
3888 | common) datapackaging=archive ;; | |
3889 | dll) datapackaging=library ;; | |
374ca955 A |
3890 | static) datapackaging=static ;; |
3891 | *) { echo "configure: error: bad value ${withval} for --with-data-packaging" 1>&2; exit 1; } ;; | |
b75a7d8f A |
3892 | esac |
3893 | else | |
3894 | datapackaging= | |
3895 | fi | |
3896 | ||
3897 | ||
3898 | thesysconfdir=`eval echo $sysconfdir` | |
3899 | ||
3900 | thedatadir=`eval echo $datadir` | |
3901 | ||
3902 | thelibdir=`test "x$exec_prefix" = xNONE && exec_prefix="$prefix"; eval echo $libdir` | |
3903 | ||
374ca955 A |
3904 | pkgicudatadir=$datadir |
3905 | thepkgicudatadir=$thedatadir | |
b75a7d8f A |
3906 | |
3907 | ||
3908 | ||
3909 | ||
3910 | # Check whether --enable-mapped or --disable-mapped was given. | |
3911 | if test "${enable_mapped+set}" = set; then | |
3912 | enableval="$enable_mapped" | |
3913 | case "${enableval}" in | |
3914 | yes) mapped=archive ;; | |
3915 | no) mapped=library ;; | |
3916 | *) { echo "configure: error: bad value ${enableval} for --enable-mapped; use --with-data-packaging now" 1>&2; exit 1; } ;; | |
3917 | esac | |
3918 | else | |
3919 | mapped= | |
3920 | fi | |
3921 | ||
3922 | ||
3923 | if test x"$mapped" != x; then | |
3924 | case $mapped in | |
3925 | archive) | |
3926 | echo "configure: warning: use --with-data-packaging=archive instead of --enable-mapped" 1>&2 | |
3927 | ;; | |
3928 | library) | |
3929 | echo "configure: warning: use --with-data-packaging=library instead of --disable-mapped" 1>&2 | |
3930 | ;; | |
3931 | esac | |
3932 | if test x"$datapackaging" != x -a x"$mapped" != x"$datapackaging"; then | |
3933 | { echo "configure: error: conflicting values used for --with-data-packaging and deprecated --enable-mapped" 1>&2; exit 1; } | |
3934 | fi | |
3935 | datapackaging=$mapped | |
3936 | fi | |
3937 | ||
3938 | if test x"$datapackaging" = x -o x"$datapackaging" = xauto; then | |
3939 | datapackaging=library | |
3940 | fi | |
3941 | ||
3942 | case "$datapackaging" in | |
3943 | files) | |
3944 | DATA_PACKAGING_CPPFLAGS=-DUDATA_FILES | |
3945 | DATA_PACKAGING_MODE=files | |
3946 | ;; | |
3947 | archive) | |
3948 | DATA_PACKAGING_CPPFLAGS=-DUDATA_MAP | |
3949 | DATA_PACKAGING_MODE=common | |
3950 | ;; | |
3951 | library) | |
3952 | DATA_PACKAGING_CPPFLAGS=-DUDATA_DLL | |
3953 | DATA_PACKAGING_MODE=dll | |
3954 | ;; | |
3955 | esac | |
3956 | ||
3957 | ||
3958 | ||
3959 | echo $ac_n "checking for a library suffix to use""... $ac_c" 1>&6 | |
374ca955 | 3960 | echo "configure:3961: checking for a library suffix to use" >&5 |
b75a7d8f A |
3961 | # Check whether --with-library-suffix or --without-library-suffix was given. |
3962 | if test "${with_library_suffix+set}" = set; then | |
3963 | withval="$with_library_suffix" | |
3964 | ICULIBSUFFIX="${withval}" | |
3965 | else | |
3966 | ICULIBSUFFIX= | |
3967 | fi | |
3968 | ||
3969 | msg=$ICULIBSUFFIX | |
3970 | if test "$msg" = ""; then | |
3971 | msg=none | |
3972 | fi | |
3973 | echo "$ac_t""$msg" 1>&6 | |
3974 | ||
3975 | if test "$ICULIBSUFFIX" != "" | |
3976 | then | |
3977 | U_HAVE_LIB_SUFFIX=1 | |
3978 | ICULIBSUFFIXCNAME=`echo _$ICULIBSUFFIX | sed 's/[^A-Za-z0-9_]/_/g'` | |
3979 | else | |
3980 | U_HAVE_LIB_SUFFIX=0 | |
3981 | fi | |
3982 | ||
3983 | ||
3984 | ||
3985 | # Check whether --enable-tests or --disable-tests was given. | |
3986 | if test "${enable_tests+set}" = set; then | |
3987 | enableval="$enable_tests" | |
3988 | case "${enableval}" in | |
3989 | yes) tests=true ;; | |
3990 | no) tests=false ;; | |
3991 | *) { echo "configure: error: bad value ${enableval} for --enable-tests" 1>&2; exit 1; } ;; | |
3992 | esac | |
3993 | else | |
3994 | tests=true | |
3995 | fi | |
3996 | ||
3997 | ||
b75a7d8f A |
3998 | if test "$tests" = true; then |
3999 | TESTS_TRUE= | |
b75a7d8f A |
4000 | else |
4001 | TESTS_TRUE='#' | |
b75a7d8f A |
4002 | fi |
4003 | ||
4004 | # Check whether --enable-samples or --disable-samples was given. | |
4005 | if test "${enable_samples+set}" = set; then | |
4006 | enableval="$enable_samples" | |
4007 | case "${enableval}" in | |
4008 | yes) samples=true ;; | |
4009 | no) samples=false ;; | |
4010 | *) { echo "configure: error: bad value ${enableval} for --enable-samples" 1>&2; exit 1; } ;; | |
4011 | esac | |
4012 | else | |
4013 | samples=true | |
4014 | fi | |
4015 | ||
4016 | ||
b75a7d8f A |
4017 | if test "$samples" = true; then |
4018 | SAMPLES_TRUE= | |
b75a7d8f A |
4019 | else |
4020 | SAMPLES_TRUE='#' | |
b75a7d8f A |
4021 | fi |
4022 | ||
4023 | ICUDATA_CHAR=$U_ENDIAN_CHAR | |
4024 | ||
4025 | case "${host}" in | |
4026 | *-*-solaris*) platform=U_SOLARIS ;; | |
4027 | *-*-linux*) platform=U_LINUX ;; | |
4028 | *-*-*bsd*) platform=U_BSD ;; | |
374ca955 A |
4029 | *-*-aix*) platform=U_AIX ;; |
4030 | *-*-hpux*) platform=U_HPUX ;; | |
b75a7d8f A |
4031 | *-apple-darwin*|*-apple-rhapsody*) platform=U_DARWIN ;; |
4032 | *-*-cygwin*|*-*-mingw*) platform=U_CYGWIN ;; | |
4033 | *-*ibm-openedition*|*-*-os390*) platform=OS390 | |
4034 | ICUDATA_CHAR="e" ;; | |
4035 | *-*-os400*) platform=OS400 | |
4036 | ICUDATA_CHAR="e" ;; | |
4037 | *-*-nto*) platform=U_QNX ;; | |
4038 | *-dec-osf*) platform=U_OSF ;; | |
374ca955 A |
4039 | *-*-beos) platform=U_BEOS ;; |
4040 | *-*-irix*) platform=U_IRIX ;; | |
4041 | *-ncr-*) platform=U_MPRAS ;; | |
b75a7d8f A |
4042 | *-sequent-*) platform=PTX ;; |
4043 | *) platform=U_UNKNOWN_PLATFORM ;; | |
4044 | esac | |
4045 | ||
4046 | ||
4047 | platform_make_fragment_name="$icu_cv_host_frag" | |
4048 | platform_make_fragment='$(top_srcdir)/config/'"$platform_make_fragment_name" | |
4049 | ||
4050 | ||
4051 | ||
4052 | case "${host}" in | |
4053 | *-*-solaris*) ld_rpath_suf=":" ;; | |
4054 | *-*-linux*) ld_rpath_suf=" " ;; | |
4055 | *-*-*bsd*) ld_rpath_suf=" " ;; | |
4056 | *-*-aix*) ld_rpath_suf="" ;; | |
4057 | *-*-hpux*) ld_rpath_suf=":" ;; | |
4058 | *-*ibm-openedition*|*-*-os390*) ld_rpath_suf="" ;; | |
4059 | *-*-os400*) ld_rpath_suf=" " ;; | |
4060 | *-sequent-*) ld_rpath_suf="" ;; | |
4061 | *-*-irix*) ld_rpath_suf=" " ;; | |
4062 | *) ld_rpath_suf="" ;; | |
4063 | esac | |
4064 | ||
4065 | ||
4066 | case "${host}" in | |
4067 | *-*-hpux*) | |
374ca955 | 4068 | if test "${icu_cv_host_frag}" = "mh-hpux-cc"; then |
b75a7d8f A |
4069 | for file in samples/date/date \ |
4070 | samples/cal/cal test/cintltst/cintltst \ | |
4071 | tools/makeconv/makeconv tools/genrb/genrb \ | |
4072 | tools/genrb/derb tools/genccode/genccode \ | |
4073 | tools/gencmn/gencmn tools/gencmn/decmn \ | |
4074 | tools/gencnval/gencnval tools/gennorm/gennorm \ | |
4075 | tools/gennames/gennames tools/gentest/gentest \ | |
4076 | tools/pkgdata/pkgdata tools/genprops/genprops \ | |
374ca955 A |
4077 | tools/gencase/gencase \ |
4078 | tools/gensprep/gensprep | |
b75a7d8f A |
4079 | do |
4080 | if test -f $file.c; then | |
4081 | mv $file.c $file.cpp | |
4082 | else | |
4083 | echo "# $file.c does not exist or is already renamed [warning]" | |
4084 | fi | |
4085 | done | |
4086 | fi | |
4087 | ;; | |
4088 | esac | |
4089 | ||
4090 | if test "${FORCE_LIBS}" != ""; then | |
4091 | echo " *** Overriding automatically chosen LIBS=$LIBS, using instead FORCE_LIBS=${FORCE_LIBS}" 1>&6 | |
4092 | LIBS=${FORCE_LIBS} | |
4093 | fi | |
4094 | ||
4095 | ||
4096 | if test "${AIX_SHLIB}" != ""; then | |
4097 | echo " *** setting AIX_SHLIB (AIX only) to ${AIX_SHLIB}]" 1>&6 | |
4098 | else | |
4099 | AIX_SHLIB=makeC++SharedLib_r | |
4100 | fi | |
4101 | ||
4102 | ||
4103 | ||
4104 | ||
b75a7d8f A |
4105 | |
4106 | if test $ICU_USE_THREADS -ne 0 | |
4107 | then | |
4108 | CPPFLAGS="$CPPFLAGS \$(THREADSCPPFLAGS)" | |
4109 | CFLAGS="$CFLAGS \$(THREADSCFLAGS)" | |
4110 | CXXFLAGS="$CXXFLAGS \$(THREADSCXXFLAGS)" | |
4111 | fi | |
4112 | ||
b75a7d8f A |
4113 | trap '' 1 2 15 |
4114 | cat > confcache <<\EOF | |
4115 | # This file is a shell script that caches the results of configure | |
4116 | # tests run on this system so they can be shared between configure | |
4117 | # scripts and configure runs. It is not useful on other systems. | |
4118 | # If it contains results you don't want to keep, you may remove or edit it. | |
4119 | # | |
4120 | # By default, configure uses ./config.cache as the cache file, | |
4121 | # creating it if it does not exist already. You can give configure | |
4122 | # the --cache-file=FILE option to use a different cache file; that is | |
4123 | # what configure does when it calls configure scripts in | |
4124 | # subdirectories, so they share the cache. | |
4125 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
4126 | # config.status only pays attention to the cache file if you give it the | |
4127 | # --recheck option to rerun configure. | |
4128 | # | |
4129 | EOF | |
4130 | # The following way of writing the cache mishandles newlines in values, | |
4131 | # but we know of no workaround that is simple, portable, and efficient. | |
4132 | # So, don't put newlines in cache variables' values. | |
4133 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
4134 | # and sets the high bit in the cache file unless we assign to the vars. | |
4135 | (set) 2>&1 | | |
4136 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
4137 | *ac_space=\ *) | |
4138 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
4139 | # turns \\\\ into \\, and sed turns \\ into \). | |
4140 | sed -n \ | |
4141 | -e "s/'/'\\\\''/g" \ | |
4142 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
4143 | ;; | |
4144 | *) | |
4145 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
4146 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
4147 | ;; | |
4148 | esac >> confcache | |
4149 | if cmp -s $cache_file confcache; then | |
4150 | : | |
4151 | else | |
4152 | if test -w $cache_file; then | |
4153 | echo "updating cache $cache_file" | |
4154 | cat confcache > $cache_file | |
4155 | else | |
4156 | echo "not updating unwritable cache $cache_file" | |
4157 | fi | |
4158 | fi | |
4159 | rm -f confcache | |
4160 | ||
4161 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 | |
4162 | ||
4163 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
4164 | # Let make expand exec_prefix. | |
4165 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
4166 | ||
4167 | # Any assignment to VPATH causes Sun make to only execute | |
4168 | # the first set of double-colon rules, so remove it if not needed. | |
4169 | # If there is a colon in the path, we need to keep it. | |
4170 | if test "x$srcdir" = x.; then | |
4171 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' | |
4172 | fi | |
4173 | ||
4174 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 | |
4175 | ||
4176 | DEFS=-DHAVE_CONFIG_H | |
4177 | ||
4178 | # Without the "./", some shells look in PATH for config.status. | |
4179 | : ${CONFIG_STATUS=./config.status} | |
4180 | ||
4181 | echo creating $CONFIG_STATUS | |
4182 | rm -f $CONFIG_STATUS | |
4183 | cat > $CONFIG_STATUS <<EOF | |
4184 | #! /bin/sh | |
4185 | # Generated automatically by configure. | |
4186 | # Run this file to recreate the current configuration. | |
4187 | # This directory was configured as follows, | |
4188 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
4189 | # | |
4190 | # $0 $ac_configure_args | |
4191 | # | |
4192 | # Compiler output produced by configure, useful for debugging | |
4193 | # configure, is in ./config.log if it exists. | |
4194 | ||
4195 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" | |
4196 | for ac_option | |
4197 | do | |
4198 | case "\$ac_option" in | |
4199 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
4200 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" | |
4201 | exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; | |
4202 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v) | |
4203 | echo "$CONFIG_STATUS generated by autoconf version 2.13" | |
4204 | exit 0 ;; | |
4205 | -help | --help | --hel | --he | --h) | |
4206 | echo "\$ac_cs_usage"; exit 0 ;; | |
4207 | *) echo "\$ac_cs_usage"; exit 1 ;; | |
4208 | esac | |
4209 | done | |
4210 | ||
4211 | ac_given_srcdir=$srcdir | |
4212 | ac_given_INSTALL="$INSTALL" | |
4213 | ||
374ca955 | 4214 | trap 'rm -fr `echo "icudefs.mk \ |
b75a7d8f | 4215 | Makefile \ |
374ca955 A |
4216 | data/icupkg.inc \ |
4217 | config/Makefile.inc \ | |
4218 | data/Makefile \ | |
4219 | stubdata/Makefile \ | |
4220 | common/Makefile \ | |
4221 | i18n/Makefile \ | |
b75a7d8f A |
4222 | layout/Makefile \ |
4223 | layoutex/Makefile \ | |
374ca955 A |
4224 | io/Makefile \ |
4225 | extra/Makefile \ | |
4226 | extra/uconv/Makefile extra/scrptrun/Makefile \ | |
4227 | tools/Makefile tools/ctestfw/Makefile \ | |
4228 | tools/makeconv/Makefile \ | |
4229 | tools/genrb/Makefile \ | |
4230 | tools/genuca/Makefile \ | |
4231 | tools/genccode/Makefile \ | |
4232 | tools/gencmn/Makefile \ | |
4233 | tools/gencnval/Makefile \ | |
4234 | tools/gennames/Makefile \ | |
b75a7d8f A |
4235 | tools/gentest/Makefile \ |
4236 | tools/gennorm/Makefile \ | |
4237 | tools/genprops/Makefile \ | |
374ca955 | 4238 | tools/gencase/Makefile \ |
b75a7d8f A |
4239 | tools/genpname/Makefile \ |
4240 | tools/genbrk/Makefile \ | |
374ca955 A |
4241 | tools/gensprep/Makefile \ |
4242 | tools/icuswap/Makefile \ | |
4243 | tools/pkgdata/Makefile \ | |
4244 | tools/toolutil/Makefile \ | |
b75a7d8f | 4245 | tools/dumpce/Makefile \ |
374ca955 A |
4246 | test/Makefile \ |
4247 | test/testdata/Makefile \ | |
4248 | test/testdata/pkgdata.inc \ | |
4249 | test/hdrtst/Makefile \ | |
b75a7d8f A |
4250 | test/intltest/Makefile \ |
4251 | test/cintltst/Makefile \ | |
4252 | test/iotest/Makefile \ | |
b75a7d8f | 4253 | test/thaitest/Makefile \ |
374ca955 | 4254 | test/testmap/Makefile \ |
b75a7d8f A |
4255 | test/letest/Makefile \ |
4256 | test/threadtest/Makefile \ | |
4257 | samples/Makefile samples/date/Makefile \ | |
4258 | samples/cal/Makefile samples/layout/Makefile \ | |
4259 | common/unicode/platform.h common/icucfg.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 | |
4260 | EOF | |
4261 | cat >> $CONFIG_STATUS <<EOF | |
4262 | ||
4263 | # Protect against being on the right side of a sed subst in config.status. | |
4264 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; | |
4265 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF | |
4266 | $ac_vpsub | |
4267 | $extrasub | |
4268 | s%@SHELL@%$SHELL%g | |
4269 | s%@CFLAGS@%$CFLAGS%g | |
4270 | s%@CPPFLAGS@%$CPPFLAGS%g | |
4271 | s%@CXXFLAGS@%$CXXFLAGS%g | |
4272 | s%@FFLAGS@%$FFLAGS%g | |
4273 | s%@DEFS@%$DEFS%g | |
4274 | s%@LDFLAGS@%$LDFLAGS%g | |
4275 | s%@LIBS@%$LIBS%g | |
4276 | s%@exec_prefix@%$exec_prefix%g | |
4277 | s%@prefix@%$prefix%g | |
4278 | s%@program_transform_name@%$program_transform_name%g | |
4279 | s%@bindir@%$bindir%g | |
4280 | s%@sbindir@%$sbindir%g | |
4281 | s%@libexecdir@%$libexecdir%g | |
4282 | s%@datadir@%$datadir%g | |
4283 | s%@sysconfdir@%$sysconfdir%g | |
4284 | s%@sharedstatedir@%$sharedstatedir%g | |
4285 | s%@localstatedir@%$localstatedir%g | |
4286 | s%@libdir@%$libdir%g | |
4287 | s%@includedir@%$includedir%g | |
4288 | s%@oldincludedir@%$oldincludedir%g | |
4289 | s%@infodir@%$infodir%g | |
4290 | s%@mandir@%$mandir%g | |
4291 | s%@PACKAGE@%$PACKAGE%g | |
4292 | s%@VERSION@%$VERSION%g | |
4293 | s%@LIB_VERSION@%$LIB_VERSION%g | |
4294 | s%@LIB_VERSION_MAJOR@%$LIB_VERSION_MAJOR%g | |
4295 | s%@UNICODE_VERSION@%$UNICODE_VERSION%g | |
4296 | s%@CC@%$CC%g | |
4297 | s%@CXX@%$CXX%g | |
4298 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g | |
4299 | s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g | |
4300 | s%@INSTALL_DATA@%$INSTALL_DATA%g | |
b75a7d8f A |
4301 | s%@STRIP@%$STRIP%g |
4302 | s%@U_MAKE@%$U_MAKE%g | |
4303 | s%@DOXYGEN@%$DOXYGEN%g | |
4304 | s%@host@%$host%g | |
4305 | s%@host_alias@%$host_alias%g | |
4306 | s%@host_cpu@%$host_cpu%g | |
4307 | s%@host_vendor@%$host_vendor%g | |
4308 | s%@host_os@%$host_os%g | |
4309 | s%@EXEEXT@%$EXEEXT%g | |
4310 | s%@ARFLAGS@%$ARFLAGS%g | |
4311 | s%@COMPILE_LINK_ENVVAR@%$COMPILE_LINK_ENVVAR%g | |
4312 | s%@LIB_M@%$LIB_M%g | |
b75a7d8f A |
4313 | s%@ENABLE_SHARED@%$ENABLE_SHARED%g |
4314 | s%@ENABLE_STATIC@%$ENABLE_STATIC%g | |
374ca955 A |
4315 | s%@ENABLE_DEBUG@%$ENABLE_DEBUG%g |
4316 | s%@ENABLE_RELEASE@%$ENABLE_RELEASE%g | |
b75a7d8f A |
4317 | s%@RANLIB@%$RANLIB%g |
4318 | s%@AR@%$AR%g | |
4319 | s%@U_DISABLE_RENAMING@%$U_DISABLE_RENAMING%g | |
374ca955 | 4320 | s%@U_ENABLE_TRACING@%$U_ENABLE_TRACING%g |
b75a7d8f A |
4321 | s%@ENABLE_RPATH@%$ENABLE_RPATH%g |
4322 | s%@U_INLINE@%$U_INLINE%g | |
4323 | s%@THREADS_TRUE@%$THREADS_TRUE%g | |
b75a7d8f A |
4324 | s%@ICU_USE_THREADS@%$ICU_USE_THREADS%g |
4325 | s%@HAVE_MMAP@%$HAVE_MMAP%g | |
374ca955 | 4326 | s%@GENCCODE_ASSEMBLY@%$GENCCODE_ASSEMBLY%g |
b75a7d8f A |
4327 | s%@CPP@%$CPP%g |
4328 | s%@U_HAVE_INTTYPES_H@%$U_HAVE_INTTYPES_H%g | |
4329 | s%@CXXCPP@%$CXXCPP%g | |
4330 | s%@U_IOSTREAM_SOURCE@%$U_IOSTREAM_SOURCE%g | |
4331 | s%@U_IS_BIG_ENDIAN@%$U_IS_BIG_ENDIAN%g | |
4332 | s%@U_HAVE_NL_LANGINFO@%$U_HAVE_NL_LANGINFO%g | |
4333 | s%@U_HAVE_NL_LANGINFO_CODESET@%$U_HAVE_NL_LANGINFO_CODESET%g | |
4334 | s%@U_NL_LANGINFO_CODESET@%$U_NL_LANGINFO_CODESET%g | |
4335 | s%@U_HAVE_NAMESPACE@%$U_HAVE_NAMESPACE%g | |
4336 | s%@U_OVERRIDE_CXX_ALLOCATION@%$U_OVERRIDE_CXX_ALLOCATION%g | |
4337 | s%@U_HAVE_PLACEMENT_NEW@%$U_HAVE_PLACEMENT_NEW%g | |
4338 | s%@U_HAVE_POPEN@%$U_HAVE_POPEN%g | |
374ca955 | 4339 | s%@U_HAVE_TZSET@%$U_HAVE_TZSET%g |
b75a7d8f | 4340 | s%@U_TZSET@%$U_TZSET%g |
374ca955 | 4341 | s%@U_HAVE_TZNAME@%$U_HAVE_TZNAME%g |
b75a7d8f A |
4342 | s%@U_TZNAME@%$U_TZNAME%g |
4343 | s%@U_HAVE_TIMEZONE@%$U_HAVE_TIMEZONE%g | |
4344 | s%@U_TIMEZONE@%$U_TIMEZONE%g | |
4345 | s%@HAVE_INT8_T@%$HAVE_INT8_T%g | |
4346 | s%@HAVE_UINT8_T@%$HAVE_UINT8_T%g | |
4347 | s%@HAVE_INT16_T@%$HAVE_INT16_T%g | |
4348 | s%@HAVE_UINT16_T@%$HAVE_UINT16_T%g | |
4349 | s%@HAVE_INT32_T@%$HAVE_INT32_T%g | |
4350 | s%@HAVE_UINT32_T@%$HAVE_UINT32_T%g | |
4351 | s%@HAVE_INT64_T@%$HAVE_INT64_T%g | |
4352 | s%@HAVE_UINT64_T@%$HAVE_UINT64_T%g | |
4353 | s%@U_HAVE_WCHAR_H@%$U_HAVE_WCHAR_H%g | |
4354 | s%@U_HAVE_WCSCPY@%$U_HAVE_WCSCPY%g | |
4355 | s%@U_SIZEOF_WCHAR_T@%$U_SIZEOF_WCHAR_T%g | |
b75a7d8f | 4356 | s%@EXTRAS_TRUE@%$EXTRAS_TRUE%g |
374ca955 | 4357 | s%@ICUIO_TRUE@%$ICUIO_TRUE%g |
b75a7d8f | 4358 | s%@LAYOUT_TRUE@%$LAYOUT_TRUE%g |
b75a7d8f A |
4359 | s%@thesysconfdir@%$thesysconfdir%g |
4360 | s%@thedatadir@%$thedatadir%g | |
4361 | s%@thelibdir@%$thelibdir%g | |
4362 | s%@pkgicudatadir@%$pkgicudatadir%g | |
4363 | s%@thepkgicudatadir@%$thepkgicudatadir%g | |
4364 | s%@DATA_PACKAGING_CPPFLAGS@%$DATA_PACKAGING_CPPFLAGS%g | |
4365 | s%@DATA_PACKAGING_MODE@%$DATA_PACKAGING_MODE%g | |
4366 | s%@ICULIBSUFFIX@%$ICULIBSUFFIX%g | |
4367 | s%@U_HAVE_LIB_SUFFIX@%$U_HAVE_LIB_SUFFIX%g | |
4368 | s%@ICULIBSUFFIXCNAME@%$ICULIBSUFFIXCNAME%g | |
4369 | s%@TESTS_TRUE@%$TESTS_TRUE%g | |
b75a7d8f | 4370 | s%@SAMPLES_TRUE@%$SAMPLES_TRUE%g |
b75a7d8f A |
4371 | s%@ICUDATA_CHAR@%$ICUDATA_CHAR%g |
4372 | s%@platform@%$platform%g | |
4373 | s%@platform_make_fragment_name@%$platform_make_fragment_name%g | |
4374 | s%@platform_make_fragment@%$platform_make_fragment%g | |
4375 | s%@ld_rpath_suf@%$ld_rpath_suf%g | |
4376 | s%@AIX_SHLIB@%$AIX_SHLIB%g | |
4377 | ||
4378 | CEOF | |
4379 | EOF | |
4380 | ||
4381 | cat >> $CONFIG_STATUS <<\EOF | |
4382 | ||
4383 | # Split the substitutions into bite-sized pieces for seds with | |
4384 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
4385 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. | |
4386 | ac_file=1 # Number of current file. | |
4387 | ac_beg=1 # First line for current file. | |
4388 | ac_end=$ac_max_sed_cmds # Line after last line for current file. | |
4389 | ac_more_lines=: | |
4390 | ac_sed_cmds="" | |
4391 | while $ac_more_lines; do | |
4392 | if test $ac_beg -gt 1; then | |
4393 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file | |
4394 | else | |
4395 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file | |
4396 | fi | |
4397 | if test ! -s conftest.s$ac_file; then | |
4398 | ac_more_lines=false | |
4399 | rm -f conftest.s$ac_file | |
4400 | else | |
4401 | if test -z "$ac_sed_cmds"; then | |
4402 | ac_sed_cmds="sed -f conftest.s$ac_file" | |
4403 | else | |
4404 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" | |
4405 | fi | |
4406 | ac_file=`expr $ac_file + 1` | |
4407 | ac_beg=$ac_end | |
4408 | ac_end=`expr $ac_end + $ac_max_sed_cmds` | |
4409 | fi | |
4410 | done | |
4411 | if test -z "$ac_sed_cmds"; then | |
4412 | ac_sed_cmds=cat | |
4413 | fi | |
4414 | EOF | |
4415 | ||
4416 | cat >> $CONFIG_STATUS <<EOF | |
4417 | ||
374ca955 | 4418 | CONFIG_FILES=\${CONFIG_FILES-"icudefs.mk \ |
b75a7d8f | 4419 | Makefile \ |
374ca955 A |
4420 | data/icupkg.inc \ |
4421 | config/Makefile.inc \ | |
4422 | data/Makefile \ | |
4423 | stubdata/Makefile \ | |
4424 | common/Makefile \ | |
4425 | i18n/Makefile \ | |
b75a7d8f A |
4426 | layout/Makefile \ |
4427 | layoutex/Makefile \ | |
374ca955 A |
4428 | io/Makefile \ |
4429 | extra/Makefile \ | |
4430 | extra/uconv/Makefile extra/scrptrun/Makefile \ | |
4431 | tools/Makefile tools/ctestfw/Makefile \ | |
4432 | tools/makeconv/Makefile \ | |
4433 | tools/genrb/Makefile \ | |
4434 | tools/genuca/Makefile \ | |
4435 | tools/genccode/Makefile \ | |
4436 | tools/gencmn/Makefile \ | |
4437 | tools/gencnval/Makefile \ | |
4438 | tools/gennames/Makefile \ | |
b75a7d8f A |
4439 | tools/gentest/Makefile \ |
4440 | tools/gennorm/Makefile \ | |
4441 | tools/genprops/Makefile \ | |
374ca955 | 4442 | tools/gencase/Makefile \ |
b75a7d8f A |
4443 | tools/genpname/Makefile \ |
4444 | tools/genbrk/Makefile \ | |
374ca955 A |
4445 | tools/gensprep/Makefile \ |
4446 | tools/icuswap/Makefile \ | |
4447 | tools/pkgdata/Makefile \ | |
4448 | tools/toolutil/Makefile \ | |
b75a7d8f | 4449 | tools/dumpce/Makefile \ |
374ca955 A |
4450 | test/Makefile \ |
4451 | test/testdata/Makefile \ | |
4452 | test/testdata/pkgdata.inc \ | |
4453 | test/hdrtst/Makefile \ | |
b75a7d8f A |
4454 | test/intltest/Makefile \ |
4455 | test/cintltst/Makefile \ | |
4456 | test/iotest/Makefile \ | |
b75a7d8f A |
4457 | test/thaitest/Makefile \ |
4458 | test/testmap/Makefile \ | |
4459 | test/letest/Makefile \ | |
4460 | test/threadtest/Makefile \ | |
4461 | samples/Makefile samples/date/Makefile \ | |
4462 | samples/cal/Makefile samples/layout/Makefile \ | |
4463 | common/unicode/platform.h"} | |
4464 | EOF | |
4465 | cat >> $CONFIG_STATUS <<\EOF | |
4466 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then | |
4467 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
4468 | case "$ac_file" in | |
4469 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
4470 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
4471 | *) ac_file_in="${ac_file}.in" ;; | |
4472 | esac | |
4473 | ||
4474 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. | |
4475 | ||
4476 | # Remove last slash and all that follows it. Not all systems have dirname. | |
4477 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
4478 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | |
4479 | # The file is in a subdirectory. | |
4480 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
4481 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" | |
4482 | # A "../" for each directory in $ac_dir_suffix. | |
4483 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` | |
4484 | else | |
4485 | ac_dir_suffix= ac_dots= | |
4486 | fi | |
4487 | ||
4488 | case "$ac_given_srcdir" in | |
4489 | .) srcdir=. | |
4490 | if test -z "$ac_dots"; then top_srcdir=. | |
4491 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; | |
4492 | /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; | |
4493 | *) # Relative path. | |
4494 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" | |
4495 | top_srcdir="$ac_dots$ac_given_srcdir" ;; | |
4496 | esac | |
4497 | ||
4498 | case "$ac_given_INSTALL" in | |
4499 | [/$]*) INSTALL="$ac_given_INSTALL" ;; | |
4500 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; | |
4501 | esac | |
4502 | ||
4503 | echo creating "$ac_file" | |
4504 | rm -f "$ac_file" | |
4505 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." | |
4506 | case "$ac_file" in | |
4507 | *Makefile*) ac_comsub="1i\\ | |
4508 | # $configure_input" ;; | |
4509 | *) ac_comsub= ;; | |
4510 | esac | |
4511 | ||
4512 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` | |
4513 | sed -e "$ac_comsub | |
4514 | s%@configure_input@%$configure_input%g | |
4515 | s%@srcdir@%$srcdir%g | |
4516 | s%@top_srcdir@%$top_srcdir%g | |
4517 | s%@INSTALL@%$INSTALL%g | |
4518 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file | |
4519 | fi; done | |
4520 | rm -f conftest.s* | |
4521 | ||
4522 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
4523 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
4524 | # | |
4525 | # ac_d sets the value in "#define NAME VALUE" lines. | |
4526 | ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' | |
4527 | ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' | |
4528 | ac_dC='\3' | |
4529 | ac_dD='%g' | |
4530 | # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". | |
4531 | ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
4532 | ac_uB='\([ ]\)%\1#\2define\3' | |
4533 | ac_uC=' ' | |
4534 | ac_uD='\4%g' | |
4535 | # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
4536 | ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
4537 | ac_eB='$%\1#\2define\3' | |
4538 | ac_eC=' ' | |
4539 | ac_eD='%g' | |
4540 | ||
4541 | if test "${CONFIG_HEADERS+set}" != set; then | |
4542 | EOF | |
4543 | cat >> $CONFIG_STATUS <<EOF | |
4544 | CONFIG_HEADERS="common/icucfg.h" | |
4545 | EOF | |
4546 | cat >> $CONFIG_STATUS <<\EOF | |
4547 | fi | |
4548 | for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then | |
4549 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
4550 | case "$ac_file" in | |
4551 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
4552 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
4553 | *) ac_file_in="${ac_file}.in" ;; | |
4554 | esac | |
4555 | ||
4556 | echo creating $ac_file | |
4557 | ||
4558 | rm -f conftest.frag conftest.in conftest.out | |
4559 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` | |
4560 | cat $ac_file_inputs > conftest.in | |
4561 | ||
4562 | EOF | |
4563 | ||
4564 | # Transform confdefs.h into a sed script conftest.vals that substitutes | |
4565 | # the proper values into config.h.in to produce config.h. And first: | |
4566 | # Protect against being on the right side of a sed subst in config.status. | |
4567 | # Protect against being in an unquoted here document in config.status. | |
4568 | rm -f conftest.vals | |
4569 | cat > conftest.hdr <<\EOF | |
4570 | s/[\\&%]/\\&/g | |
4571 | s%[\\$`]%\\&%g | |
4572 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp | |
4573 | s%ac_d%ac_u%gp | |
4574 | s%ac_u%ac_e%gp | |
4575 | EOF | |
4576 | sed -n -f conftest.hdr confdefs.h > conftest.vals | |
4577 | rm -f conftest.hdr | |
4578 | ||
4579 | # This sed command replaces #undef with comments. This is necessary, for | |
4580 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
4581 | # on some systems where configure will not decide to define it. | |
4582 | cat >> conftest.vals <<\EOF | |
4583 | s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% | |
4584 | EOF | |
4585 | ||
4586 | # Break up conftest.vals because some shells have a limit on | |
4587 | # the size of here documents, and old seds have small limits too. | |
4588 | ||
4589 | rm -f conftest.tail | |
4590 | while : | |
4591 | do | |
4592 | ac_lines=`grep -c . conftest.vals` | |
4593 | # grep -c gives empty output for an empty file on some AIX systems. | |
4594 | if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi | |
4595 | # Write a limited-size here document to conftest.frag. | |
4596 | echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS | |
4597 | sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS | |
4598 | echo 'CEOF | |
4599 | sed -f conftest.frag conftest.in > conftest.out | |
4600 | rm -f conftest.in | |
4601 | mv conftest.out conftest.in | |
4602 | ' >> $CONFIG_STATUS | |
4603 | sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail | |
4604 | rm -f conftest.vals | |
4605 | mv conftest.tail conftest.vals | |
4606 | done | |
4607 | rm -f conftest.vals | |
4608 | ||
4609 | cat >> $CONFIG_STATUS <<\EOF | |
4610 | rm -f conftest.frag conftest.h | |
4611 | echo "/* $ac_file. Generated automatically by configure. */" > conftest.h | |
4612 | cat conftest.in >> conftest.h | |
4613 | rm -f conftest.in | |
4614 | if cmp -s $ac_file conftest.h 2>/dev/null; then | |
4615 | echo "$ac_file is unchanged" | |
4616 | rm -f conftest.h | |
4617 | else | |
4618 | # Remove last slash and all that follows it. Not all systems have dirname. | |
4619 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
4620 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | |
4621 | # The file is in a subdirectory. | |
4622 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
4623 | fi | |
4624 | rm -f $ac_file | |
4625 | mv conftest.h $ac_file | |
4626 | fi | |
4627 | fi; done | |
4628 | ||
4629 | EOF | |
4630 | cat >> $CONFIG_STATUS <<EOF | |
4631 | ||
4632 | EOF | |
4633 | cat >> $CONFIG_STATUS <<\EOF | |
4634 | ||
4635 | exit 0 | |
4636 | EOF | |
4637 | chmod +x $CONFIG_STATUS | |
4638 | rm -fr confdefs* $ac_clean_files | |
4639 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 | |
4640 | ||
4641 | ||
4642 | if test $ICU_USE_THREADS = 0; then | |
4643 | echo " *** Note: configuring the ICU without pthread support or testing. If this isn't what you want, then run configure with --enable-threads=yes or check the messages above to see why we couldn't find pthread_create()" 1>&6 | |
4644 | fi | |
4645 | ||
4646 | echo "You must use $U_MAKE to build ICU." |