]>
Commit | Line | Data |
---|---|---|
a848cd7e | 1 | #! /bin/sh |
a12bd55b | 2 | # From configure.in Id. |
a848cd7e | 3 | # Guess values for system-dependent variables and create Makefiles. |
f3239c21 | 4 | # Generated by GNU Autoconf 2.61 for wxWidgets 2.9.1. |
a848cd7e | 5 | # |
77ffb593 | 6 | # Report bugs to <wx-dev@lists.wxwidgets.org>. |
a848cd7e | 7 | # |
47964710 | 8 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
d589327a | 9 | # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. |
a848cd7e SC |
10 | # This configure script is free software; the Free Software Foundation |
11 | # gives unlimited permission to copy, distribute and modify it. | |
12 | ## --------------------- ## | |
13 | ## M4sh Initialization. ## | |
14 | ## --------------------- ## | |
15 | ||
47964710 VS |
16 | # Be more Bourne compatible |
17 | DUALCASE=1; export DUALCASE # for MKS sh | |
a848cd7e SC |
18 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
19 | emulate sh | |
20 | NULLCMD=: | |
d589327a | 21 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
a848cd7e SC |
22 | # is contrary to our usage. Disable this feature. |
23 | alias -g '${1+"$@"}'='"$@"' | |
47964710 VS |
24 | setopt NO_GLOB_SUBST |
25 | else | |
26 | case `(set -o) 2>/dev/null` in | |
27 | *posix*) set -o posix ;; | |
28 | esac | |
29 | ||
30 | fi | |
31 | ||
32 | ||
33 | ||
34 | ||
35 | # PATH needs CR | |
36 | # Avoid depending upon Character Ranges. | |
37 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
38 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
39 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
40 | as_cr_digits='0123456789' | |
41 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
42 | ||
aa113d87 FM |
43 | # The user is always right. |
44 | if test "${PATH_SEPARATOR+set}" != set; then | |
d589327a VZ |
45 | echo "#! /bin/sh" >conf$$.sh |
46 | echo "exit 0" >>conf$$.sh | |
47 | chmod +x conf$$.sh | |
48 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
49 | PATH_SEPARATOR=';' | |
50 | else | |
51 | PATH_SEPARATOR=: | |
52 | fi | |
53 | rm -f conf$$.sh | |
7fd3acaf RD |
54 | fi |
55 | ||
a848cd7e | 56 | # Support unset when possible. |
ac1cb8d3 | 57 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
a848cd7e SC |
58 | as_unset=unset |
59 | else | |
60 | as_unset=false | |
61 | fi | |
62 | ||
63 | ||
47964710 VS |
64 | # IFS |
65 | # We need space, tab and new line, in precisely that order. Quoting is | |
66 | # there to prevent editors from complaining about space-tab. | |
67 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
68 | # splitting by setting IFS to empty value.) | |
d589327a VZ |
69 | as_nl=' |
70 | ' | |
47964710 VS |
71 | IFS=" "" $as_nl" |
72 | ||
73 | # Find who we are. Look in the path if we contain no directory separator. | |
74 | case $0 in | |
75 | *[\\/]* ) as_myself=$0 ;; | |
76 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
77 | for as_dir in $PATH | |
78 | do | |
79 | IFS=$as_save_IFS | |
80 | test -z "$as_dir" && as_dir=. | |
81 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
82 | done | |
83 | IFS=$as_save_IFS | |
84 | ||
85 | ;; | |
86 | esac | |
87 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
88 | # in which case we are not to be found in the path. | |
89 | if test "x$as_myself" = x; then | |
90 | as_myself=$0 | |
91 | fi | |
92 | if test ! -f "$as_myself"; then | |
d589327a | 93 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
47964710 VS |
94 | { (exit 1); exit 1; } |
95 | fi | |
96 | ||
a848cd7e | 97 | # Work around bugs in pre-3.0 UWIN ksh. |
47964710 VS |
98 | for as_var in ENV MAIL MAILPATH |
99 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
100 | done | |
a848cd7e SC |
101 | PS1='$ ' |
102 | PS2='> ' | |
103 | PS4='+ ' | |
104 | ||
105 | # NLS nuisances. | |
d589327a VZ |
106 | for as_var in \ |
107 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
108 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
109 | LC_TELEPHONE LC_TIME | |
110 | do | |
111 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then | |
112 | eval $as_var=C; export $as_var | |
113 | else | |
114 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
115 | fi | |
116 | done | |
a848cd7e SC |
117 | |
118 | # Required to use basename. | |
47964710 VS |
119 | if expr a : '\(a\)' >/dev/null 2>&1 && |
120 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
a848cd7e SC |
121 | as_expr=expr |
122 | else | |
123 | as_expr=false | |
124 | fi | |
125 | ||
47964710 | 126 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
a848cd7e SC |
127 | as_basename=basename |
128 | else | |
129 | as_basename=false | |
130 | fi | |
131 | ||
132 | ||
133 | # Name of the executable. | |
47964710 | 134 | as_me=`$as_basename -- "$0" || |
a848cd7e SC |
135 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
136 | X"$0" : 'X\(//\)$' \| \ | |
47964710 | 137 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
d589327a | 138 | echo X/"$0" | |
47964710 VS |
139 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
140 | s//\1/ | |
141 | q | |
142 | } | |
143 | /^X\/\(\/\/\)$/{ | |
144 | s//\1/ | |
145 | q | |
146 | } | |
147 | /^X\/\(\/\).*/{ | |
148 | s//\1/ | |
149 | q | |
150 | } | |
151 | s/.*/./; q'` | |
7fd3acaf | 152 | |
47964710 VS |
153 | # CDPATH. |
154 | $as_unset CDPATH | |
7fd3acaf | 155 | |
faa5c14f | 156 | |
47964710 VS |
157 | if test "x$CONFIG_SHELL" = x; then |
158 | if (eval ":") 2>/dev/null; then | |
159 | as_have_required=yes | |
160 | else | |
161 | as_have_required=no | |
162 | fi | |
163 | ||
d589327a | 164 | if test $as_have_required = yes && (eval ": |
47964710 VS |
165 | (as_func_return () { |
166 | (exit \$1) | |
167 | } | |
168 | as_func_success () { | |
169 | as_func_return 0 | |
170 | } | |
171 | as_func_failure () { | |
172 | as_func_return 1 | |
173 | } | |
174 | as_func_ret_success () { | |
175 | return 0 | |
176 | } | |
177 | as_func_ret_failure () { | |
178 | return 1 | |
179 | } | |
180 | ||
181 | exitcode=0 | |
182 | if as_func_success; then | |
183 | : | |
184 | else | |
185 | exitcode=1 | |
186 | echo as_func_success failed. | |
84ebfcbd VZ |
187 | fi |
188 | ||
47964710 VS |
189 | if as_func_failure; then |
190 | exitcode=1 | |
191 | echo as_func_failure succeeded. | |
192 | fi | |
84ebfcbd | 193 | |
47964710 VS |
194 | if as_func_ret_success; then |
195 | : | |
196 | else | |
197 | exitcode=1 | |
198 | echo as_func_ret_success failed. | |
199 | fi | |
84ebfcbd | 200 | |
47964710 VS |
201 | if as_func_ret_failure; then |
202 | exitcode=1 | |
203 | echo as_func_ret_failure succeeded. | |
204 | fi | |
205 | ||
206 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then | |
207 | : | |
208 | else | |
209 | exitcode=1 | |
210 | echo positional parameters were not saved. | |
211 | fi | |
212 | ||
213 | test \$exitcode = 0) || { (exit 1); exit 1; } | |
214 | ||
215 | ( | |
216 | as_lineno_1=\$LINENO | |
217 | as_lineno_2=\$LINENO | |
218 | test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && | |
219 | test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } | |
220 | ") 2> /dev/null; then | |
221 | : | |
222 | else | |
223 | as_candidate_shells= | |
a848cd7e | 224 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
ebe1d157 | 225 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
a848cd7e SC |
226 | do |
227 | IFS=$as_save_IFS | |
228 | test -z "$as_dir" && as_dir=. | |
47964710 | 229 | case $as_dir in |
a848cd7e | 230 | /*) |
47964710 VS |
231 | for as_base in sh bash ksh sh5; do |
232 | as_candidate_shells="$as_candidate_shells $as_dir/$as_base" | |
233 | done;; | |
234 | esac | |
235 | done | |
236 | IFS=$as_save_IFS | |
237 | ||
238 | ||
239 | for as_shell in $as_candidate_shells $SHELL; do | |
240 | # Try only shells that exist, to save several forks. | |
241 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | |
242 | { ("$as_shell") 2> /dev/null <<\_ASEOF | |
243 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
244 | emulate sh | |
245 | NULLCMD=: | |
d589327a | 246 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
47964710 VS |
247 | # is contrary to our usage. Disable this feature. |
248 | alias -g '${1+"$@"}'='"$@"' | |
249 | setopt NO_GLOB_SUBST | |
250 | else | |
251 | case `(set -o) 2>/dev/null` in | |
252 | *posix*) set -o posix ;; | |
253 | esac | |
254 | ||
255 | fi | |
256 | ||
257 | ||
258 | : | |
259 | _ASEOF | |
260 | }; then | |
261 | CONFIG_SHELL=$as_shell | |
262 | as_have_required=yes | |
263 | if { "$as_shell" 2> /dev/null <<\_ASEOF | |
264 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
265 | emulate sh | |
266 | NULLCMD=: | |
d589327a | 267 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
47964710 VS |
268 | # is contrary to our usage. Disable this feature. |
269 | alias -g '${1+"$@"}'='"$@"' | |
270 | setopt NO_GLOB_SUBST | |
271 | else | |
272 | case `(set -o) 2>/dev/null` in | |
273 | *posix*) set -o posix ;; | |
274 | esac | |
275 | ||
276 | fi | |
277 | ||
278 | ||
279 | : | |
280 | (as_func_return () { | |
281 | (exit $1) | |
282 | } | |
283 | as_func_success () { | |
284 | as_func_return 0 | |
285 | } | |
286 | as_func_failure () { | |
287 | as_func_return 1 | |
288 | } | |
289 | as_func_ret_success () { | |
290 | return 0 | |
291 | } | |
292 | as_func_ret_failure () { | |
293 | return 1 | |
294 | } | |
295 | ||
296 | exitcode=0 | |
297 | if as_func_success; then | |
298 | : | |
299 | else | |
300 | exitcode=1 | |
301 | echo as_func_success failed. | |
302 | fi | |
303 | ||
304 | if as_func_failure; then | |
305 | exitcode=1 | |
306 | echo as_func_failure succeeded. | |
307 | fi | |
308 | ||
309 | if as_func_ret_success; then | |
310 | : | |
311 | else | |
312 | exitcode=1 | |
313 | echo as_func_ret_success failed. | |
314 | fi | |
315 | ||
316 | if as_func_ret_failure; then | |
317 | exitcode=1 | |
318 | echo as_func_ret_failure succeeded. | |
319 | fi | |
320 | ||
321 | if ( set x; as_func_ret_success y && test x = "$1" ); then | |
322 | : | |
323 | else | |
324 | exitcode=1 | |
325 | echo positional parameters were not saved. | |
326 | fi | |
327 | ||
328 | test $exitcode = 0) || { (exit 1); exit 1; } | |
329 | ||
330 | ( | |
84ebfcbd VZ |
331 | as_lineno_1=$LINENO |
332 | as_lineno_2=$LINENO | |
333 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
47964710 VS |
334 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } |
335 | ||
336 | _ASEOF | |
337 | }; then | |
338 | break | |
339 | fi | |
340 | ||
341 | fi | |
342 | ||
343 | done | |
344 | ||
345 | if test "x$CONFIG_SHELL" != x; then | |
346 | for as_var in BASH_ENV ENV | |
d589327a VZ |
347 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
348 | done | |
349 | export CONFIG_SHELL | |
350 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} | |
47964710 VS |
351 | fi |
352 | ||
353 | ||
354 | if test $as_have_required = no; then | |
355 | echo This script requires a shell more modern than all the | |
356 | echo shells that I found on your system. Please install a | |
357 | echo modern shell, or manually run the script under such a | |
358 | echo shell if you do have one. | |
359 | { (exit 1); exit 1; } | |
360 | fi | |
361 | ||
362 | ||
363 | fi | |
364 | ||
365 | fi | |
366 | ||
367 | ||
368 | ||
369 | (eval "as_func_return () { | |
370 | (exit \$1) | |
371 | } | |
372 | as_func_success () { | |
373 | as_func_return 0 | |
374 | } | |
375 | as_func_failure () { | |
376 | as_func_return 1 | |
377 | } | |
378 | as_func_ret_success () { | |
379 | return 0 | |
380 | } | |
381 | as_func_ret_failure () { | |
382 | return 1 | |
383 | } | |
384 | ||
385 | exitcode=0 | |
386 | if as_func_success; then | |
387 | : | |
388 | else | |
389 | exitcode=1 | |
390 | echo as_func_success failed. | |
391 | fi | |
392 | ||
393 | if as_func_failure; then | |
394 | exitcode=1 | |
395 | echo as_func_failure succeeded. | |
396 | fi | |
397 | ||
398 | if as_func_ret_success; then | |
399 | : | |
400 | else | |
401 | exitcode=1 | |
402 | echo as_func_ret_success failed. | |
403 | fi | |
404 | ||
405 | if as_func_ret_failure; then | |
406 | exitcode=1 | |
407 | echo as_func_ret_failure succeeded. | |
408 | fi | |
409 | ||
410 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then | |
411 | : | |
412 | else | |
413 | exitcode=1 | |
414 | echo positional parameters were not saved. | |
415 | fi | |
416 | ||
417 | test \$exitcode = 0") || { | |
418 | echo No shell found that supports shell functions. | |
d589327a VZ |
419 | echo Please tell autoconf@gnu.org about your system, |
420 | echo including any error possibly output before this | |
421 | echo message | |
47964710 VS |
422 | } |
423 | ||
424 | ||
425 | ||
426 | as_lineno_1=$LINENO | |
427 | as_lineno_2=$LINENO | |
428 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
429 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { | |
a848cd7e SC |
430 | |
431 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
432 | # uniformly replaced by the line number. The first 'sed' inserts a | |
47964710 VS |
433 | # line-number line after each line using $LINENO; the second 'sed' |
434 | # does the real work. The second script uses 'N' to pair each | |
435 | # line-number line with the line containing $LINENO, and appends | |
436 | # trailing '-' during substitution so that $LINENO is not a special | |
437 | # case at line end. | |
a848cd7e | 438 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
47964710 VS |
439 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
440 | # E. McMahon (1931-1989) for sed's syntax. :-) | |
441 | sed -n ' | |
442 | p | |
443 | /[$]LINENO/= | |
444 | ' <$as_myself | | |
a848cd7e | 445 | sed ' |
47964710 VS |
446 | s/[$]LINENO.*/&-/ |
447 | t lineno | |
448 | b | |
449 | :lineno | |
a848cd7e | 450 | N |
47964710 VS |
451 | :loop |
452 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
a848cd7e | 453 | t loop |
47964710 | 454 | s/-\n.*// |
a848cd7e | 455 | ' >$as_me.lineno && |
47964710 | 456 | chmod +x "$as_me.lineno" || |
d589327a | 457 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
a848cd7e SC |
458 | { (exit 1); exit 1; }; } |
459 | ||
460 | # Don't try to exec as it changes $[0], causing all sort of problems | |
461 | # (the dirname of $[0] is not the place where we might find the | |
47964710 VS |
462 | # original and so on. Autoconf is especially sensitive to this). |
463 | . "./$as_me.lineno" | |
a848cd7e SC |
464 | # Exit status is that of the last command. |
465 | exit | |
466 | } | |
467 | ||
468 | ||
47964710 VS |
469 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
470 | as_dirname=dirname | |
471 | else | |
472 | as_dirname=false | |
473 | fi | |
474 | ||
475 | ECHO_C= ECHO_N= ECHO_T= | |
476 | case `echo -n x` in | |
477 | -n*) | |
478 | case `echo 'x\c'` in | |
479 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
480 | *) ECHO_C='\c';; | |
481 | esac;; | |
482 | *) | |
483 | ECHO_N='-n';; | |
a848cd7e | 484 | esac |
d589327a | 485 | |
47964710 VS |
486 | if expr a : '\(a\)' >/dev/null 2>&1 && |
487 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
a848cd7e SC |
488 | as_expr=expr |
489 | else | |
490 | as_expr=false | |
491 | fi | |
492 | ||
493 | rm -f conf$$ conf$$.exe conf$$.file | |
47964710 VS |
494 | if test -d conf$$.dir; then |
495 | rm -f conf$$.dir/conf$$.file | |
496 | else | |
497 | rm -f conf$$.dir | |
d589327a VZ |
498 | mkdir conf$$.dir |
499 | fi | |
500 | echo >conf$$.file | |
501 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
502 | as_ln_s='ln -s' | |
503 | # ... but there are two gotchas: | |
504 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
505 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
506 | # In both cases, we have to default to `cp -p'. | |
507 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
a848cd7e | 508 | as_ln_s='cp -p' |
d589327a VZ |
509 | elif ln conf$$.file conf$$ 2>/dev/null; then |
510 | as_ln_s=ln | |
a848cd7e SC |
511 | else |
512 | as_ln_s='cp -p' | |
513 | fi | |
47964710 VS |
514 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
515 | rmdir conf$$.dir 2>/dev/null | |
a848cd7e SC |
516 | |
517 | if mkdir -p . 2>/dev/null; then | |
518 | as_mkdir_p=: | |
519 | else | |
ac1cb8d3 | 520 | test -d ./-p && rmdir ./-p |
a848cd7e SC |
521 | as_mkdir_p=false |
522 | fi | |
523 | ||
47964710 VS |
524 | if test -x / >/dev/null 2>&1; then |
525 | as_test_x='test -x' | |
526 | else | |
527 | if ls -dL / >/dev/null 2>&1; then | |
528 | as_ls_L_option=L | |
529 | else | |
530 | as_ls_L_option= | |
531 | fi | |
532 | as_test_x=' | |
533 | eval sh -c '\'' | |
534 | if test -d "$1"; then | |
d589327a | 535 | test -d "$1/."; |
47964710 VS |
536 | else |
537 | case $1 in | |
d589327a | 538 | -*)set "./$1";; |
47964710 VS |
539 | esac; |
540 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in | |
541 | ???[sx]*):;;*)false;;esac;fi | |
542 | '\'' sh | |
543 | ' | |
544 | fi | |
545 | as_executable_p=$as_test_x | |
a848cd7e SC |
546 | |
547 | # Sed expression to map a string onto a valid CPP name. | |
ac1cb8d3 | 548 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
a848cd7e SC |
549 | |
550 | # Sed expression to map a string onto a valid variable name. | |
ac1cb8d3 | 551 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
a848cd7e SC |
552 | |
553 | ||
a848cd7e | 554 | |
47964710 | 555 | exec 7<&0 </dev/null 6>&1 |
a848cd7e SC |
556 | |
557 | # Name of the host. | |
558 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | |
559 | # so uname gets run too. | |
560 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
561 | ||
a848cd7e SC |
562 | # |
563 | # Initializations. | |
564 | # | |
565 | ac_default_prefix=/usr/local | |
47964710 | 566 | ac_clean_files= |
a848cd7e | 567 | ac_config_libobj_dir=. |
47964710 | 568 | LIBOBJS= |
a848cd7e SC |
569 | cross_compiling=no |
570 | subdirs= | |
571 | MFLAGS= | |
572 | MAKEFLAGS= | |
573 | SHELL=${CONFIG_SHELL-/bin/sh} | |
574 | ||
a848cd7e | 575 | # Identity of this package. |
77ffb593 JS |
576 | PACKAGE_NAME='wxWidgets' |
577 | PACKAGE_TARNAME='wxwidgets' | |
f3239c21 VZ |
578 | PACKAGE_VERSION='2.9.1' |
579 | PACKAGE_STRING='wxWidgets 2.9.1' | |
77ffb593 | 580 | PACKAGE_BUGREPORT='wx-dev@lists.wxwidgets.org' |
a848cd7e SC |
581 | |
582 | ac_unique_file="wx-config.in" | |
583 | # Factoring default headers for most tests. | |
584 | ac_includes_default="\ | |
585 | #include <stdio.h> | |
47964710 | 586 | #ifdef HAVE_SYS_TYPES_H |
a848cd7e SC |
587 | # include <sys/types.h> |
588 | #endif | |
47964710 | 589 | #ifdef HAVE_SYS_STAT_H |
a848cd7e SC |
590 | # include <sys/stat.h> |
591 | #endif | |
47964710 | 592 | #ifdef STDC_HEADERS |
a848cd7e SC |
593 | # include <stdlib.h> |
594 | # include <stddef.h> | |
595 | #else | |
47964710 | 596 | # ifdef HAVE_STDLIB_H |
a848cd7e SC |
597 | # include <stdlib.h> |
598 | # endif | |
599 | #endif | |
47964710 VS |
600 | #ifdef HAVE_STRING_H |
601 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | |
a848cd7e SC |
602 | # include <memory.h> |
603 | # endif | |
604 | # include <string.h> | |
605 | #endif | |
47964710 | 606 | #ifdef HAVE_STRINGS_H |
a848cd7e SC |
607 | # include <strings.h> |
608 | #endif | |
47964710 | 609 | #ifdef HAVE_INTTYPES_H |
a848cd7e | 610 | # include <inttypes.h> |
7fd3acaf | 611 | #endif |
47964710 VS |
612 | #ifdef HAVE_STDINT_H |
613 | # include <stdint.h> | |
614 | #endif | |
615 | #ifdef HAVE_UNISTD_H | |
a848cd7e SC |
616 | # include <unistd.h> |
617 | #endif" | |
618 | ||
d589327a | 619 | ac_subst_vars='SHELL |
aa113d87 | 620 | PATH_SEPARATOR |
d589327a VZ |
621 | PACKAGE_NAME |
622 | PACKAGE_TARNAME | |
623 | PACKAGE_VERSION | |
624 | PACKAGE_STRING | |
625 | PACKAGE_BUGREPORT | |
626 | exec_prefix | |
627 | prefix | |
628 | program_transform_name | |
629 | bindir | |
630 | sbindir | |
631 | libexecdir | |
632 | datarootdir | |
633 | datadir | |
634 | sysconfdir | |
635 | sharedstatedir | |
636 | localstatedir | |
637 | includedir | |
638 | oldincludedir | |
639 | docdir | |
640 | infodir | |
641 | htmldir | |
642 | dvidir | |
643 | pdfdir | |
644 | psdir | |
645 | libdir | |
646 | localedir | |
647 | mandir | |
648 | DEFS | |
649 | ECHO_C | |
650 | ECHO_N | |
651 | ECHO_T | |
652 | LIBS | |
653 | build_alias | |
654 | host_alias | |
655 | target_alias | |
656 | build | |
657 | build_cpu | |
658 | build_vendor | |
659 | build_os | |
660 | host | |
661 | host_cpu | |
662 | host_vendor | |
663 | host_os | |
664 | wx_top_builddir | |
665 | CC | |
666 | CFLAGS | |
667 | LDFLAGS | |
668 | CPPFLAGS | |
669 | ac_ct_CC | |
670 | EXEEXT | |
671 | OBJEXT | |
672 | CPP | |
673 | GREP | |
674 | EGREP | |
675 | CXX | |
676 | CXXFLAGS | |
677 | ac_ct_CXX | |
678 | AR | |
06a08679 | 679 | OSX_SW_VERS |
d589327a VZ |
680 | subdirs |
681 | PKG_CONFIG | |
682 | GTK_CFLAGS | |
683 | GTK_LIBS | |
684 | GTK_CONFIG | |
685 | DIRECTFB_CFLAGS | |
686 | DIRECTFB_LIBS | |
687 | XMKMF | |
688 | X_CFLAGS | |
689 | X_PRE_LIBS | |
690 | X_LIBS | |
691 | X_EXTRA_LIBS | |
692 | PANGOX_CFLAGS | |
693 | PANGOX_LIBS | |
694 | PANGOFT2_CFLAGS | |
695 | PANGOFT2_LIBS | |
696 | PANGOXFT_CFLAGS | |
697 | PANGOXFT_LIBS | |
698 | CFLAGS_VISIBILITY | |
699 | CXXFLAGS_VISIBILITY | |
700 | LIBICONV | |
701 | GXX_VERSION | |
702 | SDL_CONFIG | |
703 | SDL_CFLAGS | |
704 | SDL_LIBS | |
705 | GTKPRINT_CFLAGS | |
706 | GTKPRINT_LIBS | |
707 | LIBGNOMEPRINTUI_CFLAGS | |
708 | LIBGNOMEPRINTUI_LIBS | |
709 | GNOMEVFS_CFLAGS | |
710 | GNOMEVFS_LIBS | |
711 | HILDON_CFLAGS | |
712 | HILDON_LIBS | |
426d19f1 JS |
713 | HILDON2_CFLAGS |
714 | HILDON2_LIBS | |
d84e6f50 VZ |
715 | PYTHON |
716 | COND_PYTHON | |
d589327a VZ |
717 | CAIRO_CFLAGS |
718 | CAIRO_LIBS | |
719 | GST_CFLAGS | |
720 | GST_LIBS | |
721 | ALL_WX_LIBS | |
722 | BUILT_WX_LIBS | |
723 | STD_BASE_LIBS | |
724 | STD_GUI_LIBS | |
725 | wxUSE_ZLIB | |
726 | wxUSE_REGEX | |
727 | wxUSE_EXPAT | |
728 | wxUSE_LIBJPEG | |
729 | wxUSE_LIBPNG | |
730 | wxUSE_LIBTIFF | |
731 | VENDOR | |
732 | OFFICIAL_BUILD | |
733 | WX_FLAVOUR | |
734 | WX_LIB_FLAVOUR | |
735 | WXUNIV | |
736 | MONOLITHIC | |
737 | USE_PLUGINS | |
738 | CXXWARNINGS | |
739 | EXTRALIBS | |
740 | EXTRALIBS_XML | |
741 | EXTRALIBS_HTML | |
742 | EXTRALIBS_MEDIA | |
743 | EXTRALIBS_GUI | |
744 | EXTRALIBS_OPENGL | |
745 | EXTRALIBS_SDL | |
746 | EXTRALIBS_STC | |
747 | WITH_PLUGIN_SDL | |
748 | EXTRALIBS_GTKPRINT | |
749 | EXTRALIBS_GNOMEPRINT | |
750 | EXTRALIBS_GNOMEVFS | |
751 | EXTRALIBS_HILDON | |
752 | UNICODE | |
d589327a VZ |
753 | DEBUG_INFO |
754 | DEBUG_FLAG | |
755 | TOOLKIT_LOWERCASE | |
756 | TOOLKIT_VERSION | |
757 | DYLIB_RPATH_INSTALL | |
758 | DYLIB_RPATH_POSTLINK | |
759 | SAMPLES_RPATH_FLAG | |
760 | HEADER_PAD_OPTION | |
761 | HOST_SUFFIX | |
762 | CPPUNIT_CFLAGS | |
763 | CPPUNIT_LIBS | |
764 | RANLIB | |
765 | INSTALL_PROGRAM | |
766 | INSTALL_SCRIPT | |
767 | INSTALL_DATA | |
768 | LN_S | |
769 | SET_MAKE | |
770 | MAKE_SET | |
771 | AROPTIONS | |
772 | STRIP | |
773 | NM | |
774 | INSTALL_DIR | |
775 | LDFLAGS_GUI | |
776 | IF_GNU_MAKE | |
777 | PLATFORM_UNIX | |
778 | PLATFORM_WIN32 | |
779 | PLATFORM_MSDOS | |
780 | PLATFORM_MAC | |
781 | PLATFORM_MACOS | |
782 | PLATFORM_MACOSX | |
783 | PLATFORM_OS2 | |
784 | PLATFORM_BEOS | |
785 | SO_SUFFIX | |
786 | SO_SUFFIX_MODULE | |
787 | DLLIMP_SUFFIX | |
788 | LIBPREFIX | |
789 | LIBEXT | |
790 | DLLPREFIX | |
791 | DLLPREFIX_MODULE | |
792 | dlldir | |
793 | AIX_CXX_LD | |
794 | SHARED_LD_CC | |
795 | SHARED_LD_CXX | |
796 | SHARED_LD_MODULE_CC | |
797 | SHARED_LD_MODULE_CXX | |
798 | PIC_FLAG | |
799 | WINDOWS_IMPLIB | |
800 | USE_SOVERSION | |
801 | USE_SOVERLINUX | |
802 | USE_SOVERSOLARIS | |
803 | USE_SOVERCYGWIN | |
804 | USE_MACVERSION | |
2c459beb | 805 | USE_SOTWOSYMLINKS |
d589327a VZ |
806 | SONAME_FLAG |
807 | DEPS_TRACKING | |
808 | BK_DEPS | |
809 | WINDRES | |
810 | REZ | |
811 | SETFILE | |
812 | OBJCXXFLAGS | |
813 | GCC_PCH | |
814 | ICC_PCH | |
815 | ICC_PCH_CREATE_SWITCH | |
816 | ICC_PCH_USE_SWITCH | |
817 | BK_MAKE_PCH | |
818 | COND_BUILD_DEBUG | |
819 | COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT | |
820 | COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT | |
821 | COND_BUILD_DEBUG_UNICODE_0 | |
822 | COND_BUILD_DEBUG_UNICODE_1 | |
823 | COND_BUILD_RELEASE | |
824 | COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT | |
825 | COND_BUILD_RELEASE_UNICODE_0 | |
826 | COND_BUILD_RELEASE_UNICODE_1 | |
827 | COND_BUILD_debug | |
828 | COND_BUILD_debug_DEBUG_FLAG_default | |
829 | COND_BUILD_debug_DEBUG_INFO_default | |
830 | COND_BUILD_debug_UNICODE_0 | |
831 | COND_BUILD_debug_UNICODE_1 | |
832 | COND_BUILD_release | |
833 | COND_BUILD_release_DEBUG_INFO_default | |
834 | COND_BUILD_release_UNICODE_0 | |
835 | COND_BUILD_release_UNICODE_1 | |
89b1afb4 | 836 | COND_DEBUG_FLAG_0 |
d589327a VZ |
837 | COND_DEBUG_FLAG_1 |
838 | COND_DEBUG_INFO_0 | |
839 | COND_DEBUG_INFO_1 | |
840 | COND_DEPS_TRACKING_0 | |
841 | COND_DEPS_TRACKING_1 | |
842 | COND_GCC_PCH_1 | |
843 | COND_ICC_PCH_1 | |
844 | COND_MONOLITHIC_0 | |
845 | COND_MONOLITHIC_0_SHARED_0 | |
846 | COND_MONOLITHIC_0_SHARED_0_USE_AUI_1 | |
847 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1 | |
848 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1 | |
849 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1 | |
850 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1 | |
851 | COND_MONOLITHIC_0_SHARED_0_USE_PROPGRID_1 | |
d33ccbe1 | 852 | COND_MONOLITHIC_0_SHARED_0_USE_RIBBON_1 |
d589327a VZ |
853 | COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1 |
854 | COND_MONOLITHIC_0_SHARED_0_USE_STC_1 | |
855 | COND_MONOLITHIC_0_SHARED_0_USE_XRC_1 | |
856 | COND_MONOLITHIC_0_SHARED_1 | |
857 | COND_MONOLITHIC_0_SHARED_1_USE_AUI_1 | |
858 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1 | |
859 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1 | |
860 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1 | |
861 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1 | |
862 | COND_MONOLITHIC_0_SHARED_1_USE_PROPGRID_1 | |
d33ccbe1 | 863 | COND_MONOLITHIC_0_SHARED_1_USE_RIBBON_1 |
d589327a VZ |
864 | COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1 |
865 | COND_MONOLITHIC_0_SHARED_1_USE_STC_1 | |
866 | COND_MONOLITHIC_0_SHARED_1_USE_XRC_1 | |
867 | COND_MONOLITHIC_0_USE_AUI_1 | |
868 | COND_MONOLITHIC_0_USE_GUI_1 | |
869 | COND_MONOLITHIC_0_USE_GUI_1_USE_MEDIA_1 | |
870 | COND_MONOLITHIC_0_USE_HTML_1 | |
871 | COND_MONOLITHIC_0_USE_MEDIA_1 | |
872 | COND_MONOLITHIC_0_USE_PROPGRID_1 | |
873 | COND_MONOLITHIC_0_USE_QA_1 | |
d33ccbe1 | 874 | COND_MONOLITHIC_0_USE_RIBBON_1 |
d589327a VZ |
875 | COND_MONOLITHIC_0_USE_RICHTEXT_1 |
876 | COND_MONOLITHIC_0_USE_STC_1 | |
877 | COND_MONOLITHIC_0_USE_XRC_1 | |
878 | COND_MONOLITHIC_1 | |
879 | COND_MONOLITHIC_1_SHARED_0 | |
880 | COND_MONOLITHIC_1_SHARED_1 | |
881 | COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1 | |
882 | COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1 | |
883 | COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1 | |
884 | COND_PLATFORM_MACOSX_0_USE_SOVERSION_1 | |
885 | COND_PLATFORM_MACOSX_1 | |
886 | COND_PLATFORM_MACOSX_1_PLATFORM_MSDOS_0 | |
61aba460 | 887 | COND_PLATFORM_MACOSX_1_PLATFORM_WIN32_1_SHARED_0 |
d589327a VZ |
888 | COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1 |
889 | COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1_WXUNIV_0 | |
890 | COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1 | |
891 | COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1_WXUNIV_0 | |
c9554803 VZ |
892 | COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_IPHONE_USE_GUI_1 |
893 | COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_IPHONE_USE_GUI_1_WXUNIV_0 | |
d589327a VZ |
894 | COND_PLATFORM_MACOSX_1_USE_GUI_1 |
895 | COND_PLATFORM_MACOSX_1_USE_OPENGL_1 | |
896 | COND_PLATFORM_MACOSX_1_USE_SOVERSION_1 | |
897 | COND_PLATFORM_MACOS_1 | |
898 | COND_PLATFORM_MAC_0 | |
899 | COND_PLATFORM_MAC_1 | |
900 | COND_PLATFORM_MSDOS_0 | |
901 | COND_PLATFORM_MSDOS_1 | |
902 | COND_PLATFORM_OS2_1 | |
903 | COND_PLATFORM_UNIX_0 | |
904 | COND_PLATFORM_UNIX_1 | |
905 | COND_PLATFORM_UNIX_1_TOOLKIT_MGL | |
906 | COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1 | |
907 | COND_PLATFORM_UNIX_1_USE_GUI_1 | |
908 | COND_PLATFORM_UNIX_1_USE_PLUGINS_0 | |
909 | COND_PLATFORM_WIN32_0 | |
910 | COND_PLATFORM_WIN32_1 | |
61aba460 | 911 | COND_PLATFORM_WIN32_1_SHARED_0 |
d589327a VZ |
912 | COND_SHARED_0 |
913 | COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0 | |
914 | COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0 | |
915 | COND_SHARED_0_TOOLKIT_PM_WXUNIV_0 | |
916 | COND_SHARED_0_USE_GUI_1_USE_OPENGL_1 | |
917 | COND_SHARED_0_USE_GUI_1_wxUSE_LIBJPEG_builtin | |
918 | COND_SHARED_0_USE_GUI_1_wxUSE_LIBPNG_builtin | |
919 | COND_SHARED_0_USE_GUI_1_wxUSE_LIBTIFF_builtin | |
920 | COND_SHARED_0_USE_STC_1 | |
921 | COND_SHARED_0_wxUSE_EXPAT_builtin | |
922 | COND_SHARED_0_wxUSE_REGEX_builtin | |
923 | COND_SHARED_0_wxUSE_ZLIB_builtin | |
924 | COND_SHARED_1 | |
925 | COND_SHARED_1_USE_GUI_1_USE_OPENGL_1 | |
926 | COND_TOOLKIT_ | |
927 | COND_TOOLKIT_COCOA | |
928 | COND_TOOLKIT_COCOA_USE_GUI_1 | |
929 | COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0 | |
930 | COND_TOOLKIT_DFB | |
931 | COND_TOOLKIT_DFB_USE_GUI_1 | |
932 | COND_TOOLKIT_GTK | |
933 | COND_TOOLKIT_GTK_TOOLKIT_VERSION_ | |
934 | COND_TOOLKIT_GTK_TOOLKIT_VERSION_2 | |
935 | COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1 | |
936 | COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0 | |
937 | COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1 | |
938 | COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0 | |
939 | COND_TOOLKIT_GTK_USE_GUI_1 | |
940 | COND_TOOLKIT_MAC | |
941 | COND_TOOLKIT_MGL | |
942 | COND_TOOLKIT_MGL_USE_GUI_1 | |
943 | COND_TOOLKIT_MOTIF | |
944 | COND_TOOLKIT_MOTIF_USE_GUI_1 | |
945 | COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0 | |
946 | COND_TOOLKIT_MSW | |
947 | COND_TOOLKIT_MSW_USE_GUI_1 | |
948 | COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0 | |
949 | COND_TOOLKIT_MSW_WXUNIV_0 | |
950 | COND_TOOLKIT_OSX_CARBON | |
951 | COND_TOOLKIT_OSX_CARBON_USE_GUI_1 | |
d589327a VZ |
952 | COND_TOOLKIT_OSX_COCOA |
953 | COND_TOOLKIT_OSX_COCOA_USE_GUI_1 | |
d589327a | 954 | COND_TOOLKIT_OSX_IPHONE |
c9554803 VZ |
955 | COND_TOOLKIT_OSX_IPHONE_USE_GUI_1 |
956 | COND_TOOLKIT_OSX_IPHONE_USE_GUI_1_WXUNIV_0 | |
d589327a VZ |
957 | COND_TOOLKIT_PM |
958 | COND_TOOLKIT_PM_USE_GUI_1 | |
959 | COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0 | |
960 | COND_TOOLKIT_WINCE | |
961 | COND_TOOLKIT_WINCE_USE_GUI_1 | |
962 | COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0 | |
963 | COND_TOOLKIT_WINCE_WXUNIV_0 | |
964 | COND_TOOLKIT_X11 | |
965 | COND_TOOLKIT_X11_USE_GUI_1 | |
966 | COND_UNICODE_1 | |
a12bd55b | 967 | COND_USE_CAIRO_1 |
d589327a VZ |
968 | COND_USE_EXCEPTIONS_0 |
969 | COND_USE_EXCEPTIONS_1 | |
970 | COND_USE_GUI_0 | |
971 | COND_USE_GUI_1 | |
972 | COND_USE_GUI_1_USE_OPENGL_1 | |
973 | COND_USE_GUI_1_WXUNIV_0 | |
974 | COND_USE_GUI_1_WXUNIV_1 | |
975 | COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN | |
976 | COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN | |
977 | COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN | |
978 | COND_USE_GUI_1_wxUSE_LIBJPEG_builtin | |
979 | COND_USE_GUI_1_wxUSE_LIBPNG_builtin | |
980 | COND_USE_GUI_1_wxUSE_LIBTIFF_builtin | |
981 | COND_USE_OPENGL_1 | |
982 | COND_USE_PCH_1 | |
983 | COND_USE_PLUGINS_0 | |
984 | COND_USE_RTTI_0 | |
985 | COND_USE_RTTI_1 | |
2c459beb | 986 | COND_USE_SOTWOSYMLINKS_1 |
d589327a VZ |
987 | COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1 |
988 | COND_USE_SOVERLINUX_1 | |
989 | COND_USE_SOVERSION_0 | |
2c459beb | 990 | COND_USE_SOVERSION_1_USE_SOVERSOLARIS_1 |
d589327a VZ |
991 | COND_USE_SOVERSOLARIS_1 |
992 | COND_USE_STC_1 | |
993 | COND_USE_THREADS_0 | |
994 | COND_USE_THREADS_1 | |
995 | COND_USE_XRC_1 | |
996 | COND_WINDOWS_IMPLIB_1 | |
997 | COND_WITH_PLUGIN_SDL_1 | |
998 | COND_WXUNIV_0 | |
999 | COND_WXUNIV_1 | |
1000 | COND_WXUSE_EXPAT_BUILTIN | |
1001 | COND_WXUSE_LIBJPEG_BUILTIN | |
1002 | COND_WXUSE_LIBPNG_BUILTIN | |
1003 | COND_WXUSE_LIBTIFF_BUILTIN | |
1004 | COND_WXUSE_REGEX_BUILTIN | |
1005 | COND_WXUSE_ZLIB_BUILTIN | |
1006 | COND_wxUSE_EXPAT_builtin | |
1007 | COND_wxUSE_LIBJPEG_builtin | |
1008 | COND_wxUSE_LIBPNG_builtin | |
1009 | COND_wxUSE_LIBTIFF_builtin | |
1010 | COND_wxUSE_REGEX_builtin | |
1011 | COND_wxUSE_ZLIB_builtin | |
1012 | DEREZ | |
1013 | SHARED | |
1014 | WX_LIBRARY_BASENAME_NOGUI | |
1015 | WX_LIBRARY_BASENAME_GUI | |
1016 | USE_GUI | |
1017 | AFMINSTALL | |
1018 | WIN32INSTALL | |
1019 | TOOLKIT | |
1020 | TOOLKIT_DIR | |
1021 | TOOLCHAIN_NAME | |
1022 | TOOLCHAIN_FULLNAME | |
1023 | cross_compiling | |
1024 | WIDGET_SET | |
1025 | WX_RELEASE | |
1026 | WX_VERSION | |
1027 | WX_SUBVERSION | |
1028 | WX_CHARTYPE | |
d589327a VZ |
1029 | WXCONFIG_CPPFLAGS |
1030 | WXCONFIG_CFLAGS | |
1031 | WXCONFIG_CXXFLAGS | |
1032 | WXCONFIG_LIBS | |
1033 | WXCONFIG_RPATH | |
d4fbe1d8 | 1034 | WXCONFIG_LDFLAGS |
d589327a VZ |
1035 | WXCONFIG_LDFLAGS_GUI |
1036 | WXCONFIG_RESFLAGS | |
1037 | GUIDIST | |
1038 | DISTDIR | |
1039 | SAMPLES_SUBDIRS | |
1040 | LDFLAGS_GL | |
1041 | OPENGL_LIBS | |
1042 | DMALLOC_LIBS | |
1043 | WX_VERSION_TAG | |
1044 | RESCOMP | |
1045 | RESFLAGS | |
1046 | RESPROGRAMOBJ | |
1047 | WX_RESOURCES_MACOSX_ASCII | |
1048 | WX_RESOURCES_MACOSX_DATA | |
1049 | LIBWXMACRES | |
1050 | POSTLINK_COMMAND | |
1051 | MACSETFILE | |
1052 | GCC | |
1053 | DLLTOOL | |
1054 | CPPUNIT_CONFIG | |
1055 | LIBOBJS | |
1056 | LTLIBOBJS' | |
a848cd7e | 1057 | ac_subst_files='' |
47964710 VS |
1058 | ac_precious_vars='build_alias |
1059 | host_alias | |
1060 | target_alias | |
1061 | CC | |
1062 | CFLAGS | |
1063 | LDFLAGS | |
1064 | LIBS | |
1065 | CPPFLAGS | |
1066 | CPP | |
1067 | CXX | |
1068 | CXXFLAGS | |
1069 | CCC | |
1070 | PKG_CONFIG | |
1071 | DIRECTFB_CFLAGS | |
1072 | DIRECTFB_LIBS | |
1073 | XMKMF | |
1074 | PANGOX_CFLAGS | |
1075 | PANGOX_LIBS | |
1076 | PANGOFT2_CFLAGS | |
1077 | PANGOFT2_LIBS | |
1078 | PANGOXFT_CFLAGS | |
1079 | PANGOXFT_LIBS | |
1080 | GTKPRINT_CFLAGS | |
1081 | GTKPRINT_LIBS | |
1082 | LIBGNOMEPRINTUI_CFLAGS | |
1083 | LIBGNOMEPRINTUI_LIBS | |
1084 | GNOMEVFS_CFLAGS | |
1085 | GNOMEVFS_LIBS | |
1086 | HILDON_CFLAGS | |
1087 | HILDON_LIBS | |
426d19f1 JS |
1088 | HILDON2_CFLAGS |
1089 | HILDON2_LIBS | |
47964710 VS |
1090 | CAIRO_CFLAGS |
1091 | CAIRO_LIBS | |
1092 | GST_CFLAGS | |
1093 | GST_LIBS' | |
3442c078 VZ |
1094 | ac_subdirs_all='src/tiff |
1095 | src/expat' | |
a848cd7e SC |
1096 | |
1097 | # Initialize some variables set by options. | |
1098 | ac_init_help= | |
1099 | ac_init_version=false | |
1100 | # The variables have the same names as the options, with | |
1101 | # dashes changed to underlines. | |
1102 | cache_file=/dev/null | |
1103 | exec_prefix=NONE | |
1104 | no_create= | |
1105 | no_recursion= | |
1106 | prefix=NONE | |
1107 | program_prefix=NONE | |
1108 | program_suffix=NONE | |
1109 | program_transform_name=s,x,x, | |
1110 | silent= | |
1111 | site= | |
1112 | srcdir= | |
1113 | verbose= | |
1114 | x_includes=NONE | |
1115 | x_libraries=NONE | |
1116 | ||
1117 | # Installation directory options. | |
1118 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
1119 | # and all the variables that are supposed to be based on exec_prefix | |
1120 | # by default will actually change. | |
1121 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
47964710 | 1122 | # (The list follows the same order as the GNU Coding Standards.) |
a848cd7e SC |
1123 | bindir='${exec_prefix}/bin' |
1124 | sbindir='${exec_prefix}/sbin' | |
1125 | libexecdir='${exec_prefix}/libexec' | |
47964710 VS |
1126 | datarootdir='${prefix}/share' |
1127 | datadir='${datarootdir}' | |
a848cd7e SC |
1128 | sysconfdir='${prefix}/etc' |
1129 | sharedstatedir='${prefix}/com' | |
1130 | localstatedir='${prefix}/var' | |
a848cd7e SC |
1131 | includedir='${prefix}/include' |
1132 | oldincludedir='/usr/include' | |
47964710 VS |
1133 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
1134 | infodir='${datarootdir}/info' | |
1135 | htmldir='${docdir}' | |
1136 | dvidir='${docdir}' | |
1137 | pdfdir='${docdir}' | |
1138 | psdir='${docdir}' | |
1139 | libdir='${exec_prefix}/lib' | |
1140 | localedir='${datarootdir}/locale' | |
1141 | mandir='${datarootdir}/man' | |
a848cd7e SC |
1142 | |
1143 | ac_prev= | |
47964710 | 1144 | ac_dashdash= |
a848cd7e SC |
1145 | for ac_option |
1146 | do | |
1147 | # If the previous option needs an argument, assign it. | |
1148 | if test -n "$ac_prev"; then | |
47964710 | 1149 | eval $ac_prev=\$ac_option |
a848cd7e SC |
1150 | ac_prev= |
1151 | continue | |
1152 | fi | |
1153 | ||
47964710 VS |
1154 | case $ac_option in |
1155 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
1156 | *) ac_optarg=yes ;; | |
1157 | esac | |
a848cd7e SC |
1158 | |
1159 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
1160 | ||
47964710 VS |
1161 | case $ac_dashdash$ac_option in |
1162 | --) | |
1163 | ac_dashdash=yes ;; | |
a848cd7e SC |
1164 | |
1165 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
1166 | ac_prev=bindir ;; | |
1167 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
1168 | bindir=$ac_optarg ;; | |
1169 | ||
1170 | -build | --build | --buil | --bui | --bu) | |
1171 | ac_prev=build_alias ;; | |
1172 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
1173 | build_alias=$ac_optarg ;; | |
1174 | ||
1175 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
1176 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
1177 | ac_prev=cache_file ;; | |
1178 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
1179 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
1180 | cache_file=$ac_optarg ;; | |
1181 | ||
1182 | --config-cache | -C) | |
1183 | cache_file=config.cache ;; | |
1184 | ||
47964710 | 1185 | -datadir | --datadir | --datadi | --datad) |
a848cd7e | 1186 | ac_prev=datadir ;; |
47964710 | 1187 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
a848cd7e SC |
1188 | datadir=$ac_optarg ;; |
1189 | ||
47964710 VS |
1190 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
1191 | | --dataroo | --dataro | --datar) | |
1192 | ac_prev=datarootdir ;; | |
1193 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
1194 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
1195 | datarootdir=$ac_optarg ;; | |
1196 | ||
a848cd7e | 1197 | -disable-* | --disable-*) |
d589327a | 1198 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
a848cd7e | 1199 | # Reject names that are not valid shell variable names. |
d589327a VZ |
1200 | expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && |
1201 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
a848cd7e | 1202 | { (exit 1); exit 1; }; } |
d589327a VZ |
1203 | ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` |
1204 | eval enable_$ac_feature=no ;; | |
47964710 VS |
1205 | |
1206 | -docdir | --docdir | --docdi | --doc | --do) | |
1207 | ac_prev=docdir ;; | |
1208 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
1209 | docdir=$ac_optarg ;; | |
1210 | ||
1211 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
1212 | ac_prev=dvidir ;; | |
1213 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
1214 | dvidir=$ac_optarg ;; | |
a848cd7e SC |
1215 | |
1216 | -enable-* | --enable-*) | |
d589327a | 1217 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
a848cd7e | 1218 | # Reject names that are not valid shell variable names. |
d589327a VZ |
1219 | expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && |
1220 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
a848cd7e | 1221 | { (exit 1); exit 1; }; } |
d589327a VZ |
1222 | ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` |
1223 | eval enable_$ac_feature=\$ac_optarg ;; | |
a848cd7e SC |
1224 | |
1225 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
1226 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
1227 | | --exec | --exe | --ex) | |
1228 | ac_prev=exec_prefix ;; | |
1229 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
1230 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
1231 | | --exec=* | --exe=* | --ex=*) | |
1232 | exec_prefix=$ac_optarg ;; | |
1233 | ||
1234 | -gas | --gas | --ga | --g) | |
1235 | # Obsolete; use --with-gas. | |
1236 | with_gas=yes ;; | |
1237 | ||
1238 | -help | --help | --hel | --he | -h) | |
1239 | ac_init_help=long ;; | |
1240 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
1241 | ac_init_help=recursive ;; | |
1242 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
1243 | ac_init_help=short ;; | |
1244 | ||
1245 | -host | --host | --hos | --ho) | |
1246 | ac_prev=host_alias ;; | |
1247 | -host=* | --host=* | --hos=* | --ho=*) | |
1248 | host_alias=$ac_optarg ;; | |
1249 | ||
47964710 VS |
1250 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
1251 | ac_prev=htmldir ;; | |
1252 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
1253 | | --ht=*) | |
1254 | htmldir=$ac_optarg ;; | |
1255 | ||
a848cd7e SC |
1256 | -includedir | --includedir | --includedi | --included | --include \ |
1257 | | --includ | --inclu | --incl | --inc) | |
1258 | ac_prev=includedir ;; | |
1259 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
1260 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
1261 | includedir=$ac_optarg ;; | |
1262 | ||
1263 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
1264 | ac_prev=infodir ;; | |
1265 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
1266 | infodir=$ac_optarg ;; | |
1267 | ||
1268 | -libdir | --libdir | --libdi | --libd) | |
1269 | ac_prev=libdir ;; | |
1270 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
1271 | libdir=$ac_optarg ;; | |
1272 | ||
1273 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
1274 | | --libexe | --libex | --libe) | |
1275 | ac_prev=libexecdir ;; | |
1276 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
1277 | | --libexe=* | --libex=* | --libe=*) | |
1278 | libexecdir=$ac_optarg ;; | |
1279 | ||
47964710 VS |
1280 | -localedir | --localedir | --localedi | --localed | --locale) |
1281 | ac_prev=localedir ;; | |
1282 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
1283 | localedir=$ac_optarg ;; | |
1284 | ||
a848cd7e | 1285 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
47964710 | 1286 | | --localstate | --localstat | --localsta | --localst | --locals) |
a848cd7e SC |
1287 | ac_prev=localstatedir ;; |
1288 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
47964710 | 1289 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
a848cd7e SC |
1290 | localstatedir=$ac_optarg ;; |
1291 | ||
1292 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1293 | ac_prev=mandir ;; | |
1294 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
1295 | mandir=$ac_optarg ;; | |
1296 | ||
1297 | -nfp | --nfp | --nf) | |
1298 | # Obsolete; use --without-fp. | |
1299 | with_fp=no ;; | |
1300 | ||
1301 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
1302 | | --no-cr | --no-c | -n) | |
1303 | no_create=yes ;; | |
1304 | ||
1305 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1306 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1307 | no_recursion=yes ;; | |
1308 | ||
1309 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1310 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1311 | | --oldin | --oldi | --old | --ol | --o) | |
1312 | ac_prev=oldincludedir ;; | |
1313 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1314 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1315 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
1316 | oldincludedir=$ac_optarg ;; | |
1317 | ||
1318 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1319 | ac_prev=prefix ;; | |
1320 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
1321 | prefix=$ac_optarg ;; | |
1322 | ||
1323 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1324 | | --program-pre | --program-pr | --program-p) | |
1325 | ac_prev=program_prefix ;; | |
1326 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1327 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
1328 | program_prefix=$ac_optarg ;; | |
1329 | ||
1330 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1331 | | --program-suf | --program-su | --program-s) | |
1332 | ac_prev=program_suffix ;; | |
1333 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1334 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
1335 | program_suffix=$ac_optarg ;; | |
1336 | ||
1337 | -program-transform-name | --program-transform-name \ | |
1338 | | --program-transform-nam | --program-transform-na \ | |
1339 | | --program-transform-n | --program-transform- \ | |
1340 | | --program-transform | --program-transfor \ | |
1341 | | --program-transfo | --program-transf \ | |
1342 | | --program-trans | --program-tran \ | |
1343 | | --progr-tra | --program-tr | --program-t) | |
1344 | ac_prev=program_transform_name ;; | |
1345 | -program-transform-name=* | --program-transform-name=* \ | |
1346 | | --program-transform-nam=* | --program-transform-na=* \ | |
1347 | | --program-transform-n=* | --program-transform-=* \ | |
1348 | | --program-transform=* | --program-transfor=* \ | |
1349 | | --program-transfo=* | --program-transf=* \ | |
1350 | | --program-trans=* | --program-tran=* \ | |
1351 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
1352 | program_transform_name=$ac_optarg ;; | |
1353 | ||
47964710 VS |
1354 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1355 | ac_prev=pdfdir ;; | |
1356 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1357 | pdfdir=$ac_optarg ;; | |
1358 | ||
1359 | -psdir | --psdir | --psdi | --psd | --ps) | |
1360 | ac_prev=psdir ;; | |
1361 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1362 | psdir=$ac_optarg ;; | |
1363 | ||
a848cd7e SC |
1364 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1365 | | -silent | --silent | --silen | --sile | --sil) | |
1366 | silent=yes ;; | |
1367 | ||
1368 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1369 | ac_prev=sbindir ;; | |
1370 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1371 | | --sbi=* | --sb=*) | |
1372 | sbindir=$ac_optarg ;; | |
1373 | ||
1374 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1375 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1376 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1377 | | --sha | --sh) | |
1378 | ac_prev=sharedstatedir ;; | |
1379 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1380 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1381 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1382 | | --sha=* | --sh=*) | |
1383 | sharedstatedir=$ac_optarg ;; | |
1384 | ||
1385 | -site | --site | --sit) | |
1386 | ac_prev=site ;; | |
1387 | -site=* | --site=* | --sit=*) | |
1388 | site=$ac_optarg ;; | |
1389 | ||
1390 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1391 | ac_prev=srcdir ;; | |
1392 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
1393 | srcdir=$ac_optarg ;; | |
1394 | ||
1395 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1396 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1397 | ac_prev=sysconfdir ;; | |
1398 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1399 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
1400 | sysconfdir=$ac_optarg ;; | |
1401 | ||
1402 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
1403 | ac_prev=target_alias ;; | |
1404 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
1405 | target_alias=$ac_optarg ;; | |
1406 | ||
1407 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1408 | verbose=yes ;; | |
1409 | ||
1410 | -version | --version | --versio | --versi | --vers | -V) | |
1411 | ac_init_version=: ;; | |
1412 | ||
1413 | -with-* | --with-*) | |
d589327a | 1414 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
a848cd7e | 1415 | # Reject names that are not valid shell variable names. |
d589327a VZ |
1416 | expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && |
1417 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
a848cd7e | 1418 | { (exit 1); exit 1; }; } |
d589327a VZ |
1419 | ac_package=`echo $ac_package | sed 's/[-.]/_/g'` |
1420 | eval with_$ac_package=\$ac_optarg ;; | |
a848cd7e SC |
1421 | |
1422 | -without-* | --without-*) | |
d589327a | 1423 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
a848cd7e | 1424 | # Reject names that are not valid shell variable names. |
d589327a VZ |
1425 | expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && |
1426 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
a848cd7e | 1427 | { (exit 1); exit 1; }; } |
d589327a VZ |
1428 | ac_package=`echo $ac_package | sed 's/[-.]/_/g'` |
1429 | eval with_$ac_package=no ;; | |
a848cd7e SC |
1430 | |
1431 | --x) | |
1432 | # Obsolete; use --with-x. | |
1433 | with_x=yes ;; | |
1434 | ||
1435 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1436 | | --x-incl | --x-inc | --x-in | --x-i) | |
1437 | ac_prev=x_includes ;; | |
1438 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1439 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
1440 | x_includes=$ac_optarg ;; | |
1441 | ||
1442 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1443 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1444 | ac_prev=x_libraries ;; | |
1445 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1446 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
1447 | x_libraries=$ac_optarg ;; | |
1448 | ||
d589327a | 1449 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
a848cd7e SC |
1450 | Try \`$0 --help' for more information." >&2 |
1451 | { (exit 1); exit 1; }; } | |
1452 | ;; | |
1453 | ||
1454 | *=*) | |
1455 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1456 | # Reject names that are not valid shell variable names. | |
1457 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | |
d589327a | 1458 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
a848cd7e | 1459 | { (exit 1); exit 1; }; } |
47964710 | 1460 | eval $ac_envvar=\$ac_optarg |
a848cd7e SC |
1461 | export $ac_envvar ;; |
1462 | ||
1463 | *) | |
1464 | # FIXME: should be removed in autoconf 3.0. | |
d589327a | 1465 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
a848cd7e | 1466 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
d589327a | 1467 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
a848cd7e SC |
1468 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
1469 | ;; | |
1470 | ||
1471 | esac | |
1472 | done | |
1473 | ||
1474 | if test -n "$ac_prev"; then | |
1475 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
d589327a | 1476 | { echo "$as_me: error: missing argument to $ac_option" >&2 |
a848cd7e SC |
1477 | { (exit 1); exit 1; }; } |
1478 | fi | |
1479 | ||
d589327a | 1480 | # Be sure to have absolute directory names. |
47964710 VS |
1481 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
1482 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1483 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1484 | libdir localedir mandir | |
f321ab7f | 1485 | do |
47964710 | 1486 | eval ac_val=\$$ac_var |
f321ab7f | 1487 | case $ac_val in |
47964710 VS |
1488 | [\\/$]* | ?:[\\/]* ) continue;; |
1489 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
a848cd7e | 1490 | esac |
d589327a | 1491 | { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
47964710 | 1492 | { (exit 1); exit 1; }; } |
a848cd7e SC |
1493 | done |
1494 | ||
1495 | # There might be people who depend on the old broken behavior: `$host' | |
1496 | # used to hold the argument of --host etc. | |
1497 | # FIXME: To remove some day. | |
1498 | build=$build_alias | |
1499 | host=$host_alias | |
1500 | target=$target_alias | |
1501 | ||
1502 | # FIXME: To remove some day. | |
1503 | if test "x$host_alias" != x; then | |
1504 | if test "x$build_alias" = x; then | |
1505 | cross_compiling=maybe | |
d589327a | 1506 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
a848cd7e SC |
1507 | If a cross compiler is detected then cross compile mode will be used." >&2 |
1508 | elif test "x$build_alias" != "x$host_alias"; then | |
1509 | cross_compiling=yes | |
1510 | fi | |
1511 | fi | |
1512 | ||
1513 | ac_tool_prefix= | |
1514 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1515 | ||
1516 | test "$silent" = yes && exec 6>/dev/null | |
1517 | ||
1518 | ||
47964710 VS |
1519 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1520 | ac_ls_di=`ls -di .` && | |
1521 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
d589327a | 1522 | { echo "$as_me: error: Working directory cannot be determined" >&2 |
47964710 VS |
1523 | { (exit 1); exit 1; }; } |
1524 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | |
d589327a | 1525 | { echo "$as_me: error: pwd does not report name of working directory" >&2 |
47964710 VS |
1526 | { (exit 1); exit 1; }; } |
1527 | ||
1528 | ||
a848cd7e SC |
1529 | # Find the source files, if location was not specified. |
1530 | if test -z "$srcdir"; then | |
1531 | ac_srcdir_defaulted=yes | |
47964710 | 1532 | # Try the directory containing this script, then the parent directory. |
d589327a VZ |
1533 | ac_confdir=`$as_dirname -- "$0" || |
1534 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1535 | X"$0" : 'X\(//\)[^/]' \| \ | |
1536 | X"$0" : 'X\(//\)$' \| \ | |
1537 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | |
1538 | echo X"$0" | | |
47964710 VS |
1539 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
1540 | s//\1/ | |
1541 | q | |
1542 | } | |
1543 | /^X\(\/\/\)[^/].*/{ | |
1544 | s//\1/ | |
1545 | q | |
1546 | } | |
1547 | /^X\(\/\/\)$/{ | |
1548 | s//\1/ | |
1549 | q | |
1550 | } | |
1551 | /^X\(\/\).*/{ | |
1552 | s//\1/ | |
1553 | q | |
1554 | } | |
1555 | s/.*/./; q'` | |
a848cd7e | 1556 | srcdir=$ac_confdir |
47964710 | 1557 | if test ! -r "$srcdir/$ac_unique_file"; then |
a848cd7e SC |
1558 | srcdir=.. |
1559 | fi | |
1560 | else | |
1561 | ac_srcdir_defaulted=no | |
1562 | fi | |
47964710 VS |
1563 | if test ! -r "$srcdir/$ac_unique_file"; then |
1564 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
d589327a | 1565 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
a848cd7e | 1566 | { (exit 1); exit 1; }; } |
a848cd7e | 1567 | fi |
47964710 VS |
1568 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
1569 | ac_abs_confdir=`( | |
d589327a | 1570 | cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 |
a848cd7e | 1571 | { (exit 1); exit 1; }; } |
47964710 VS |
1572 | pwd)` |
1573 | # When building in place, set srcdir=. | |
1574 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1575 | srcdir=. | |
1576 | fi | |
1577 | # Remove unnecessary trailing slashes from srcdir. | |
1578 | # Double slashes in file names in object file debugging info | |
1579 | # mess up M-x gdb in Emacs. | |
1580 | case $srcdir in | |
1581 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1582 | esac | |
1583 | for ac_var in $ac_precious_vars; do | |
1584 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1585 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1586 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1587 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1588 | done | |
a848cd7e SC |
1589 | |
1590 | # | |
1591 | # Report the --help message. | |
1592 | # | |
1593 | if test "$ac_init_help" = "long"; then | |
1594 | # Omit some internal or obsolete options to make the list less imposing. | |
1595 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1596 | cat <<_ACEOF | |
f3239c21 | 1597 | \`configure' configures wxWidgets 2.9.1 to adapt to many kinds of systems. |
a848cd7e SC |
1598 | |
1599 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1600 | ||
1601 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1602 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1603 | ||
1604 | Defaults for the options are specified in brackets. | |
1605 | ||
1606 | Configuration: | |
1607 | -h, --help display this help and exit | |
1608 | --help=short display options specific to this package | |
1609 | --help=recursive display the short help of all the included packages | |
1610 | -V, --version display version information and exit | |
1611 | -q, --quiet, --silent do not print \`checking...' messages | |
1612 | --cache-file=FILE cache test results in FILE [disabled] | |
1613 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1614 | -n, --no-create do not create output files | |
1615 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1616 | ||
a848cd7e SC |
1617 | Installation directories: |
1618 | --prefix=PREFIX install architecture-independent files in PREFIX | |
d589327a | 1619 | [$ac_default_prefix] |
a848cd7e | 1620 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
d589327a | 1621 | [PREFIX] |
a848cd7e SC |
1622 | |
1623 | By default, \`make install' will install all the files in | |
1624 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1625 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1626 | for instance \`--prefix=\$HOME'. | |
1627 | ||
1628 | For better control, use the options below. | |
1629 | ||
1630 | Fine tuning of the installation directories: | |
d589327a VZ |
1631 | --bindir=DIR user executables [EPREFIX/bin] |
1632 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1633 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1634 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1635 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1636 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1637 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1638 | --includedir=DIR C header files [PREFIX/include] | |
1639 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1640 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1641 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1642 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1643 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1644 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1645 | --docdir=DIR documentation root [DATAROOTDIR/doc/wxwidgets] | |
1646 | --htmldir=DIR html documentation [DOCDIR] | |
1647 | --dvidir=DIR dvi documentation [DOCDIR] | |
1648 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1649 | --psdir=DIR ps documentation [DOCDIR] | |
a848cd7e SC |
1650 | _ACEOF |
1651 | ||
1652 | cat <<\_ACEOF | |
1653 | ||
1654 | X features: | |
1655 | --x-includes=DIR X include files are in DIR | |
1656 | --x-libraries=DIR X library files are in DIR | |
1657 | ||
1658 | System types: | |
1659 | --build=BUILD configure for building on BUILD [guessed] | |
1660 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
a848cd7e SC |
1661 | _ACEOF |
1662 | fi | |
1663 | ||
1664 | if test -n "$ac_init_help"; then | |
1665 | case $ac_init_help in | |
f3239c21 | 1666 | short | recursive ) echo "Configuration of wxWidgets 2.9.1:";; |
a848cd7e SC |
1667 | esac |
1668 | cat <<\_ACEOF | |
1669 | ||
1670 | Optional Features: | |
1671 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
1672 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
6e198e97 | 1673 | --disable-gui don't build GUI parts of the library |
77ffb593 JS |
1674 | --enable-monolithic build wxWidgets as single library |
1675 | --enable-plugins build parts of wxWidgets as loadable components | |
6e198e97 VZ |
1676 | --enable-official_build official build of wxWidgets (win32 DLL only) |
1677 | --enable-vendor=VENDOR vendor name (win32 DLL only) | |
d970f7d5 | 1678 | --disable-all-features disable all optional features to build minimal library |
77ffb593 | 1679 | --enable-universal use wxWidgets GUI controls instead of native ones |
a848cd7e | 1680 | --enable-nanox use NanoX |
f34ca037 | 1681 | --disable-gtk2 use GTK+ 1.2 instead of 2.0 |
a848cd7e | 1682 | --enable-gpe use GNOME PDA Environment features if possible |
89b1afb4 VZ |
1683 | --enable-debug build library for debugging |
1684 | --disable-debug_flag disable all debugging support | |
1685 | --enable-debug_info generate debug information | |
1686 | --enable-debug_gdb create code with extra GDB debugging information | |
1687 | --enable-debug_cntxt obsolete, don't use: use wxDebugContext | |
1688 | --enable-mem_tracing obsolete, don't use: create code with memory tracing | |
6e198e97 | 1689 | --disable-shared create static library instead of shared |
a848cd7e | 1690 | --enable-stl use STL for containers |
6e198e97 VZ |
1691 | --enable-std_iostreams use standard C++ stream classes |
1692 | --enable-std_string use standard C++ string classes | |
1693 | --disable-unicode compile without Unicode support | |
1694 | --enable-mslu use MS Layer for Unicode on Windows 9x (Win32 only) | |
1695 | --enable-utf8 use UTF-8 representation for strings (Unix only) | |
24b67be4 | 1696 | --enable-utf8only only support UTF-8 locales in UTF-8 build (Unix only) |
81727065 | 1697 | --enable-extended_rtti use extended RTTI (XTI) |
a848cd7e | 1698 | --enable-omf use OMF object format |
44710405 | 1699 | --disable-optimise compile without optimisations |
a848cd7e SC |
1700 | --enable-profile create code with profiling information |
1701 | --enable-no_rtti create code without RTTI information | |
1702 | --enable-no_exceptions create code without C++ exceptions handling | |
1703 | --enable-permissive compile code disregarding strict ANSI | |
1704 | --enable-no_deps create code without dependency information | |
70c536f3 | 1705 | --disable-vararg_macros don't use vararg macros, even if they are supported |
3442c078 | 1706 | --enable-universal_binary create Mac PowerPC and Intel Universal binary |
abb6edd1 VS |
1707 | --enable-compat26 enable wxWidgets 2.6 compatibility |
1708 | --disable-compat28 disable wxWidgets 2.8 compatibility | |
ffa0583f | 1709 | --disable-rpath disable use of rpath for uninstalled builds |
931d7698 | 1710 | --enable-objc_uniquifying enable Objective-C class name uniquifying |
a2bd84a5 | 1711 | --disable-visibility disable use of ELF symbols visibility even if supported |
7beff712 | 1712 | --disable-tls disable use of compiler TLS support |
a848cd7e | 1713 | --enable-intl use internationalization system |
6e4ae332 | 1714 | --enable-xlocale use x-locale support (requires wxLocale) |
a848cd7e SC |
1715 | --enable-config use wxConfig (and derived) classes |
1716 | --enable-protocols use wxProtocol and derived classes | |
1717 | --enable-ftp use wxFTP (requires wxProtocol | |
1718 | --enable-http use wxHTTP (requires wxProtocol | |
1719 | --enable-fileproto use wxFileProto class (requires wxProtocol | |
1720 | --enable-sockets use socket/network classes | |
8575ff50 | 1721 | --enable-ipv6 enable IPv6 support in wxSocket |
a848cd7e SC |
1722 | --enable-ole use OLE classes (Win32 only) |
1723 | --enable-dataobj use data object classes | |
1724 | --enable-ipc use interprocess communication (wxSocket etc.) | |
e7ff34ed | 1725 | --enable-baseevtloop use event loop in console programs too |
05787cec | 1726 | --enable-epollloop use wxEpollDispatcher class (Linux only) |
e7ff34ed | 1727 | --enable-selectloop use wxSelectDispatcher class |
178c7760 | 1728 | --enable-any use wxAny class |
a848cd7e | 1729 | --enable-apple_ieee use the Apple IEEE codec |
81f90336 | 1730 | --enable-arcstream use wxArchive streams |
4db03d26 | 1731 | --enable-base64 use base64 encoding/decoding functions |
eaff0f0d | 1732 | --enable-backtrace use wxStackWalker class for getting backtraces |
36b6448c | 1733 | --enable-catch_segvs catch signals in wxApp::OnFatalException (Unix only) |
a848cd7e SC |
1734 | --enable-cmdline use wxCmdLineParser class |
1735 | --enable-datetime use wxDateTime class | |
36b6448c | 1736 | --enable-debugreport use wxDebugReport class |
a848cd7e SC |
1737 | --enable-dialupman use dialup network classes |
1738 | --enable-dynlib use wxLibrary class for DLL loading | |
1739 | --enable-dynamicloader use (new) wxDynamicLibrary class | |
1740 | --enable-exceptions build exception-safe library | |
1741 | --enable-ffile use wxFFile class | |
1742 | --enable-file use wxFile class | |
a0219e45 | 1743 | --enable-filehistory use wxFileHistory class |
a848cd7e | 1744 | --enable-filesystem use virtual file systems classes |
ff427585 | 1745 | --enable-fontenum use wxFontEnumerator class |
a848cd7e | 1746 | --enable-fontmap use font encodings conversion classes |
26e422a9 | 1747 | --enable-fs_archive use virtual archive filesystems |
a848cd7e | 1748 | --enable-fs_inet use virtual HTTP/FTP filesystems |
916af76f | 1749 | --enable-fs_zip now replaced by fs_archive |
6b8ef0b3 | 1750 | --enable-fswatcher use wxFileSystemWatcher class |
a848cd7e SC |
1751 | --enable-geometry use geometry class |
1752 | --enable-log use logging system | |
1753 | --enable-longlong use wxLongLong class | |
1754 | --enable-mimetype use wxMimeTypesManager | |
4732e2dc | 1755 | --enable-printfposparam use wxVsnprintf() which supports positional parameters |
a848cd7e | 1756 | --enable-snglinst use wxSingleInstanceChecker class |
4732e2dc | 1757 | --enable-sound use wxSound class |
07158944 | 1758 | --enable-stdpaths use wxStandardPaths class |
a848cd7e | 1759 | --enable-stopwatch use wxStopWatch class |
07158944 | 1760 | --enable-streams use wxStream etc classes |
a848cd7e | 1761 | --enable-sysoptions use wxSystemOptions |
26e422a9 | 1762 | --enable-tarstream use wxTar streams |
a848cd7e SC |
1763 | --enable-textbuf use wxTextBuffer class |
1764 | --enable-textfile use wxTextFile class | |
1765 | --enable-timer use wxTimer class | |
4732e2dc | 1766 | --enable-variant use wxVariant class |
81f90336 | 1767 | --enable-zipstream use wxZip streams |
a848cd7e SC |
1768 | --enable-url use wxURL class |
1769 | --enable-protocol use wxProtocol class | |
1770 | --enable-protocol-http HTTP support in wxProtocol | |
1771 | --enable-protocol-ftp FTP support in wxProtocol | |
1772 | --enable-protocol-file FILE support in wxProtocol | |
1773 | --enable-threads use threads | |
91a5e00c VS |
1774 | --enable-iniconf use wxIniConfig (Win32 only) |
1775 | --enable-regkey use wxRegKey class (Win32 only) | |
a848cd7e SC |
1776 | --enable-docview use document view architecture |
1777 | --enable-help use help subsystem | |
1778 | --enable-mshtmlhelp use MS HTML Help (win32) | |
1779 | --enable-html use wxHTML sub-library | |
1780 | --enable-htmlhelp use wxHTML-based help | |
9a8f0513 | 1781 | --enable-xrc use XRC resources sub-library |
3f60522a | 1782 | --enable-aui use AUI docking library |
1c4293cb | 1783 | --enable-propgrid use wxPropertyGrid library |
d33ccbe1 | 1784 | --enable-ribbon use wxRibbon library |
54429bb3 | 1785 | --enable-stc use wxStyledTextCtrl library |
a848cd7e | 1786 | --enable-constraints use layout-constraints system |
a848cd7e SC |
1787 | --enable-loggui use standard GUI logger |
1788 | --enable-logwin use wxLogWindow | |
1789 | --enable-logdialog use wxLogDialog | |
4732e2dc VZ |
1790 | --enable-mdi use multiple document interface architecture |
1791 | --enable-mdidoc use docview architecture with MDI | |
1792 | --enable-mediactrl use wxMediaCtrl class | |
1793 | --enable-gstreamer8 force GStreamer 0.8 instead of 0.10 with the wxMediaCtrl class on unix | |
646b6ec1 | 1794 | --enable-webkit use wxWebKitCtrl (Mac) |
91dea314 | 1795 | --enable-richtext use wxRichTextCtrl |
a848cd7e | 1796 | --enable-postscript use wxPostscriptDC device context (default for gtk+) |
4732e2dc | 1797 | --enable-printarch use printing architecture |
b0fc907f | 1798 | --enable-svg use wxSVGFileDC device context |
a12bd55b | 1799 | --enable-graphics_ctx use graphics context 2D drawing API |
a848cd7e SC |
1800 | --enable-clipboard use wxClipboard class |
1801 | --enable-dnd use Drag'n'Drop classes | |
1802 | --enable-metafile use win32 metafiles | |
3c7410a5 | 1803 | --disable-controls disable compilation of all standard controls |
a848cd7e | 1804 | --enable-accel use accelerators |
3ea50042 | 1805 | --enable-animatectrl use wxAnimationCtrl class |
a848cd7e | 1806 | --enable-bmpbutton use wxBitmapButton class |
95a46303 | 1807 | --enable-bmpcombobox use wxBitmapComboBox class |
e6d984e2 | 1808 | --enable-button use wxButton class |
a848cd7e SC |
1809 | --enable-calendar use wxCalendarCtrl class |
1810 | --enable-caret use wxCaret class | |
1811 | --enable-checkbox use wxCheckBox class | |
1812 | --enable-checklst use wxCheckListBox (listbox with checkboxes) class | |
1813 | --enable-choice use wxChoice class | |
92bbdbcd | 1814 | --enable-choicebook use wxChoicebook class |
bd915ace | 1815 | --enable-collpane use wxCollapsiblePane class |
e9263684 | 1816 | --enable-colourpicker use wxColourPickerCtrl class |
a848cd7e | 1817 | --enable-combobox use wxComboBox class |
a57d600f | 1818 | --enable-comboctrl use wxComboCtrl class |
e6d984e2 | 1819 | --enable-dataviewctrl use wxDataViewCtrl class |
da98e9be | 1820 | --enable-datepick use wxDatePickerCtrl class |
e6d984e2 | 1821 | --enable-detect_sm use code to detect X11 session manager |
e9263684 | 1822 | --enable-dirpicker use wxDirPickerCtrl class |
a848cd7e | 1823 | --enable-display use wxDisplay class |
23575150 | 1824 | --enable-editablebox use wxEditableListBox class |
0cf3e587 | 1825 | --enable-filectrl use wxFileCtrl class |
e6d984e2 | 1826 | --enable-filepicker use wxFilePickerCtrl class |
e9263684 | 1827 | --enable-fontpicker use wxFontPickerCtrl class |
a848cd7e SC |
1828 | --enable-gauge use wxGauge class |
1829 | --enable-grid use wxGrid class | |
e721a2a2 | 1830 | --enable-headerctrl use wxHeaderCtrl class |
6954625c | 1831 | --enable-hyperlink use wxHyperlinkCtrl class |
a848cd7e | 1832 | --enable-imaglist use wxImageList class |
a92b5dfe | 1833 | --enable-infobar use wxInfoBar class |
a848cd7e SC |
1834 | --enable-listbook use wxListbook class |
1835 | --enable-listbox use wxListBox class | |
1836 | --enable-listctrl use wxListCtrl class | |
1837 | --enable-notebook use wxNotebook class | |
e36a1739 | 1838 | --enable-notifmsg use wxNotificationMessage class |
a57d600f | 1839 | --enable-odcombobox use wxOwnerDrawnComboBox class |
e6d984e2 | 1840 | --enable-popupwin use wxPopUpWindow class |
a848cd7e SC |
1841 | --enable-radiobox use wxRadioBox class |
1842 | --enable-radiobtn use wxRadioButton class | |
f0bb342f | 1843 | --enable-rearrangectrl use wxRearrangeList/Ctrl/Dialog |
a848cd7e SC |
1844 | --enable-sash use wxSashWindow class |
1845 | --enable-scrollbar use wxScrollBar class and scrollable windows | |
3f7f284d | 1846 | --enable-searchctrl use wxSearchCtrl class |
a848cd7e SC |
1847 | --enable-slider use wxSlider class |
1848 | --enable-spinbtn use wxSpinButton class | |
1849 | --enable-spinctrl use wxSpinCtrl class | |
1850 | --enable-splitter use wxSplitterWindow class | |
1851 | --enable-statbmp use wxStaticBitmap class | |
1852 | --enable-statbox use wxStaticBox class | |
1853 | --enable-statline use wxStaticLine class | |
1854 | --enable-stattext use wxStaticText class | |
1855 | --enable-statusbar use wxStatusBar class | |
4f167b46 | 1856 | --enable-taskbaricon use wxTaskBarIcon class |
e6d984e2 | 1857 | --enable-tbarnative use native wxToolBar class |
a848cd7e | 1858 | --enable-textctrl use wxTextCtrl class |
e6d984e2 | 1859 | --enable-tipwindow use wxTipWindow class |
a848cd7e SC |
1860 | --enable-togglebtn use wxToggleButton class |
1861 | --enable-toolbar use wxToolBar class | |
5ec3bc43 | 1862 | --enable-toolbook use wxToolbook class |
e6d984e2 | 1863 | --enable-treebook use wxTreebook class |
a848cd7e | 1864 | --enable-treectrl use wxTreeCtrl class |
a848cd7e | 1865 | --enable-commondlg use all common dialogs |
319c5ed4 | 1866 | --enable-aboutdlg use wxAboutBox |
a848cd7e SC |
1867 | --enable-choicedlg use wxChoiceDialog |
1868 | --enable-coldlg use wxColourDialog | |
1869 | --enable-filedlg use wxFileDialog | |
1870 | --enable-finddlg use wxFindReplaceDialog | |
1871 | --enable-fontdlg use wxFontDialog | |
1872 | --enable-dirdlg use wxDirDialog | |
1873 | --enable-msgdlg use wxMessageDialog | |
1874 | --enable-numberdlg use wxNumberEntryDialog | |
1875 | --enable-splash use wxSplashScreen | |
1876 | --enable-textdlg use wxTextDialog | |
1877 | --enable-tipdlg use startup tips | |
1878 | --enable-progressdlg use wxProgressDialog | |
1879 | --enable-wizarddlg use wxWizard | |
1880 | --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes | |
1881 | --enable-miniframe use wxMiniFrame class | |
1882 | --enable-tooltips use wxToolTip class | |
1883 | --enable-splines use spline drawing code | |
fbe2ca43 | 1884 | --enable-mousewheel use mousewheel |
a848cd7e SC |
1885 | --enable-validators use wxValidator and derived classes |
1886 | --enable-busyinfo use wxBusyInfo | |
4cb1d3da | 1887 | --enable-joystick use wxJoystick |
38b4a946 | 1888 | --enable-metafiles use wxMetaFile (Win32 only) |
a848cd7e SC |
1889 | --enable-dragimage use wxDragImage |
1890 | --enable-accessibility enable accessibility support | |
9b7e0226 | 1891 | --enable-uiactionsim use wxUIActionSimulator (experimental) |
a848cd7e SC |
1892 | --enable-palette use wxPalette class |
1893 | --enable-image use wxImage class | |
1894 | --enable-gif use gif images (GIF file format) | |
1895 | --enable-pcx use pcx images (PCX file format) | |
bb9e79c0 | 1896 | --enable-tga use tga images (TGA file format) |
a848cd7e SC |
1897 | --enable-iff use iff images (IFF file format) |
1898 | --enable-pnm use pnm images (PNM file format) | |
1899 | --enable-xpm use xpm images (XPM file format) | |
1e9a3d4b | 1900 | --enable-ico_cur use Windows ICO and CUR formats |
5d18e029 | 1901 | --enable-dccache cache temporary wxDC objects (Win32 only) |
0295153c | 1902 | --enable-ps-in-msw use PS printing in wxMSW (Win32 only) |
6517fa86 | 1903 | --enable-ownerdrawn use owner drawn controls (Win32 and OS/2 only) |
5d18e029 | 1904 | --enable-uxtheme enable support for Windows XP themed look (Win32 only) |
f77c0fe3 | 1905 | --enable-wxdib use wxDIB class (Win32 only) |
75a29ef1 | 1906 | --enable-autoidman use automatic ids management |
a848cd7e SC |
1907 | --disable-largefile omit support for large files |
1908 | --disable-gtktest do not try to compile and run a test GTK+ program | |
1909 | --disable-gtktest Do not try to compile and run a test GTK program | |
1910 | --disable-sdltest Do not try to compile and run a test SDL program | |
1911 | --enable-omf use OMF object format (OS/2) | |
f10e38c4 VZ |
1912 | --disable-dependency-tracking |
1913 | don't use dependency tracking even if the compiler | |
1914 | can | |
ebee3cd0 VS |
1915 | --disable-precomp-headers |
1916 | don't use precompiled headers even if compiler can | |
a848cd7e SC |
1917 | |
1918 | Optional Packages: | |
1919 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1920 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
1c14217d | 1921 | --without-subdirs don't generate makefiles for samples/demos/... |
6e198e97 VZ |
1922 | --with-flavour=NAME specify a name to identify this build |
1923 | --with-themes=all|list use only the specified comma-separated list of wxUniversal themes | |
f34ca037 | 1924 | --with-gtk[=VERSION] use GTK+, VERSION can be 2 (default), 1 or "any" |
a848cd7e | 1925 | --with-motif use Motif/Lesstif |
2ea057f9 SC |
1926 | --with-osx_carbon use Mac OS X (Carbon) |
1927 | --with-osx_cocoa use Mac OS X (Cocoa) | |
80aa2a2f | 1928 | --with-osx_iphone use iPhone OS X port |
f10f4c87 VZ |
1929 | --with-osx use Mac OS X (default port, currently Carbon) |
1930 | --with-carbon same as --with-osx_carbon | |
1931 | --with-cocoa same as --with-osx_cocoa | |
80aa2a2f | 1932 | --with-iphone same as --with-osx_iphone |
f10f4c87 VZ |
1933 | --with-mac same as --with-osx |
1934 | --with-old_cocoa use old, deprecated, Cocoa port | |
a848cd7e SC |
1935 | --with-wine use Wine |
1936 | --with-msw use MS-Windows | |
1937 | --with-pm use OS/2 Presentation Manager | |
1938 | --with-mgl use SciTech MGL | |
b3c86150 | 1939 | --with-directfb use DirectFB |
a848cd7e SC |
1940 | --with-microwin use MicroWindows |
1941 | --with-x11 use X11 | |
1942 | --with-libpng use libpng (PNG image format) | |
1943 | --with-libjpeg use libjpeg (JPEG file format) | |
1944 | --with-libtiff use libtiff (TIFF file format) | |
1945 | --with-libxpm use libxpm (XPM file format) | |
e9efd9f1 | 1946 | --with-libiconv use libiconv (character conversion) |
a848cd7e | 1947 | --with-libmspack use libmspack (CHM help files loading) |
bd8a7646 | 1948 | --without-gtkprint don't use GTK printing support |
6e198e97 | 1949 | --without-gnomeprint don't use GNOME printing libraries |
2b850ae1 | 1950 | --with-gnomevfs use GNOME VFS for associating MIME types |
426d19f1 | 1951 | --with-hildon use Hildon framework for Nokia 770/800/810 |
a848cd7e SC |
1952 | --with-opengl use OpenGL (or Mesa) |
1953 | --with-dmalloc use dmalloc library (http://dmalloc.com/) | |
84ebfcbd | 1954 | --with-sdl use SDL for audio on Unix |
a848cd7e SC |
1955 | --with-regex enable support for wxRegEx class |
1956 | --with-zlib use zlib for LZW compression | |
a848cd7e | 1957 | --with-expat enable XML support using expat parser |
b4e05bdd DE |
1958 | --with-macosx-sdk=PATH use an OS X SDK at PATH |
1959 | --with-macosx-version-min=VER build binaries which require at least this OS X version | |
a848cd7e SC |
1960 | --with-gtk-prefix=PFX Prefix where GTK is installed (optional) |
1961 | --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional) | |
1962 | --with-x use the X Window System | |
1963 | --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib | |
1964 | --with-sdl-prefix=PFX Prefix where SDL is installed (optional) | |
1965 | --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional) | |
1966 | --with-cppunit-prefix=PFX Prefix where CppUnit is installed (optional) | |
1967 | --with-cppunit-exec-prefix=PFX Exec prefix where CppUnit is installed (optional) | |
1968 | ||
1969 | Some influential environment variables: | |
dcc1b6ad VS |
1970 | CC C compiler command |
1971 | CFLAGS C compiler flags | |
1972 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1973 | nonstandard directory <lib dir> | |
47964710 VS |
1974 | LIBS libraries to pass to the linker, e.g. -l<library> |
1975 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if | |
1976 | you have headers in a nonstandard directory <include dir> | |
dcc1b6ad VS |
1977 | CPP C preprocessor |
1978 | CXX C++ compiler command | |
1979 | CXXFLAGS C++ compiler flags | |
3ecd9f92 | 1980 | PKG_CONFIG path to pkg-config utility |
b3c86150 VS |
1981 | DIRECTFB_CFLAGS |
1982 | C compiler flags for DIRECTFB, overriding pkg-config | |
1983 | DIRECTFB_LIBS | |
1984 | linker flags for DIRECTFB, overriding pkg-config | |
47964710 | 1985 | XMKMF Path to xmkmf, Makefile generator for X Window System |
3ecd9f92 MW |
1986 | PANGOX_CFLAGS |
1987 | C compiler flags for PANGOX, overriding pkg-config | |
1988 | PANGOX_LIBS linker flags for PANGOX, overriding pkg-config | |
1989 | PANGOFT2_CFLAGS | |
1990 | C compiler flags for PANGOFT2, overriding pkg-config | |
1991 | PANGOFT2_LIBS | |
1992 | linker flags for PANGOFT2, overriding pkg-config | |
1993 | PANGOXFT_CFLAGS | |
1994 | C compiler flags for PANGOXFT, overriding pkg-config | |
1995 | PANGOXFT_LIBS | |
1996 | linker flags for PANGOXFT, overriding pkg-config | |
bd8a7646 RR |
1997 | GTKPRINT_CFLAGS |
1998 | C compiler flags for GTKPRINT, overriding pkg-config | |
1999 | GTKPRINT_LIBS | |
2000 | linker flags for GTKPRINT, overriding pkg-config | |
3ecd9f92 MW |
2001 | LIBGNOMEPRINTUI_CFLAGS |
2002 | C compiler flags for LIBGNOMEPRINTUI, overriding pkg-config | |
2003 | LIBGNOMEPRINTUI_LIBS | |
2004 | linker flags for LIBGNOMEPRINTUI, overriding pkg-config | |
2005 | GNOMEVFS_CFLAGS | |
2006 | C compiler flags for GNOMEVFS, overriding pkg-config | |
2007 | GNOMEVFS_LIBS | |
2008 | linker flags for GNOMEVFS, overriding pkg-config | |
2009 | HILDON_CFLAGS | |
2010 | C compiler flags for HILDON, overriding pkg-config | |
2011 | HILDON_LIBS linker flags for HILDON, overriding pkg-config | |
426d19f1 JS |
2012 | HILDON2_CFLAGS |
2013 | C compiler flags for HILDON2, overriding pkg-config | |
2014 | HILDON2_LIBS | |
2015 | linker flags for HILDON2, overriding pkg-config | |
64b75e64 RD |
2016 | CAIRO_CFLAGS |
2017 | C compiler flags for CAIRO, overriding pkg-config | |
2018 | CAIRO_LIBS linker flags for CAIRO, overriding pkg-config | |
3ecd9f92 MW |
2019 | GST_CFLAGS C compiler flags for GST, overriding pkg-config |
2020 | GST_LIBS linker flags for GST, overriding pkg-config | |
a848cd7e SC |
2021 | |
2022 | Use these variables to override the choices made by `configure' or to help | |
2023 | it to find libraries and programs with nonstandard names/locations. | |
2024 | ||
77ffb593 | 2025 | Report bugs to <wx-dev@lists.wxwidgets.org>. |
a848cd7e | 2026 | _ACEOF |
47964710 | 2027 | ac_status=$? |
a848cd7e SC |
2028 | fi |
2029 | ||
2030 | if test "$ac_init_help" = "recursive"; then | |
2031 | # If there are subdirs, report their specific --help. | |
a848cd7e | 2032 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
d589327a | 2033 | test -d "$ac_dir" || continue |
a848cd7e SC |
2034 | ac_builddir=. |
2035 | ||
47964710 VS |
2036 | case "$ac_dir" in |
2037 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
2038 | *) | |
d589327a | 2039 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
47964710 | 2040 | # A ".." for each directory in $ac_dir_suffix. |
d589327a | 2041 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
47964710 VS |
2042 | case $ac_top_builddir_sub in |
2043 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
2044 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
2045 | esac ;; | |
2046 | esac | |
2047 | ac_abs_top_builddir=$ac_pwd | |
2048 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
2049 | # for backward compatibility: | |
2050 | ac_top_builddir=$ac_top_build_prefix | |
a848cd7e SC |
2051 | |
2052 | case $srcdir in | |
47964710 | 2053 | .) # We are building in place. |
a848cd7e | 2054 | ac_srcdir=. |
47964710 VS |
2055 | ac_top_srcdir=$ac_top_builddir_sub |
2056 | ac_abs_top_srcdir=$ac_pwd ;; | |
2057 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
a848cd7e | 2058 | ac_srcdir=$srcdir$ac_dir_suffix; |
47964710 VS |
2059 | ac_top_srcdir=$srcdir |
2060 | ac_abs_top_srcdir=$srcdir ;; | |
2061 | *) # Relative name. | |
2062 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
2063 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
2064 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
4db03d26 | 2065 | esac |
47964710 VS |
2066 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
2067 | ||
2068 | cd "$ac_dir" || { ac_status=$?; continue; } | |
2069 | # Check for guested configure. | |
2070 | if test -f "$ac_srcdir/configure.gnu"; then | |
2071 | echo && | |
2072 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
2073 | elif test -f "$ac_srcdir/configure"; then | |
2074 | echo && | |
2075 | $SHELL "$ac_srcdir/configure" --help=recursive | |
a848cd7e | 2076 | else |
d589327a | 2077 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
47964710 VS |
2078 | fi || ac_status=$? |
2079 | cd "$ac_pwd" || { ac_status=$?; break; } | |
a848cd7e SC |
2080 | done |
2081 | fi | |
2082 | ||
47964710 | 2083 | test -n "$ac_init_help" && exit $ac_status |
a848cd7e SC |
2084 | if $ac_init_version; then |
2085 | cat <<\_ACEOF | |
f3239c21 | 2086 | wxWidgets configure 2.9.1 |
d589327a | 2087 | generated by GNU Autoconf 2.61 |
a848cd7e | 2088 | |
47964710 | 2089 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
d589327a | 2090 | 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. |
a848cd7e SC |
2091 | This configure script is free software; the Free Software Foundation |
2092 | gives unlimited permission to copy, distribute and modify it. | |
2093 | _ACEOF | |
47964710 | 2094 | exit |
a848cd7e | 2095 | fi |
47964710 | 2096 | cat >config.log <<_ACEOF |
a848cd7e SC |
2097 | This file contains any messages produced by compilers while |
2098 | running configure, to aid debugging if configure makes a mistake. | |
2099 | ||
f3239c21 | 2100 | It was created by wxWidgets $as_me 2.9.1, which was |
d589327a | 2101 | generated by GNU Autoconf 2.61. Invocation command line was |
a848cd7e SC |
2102 | |
2103 | $ $0 $@ | |
2104 | ||
2105 | _ACEOF | |
47964710 | 2106 | exec 5>>config.log |
a848cd7e SC |
2107 | { |
2108 | cat <<_ASUNAME | |
2109 | ## --------- ## | |
2110 | ## Platform. ## | |
2111 | ## --------- ## | |
2112 | ||
2113 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
2114 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
2115 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
2116 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
2117 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
2118 | ||
2119 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
2120 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
2121 | ||
2122 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
2123 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
2124 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
47964710 | 2125 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
a848cd7e SC |
2126 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
2127 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
2128 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
2129 | ||
2130 | _ASUNAME | |
2131 | ||
2132 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2133 | for as_dir in $PATH | |
2134 | do | |
2135 | IFS=$as_save_IFS | |
2136 | test -z "$as_dir" && as_dir=. | |
d589327a | 2137 | echo "PATH: $as_dir" |
a848cd7e | 2138 | done |
47964710 | 2139 | IFS=$as_save_IFS |
a848cd7e SC |
2140 | |
2141 | } >&5 | |
2142 | ||
2143 | cat >&5 <<_ACEOF | |
2144 | ||
2145 | ||
2146 | ## ----------- ## | |
2147 | ## Core tests. ## | |
2148 | ## ----------- ## | |
2149 | ||
2150 | _ACEOF | |
2151 | ||
2152 | ||
2153 | # Keep a trace of the command line. | |
2154 | # Strip out --no-create and --no-recursion so they do not pile up. | |
2155 | # Strip out --silent because we don't want to record it for future runs. | |
2156 | # Also quote any args containing shell meta-characters. | |
2157 | # Make two passes to allow for proper duplicate-argument suppression. | |
2158 | ac_configure_args= | |
2159 | ac_configure_args0= | |
2160 | ac_configure_args1= | |
a848cd7e SC |
2161 | ac_must_keep_next=false |
2162 | for ac_pass in 1 2 | |
2163 | do | |
2164 | for ac_arg | |
2165 | do | |
2166 | case $ac_arg in | |
2167 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
2168 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
2169 | | -silent | --silent | --silen | --sile | --sil) | |
2170 | continue ;; | |
47964710 | 2171 | *\'*) |
d589327a | 2172 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
a848cd7e SC |
2173 | esac |
2174 | case $ac_pass in | |
2175 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
2176 | 2) | |
2177 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
2178 | if test $ac_must_keep_next = true; then | |
ac1cb8d3 | 2179 | ac_must_keep_next=false # Got value, back to normal. |
a848cd7e | 2180 | else |
ac1cb8d3 VS |
2181 | case $ac_arg in |
2182 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
2183 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
2184 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
2185 | | -with-* | --with-* | -without-* | --without-* | --x) | |
2186 | case "$ac_configure_args0 " in | |
2187 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
2188 | esac | |
2189 | ;; | |
2190 | -* ) ac_must_keep_next=true ;; | |
2191 | esac | |
a848cd7e | 2192 | fi |
47964710 | 2193 | ac_configure_args="$ac_configure_args '$ac_arg'" |
a848cd7e SC |
2194 | ;; |
2195 | esac | |
2196 | done | |
2197 | done | |
2198 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | |
2199 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
2200 | ||
2201 | # When interrupted or exit'd, cleanup temporary files, and complete | |
2202 | # config.log. We remove comments because anyway the quotes in there | |
2203 | # would cause problems or look ugly. | |
47964710 VS |
2204 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
2205 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
a848cd7e SC |
2206 | trap 'exit_status=$? |
2207 | # Save into config.log some information that might help in debugging. | |
2208 | { | |
2209 | echo | |
2210 | ||
2211 | cat <<\_ASBOX | |
2212 | ## ---------------- ## | |
2213 | ## Cache variables. ## | |
2214 | ## ---------------- ## | |
2215 | _ASBOX | |
2216 | echo | |
2217 | # The following way of writing the cache mishandles newlines in values, | |
47964710 VS |
2218 | ( |
2219 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
2220 | eval ac_val=\$$ac_var | |
2221 | case $ac_val in #( | |
2222 | *${as_nl}*) | |
2223 | case $ac_var in #( | |
d589327a VZ |
2224 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
2225 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; | |
47964710 VS |
2226 | esac |
2227 | case $ac_var in #( | |
2228 | _ | IFS | as_nl) ;; #( | |
2229 | *) $as_unset $ac_var ;; | |
2230 | esac ;; | |
2231 | esac | |
2232 | done | |
a848cd7e | 2233 | (set) 2>&1 | |
47964710 VS |
2234 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
2235 | *${as_nl}ac_space=\ *) | |
a848cd7e | 2236 | sed -n \ |
47964710 VS |
2237 | "s/'\''/'\''\\\\'\'''\''/g; |
2238 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
2239 | ;; #( | |
a848cd7e | 2240 | *) |
47964710 | 2241 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
a848cd7e | 2242 | ;; |
47964710 VS |
2243 | esac | |
2244 | sort | |
2245 | ) | |
a848cd7e SC |
2246 | echo |
2247 | ||
2248 | cat <<\_ASBOX | |
2249 | ## ----------------- ## | |
2250 | ## Output variables. ## | |
2251 | ## ----------------- ## | |
2252 | _ASBOX | |
2253 | echo | |
2254 | for ac_var in $ac_subst_vars | |
2255 | do | |
47964710 VS |
2256 | eval ac_val=\$$ac_var |
2257 | case $ac_val in | |
d589327a | 2258 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
47964710 | 2259 | esac |
d589327a | 2260 | echo "$ac_var='\''$ac_val'\''" |
a848cd7e SC |
2261 | done | sort |
2262 | echo | |
2263 | ||
2264 | if test -n "$ac_subst_files"; then | |
2265 | cat <<\_ASBOX | |
47964710 VS |
2266 | ## ------------------- ## |
2267 | ## File substitutions. ## | |
2268 | ## ------------------- ## | |
a848cd7e SC |
2269 | _ASBOX |
2270 | echo | |
2271 | for ac_var in $ac_subst_files | |
2272 | do | |
47964710 VS |
2273 | eval ac_val=\$$ac_var |
2274 | case $ac_val in | |
d589327a | 2275 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
47964710 | 2276 | esac |
d589327a | 2277 | echo "$ac_var='\''$ac_val'\''" |
a848cd7e SC |
2278 | done | sort |
2279 | echo | |
2280 | fi | |
2281 | ||
2282 | if test -s confdefs.h; then | |
2283 | cat <<\_ASBOX | |
2284 | ## ----------- ## | |
2285 | ## confdefs.h. ## | |
2286 | ## ----------- ## | |
2287 | _ASBOX | |
2288 | echo | |
47964710 | 2289 | cat confdefs.h |
a848cd7e SC |
2290 | echo |
2291 | fi | |
2292 | test "$ac_signal" != 0 && | |
d589327a VZ |
2293 | echo "$as_me: caught signal $ac_signal" |
2294 | echo "$as_me: exit $exit_status" | |
a848cd7e | 2295 | } >&5 |
47964710 VS |
2296 | rm -f core *.core core.conftest.* && |
2297 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
a848cd7e | 2298 | exit $exit_status |
47964710 | 2299 | ' 0 |
a848cd7e SC |
2300 | for ac_signal in 1 2 13 15; do |
2301 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
2302 | done | |
2303 | ac_signal=0 | |
2304 | ||
2305 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
47964710 | 2306 | rm -f -r conftest* confdefs.h |
a848cd7e SC |
2307 | |
2308 | # Predefined preprocessor variables. | |
2309 | ||
2310 | cat >>confdefs.h <<_ACEOF | |
2311 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
2312 | _ACEOF | |
2313 | ||
2314 | ||
2315 | cat >>confdefs.h <<_ACEOF | |
2316 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
2317 | _ACEOF | |
2318 | ||
2319 | ||
2320 | cat >>confdefs.h <<_ACEOF | |
2321 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
2322 | _ACEOF | |
2323 | ||
2324 | ||
2325 | cat >>confdefs.h <<_ACEOF | |
2326 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
2327 | _ACEOF | |
2328 | ||
2329 | ||
2330 | cat >>confdefs.h <<_ACEOF | |
2331 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
2332 | _ACEOF | |
2333 | ||
2334 | ||
2335 | # Let the site file select an alternate cache file if it wants to. | |
d589327a | 2336 | # Prefer explicitly selected file to automatically selected ones. |
47964710 | 2337 | if test -n "$CONFIG_SITE"; then |
d589327a | 2338 | set x "$CONFIG_SITE" |
47964710 | 2339 | elif test "x$prefix" != xNONE; then |
d589327a | 2340 | set x "$prefix/share/config.site" "$prefix/etc/config.site" |
47964710 | 2341 | else |
d589327a VZ |
2342 | set x "$ac_default_prefix/share/config.site" \ |
2343 | "$ac_default_prefix/etc/config.site" | |
a848cd7e | 2344 | fi |
d589327a VZ |
2345 | shift |
2346 | for ac_site_file | |
47964710 | 2347 | do |
a848cd7e | 2348 | if test -r "$ac_site_file"; then |
d589327a VZ |
2349 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
2350 | echo "$as_me: loading site script $ac_site_file" >&6;} | |
a848cd7e SC |
2351 | sed 's/^/| /' "$ac_site_file" >&5 |
2352 | . "$ac_site_file" | |
2353 | fi | |
2354 | done | |
2355 | ||
2356 | if test -r "$cache_file"; then | |
2357 | # Some versions of bash will fail to source /dev/null (special | |
2358 | # files actually), so we avoid doing that. | |
2359 | if test -f "$cache_file"; then | |
d589327a VZ |
2360 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
2361 | echo "$as_me: loading cache $cache_file" >&6;} | |
a848cd7e | 2362 | case $cache_file in |
47964710 VS |
2363 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
2364 | *) . "./$cache_file";; | |
a848cd7e SC |
2365 | esac |
2366 | fi | |
2367 | else | |
d589327a VZ |
2368 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
2369 | echo "$as_me: creating cache $cache_file" >&6;} | |
a848cd7e SC |
2370 | >$cache_file |
2371 | fi | |
2372 | ||
2373 | # Check that the precious variables saved in the cache have kept the same | |
2374 | # value. | |
2375 | ac_cache_corrupted=false | |
47964710 | 2376 | for ac_var in $ac_precious_vars; do |
a848cd7e SC |
2377 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
2378 | eval ac_new_set=\$ac_env_${ac_var}_set | |
47964710 VS |
2379 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
2380 | eval ac_new_val=\$ac_env_${ac_var}_value | |
a848cd7e SC |
2381 | case $ac_old_set,$ac_new_set in |
2382 | set,) | |
d589327a VZ |
2383 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
2384 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
a848cd7e SC |
2385 | ac_cache_corrupted=: ;; |
2386 | ,set) | |
d589327a VZ |
2387 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
2388 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
a848cd7e SC |
2389 | ac_cache_corrupted=: ;; |
2390 | ,);; | |
2391 | *) | |
2392 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
d589327a VZ |
2393 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
2394 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
2395 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 | |
2396 | echo "$as_me: former value: $ac_old_val" >&2;} | |
2397 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 | |
2398 | echo "$as_me: current value: $ac_new_val" >&2;} | |
2399 | ac_cache_corrupted=: | |
a848cd7e SC |
2400 | fi;; |
2401 | esac | |
2402 | # Pass precious variables to config.status. | |
2403 | if test "$ac_new_set" = set; then | |
2404 | case $ac_new_val in | |
d589327a | 2405 | *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
a848cd7e SC |
2406 | *) ac_arg=$ac_var=$ac_new_val ;; |
2407 | esac | |
2408 | case " $ac_configure_args " in | |
2409 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
2410 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
2411 | esac | |
2412 | fi | |
2413 | done | |
2414 | if $ac_cache_corrupted; then | |
d589327a VZ |
2415 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
2416 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
2417 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
2418 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
a848cd7e SC |
2419 | { (exit 1); exit 1; }; } |
2420 | fi | |
2421 | ||
a848cd7e SC |
2422 | |
2423 | ||
2424 | ||
2425 | ||
2426 | ||
2427 | ||
2428 | ||
2429 | ||
2430 | ||
2431 | ||
2432 | ||
2433 | ||
2434 | ||
2435 | ||
2436 | ||
2437 | ||
2438 | ||
2439 | ||
2440 | ||
2441 | ||
2442 | ||
2443 | ||
2444 | ||
2445 | ||
47964710 VS |
2446 | ac_ext=c |
2447 | ac_cpp='$CPP $CPPFLAGS' | |
2448 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2449 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2450 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
a848cd7e SC |
2451 | |
2452 | ||
2453 | ||
2454 | ||
2455 | ||
2456 | ac_aux_dir= | |
47964710 VS |
2457 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
2458 | if test -f "$ac_dir/install-sh"; then | |
a848cd7e SC |
2459 | ac_aux_dir=$ac_dir |
2460 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
2461 | break | |
47964710 | 2462 | elif test -f "$ac_dir/install.sh"; then |
a848cd7e SC |
2463 | ac_aux_dir=$ac_dir |
2464 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
2465 | break | |
47964710 | 2466 | elif test -f "$ac_dir/shtool"; then |
a848cd7e SC |
2467 | ac_aux_dir=$ac_dir |
2468 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
2469 | break | |
2470 | fi | |
2471 | done | |
2472 | if test -z "$ac_aux_dir"; then | |
d589327a VZ |
2473 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 |
2474 | echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} | |
a848cd7e SC |
2475 | { (exit 1); exit 1; }; } |
2476 | fi | |
47964710 VS |
2477 | |
2478 | # These three variables are undocumented and unsupported, | |
2479 | # and are intended to be withdrawn in a future Autoconf release. | |
2480 | # They can cause serious problems if a builder's source tree is in a directory | |
2481 | # whose full name contains unusual characters. | |
2482 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2483 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2484 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
2485 | ||
a848cd7e SC |
2486 | |
2487 | # Make sure we can run config.sub. | |
47964710 | 2488 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
d589327a VZ |
2489 | { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 |
2490 | echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} | |
a848cd7e SC |
2491 | { (exit 1); exit 1; }; } |
2492 | ||
d589327a VZ |
2493 | { echo "$as_me:$LINENO: checking build system type" >&5 |
2494 | echo $ECHO_N "checking build system type... $ECHO_C" >&6; } | |
a848cd7e | 2495 | if test "${ac_cv_build+set}" = set; then |
d589327a | 2496 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a848cd7e | 2497 | else |
47964710 VS |
2498 | ac_build_alias=$build_alias |
2499 | test "x$ac_build_alias" = x && | |
2500 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
2501 | test "x$ac_build_alias" = x && | |
d589327a VZ |
2502 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
2503 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | |
a848cd7e | 2504 | { (exit 1); exit 1; }; } |
47964710 | 2505 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
d589327a VZ |
2506 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 |
2507 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} | |
a848cd7e SC |
2508 | { (exit 1); exit 1; }; } |
2509 | ||
2510 | fi | |
d589327a VZ |
2511 | { echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
2512 | echo "${ECHO_T}$ac_cv_build" >&6; } | |
47964710 VS |
2513 | case $ac_cv_build in |
2514 | *-*-*) ;; | |
d589327a VZ |
2515 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 |
2516 | echo "$as_me: error: invalid value of canonical build" >&2;} | |
47964710 VS |
2517 | { (exit 1); exit 1; }; };; |
2518 | esac | |
a848cd7e | 2519 | build=$ac_cv_build |
47964710 VS |
2520 | ac_save_IFS=$IFS; IFS='-' |
2521 | set x $ac_cv_build | |
2522 | shift | |
2523 | build_cpu=$1 | |
2524 | build_vendor=$2 | |
2525 | shift; shift | |
2526 | # Remember, the first character of IFS is used to create $*, | |
2527 | # except with old shells: | |
2528 | build_os=$* | |
2529 | IFS=$ac_save_IFS | |
2530 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
2531 | ||
2532 | ||
d589327a VZ |
2533 | { echo "$as_me:$LINENO: checking host system type" >&5 |
2534 | echo $ECHO_N "checking host system type... $ECHO_C" >&6; } | |
a848cd7e | 2535 | if test "${ac_cv_host+set}" = set; then |
d589327a | 2536 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a848cd7e | 2537 | else |
47964710 VS |
2538 | if test "x$host_alias" = x; then |
2539 | ac_cv_host=$ac_cv_build | |
2540 | else | |
2541 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
d589327a VZ |
2542 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 |
2543 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} | |
a848cd7e | 2544 | { (exit 1); exit 1; }; } |
47964710 | 2545 | fi |
a848cd7e SC |
2546 | |
2547 | fi | |
d589327a VZ |
2548 | { echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
2549 | echo "${ECHO_T}$ac_cv_host" >&6; } | |
47964710 VS |
2550 | case $ac_cv_host in |
2551 | *-*-*) ;; | |
d589327a VZ |
2552 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 |
2553 | echo "$as_me: error: invalid value of canonical host" >&2;} | |
47964710 VS |
2554 | { (exit 1); exit 1; }; };; |
2555 | esac | |
a848cd7e | 2556 | host=$ac_cv_host |
47964710 VS |
2557 | ac_save_IFS=$IFS; IFS='-' |
2558 | set x $ac_cv_host | |
2559 | shift | |
2560 | host_cpu=$1 | |
2561 | host_vendor=$2 | |
2562 | shift; shift | |
2563 | # Remember, the first character of IFS is used to create $*, | |
2564 | # except with old shells: | |
2565 | host_os=$* | |
2566 | IFS=$ac_save_IFS | |
2567 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
2568 | ||
2569 | ||
a848cd7e | 2570 | |
6ab6fc6e | 2571 | if test "$cross_compiling" != "no"; then |
28c59491 VZ |
2572 | HOST_PREFIX="${host_alias}-" |
2573 | HOST_SUFFIX="-$host_alias" | |
2574 | else | |
2575 | HOST_PREFIX= | |
2576 | HOST_SUFFIX= | |
2577 | fi | |
a848cd7e SC |
2578 | |
2579 | ||
ceec2216 | 2580 | wx_major_version_number=2 |
7fd3acaf | 2581 | wx_minor_version_number=9 |
f3239c21 | 2582 | wx_release_number=1 |
7fd3acaf | 2583 | wx_subrelease_number=0 |
a848cd7e | 2584 | |
ceec2216 RL |
2585 | WX_RELEASE=$wx_major_version_number.$wx_minor_version_number |
2586 | WX_VERSION=$WX_RELEASE.$wx_release_number | |
2587 | WX_SUBVERSION=$WX_VERSION.$wx_subrelease_number | |
a848cd7e | 2588 | |
ceec2216 | 2589 | WX_MSW_VERSION=$wx_major_version_number$wx_minor_version_number$wx_release_number |
a848cd7e | 2590 | |
a848cd7e | 2591 | |
02b05020 VZ |
2592 | wx_top_builddir="`pwd`" |
2593 | ||
2594 | ||
a848cd7e SC |
2595 | |
2596 | ||
2597 | USE_UNIX=1 | |
2598 | USE_OS2=0 | |
2599 | USE_WIN32=0 | |
2600 | USE_DOS=0 | |
2601 | USE_BEOS=0 | |
2602 | USE_MAC=0 | |
2603 | ||
2604 | USE_AIX= | |
2605 | USE_BSD= USE_DARWIN= USE_FREEBSD= | |
2606 | USE_GNU= USE_HPUX= | |
2607 | USE_LINUX= | |
2608 | USE_NETBSD= | |
2609 | USE_OPENBSD= | |
2610 | USE_OSF= USE_SGI= | |
2611 | USE_SOLARIS= USE_SUN= USE_SUNOS= USE_SVR4= USE_SYSV= USE_VMS= | |
2612 | USE_ULTRIX= | |
2613 | USE_UNIXWARE= | |
2614 | ||
2615 | USE_ALPHA= | |
2616 | ||
2617 | NEEDS_D_REENTRANT_FOR_R_FUNCS=0 | |
2618 | ||
80aa2a2f | 2619 | ALL_TOOLKITS="COCOA GTK OSX_CARBON OSX_COCOA OSX_IPHONE MGL MICROWIN MOTIF MSW PM X11 DFB" |
a848cd7e | 2620 | |
f10f4c87 | 2621 | DEFAULT_wxUSE_OLD_COCOA=0 |
a848cd7e | 2622 | DEFAULT_wxUSE_GTK=0 |
2ea057f9 SC |
2623 | DEFAULT_wxUSE_OSX_CARBON=0 |
2624 | DEFAULT_wxUSE_OSX_COCOA=0 | |
80aa2a2f | 2625 | DEFAULT_wxUSE_OSX_IPHONE=0 |
a848cd7e SC |
2626 | DEFAULT_wxUSE_MGL=0 |
2627 | DEFAULT_wxUSE_MICROWIN=0 | |
2628 | DEFAULT_wxUSE_MOTIF=0 | |
2629 | DEFAULT_wxUSE_MSW=0 | |
2630 | DEFAULT_wxUSE_PM=0 | |
2631 | DEFAULT_wxUSE_X11=0 | |
b3c86150 | 2632 | DEFAULT_wxUSE_DFB=0 |
a848cd7e | 2633 | |
f10f4c87 | 2634 | DEFAULT_DEFAULT_wxUSE_OLD_COCOA=0 |
a848cd7e | 2635 | DEFAULT_DEFAULT_wxUSE_GTK=0 |
2ea057f9 SC |
2636 | DEFAULT_DEFAULT_wxUSE_OSX_CARBON=0 |
2637 | DEFAULT_DEFAULT_wxUSE_OSX_COCOA=0 | |
80aa2a2f | 2638 | DEFAULT_DEFAULT_wxUSE_OSX_IPHONE=0 |
a848cd7e SC |
2639 | DEFAULT_DEFAULT_wxUSE_MGL=0 |
2640 | DEFAULT_DEFAULT_wxUSE_MICROWIN=0 | |
2641 | DEFAULT_DEFAULT_wxUSE_MOTIF=0 | |
2642 | DEFAULT_DEFAULT_wxUSE_MSW=0 | |
2643 | DEFAULT_DEFAULT_wxUSE_PM=0 | |
2644 | DEFAULT_DEFAULT_wxUSE_X11=0 | |
b3c86150 | 2645 | DEFAULT_DEFAULT_wxUSE_DFB=0 |
a848cd7e SC |
2646 | |
2647 | PROGRAM_EXT= | |
a848cd7e | 2648 | SAMPLES_RPATH_FLAG= |
2fd71613 KO |
2649 | DYLIB_RPATH_INSTALL= |
2650 | DYLIB_RPATH_POSTLINK= | |
a848cd7e | 2651 | |
a03b8b04 RD |
2652 | DEFAULT_STD_FLAG=yes |
2653 | ||
a848cd7e SC |
2654 | case "${host}" in |
2655 | *-hp-hpux* ) | |
2656 | USE_HPUX=1 | |
2657 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
2658 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 | |
a848cd7e SC |
2659 | cat >>confdefs.h <<\_ACEOF |
2660 | #define __HPUX__ 1 | |
2661 | _ACEOF | |
2662 | ||
2eef8513 | 2663 | |
c92ad099 | 2664 | CPPFLAGS="-D_HPUX_SOURCE $CPPFLAGS" |
a848cd7e SC |
2665 | ;; |
2666 | *-*-linux* ) | |
2667 | USE_LINUX=1 | |
2668 | cat >>confdefs.h <<\_ACEOF | |
2669 | #define __LINUX__ 1 | |
2670 | _ACEOF | |
2671 | ||
2672 | TMP=`uname -m` | |
2673 | if test "x$TMP" = "xalpha"; then | |
2674 | USE_ALPHA=1 | |
2675 | cat >>confdefs.h <<\_ACEOF | |
2676 | #define __ALPHA__ 1 | |
2677 | _ACEOF | |
2678 | ||
2679 | fi | |
2680 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
2681 | ;; | |
2682 | *-*-gnu* | *-*-k*bsd*-gnu ) | |
2683 | USE_GNU=1 | |
2684 | TMP=`uname -m` | |
2685 | if test "x$TMP" = "xalpha"; then | |
2686 | USE_ALPHA=1 | |
2687 | cat >>confdefs.h <<\_ACEOF | |
2688 | #define __ALPHA__ 1 | |
2689 | _ACEOF | |
2690 | ||
2691 | fi | |
2692 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
2693 | ;; | |
2694 | *-*-irix5* | *-*-irix6* ) | |
2695 | USE_SGI=1 | |
2696 | USE_SVR4=1 | |
2697 | cat >>confdefs.h <<\_ACEOF | |
2698 | #define __SGI__ 1 | |
2699 | _ACEOF | |
2700 | ||
2701 | cat >>confdefs.h <<\_ACEOF | |
2702 | #define __SVR4__ 1 | |
2703 | _ACEOF | |
2704 | ||
2705 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
2706 | ;; | |
229251af VZ |
2707 | *-*-qnx*) |
2708 | USE_QNX=1 | |
2709 | cat >>confdefs.h <<\_ACEOF | |
2710 | #define __QNX__ 1 | |
2711 | _ACEOF | |
2712 | ||
2713 | DEFAULT_DEFAULT_wxUSE_X11=1 | |
2714 | ;; | |
a848cd7e SC |
2715 | *-*-solaris2* ) |
2716 | USE_SUN=1 | |
2717 | USE_SOLARIS=1 | |
2718 | USE_SVR4=1 | |
2719 | cat >>confdefs.h <<\_ACEOF | |
2720 | #define __SUN__ 1 | |
2721 | _ACEOF | |
2722 | ||
2723 | cat >>confdefs.h <<\_ACEOF | |
2724 | #define __SOLARIS__ 1 | |
2725 | _ACEOF | |
2726 | ||
2727 | cat >>confdefs.h <<\_ACEOF | |
2728 | #define __SVR4__ 1 | |
2729 | _ACEOF | |
2730 | ||
2731 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
2732 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 | |
2733 | ;; | |
2734 | *-*-sunos4* ) | |
2735 | USE_SUN=1 | |
2736 | USE_SUNOS=1 | |
2737 | USE_BSD=1 | |
2738 | cat >>confdefs.h <<\_ACEOF | |
2739 | #define __SUN__ 1 | |
2740 | _ACEOF | |
2741 | ||
2742 | cat >>confdefs.h <<\_ACEOF | |
2743 | #define __SUNOS__ 1 | |
2744 | _ACEOF | |
2745 | ||
2746 | cat >>confdefs.h <<\_ACEOF | |
2747 | #define __BSD__ 1 | |
2748 | _ACEOF | |
2749 | ||
2750 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
2751 | ;; | |
2752 | *-*-freebsd*) | |
2753 | USE_BSD=1 | |
2754 | USE_FREEBSD=1 | |
2755 | cat >>confdefs.h <<\_ACEOF | |
2756 | #define __FREEBSD__ 1 | |
2757 | _ACEOF | |
2758 | ||
2759 | cat >>confdefs.h <<\_ACEOF | |
2760 | #define __BSD__ 1 | |
2761 | _ACEOF | |
2762 | ||
2763 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
2764 | ;; | |
c9a66001 | 2765 | *-*-openbsd*|*-*-mirbsd*) |
a848cd7e SC |
2766 | USE_BSD=1 |
2767 | USE_OPENBSD=1 | |
2768 | cat >>confdefs.h <<\_ACEOF | |
2769 | #define __OPENBSD__ 1 | |
2770 | _ACEOF | |
2771 | ||
2772 | cat >>confdefs.h <<\_ACEOF | |
2773 | #define __BSD__ 1 | |
2774 | _ACEOF | |
2775 | ||
2776 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
2777 | ;; | |
2778 | *-*-netbsd*) | |
2779 | USE_BSD=1 | |
2780 | USE_NETBSD=1 | |
2781 | cat >>confdefs.h <<\_ACEOF | |
2782 | #define __NETBSD__ 1 | |
2783 | _ACEOF | |
2784 | ||
2785 | cat >>confdefs.h <<\_ACEOF | |
2786 | #define __BSD__ 1 | |
2787 | _ACEOF | |
2788 | ||
2789 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
728258f4 | 2790 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 |
def7c04a | 2791 | |
def7c04a | 2792 | CPPFLAGS="-D_NETBSD_SOURCE -D_LIBC $CPPFLAGS" |
a848cd7e SC |
2793 | ;; |
2794 | *-*-osf* ) | |
2795 | USE_ALPHA=1 | |
2796 | USE_OSF=1 | |
2797 | cat >>confdefs.h <<\_ACEOF | |
2798 | #define __ALPHA__ 1 | |
2799 | _ACEOF | |
2800 | ||
2801 | cat >>confdefs.h <<\_ACEOF | |
2802 | #define __OSF__ 1 | |
2803 | _ACEOF | |
2804 | ||
2805 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
2806 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 | |
2807 | ;; | |
2808 | *-*-dgux5* ) | |
2809 | USE_ALPHA=1 | |
2810 | USE_SVR4=1 | |
2811 | cat >>confdefs.h <<\_ACEOF | |
2812 | #define __ALPHA__ 1 | |
2813 | _ACEOF | |
2814 | ||
2815 | cat >>confdefs.h <<\_ACEOF | |
2816 | #define __SVR4__ 1 | |
2817 | _ACEOF | |
2818 | ||
2819 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
2820 | ;; | |
2821 | *-*-sysv5* ) | |
2822 | USE_SYSV=1 | |
2823 | USE_SVR4=1 | |
2824 | cat >>confdefs.h <<\_ACEOF | |
2825 | #define __SYSV__ 1 | |
2826 | _ACEOF | |
2827 | ||
2828 | cat >>confdefs.h <<\_ACEOF | |
2829 | #define __SVR4__ 1 | |
2830 | _ACEOF | |
2831 | ||
2832 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
2833 | ;; | |
2834 | *-*-aix* ) | |
2835 | USE_AIX=1 | |
2836 | USE_SYSV=1 | |
2837 | USE_SVR4=1 | |
a848cd7e SC |
2838 | cat >>confdefs.h <<\_ACEOF |
2839 | #define __AIX__ 1 | |
2840 | _ACEOF | |
2841 | ||
2842 | cat >>confdefs.h <<\_ACEOF | |
2843 | #define __SYSV__ 1 | |
2844 | _ACEOF | |
2845 | ||
2846 | cat >>confdefs.h <<\_ACEOF | |
2847 | #define __SVR4__ 1 | |
2848 | _ACEOF | |
2849 | ||
2850 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
2851 | ;; | |
2852 | ||
2853 | *-*-*UnixWare*) | |
2854 | USE_SYSV=1 | |
2855 | USE_SVR4=1 | |
2856 | USE_UNIXWARE=1 | |
2857 | cat >>confdefs.h <<\_ACEOF | |
2858 | #define __UNIXWARE__ 1 | |
2859 | _ACEOF | |
2860 | ||
2861 | ;; | |
2862 | ||
2863 | *-*-cygwin* | *-*-mingw32* ) | |
41148443 | 2864 | PROGRAM_EXT=".exe" |
a848cd7e SC |
2865 | DEFAULT_DEFAULT_wxUSE_MSW=1 |
2866 | ;; | |
2867 | ||
2868 | *-pc-msdosdjgpp ) | |
2869 | USE_UNIX=0 | |
2870 | USE_DOS=1 | |
2871 | cat >>confdefs.h <<\_ACEOF | |
2872 | #define __DOS__ 1 | |
2873 | _ACEOF | |
2874 | ||
2875 | PROGRAM_EXT=".exe" | |
2876 | DEFAULT_DEFAULT_wxUSE_MGL=1 | |
a848cd7e SC |
2877 | ;; |
2878 | ||
2879 | *-pc-os2_emx | *-pc-os2-emx ) | |
2880 | cat >>confdefs.h <<\_ACEOF | |
2881 | #define __EMX__ 1 | |
2882 | _ACEOF | |
2883 | ||
2884 | USE_OS2=1 | |
2885 | cat >>confdefs.h <<\_ACEOF | |
2886 | #define __OS2__ 1 | |
2887 | _ACEOF | |
2888 | ||
2889 | PROGRAM_EXT=".exe" | |
2890 | DEFAULT_DEFAULT_wxUSE_PM=1 | |
2891 | CXX=gcc | |
2892 | LDFLAGS="$LDFLAGS -Zcrtdll" | |
2893 | ac_executable_extensions=".exe" | |
2894 | export ac_executable_extensions | |
2895 | ac_save_IFS="$IFS" | |
2896 | IFS='\\' | |
2897 | ac_TEMP_PATH= | |
2898 | for ac_dir in $PATH; do | |
2899 | IFS=$ac_save_IFS | |
2900 | if test -z "$ac_TEMP_PATH"; then | |
2901 | ac_TEMP_PATH="$ac_dir" | |
2902 | else | |
2903 | ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir" | |
2904 | fi | |
2905 | done | |
2906 | export PATH="$ac_TEMP_PATH" | |
2907 | unset ac_TEMP_PATH | |
a03b8b04 | 2908 | DEFAULT_STD_FLAG=no |
a848cd7e SC |
2909 | ;; |
2910 | ||
80aa2a2f VZ |
2911 | arm-apple-darwin*) |
2912 | USE_BSD=1 | |
2913 | USE_DARWIN=1 | |
2914 | cat >>confdefs.h <<\_ACEOF | |
2915 | #define __BSD__ 1 | |
2916 | _ACEOF | |
2917 | ||
2918 | cat >>confdefs.h <<\_ACEOF | |
2919 | #define __DARWIN__ 1 | |
2920 | _ACEOF | |
2921 | ||
2922 | DEFAULT_DEFAULT_wxUSE_OSX_IPHONE=1 | |
2923 | ;; | |
2924 | ||
cfda0ea8 | 2925 | *-*-darwin* ) |
a848cd7e SC |
2926 | USE_BSD=1 |
2927 | USE_DARWIN=1 | |
a848cd7e SC |
2928 | cat >>confdefs.h <<\_ACEOF |
2929 | #define __BSD__ 1 | |
2930 | _ACEOF | |
2931 | ||
2932 | cat >>confdefs.h <<\_ACEOF | |
2933 | #define __DARWIN__ 1 | |
a848cd7e SC |
2934 | _ACEOF |
2935 | ||
2936 | cat >>confdefs.h <<\_ACEOF | |
2937 | #define TARGET_CARBON 1 | |
2938 | _ACEOF | |
2939 | ||
2ea057f9 | 2940 | DEFAULT_DEFAULT_wxUSE_OSX_CARBON=1 |
a848cd7e SC |
2941 | ;; |
2942 | ||
2943 | *-*-beos* ) | |
2944 | USE_BEOS=1 | |
2945 | cat >>confdefs.h <<\_ACEOF | |
2946 | #define __BEOS__ 1 | |
2947 | _ACEOF | |
2948 | ||
2949 | ;; | |
2950 | ||
2951 | *) | |
d589327a VZ |
2952 | { echo "$as_me:$LINENO: WARNING: *** System type ${host} is unknown, assuming generic Unix and continuing nevertheless." >&5 |
2953 | echo "$as_me: WARNING: *** System type ${host} is unknown, assuming generic Unix and continuing nevertheless." >&2;} | |
2954 | { echo "$as_me:$LINENO: WARNING: *** Please report the build results to wx-dev@lists.wxwidgets.org." >&5 | |
2955 | echo "$as_me: WARNING: *** Please report the build results to wx-dev@lists.wxwidgets.org." >&2;} | |
5acfd58d MW |
2956 | |
2957 | DEFAULT_DEFAULT_wxUSE_X11=1 | |
2958 | DEFAULT_wxUSE_SHARED=no | |
a848cd7e SC |
2959 | esac |
2960 | ||
2961 | ||
2962 | ||
6e198e97 | 2963 | DEFAULT_wxUSE_ALL_FEATURES=yes |
a848cd7e | 2964 | |
6e198e97 VZ |
2965 | DEFAULT_wxUSE_STD_IOSTREAM=$DEFAULT_STD_FLAG |
2966 | DEFAULT_wxUSE_STD_STRING=$DEFAULT_STD_FLAG | |
a848cd7e | 2967 | |
238663c1 VZ |
2968 | DEFAULT_wxUSE_DMALLOC=no |
2969 | DEFAULT_wxUSE_LIBGNOMEVFS=no | |
2970 | DEFAULT_wxUSE_LIBHILDON=no | |
426d19f1 | 2971 | DEFAULT_wxUSE_LIBHILDON2=no |
238663c1 VZ |
2972 | DEFAULT_wxUSE_LIBMSPACK=no |
2973 | DEFAULT_wxUSE_LIBSDL=no | |
a848cd7e | 2974 | |
6e198e97 | 2975 | DEFAULT_wxUSE_ACCESSIBILITY=no |
8575ff50 | 2976 | DEFAULT_wxUSE_IPV6=no |
3746e527 | 2977 | DEFAULT_wxUSE_GSTREAMER8=no |
9b7e0226 | 2978 | DEFAULT_wxUSE_UIACTIONSIMULATOR=no |
238663c1 VZ |
2979 | |
2980 | DEFAULT_wxUSE_UNICODE_UTF8=auto | |
f03637a2 FM |
2981 | DEFAULT_wxUSE_OPENGL=auto |
2982 | DEFAULT_wxUSE_MEDIACTRL=auto | |
7beff712 | 2983 | DEFAULT_wxUSE_COMPILER_TLS=auto |
f03637a2 | 2984 | |
238663c1 | 2985 | DEFAULT_wxUSE_UNICODE_UTF8_LOCALE=no |
a848cd7e | 2986 | |
57309d14 VZ |
2987 | DEFAULT_wxUSE_UNIVERSAL_BINARY=no |
2988 | ||
6e198e97 | 2989 | DEFAULT_wxUSE_OFFICIAL_BUILD=no |
a848cd7e | 2990 | |
6e198e97 | 2991 | DEFAULT_wxUSE_GTK2=yes |
a848cd7e | 2992 | |
931d7698 DE |
2993 | DEFAULT_wxUSE_OBJC_UNIQUIFYING=no |
2994 | ||
a848cd7e | 2995 | |
a848cd7e | 2996 | |
6e198e97 VZ |
2997 | |
2998 | ||
2999 | enablestring=disable | |
3000 | defaultval= | |
238663c1 | 3001 | if test -z "$defaultval"; then |
6e198e97 VZ |
3002 | if test x"$enablestring" = xdisable; then |
3003 | defaultval=yes | |
3004 | else | |
3005 | defaultval=no | |
3006 | fi | |
3007 | fi | |
3008 | ||
d589327a VZ |
3009 | { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5 |
3010 | echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6; } | |
47964710 | 3011 | # Check whether --enable-gui was given. |
a848cd7e | 3012 | if test "${enable_gui+set}" = set; then |
47964710 | 3013 | enableval=$enable_gui; |
a848cd7e | 3014 | if test "$enableval" = yes; then |
d970f7d5 | 3015 | wx_cv_use_gui='wxUSE_GUI=yes' |
a848cd7e | 3016 | else |
d970f7d5 | 3017 | wx_cv_use_gui='wxUSE_GUI=no' |
a848cd7e SC |
3018 | fi |
3019 | ||
3020 | else | |
3021 | ||
d970f7d5 | 3022 | wx_cv_use_gui='wxUSE_GUI=${'DEFAULT_wxUSE_GUI":-$defaultval}" |
a848cd7e | 3023 | |
47964710 VS |
3024 | fi |
3025 | ||
a848cd7e | 3026 | |
d970f7d5 | 3027 | eval "$wx_cv_use_gui" |
a848cd7e | 3028 | |
6e198e97 | 3029 | if test x"$enablestring" = xdisable; then |
7ac0e38e | 3030 | if test $wxUSE_GUI = no; then |
6e198e97 | 3031 | result=yes |
7ac0e38e VZ |
3032 | else |
3033 | result=no | |
6e198e97 | 3034 | fi |
a848cd7e | 3035 | else |
6e198e97 | 3036 | result=$wxUSE_GUI |
a848cd7e SC |
3037 | fi |
3038 | ||
d589327a VZ |
3039 | { echo "$as_me:$LINENO: result: $result" >&5 |
3040 | echo "${ECHO_T}$result" >&6; } | |
6e198e97 | 3041 | |
a848cd7e | 3042 | |
077c7880 | 3043 | enablestring= |
6e198e97 | 3044 | defaultval= |
238663c1 | 3045 | if test -z "$defaultval"; then |
6e198e97 VZ |
3046 | if test x"$enablestring" = xdisable; then |
3047 | defaultval=yes | |
3048 | else | |
3049 | defaultval=no | |
3050 | fi | |
3051 | fi | |
3052 | ||
d589327a VZ |
3053 | { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5 |
3054 | echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6; } | |
47964710 | 3055 | # Check whether --enable-monolithic was given. |
a848cd7e | 3056 | if test "${enable_monolithic+set}" = set; then |
47964710 | 3057 | enableval=$enable_monolithic; |
a848cd7e | 3058 | if test "$enableval" = yes; then |
d970f7d5 | 3059 | wx_cv_use_monolithic='wxUSE_MONOLITHIC=yes' |
a848cd7e | 3060 | else |
d970f7d5 | 3061 | wx_cv_use_monolithic='wxUSE_MONOLITHIC=no' |
a848cd7e SC |
3062 | fi |
3063 | ||
3064 | else | |
3065 | ||
d970f7d5 | 3066 | wx_cv_use_monolithic='wxUSE_MONOLITHIC=${'DEFAULT_wxUSE_MONOLITHIC":-$defaultval}" |
a848cd7e | 3067 | |
47964710 VS |
3068 | fi |
3069 | ||
a848cd7e | 3070 | |
d970f7d5 | 3071 | eval "$wx_cv_use_monolithic" |
a848cd7e | 3072 | |
6e198e97 | 3073 | if test x"$enablestring" = xdisable; then |
7ac0e38e | 3074 | if test $wxUSE_MONOLITHIC = no; then |
6e198e97 | 3075 | result=yes |
7ac0e38e VZ |
3076 | else |
3077 | result=no | |
6e198e97 | 3078 | fi |
a848cd7e | 3079 | else |
6e198e97 | 3080 | result=$wxUSE_MONOLITHIC |
a848cd7e SC |
3081 | fi |
3082 | ||
d589327a VZ |
3083 | { echo "$as_me:$LINENO: result: $result" >&5 |
3084 | echo "${ECHO_T}$result" >&6; } | |
6e198e97 | 3085 | |
a848cd7e | 3086 | |
077c7880 | 3087 | enablestring= |
6e198e97 | 3088 | defaultval= |
238663c1 | 3089 | if test -z "$defaultval"; then |
6e198e97 VZ |
3090 | if test x"$enablestring" = xdisable; then |
3091 | defaultval=yes | |
3092 | else | |
3093 | defaultval=no | |
3094 | fi | |
3095 | fi | |
3096 | ||
d589327a VZ |
3097 | { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-plugins" >&5 |
3098 | echo $ECHO_N "checking for --${enablestring:-enable}-plugins... $ECHO_C" >&6; } | |
47964710 | 3099 | # Check whether --enable-plugins was given. |
a848cd7e | 3100 | if test "${enable_plugins+set}" = set; then |
47964710 | 3101 | enableval=$enable_plugins; |
a848cd7e | 3102 | if test "$enableval" = yes; then |
d970f7d5 | 3103 | wx_cv_use_plugins='wxUSE_PLUGINS=yes' |
a848cd7e | 3104 | else |
d970f7d5 | 3105 | wx_cv_use_plugins='wxUSE_PLUGINS=no' |
a848cd7e SC |
3106 | fi |
3107 | ||
3108 | else | |
3109 | ||
d970f7d5 | 3110 | wx_cv_use_plugins='wxUSE_PLUGINS=${'DEFAULT_wxUSE_PLUGINS":-$defaultval}" |
a848cd7e | 3111 | |
47964710 VS |
3112 | fi |
3113 | ||
a848cd7e | 3114 | |
d970f7d5 | 3115 | eval "$wx_cv_use_plugins" |
a848cd7e | 3116 | |
6e198e97 | 3117 | if test x"$enablestring" = xdisable; then |
7ac0e38e | 3118 | if test $wxUSE_PLUGINS = no; then |
6e198e97 | 3119 | result=yes |
7ac0e38e VZ |
3120 | else |
3121 | result=no | |
6e198e97 | 3122 | fi |
a848cd7e | 3123 | else |
6e198e97 | 3124 | result=$wxUSE_PLUGINS |
a848cd7e SC |
3125 | fi |
3126 | ||
d589327a VZ |
3127 | { echo "$as_me:$LINENO: result: $result" >&5 |
3128 | echo "${ECHO_T}$result" >&6; } | |
6e198e97 | 3129 | |
a848cd7e | 3130 | |
077c7880 | 3131 | withstring=without |
47124ca6 VZ |
3132 | defaultval=$wxUSE_ALL_FEATURES |
3133 | if test -z "$defaultval"; then | |
3134 | if test x"$withstring" = xwithout; then | |
3135 | defaultval=yes | |
3136 | else | |
3137 | defaultval=no | |
3138 | fi | |
3139 | fi | |
d589327a VZ |
3140 | { echo "$as_me:$LINENO: checking for --${withstring:-with}-subdirs" >&5 |
3141 | echo $ECHO_N "checking for --${withstring:-with}-subdirs... $ECHO_C" >&6; } | |
1c14217d | 3142 | |
47964710 | 3143 | # Check whether --with-subdirs was given. |
1c14217d | 3144 | if test "${with_subdirs+set}" = set; then |
47964710 | 3145 | withval=$with_subdirs; |
1c14217d | 3146 | if test "$withval" = yes; then |
d970f7d5 | 3147 | wx_cv_use_subdirs='wxWITH_SUBDIRS=yes' |
1c14217d | 3148 | else |
d970f7d5 | 3149 | wx_cv_use_subdirs='wxWITH_SUBDIRS=no' |
1c14217d VZ |
3150 | fi |
3151 | ||
3152 | else | |
3153 | ||
47124ca6 | 3154 | wx_cv_use_subdirs='wxWITH_SUBDIRS=${'DEFAULT_wxWITH_SUBDIRS":-$defaultval}" |
1c14217d | 3155 | |
47964710 VS |
3156 | fi |
3157 | ||
1c14217d | 3158 | |
d970f7d5 | 3159 | eval "$wx_cv_use_subdirs" |
1c14217d | 3160 | |
6e198e97 VZ |
3161 | if test x"$withstring" = xwithout; then |
3162 | if test $wxWITH_SUBDIRS = yes; then | |
3163 | result=no | |
3164 | else | |
3165 | result=yes | |
3166 | fi | |
1c14217d | 3167 | else |
6e198e97 VZ |
3168 | result=$wxWITH_SUBDIRS |
3169 | fi | |
3170 | ||
d589327a VZ |
3171 | { echo "$as_me:$LINENO: result: $result" >&5 |
3172 | echo "${ECHO_T}$result" >&6; } | |
6e198e97 VZ |
3173 | |
3174 | ||
47964710 | 3175 | # Check whether --with-flavour was given. |
6e198e97 | 3176 | if test "${with_flavour+set}" = set; then |
47964710 VS |
3177 | withval=$with_flavour; WX_FLAVOUR="$withval" |
3178 | fi | |
3179 | ||
6e198e97 VZ |
3180 | |
3181 | enablestring= | |
3182 | defaultval= | |
238663c1 | 3183 | if test -z "$defaultval"; then |
6e198e97 VZ |
3184 | if test x"$enablestring" = xdisable; then |
3185 | defaultval=yes | |
3186 | else | |
3187 | defaultval=no | |
3188 | fi | |
3189 | fi | |
3190 | ||
d589327a VZ |
3191 | { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5 |
3192 | echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6; } | |
47964710 | 3193 | # Check whether --enable-official_build was given. |
6e198e97 | 3194 | if test "${enable_official_build+set}" = set; then |
47964710 | 3195 | enableval=$enable_official_build; |
6e198e97 | 3196 | if test "$enableval" = yes; then |
d970f7d5 | 3197 | wx_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes' |
6e198e97 | 3198 | else |
d970f7d5 | 3199 | wx_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no' |
6e198e97 VZ |
3200 | fi |
3201 | ||
3202 | else | |
3203 | ||
d970f7d5 | 3204 | wx_cv_use_official_build='wxUSE_OFFICIAL_BUILD=${'DEFAULT_wxUSE_OFFICIAL_BUILD":-$defaultval}" |
6e198e97 | 3205 | |
47964710 VS |
3206 | fi |
3207 | ||
6e198e97 | 3208 | |
d970f7d5 | 3209 | eval "$wx_cv_use_official_build" |
6e198e97 VZ |
3210 | |
3211 | if test x"$enablestring" = xdisable; then | |
7ac0e38e | 3212 | if test $wxUSE_OFFICIAL_BUILD = no; then |
6e198e97 | 3213 | result=yes |
7ac0e38e VZ |
3214 | else |
3215 | result=no | |
6e198e97 VZ |
3216 | fi |
3217 | else | |
3218 | result=$wxUSE_OFFICIAL_BUILD | |
3219 | fi | |
3220 | ||
d589327a VZ |
3221 | { echo "$as_me:$LINENO: result: $result" >&5 |
3222 | echo "${ECHO_T}$result" >&6; } | |
6e198e97 | 3223 | |
47964710 | 3224 | # Check whether --enable-vendor was given. |
6e198e97 | 3225 | if test "${enable_vendor+set}" = set; then |
47964710 VS |
3226 | enableval=$enable_vendor; VENDOR="$enableval" |
3227 | fi | |
3228 | ||
6e198e97 VZ |
3229 | if test "x$VENDOR" = "x"; then |
3230 | VENDOR="custom" | |
3231 | fi | |
3232 | ||
3233 | ||
3234 | enablestring=disable | |
3235 | defaultval= | |
238663c1 | 3236 | if test -z "$defaultval"; then |
6e198e97 VZ |
3237 | if test x"$enablestring" = xdisable; then |
3238 | defaultval=yes | |
3239 | else | |
3240 | defaultval=no | |
3241 | fi | |
3242 | fi | |
3243 | ||
d589327a VZ |
3244 | { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-all-features" >&5 |
3245 | echo $ECHO_N "checking for --${enablestring:-enable}-all-features... $ECHO_C" >&6; } | |
47964710 | 3246 | # Check whether --enable-all-features was given. |
6e198e97 | 3247 | if test "${enable_all_features+set}" = set; then |
47964710 | 3248 | enableval=$enable_all_features; |
6e198e97 | 3249 | if test "$enableval" = yes; then |
d970f7d5 | 3250 | wx_cv_use_all_features='wxUSE_ALL_FEATURES=yes' |
6e198e97 | 3251 | else |
d970f7d5 | 3252 | wx_cv_use_all_features='wxUSE_ALL_FEATURES=no' |
6e198e97 VZ |
3253 | fi |
3254 | ||
3255 | else | |
3256 | ||
d970f7d5 | 3257 | wx_cv_use_all_features='wxUSE_ALL_FEATURES=${'DEFAULT_wxUSE_ALL_FEATURES":-$defaultval}" |
6e198e97 | 3258 | |
47964710 VS |
3259 | fi |
3260 | ||
6e198e97 | 3261 | |
d970f7d5 | 3262 | eval "$wx_cv_use_all_features" |
6e198e97 VZ |
3263 | |
3264 | if test x"$enablestring" = xdisable; then | |
7ac0e38e | 3265 | if test $wxUSE_ALL_FEATURES = no; then |
6e198e97 | 3266 | result=yes |
7ac0e38e VZ |
3267 | else |
3268 | result=no | |
6e198e97 VZ |
3269 | fi |
3270 | else | |
3271 | result=$wxUSE_ALL_FEATURES | |
1c14217d VZ |
3272 | fi |
3273 | ||
d589327a VZ |
3274 | { echo "$as_me:$LINENO: result: $result" >&5 |
3275 | echo "${ECHO_T}$result" >&6; } | |
6e198e97 VZ |
3276 | |
3277 | ||
055400c9 VZ |
3278 | if test "$wxUSE_ALL_FEATURES" = "no"; then |
3279 | DEFAULT_wxUSE_MEDIACTRL=no | |
3280 | fi | |
3281 | ||
1c14217d | 3282 | |
a848cd7e SC |
3283 | if test "$wxUSE_GUI" = "yes"; then |
3284 | ||
3285 | ||
077c7880 | 3286 | enablestring= |
6e198e97 | 3287 | defaultval= |
238663c1 | 3288 | if test -z "$defaultval"; then |
6e198e97 VZ |
3289 | if test x"$enablestring" = xdisable; then |
3290 | defaultval=yes | |
3291 | else | |
3292 | defaultval=no | |
3293 | fi | |
3294 | fi | |
3295 | ||
d589327a VZ |
3296 | { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5 |
3297 | echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6; } | |
47964710 | 3298 | # Check whether --enable-universal was given. |
a848cd7e | 3299 | if test "${enable_universal+set}" = set; then |
47964710 | 3300 | enableval=$enable_universal; |
a848cd7e | 3301 | if test "$enableval" = yes; then |
d970f7d5 | 3302 | wx_cv_use_universal='wxUSE_UNIVERSAL=yes' |
a848cd7e | 3303 | else |
d970f7d5 | 3304 | wx_cv_use_universal='wxUSE_UNIVERSAL=no' |
a848cd7e SC |
3305 | fi |
3306 | ||
3307 | else | |
3308 | ||
d970f7d5 | 3309 | wx_cv_use_universal='wxUSE_UNIVERSAL=${'DEFAULT_wxUSE_UNIVERSAL":-$defaultval}" |
a848cd7e | 3310 | |
47964710 VS |
3311 | fi |
3312 | ||
a848cd7e | 3313 | |
d970f7d5 | 3314 | eval "$wx_cv_use_universal" |
a848cd7e | 3315 | |
6e198e97 | 3316 | if test x"$enablestring" = xdisable; then |
7ac0e38e | 3317 | if test $wxUSE_UNIVERSAL = no; then |
6e198e97 | 3318 | result=yes |
7ac0e38e VZ |
3319 | else |
3320 | result=no | |
6e198e97 | 3321 | fi |
a848cd7e | 3322 | else |
6e198e97 | 3323 | result=$wxUSE_UNIVERSAL |
a848cd7e SC |
3324 | fi |
3325 | ||
d589327a VZ |
3326 | { echo "$as_me:$LINENO: result: $result" >&5 |
3327 | echo "${ECHO_T}$result" >&6; } | |
6e198e97 VZ |
3328 | |
3329 | if test "$wxUSE_UNIVERSAL" = "yes"; then | |
3330 | ||
47964710 | 3331 | # Check whether --with-themes was given. |
6e198e97 | 3332 | if test "${with_themes+set}" = set; then |
47964710 VS |
3333 | withval=$with_themes; wxUNIV_THEMES="$withval" |
3334 | fi | |
3335 | ||
6e198e97 VZ |
3336 | fi |
3337 | ||
a848cd7e | 3338 | |
47964710 | 3339 | # Check whether --with-gtk was given. |
a848cd7e | 3340 | if test "${with_gtk+set}" = set; then |
47964710 VS |
3341 | withval=$with_gtk; wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1 |
3342 | fi | |
3343 | ||
faa5c14f | 3344 | |
47964710 | 3345 | # Check whether --with-motif was given. |
a848cd7e | 3346 | if test "${with_motif+set}" = set; then |
47964710 VS |
3347 | withval=$with_motif; wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1 |
3348 | fi | |
3349 | ||
faa5c14f | 3350 | |
2ea057f9 SC |
3351 | # Check whether --with-osx_carbon was given. |
3352 | if test "${with_osx_carbon+set}" = set; then | |
3353 | withval=$with_osx_carbon; wxUSE_OSX_CARBON="$withval" CACHE_OSX_CARBON=1 TOOLKIT_GIVEN=1 | |
3354 | fi | |
3355 | ||
3356 | ||
3357 | # Check whether --with-osx_cocoa was given. | |
3358 | if test "${with_osx_cocoa+set}" = set; then | |
3359 | withval=$with_osx_cocoa; wxUSE_OSX_COCOA="$withval" CACHE_OSX_COCOA=1 TOOLKIT_GIVEN=1 | |
3360 | fi | |
3361 | ||
3362 | ||
80aa2a2f VZ |
3363 | # Check whether --with-osx_iphone was given. |
3364 | if test "${with_osx_iphone+set}" = set; then | |
3365 | withval=$with_osx_iphone; wxUSE_OSX_IPHONE="$withval" CACHE_OSX_IPHONE=1 TOOLKIT_GIVEN=1 | |
3366 | fi | |
3367 | ||
3368 | ||
f10f4c87 VZ |
3369 | # Check whether --with-osx was given. |
3370 | if test "${with_osx+set}" = set; then | |
3371 | withval=$with_osx; wxUSE_OSX_CARBON="$withval" CACHE_OSX_CARBON=1 TOOLKIT_GIVEN=1 | |
3372 | fi | |
3373 | ||
3374 | ||
3375 | # Check whether --with-carbon was given. | |
3376 | if test "${with_carbon+set}" = set; then | |
3377 | withval=$with_carbon; wxUSE_OSX_CARBON="$withval" CACHE_OSX_CARBON=1 TOOLKIT_GIVEN=1 | |
3378 | fi | |
3379 | ||
3380 | ||
3381 | # Check whether --with-cocoa was given. | |
3382 | if test "${with_cocoa+set}" = set; then | |
3383 | withval=$with_cocoa; wxUSE_OSX_COCOA="$withval" CACHE_OSX_COCOA=1 TOOLKIT_GIVEN=1 | |
3384 | fi | |
3385 | ||
3386 | ||
80aa2a2f VZ |
3387 | # Check whether --with-iphone was given. |
3388 | if test "${with_iphone+set}" = set; then | |
3389 | withval=$with_iphone; wxUSE_OSX_IPHONE="$withval" CACHE_OSX_IPHONE=1 TOOLKIT_GIVEN=1 | |
3390 | fi | |
3391 | ||
3392 | ||
47964710 | 3393 | # Check whether --with-mac was given. |
a848cd7e | 3394 | if test "${with_mac+set}" = set; then |
2ea057f9 | 3395 | withval=$with_mac; wxUSE_OSX_CARBON="$withval" CACHE_OSX_CARBON=1 TOOLKIT_GIVEN=1 |
47964710 VS |
3396 | fi |
3397 | ||
faa5c14f | 3398 | |
f10f4c87 VZ |
3399 | # Check whether --with-old_cocoa was given. |
3400 | if test "${with_old_cocoa+set}" = set; then | |
3401 | withval=$with_old_cocoa; wxUSE_OLD_COCOA="$withval" CACHE_OLD_COCOA=1 TOOLKIT_GIVEN=1 | |
47964710 VS |
3402 | fi |
3403 | ||
faa5c14f | 3404 | |
47964710 | 3405 | # Check whether --with-wine was given. |
a848cd7e | 3406 | if test "${with_wine+set}" = set; then |
47964710 VS |
3407 | withval=$with_wine; wxUSE_WINE="$withval" CACHE_WINE=1 |
3408 | fi | |
3409 | ||
faa5c14f | 3410 | |
47964710 | 3411 | # Check whether --with-msw was given. |
a848cd7e | 3412 | if test "${with_msw+set}" = set; then |
47964710 VS |
3413 | withval=$with_msw; wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1 |
3414 | fi | |
3415 | ||
faa5c14f | 3416 | |
47964710 | 3417 | # Check whether --with-pm was given. |
a848cd7e | 3418 | if test "${with_pm+set}" = set; then |
47964710 VS |
3419 | withval=$with_pm; wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1 |
3420 | fi | |
3421 | ||
a848cd7e | 3422 | |
47964710 | 3423 | # Check whether --with-mgl was given. |
a848cd7e | 3424 | if test "${with_mgl+set}" = set; then |
47964710 VS |
3425 | withval=$with_mgl; wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1 |
3426 | fi | |
3427 | ||
7fd3acaf | 3428 | |
47964710 | 3429 | # Check whether --with-directfb was given. |
b3c86150 | 3430 | if test "${with_directfb+set}" = set; then |
47964710 VS |
3431 | withval=$with_directfb; wxUSE_DFB="$withval" wxUSE_UNIVERSAL="yes" CACHE_DFB=1 TOOLKIT_GIVEN=1 |
3432 | fi | |
3433 | ||
7fd3acaf | 3434 | |
47964710 | 3435 | # Check whether --with-microwin was given. |
a848cd7e | 3436 | if test "${with_microwin+set}" = set; then |
47964710 VS |
3437 | withval=$with_microwin; wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1 |
3438 | fi | |
3439 | ||
7fd3acaf | 3440 | |
47964710 | 3441 | # Check whether --with-x11 was given. |
a848cd7e | 3442 | if test "${with_x11+set}" = set; then |
47964710 VS |
3443 | withval=$with_x11; wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1 |
3444 | fi | |
3445 | ||
a848cd7e | 3446 | |
077c7880 | 3447 | enablestring= |
6e198e97 | 3448 | defaultval= |
238663c1 | 3449 | if test -z "$defaultval"; then |
6e198e97 VZ |
3450 | if test x"$enablestring" = xdisable; then |
3451 | defaultval=yes | |
3452 | else | |
3453 | defaultval=no | |
3454 | fi | |
3455 | fi | |
3456 | ||
d589327a VZ |
3457 | { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5 |
3458 | echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6; } | |
47964710 | 3459 | # Check whether --enable-nanox was given. |
a848cd7e | 3460 | if test "${enable_nanox+set}" = set; then |
47964710 | 3461 | enableval=$enable_nanox; |
a848cd7e | 3462 | if test "$enableval" = yes; then |
d970f7d5 | 3463 | wx_cv_use_nanox='wxUSE_NANOX=yes' |
a848cd7e | 3464 | else |
d970f7d5 | 3465 | wx_cv_use_nanox='wxUSE_NANOX=no' |
a848cd7e SC |
3466 | fi |
3467 | ||
3468 | else | |
3469 | ||
d970f7d5 | 3470 | wx_cv_use_nanox='wxUSE_NANOX=${'DEFAULT_wxUSE_NANOX":-$defaultval}" |
a848cd7e | 3471 | |
47964710 VS |
3472 | fi |
3473 | ||
a848cd7e | 3474 | |
d970f7d5 | 3475 | eval "$wx_cv_use_nanox" |
a848cd7e | 3476 | |
6e198e97 | 3477 | if test x"$enablestring" = xdisable; then |
7ac0e38e | 3478 | if test $wxUSE_NANOX = no; then |
6e198e97 | 3479 | result=yes |
7ac0e38e VZ |
3480 | else |
3481 | result=no | |
6e198e97 | 3482 | fi |
a848cd7e | 3483 | else |
6e198e97 | 3484 | result=$wxUSE_NANOX |
a848cd7e SC |
3485 | fi |
3486 | ||
d589327a VZ |
3487 | { echo "$as_me:$LINENO: result: $result" >&5 |
3488 | echo "${ECHO_T}$result" >&6; } | |
6e198e97 | 3489 | |
a848cd7e | 3490 | |
47964710 | 3491 | # Check whether --enable-gtk2 was given. |
f34ca037 | 3492 | if test "${enable_gtk2+set}" = set; then |
47964710 VS |
3493 | enableval=$enable_gtk2; wxUSE_GTK2="$enableval" |
3494 | fi | |
3495 | ||
a848cd7e | 3496 | |
077c7880 | 3497 | enablestring= |
6e198e97 | 3498 | defaultval= |
238663c1 | 3499 | if test -z "$defaultval"; then |
6e198e97 VZ |
3500 | if test x"$enablestring" = xdisable; then |
3501 | defaultval=yes | |
3502 | else | |
3503 | defaultval=no | |
3504 | fi | |
3505 | fi | |
3506 | ||
d589327a VZ |
3507 | { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gpe" >&5 |
3508 | echo $ECHO_N "checking for --${enablestring:-enable}-gpe... $ECHO_C" >&6; } | |
47964710 | 3509 | # Check whether --enable-gpe was given. |
a848cd7e | 3510 | if test "${enable_gpe+set}" = set; then |
47964710 | 3511 | enableval=$enable_gpe; |
a848cd7e | 3512 | if test "$enableval" = yes; then |
d970f7d5 | 3513 | wx_cv_use_gpe='wxUSE_GPE=yes' |
a848cd7e | 3514 | else |
d970f7d5 | 3515 | wx_cv_use_gpe='wxUSE_GPE=no' |
a848cd7e SC |
3516 | fi |
3517 | ||
3518 | else | |
3519 | ||
d970f7d5 | 3520 | wx_cv_use_gpe='wxUSE_GPE=${'DEFAULT_wxUSE_GPE":-$defaultval}" |
a848cd7e | 3521 | |
47964710 VS |
3522 | fi |
3523 | ||
a848cd7e | 3524 | |
d970f7d5 | 3525 | eval "$wx_cv_use_gpe" |
a848cd7e | 3526 | |
6e198e97 | 3527 | if test x"$enablestring" = xdisable; then |
7ac0e38e | 3528 | if test $wxUSE_GPE = no; then |
6e198e97 | 3529 | result=yes |
7ac0e38e VZ |
3530 | else |
3531 | result=no | |
6e198e97 | 3532 | fi |
a848cd7e | 3533 | else |
6e198e97 | 3534 | result=$wxUSE_GPE |
a848cd7e SC |
3535 | fi |
3536 | ||
d589327a VZ |
3537 | { echo "$as_me:$LINENO: result: $result" >&5 |
3538 | echo "${ECHO_T}$result" >&6; } | |
6e198e97 VZ |
3539 | |
3540 | ||
a848cd7e | 3541 | |
d589327a VZ |
3542 | { echo "$as_me:$LINENO: checking for toolkit" >&5 |
3543 | echo $ECHO_N "checking for toolkit... $ECHO_C" >&6; } | |
91a2809d | 3544 | |
2ea057f9 SC |
3545 | |
3546 | ||
91a2809d VZ |
3547 | # In Wine, we need to default to MSW, not GTK or MOTIF |
3548 | if test "$wxUSE_WINE" = "yes"; then | |
3549 | DEFAULT_DEFAULT_wxUSE_GTK=0 | |
3550 | DEFAULT_DEFAULT_wxUSE_MOTIF=0 | |
3551 | DEFAULT_DEFAULT_wxUSE_MSW=1 | |
3552 | wxUSE_SHARED=no | |
3553 | CC=${CC:-winegcc} | |
3554 | CXX=${CXX:-wineg++} | |
3555 | fi | |
3556 | ||
3557 | ||
3558 | if test "$wxUSE_GUI" = "yes"; then | |
3559 | ||
3560 | if test "$USE_BEOS" = 1; then | |
d589327a VZ |
3561 | { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5 |
3562 | echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;} | |
91a2809d VZ |
3563 | { (exit 1); exit 1; }; } |
3564 | fi | |
3565 | ||
3566 | if test "$TOOLKIT_GIVEN" = 1; then | |
3567 | for toolkit in $ALL_TOOLKITS; do | |
3568 | var=wxUSE_$toolkit | |
3569 | eval "value=\$${var}" | |
3570 | if test "x$value" = "xno"; then | |
3571 | eval "$var=0" | |
3572 | elif test "x$value" != "x"; then | |
3573 | eval "$var=1" | |
3574 | fi | |
3575 | ||
3576 | if test "x$value" != "x" -a "x$value" != "xyes" -a "x$value" != "xno"; then | |
3577 | eval "wx${toolkit}_VERSION=$value" | |
3578 | fi | |
3579 | done | |
3580 | else | |
3581 | for toolkit in $ALL_TOOLKITS; do | |
3582 | var=DEFAULT_DEFAULT_wxUSE_$toolkit | |
3583 | eval "wxUSE_$toolkit=\$${var}" | |
3584 | done | |
3585 | fi | |
3586 | ||
f10f4c87 | 3587 | NUM_TOOLKITS=`expr ${wxUSE_OLD_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_OSX_CARBON:-0} \ |
80aa2a2f | 3588 | + ${wxUSE_OSX_COCOA:-0} + ${wxUSE_OSX_IPHONE:-0} + ${wxUSE_MGL:-0} + ${wxUSE_DFB:-0} \ |
2ea057f9 | 3589 | + ${wxUSE_MICROWIN:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}` |
91a2809d VZ |
3590 | |
3591 | case "${host}" in | |
3592 | *-pc-os2_emx | *-pc-os2-emx ) | |
3593 | NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}` | |
3594 | esac | |
3595 | ||
3596 | case "$NUM_TOOLKITS" in | |
3597 | 1) | |
3598 | ;; | |
3599 | 0) | |
d589327a VZ |
3600 | { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5 |
3601 | echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;} | |
91a2809d VZ |
3602 | { (exit 1); exit 1; }; } |
3603 | ;; | |
3604 | *) | |
d589327a VZ |
3605 | { { echo "$as_me:$LINENO: error: Please specify at most one toolkit" >&5 |
3606 | echo "$as_me: error: Please specify at most one toolkit" >&2;} | |
91a2809d VZ |
3607 | { (exit 1); exit 1; }; } |
3608 | esac | |
3609 | ||
3610 | # to be removed when --disable-gtk2 isn't needed | |
3611 | if test "x$wxUSE_GTK2" = "xyes"; then | |
3612 | wxGTK_VERSION=2 | |
bfd62c8c | 3613 | wxUSE_GTK1=0 |
91a2809d VZ |
3614 | elif test "x$wxUSE_GTK2" = "xno"; then |
3615 | wxGTK_VERSION=1 | |
bfd62c8c | 3616 | wxUSE_GTK1=1 |
91a2809d VZ |
3617 | fi |
3618 | ||
3619 | for toolkit in $ALL_TOOLKITS; do | |
3620 | var=wxUSE_$toolkit | |
3621 | eval "value=\$${var}" | |
3622 | if test "$value" = 1; then | |
3623 | toolkit_echo=`echo $toolkit | tr '[A-Z]' '[a-z]'` | |
d589327a VZ |
3624 | { echo "$as_me:$LINENO: result: $toolkit_echo" >&5 |
3625 | echo "${ECHO_T}$toolkit_echo" >&6; } | |
91a2809d VZ |
3626 | fi |
3627 | done | |
3628 | else | |
3629 | if test "x$host_alias" != "x"; then | |
d589327a VZ |
3630 | { echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5 |
3631 | echo "${ECHO_T}base ($host_alias hosted) only" >&6; } | |
91a2809d | 3632 | else |
d589327a VZ |
3633 | { echo "$as_me:$LINENO: result: base only" >&5 |
3634 | echo "${ECHO_T}base only" >&6; } | |
91a2809d VZ |
3635 | fi |
3636 | fi | |
3637 | ||
2ea057f9 | 3638 | wxUSE_MAC=0 |
80aa2a2f VZ |
3639 | if test "$wxUSE_OSX_CARBON" = 1 \ |
3640 | -o "$wxUSE_OSX_COCOA" = 1 \ | |
3641 | -o "$wxUSE_OSX_IPHONE" = 1; then | |
2ea057f9 SC |
3642 | wxUSE_MAC=1 |
3643 | fi | |
3644 | ||
91a2809d | 3645 | |
a848cd7e | 3646 | |
d589327a VZ |
3647 | { echo "$as_me:$LINENO: checking for --with-libpng" >&5 |
3648 | echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6; } | |
a848cd7e | 3649 | |
47964710 | 3650 | # Check whether --with-libpng was given. |
a848cd7e | 3651 | if test "${with_libpng+set}" = set; then |
47964710 | 3652 | withval=$with_libpng; |
a848cd7e | 3653 | if test "$withval" = yes; then |
d970f7d5 | 3654 | wx_cv_use_libpng='wxUSE_LIBPNG=yes' |
a848cd7e | 3655 | elif test "$withval" = no; then |
d970f7d5 | 3656 | wx_cv_use_libpng='wxUSE_LIBPNG=no' |
a848cd7e | 3657 | elif test "$withval" = sys; then |
d970f7d5 | 3658 | wx_cv_use_libpng='wxUSE_LIBPNG=sys' |
a848cd7e | 3659 | elif test "$withval" = builtin; then |
d970f7d5 | 3660 | wx_cv_use_libpng='wxUSE_LIBPNG=builtin' |
a848cd7e | 3661 | else |
d589327a VZ |
3662 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5 |
3663 | echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;} | |
a848cd7e SC |
3664 | { (exit 1); exit 1; }; } |
3665 | fi | |
3666 | ||
3667 | else | |
3668 | ||
d970f7d5 | 3669 | wx_cv_use_libpng='wxUSE_LIBPNG=${'DEFAULT_wxUSE_LIBPNG":-$wxUSE_ALL_FEATURES}" |
a848cd7e | 3670 | |
47964710 VS |
3671 | fi |
3672 | ||
a848cd7e | 3673 | |
d970f7d5 | 3674 | eval "$wx_cv_use_libpng" |
a848cd7e SC |
3675 | |
3676 | if test "$wxUSE_LIBPNG" = yes; then | |
d589327a VZ |
3677 | { echo "$as_me:$LINENO: result: yes" >&5 |
3678 | echo "${ECHO_T}yes" >&6; } | |
a848cd7e | 3679 | elif test "$wxUSE_LIBPNG" = no; then |
d589327a VZ |
3680 | { echo "$as_me:$LINENO: result: no" >&5 |
3681 | echo "${ECHO_T}no" >&6; } | |
a848cd7e | 3682 | elif test "$wxUSE_LIBPNG" = sys; then |
d589327a VZ |
3683 | { echo "$as_me:$LINENO: result: system version" >&5 |
3684 | echo "${ECHO_T}system version" >&6; } | |
a848cd7e | 3685 | elif test "$wxUSE_LIBPNG" = builtin; then |
d589327a VZ |
3686 | { echo "$as_me:$LINENO: result: builtin version" >&5 |
3687 | echo "${ECHO_T}builtin version" >&6; } | |
a848cd7e | 3688 | else |
d589327a VZ |
3689 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5 |
3690 | echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;} | |
a848cd7e SC |
3691 | { (exit 1); exit 1; }; } |
3692 | fi | |
3693 | ||
3694 | ||
d589327a VZ |
3695 | { echo "$as_me:$LINENO: checking for --with-libjpeg" >&5 |
3696 | echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6; } | |
a848cd7e | 3697 | |
47964710 | 3698 | # Check whether --with-libjpeg was given. |
a848cd7e | 3699 | if test "${with_libjpeg+set}" = set; then |
47964710 | 3700 | withval=$with_libjpeg; |
a848cd7e | 3701 | if test "$withval" = yes; then |
d970f7d5 | 3702 | wx_cv_use_libjpeg='wxUSE_LIBJPEG=yes' |
a848cd7e | 3703 | elif test "$withval" = no; then |
d970f7d5 | 3704 | wx_cv_use_libjpeg='wxUSE_LIBJPEG=no' |
a848cd7e | 3705 | elif test "$withval" = sys; then |
d970f7d5 | 3706 | wx_cv_use_libjpeg='wxUSE_LIBJPEG=sys' |
a848cd7e | 3707 | elif test "$withval" = builtin; then |
d970f7d5 | 3708 | wx_cv_use_libjpeg='wxUSE_LIBJPEG=builtin' |
a848cd7e | 3709 | else |
d589327a VZ |
3710 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5 |
3711 | echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;} | |
a848cd7e SC |
3712 | { (exit 1); exit 1; }; } |
3713 | fi | |
3714 | ||
3715 | else | |
3716 | ||
d970f7d5 | 3717 | wx_cv_use_libjpeg='wxUSE_LIBJPEG=${'DEFAULT_wxUSE_LIBJPEG":-$wxUSE_ALL_FEATURES}" |
a848cd7e | 3718 | |
47964710 VS |
3719 | fi |
3720 | ||
a848cd7e | 3721 | |
d970f7d5 | 3722 | eval "$wx_cv_use_libjpeg" |
a848cd7e SC |
3723 | |
3724 | if test "$wxUSE_LIBJPEG" = yes; then | |
d589327a VZ |
3725 | { echo "$as_me:$LINENO: result: yes" >&5 |
3726 | echo "${ECHO_T}yes" >&6; } | |
a848cd7e | 3727 | elif test "$wxUSE_LIBJPEG" = no; then |
d589327a VZ |
3728 | { echo "$as_me:$LINENO: result: no" >&5 |
3729 | echo "${ECHO_T}no" >&6; } | |
a848cd7e | 3730 | elif test "$wxUSE_LIBJPEG" = sys; then |
d589327a VZ |
3731 | { echo "$as_me:$LINENO: result: system version" >&5 |
3732 | echo "${ECHO_T}system version" >&6; } | |
a848cd7e | 3733 | elif test "$wxUSE_LIBJPEG" = builtin; then |
d589327a VZ |
3734 | { echo "$as_me:$LINENO: result: builtin version" >&5 |
3735 | echo "${ECHO_T}builtin version" >&6; } | |
a848cd7e | 3736 | else |
d589327a VZ |
3737 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5 |
3738 | echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;} | |
a848cd7e SC |
3739 | { (exit 1); exit 1; }; } |
3740 | fi | |
3741 | ||
3742 | ||
d589327a VZ |
3743 | { echo "$as_me:$LINENO: checking for --with-libtiff" >&5 |
3744 | echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6; } | |
a848cd7e | 3745 | |
47964710 | 3746 | # Check whether --with-libtiff was given. |
a848cd7e | 3747 | if test "${with_libtiff+set}" = set; then |
47964710 | 3748 | withval=$with_libtiff; |
a848cd7e | 3749 | if test "$withval" = yes; then |
d970f7d5 | 3750 | wx_cv_use_libtiff='wxUSE_LIBTIFF=yes' |
a848cd7e | 3751 | elif test "$withval" = no; then |
d970f7d5 | 3752 | wx_cv_use_libtiff='wxUSE_LIBTIFF=no' |
a848cd7e | 3753 | elif test "$withval" = sys; then |
d970f7d5 | 3754 | wx_cv_use_libtiff='wxUSE_LIBTIFF=sys' |
a848cd7e | 3755 | elif test "$withval" = builtin; then |
d970f7d5 | 3756 | wx_cv_use_libtiff='wxUSE_LIBTIFF=builtin' |
a848cd7e | 3757 | else |
d589327a VZ |
3758 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5 |
3759 | echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;} | |
a848cd7e SC |
3760 | { (exit 1); exit 1; }; } |
3761 | fi | |
3762 | ||
3763 | else | |
3764 | ||
d970f7d5 | 3765 | wx_cv_use_libtiff='wxUSE_LIBTIFF=${'DEFAULT_wxUSE_LIBTIFF":-$wxUSE_ALL_FEATURES}" |
a848cd7e | 3766 | |
47964710 VS |
3767 | fi |
3768 | ||
a848cd7e | 3769 | |
d970f7d5 | 3770 | eval "$wx_cv_use_libtiff" |
a848cd7e SC |
3771 | |
3772 | if test "$wxUSE_LIBTIFF" = yes; then | |
d589327a VZ |
3773 | { echo "$as_me:$LINENO: result: yes" >&5 |
3774 | echo "${ECHO_T}yes" >&6; } | |
a848cd7e | 3775 | elif test "$wxUSE_LIBTIFF" = no; then |
d589327a VZ |
3776 | { echo "$as_me:$LINENO: result: no" >&5 |
3777 | echo "${ECHO_T}no" >&6; } | |
a848cd7e | 3778 | elif test "$wxUSE_LIBTIFF" = sys; then |
d589327a VZ |
3779 | { echo "$as_me:$LINENO: result: system version" >&5 |
3780 | echo "${ECHO_T}system version" >&6; } | |
a848cd7e | 3781 | elif test "$wxUSE_LIBTIFF" = builtin; then |
d589327a VZ |
3782 | { echo "$as_me:$LINENO: result: builtin version" >&5 |
3783 | echo "${ECHO_T}builtin version" >&6; } | |
a848cd7e | 3784 | else |
d589327a VZ |
3785 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5 |
3786 | echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;} | |
a848cd7e SC |
3787 | { (exit 1); exit 1; }; } |
3788 | fi | |
3789 | ||
3790 | ||
d589327a VZ |
3791 | { echo "$as_me:$LINENO: checking for --with-libxpm" >&5 |
3792 | echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6; } | |
a848cd7e | 3793 | |
47964710 | 3794 | # Check whether --with-libxpm was given. |
a848cd7e | 3795 | if test "${with_libxpm+set}" = set; then |
47964710 | 3796 | withval=$with_libxpm; |
a848cd7e | 3797 | if test "$withval" = yes; then |
d970f7d5 | 3798 | wx_cv_use_libxpm='wxUSE_LIBXPM=yes' |
a848cd7e | 3799 | elif test "$withval" = no; then |
d970f7d5 | 3800 | wx_cv_use_libxpm='wxUSE_LIBXPM=no' |
a848cd7e | 3801 | elif test "$withval" = sys; then |
d970f7d5 | 3802 | wx_cv_use_libxpm='wxUSE_LIBXPM=sys' |
a848cd7e | 3803 | elif test "$withval" = builtin; then |
d970f7d5 | 3804 | wx_cv_use_libxpm='wxUSE_LIBXPM=builtin' |
a848cd7e | 3805 | else |
d589327a VZ |
3806 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5 |
3807 | echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;} | |
a848cd7e SC |
3808 | { (exit 1); exit 1; }; } |
3809 | fi | |
3810 | ||
3811 | else | |
3812 | ||
d970f7d5 | 3813 | wx_cv_use_libxpm='wxUSE_LIBXPM=${'DEFAULT_wxUSE_LIBXPM":-$wxUSE_ALL_FEATURES}" |
a848cd7e | 3814 | |
47964710 VS |
3815 | fi |
3816 | ||
a848cd7e | 3817 | |
d970f7d5 | 3818 | eval "$wx_cv_use_libxpm" |
a848cd7e SC |
3819 | |
3820 | if test "$wxUSE_LIBXPM" = yes; then | |
d589327a VZ |
3821 | { echo "$as_me:$LINENO: result: yes" >&5 |
3822 | echo "${ECHO_T}yes" >&6; } | |
a848cd7e | 3823 | elif test "$wxUSE_LIBXPM" = no; then |
d589327a VZ |
3824 | { echo "$as_me:$LINENO: result: no" >&5 |
3825 | echo "${ECHO_T}no" >&6; } | |
a848cd7e | 3826 | elif test "$wxUSE_LIBXPM" = sys; then |
d589327a VZ |
3827 | { echo "$as_me:$LINENO: result: system version" >&5 |
3828 | echo "${ECHO_T}system version" >&6; } | |
a848cd7e | 3829 | elif test "$wxUSE_LIBXPM" = builtin; then |
d589327a VZ |
3830 | { echo "$as_me:$LINENO: result: builtin version" >&5 |
3831 | echo "${ECHO_T}builtin version" >&6; } | |
a848cd7e | 3832 | else |
d589327a VZ |
3833 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5 |
3834 | echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;} | |
a848cd7e SC |
3835 | { (exit 1); exit 1; }; } |
3836 | fi | |
3837 | ||
3838 | ||
e9efd9f1 VZ |
3839 | withstring= |
3840 | defaultval=$wxUSE_ALL_FEATURES | |
3841 | if test -z "$defaultval"; then | |
3842 | if test x"$withstring" = xwithout; then | |
3843 | defaultval=yes | |
3844 | else | |
3845 | defaultval=no | |
3846 | fi | |
3847 | fi | |
d589327a VZ |
3848 | { echo "$as_me:$LINENO: checking for --${withstring:-with}-libiconv" >&5 |
3849 | echo $ECHO_N "checking for --${withstring:-with}-libiconv... $ECHO_C" >&6; } | |
e9efd9f1 VZ |
3850 | |
3851 | # Check whether --with-libiconv was given. | |
3852 | if test "${with_libiconv+set}" = set; then | |
3853 | withval=$with_libiconv; | |
3854 | if test "$withval" = yes; then | |
3855 | wx_cv_use_libiconv='wxUSE_LIBICONV=yes' | |
3856 | else | |
3857 | wx_cv_use_libiconv='wxUSE_LIBICONV=no' | |
3858 | fi | |
3859 | ||
3860 | else | |
3861 | ||
3862 | wx_cv_use_libiconv='wxUSE_LIBICONV=${'DEFAULT_wxUSE_LIBICONV":-$defaultval}" | |
3863 | ||
3864 | fi | |
3865 | ||
3866 | ||
3867 | eval "$wx_cv_use_libiconv" | |
3868 | ||
3869 | if test x"$withstring" = xwithout; then | |
3870 | if test $wxUSE_LIBICONV = yes; then | |
3871 | result=no | |
3872 | else | |
3873 | result=yes | |
3874 | fi | |
3875 | else | |
3876 | result=$wxUSE_LIBICONV | |
3877 | fi | |
3878 | ||
d589327a VZ |
3879 | { echo "$as_me:$LINENO: result: $result" >&5 |
3880 | echo "${ECHO_T}$result" >&6; } | |
e9efd9f1 VZ |
3881 | |
3882 | ||
077c7880 | 3883 | withstring= |
47124ca6 VZ |
3884 | defaultval=$wxUSE_ALL_FEATURES |
3885 | if test -z "$defaultval"; then | |
3886 | if test x"$withstring" = xwithout; then | |
3887 | defaultval=yes | |
3888 | else | |
3889 | defaultval=no | |
3890 | fi | |
3891 | fi | |
d589327a VZ |
3892 | { echo "$as_me:$LINENO: checking for --${withstring:-with}-libmspack" >&5 |
3893 | echo $ECHO_N "checking for --${withstring:-with}-libmspack... $ECHO_C" >&6; } | |
a848cd7e | 3894 | |
47964710 | 3895 | # Check whether --with-libmspack was given. |
a848cd7e | 3896 | if test "${with_libmspack+set}" = set; then |
47964710 | 3897 | withval=$with_libmspack; |
a848cd7e | 3898 | if test "$withval" = yes; then |
d970f7d5 | 3899 | wx_cv_use_libmspack='wxUSE_LIBMSPACK=yes' |
a848cd7e | 3900 | else |
d970f7d5 | 3901 | wx_cv_use_libmspack='wxUSE_LIBMSPACK=no' |
a848cd7e SC |
3902 | fi |
3903 | ||
3904 | else | |
3905 | ||
47124ca6 | 3906 | wx_cv_use_libmspack='wxUSE_LIBMSPACK=${'DEFAULT_wxUSE_LIBMSPACK":-$defaultval}" |
a848cd7e | 3907 | |
47964710 VS |
3908 | fi |
3909 | ||
a848cd7e | 3910 | |
d970f7d5 | 3911 | eval "$wx_cv_use_libmspack" |
a848cd7e | 3912 | |
6e198e97 VZ |
3913 | if test x"$withstring" = xwithout; then |
3914 | if test $wxUSE_LIBMSPACK = yes; then | |
3915 | result=no | |
3916 | else | |
3917 | result=yes | |
3918 | fi | |
a848cd7e | 3919 | else |
6e198e97 | 3920 | result=$wxUSE_LIBMSPACK |
a848cd7e SC |
3921 | fi |
3922 | ||
d589327a VZ |
3923 | { echo "$as_me:$LINENO: result: $result" >&5 |
3924 | echo "${ECHO_T}$result" >&6; } | |
bd8a7646 RR |
3925 | |
3926 | ||
3927 | withstring=without | |
3928 | defaultval=$wxUSE_ALL_FEATURES | |
3929 | if test -z "$defaultval"; then | |
3930 | if test x"$withstring" = xwithout; then | |
3931 | defaultval=yes | |
3932 | else | |
3933 | defaultval=no | |
3934 | fi | |
3935 | fi | |
d589327a VZ |
3936 | { echo "$as_me:$LINENO: checking for --${withstring:-with}-gtkprint" >&5 |
3937 | echo $ECHO_N "checking for --${withstring:-with}-gtkprint... $ECHO_C" >&6; } | |
bd8a7646 | 3938 | |
47964710 | 3939 | # Check whether --with-gtkprint was given. |
bd8a7646 | 3940 | if test "${with_gtkprint+set}" = set; then |
47964710 | 3941 | withval=$with_gtkprint; |
bd8a7646 RR |
3942 | if test "$withval" = yes; then |
3943 | wx_cv_use_gtkprint='wxUSE_GTKPRINT=yes' | |
3944 | else | |
3945 | wx_cv_use_gtkprint='wxUSE_GTKPRINT=no' | |
3946 | fi | |
bd8a7646 RR |
3947 | |
3948 | else | |
3949 | ||
bd8a7646 RR |
3950 | wx_cv_use_gtkprint='wxUSE_GTKPRINT=${'DEFAULT_wxUSE_GTKPRINT":-$defaultval}" |
3951 | ||
47964710 VS |
3952 | fi |
3953 | ||
bd8a7646 RR |
3954 | |
3955 | eval "$wx_cv_use_gtkprint" | |
bd8a7646 RR |
3956 | |
3957 | if test x"$withstring" = xwithout; then | |
3958 | if test $wxUSE_GTKPRINT = yes; then | |
3959 | result=no | |
3960 | else | |
3961 | result=yes | |
3962 | fi | |
3963 | else | |
3964 | result=$wxUSE_GTKPRINT | |
3965 | fi | |
3966 | ||
d589327a VZ |
3967 | { echo "$as_me:$LINENO: result: $result" >&5 |
3968 | echo "${ECHO_T}$result" >&6; } | |
a848cd7e | 3969 | |
6e198e97 VZ |
3970 | |
3971 | withstring=without | |
47124ca6 VZ |
3972 | defaultval=$wxUSE_ALL_FEATURES |
3973 | if test -z "$defaultval"; then | |
3974 | if test x"$withstring" = xwithout; then | |
3975 | defaultval=yes | |
3976 | else | |
3977 | defaultval=no | |
3978 | fi | |
3979 | fi | |
d589327a VZ |
3980 | { echo "$as_me:$LINENO: checking for --${withstring:-with}-gnomeprint" >&5 |
3981 | echo $ECHO_N "checking for --${withstring:-with}-gnomeprint... $ECHO_C" >&6; } | |
d1c38808 | 3982 | |
47964710 | 3983 | # Check whether --with-gnomeprint was given. |
d1c38808 | 3984 | if test "${with_gnomeprint+set}" = set; then |
47964710 | 3985 | withval=$with_gnomeprint; |
d1c38808 | 3986 | if test "$withval" = yes; then |
d970f7d5 | 3987 | wx_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=yes' |
d1c38808 | 3988 | else |
d970f7d5 | 3989 | wx_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=no' |
d1c38808 VZ |
3990 | fi |
3991 | ||
3992 | else | |
3993 | ||
47124ca6 | 3994 | wx_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=${'DEFAULT_wxUSE_LIBGNOMEPRINT":-$defaultval}" |
d1c38808 | 3995 | |
47964710 VS |
3996 | fi |
3997 | ||
d1c38808 | 3998 | |
d970f7d5 | 3999 | eval "$wx_cv_use_gnomeprint" |
d1c38808 | 4000 | |
6e198e97 VZ |
4001 | if test x"$withstring" = xwithout; then |
4002 | if test $wxUSE_LIBGNOMEPRINT = yes; then | |
4003 | result=no | |
4004 | else | |
4005 | result=yes | |
4006 | fi | |
d1c38808 | 4007 | else |
6e198e97 | 4008 | result=$wxUSE_LIBGNOMEPRINT |
d1c38808 VZ |
4009 | fi |
4010 | ||
d589327a VZ |
4011 | { echo "$as_me:$LINENO: result: $result" >&5 |
4012 | echo "${ECHO_T}$result" >&6; } | |
6e198e97 | 4013 | |
d1c38808 | 4014 | |
077c7880 | 4015 | withstring= |
47124ca6 VZ |
4016 | defaultval=$wxUSE_ALL_FEATURES |
4017 | if test -z "$defaultval"; then | |
4018 | if test x"$withstring" = xwithout; then | |
4019 | defaultval=yes | |
4020 | else | |
4021 | defaultval=no | |
4022 | fi | |
4023 | fi | |
d589327a VZ |
4024 | { echo "$as_me:$LINENO: checking for --${withstring:-with}-gnomevfs" >&5 |
4025 | echo $ECHO_N "checking for --${withstring:-with}-gnomevfs... $ECHO_C" >&6; } | |
2b850ae1 | 4026 | |
47964710 | 4027 | # Check whether --with-gnomevfs was given. |
2b850ae1 | 4028 | if test "${with_gnomevfs+set}" = set; then |
47964710 | 4029 | withval=$with_gnomevfs; |
2b850ae1 | 4030 | if test "$withval" = yes; then |
d970f7d5 | 4031 | wx_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS=yes' |
2b850ae1 | 4032 | else |
d970f7d5 | 4033 | wx_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS=no' |
2b850ae1 RR |
4034 | fi |
4035 | ||
4036 | else | |
4037 | ||
47124ca6 | 4038 | wx_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS=${'DEFAULT_wxUSE_LIBGNOMEVFS":-$defaultval}" |
2b850ae1 | 4039 | |
47964710 VS |
4040 | fi |
4041 | ||
2b850ae1 | 4042 | |
d970f7d5 | 4043 | eval "$wx_cv_use_gnomevfs" |
2b850ae1 | 4044 | |
6e198e97 VZ |
4045 | if test x"$withstring" = xwithout; then |
4046 | if test $wxUSE_LIBGNOMEVFS = yes; then | |
4047 | result=no | |
4048 | else | |
4049 | result=yes | |
4050 | fi | |
2b850ae1 | 4051 | else |
6e198e97 | 4052 | result=$wxUSE_LIBGNOMEVFS |
2b850ae1 RR |
4053 | fi |
4054 | ||
d589327a VZ |
4055 | { echo "$as_me:$LINENO: result: $result" >&5 |
4056 | echo "${ECHO_T}$result" >&6; } | |
6e198e97 | 4057 | |
2b850ae1 | 4058 | |
077c7880 | 4059 | withstring= |
47124ca6 VZ |
4060 | defaultval=$wxUSE_ALL_FEATURES |
4061 | if test -z "$defaultval"; then | |
4062 | if test x"$withstring" = xwithout; then | |
4063 | defaultval=yes | |
4064 | else | |
4065 | defaultval=no | |
4066 | fi | |
4067 | fi | |
d589327a VZ |
4068 | { echo "$as_me:$LINENO: checking for --${withstring:-with}-hildon" >&5 |
4069 | echo $ECHO_N "checking for --${withstring:-with}-hildon... $ECHO_C" >&6; } | |
3565d135 | 4070 | |
47964710 | 4071 | # Check whether --with-hildon was given. |
3565d135 | 4072 | if test "${with_hildon+set}" = set; then |
47964710 | 4073 | withval=$with_hildon; |
3565d135 | 4074 | if test "$withval" = yes; then |
d970f7d5 | 4075 | wx_cv_use_hildon='wxUSE_LIBHILDON=yes' |
3565d135 | 4076 | else |
d970f7d5 | 4077 | wx_cv_use_hildon='wxUSE_LIBHILDON=no' |
3565d135 RR |
4078 | fi |
4079 | ||
4080 | else | |
4081 | ||
47124ca6 | 4082 | wx_cv_use_hildon='wxUSE_LIBHILDON=${'DEFAULT_wxUSE_LIBHILDON":-$defaultval}" |
3565d135 | 4083 | |
47964710 VS |
4084 | fi |
4085 | ||
3565d135 | 4086 | |
d970f7d5 | 4087 | eval "$wx_cv_use_hildon" |
3565d135 | 4088 | |
6e198e97 VZ |
4089 | if test x"$withstring" = xwithout; then |
4090 | if test $wxUSE_LIBHILDON = yes; then | |
4091 | result=no | |
4092 | else | |
4093 | result=yes | |
4094 | fi | |
3565d135 | 4095 | else |
6e198e97 | 4096 | result=$wxUSE_LIBHILDON |
3565d135 RR |
4097 | fi |
4098 | ||
d589327a VZ |
4099 | { echo "$as_me:$LINENO: result: $result" >&5 |
4100 | echo "${ECHO_T}$result" >&6; } | |
6e198e97 | 4101 | |
3565d135 | 4102 | |
077c7880 | 4103 | withstring= |
47124ca6 VZ |
4104 | defaultval=$wxUSE_ALL_FEATURES |
4105 | if test -z "$defaultval"; then | |
4106 | if test x"$withstring" = xwithout; then | |
4107 | defaultval=yes | |
4108 | else | |
4109 | defaultval=no | |
4110 | fi | |
4111 | fi | |
d589327a VZ |
4112 | { echo "$as_me:$LINENO: checking for --${withstring:-with}-opengl" >&5 |
4113 | echo $ECHO_N "checking for --${withstring:-with}-opengl... $ECHO_C" >&6; } | |
a848cd7e | 4114 | |
47964710 | 4115 | # Check whether --with-opengl was given. |
a848cd7e | 4116 | if test "${with_opengl+set}" = set; then |
47964710 | 4117 | withval=$with_opengl; |
a848cd7e | 4118 | if test "$withval" = yes; then |
d970f7d5 | 4119 | wx_cv_use_opengl='wxUSE_OPENGL=yes' |
a848cd7e | 4120 | else |
d970f7d5 | 4121 | wx_cv_use_opengl='wxUSE_OPENGL=no' |
a848cd7e SC |
4122 | fi |
4123 | ||
4124 | else | |
4125 | ||
47124ca6 | 4126 | wx_cv_use_opengl='wxUSE_OPENGL=${'DEFAULT_wxUSE_OPENGL":-$defaultval}" |
a848cd7e | 4127 | |
47964710 VS |
4128 | fi |
4129 | ||
a848cd7e | 4130 | |
d970f7d5 | 4131 | eval "$wx_cv_use_opengl" |
a848cd7e | 4132 | |
6e198e97 VZ |
4133 | if test x"$withstring" = xwithout; then |
4134 | if test $wxUSE_OPENGL = yes; then | |
4135 | result=no | |
4136 | else | |
4137 | result=yes | |
4138 | fi | |
a848cd7e | 4139 | else |
6e198e97 | 4140 | result=$wxUSE_OPENGL |
a848cd7e SC |
4141 | fi |
4142 | ||
d589327a VZ |
4143 | { echo "$as_me:$LINENO: result: $result" >&5 |
4144 | echo "${ECHO_T}$result" >&6; } | |
a848cd7e | 4145 | |
4353a8df | 4146 | |
a848cd7e SC |
4147 | fi |
4148 | ||
4149 | ||
077c7880 | 4150 | withstring= |
47124ca6 VZ |
4151 | defaultval=$wxUSE_ALL_FEATURES |
4152 | if test -z "$defaultval"; then | |
4153 | if test x"$withstring" = xwithout; then | |
4154 | defaultval=yes | |
4155 | else | |
4156 | defaultval=no | |
4157 | fi | |
4158 | fi | |
d589327a VZ |
4159 | { echo "$as_me:$LINENO: checking for --${withstring:-with}-dmalloc" >&5 |
4160 | echo $ECHO_N "checking for --${withstring:-with}-dmalloc... $ECHO_C" >&6; } | |
a848cd7e | 4161 | |
47964710 | 4162 | # Check whether --with-dmalloc was given. |
a848cd7e | 4163 | if test "${with_dmalloc+set}" = set; then |
47964710 | 4164 | withval=$with_dmalloc; |
a848cd7e | 4165 | if test "$withval" = yes; then |
d970f7d5 | 4166 | wx_cv_use_dmalloc='wxUSE_DMALLOC=yes' |
a848cd7e | 4167 | else |
d970f7d5 | 4168 | wx_cv_use_dmalloc='wxUSE_DMALLOC=no' |
a848cd7e SC |
4169 | fi |
4170 | ||
4171 | else | |
4172 | ||
47124ca6 | 4173 | wx_cv_use_dmalloc='wxUSE_DMALLOC=${'DEFAULT_wxUSE_DMALLOC":-$defaultval}" |
a848cd7e | 4174 | |
47964710 VS |
4175 | fi |
4176 | ||
a848cd7e | 4177 | |
d970f7d5 | 4178 | eval "$wx_cv_use_dmalloc" |
a848cd7e | 4179 | |
6e198e97 VZ |
4180 | if test x"$withstring" = xwithout; then |
4181 | if test $wxUSE_DMALLOC = yes; then | |
4182 | result=no | |
4183 | else | |
4184 | result=yes | |
4185 | fi | |
a848cd7e | 4186 | else |
6e198e97 | 4187 | result=$wxUSE_DMALLOC |
a848cd7e SC |
4188 | fi |
4189 | ||
d589327a VZ |
4190 | { echo "$as_me:$LINENO: result: $result" >&5 |
4191 | echo "${ECHO_T}$result" >&6; } | |
6e198e97 | 4192 | |
a848cd7e | 4193 | |
84ebfcbd | 4194 | withstring= |
47124ca6 VZ |
4195 | defaultval=$wxUSE_ALL_FEATURES |
4196 | if test -z "$defaultval"; then | |
4197 | if test x"$withstring" = xwithout; then | |
4198 | defaultval=yes | |
4199 | else | |
4200 | defaultval=no | |
4201 | fi | |
4202 | fi | |
d589327a VZ |
4203 | { echo "$as_me:$LINENO: checking for --${withstring:-with}-sdl" >&5 |
4204 | echo $ECHO_N "checking for --${withstring:-with}-sdl... $ECHO_C" >&6; } | |
a848cd7e | 4205 | |
47964710 | 4206 | # Check whether --with-sdl was given. |
84ebfcbd | 4207 | if test "${with_sdl+set}" = set; then |
47964710 | 4208 | withval=$with_sdl; |
84ebfcbd | 4209 | if test "$withval" = yes; then |
d970f7d5 | 4210 | wx_cv_use_sdl='wxUSE_LIBSDL=yes' |
84ebfcbd | 4211 | else |
d970f7d5 | 4212 | wx_cv_use_sdl='wxUSE_LIBSDL=no' |
84ebfcbd VZ |
4213 | fi |
4214 | ||
4215 | else | |
4216 | ||
47124ca6 | 4217 | wx_cv_use_sdl='wxUSE_LIBSDL=${'DEFAULT_wxUSE_LIBSDL":-$defaultval}" |
84ebfcbd | 4218 | |
47964710 VS |
4219 | fi |
4220 | ||
84ebfcbd | 4221 | |
d970f7d5 | 4222 | eval "$wx_cv_use_sdl" |
84ebfcbd VZ |
4223 | |
4224 | if test x"$withstring" = xwithout; then | |
4225 | if test $wxUSE_LIBSDL = yes; then | |
4226 | result=no | |
4227 | else | |
4228 | result=yes | |
4229 | fi | |
4230 | else | |
4231 | result=$wxUSE_LIBSDL | |
4232 | fi | |
4233 | ||
d589327a VZ |
4234 | { echo "$as_me:$LINENO: result: $result" >&5 |
4235 | echo "${ECHO_T}$result" >&6; } | |
84ebfcbd VZ |
4236 | |
4237 | ||
d589327a VZ |
4238 | { echo "$as_me:$LINENO: checking for --with-regex" >&5 |
4239 | echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6; } | |
84ebfcbd | 4240 | |
47964710 | 4241 | # Check whether --with-regex was given. |
84ebfcbd | 4242 | if test "${with_regex+set}" = set; then |
47964710 | 4243 | withval=$with_regex; |
a848cd7e | 4244 | if test "$withval" = yes; then |
d970f7d5 | 4245 | wx_cv_use_regex='wxUSE_REGEX=yes' |
a848cd7e | 4246 | elif test "$withval" = no; then |
d970f7d5 | 4247 | wx_cv_use_regex='wxUSE_REGEX=no' |
a848cd7e | 4248 | elif test "$withval" = sys; then |
d970f7d5 | 4249 | wx_cv_use_regex='wxUSE_REGEX=sys' |
a848cd7e | 4250 | elif test "$withval" = builtin; then |
d970f7d5 | 4251 | wx_cv_use_regex='wxUSE_REGEX=builtin' |
a848cd7e | 4252 | else |
d589327a VZ |
4253 | { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5 |
4254 | echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;} | |
a848cd7e SC |
4255 | { (exit 1); exit 1; }; } |
4256 | fi | |
4257 | ||
4258 | else | |
4259 | ||
d970f7d5 | 4260 | wx_cv_use_regex='wxUSE_REGEX=${'DEFAULT_wxUSE_REGEX":-$wxUSE_ALL_FEATURES}" |
a848cd7e | 4261 | |
47964710 VS |
4262 | fi |
4263 | ||
a848cd7e | 4264 | |
d970f7d5 | 4265 | eval "$wx_cv_use_regex" |
a848cd7e SC |
4266 | |
4267 | if test "$wxUSE_REGEX" = yes; then | |
d589327a VZ |
4268 | { echo "$as_me:$LINENO: result: yes" >&5 |
4269 | echo "${ECHO_T}yes" >&6; } | |
a848cd7e | 4270 | elif test "$wxUSE_REGEX" = no; then |
d589327a VZ |
4271 | { echo "$as_me:$LINENO: result: no" >&5 |
4272 | echo "${ECHO_T}no" >&6; } | |
a848cd7e | 4273 | elif test "$wxUSE_REGEX" = sys; then |
d589327a VZ |
4274 | { echo "$as_me:$LINENO: result: system version" >&5 |
4275 | echo "${ECHO_T}system version" >&6; } | |
a848cd7e | 4276 | elif test "$wxUSE_REGEX" = builtin; then |
d589327a VZ |
4277 | { echo "$as_me:$LINENO: result: builtin version" >&5 |
4278 | echo "${ECHO_T}builtin version" >&6; } | |
a848cd7e | 4279 | else |
d589327a VZ |
4280 | { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5 |
4281 | echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;} | |
a848cd7e SC |
4282 | { (exit 1); exit 1; }; } |
4283 | fi | |
4284 | ||
4285 | ||
d589327a VZ |
4286 | { echo "$as_me:$LINENO: checking for --with-zlib" >&5 |
4287 | echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6; } | |
a848cd7e | 4288 | |
47964710 | 4289 | # Check whether --with-zlib was given. |
a848cd7e | 4290 | if test "${with_zlib+set}" = set; then |
47964710 | 4291 | withval=$with_zlib; |
a848cd7e | 4292 | if test "$withval" = yes; then |
d970f7d5 | 4293 | wx_cv_use_zlib='wxUSE_ZLIB=yes' |
a848cd7e | 4294 | elif test "$withval" = no; then |
d970f7d5 | 4295 | wx_cv_use_zlib='wxUSE_ZLIB=no' |
a848cd7e | 4296 | elif test "$withval" = sys; then |
d970f7d5 | 4297 | wx_cv_use_zlib='wxUSE_ZLIB=sys' |
a848cd7e | 4298 | elif test "$withval" = builtin; then |
d970f7d5 | 4299 | wx_cv_use_zlib='wxUSE_ZLIB=builtin' |
a848cd7e | 4300 | else |
d589327a VZ |
4301 | { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5 |
4302 | echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;} | |
a848cd7e SC |
4303 | { (exit 1); exit 1; }; } |
4304 | fi | |
4305 | ||
4306 | else | |
4307 | ||
d970f7d5 | 4308 | wx_cv_use_zlib='wxUSE_ZLIB=${'DEFAULT_wxUSE_ZLIB":-$wxUSE_ALL_FEATURES}" |
a848cd7e | 4309 | |
47964710 VS |
4310 | fi |
4311 | ||
a848cd7e | 4312 | |
d970f7d5 | 4313 | eval "$wx_cv_use_zlib" |
a848cd7e SC |
4314 | |
4315 | if test "$wxUSE_ZLIB" = yes; then | |
d589327a VZ |
4316 | { echo "$as_me:$LINENO: result: yes" >&5 |
4317 | echo "${ECHO_T}yes" >&6; } | |
a848cd7e | 4318 | elif test "$wxUSE_ZLIB" = no; then |
d589327a VZ |
4319 | { echo "$as_me:$LINENO: result: no" >&5 |
4320 | echo "${ECHO_T}no" >&6; } | |
a848cd7e | 4321 | elif test "$wxUSE_ZLIB" = sys; then |
d589327a VZ |
4322 | { echo "$as_me:$LINENO: result: system version" >&5 |
4323 | echo "${ECHO_T}system version" >&6; } | |
a848cd7e | 4324 | elif test "$wxUSE_ZLIB" = builtin; then |
d589327a VZ |
4325 | { echo "$as_me:$LINENO: result: builtin version" >&5 |
4326 | echo "${ECHO_T}builtin version" >&6; } | |
a848cd7e | 4327 | else |
d589327a VZ |
4328 | { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5 |
4329 | echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;} | |
a848cd7e SC |
4330 | { (exit 1); exit 1; }; } |
4331 | fi | |
4332 | ||
4333 | ||
d589327a VZ |
4334 | { echo "$as_me:$LINENO: checking for --with-expat" >&5 |
4335 | echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6; } | |
a848cd7e | 4336 | |
47964710 | 4337 | # Check whether --with-expat was given. |
a848cd7e | 4338 | if test "${with_expat+set}" = set; then |
47964710 | 4339 | withval=$with_expat; |
a848cd7e | 4340 | if test "$withval" = yes; then |
d970f7d5 | 4341 | wx_cv_use_expat='wxUSE_EXPAT=yes' |
a848cd7e | 4342 | elif test "$withval" = no; then |
d970f7d5 | 4343 | wx_cv_use_expat='wxUSE_EXPAT=no' |
a848cd7e | 4344 | elif test "$withval" = sys; then |
d970f7d5 | 4345 | wx_cv_use_expat='wxUSE_EXPAT=sys' |
a848cd7e | 4346 | elif test "$withval" = builtin; then |
d970f7d5 | 4347 | wx_cv_use_expat='wxUSE_EXPAT=builtin' |
a848cd7e | 4348 | else |
d589327a VZ |
4349 | { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5 |
4350 | echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;} | |
a848cd7e SC |
4351 | { (exit 1); exit 1; }; } |
4352 | fi | |
4353 | ||
4354 | else | |
4355 | ||
d970f7d5 | 4356 | wx_cv_use_expat='wxUSE_EXPAT=${'DEFAULT_wxUSE_EXPAT":-$wxUSE_ALL_FEATURES}" |
a848cd7e | 4357 | |
47964710 VS |
4358 | fi |
4359 | ||
a848cd7e | 4360 | |
d970f7d5 | 4361 | eval "$wx_cv_use_expat" |
a848cd7e SC |
4362 | |
4363 | if test "$wxUSE_EXPAT" = yes; then | |
d589327a VZ |
4364 | { echo "$as_me:$LINENO: result: yes" >&5 |
4365 | echo "${ECHO_T}yes" >&6; } | |
a848cd7e | 4366 | elif test "$wxUSE_EXPAT" = no; then |
d589327a VZ |
4367 | { echo "$as_me:$LINENO: result: no" >&5 |
4368 | echo "${ECHO_T}no" >&6; } | |
a848cd7e | 4369 | elif test "$wxUSE_EXPAT" = sys; then |
d589327a VZ |
4370 | { echo "$as_me:$LINENO: result: system version" >&5 |
4371 | echo "${ECHO_T}system version" >&6; } | |
a848cd7e | 4372 | elif test "$wxUSE_EXPAT" = builtin; then |
d589327a VZ |
4373 | { echo "$as_me:$LINENO: result: builtin version" >&5 |
4374 | echo "${ECHO_T}builtin version" >&6; } | |
a848cd7e | 4375 | else |
d589327a VZ |
4376 | { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5 |
4377 | echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;} | |
a848cd7e SC |
4378 | { (exit 1); exit 1; }; } |
4379 | fi | |
4380 | ||
4381 | ||
d589327a VZ |
4382 | { echo "$as_me:$LINENO: checking for --with-macosx-sdk" >&5 |
4383 | echo $ECHO_N "checking for --with-macosx-sdk... $ECHO_C" >&6; } | |
b4e05bdd | 4384 | |
47964710 | 4385 | # Check whether --with-macosx-sdk was given. |
b4e05bdd | 4386 | if test "${with_macosx_sdk+set}" = set; then |
47964710 | 4387 | withval=$with_macosx_sdk; |
b4e05bdd DE |
4388 | wxUSE_MACOSX_SDK=$withval |
4389 | wx_cv_use_macosx_sdk="wxUSE_MACOSX_SDK=$withval" | |
b4e05bdd | 4390 | |
47964710 VS |
4391 | fi |
4392 | ||
d589327a VZ |
4393 | { echo "$as_me:$LINENO: result: $wxUSE_MACOSX_SDK" >&5 |
4394 | echo "${ECHO_T}$wxUSE_MACOSX_SDK" >&6; } | |
b4e05bdd | 4395 | |
d589327a VZ |
4396 | { echo "$as_me:$LINENO: checking for --with-macosx-version-min" >&5 |
4397 | echo $ECHO_N "checking for --with-macosx-version-min... $ECHO_C" >&6; } | |
b4e05bdd | 4398 | |
47964710 | 4399 | # Check whether --with-macosx-version-min was given. |
b4e05bdd | 4400 | if test "${with_macosx_version_min+set}" = set; then |
47964710 | 4401 | withval=$with_macosx_version_min; |
b4e05bdd DE |
4402 | wxUSE_MACOSX_VERSION_MIN=$withval |
4403 | wx_cv_use_macosx_version_min="wxUSE_MACOSX_VERSION_MIN=$withval" | |
b4e05bdd | 4404 | |
47964710 VS |
4405 | fi |
4406 | ||
d589327a VZ |
4407 | { echo "$as_me:$LINENO: result: $wxUSE_MACOSX_VERSION_MIN" >&5 |
4408 | echo "${ECHO_T}$wxUSE_MACOSX_VERSION_MIN" >&6; } | |
b4e05bdd | 4409 | |
a848cd7e | 4410 | |
89b1afb4 VZ |
4411 | { echo "$as_me:$LINENO: checking for --enable-debug" >&5 |
4412 | echo $ECHO_N "checking for --enable-debug... $ECHO_C" >&6; } | |
4413 | # Check whether --enable-debug was given. | |
4414 | if test "${enable_debug+set}" = set; then | |
4415 | enableval=$enable_debug; | |
4416 | if test "$enableval" = yes; then | |
4417 | wxUSE_DEBUG=yes | |
4418 | elif test "$enableval" = no; then | |
4419 | wxUSE_DEBUG=no | |
4420 | elif test "$enableval" = max; then | |
4421 | wxUSE_DEBUG=yes | |
4422 | WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -DwxDEBUG_LEVEL=2" | |
4423 | else | |
4424 | { { echo "$as_me:$LINENO: error: Invalid --enable-debug value, must be yes, no or max" >&5 | |
4425 | echo "$as_me: error: Invalid --enable-debug value, must be yes, no or max" >&2;} | |
4426 | { (exit 1); exit 1; }; } | |
4427 | fi | |
a848cd7e | 4428 | |
a848cd7e | 4429 | else |
89b1afb4 | 4430 | wxUSE_DEBUG=default |
a848cd7e | 4431 | |
47964710 VS |
4432 | fi |
4433 | ||
a848cd7e | 4434 | |
89b1afb4 VZ |
4435 | case "$wxUSE_DEBUG" in |
4436 | yes) | |
4437 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
4438 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
a848cd7e | 4439 | |
89b1afb4 VZ |
4440 | DEFAULT_wxUSE_OPTIMISE=no |
4441 | ;; | |
a848cd7e | 4442 | |
89b1afb4 VZ |
4443 | no) |
4444 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
4445 | DEFAULT_wxUSE_DEBUG_INFO=no | |
4446 | ;; | |
6e198e97 | 4447 | |
89b1afb4 VZ |
4448 | default) |
4449 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
4450 | DEFAULT_wxUSE_DEBUG_INFO=no | |
4451 | ;; | |
4452 | esac | |
a848cd7e | 4453 | |
89b1afb4 VZ |
4454 | |
4455 | enablestring=disable | |
6e198e97 | 4456 | defaultval= |
238663c1 | 4457 | if test -z "$defaultval"; then |
6e198e97 VZ |
4458 | if test x"$enablestring" = xdisable; then |
4459 | defaultval=yes | |
4460 | else | |
4461 | defaultval=no | |
4462 | fi | |
4463 | fi | |
4464 | ||
89b1afb4 VZ |
4465 | { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5 |
4466 | echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6; } | |
4467 | # Check whether --enable-debug_flag was given. | |
4468 | if test "${enable_debug_flag+set}" = set; then | |
4469 | enableval=$enable_debug_flag; | |
a848cd7e | 4470 | if test "$enableval" = yes; then |
89b1afb4 | 4471 | wx_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes' |
a848cd7e | 4472 | else |
89b1afb4 | 4473 | wx_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no' |
a848cd7e SC |
4474 | fi |
4475 | ||
4476 | else | |
4477 | ||
89b1afb4 | 4478 | wx_cv_use_debug_flag='wxUSE_DEBUG_FLAG=${'DEFAULT_wxUSE_DEBUG_FLAG":-$defaultval}" |
a848cd7e | 4479 | |
47964710 VS |
4480 | fi |
4481 | ||
a848cd7e | 4482 | |
89b1afb4 | 4483 | eval "$wx_cv_use_debug_flag" |
a848cd7e | 4484 | |
6e198e97 | 4485 | if test x"$enablestring" = xdisable; then |
89b1afb4 | 4486 | if test $wxUSE_DEBUG_FLAG = no; then |
6e198e97 | 4487 | result=yes |
7ac0e38e VZ |
4488 | else |
4489 | result=no | |
6e198e97 | 4490 | fi |
a848cd7e | 4491 | else |
89b1afb4 | 4492 | result=$wxUSE_DEBUG_FLAG |
a848cd7e SC |
4493 | fi |
4494 | ||
d589327a VZ |
4495 | { echo "$as_me:$LINENO: result: $result" >&5 |
4496 | echo "${ECHO_T}$result" >&6; } | |
6e198e97 | 4497 | |
a848cd7e | 4498 | |
077c7880 | 4499 | enablestring= |
6e198e97 | 4500 | defaultval= |
238663c1 | 4501 | if test -z "$defaultval"; then |
6e198e97 VZ |
4502 | if test x"$enablestring" = xdisable; then |
4503 | defaultval=yes | |
4504 | else | |
4505 | defaultval=no | |
4506 | fi | |
4507 | fi | |
4508 | ||
89b1afb4 VZ |
4509 | { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5 |
4510 | echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6; } | |
4511 | # Check whether --enable-debug_info was given. | |
4512 | if test "${enable_debug_info+set}" = set; then | |
4513 | enableval=$enable_debug_info; | |
a848cd7e | 4514 | if test "$enableval" = yes; then |
89b1afb4 | 4515 | wx_cv_use_debug_info='wxUSE_DEBUG_INFO=yes' |
a848cd7e | 4516 | else |
89b1afb4 | 4517 | wx_cv_use_debug_info='wxUSE_DEBUG_INFO=no' |
a848cd7e SC |
4518 | fi |
4519 | ||
4520 | else | |
4521 | ||
89b1afb4 | 4522 | wx_cv_use_debug_info='wxUSE_DEBUG_INFO=${'DEFAULT_wxUSE_DEBUG_INFO":-$defaultval}" |
a848cd7e | 4523 | |
47964710 VS |
4524 | fi |
4525 | ||
a848cd7e | 4526 | |
89b1afb4 | 4527 | eval "$wx_cv_use_debug_info" |
a848cd7e | 4528 | |
6e198e97 | 4529 | if test x"$enablestring" = xdisable; then |
89b1afb4 | 4530 | if test $wxUSE_DEBUG_INFO = no; then |
6e198e97 | 4531 | result=yes |
7ac0e38e VZ |
4532 | else |
4533 | result=no | |
6e198e97 | 4534 | fi |
a848cd7e | 4535 | else |
89b1afb4 | 4536 | result=$wxUSE_DEBUG_INFO |
a848cd7e SC |
4537 | fi |
4538 | ||
d589327a VZ |
4539 | { echo "$as_me:$LINENO: result: $result" >&5 |
4540 | echo "${ECHO_T}$result" >&6; } | |
6e198e97 | 4541 | |
81727065 | 4542 | |
89b1afb4 VZ |
4543 | |
4544 | ||
81727065 | 4545 | enablestring= |
6e198e97 | 4546 | defaultval= |
238663c1 | 4547 | if test -z "$defaultval"; then |
6e198e97 VZ |
4548 | if test x"$enablestring" = xdisable; then |
4549 | defaultval=yes | |
4550 | else | |
4551 | defaultval=no | |
4552 | fi | |
4553 | fi | |
4554 | ||
89b1afb4 VZ |
4555 | { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5 |
4556 | echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6; } | |
4557 | # Check whether --enable-debug_gdb was given. | |
4558 | if test "${enable_debug_gdb+set}" = set; then | |
4559 | enableval=$enable_debug_gdb; | |
81727065 | 4560 | if test "$enableval" = yes; then |
89b1afb4 | 4561 | wx_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes' |
81727065 | 4562 | else |
89b1afb4 | 4563 | wx_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no' |
81727065 VS |
4564 | fi |
4565 | ||
4566 | else | |
4567 | ||
89b1afb4 | 4568 | wx_cv_use_debug_gdb='wxUSE_DEBUG_GDB=${'DEFAULT_wxUSE_DEBUG_GDB":-$defaultval}" |
81727065 | 4569 | |
47964710 VS |
4570 | fi |
4571 | ||
81727065 | 4572 | |
89b1afb4 | 4573 | eval "$wx_cv_use_debug_gdb" |
81727065 | 4574 | |
6e198e97 | 4575 | if test x"$enablestring" = xdisable; then |
89b1afb4 | 4576 | if test $wxUSE_DEBUG_GDB = no; then |
6e198e97 | 4577 | result=yes |
7ac0e38e VZ |
4578 | else |
4579 | result=no | |
6e198e97 | 4580 | fi |
81727065 | 4581 | else |
89b1afb4 | 4582 | result=$wxUSE_DEBUG_GDB |
81727065 VS |
4583 | fi |
4584 | ||
d589327a VZ |
4585 | { echo "$as_me:$LINENO: result: $result" >&5 |
4586 | echo "${ECHO_T}$result" >&6; } | |
6e198e97 | 4587 | |
a848cd7e | 4588 | |
077c7880 | 4589 | enablestring= |
6e198e97 | 4590 | defaultval= |
238663c1 | 4591 | if test -z "$defaultval"; then |
6e198e97 VZ |
4592 | if test x"$enablestring" = xdisable; then |
4593 | defaultval=yes | |
4594 | else | |
4595 | defaultval=no | |
4596 | fi | |
4597 | fi | |
4598 | ||
89b1afb4 VZ |
4599 | { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5 |
4600 | echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6; } | |
4601 | # Check whether --enable-debug_cntxt was given. | |
4602 | if test "${enable_debug_cntxt+set}" = set; then | |
4603 | enableval=$enable_debug_cntxt; | |
a848cd7e | 4604 | if test "$enableval" = yes; then |
89b1afb4 | 4605 | wx_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes' |
a848cd7e | 4606 | else |
89b1afb4 | 4607 | wx_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no' |
a848cd7e SC |
4608 | fi |
4609 | ||
4610 | else | |
4611 | ||
89b1afb4 | 4612 | wx_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=${'DEFAULT_wxUSE_DEBUG_CONTEXT":-$defaultval}" |
a848cd7e | 4613 | |
47964710 VS |
4614 | fi |
4615 | ||
a848cd7e | 4616 | |
89b1afb4 | 4617 | eval "$wx_cv_use_debug_cntxt" |
a848cd7e | 4618 | |
6e198e97 | 4619 | if test x"$enablestring" = xdisable; then |
89b1afb4 | 4620 | if test $wxUSE_DEBUG_CONTEXT = no; then |
6e198e97 | 4621 | result=yes |
7ac0e38e VZ |
4622 | else |
4623 | result=no | |
6e198e97 | 4624 | fi |
a848cd7e | 4625 | else |
89b1afb4 | 4626 | result=$wxUSE_DEBUG_CONTEXT |
a848cd7e SC |
4627 | fi |
4628 | ||
d589327a VZ |
4629 | { echo "$as_me:$LINENO: result: $result" >&5 |
4630 | echo "${ECHO_T}$result" >&6; } | |
a848cd7e | 4631 | |
a848cd7e | 4632 | |
89b1afb4 | 4633 | enablestring= |
6e198e97 | 4634 | defaultval= |
238663c1 | 4635 | if test -z "$defaultval"; then |
6e198e97 VZ |
4636 | if test x"$enablestring" = xdisable; then |
4637 | defaultval=yes | |
4638 | else | |
4639 | defaultval=no | |
4640 | fi | |
4641 | fi | |
a848cd7e | 4642 | |
89b1afb4 VZ |
4643 | { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5 |
4644 | echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6; } | |
4645 | # Check whether --enable-mem_tracing was given. | |
4646 | if test "${enable_mem_tracing+set}" = set; then | |
4647 | enableval=$enable_mem_tracing; | |
a848cd7e | 4648 | if test "$enableval" = yes; then |
89b1afb4 | 4649 | wx_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes' |
a848cd7e | 4650 | else |
89b1afb4 | 4651 | wx_cv_use_mem_tracing='wxUSE_MEM_TRACING=no' |
a848cd7e SC |
4652 | fi |
4653 | ||
4654 | else | |
4655 | ||
89b1afb4 | 4656 | wx_cv_use_mem_tracing='wxUSE_MEM_TRACING=${'DEFAULT_wxUSE_MEM_TRACING":-$defaultval}" |
a848cd7e | 4657 | |
47964710 VS |
4658 | fi |
4659 | ||
a848cd7e | 4660 | |
89b1afb4 | 4661 | eval "$wx_cv_use_mem_tracing" |
a848cd7e | 4662 | |
6e198e97 | 4663 | if test x"$enablestring" = xdisable; then |
89b1afb4 | 4664 | if test $wxUSE_MEM_TRACING = no; then |
6e198e97 | 4665 | result=yes |
7ac0e38e VZ |
4666 | else |
4667 | result=no | |
6e198e97 | 4668 | fi |
a848cd7e | 4669 | else |
89b1afb4 | 4670 | result=$wxUSE_MEM_TRACING |
a848cd7e SC |
4671 | fi |
4672 | ||
d589327a VZ |
4673 | { echo "$as_me:$LINENO: result: $result" >&5 |
4674 | echo "${ECHO_T}$result" >&6; } | |
6e198e97 | 4675 | |
a848cd7e | 4676 | |
89b1afb4 VZ |
4677 | |
4678 | ||
4679 | enablestring=disable | |
6e198e97 | 4680 | defaultval= |
238663c1 | 4681 | if test -z "$defaultval"; then |
6e198e97 VZ |
4682 | if test x"$enablestring" = xdisable; then |
4683 | defaultval=yes | |
4684 | else | |
4685 | defaultval=no | |
4686 | fi | |
4687 | fi | |
4688 | ||
89b1afb4 VZ |
4689 | { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5 |
4690 | echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6; } | |
4691 | # Check whether --enable-shared was given. | |
4692 | if test "${enable_shared+set}" = set; then | |
4693 | enableval=$enable_shared; | |
a848cd7e | 4694 | if test "$enableval" = yes; then |
89b1afb4 | 4695 | wx_cv_use_shared='wxUSE_SHARED=yes' |
a848cd7e | 4696 | else |
89b1afb4 | 4697 | wx_cv_use_shared='wxUSE_SHARED=no' |
a848cd7e SC |
4698 | fi |
4699 | ||
4700 | else | |
4701 | ||
89b1afb4 | 4702 | wx_cv_use_shared='wxUSE_SHARED=${'DEFAULT_wxUSE_SHARED":-$defaultval}" |
a848cd7e | 4703 | |
47964710 VS |
4704 | fi |
4705 | ||
a848cd7e | 4706 | |
89b1afb4 | 4707 | eval "$wx_cv_use_shared" |
a848cd7e | 4708 | |
6e198e97 | 4709 | if test x"$enablestring" = xdisable; then |
89b1afb4 | 4710 | if test $wxUSE_SHARED = no; then |
6e198e97 | 4711 | result=yes |
7ac0e38e VZ |
4712 | else |
4713 | result=no | |
6e198e97 | 4714 | fi |
a848cd7e | 4715 | else |
89b1afb4 | 4716 | result=$wxUSE_SHARED |
a848cd7e SC |
4717 | fi |
4718 | ||
d589327a VZ |
4719 | { echo "$as_me:$LINENO: result: $result" >&5 |
4720 | echo "${ECHO_T}$result" >&6; } | |
6e198e97 | 4721 | |
a848cd7e | 4722 | |
077c7880 | 4723 | enablestring= |
6e198e97 | 4724 | defaultval= |
238663c1 | 4725 | if test -z "$defaultval"; then |
6e198e97 VZ |
4726 | if test x"$enablestring" = xdisable; then |
4727 | defaultval=yes | |
4728 | else | |
4729 | defaultval=no | |
4730 | fi | |
4731 | fi | |
4732 | ||
89b1afb4 VZ |
4733 | { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5 |
4734 | echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6; } | |
4735 | # Check whether --enable-stl was given. | |
4736 | if test "${enable_stl+set}" = set; then | |
4737 | enableval=$enable_stl; | |
a848cd7e | 4738 | if test "$enableval" = yes; then |
89b1afb4 | 4739 | wx_cv_use_stl='wxUSE_STL=yes' |
a848cd7e | 4740 | else |
89b1afb4 | 4741 | wx_cv_use_stl='wxUSE_STL=no' |
6e198e97 VZ |
4742 | fi |
4743 | ||
4744 | else | |
4745 | ||
89b1afb4 | 4746 | wx_cv_use_stl='wxUSE_STL=${'DEFAULT_wxUSE_STL":-$defaultval}" |
6e198e97 | 4747 | |
47964710 VS |
4748 | fi |
4749 | ||
6e198e97 | 4750 | |
89b1afb4 | 4751 | eval "$wx_cv_use_stl" |
6e198e97 VZ |
4752 | |
4753 | if test x"$enablestring" = xdisable; then | |
89b1afb4 | 4754 | if test $wxUSE_STL = no; then |
6e198e97 | 4755 | result=yes |
7ac0e38e VZ |
4756 | else |
4757 | result=no | |
6e198e97 VZ |
4758 | fi |
4759 | else | |
89b1afb4 | 4760 | result=$wxUSE_STL |
6e198e97 VZ |
4761 | fi |
4762 | ||
d589327a VZ |
4763 | { echo "$as_me:$LINENO: result: $result" >&5 |
4764 | echo "${ECHO_T}$result" >&6; } | |
6e198e97 VZ |
4765 | |
4766 | ||
4767 | enablestring= | |
4768 | defaultval= | |
238663c1 | 4769 | if test -z "$defaultval"; then |
6e198e97 VZ |
4770 | if test x"$enablestring" = xdisable; then |
4771 | defaultval=yes | |
4772 | else | |
4773 | defaultval=no | |
4774 | fi | |
4775 | fi | |
4776 | ||
89b1afb4 VZ |
4777 | { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5 |
4778 | echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6; } | |
4779 | # Check whether --enable-std_iostreams was given. | |
4780 | if test "${enable_std_iostreams+set}" = set; then | |
4781 | enableval=$enable_std_iostreams; | |
6e198e97 | 4782 | if test "$enableval" = yes; then |
89b1afb4 | 4783 | wx_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes' |
6e198e97 | 4784 | else |
89b1afb4 | 4785 | wx_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no' |
6e198e97 VZ |
4786 | fi |
4787 | ||
4788 | else | |
4789 | ||
89b1afb4 | 4790 | wx_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=${'DEFAULT_wxUSE_STD_IOSTREAM":-$defaultval}" |
6e198e97 | 4791 | |
47964710 VS |
4792 | fi |
4793 | ||
6e198e97 | 4794 | |
89b1afb4 | 4795 | eval "$wx_cv_use_std_iostreams" |
6e198e97 VZ |
4796 | |
4797 | if test x"$enablestring" = xdisable; then | |
89b1afb4 | 4798 | if test $wxUSE_STD_IOSTREAM = no; then |
6e198e97 | 4799 | result=yes |
7ac0e38e VZ |
4800 | else |
4801 | result=no | |
6e198e97 VZ |
4802 | fi |
4803 | else | |
89b1afb4 | 4804 | result=$wxUSE_STD_IOSTREAM |
6e198e97 VZ |
4805 | fi |
4806 | ||
d589327a VZ |
4807 | { echo "$as_me:$LINENO: result: $result" >&5 |
4808 | echo "${ECHO_T}$result" >&6; } | |
6e198e97 | 4809 | |
6e198e97 VZ |
4810 | |
4811 | enablestring= | |
4812 | defaultval= | |
238663c1 | 4813 | if test -z "$defaultval"; then |
6e198e97 VZ |
4814 | if test x"$enablestring" = xdisable; then |
4815 | defaultval=yes | |
4816 | else | |
4817 | defaultval=no | |
4818 | fi | |
4819 | fi | |
4820 | ||
89b1afb4 VZ |
4821 | { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_string" >&5 |
4822 | echo $ECHO_N "checking for --${enablestring:-enable}-std_string... $ECHO_C" >&6; } | |
4823 | # Check whether --enable-std_string was given. | |
4824 | if test "${enable_std_string+set}" = set; then | |
4825 | enableval=$enable_std_string; | |
6e198e97 | 4826 | if test "$enableval" = yes; then |
89b1afb4 | 4827 | wx_cv_use_std_string='wxUSE_STD_STRING=yes' |
6e198e97 | 4828 | else |
89b1afb4 | 4829 | wx_cv_use_std_string='wxUSE_STD_STRING=no' |
6e198e97 VZ |
4830 | fi |
4831 | ||
4832 | else | |
4833 | ||
89b1afb4 | 4834 | wx_cv_use_std_string='wxUSE_STD_STRING=${'DEFAULT_wxUSE_STD_STRING":-$defaultval}" |
6e198e97 | 4835 | |
47964710 VS |
4836 | fi |
4837 | ||
6e198e97 | 4838 | |
89b1afb4 | 4839 | eval "$wx_cv_use_std_string" |
6e198e97 VZ |
4840 | |
4841 | if test x"$enablestring" = xdisable; then | |
89b1afb4 | 4842 | if test $wxUSE_STD_STRING = no; then |
6e198e97 | 4843 | result=yes |
7ac0e38e VZ |
4844 | else |
4845 | result=no | |
6e198e97 VZ |
4846 | fi |
4847 | else | |
89b1afb4 | 4848 | result=$wxUSE_STD_STRING |
6e198e97 VZ |
4849 | fi |
4850 | ||
d589327a VZ |
4851 | { echo "$as_me:$LINENO: result: $result" >&5 |
4852 | echo "${ECHO_T}$result" >&6; } | |
6e198e97 | 4853 | |
6e198e97 | 4854 | |
89b1afb4 | 4855 | enablestring=disable |
6e198e97 | 4856 | defaultval= |
238663c1 | 4857 | if test -z "$defaultval"; then |
6e198e97 VZ |
4858 | if test x"$enablestring" = xdisable; then |
4859 | defaultval=yes | |
4860 | else | |
4861 | defaultval=no | |
4862 | fi | |
4863 | fi | |
4864 | ||
89b1afb4 VZ |
4865 | { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5 |
4866 | echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6; } | |
4867 | # Check whether --enable-unicode was given. | |
4868 | if test "${enable_unicode+set}" = set; then | |
4869 | enableval=$enable_unicode; | |
6e198e97 | 4870 | if test "$enableval" = yes; then |
89b1afb4 | 4871 | wx_cv_use_unicode='wxUSE_UNICODE=yes' |
6e198e97 | 4872 | else |
89b1afb4 | 4873 | wx_cv_use_unicode='wxUSE_UNICODE=no' |
6e198e97 VZ |
4874 | fi |
4875 | ||
4876 | else | |
4877 | ||
89b1afb4 | 4878 | wx_cv_use_unicode='wxUSE_UNICODE=${'DEFAULT_wxUSE_UNICODE":-$defaultval}" |
6e198e97 | 4879 | |
47964710 VS |
4880 | fi |
4881 | ||
6e198e97 | 4882 | |
89b1afb4 | 4883 | eval "$wx_cv_use_unicode" |
6e198e97 VZ |
4884 | |
4885 | if test x"$enablestring" = xdisable; then | |
89b1afb4 | 4886 | if test $wxUSE_UNICODE = no; then |
6e198e97 | 4887 | result=yes |
7ac0e38e VZ |
4888 | else |
4889 | result=no | |
6e198e97 VZ |
4890 | fi |
4891 | else | |
89b1afb4 | 4892 | result=$wxUSE_UNICODE |
6e198e97 VZ |
4893 | fi |
4894 | ||
d589327a VZ |
4895 | { echo "$as_me:$LINENO: result: $result" >&5 |
4896 | echo "${ECHO_T}$result" >&6; } | |
6e198e97 VZ |
4897 | |
4898 | ||
4899 | enablestring= | |
4900 | defaultval= | |
238663c1 | 4901 | if test -z "$defaultval"; then |
6e198e97 VZ |
4902 | if test x"$enablestring" = xdisable; then |
4903 | defaultval=yes | |
4904 | else | |
4905 | defaultval=no | |
4906 | fi | |
4907 | fi | |
4908 | ||
89b1afb4 VZ |
4909 | { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5 |
4910 | echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6; } | |
4911 | # Check whether --enable-mslu was given. | |
4912 | if test "${enable_mslu+set}" = set; then | |
4913 | enableval=$enable_mslu; | |
6e198e97 | 4914 | if test "$enableval" = yes; then |
89b1afb4 | 4915 | wx_cv_use_mslu='wxUSE_UNICODE_MSLU=yes' |
6e198e97 | 4916 | else |
89b1afb4 | 4917 | wx_cv_use_mslu='wxUSE_UNICODE_MSLU=no' |
6e198e97 VZ |
4918 | fi |
4919 | ||
4920 | else | |
4921 | ||
89b1afb4 | 4922 | wx_cv_use_mslu='wxUSE_UNICODE_MSLU=${'DEFAULT_wxUSE_UNICODE_MSLU":-$defaultval}" |
6e198e97 | 4923 | |
47964710 VS |
4924 | fi |
4925 | ||
6e198e97 | 4926 | |
89b1afb4 | 4927 | eval "$wx_cv_use_mslu" |
6e198e97 VZ |
4928 | |
4929 | if test x"$enablestring" = xdisable; then | |
89b1afb4 | 4930 | if test $wxUSE_UNICODE_MSLU = no; then |
6e198e97 | 4931 | result=yes |
7ac0e38e VZ |
4932 | else |
4933 | result=no | |
6e198e97 VZ |
4934 | fi |
4935 | else | |
89b1afb4 | 4936 | result=$wxUSE_UNICODE_MSLU |
6e198e97 VZ |
4937 | fi |
4938 | ||
d589327a VZ |
4939 | { echo "$as_me:$LINENO: result: $result" >&5 |
4940 | echo "${ECHO_T}$result" >&6; } | |
6e198e97 VZ |
4941 | |
4942 | ||
89b1afb4 VZ |
4943 | enablestring= |
4944 | { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-utf8" >&5 | |
4945 | echo $ECHO_N "checking for --${enablestring:-enable}-utf8... $ECHO_C" >&6; } | |
4946 | # Check whether --enable-utf8 was given. | |
4947 | if test "${enable_utf8+set}" = set; then | |
4948 | enableval=$enable_utf8; | |
4949 | wx_cv_use_utf8="wxUSE_UNICODE_UTF8='$enableval'" | |
4950 | ||
4951 | else | |
4952 | ||
4953 | wx_cv_use_utf8='wxUSE_UNICODE_UTF8='$DEFAULT_wxUSE_UNICODE_UTF8 | |
8e33c2e4 | 4954 | |
44710405 VZ |
4955 | fi |
4956 | ||
4957 | ||
89b1afb4 VZ |
4958 | eval "$wx_cv_use_utf8" |
4959 | ||
4960 | { echo "$as_me:$LINENO: result: $wxUSE_UNICODE_UTF8" >&5 | |
4961 | echo "${ECHO_T}$wxUSE_UNICODE_UTF8" >&6; } | |
4962 | ||
4963 | ||
4964 | enablestring= | |
44710405 VZ |
4965 | defaultval= |
4966 | if test -z "$defaultval"; then | |
4967 | if test x"$enablestring" = xdisable; then | |
4968 | defaultval=yes | |
4969 | else | |
4970 | defaultval=no | |
4971 | fi | |
4972 | fi | |
4973 | ||
89b1afb4 VZ |
4974 | { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-utf8only" >&5 |
4975 | echo $ECHO_N "checking for --${enablestring:-enable}-utf8only... $ECHO_C" >&6; } | |
4976 | # Check whether --enable-utf8only was given. | |
4977 | if test "${enable_utf8only+set}" = set; then | |
4978 | enableval=$enable_utf8only; | |
44710405 | 4979 | if test "$enableval" = yes; then |
89b1afb4 | 4980 | wx_cv_use_utf8only='wxUSE_UNICODE_UTF8_LOCALE=yes' |
44710405 | 4981 | else |
89b1afb4 | 4982 | wx_cv_use_utf8only='wxUSE_UNICODE_UTF8_LOCALE=no' |
44710405 VZ |
4983 | fi |
4984 | ||
4985 | else | |
4986 | ||
89b1afb4 | 4987 | wx_cv_use_utf8only='wxUSE_UNICODE_UTF8_LOCALE=${'DEFAULT_wxUSE_UNICODE_UTF8_LOCALE":-$defaultval}" |
44710405 VZ |
4988 | |
4989 | fi | |
4990 | ||
4991 | ||
89b1afb4 | 4992 | eval "$wx_cv_use_utf8only" |
44710405 VZ |
4993 | |
4994 | if test x"$enablestring" = xdisable; then | |
89b1afb4 | 4995 | if test $wxUSE_UNICODE_UTF8_LOCALE = no; then |
44710405 | 4996 | result=yes |
7ac0e38e VZ |
4997 | else |
4998 | result=no | |
44710405 VZ |
4999 | fi |
5000 | else | |
89b1afb4 | 5001 | result=$wxUSE_UNICODE_UTF8_LOCALE |
44710405 VZ |
5002 | fi |
5003 | ||
d589327a VZ |
5004 | { echo "$as_me:$LINENO: result: $result" >&5 |
5005 | echo "${ECHO_T}$result" >&6; } | |
44710405 VZ |
5006 | |
5007 | ||
6e198e97 VZ |
5008 | enablestring= |
5009 | defaultval= | |
238663c1 | 5010 | if test -z "$defaultval"; then |
6e198e97 VZ |
5011 | if test x"$enablestring" = xdisable; then |
5012 | defaultval=yes | |
5013 | else | |
5014 | defaultval=no | |
5015 | fi | |
5016 | fi | |
5017 | ||
89b1afb4 VZ |
5018 | { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-extended_rtti" >&5 |
5019 | echo $ECHO_N "checking for --${enablestring:-enable}-extended_rtti... $ECHO_C" >&6; } | |
5020 | # Check whether --enable-extended_rtti was given. | |
5021 | if test "${enable_extended_rtti+set}" = set; then | |
5022 | enableval=$enable_extended_rtti; | |
6e198e97 | 5023 | if test "$enableval" = yes; then |
89b1afb4 | 5024 | wx_cv_use_extended_rtti='wxUSE_EXTENDED_RTTI=yes' |
6e198e97 | 5025 | else |
89b1afb4 | 5026 | wx_cv_use_extended_rtti='wxUSE_EXTENDED_RTTI=no' |
6e198e97 VZ |
5027 | fi |
5028 | ||
5029 | else | |
5030 | ||
89b1afb4 | 5031 | wx_cv_use_extended_rtti='wxUSE_EXTENDED_RTTI=${'DEFAULT_wxUSE_EXTENDED_RTTI":-$defaultval}" |
6e198e97 | 5032 | |
47964710 VS |
5033 | fi |
5034 | ||
6e198e97 | 5035 | |
89b1afb4 | 5036 | eval "$wx_cv_use_extended_rtti" |
6e198e97 VZ |
5037 | |
5038 | if test x"$enablestring" = xdisable; then | |
89b1afb4 | 5039 | if test $wxUSE_EXTENDED_RTTI = no; then |
6e198e97 | 5040 | result=yes |
7ac0e38e VZ |
5041 | else |
5042 | result=no | |
6e198e97 VZ |
5043 | fi |
5044 | else | |
89b1afb4 | 5045 | result=$wxUSE_EXTENDED_RTTI |
6e198e97 VZ |
5046 | fi |
5047 | ||
d589327a VZ |
5048 | { echo "$as_me:$LINENO: result: $result" >&5 |
5049 | echo "${ECHO_T}$result" >&6; } | |
6e198e97 | 5050 | |
89b1afb4 VZ |
5051 | if test "$USE_OS2" = 1; then |
5052 | DEFAULT_wxUSE_OMF=no | |
6e198e97 VZ |
5053 | |
5054 | enablestring= | |
5055 | defaultval= | |
238663c1 | 5056 | if test -z "$defaultval"; then |
6e198e97 VZ |
5057 | if test x"$enablestring" = xdisable; then |
5058 | defaultval=yes | |
5059 | else | |
5060 | defaultval=no | |
5061 | fi | |
5062 | fi | |
5063 | ||
89b1afb4 VZ |
5064 | { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-omf" >&5 |
5065 | echo $ECHO_N "checking for --${enablestring:-enable}-omf... $ECHO_C" >&6; } | |
5066 | # Check whether --enable-omf was given. | |
5067 | if test "${enable_omf+set}" = set; then | |
5068 | enableval=$enable_omf; | |
6e198e97 | 5069 | if test "$enableval" = yes; then |
89b1afb4 | 5070 | wx_cv_use_omf='wxUSE_OMF=yes' |
6e198e97 | 5071 | else |
89b1afb4 | 5072 | wx_cv_use_omf='wxUSE_OMF=no' |
a848cd7e SC |
5073 | fi |
5074 | ||
5075 | else | |
5076 | ||
89b1afb4 | 5077 | wx_cv_use_omf='wxUSE_OMF=${'DEFAULT_wxUSE_OMF":-$defaultval}" |
a848cd7e | 5078 | |
47964710 VS |
5079 | fi |
5080 | ||
a848cd7e | 5081 | |
89b1afb4 | 5082 | eval "$wx_cv_use_omf" |
a848cd7e | 5083 | |
6e198e97 | 5084 | if test x"$enablestring" = xdisable; then |
89b1afb4 | 5085 | if test $wxUSE_OMF = no; then |
6e198e97 | 5086 | result=yes |
7ac0e38e VZ |
5087 | else |
5088 | result=no | |
6e198e97 | 5089 | fi |
a848cd7e | 5090 | else |
89b1afb4 | 5091 | result=$wxUSE_OMF |
a848cd7e SC |
5092 | fi |
5093 | ||
d589327a VZ |
5094 | { echo "$as_me:$LINENO: result: $result" >&5 |
5095 | echo "${ECHO_T}$result" >&6; } | |
6e198e97 | 5096 | |
89b1afb4 | 5097 | fi |
a848cd7e | 5098 | |
89b1afb4 VZ |
5099 | |
5100 | enablestring=disable | |
6e198e97 | 5101 | defaultval= |
238663c1 | 5102 | if test -z "$defaultval"; then |
6e198e97 VZ |
5103 | if test x"$enablestring" = xdisable; then |
5104 | defaultval=yes | |
5105 | else | |
5106 | defaultval=no | |
5107 | fi | |
5108 | fi | |
5109 | ||
89b1afb4 VZ |
5110 | { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5 |
5111 | echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6; } | |
5112 | # Check whether --enable-optimise was given. | |
5113 | if test "${enable_optimise+set}" = set; then | |
5114 | enableval=$enable_optimise; | |
a848cd7e | 5115 | if test "$enableval" = yes; then |
89b1afb4 | 5116 | wx_cv_use_optimise='wxUSE_OPTIMISE=yes' |
a848cd7e | 5117 | else |
89b1afb4 | 5118 | wx_cv_use_optimise='wxUSE_OPTIMISE=no' |
a848cd7e SC |
5119 | fi |
5120 | ||
5121 | else | |
5122 | ||
89b1afb4 | 5123 | wx_cv_use_optimise='wxUSE_OPTIMISE=${'DEFAULT_wxUSE_OPTIMISE":-$defaultval}" |
a848cd7e | 5124 | |
47964710 VS |
5125 | fi |
5126 | ||
a848cd7e | 5127 | |
89b1afb4 | 5128 | eval "$wx_cv_use_optimise" |
a848cd7e | 5129 | |
6e198e97 | 5130 | if test x"$enablestring" = xdisable; then |
89b1afb4 | 5131 | if test $wxUSE_OPTIMISE = no; then |
6e198e97 | 5132 | result=yes |
7ac0e38e VZ |
5133 | else |
5134 | result=no | |
6e198e97 | 5135 | fi |
a848cd7e | 5136 | else |
89b1afb4 | 5137 | result=$wxUSE_OPTIMISE |
a848cd7e SC |
5138 | fi |
5139 | ||
d589327a VZ |
5140 | { echo "$as_me:$LINENO: result: $result" >&5 |
5141 | echo "${ECHO_T}$result" >&6; } | |
6e198e97 | 5142 | |
a848cd7e | 5143 | |
89b1afb4 | 5144 | |
077c7880 | 5145 | enablestring= |
6e198e97 | 5146 | defaultval= |
238663c1 | 5147 | if test -z "$defaultval"; then |
6e198e97 VZ |
5148 | if test x"$enablestring" = xdisable; then |
5149 | defaultval=yes | |
5150 | else | |
5151 | defaultval=no | |
5152 | fi | |
5153 | fi | |
5154 | ||
d589327a VZ |
5155 | { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5 |
5156 | echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6; } | |
47964710 | 5157 | # Check whether --enable-profile was given. |
a848cd7e | 5158 | if test "${enable_profile+set}" = set; then |
47964710 | 5159 | enableval=$enable_profile; |
a848cd7e | 5160 | if test "$enableval" = yes; then |
d970f7d5 | 5161 | wx_cv_use_profile='wxUSE_PROFILE=yes' |
a848cd7e | 5162 | else |
d970f7d5 | 5163 | wx_cv_use_profile='wxUSE_PROFILE=no' |
a848cd7e SC |
5164 | fi |
5165 | ||
5166 | else | |
5167 | ||
d970f7d5 | 5168 | wx_cv_use_profile='wxUSE_PROFILE=${'DEFAULT_wxUSE_PROFILE":-$defaultval}" |
a848cd7e | 5169 | |
47964710 VS |
5170 | fi |
5171 | ||
a848cd7e | 5172 | |
d970f7d5 | 5173 | eval "$wx_cv_use_profile" |
a848cd7e | 5174 | |
6e198e97 | 5175 | if test x"$enablestring" = xdisable; then |
7ac0e38e | 5176 | if test $wxUSE_PROFILE = no; then |
6e198e97 | 5177 | result=yes |
7ac0e38e VZ |
5178 | else |
5179 | result=no | |
6e198e97 | 5180 | fi |
a848cd7e | 5181 | else |
6e198e97 | 5182 | result=$wxUSE_PROFILE |
a848cd7e SC |
5183 | fi |
5184 | ||
d589327a VZ |
5185 | { echo "$as_me:$LINENO: result: $result" >&5 |
5186 | echo "${ECHO_T}$result" >&6; } | |
6e198e97 | 5187 | |
a848cd7e | 5188 | |
077c7880 | 5189 | enablestring= |
6e198e97 | 5190 | defaultval= |
238663c1 | 5191 | if test -z "$defaultval"; then |
6e198e97 VZ |
5192 | if test x"$enablestring" = xdisable; then |
5193 | defaultval=yes | |
5194 | else | |
5195 | defaultval=no | |
5196 | fi | |
5197 | fi | |
5198 | ||
d589327a VZ |
5199 | { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5 |
5200 | echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6; } | |
47964710 | 5201 | # Check whether --enable-no_rtti was given. |
a848cd7e | 5202 | if test "${enable_no_rtti+set}" = set; then |
47964710 | 5203 | enableval=$enable_no_rtti; |
a848cd7e | 5204 | if test "$enableval" = yes; then |
d970f7d5 | 5205 | wx_cv_use_no_rtti='wxUSE_NO_RTTI=yes' |
a848cd7e | 5206 | else |
d970f7d5 | 5207 | wx_cv_use_no_rtti='wxUSE_NO_RTTI=no' |
a848cd7e SC |
5208 | fi |
5209 | ||
5210 | else | |
5211 | ||
d970f7d5 | 5212 | wx_cv_use_no_rtti='wxUSE_NO_RTTI=${'DEFAULT_wxUSE_NO_RTTI":-$defaultval}" |
a848cd7e | 5213 | |
47964710 VS |
5214 | fi |
5215 | ||
a848cd7e | 5216 | |
d970f7d5 | 5217 | eval "$wx_cv_use_no_rtti" |
a848cd7e | 5218 | |
6e198e97 | 5219 | if test x"$enablestring" = xdisable; then |
7ac0e38e | 5220 | if test $wxUSE_NO_RTTI = no; then |
6e198e97 | 5221 | result=yes |
7ac0e38e VZ |
5222 | else |
5223 | result=no | |
6e198e97 | 5224 | fi |
a848cd7e | 5225 | else |
6e198e97 | 5226 | result=$wxUSE_NO_RTTI |
a848cd7e SC |
5227 | fi |
5228 | ||
d589327a VZ |
5229 | { echo "$as_me:$LINENO: result: $result" >&5 |
5230 | echo "${ECHO_T}$result" >&6; } | |
6e198e97 | 5231 | |
a848cd7e | 5232 | |
077c7880 | 5233 | enablestring= |
6e198e97 | 5234 | defaultval= |
238663c1 | 5235 | if test -z "$defaultval"; then |
6e198e97 VZ |
5236 | if test x"$enablestring" = xdisable; then |
5237 | defaultval=yes | |
5238 | else | |
5239 | defaultval=no | |
5240 | fi | |
5241 | fi | |
5242 | ||
d589327a VZ |
5243 | { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5 |
5244 | echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6; } | |
47964710 | 5245 | # Check whether --enable-no_exceptions was given. |
a848cd7e | 5246 | if test "${enable_no_exceptions+set}" = set; then |
47964710 | 5247 | enableval=$enable_no_exceptions; |
a848cd7e | 5248 | if test "$enableval" = yes; then |
d970f7d5 | 5249 | wx_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes' |
a848cd7e | 5250 | else |
d970f7d5 | 5251 | wx_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no' |
a848cd7e SC |
5252 | fi |
5253 | ||
5254 | else | |
5255 | ||
d970f7d5 | 5256 | wx_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=${'DEFAULT_wxUSE_NO_EXCEPTIONS":-$defaultval}" |
a848cd7e | 5257 | |
47964710 VS |
5258 | fi |
5259 | ||
a848cd7e | 5260 | |
d970f7d5 | 5261 | eval "$wx_cv_use_no_exceptions" |
a848cd7e | 5262 | |
6e198e97 | 5263 | if test x"$enablestring" = xdisable; then |
7ac0e38e | 5264 | if test $wxUSE_NO_EXCEPTIONS = no; then |
6e198e97 | 5265 | result=yes |
7ac0e38e VZ |
5266 | else |
5267 | result=no | |
6e198e97 | 5268 | fi |
a848cd7e | 5269 | else |
6e198e97 | 5270 | result=$wxUSE_NO_EXCEPTIONS |
a848cd7e SC |
5271 | fi |
5272 | ||
d589327a VZ |
5273 | { echo "$as_me:$LINENO: result: $result" >&5 |
5274 | echo "${ECHO_T}$result" >&6; } | |
6e198e97 | 5275 | |
a848cd7e | 5276 | |
077c7880 | 5277 | enablestring= |
6e198e97 | 5278 | defaultval= |
238663c1 | 5279 | if test -z "$defaultval"; then |
6e198e97 VZ |
5280 | if test x"$enablestring" = xdisable; then |
5281 | defaultval=yes | |
5282 | else | |
5283 | defaultval=no | |
5284 | fi | |
5285 | fi | |
5286 | ||
d589327a VZ |
5287 | { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5 |
5288 | echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6; } | |
47964710 | 5289 | # Check whether --enable-permissive was given. |
a848cd7e | 5290 | if test "${enable_permissive+set}" = set; then |
47964710 | 5291 | enableval=$enable_permissive; |
a848cd7e | 5292 | if test "$enableval" = yes; then |
d970f7d5 | 5293 | wx_cv_use_permissive='wxUSE_PERMISSIVE=yes' |
a848cd7e | 5294 | else |
d970f7d5 | 5295 | wx_cv_use_permissive='wxUSE_PERMISSIVE=no' |
a848cd7e SC |
5296 | fi |
5297 | ||
5298 | else | |
5299 | ||
d970f7d5 | 5300 | wx_cv_use_permissive='wxUSE_PERMISSIVE=${'DEFAULT_wxUSE_PERMISSIVE":-$defaultval}" |
a848cd7e | 5301 | |
47964710 VS |
5302 | fi |
5303 | ||
a848cd7e | 5304 | |
d970f7d5 | 5305 | eval "$wx_cv_use_permissive" |
a848cd7e | 5306 | |
6e198e97 | 5307 | if test x"$enablestring" = xdisable; then |
7ac0e38e | 5308 | if test $wxUSE_PERMISSIVE = no; then |
6e198e97 | 5309 | result=yes |
7ac0e38e VZ |
5310 | else |
5311 | result=no | |
6e198e97 | 5312 | fi |
a848cd7e | 5313 | else |
6e198e97 | 5314 | result=$wxUSE_PERMISSIVE |
a848cd7e SC |
5315 | fi |
5316 | ||
d589327a VZ |
5317 | { echo "$as_me:$LINENO: result: $result" >&5 |
5318 | echo "${ECHO_T}$result" >&6; } | |
6e198e97 | 5319 | |
a848cd7e | 5320 | |
077c7880 | 5321 | enablestring= |
6e198e97 | 5322 | defaultval= |
238663c1 | 5323 | if test -z "$defaultval"; then |
6e198e97 VZ |
5324 | if test x"$enablestring" = xdisable; then |
5325 | defaultval=yes | |
5326 | else | |
5327 | defaultval=no | |
5328 | fi | |
5329 | fi | |
5330 | ||
d589327a VZ |
5331 | { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5 |
5332 | echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6; } | |
47964710 | 5333 | # Check whether --enable-no_deps was given. |
a848cd7e | 5334 | if test "${enable_no_deps+set}" = set; then |
47964710 | 5335 | enableval=$enable_no_deps; |
a848cd7e | 5336 | if test "$enableval" = yes; then |
d970f7d5 | 5337 | wx_cv_use_no_deps='wxUSE_NO_DEPS=yes' |
a848cd7e | 5338 | else |
d970f7d5 | 5339 | wx_cv_use_no_deps='wxUSE_NO_DEPS=no' |
a848cd7e SC |
5340 | fi |
5341 | ||
5342 | else | |
5343 | ||
d970f7d5 | 5344 | wx_cv_use_no_deps='wxUSE_NO_DEPS=${'DEFAULT_wxUSE_NO_DEPS":-$defaultval}" |
a848cd7e | 5345 | |
47964710 VS |
5346 | fi |
5347 | ||
a848cd7e | 5348 | |
d970f7d5 | 5349 | eval "$wx_cv_use_no_deps" |
a848cd7e | 5350 | |
6e198e97 | 5351 | if test x"$enablestring" = xdisable; then |
7ac0e38e | 5352 | if test $wxUSE_NO_DEPS = no; then |
6e198e97 | 5353 | result=yes |
7ac0e38e VZ |
5354 | else |
5355 | result=no | |
6e198e97 | 5356 | fi |
a848cd7e | 5357 | else |
6e198e97 | 5358 | result=$wxUSE_NO_DEPS |
a848cd7e SC |
5359 | fi |
5360 | ||
d589327a VZ |
5361 | { echo "$as_me:$LINENO: result: $result" >&5 |
5362 | echo "${ECHO_T}$result" >&6; } | |
6e198e97 VZ |
5363 | |
5364 | ||
5365 | enablestring=disable | |
5366 | defaultval= | |
238663c1 | 5367 | if test -z "$defaultval"; then |
6e198e97 VZ |
5368 | if test x"$enablestring" = xdisable; then |
5369 | defaultval=yes | |
5370 | else | |
5371 | defaultval=no | |
5372 | fi | |
5373 | fi | |
a848cd7e | 5374 | |
d589327a VZ |
5375 | { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-vararg_macros" >&5 |
5376 | echo $ECHO_N "checking for --${enablestring:-enable}-vararg_macros... $ECHO_C" >&6; } | |
47964710 | 5377 | # Check whether --enable-vararg_macros was given. |
70c536f3 | 5378 | if test "${enable_vararg_macros+set}" = set; then |
47964710 | 5379 | enableval=$enable_vararg_macros; |
70c536f3 | 5380 | if test "$enableval" = yes; then |
d970f7d5 | 5381 | wx_cv_use_vararg_macros='wxUSE_VARARG_MACROS=yes' |
70c536f3 | 5382 | else |
d970f7d5 | 5383 | wx_cv_use_vararg_macros='wxUSE_VARARG_MACROS=no' |
70c536f3 VZ |
5384 | fi |
5385 | ||
5386 | else | |
5387 | ||
d970f7d5 | 5388 | wx_cv_use_vararg_macros='wxUSE_VARARG_MACROS=${'DEFAULT_wxUSE_VARARG_MACROS":-$defaultval}" |
70c536f3 | 5389 | |
47964710 VS |
5390 | fi |
5391 | ||
70c536f3 | 5392 | |
d970f7d5 | 5393 | eval "$wx_cv_use_vararg_macros" |
70c536f3 | 5394 | |
6e198e97 | 5395 | if test x"$enablestring" = xdisable; then |
7ac0e38e | 5396 | if test $wxUSE_VARARG_MACROS = no; then |
6e198e97 | 5397 | result=yes |
7ac0e38e VZ |
5398 | else |
5399 | result=no | |
6e198e97 | 5400 | fi |
70c536f3 | 5401 | else |
6e198e97 | 5402 | result=$wxUSE_VARARG_MACROS |
70c536f3 VZ |
5403 | fi |
5404 | ||
d589327a VZ |
5405 | { echo "$as_me:$LINENO: result: $result" >&5 |
5406 | echo "${ECHO_T}$result" >&6; } | |
6e198e97 | 5407 | |
70c536f3 | 5408 | |
95768535 | 5409 | enablestring= |
d589327a VZ |
5410 | { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal_binary" >&5 |
5411 | echo $ECHO_N "checking for --${enablestring:-enable}-universal_binary... $ECHO_C" >&6; } | |
47964710 | 5412 | # Check whether --enable-universal_binary was given. |
7afc46ab | 5413 | if test "${enable_universal_binary+set}" = set; then |
47964710 | 5414 | enableval=$enable_universal_binary; |
95768535 | 5415 | wx_cv_use_universal_binary="wxUSE_UNIVERSAL_BINARY='$enableval'" |
7afc46ab KO |
5416 | |
5417 | else | |
5418 | ||
ca4c9b7e VS |
5419 | wx_cv_use_universal_binary='wxUSE_UNIVERSAL_BINARY='$DEFAULT_wxUSE_UNIVERSAL_BINARY |
5420 | ||
47964710 VS |
5421 | fi |
5422 | ||
7afc46ab | 5423 | |
95768535 | 5424 | eval "$wx_cv_use_universal_binary" |
7afc46ab | 5425 | |
d589327a VZ |
5426 | { echo "$as_me:$LINENO: result: $wxUSE_UNIVERSAL_BINARY" >&5 |
5427 | echo "${ECHO_T}$wxUSE_UNIVERSAL_BINARY" >&6; } | |
7afc46ab KO |
5428 | |
5429 | ||
a848cd7e | 5430 | |
6e198e97 VZ |
5431 | enablestring= |
5432 | defaultval= | |
238663c1 | 5433 | if test -z "$defaultval"; then |
6e198e97 VZ |
5434 | if test x"$enablestring" = xdisable; then |
5435 | defaultval=yes | |
5436 | else | |
5437 | defaultval=no | |
5438 | fi | |
5439 | fi | |
5440 | ||
d589327a VZ |
5441 | { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat26" >&5 |
5442 | echo $ECHO_N "checking for --${enablestring:-enable}-compat26... $ECHO_C" >&6; } | |
47964710 | 5443 | # Check whether --enable-compat26 was given. |
dee1a63f | 5444 | if test "${enable_compat26+set}" = set; then |
47964710 | 5445 | enableval=$enable_compat26; |
a848cd7e | 5446 | if test "$enableval" = yes; then |
d970f7d5 | 5447 | wx_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=yes' |
a848cd7e | 5448 | else |
d970f7d5 | 5449 | wx_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=no' |
a848cd7e SC |
5450 | fi |
5451 | ||
5452 | else | |
5453 | ||
d970f7d5 | 5454 | wx_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=${'DEFAULT_WXWIN_COMPATIBILITY_2_6":-$defaultval}" |
a848cd7e | 5455 | |
47964710 VS |
5456 | fi |
5457 | ||
a848cd7e | 5458 | |
d970f7d5 | 5459 | eval "$wx_cv_use_compat26" |
a848cd7e | 5460 | |
6e198e97 | 5461 | if test x"$enablestring" = xdisable; then |
7ac0e38e | 5462 | if test $WXWIN_COMPATIBILITY_2_6 = no; then |
6e198e97 | 5463 | result=yes |
7ac0e38e VZ |
5464 | else |
5465 | result=no | |
6e198e97 | 5466 | fi |
a848cd7e | 5467 | else |
6e198e97 | 5468 | result=$WXWIN_COMPATIBILITY_2_6 |
a848cd7e SC |
5469 | fi |
5470 | ||
d589327a VZ |
5471 | { echo "$as_me:$LINENO: result: $result" >&5 |
5472 | echo "${ECHO_T}$result" >&6; } | |
6e198e97 | 5473 | |
a848cd7e | 5474 | |
abb6edd1 | 5475 | enablestring=disable |
6e198e97 | 5476 | defaultval= |
238663c1 | 5477 | if test -z "$defaultval"; then |
6e198e97 VZ |
5478 | if test x"$enablestring" = xdisable; then |
5479 | defaultval=yes | |
5480 | else | |
5481 | defaultval=no | |
5482 | fi | |
5483 | fi | |
5484 | ||
d589327a VZ |
5485 | { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat28" >&5 |
5486 | echo $ECHO_N "checking for --${enablestring:-enable}-compat28... $ECHO_C" >&6; } | |
47964710 | 5487 | # Check whether --enable-compat28 was given. |
abb6edd1 | 5488 | if test "${enable_compat28+set}" = set; then |
47964710 | 5489 | enableval=$enable_compat28; |
abb6edd1 | 5490 | if test "$enableval" = yes; then |
d970f7d5 | 5491 | wx_cv_use_compat28='WXWIN_COMPATIBILITY_2_8=yes' |
abb6edd1 | 5492 | else |
d970f7d5 | 5493 | wx_cv_use_compat28='WXWIN_COMPATIBILITY_2_8=no' |
abb6edd1 VS |
5494 | fi |
5495 | ||
5496 | else | |
5497 | ||
d970f7d5 | 5498 | wx_cv_use_compat28='WXWIN_COMPATIBILITY_2_8=${'DEFAULT_WXWIN_COMPATIBILITY_2_8":-$defaultval}" |
abb6edd1 | 5499 | |
47964710 VS |
5500 | fi |
5501 | ||
abb6edd1 | 5502 | |
d970f7d5 | 5503 | eval "$wx_cv_use_compat28" |
abb6edd1 | 5504 | |
6e198e97 | 5505 | if test x"$enablestring" = xdisable; then |
7ac0e38e | 5506 | if test $WXWIN_COMPATIBILITY_2_8 = no; then |
6e198e97 | 5507 | result=yes |
7ac0e38e VZ |
5508 | else |
5509 | result=no | |
6e198e97 | 5510 | fi |
abb6edd1 | 5511 | else |
6e198e97 | 5512 | result=$WXWIN_COMPATIBILITY_2_8 |
abb6edd1 VS |
5513 | fi |
5514 | ||
d589327a VZ |
5515 | { echo "$as_me:$LINENO: result: $result" >&5 |
5516 | echo "${ECHO_T}$result" >&6; } | |
abb6edd1 | 5517 | |
ffa0583f | 5518 | |
6e198e97 VZ |
5519 | |
5520 | enablestring=disable | |
5521 | defaultval= | |
238663c1 | 5522 | if test -z "$defaultval"; then |
6e198e97 VZ |
5523 | if test x"$enablestring" = xdisable; then |
5524 | defaultval=yes | |
5525 | else | |
5526 | defaultval=no | |
5527 | fi | |
5528 | fi | |
5529 | ||
d589327a VZ |
5530 | { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-rpath" >&5 |
5531 | echo $ECHO_N "checking for --${enablestring:-enable}-rpath... $ECHO_C" >&6; } | |
47964710 | 5532 | # Check whether --enable-rpath was given. |
a848cd7e | 5533 | if test "${enable_rpath+set}" = set; then |
47964710 | 5534 | enableval=$enable_rpath; |
ffa0583f | 5535 | if test "$enableval" = yes; then |
d970f7d5 | 5536 | wx_cv_use_rpath='wxUSE_RPATH=yes' |
ffa0583f | 5537 | else |
d970f7d5 | 5538 | wx_cv_use_rpath='wxUSE_RPATH=no' |
ffa0583f RL |
5539 | fi |
5540 | ||
5541 | else | |
5542 | ||
d970f7d5 | 5543 | wx_cv_use_rpath='wxUSE_RPATH=${'DEFAULT_wxUSE_RPATH":-$defaultval}" |
ffa0583f | 5544 | |
47964710 VS |
5545 | fi |
5546 | ||
a848cd7e | 5547 | |
d970f7d5 | 5548 | eval "$wx_cv_use_rpath" |
ffa0583f | 5549 | |
6e198e97 | 5550 | if test x"$enablestring" = xdisable; then |
7ac0e38e | 5551 | if test $wxUSE_RPATH = no; then |
6e198e97 | 5552 | result=yes |
7ac0e38e VZ |
5553 | else |
5554 | result=no | |
6e198e97 | 5555 | fi |
ffa0583f | 5556 | else |
6e198e97 | 5557 | result=$wxUSE_RPATH |
ffa0583f RL |
5558 | fi |
5559 | ||
d589327a VZ |
5560 | { echo "$as_me:$LINENO: result: $result" >&5 |
5561 | echo "${ECHO_T}$result" >&6; } | |
6e198e97 | 5562 | |
a848cd7e SC |
5563 | |
5564 | ||
931d7698 | 5565 | enablestring= |
6e198e97 | 5566 | defaultval= |
238663c1 | 5567 | if test -z "$defaultval"; then |
6e198e97 VZ |
5568 | if test x"$enablestring" = xdisable; then |
5569 | defaultval=yes | |
5570 | else | |
5571 | defaultval=no | |
5572 | fi | |
5573 | fi | |
5574 | ||
d589327a VZ |
5575 | { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-objc_uniquifying" >&5 |
5576 | echo $ECHO_N "checking for --${enablestring:-enable}-objc_uniquifying... $ECHO_C" >&6; } | |
47964710 | 5577 | # Check whether --enable-objc_uniquifying was given. |
931d7698 | 5578 | if test "${enable_objc_uniquifying+set}" = set; then |
47964710 | 5579 | enableval=$enable_objc_uniquifying; |
931d7698 | 5580 | if test "$enableval" = yes; then |
d970f7d5 | 5581 | wx_cv_use_objc_uniquifying='wxUSE_OBJC_UNIQUIFYING=yes' |
931d7698 | 5582 | else |
d970f7d5 | 5583 | wx_cv_use_objc_uniquifying='wxUSE_OBJC_UNIQUIFYING=no' |
931d7698 DE |
5584 | fi |
5585 | ||
5586 | else | |
5587 | ||
d970f7d5 | 5588 | wx_cv_use_objc_uniquifying='wxUSE_OBJC_UNIQUIFYING=${'DEFAULT_wxUSE_OBJC_UNIQUIFYING":-$defaultval}" |
931d7698 | 5589 | |
47964710 VS |
5590 | fi |
5591 | ||
931d7698 | 5592 | |
d970f7d5 | 5593 | eval "$wx_cv_use_objc_uniquifying" |
931d7698 | 5594 | |
6e198e97 | 5595 | if test x"$enablestring" = xdisable; then |
7ac0e38e | 5596 | if test $wxUSE_OBJC_UNIQUIFYING = no; then |
6e198e97 | 5597 | result=yes |
7ac0e38e VZ |
5598 | else |
5599 | result=no | |
6e198e97 | 5600 | fi |
931d7698 | 5601 | else |
6e198e97 | 5602 | result=$wxUSE_OBJC_UNIQUIFYING |
931d7698 DE |
5603 | fi |
5604 | ||
d589327a VZ |
5605 | { echo "$as_me:$LINENO: result: $result" >&5 |
5606 | echo "${ECHO_T}$result" >&6; } | |
6e198e97 | 5607 | |
931d7698 | 5608 | |
a848cd7e | 5609 | |
a2bd84a5 VS |
5610 | enablestring=disable |
5611 | defaultval= | |
5612 | if test -z "$defaultval"; then | |
5613 | if test x"$enablestring" = xdisable; then | |
5614 | defaultval=yes | |
5615 | else | |
5616 | defaultval=no | |
5617 | fi | |
5618 | fi | |
5619 | ||
d589327a VZ |
5620 | { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-visibility" >&5 |
5621 | echo $ECHO_N "checking for --${enablestring:-enable}-visibility... $ECHO_C" >&6; } | |
47964710 | 5622 | # Check whether --enable-visibility was given. |
a2bd84a5 | 5623 | if test "${enable_visibility+set}" = set; then |
47964710 | 5624 | enableval=$enable_visibility; |
a2bd84a5 | 5625 | if test "$enableval" = yes; then |
d970f7d5 | 5626 | wx_cv_use_visibility='wxUSE_VISIBILITY=yes' |
a2bd84a5 | 5627 | else |
d970f7d5 | 5628 | wx_cv_use_visibility='wxUSE_VISIBILITY=no' |
a2bd84a5 VS |
5629 | fi |
5630 | ||
5631 | else | |
5632 | ||
d970f7d5 | 5633 | wx_cv_use_visibility='wxUSE_VISIBILITY=${'DEFAULT_wxUSE_VISIBILITY":-$defaultval}" |
a2bd84a5 | 5634 | |
47964710 VS |
5635 | fi |
5636 | ||
a2bd84a5 | 5637 | |
d970f7d5 | 5638 | eval "$wx_cv_use_visibility" |
a2bd84a5 VS |
5639 | |
5640 | if test x"$enablestring" = xdisable; then | |
7ac0e38e | 5641 | if test $wxUSE_VISIBILITY = no; then |
a2bd84a5 | 5642 | result=yes |
7ac0e38e VZ |
5643 | else |
5644 | result=no | |
a2bd84a5 VS |
5645 | fi |
5646 | else | |
5647 | result=$wxUSE_VISIBILITY | |
5648 | fi | |
5649 | ||
d589327a VZ |
5650 | { echo "$as_me:$LINENO: result: $result" >&5 |
5651 | echo "${ECHO_T}$result" >&6; } | |
a2bd84a5 VS |
5652 | |
5653 | ||
7beff712 VZ |
5654 | enablestring=disable |
5655 | defaultval= | |
5656 | if test -z "$defaultval"; then | |
5657 | if test x"$enablestring" = xdisable; then | |
5658 | defaultval=yes | |
5659 | else | |
5660 | defaultval=no | |
5661 | fi | |
5662 | fi | |
5663 | ||
5664 | { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tls" >&5 | |
5665 | echo $ECHO_N "checking for --${enablestring:-enable}-tls... $ECHO_C" >&6; } | |
5666 | # Check whether --enable-tls was given. | |
5667 | if test "${enable_tls+set}" = set; then | |
5668 | enableval=$enable_tls; | |
5669 | if test "$enableval" = yes; then | |
5670 | wx_cv_use_tls='wxUSE_COMPILER_TLS=yes' | |
5671 | else | |
5672 | wx_cv_use_tls='wxUSE_COMPILER_TLS=no' | |
5673 | fi | |
5674 | ||
5675 | else | |
5676 | ||
5677 | wx_cv_use_tls='wxUSE_COMPILER_TLS=${'DEFAULT_wxUSE_COMPILER_TLS":-$defaultval}" | |
5678 | ||
5679 | fi | |
5680 | ||
5681 | ||
5682 | eval "$wx_cv_use_tls" | |
5683 | ||
5684 | if test x"$enablestring" = xdisable; then | |
7ac0e38e | 5685 | if test $wxUSE_COMPILER_TLS = no; then |
7beff712 | 5686 | result=yes |
7ac0e38e VZ |
5687 | else |
5688 | result=no | |
7beff712 VZ |
5689 | fi |
5690 | else | |
5691 | result=$wxUSE_COMPILER_TLS | |
5692 | fi | |
5693 | ||
5694 | { echo "$as_me:$LINENO: result: $result" >&5 | |
5695 | echo "${ECHO_T}$result" >&6; } | |
5696 | ||
5697 | ||
a2bd84a5 | 5698 | |
a848cd7e | 5699 | |
077c7880 | 5700 | enablestring= |
6e198e97 | 5701 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 5702 | if test -z "$defaultval"; then |
6e198e97 VZ |
5703 | if test x"$enablestring" = xdisable; then |
5704 | defaultval=yes | |
5705 | else | |
5706 | defaultval=no | |
5707 | fi | |
5708 | fi | |
5709 | ||
d589327a VZ |
5710 | { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5 |
5711 | echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6; } | |
47964710 | 5712 | # Check whether --enable-intl was given. |
a848cd7e | 5713 | if test "${enable_intl+set}" = set; then |
47964710 | 5714 | enableval=$enable_intl; |
a848cd7e | 5715 | if test "$enableval" = yes; then |
d970f7d5 | 5716 | wx_cv_use_intl='wxUSE_INTL=yes' |
a848cd7e | 5717 | else |
d970f7d5 | 5718 | wx_cv_use_intl='wxUSE_INTL=no' |
a848cd7e SC |
5719 | fi |
5720 | ||
5721 | else | |
5722 | ||
d970f7d5 | 5723 | wx_cv_use_intl='wxUSE_INTL=${'DEFAULT_wxUSE_INTL":-$defaultval}" |
a848cd7e | 5724 | |
47964710 VS |
5725 | fi |
5726 | ||
a848cd7e | 5727 | |
d970f7d5 | 5728 | eval "$wx_cv_use_intl" |
a848cd7e | 5729 | |
6e198e97 | 5730 | if test x"$enablestring" = xdisable; then |
7ac0e38e | 5731 | if test $wxUSE_INTL = no; then |
6e198e97 | 5732 | result=yes |
7ac0e38e VZ |
5733 | else |
5734 | result=no | |
6e198e97 | 5735 | fi |
a848cd7e | 5736 | else |
6e198e97 | 5737 | result=$wxUSE_INTL |
a848cd7e SC |
5738 | fi |
5739 | ||
d589327a VZ |
5740 | { echo "$as_me:$LINENO: result: $result" >&5 |
5741 | echo "${ECHO_T}$result" >&6; } | |
6e198e97 | 5742 | |
a848cd7e | 5743 | |
6e4ae332 VZ |
5744 | enablestring= |
5745 | defaultval=$wxUSE_ALL_FEATURES | |
5746 | if test -z "$defaultval"; then | |
5747 | if test x"$enablestring" = xdisable; then | |
5748 | defaultval=yes | |
5749 | else | |
5750 | defaultval=no | |
5751 | fi | |
5752 | fi | |
5753 | ||
d589327a VZ |
5754 | { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xlocale" >&5 |
5755 | echo $ECHO_N "checking for --${enablestring:-enable}-xlocale... $ECHO_C" >&6; } | |
6e4ae332 VZ |
5756 | # Check whether --enable-xlocale was given. |
5757 | if test "${enable_xlocale+set}" = set; then | |
5758 | enableval=$enable_xlocale; | |
5759 | if test "$enableval" = yes; then | |
5760 | wx_cv_use_xlocale='wxUSE_XLOCALE=yes' | |
5761 | else | |
5762 | wx_cv_use_xlocale='wxUSE_XLOCALE=no' | |
5763 | fi | |
5764 | ||
5765 | else | |
5766 | ||
5767 | wx_cv_use_xlocale='wxUSE_XLOCALE=${'DEFAULT_wxUSE_XLOCALE":-$defaultval}" | |
5768 | ||
5769 | fi | |
5770 | ||
5771 | ||
5772 | eval "$wx_cv_use_xlocale" | |
5773 | ||
5774 | if test x"$enablestring" = xdisable; then | |
7ac0e38e | 5775 | if test $wxUSE_XLOCALE = no; then |
6e4ae332 | 5776 | result=yes |
7ac0e38e VZ |
5777 | else |
5778 | result=no | |
6e4ae332 VZ |
5779 | fi |
5780 | else | |
5781 | result=$wxUSE_XLOCALE | |
5782 | fi | |
5783 | ||
d589327a VZ |
5784 | { echo "$as_me:$LINENO: result: $result" >&5 |
5785 | echo "${ECHO_T}$result" >&6; } | |
6e4ae332 VZ |
5786 | |
5787 | ||
077c7880 | 5788 | enablestring= |
6e198e97 | 5789 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 5790 | if test -z "$defaultval"; then |
6e198e97 VZ |
5791 | if test x"$enablestring" = xdisable; then |
5792 | defaultval=yes | |
5793 | else | |
5794 | defaultval=no | |
5795 | fi | |
5796 | fi | |
5797 | ||
d589327a VZ |
5798 | { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5 |
5799 | echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6; } | |
47964710 | 5800 | # Check whether --enable-config was given. |
a848cd7e | 5801 | if test "${enable_config+set}" = set; then |
47964710 | 5802 | enableval=$enable_config; |
a848cd7e | 5803 | if test "$enableval" = yes; then |
d970f7d5 | 5804 | wx_cv_use_config='wxUSE_CONFIG=yes' |
a848cd7e | 5805 | else |
d970f7d5 | 5806 | wx_cv_use_config='wxUSE_CONFIG=no' |
a848cd7e SC |
5807 | fi |
5808 | ||
5809 | else | |
5810 | ||
d970f7d5 | 5811 | wx_cv_use_config='wxUSE_CONFIG=${'DEFAULT_wxUSE_CONFIG":-$defaultval}" |
a848cd7e | 5812 | |
47964710 VS |
5813 | fi |
5814 | ||
a848cd7e | 5815 | |
d970f7d5 | 5816 | eval "$wx_cv_use_config" |
a848cd7e | 5817 | |
6e198e97 | 5818 | if test x"$enablestring" = xdisable; then |
7ac0e38e | 5819 | if test $wxUSE_CONFIG = no; then |
6e198e97 | 5820 | result=yes |
7ac0e38e VZ |
5821 | else |
5822 | result=no | |
6e198e97 | 5823 | fi |
a848cd7e | 5824 | else |
6e198e97 | 5825 | result=$wxUSE_CONFIG |
a848cd7e SC |
5826 | fi |
5827 | ||
d589327a VZ |
5828 | { echo "$as_me:$LINENO: result: $result" >&5 |
5829 | echo "${ECHO_T}$result" >&6; } | |
6e198e97 | 5830 | |
a848cd7e SC |
5831 | |
5832 | ||
077c7880 | 5833 | enablestring= |
6e198e97 | 5834 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 5835 | if test -z "$defaultval"; then |
6e198e97 VZ |
5836 | if test x"$enablestring" = xdisable; then |
5837 | defaultval=yes | |
5838 | else | |
5839 | defaultval=no | |
5840 | fi | |
5841 | fi | |
5842 | ||
d589327a VZ |
5843 | { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5 |
5844 | echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6; } | |
47964710 | 5845 | # Check whether --enable-protocols was given. |
a848cd7e | 5846 | if test "${enable_protocols+set}" = set; then |
47964710 | 5847 | enableval=$enable_protocols; |
a848cd7e | 5848 | if test "$enableval" = yes; then |
d970f7d5 | 5849 | wx_cv_use_protocols='wxUSE_PROTOCOL=yes' |
a848cd7e | 5850 | else |
d970f7d5 | 5851 | wx_cv_use_protocols='wxUSE_PROTOCOL=no' |
a848cd7e SC |
5852 | fi |
5853 | ||
5854 | else | |
5855 | ||
d970f7d5 | 5856 | wx_cv_use_protocols='wxUSE_PROTOCOL=${'DEFAULT_wxUSE_PROTOCOL":-$defaultval}" |
a848cd7e | 5857 | |
47964710 VS |
5858 | fi |
5859 | ||
a848cd7e | 5860 | |
d970f7d5 | 5861 | eval "$wx_cv_use_protocols" |
a848cd7e | 5862 | |
6e198e97 | 5863 | if test x"$enablestring" = xdisable; then |
7ac0e38e | 5864 | if test $wxUSE_PROTOCOL = no; then |
6e198e97 | 5865 | result=yes |
7ac0e38e VZ |
5866 | else |
5867 | result=no | |
6e198e97 | 5868 | fi |
a848cd7e | 5869 | else |
6e198e97 | 5870 | result=$wxUSE_PROTOCOL |
a848cd7e SC |
5871 | fi |
5872 | ||
d589327a VZ |
5873 | { echo "$as_me:$LINENO: result: $result" >&5 |
5874 | echo "${ECHO_T}$result" >&6; } | |
6e198e97 | 5875 | |
a848cd7e | 5876 | |
077c7880 | 5877 | enablestring= |
6e198e97 | 5878 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 5879 | if test -z "$defaultval"; then |
6e198e97 VZ |
5880 | if test x"$enablestring" = xdisable; then |
5881 | defaultval=yes | |
5882 | else | |
5883 | defaultval=no | |
5884 | fi | |
5885 | fi | |
5886 | ||
d589327a VZ |
5887 | { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5 |
5888 | echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6; } | |
47964710 | 5889 | # Check whether --enable-ftp was given. |
a848cd7e | 5890 | if test "${enable_ftp+set}" = set; then |
47964710 | 5891 | enableval=$enable_ftp; |
a848cd7e | 5892 | if test "$enableval" = yes; then |
d970f7d5 | 5893 | wx_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes' |
a848cd7e | 5894 | else |
d970f7d5 | 5895 | wx_cv_use_ftp='wxUSE_PROTOCOL_FTP=no' |
a848cd7e SC |
5896 | fi |
5897 | ||
5898 | else | |
5899 | ||
d970f7d5 | 5900 | wx_cv_use_ftp='wxUSE_PROTOCOL_FTP=${'DEFAULT_wxUSE_PROTOCOL_FTP":-$defaultval}" |
a848cd7e | 5901 | |
47964710 VS |
5902 | fi |
5903 | ||
a848cd7e | 5904 | |
d970f7d5 | 5905 | eval "$wx_cv_use_ftp" |
a848cd7e | 5906 | |
6e198e97 | 5907 | if test x"$enablestring" = xdisable; then |
7ac0e38e | 5908 | if test $wxUSE_PROTOCOL_FTP = no; then |
6e198e97 | 5909 | result=yes |
7ac0e38e VZ |
5910 | else |
5911 | result=no | |
6e198e97 | 5912 | fi |
a848cd7e | 5913 | else |
6e198e97 | 5914 | result=$wxUSE_PROTOCOL_FTP |
a848cd7e SC |
5915 | fi |
5916 | ||
d589327a VZ |
5917 | { echo "$as_me:$LINENO: result: $result" >&5 |
5918 | echo "${ECHO_T}$result" >&6; } | |
6e198e97 | 5919 | |
a848cd7e | 5920 | |
077c7880 | 5921 | enablestring= |
6e198e97 | 5922 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 5923 | if test -z "$defaultval"; then |
6e198e97 VZ |
5924 | if test x"$enablestring" = xdisable; then |
5925 | defaultval=yes | |
5926 | else | |
5927 | defaultval=no | |
5928 | fi | |
5929 | fi | |
5930 | ||
d589327a VZ |
5931 | { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5 |
5932 | echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6; } | |
47964710 | 5933 | # Check whether --enable-http was given. |
a848cd7e | 5934 | if test "${enable_http+set}" = set; then |
47964710 | 5935 | enableval=$enable_http; |
a848cd7e | 5936 | if test "$enableval" = yes; then |
d970f7d5 | 5937 | wx_cv_use_http='wxUSE_PROTOCOL_HTTP=yes' |
a848cd7e | 5938 | else |
d970f7d5 | 5939 | wx_cv_use_http='wxUSE_PROTOCOL_HTTP=no' |
a848cd7e SC |
5940 | fi |
5941 | ||
5942 | else | |
5943 | ||
d970f7d5 | 5944 | wx_cv_use_http='wxUSE_PROTOCOL_HTTP=${'DEFAULT_wxUSE_PROTOCOL_HTTP":-$defaultval}" |
a848cd7e | 5945 | |
47964710 VS |
5946 | fi |
5947 | ||
a848cd7e | 5948 | |
d970f7d5 | 5949 | eval "$wx_cv_use_http" |
a848cd7e | 5950 | |
6e198e97 | 5951 | if test x"$enablestring" = xdisable; then |
7ac0e38e | 5952 | if test $wxUSE_PROTOCOL_HTTP = no; then |
6e198e97 | 5953 | result=yes |
7ac0e38e VZ |
5954 | else |
5955 | result=no | |
6e198e97 | 5956 | fi |
a848cd7e | 5957 | else |
6e198e97 | 5958 | result=$wxUSE_PROTOCOL_HTTP |
a848cd7e SC |
5959 | fi |
5960 | ||
d589327a VZ |
5961 | { echo "$as_me:$LINENO: result: $result" >&5 |
5962 | echo "${ECHO_T}$result" >&6; } | |
6e198e97 | 5963 | |
a848cd7e | 5964 | |
077c7880 | 5965 | enablestring= |
6e198e97 | 5966 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 5967 | if test -z "$defaultval"; then |
6e198e97 VZ |
5968 | if test x"$enablestring" = xdisable; then |
5969 | defaultval=yes | |
5970 | else | |
5971 | defaultval=no | |
5972 | fi | |
5973 | fi | |
5974 | ||
d589327a VZ |
5975 | { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5 |
5976 | echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6; } | |
47964710 | 5977 | # Check whether --enable-fileproto was given. |
a848cd7e | 5978 | if test "${enable_fileproto+set}" = set; then |
47964710 | 5979 | enableval=$enable_fileproto; |
a848cd7e | 5980 | if test "$enableval" = yes; then |
d970f7d5 | 5981 | wx_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes' |
a848cd7e | 5982 | else |
d970f7d5 | 5983 | wx_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no' |
a848cd7e SC |
5984 | fi |
5985 | ||
5986 | else | |
5987 | ||
d970f7d5 | 5988 | wx_cv_use_fileproto='wxUSE_PROTOCOL_FILE=${'DEFAULT_wxUSE_PROTOCOL_FILE":-$defaultval}" |
a848cd7e | 5989 | |
47964710 VS |
5990 | fi |
5991 | ||
a848cd7e | 5992 | |
d970f7d5 | 5993 | eval "$wx_cv_use_fileproto" |
a848cd7e | 5994 | |
6e198e97 | 5995 | if test x"$enablestring" = xdisable; then |
7ac0e38e | 5996 | if test $wxUSE_PROTOCOL_FILE = no; then |
6e198e97 | 5997 | result=yes |
7ac0e38e VZ |
5998 | else |
5999 | result=no | |
6e198e97 | 6000 | fi |
a848cd7e | 6001 | else |
6e198e97 | 6002 | result=$wxUSE_PROTOCOL_FILE |
a848cd7e SC |
6003 | fi |
6004 | ||
d589327a VZ |
6005 | { echo "$as_me:$LINENO: result: $result" >&5 |
6006 | echo "${ECHO_T}$result" >&6; } | |
6e198e97 | 6007 | |
a848cd7e | 6008 | |
077c7880 | 6009 | enablestring= |
6e198e97 | 6010 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 6011 | if test -z "$defaultval"; then |
6e198e97 VZ |
6012 | if test x"$enablestring" = xdisable; then |
6013 | defaultval=yes | |
6014 | else | |
6015 | defaultval=no | |
6016 | fi | |
6017 | fi | |
6018 | ||
d589327a VZ |
6019 | { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5 |
6020 | echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6; } | |
47964710 | 6021 | # Check whether --enable-sockets was given. |
a848cd7e | 6022 | if test "${enable_sockets+set}" = set; then |
47964710 | 6023 | enableval=$enable_sockets; |
a848cd7e | 6024 | if test "$enableval" = yes; then |
d970f7d5 | 6025 | wx_cv_use_sockets='wxUSE_SOCKETS=yes' |
a848cd7e | 6026 | else |
d970f7d5 | 6027 | wx_cv_use_sockets='wxUSE_SOCKETS=no' |
a848cd7e SC |
6028 | fi |
6029 | ||
6030 | else | |
6031 | ||
d970f7d5 | 6032 | wx_cv_use_sockets='wxUSE_SOCKETS=${'DEFAULT_wxUSE_SOCKETS":-$defaultval}" |
a848cd7e | 6033 | |
47964710 VS |
6034 | fi |
6035 | ||
a848cd7e | 6036 | |
d970f7d5 | 6037 | eval "$wx_cv_use_sockets" |
a848cd7e | 6038 | |
6e198e97 | 6039 | if test x"$enablestring" = xdisable; then |
7ac0e38e | 6040 | if test $wxUSE_SOCKETS = no; then |
6e198e97 | 6041 | result=yes |
7ac0e38e VZ |
6042 | else |
6043 | result=no | |
6e198e97 | 6044 | fi |
a848cd7e | 6045 | else |
6e198e97 | 6046 | result=$wxUSE_SOCKETS |
a848cd7e SC |
6047 | fi |
6048 | ||
d589327a VZ |
6049 | { echo "$as_me:$LINENO: result: $result" >&5 |
6050 | echo "${ECHO_T}$result" >&6; } | |
6e198e97 | 6051 | |
a848cd7e | 6052 | |
8575ff50 VZ |
6053 | enablestring= |
6054 | defaultval=$wxUSE_ALL_FEATURES | |
6055 | if test -z "$defaultval"; then | |
6056 | if test x"$enablestring" = xdisable; then | |
6057 | defaultval=yes | |
6058 | else | |
6059 | defaultval=no | |
6060 | fi | |
6061 | fi | |
6062 | ||
d589327a VZ |
6063 | { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipv6" >&5 |
6064 | echo $ECHO_N "checking for --${enablestring:-enable}-ipv6... $ECHO_C" >&6; } | |
8575ff50 VZ |
6065 | # Check whether --enable-ipv6 was given. |
6066 | if test "${enable_ipv6+set}" = set; then | |
6067 | enableval=$enable_ipv6; | |
6068 | if test "$enableval" = yes; then | |
6069 | wx_cv_use_ipv6='wxUSE_IPV6=yes' | |
6070 | else | |
6071 | wx_cv_use_ipv6='wxUSE_IPV6=no' | |
6072 | fi | |
8575ff50 VZ |
6073 | |
6074 | else | |
6075 | ||
8575ff50 VZ |
6076 | wx_cv_use_ipv6='wxUSE_IPV6=${'DEFAULT_wxUSE_IPV6":-$defaultval}" |
6077 | ||
6078 | fi | |
6079 | ||
6080 | ||
6081 | eval "$wx_cv_use_ipv6" | |
8575ff50 VZ |
6082 | |
6083 | if test x"$enablestring" = xdisable; then | |
7ac0e38e | 6084 | if test $wxUSE_IPV6 = no; then |
8575ff50 | 6085 | result=yes |
7ac0e38e VZ |
6086 | else |
6087 | result=no | |
8575ff50 VZ |
6088 | fi |
6089 | else | |
6090 | result=$wxUSE_IPV6 | |
6091 | fi | |
6092 | ||
d589327a VZ |
6093 | { echo "$as_me:$LINENO: result: $result" >&5 |
6094 | echo "${ECHO_T}$result" >&6; } | |
8575ff50 VZ |
6095 | |
6096 | ||
077c7880 | 6097 | enablestring= |
6e198e97 | 6098 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 6099 | if test -z "$defaultval"; then |
6e198e97 VZ |
6100 | if test x"$enablestring" = xdisable; then |
6101 | defaultval=yes | |
6102 | else | |
6103 | defaultval=no | |
6104 | fi | |
6105 | fi | |
6106 | ||
d589327a VZ |
6107 | { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5 |
6108 | echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6; } | |
47964710 | 6109 | # Check whether --enable-ole was given. |
a848cd7e | 6110 | if test "${enable_ole+set}" = set; then |
47964710 | 6111 | enableval=$enable_ole; |
a848cd7e | 6112 | if test "$enableval" = yes; then |
d970f7d5 | 6113 | wx_cv_use_ole='wxUSE_OLE=yes' |
a848cd7e | 6114 | else |
d970f7d5 | 6115 | wx_cv_use_ole='wxUSE_OLE=no' |
a848cd7e SC |
6116 | fi |
6117 | ||
6118 | else | |
6119 | ||
d970f7d5 | 6120 | wx_cv_use_ole='wxUSE_OLE=${'DEFAULT_wxUSE_OLE":-$defaultval}" |
a848cd7e | 6121 | |
47964710 VS |
6122 | fi |
6123 | ||
a848cd7e | 6124 | |
d970f7d5 | 6125 | eval "$wx_cv_use_ole" |
a848cd7e | 6126 | |
6e198e97 | 6127 | if test x"$enablestring" = xdisable; then |
7ac0e38e | 6128 | if test $wxUSE_OLE = no; then |
6e198e97 | 6129 | result=yes |
7ac0e38e VZ |
6130 | else |
6131 | result=no | |
6e198e97 | 6132 | fi |
a848cd7e | 6133 | else |
6e198e97 | 6134 | result=$wxUSE_OLE |
a848cd7e SC |
6135 | fi |
6136 | ||
d589327a VZ |
6137 | { echo "$as_me:$LINENO: result: $result" >&5 |
6138 | echo "${ECHO_T}$result" >&6; } | |
6e198e97 | 6139 | |
a848cd7e | 6140 | |
077c7880 | 6141 | enablestring= |
6e198e97 | 6142 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 6143 | if test -z "$defaultval"; then |
6e198e97 VZ |
6144 | if test x"$enablestring" = xdisable; then |
6145 | defaultval=yes | |
6146 | else | |
6147 | defaultval=no | |
6148 | fi | |
6149 | fi | |
6150 | ||
d589327a VZ |
6151 | { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5 |
6152 | echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6; } | |
47964710 | 6153 | # Check whether --enable-dataobj was given. |
a848cd7e | 6154 | if test "${enable_dataobj+set}" = set; then |
47964710 | 6155 | enableval=$enable_dataobj; |
a848cd7e | 6156 | if test "$enableval" = yes; then |
d970f7d5 | 6157 | wx_cv_use_dataobj='wxUSE_DATAOBJ=yes' |
a848cd7e | 6158 | else |
d970f7d5 | 6159 | wx_cv_use_dataobj='wxUSE_DATAOBJ=no' |
a848cd7e SC |
6160 | fi |
6161 | ||
6162 | else | |
6163 | ||
d970f7d5 | 6164 | wx_cv_use_dataobj='wxUSE_DATAOBJ=${'DEFAULT_wxUSE_DATAOBJ":-$defaultval}" |
a848cd7e | 6165 | |
47964710 VS |
6166 | fi |
6167 | ||
a848cd7e | 6168 | |
d970f7d5 | 6169 | eval "$wx_cv_use_dataobj" |
a848cd7e | 6170 | |
6e198e97 | 6171 | if test x"$enablestring" = xdisable; then |
7ac0e38e | 6172 | if test $wxUSE_DATAOBJ = no; then |
6e198e97 | 6173 | result=yes |
7ac0e38e VZ |
6174 | else |
6175 | result=no | |
6e198e97 | 6176 | fi |
a848cd7e | 6177 | else |
6e198e97 | 6178 | result=$wxUSE_DATAOBJ |
a848cd7e SC |
6179 | fi |
6180 | ||
d589327a VZ |
6181 | { echo "$as_me:$LINENO: result: $result" >&5 |
6182 | echo "${ECHO_T}$result" >&6; } | |
6e198e97 | 6183 | |
a848cd7e SC |
6184 | |
6185 | ||
077c7880 | 6186 | enablestring= |
6e198e97 | 6187 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 6188 | if test -z "$defaultval"; then |
6e198e97 VZ |
6189 | if test x"$enablestring" = xdisable; then |
6190 | defaultval=yes | |
6191 | else | |
6192 | defaultval=no | |
6193 | fi | |
6194 | fi | |
6195 | ||
d589327a VZ |
6196 | { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5 |
6197 | echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6; } | |
47964710 | 6198 | # Check whether --enable-ipc was given. |
a848cd7e | 6199 | if test "${enable_ipc+set}" = set; then |
47964710 | 6200 | enableval=$enable_ipc; |
a848cd7e | 6201 | if test "$enableval" = yes; then |
d970f7d5 | 6202 | wx_cv_use_ipc='wxUSE_IPC=yes' |
a848cd7e | 6203 | else |
d970f7d5 | 6204 | wx_cv_use_ipc='wxUSE_IPC=no' |
a848cd7e SC |
6205 | fi |
6206 | ||
6207 | else | |
6208 | ||
d970f7d5 | 6209 | wx_cv_use_ipc='wxUSE_IPC=${'DEFAULT_wxUSE_IPC":-$defaultval}" |
a848cd7e | 6210 | |
47964710 VS |
6211 | fi |
6212 | ||
a848cd7e | 6213 | |
d970f7d5 | 6214 | eval "$wx_cv_use_ipc" |
a848cd7e | 6215 | |
6e198e97 | 6216 | if test x"$enablestring" = xdisable; then |
7ac0e38e | 6217 | if test $wxUSE_IPC = no; then |
6e198e97 | 6218 | result=yes |
7ac0e38e VZ |
6219 | else |
6220 | result=no | |
6e198e97 | 6221 | fi |
a848cd7e | 6222 | else |
6e198e97 | 6223 | result=$wxUSE_IPC |
a848cd7e SC |
6224 | fi |
6225 | ||
d589327a VZ |
6226 | { echo "$as_me:$LINENO: result: $result" >&5 |
6227 | echo "${ECHO_T}$result" >&6; } | |
6e198e97 | 6228 | |
a848cd7e SC |
6229 | |
6230 | ||
39931206 VZ |
6231 | enablestring= |
6232 | defaultval=$wxUSE_ALL_FEATURES | |
6233 | if test -z "$defaultval"; then | |
6234 | if test x"$enablestring" = xdisable; then | |
6235 | defaultval=yes | |
6236 | else | |
6237 | defaultval=no | |
6238 | fi | |
6239 | fi | |
6240 | ||
d589327a VZ |
6241 | { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-baseevtloop" >&5 |
6242 | echo $ECHO_N "checking for --${enablestring:-enable}-baseevtloop... $ECHO_C" >&6; } | |
47964710 | 6243 | # Check whether --enable-baseevtloop was given. |
39931206 | 6244 | if test "${enable_baseevtloop+set}" = set; then |
47964710 | 6245 | enableval=$enable_baseevtloop; |
39931206 VZ |
6246 | if test "$enableval" = yes; then |
6247 | wx_cv_use_baseevtloop='wxUSE_CONSOLE_EVENTLOOP=yes' | |
6248 | else | |
6249 | wx_cv_use_baseevtloop='wxUSE_CONSOLE_EVENTLOOP=no' | |
6250 | fi | |
6251 | ||
6252 | else | |
6253 | ||
39931206 VZ |
6254 | wx_cv_use_baseevtloop='wxUSE_CONSOLE_EVENTLOOP=${'DEFAULT_wxUSE_CONSOLE_EVENTLOOP":-$defaultval}" |
6255 | ||
47964710 VS |
6256 | fi |
6257 | ||
39931206 VZ |
6258 | |
6259 | eval "$wx_cv_use_baseevtloop" | |
39931206 VZ |
6260 | |
6261 | if test x"$enablestring" = xdisable; then | |
7ac0e38e | 6262 | if test $wxUSE_CONSOLE_EVENTLOOP = no; then |
39931206 | 6263 | result=yes |
7ac0e38e VZ |
6264 | else |
6265 | result=no | |
39931206 VZ |
6266 | fi |
6267 | else | |
6268 | result=$wxUSE_CONSOLE_EVENTLOOP | |
6269 | fi | |
6270 | ||
d589327a VZ |
6271 | { echo "$as_me:$LINENO: result: $result" >&5 |
6272 | echo "${ECHO_T}$result" >&6; } | |
39931206 VZ |
6273 | |
6274 | ||
6275 | enablestring= | |
6276 | defaultval=$wxUSE_ALL_FEATURES | |
6277 | if test -z "$defaultval"; then | |
6278 | if test x"$enablestring" = xdisable; then | |
6279 | defaultval=yes | |
6280 | else | |
6281 | defaultval=no | |
6282 | fi | |
6283 | fi | |
6284 | ||
d589327a VZ |
6285 | { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-epollloop" >&5 |
6286 | echo $ECHO_N "checking for --${enablestring:-enable}-epollloop... $ECHO_C" >&6; } | |
05787cec PC |
6287 | # Check whether --enable-epollloop was given. |
6288 | if test "${enable_epollloop+set}" = set; then | |
6289 | enableval=$enable_epollloop; | |
39931206 | 6290 | if test "$enableval" = yes; then |
05787cec | 6291 | wx_cv_use_epollloop='wxUSE_EPOLL_DISPATCHER=yes' |
39931206 | 6292 | else |
05787cec | 6293 | wx_cv_use_epollloop='wxUSE_EPOLL_DISPATCHER=no' |
39931206 VZ |
6294 | fi |
6295 | ||
6296 | else | |
6297 | ||
05787cec | 6298 | wx_cv_use_epollloop='wxUSE_EPOLL_DISPATCHER=${'DEFAULT_wxUSE_EPOLL_DISPATCHER":-$defaultval}" |
39931206 | 6299 | |
47964710 VS |
6300 | fi |
6301 | ||
39931206 | 6302 | |
05787cec | 6303 | eval "$wx_cv_use_epollloop" |
39931206 VZ |
6304 | |
6305 | if test x"$enablestring" = xdisable; then | |
7ac0e38e | 6306 | if test $wxUSE_EPOLL_DISPATCHER = no; then |
39931206 | 6307 | result=yes |
7ac0e38e VZ |
6308 | else |
6309 | result=no | |
39931206 VZ |
6310 | fi |
6311 | else | |
6312 | result=$wxUSE_EPOLL_DISPATCHER | |
6313 | fi | |
6314 | ||
d589327a VZ |
6315 | { echo "$as_me:$LINENO: result: $result" >&5 |
6316 | echo "${ECHO_T}$result" >&6; } | |
39931206 VZ |
6317 | |
6318 | ||
6319 | enablestring= | |
6320 | defaultval=$wxUSE_ALL_FEATURES | |
6321 | if test -z "$defaultval"; then | |
6322 | if test x"$enablestring" = xdisable; then | |
6323 | defaultval=yes | |
6324 | else | |
6325 | defaultval=no | |
6326 | fi | |
6327 | fi | |
6328 | ||
d589327a VZ |
6329 | { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-selectloop" >&5 |
6330 | echo $ECHO_N "checking for --${enablestring:-enable}-selectloop... $ECHO_C" >&6; } | |
47964710 | 6331 | # Check whether --enable-selectloop was given. |
39931206 | 6332 | if test "${enable_selectloop+set}" = set; then |
47964710 | 6333 | enableval=$enable_selectloop; |
39931206 VZ |
6334 | if test "$enableval" = yes; then |
6335 | wx_cv_use_selectloop='wxUSE_SELECT_DISPATCHER=yes' | |
6336 | else | |
6337 | wx_cv_use_selectloop='wxUSE_SELECT_DISPATCHER=no' | |
6338 | fi | |
6339 | ||
6340 | else | |
6341 | ||
39931206 VZ |
6342 | wx_cv_use_selectloop='wxUSE_SELECT_DISPATCHER=${'DEFAULT_wxUSE_SELECT_DISPATCHER":-$defaultval}" |
6343 | ||
47964710 VS |
6344 | fi |
6345 | ||
39931206 VZ |
6346 | |
6347 | eval "$wx_cv_use_selectloop" | |
39931206 VZ |
6348 | |
6349 | if test x"$enablestring" = xdisable; then | |
7ac0e38e | 6350 | if test $wxUSE_SELECT_DISPATCHER = no; then |
39931206 | 6351 | result=yes |
7ac0e38e VZ |
6352 | else |
6353 | result=no | |
39931206 VZ |
6354 | fi |
6355 | else | |
6356 | result=$wxUSE_SELECT_DISPATCHER | |
6357 | fi | |
6358 | ||
d589327a VZ |
6359 | { echo "$as_me:$LINENO: result: $result" >&5 |
6360 | echo "${ECHO_T}$result" >&6; } | |
39931206 VZ |
6361 | |
6362 | ||
6363 | ||
178c7760 JS |
6364 | enablestring= |
6365 | defaultval=$wxUSE_ALL_FEATURES | |
6366 | if test -z "$defaultval"; then | |
6367 | if test x"$enablestring" = xdisable; then | |
6368 | defaultval=yes | |
6369 | else | |
6370 | defaultval=no | |
6371 | fi | |
6372 | fi | |
6373 | ||
6374 | { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-any" >&5 | |
6375 | echo $ECHO_N "checking for --${enablestring:-enable}-any... $ECHO_C" >&6; } | |
6376 | # Check whether --enable-any was given. | |
6377 | if test "${enable_any+set}" = set; then | |
6378 | enableval=$enable_any; | |
6379 | if test "$enableval" = yes; then | |
6380 | wx_cv_use_any='wxUSE_ANY=yes' | |
6381 | else | |
6382 | wx_cv_use_any='wxUSE_ANY=no' | |
6383 | fi | |
6384 | ||
6385 | else | |
6386 | ||
6387 | wx_cv_use_any='wxUSE_ANY=${'DEFAULT_wxUSE_ANY":-$defaultval}" | |
6388 | ||
6389 | fi | |
6390 | ||
6391 | ||
6392 | eval "$wx_cv_use_any" | |
6393 | ||
6394 | if test x"$enablestring" = xdisable; then | |
6395 | if test $wxUSE_ANY = no; then | |
6396 | result=yes | |
6397 | else | |
6398 | result=no | |
6399 | fi | |
6400 | else | |
6401 | result=$wxUSE_ANY | |
6402 | fi | |
6403 | ||
6404 | { echo "$as_me:$LINENO: result: $result" >&5 | |
6405 | echo "${ECHO_T}$result" >&6; } | |
6406 | ||
6407 | ||
077c7880 | 6408 | enablestring= |
6e198e97 | 6409 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 6410 | if test -z "$defaultval"; then |
6e198e97 VZ |
6411 | if test x"$enablestring" = xdisable; then |
6412 | defaultval=yes | |
6413 | else | |
6414 | defaultval=no | |
6415 | fi | |
6416 | fi | |
6417 | ||
d589327a VZ |
6418 | { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5 |
6419 | echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6; } | |
47964710 | 6420 | # Check whether --enable-apple_ieee was given. |
a848cd7e | 6421 | if test "${enable_apple_ieee+set}" = set; then |
47964710 | 6422 | enableval=$enable_apple_ieee; |
a848cd7e | 6423 | if test "$enableval" = yes; then |
d970f7d5 | 6424 | wx_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes' |
a848cd7e | 6425 | else |
d970f7d5 | 6426 | wx_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no' |
a848cd7e SC |
6427 | fi |
6428 | ||
6429 | else | |
6430 | ||
d970f7d5 | 6431 | wx_cv_use_apple_ieee='wxUSE_APPLE_IEEE=${'DEFAULT_wxUSE_APPLE_IEEE":-$defaultval}" |
a848cd7e | 6432 | |
47964710 VS |
6433 | fi |
6434 | ||
a848cd7e | 6435 | |
d970f7d5 | 6436 | eval "$wx_cv_use_apple_ieee" |
a848cd7e | 6437 | |
6e198e97 | 6438 | if test x"$enablestring" = xdisable; then |
7ac0e38e | 6439 | if test $wxUSE_APPLE_IEEE = no; then |
6e198e97 | 6440 | result=yes |
7ac0e38e VZ |
6441 | else |
6442 | result=no | |
6e198e97 | 6443 | fi |
a848cd7e | 6444 | else |
6e198e97 | 6445 | result=$wxUSE_APPLE_IEEE |
a848cd7e SC |
6446 | fi |
6447 | ||
d589327a VZ |
6448 | { echo "$as_me:$LINENO: result: $result" >&5 |
6449 | echo "${ECHO_T}$result" >&6; } | |
6e198e97 | 6450 | |
a848cd7e | 6451 | |
077c7880 | 6452 | enablestring= |
6e198e97 | 6453 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 6454 | if test -z "$defaultval"; then |
6e198e97 VZ |
6455 | if test x"$enablestring" = xdisable; then |
6456 | defaultval=yes | |
6457 | else | |
6458 | defaultval=no | |
6459 | fi | |
6460 | fi | |
6461 | ||
d589327a VZ |
6462 | { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-arcstream" >&5 |
6463 | echo $ECHO_N "checking for --${enablestring:-enable}-arcstream... $ECHO_C" >&6; } | |
47964710 | 6464 | # Check whether --enable-arcstream was given. |
81f90336 | 6465 | if test "${enable_arcstream+set}" = set; then |
47964710 | 6466 | enableval=$enable_arcstream; |
81f90336 | 6467 | if test "$enableval" = yes; then |
d970f7d5 | 6468 | wx_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=yes' |
81f90336 | 6469 | else |
d970f7d5 | 6470 | wx_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=no' |
81f90336 MW |
6471 | fi |
6472 | ||
6473 | else | |
6474 | ||
d970f7d5 | 6475 | wx_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=${'DEFAULT_wxUSE_ARCHIVE_STREAMS":-$defaultval}" |
81f90336 | 6476 | |
47964710 VS |
6477 | fi |
6478 | ||
81f90336 | 6479 | |
d970f7d5 | 6480 | eval "$wx_cv_use_arcstream" |
81f90336 | 6481 | |
6e198e97 | 6482 | if test x"$enablestring" = xdisable; then |
7ac0e38e | 6483 | if test $wxUSE_ARCHIVE_STREAMS = no; then |
6e198e97 | 6484 | result=yes |
7ac0e38e VZ |
6485 | else |
6486 | result=no | |
6e198e97 | 6487 | fi |
81f90336 | 6488 | else |
6e198e97 | 6489 | result=$wxUSE_ARCHIVE_STREAMS |
81f90336 MW |
6490 | fi |
6491 | ||
d589327a VZ |
6492 | { echo "$as_me:$LINENO: result: $result" >&5 |
6493 | echo "${ECHO_T}$result" >&6; } | |
6e198e97 | 6494 | |
81f90336 | 6495 | |
077c7880 | 6496 | enablestring= |
6e198e97 | 6497 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 6498 | if test -z "$defaultval"; then |
6e198e97 VZ |
6499 | if test x"$enablestring" = xdisable; then |
6500 | defaultval=yes | |
6501 | else | |
6502 | defaultval=no | |
6503 | fi | |
6504 | fi | |
6505 | ||
d589327a VZ |
6506 | { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-base64" >&5 |
6507 | echo $ECHO_N "checking for --${enablestring:-enable}-base64... $ECHO_C" >&6; } | |
47964710 | 6508 | # Check whether --enable-base64 was given. |
4db03d26 | 6509 | if test "${enable_base64+set}" = set; then |
47964710 | 6510 | enableval=$enable_base64; |
4db03d26 | 6511 | if test "$enableval" = yes; then |
d970f7d5 | 6512 | wx_cv_use_base64='wxUSE_BASE64=yes' |
4db03d26 | 6513 | else |
d970f7d5 | 6514 | wx_cv_use_base64='wxUSE_BASE64=no' |
4db03d26 VZ |
6515 | fi |
6516 | ||
6517 | else | |
6518 | ||
d970f7d5 | 6519 | wx_cv_use_base64='wxUSE_BASE64=${'DEFAULT_wxUSE_BASE64":-$defaultval}" |
4db03d26 | 6520 | |
47964710 VS |
6521 | fi |
6522 | ||
4db03d26 | 6523 | |
d970f7d5 | 6524 | eval "$wx_cv_use_base64" |
4db03d26 | 6525 | |
6e198e97 | 6526 | if test x"$enablestring" = xdisable; then |
7ac0e38e | 6527 | if test $wxUSE_BASE64 = no; then |
6e198e97 | 6528 | result=yes |
7ac0e38e VZ |
6529 | else |
6530 | result=no | |
6e198e97 | 6531 | fi |
4db03d26 | 6532 | else |
6e198e97 | 6533 | result=$wxUSE_BASE64 |
4db03d26 VZ |
6534 | fi |
6535 | ||
d589327a VZ |
6536 | { echo "$as_me:$LINENO: result: $result" >&5 |
6537 | echo "${ECHO_T}$result" >&6; } | |
6e198e97 | 6538 | |
4db03d26 VZ |
6539 | |
6540 | enablestring= | |
6e198e97 | 6541 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 6542 | if test -z "$defaultval"; then |
6e198e97 VZ |
6543 | if test x"$enablestring" = xdisable; then |
6544 | defaultval=yes | |
6545 | else | |
6546 | defaultval=no | |
6547 | fi | |
6548 | fi | |
6549 | ||
d589327a VZ |
6550 | { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-backtrace" >&5 |
6551 | echo $ECHO_N "checking for --${enablestring:-enable}-backtrace... $ECHO_C" >&6; } | |
47964710 | 6552 | # Check whether --enable-backtrace was given. |
36b6448c | 6553 | if test "${enable_backtrace+set}" = set; then |
47964710 | 6554 | enableval=$enable_backtrace; |
a848cd7e | 6555 | if test "$enableval" = yes; then |
d970f7d5 | 6556 | wx_cv_use_backtrace='wxUSE_STACKWALKER=yes' |
a848cd7e | 6557 | else |
d970f7d5 | 6558 | wx_cv_use_backtrace='wxUSE_STACKWALKER=no' |
a848cd7e SC |
6559 | fi |
6560 | ||
6561 | else | |
6562 | ||
d970f7d5 | 6563 | wx_cv_use_backtrace='wxUSE_STACKWALKER=${'DEFAULT_wxUSE_STACKWALKER":-$defaultval}" |
a848cd7e | 6564 | |
47964710 VS |
6565 | fi |
6566 | ||
a848cd7e | 6567 | |
d970f7d5 | 6568 | eval "$wx_cv_use_backtrace" |
a848cd7e | 6569 | |
6e198e97 | 6570 | if test x"$enablestring" = xdisable; then |
7ac0e38e | 6571 | if test $wxUSE_STACKWALKER = no; then |
6e198e97 | 6572 | result=yes |
7ac0e38e VZ |
6573 | else |
6574 | result=no | |
6e198e97 | 6575 | fi |
a848cd7e | 6576 | else |
6e198e97 | 6577 | result=$wxUSE_STACKWALKER |
a848cd7e SC |
6578 | fi |
6579 | ||
d589327a VZ |
6580 | { echo "$as_me:$LINENO: result: $result" >&5 |
6581 | echo "${ECHO_T}$result" >&6; } | |
6e198e97 | 6582 | |
a848cd7e | 6583 | |
077c7880 | 6584 | enablestring= |
6e198e97 | 6585 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 6586 | if test -z "$defaultval"; then |
6e198e97 VZ |
6587 | if test x"$enablestring" = xdisable; then |
6588 | defaultval=yes | |
6589 | else | |
6590 | defaultval=no | |
6591 | fi | |
6592 | fi | |
6593 | ||
d589327a VZ |
6594 | { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5 |
6595 | echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6; } | |
47964710 | 6596 | # Check whether --enable-catch_segvs was given. |
36b6448c | 6597 | if test "${enable_catch_segvs+set}" = set; then |
47964710 | 6598 | enableval=$enable_catch_segvs; |
eaff0f0d | 6599 | if test "$enableval" = yes; then |
d970f7d5 | 6600 | wx_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes' |
eaff0f0d | 6601 | else |
d970f7d5 | 6602 | wx_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no' |
eaff0f0d VZ |
6603 | fi |
6604 | ||
6605 | else | |
6606 | ||
d970f7d5 | 6607 | wx_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=${'DEFAULT_wxUSE_ON_FATAL_EXCEPTION":-$defaultval}" |
eaff0f0d | 6608 | |
47964710 VS |
6609 | fi |
6610 | ||
eaff0f0d | 6611 | |
d970f7d5 | 6612 | eval "$wx_cv_use_catch_segvs" |
eaff0f0d | 6613 | |
6e198e97 | 6614 | if test x"$enablestring" = xdisable; then |
7ac0e38e | 6615 | if test $wxUSE_ON_FATAL_EXCEPTION = no; then |
6e198e97 | 6616 | result=yes |
7ac0e38e VZ |
6617 | else |
6618 | result=no | |
6e198e97 | 6619 | fi |
eaff0f0d | 6620 | else |
6e198e97 | 6621 | result=$wxUSE_ON_FATAL_EXCEPTION |
eaff0f0d VZ |
6622 | fi |
6623 | ||
d589327a VZ |
6624 | { echo "$as_me:$LINENO: result: $result" >&5 |
6625 | echo "${ECHO_T}$result" >&6; } | |
6e198e97 | 6626 | |
eaff0f0d | 6627 | |
077c7880 | 6628 | enablestring= |
6e198e97 | 6629 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 6630 | if test -z "$defaultval"; then |
6e198e97 VZ |
6631 | if test x"$enablestring" = xdisable; then |
6632 | defaultval=yes | |
6633 | else | |
6634 | defaultval=no | |
6635 | fi | |
6636 | fi | |
6637 | ||
d589327a VZ |
6638 | { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5 |
6639 | echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6; } | |
47964710 | 6640 | # Check whether --enable-cmdline was given. |
a848cd7e | 6641 | if test "${enable_cmdline+set}" = set; then |
47964710 | 6642 | enableval=$enable_cmdline; |
a848cd7e | 6643 | if test "$enableval" = yes; then |
d970f7d5 | 6644 | wx_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes' |
a848cd7e | 6645 | else |
d970f7d5 | 6646 | wx_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no' |
a848cd7e SC |
6647 | fi |
6648 | ||
6649 | else | |
6650 | ||
d970f7d5 | 6651 | wx_cv_use_cmdline='wxUSE_CMDLINE_PARSER=${'DEFAULT_wxUSE_CMDLINE_PARSER":-$defaultval}" |
a848cd7e | 6652 | |
47964710 VS |
6653 | fi |
6654 | ||
a848cd7e | 6655 | |
d970f7d5 | 6656 | eval "$wx_cv_use_cmdline" |
a848cd7e | 6657 | |
6e198e97 | 6658 | if test x"$enablestring" = xdisable; then |
7ac0e38e | 6659 | if test $wxUSE_CMDLINE_PARSER = no; then |
6e198e97 | 6660 | result=yes |
7ac0e38e VZ |
6661 | else |
6662 | result=no | |
6e198e97 | 6663 | fi |
a848cd7e | 6664 | else |
6e198e97 | 6665 | result=$wxUSE_CMDLINE_PARSER |
a848cd7e SC |
6666 | fi |
6667 | ||
d589327a VZ |
6668 | { echo "$as_me:$LINENO: result: $result" >&5 |
6669 | echo "${ECHO_T}$result" >&6; } | |
6e198e97 | 6670 | |
a848cd7e | 6671 | |
077c7880 | 6672 | enablestring= |
6e198e97 | 6673 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 6674 | if test -z "$defaultval"; then |
6e198e97 VZ |
6675 | if test x"$enablestring" = xdisable; then |
6676 | defaultval=yes | |
6677 | else | |
6678 | defaultval=no | |
6679 | fi | |
6680 | fi | |
6681 | ||
d589327a VZ |
6682 | { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5 |
6683 | echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6; } | |
47964710 | 6684 | # Check whether --enable-datetime was given. |
a848cd7e | 6685 | if test "${enable_datetime+set}" = set; then |
47964710 | 6686 | enableval=$enable_datetime; |
a848cd7e | 6687 | if test "$enableval" = yes; then |
d970f7d5 | 6688 | wx_cv_use_datetime='wxUSE_DATETIME=yes' |
a848cd7e | 6689 | else |
d970f7d5 | 6690 | wx_cv_use_datetime='wxUSE_DATETIME=no' |
a848cd7e SC |
6691 | fi |
6692 | ||
6693 | else | |
6694 | ||
d970f7d5 | 6695 | wx_cv_use_datetime='wxUSE_DATETIME=${'DEFAULT_wxUSE_DATETIME":-$defaultval}" |
a848cd7e | 6696 | |
47964710 VS |
6697 | fi |
6698 | ||
a848cd7e | 6699 | |
d970f7d5 | 6700 | eval "$wx_cv_use_datetime" |
a848cd7e | 6701 | |
6e198e97 | 6702 | if test x"$enablestring" = xdisable; then |
7ac0e38e | 6703 | if test $wxUSE_DATETIME = no; then |
6e198e97 | 6704 | result=yes |
7ac0e38e VZ |
6705 | else |
6706 | result=no | |
6e198e97 | 6707 | fi |
a848cd7e | 6708 | else |
6e198e97 | 6709 | result=$wxUSE_DATETIME |
a848cd7e SC |
6710 | fi |
6711 | ||
d589327a VZ |
6712 | { echo "$as_me:$LINENO: result: $result" >&5 |
6713 | echo "${ECHO_T}$result" >&6; } | |
6e198e97 | 6714 | |
a848cd7e | 6715 | |
077c7880 | 6716 | enablestring= |
6e198e97 | 6717 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 6718 | if test -z "$defaultval"; then |
6e198e97 VZ |
6719 | if test x"$enablestring" = xdisable; then |
6720 | defaultval=yes | |
6721 | else | |
6722 | defaultval=no | |
6723 | fi | |
6724 | fi | |
6725 | ||
d589327a VZ |
6726 | { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debugreport" >&5 |
6727 | echo $ECHO_N "checking for --${enablestring:-enable}-debugreport... $ECHO_C" >&6; } | |
47964710 | 6728 | # Check whether --enable-debugreport was given. |
36b6448c | 6729 | if test "${enable_debugreport+set}" = set; then |
47964710 | 6730 | enableval=$enable_debugreport; |
36b6448c | 6731 | if test "$enableval" = yes; then |
d970f7d5 | 6732 | wx_cv_use_debugreport='wxUSE_DEBUGREPORT=yes' |
36b6448c | 6733 | else |
d970f7d5 | 6734 | wx_cv_use_debugreport='wxUSE_DEBUGREPORT=no' |
36b6448c VZ |
6735 | fi |
6736 | ||
6737 | else | |
6738 | ||
d970f7d5 | 6739 | wx_cv_use_debugreport='wxUSE_DEBUGREPORT=${'DEFAULT_wxUSE_DEBUGREPORT":-$defaultval}" |
36b6448c | 6740 | |
47964710 VS |
6741 | fi |
6742 | ||
36b6448c | 6743 | |
d970f7d5 | 6744 | eval "$wx_cv_use_debugreport" |
36b6448c | 6745 | |
6e198e97 | 6746 | if test x"$enablestring" = xdisable; then |
7ac0e38e | 6747 | if test $wxUSE_DEBUGREPORT = no; then |
6e198e97 | 6748 | result=yes |
7ac0e38e VZ |
6749 | else |
6750 | result=no | |
6e198e97 | 6751 | fi |
36b6448c | 6752 | else |
6e198e97 | 6753 | result=$wxUSE_DEBUGREPORT |
36b6448c VZ |
6754 | fi |
6755 | ||
d589327a VZ |
6756 | { echo "$as_me:$LINENO: result: $result" >&5 |
6757 | echo "${ECHO_T}$result" >&6; } | |
6e198e97 | 6758 | |
36b6448c | 6759 | |
077c7880 | 6760 | enablestring= |
6e198e97 | 6761 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 6762 | if test -z "$defaultval"; then |
6e198e97 VZ |
6763 | if test x"$enablestring" = xdisable; then |
6764 | defaultval=yes | |
6765 | else | |
6766 | defaultval=no | |
6767 | fi | |
6768 | fi | |
6769 | ||
d589327a VZ |
6770 | { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5 |
6771 | echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6; } | |
47964710 | 6772 | # Check whether --enable-dialupman was given. |
a848cd7e | 6773 | if test "${enable_dialupman+set}" = set; then |
47964710 | 6774 | enableval=$enable_dialupman; |
a848cd7e | 6775 | if test "$enableval" = yes; then |
d970f7d5 | 6776 | wx_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes' |
a848cd7e | 6777 | else |
d970f7d5 | 6778 | wx_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no' |
a848cd7e SC |
6779 | fi |
6780 | ||
6781 | else | |
6782 | ||
d970f7d5 | 6783 | wx_cv_use_dialupman='wxUSE_DIALUP_MANAGER=${'DEFAULT_wxUSE_DIALUP_MANAGER":-$defaultval}" |
a848cd7e | 6784 | |
47964710 VS |
6785 | fi |
6786 | ||
a848cd7e | 6787 | |
d970f7d5 | 6788 | eval "$wx_cv_use_dialupman" |
a848cd7e | 6789 | |
6e198e97 | 6790 | if test x"$enablestring" = xdisable; then |
7ac0e38e | 6791 | if test $wxUSE_DIALUP_MANAGER = no; then |
6e198e97 | 6792 | result=yes |
7ac0e38e VZ |
6793 | else |
6794 | result=no | |
6e198e97 | 6795 | fi |
a848cd7e | 6796 | else |
6e198e97 | 6797 | result=$wxUSE_DIALUP_MANAGER |
a848cd7e SC |
6798 | fi |
6799 | ||
d589327a VZ |
6800 | { echo "$as_me:$LINENO: result: $result" >&5 |
6801 | echo "${ECHO_T}$result" >&6; } | |
6e198e97 | 6802 | |
a848cd7e | 6803 | |
077c7880 | 6804 | enablestring= |
6e198e97 | 6805 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 6806 | if test -z "$defaultval"; then |
6e198e97 VZ |
6807 | if test x"$enablestring" = xdisable; then |
6808 | defaultval=yes | |
6809 | else | |
6810 | defaultval=no | |
6811 | fi | |
6812 | fi | |
6813 | ||
d589327a VZ |
6814 | { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5 |
6815 | echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6; } | |
47964710 | 6816 | # Check whether --enable-dynlib was given. |
a848cd7e | 6817 | if test "${enable_dynlib+set}" = set; then |
47964710 | 6818 | enableval=$enable_dynlib; |
a848cd7e | 6819 | if test "$enableval" = yes; then |
d970f7d5 | 6820 | wx_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes' |
a848cd7e | 6821 | else |
d970f7d5 | 6822 | wx_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no' |
a848cd7e SC |
6823 | fi |
6824 | ||
6825 | else | |
6826 | ||
d970f7d5 | 6827 | wx_cv_use_dynlib='wxUSE_DYNLIB_CLASS=${'DEFAULT_wxUSE_DYNLIB_CLASS":-$defaultval}" |
a848cd7e | 6828 | |
47964710 VS |
6829 | fi |
6830 | ||
a848cd7e | 6831 | |
d970f7d5 | 6832 | eval "$wx_cv_use_dynlib" |
a848cd7e | 6833 | |
6e198e97 | 6834 | if test x"$enablestring" = xdisable; then |
7ac0e38e | 6835 | if test $wxUSE_DYNLIB_CLASS = no; then |
6e198e97 | 6836 | result=yes |
7ac0e38e VZ |
6837 | else |
6838 | result=no | |
6e198e97 | 6839 | fi |
a848cd7e | 6840 | else |
6e198e97 | 6841 | result=$wxUSE_DYNLIB_CLASS |
a848cd7e SC |
6842 | fi |
6843 | ||
d589327a VZ |
6844 | { echo "$as_me:$LINENO: result: $result" >&5 |
6845 | echo "${ECHO_T}$result" >&6; } | |
6e198e97 | 6846 | |
a848cd7e | 6847 | |
077c7880 | 6848 | enablestring= |
6e198e97 | 6849 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 6850 | if test -z "$defaultval"; then |
6e198e97 VZ |
6851 | if test x"$enablestring" = xdisable; then |
6852 | defaultval=yes | |
6853 | else | |
6854 | defaultval=no | |
6855 | fi | |
6856 | fi | |
6857 | ||
d589327a VZ |
6858 | { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5 |
6859 | echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6; } | |
47964710 | 6860 | # Check whether --enable-dynamicloader was given. |
a848cd7e | 6861 | if test "${enable_dynamicloader+set}" = set; then |
47964710 | 6862 | enableval=$enable_dynamicloader; |
a848cd7e | 6863 | if test "$enableval" = yes; then |
d970f7d5 | 6864 | wx_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes' |
a848cd7e | 6865 | else |
d970f7d5 | 6866 | wx_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no' |
a848cd7e SC |
6867 | fi |
6868 | ||
6869 | else | |
6870 | ||
d970f7d5 | 6871 | wx_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=${'DEFAULT_wxUSE_DYNAMIC_LOADER":-$defaultval}" |
a848cd7e | 6872 | |
47964710 VS |
6873 | fi |
6874 | ||
a848cd7e | 6875 | |
d970f7d5 | 6876 | eval "$wx_cv_use_dynamicloader" |
a848cd7e | 6877 | |
6e198e97 | 6878 | if test x"$enablestring" = xdisable; then |
7ac0e38e | 6879 | if test $wxUSE_DYNAMIC_LOADER = no; then |
6e198e97 | 6880 | result=yes |
7ac0e38e VZ |
6881 | else |
6882 | result=no | |
6e198e97 | 6883 | fi |
a848cd7e | 6884 | else |
6e198e97 | 6885 | result=$wxUSE_DYNAMIC_LOADER |
a848cd7e SC |
6886 | fi |
6887 | ||
d589327a VZ |
6888 | { echo "$as_me:$LINENO: result: $result" >&5 |
6889 | echo "${ECHO_T}$result" >&6; } | |
6e198e97 | 6890 | |
a848cd7e | 6891 | |
077c7880 | 6892 | enablestring= |
6e198e97 | 6893 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 6894 | if test -z "$defaultval"; then |
6e198e97 VZ |
6895 | if test x"$enablestring" = xdisable; then |
6896 | defaultval=yes | |
6897 | else | |
6898 | defaultval=no | |
6899 | fi | |
6900 | fi | |
6901 | ||
d589327a VZ |
6902 | { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5 |
6903 | echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6; } | |
47964710 | 6904 | # Check whether --enable-exceptions was given. |
a848cd7e | 6905 | if test "${enable_exceptions+set}" = set; then |
47964710 | 6906 | enableval=$enable_exceptions; |
a848cd7e | 6907 | if test "$enableval" = yes; then |
d970f7d5 | 6908 | wx_cv_use_exceptions='wxUSE_EXCEPTIONS=yes' |
a848cd7e | 6909 | else |
d970f7d5 | 6910 | wx_cv_use_exceptions='wxUSE_EXCEPTIONS=no' |
a848cd7e SC |
6911 | fi |
6912 | ||
6913 | else | |
6914 | ||
d970f7d5 | 6915 | wx_cv_use_exceptions='wxUSE_EXCEPTIONS=${'DEFAULT_wxUSE_EXCEPTIONS":-$defaultval}" |
a848cd7e | 6916 | |
47964710 VS |
6917 | fi |
6918 | ||
a848cd7e | 6919 | |
d970f7d5 | 6920 | eval "$wx_cv_use_exceptions" |
a848cd7e | 6921 | |
6e198e97 | 6922 | if test x"$enablestring" = xdisable; then |
7ac0e38e | 6923 | if test $wxUSE_EXCEPTIONS = no; then |
6e198e97 | 6924 | result=yes |
7ac0e38e VZ |
6925 | else |
6926 | result=no | |
6e198e97 | 6927 | fi |
a848cd7e | 6928 | else |
6e198e97 | 6929 | result=$wxUSE_EXCEPTIONS |
a848cd7e SC |
6930 | fi |
6931 | ||
d589327a VZ |
6932 | { echo "$as_me:$LINENO: result: $result" >&5 |
6933 | echo "${ECHO_T}$result" >&6; } | |
6e198e97 | 6934 | |
a848cd7e | 6935 | |
077c7880 | 6936 | enablestring= |
6e198e97 | 6937 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 6938 | if test -z "$defaultval"; then |
6e198e97 VZ |
6939 | if test x"$enablestring" = xdisable; then |
6940 | defaultval=yes | |
6941 | else | |
6942 | defaultval=no | |
6943 | fi | |
6944 | fi | |
6945 | ||
d589327a VZ |
6946 | { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5 |
6947 | echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6; } | |
47964710 | 6948 | # Check whether --enable-ffile was given. |
a848cd7e | 6949 | if test "${enable_ffile+set}" = set; then |
47964710 | 6950 | enableval=$enable_ffile; |
a848cd7e | 6951 | if test "$enableval" = yes; then |
d970f7d5 | 6952 | wx_cv_use_ffile='wxUSE_FFILE=yes' |
a848cd7e | 6953 | else |
d970f7d5 | 6954 | wx_cv_use_ffile='wxUSE_FFILE=no' |
a848cd7e SC |
6955 | fi |
6956 | ||
6957 | else | |
6958 | ||
d970f7d5 | 6959 | wx_cv_use_ffile='wxUSE_FFILE=${'DEFAULT_wxUSE_FFILE":-$defaultval}" |
a848cd7e | 6960 | |
47964710 VS |
6961 | fi |
6962 | ||
a848cd7e | 6963 | |
d970f7d5 | 6964 | eval "$wx_cv_use_ffile" |
a848cd7e | 6965 | |
6e198e97 | 6966 | if test x"$enablestring" = xdisable; then |
7ac0e38e | 6967 | if test $wxUSE_FFILE = no; then |
6e198e97 | 6968 | result=yes |
7ac0e38e VZ |
6969 | else |
6970 | result=no | |
6e198e97 | 6971 | fi |
a848cd7e | 6972 | else |
6e198e97 | 6973 | result=$wxUSE_FFILE |
a848cd7e SC |
6974 | fi |
6975 | ||
d589327a VZ |
6976 | { echo "$as_me:$LINENO: result: $result" >&5 |
6977 | echo "${ECHO_T}$result" >&6; } | |
6e198e97 | 6978 | |
a848cd7e | 6979 | |
077c7880 | 6980 | enablestring= |
6e198e97 | 6981 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 6982 | if test -z "$defaultval"; then |
6e198e97 VZ |
6983 | if test x"$enablestring" = xdisable; then |
6984 | defaultval=yes | |
6985 | else | |
6986 | defaultval=no | |
6987 | fi | |
6988 | fi | |
6989 | ||
d589327a VZ |
6990 | { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5 |
6991 | echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6; } | |
47964710 | 6992 | # Check whether --enable-file was given. |
a848cd7e | 6993 | if test "${enable_file+set}" = set; then |
47964710 | 6994 | enableval=$enable_file; |
a848cd7e | 6995 | if test "$enableval" = yes; then |
d970f7d5 | 6996 | wx_cv_use_file='wxUSE_FILE=yes' |
a848cd7e | 6997 | else |
d970f7d5 | 6998 | wx_cv_use_file='wxUSE_FILE=no' |
a848cd7e SC |
6999 | fi |
7000 | ||
7001 | else | |
7002 | ||
d970f7d5 | 7003 | wx_cv_use_file='wxUSE_FILE=${'DEFAULT_wxUSE_FILE":-$defaultval}" |
a848cd7e | 7004 | |
47964710 VS |
7005 | fi |
7006 | ||
a848cd7e | 7007 | |
d970f7d5 | 7008 | eval "$wx_cv_use_file" |
a848cd7e | 7009 | |
6e198e97 | 7010 | if test x"$enablestring" = xdisable; then |
7ac0e38e | 7011 | if test $wxUSE_FILE = no; then |
6e198e97 | 7012 | result=yes |
7ac0e38e VZ |
7013 | else |
7014 | result=no | |
6e198e97 | 7015 | fi |
a848cd7e | 7016 | else |
6e198e97 | 7017 | result=$wxUSE_FILE |
a848cd7e SC |
7018 | fi |
7019 | ||
d589327a VZ |
7020 | { echo "$as_me:$LINENO: result: $result" >&5 |
7021 | echo "${ECHO_T}$result" >&6; } | |
6e198e97 | 7022 | |
a848cd7e | 7023 | |
a0219e45 VS |
7024 | enablestring= |
7025 | defaultval=$wxUSE_ALL_FEATURES | |
7026 | if test -z "$defaultval"; then | |
7027 | if test x"$enablestring" = xdisable; then | |
7028 | defaultval=yes | |
7029 | else | |
7030 | defaultval=no | |
7031 | fi | |
7032 | fi | |
7033 | ||
7034 | { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filehistory" >&5 | |
7035 | echo $ECHO_N "checking for --${enablestring:-enable}-filehistory... $ECHO_C" >&6; } | |
7036 | # Check whether --enable-filehistory was given. | |
7037 | if test "${enable_filehistory+set}" = set; then | |
7038 | enableval=$enable_filehistory; | |
7039 | if test "$enableval" = yes; then | |
7040 | wx_cv_use_filehistory='wxUSE_FILE_HISTORY=yes' | |
7041 | else | |
7042 | wx_cv_use_filehistory='wxUSE_FILE_HISTORY=no' | |
7043 | fi | |
7044 | ||
7045 | else | |
7046 | ||
7047 | wx_cv_use_filehistory='wxUSE_FILE_HISTORY=${'DEFAULT_wxUSE_FILE_HISTORY":-$defaultval}" | |
7048 | ||
7049 | fi | |
7050 | ||
7051 | ||
7052 | eval "$wx_cv_use_filehistory" | |
7053 | ||
7054 | if test x"$enablestring" = xdisable; then | |
7055 | if test $wxUSE_FILE_HISTORY = no; then | |
7056 | result=yes | |
7057 | else | |
7058 | result=no | |
7059 | fi | |
7060 | else | |
7061 | result=$wxUSE_FILE_HISTORY | |
7062 | fi | |
7063 | ||
7064 | { echo "$as_me:$LINENO: result: $result" >&5 | |
7065 | echo "${ECHO_T}$result" >&6; } | |
7066 | ||
7067 | ||
077c7880 | 7068 | enablestring= |
6e198e97 | 7069 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 7070 | if test -z "$defaultval"; then |
6e198e97 VZ |
7071 | if test x"$enablestring" = xdisable; then |
7072 | defaultval=yes | |
7073 | else | |
7074 | defaultval=no | |
7075 | fi | |
7076 | fi | |
7077 | ||
d589327a VZ |
7078 | { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5 |
7079 | echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6; } | |
47964710 | 7080 | # Check whether --enable-filesystem was given. |
a848cd7e | 7081 | if test "${enable_filesystem+set}" = set; then |
47964710 | 7082 | enableval=$enable_filesystem; |
a848cd7e | 7083 | if test "$enableval" = yes; then |
d970f7d5 | 7084 | wx_cv_use_filesystem='wxUSE_FILESYSTEM=yes' |
a848cd7e | 7085 | else |
d970f7d5 | 7086 | wx_cv_use_filesystem='wxUSE_FILESYSTEM=no' |
a848cd7e SC |
7087 | fi |
7088 | ||
7089 | else | |
7090 | ||
d970f7d5 | 7091 | wx_cv_use_filesystem='wxUSE_FILESYSTEM=${'DEFAULT_wxUSE_FILESYSTEM":-$defaultval}" |
a848cd7e | 7092 | |
47964710 VS |
7093 | fi |
7094 | ||
a848cd7e | 7095 | |
d970f7d5 | 7096 | eval "$wx_cv_use_filesystem" |
a848cd7e | 7097 | |
6e198e97 | 7098 | if test x"$enablestring" = xdisable; then |
7ac0e38e | 7099 | if test $wxUSE_FILESYSTEM = no; then |
6e198e97 | 7100 | result=yes |
7ac0e38e VZ |
7101 | else |
7102 | result=no | |
6e198e97 | 7103 | fi |
a848cd7e | 7104 | else |
6e198e97 | 7105 | result=$wxUSE_FILESYSTEM |
a848cd7e SC |
7106 | fi |
7107 | ||
d589327a VZ |
7108 | { echo "$as_me:$LINENO: result: $result" >&5 |
7109 | echo "${ECHO_T}$result" >&6; } | |
6e198e97 | 7110 | |
a848cd7e | 7111 | |
ff427585 VZ |
7112 | enablestring= |
7113 | defaultval=$wxUSE_ALL_FEATURES | |
7114 | if test -z "$defaultval"; then | |
7115 | if test x"$enablestring" = xdisable; then | |
7116 | defaultval=yes | |
7117 | else | |
7118 | defaultval=no | |
7119 | fi | |
7120 | fi | |
7121 | ||
d589327a VZ |
7122 | { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontenum" >&5 |
7123 | echo $ECHO_N "checking for --${enablestring:-enable}-fontenum... $ECHO_C" >&6; } | |
47964710 | 7124 | # Check whether --enable-fontenum was given. |
ff427585 | 7125 | if test "${enable_fontenum+set}" = set; then |
47964710 | 7126 | enableval=$enable_fontenum; |
ff427585 VZ |
7127 | if test "$enableval" = yes; then |
7128 | wx_cv_use_fontenum='wxUSE_FONTENUM=yes' | |
7129 | else | |
7130 | wx_cv_use_fontenum='wxUSE_FONTENUM=no' | |
7131 | fi | |
7132 | ||
7133 | else | |
7134 | ||
ff427585 VZ |
7135 | wx_cv_use_fontenum='wxUSE_FONTENUM=${'DEFAULT_wxUSE_FONTENUM":-$defaultval}" |
7136 | ||
47964710 VS |
7137 | fi |
7138 | ||
ff427585 VZ |
7139 | |
7140 | eval "$wx_cv_use_fontenum" | |
ff427585 VZ |
7141 | |
7142 | if test x"$enablestring" = xdisable; then | |
7ac0e38e | 7143 | if test $wxUSE_FONTENUM = no; then |
ff427585 | 7144 | result=yes |
7ac0e38e VZ |
7145 | else |
7146 | result=no | |
ff427585 VZ |
7147 | fi |
7148 | else | |
7149 | result=$wxUSE_FONTENUM | |
7150 | fi | |
7151 | ||
d589327a VZ |
7152 | { echo "$as_me:$LINENO: result: $result" >&5 |
7153 | echo "${ECHO_T}$result" >&6; } | |
ff427585 VZ |
7154 | |
7155 | ||
077c7880 | 7156 | enablestring= |
6e198e97 | 7157 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 7158 | if test -z "$defaultval"; then |
6e198e97 VZ |
7159 | if test x"$enablestring" = xdisable; then |
7160 | defaultval=yes | |
7161 | else | |
7162 | defaultval=no | |
7163 | fi | |
7164 | fi | |
7165 | ||
d589327a VZ |
7166 | { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5 |
7167 | echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6; } | |
47964710 | 7168 | # Check whether --enable-fontmap was given. |
a848cd7e | 7169 | if test "${enable_fontmap+set}" = set; then |
47964710 | 7170 | enableval=$enable_fontmap; |
a848cd7e | 7171 | if test "$enableval" = yes; then |
d970f7d5 | 7172 | wx_cv_use_fontmap='wxUSE_FONTMAP=yes' |
a848cd7e | 7173 | else |
d970f7d5 | 7174 | wx_cv_use_fontmap='wxUSE_FONTMAP=no' |
a848cd7e SC |
7175 | fi |
7176 | ||
7177 | else | |
7178 | ||
d970f7d5 | 7179 | wx_cv_use_fontmap='wxUSE_FONTMAP=${'DEFAULT_wxUSE_FONTMAP":-$defaultval}" |
a848cd7e | 7180 | |
47964710 VS |
7181 | fi |
7182 | ||
a848cd7e | 7183 | |
d970f7d5 | 7184 | eval "$wx_cv_use_fontmap" |
a848cd7e | 7185 | |
6e198e97 | 7186 | if test x"$enablestring" = xdisable; then |
7ac0e38e | 7187 | if test $wxUSE_FONTMAP = no; then |
6e198e97 | 7188 | result=yes |
7ac0e38e VZ |
7189 | else |
7190 | result=no | |
6e198e97 | 7191 | fi |
a848cd7e | 7192 | else |
6e198e97 | 7193 | result=$wxUSE_FONTMAP |
a848cd7e SC |
7194 | fi |
7195 | ||
d589327a VZ |
7196 | { echo "$as_me:$LINENO: result: $result" >&5 |
7197 | echo "${ECHO_T}$result" >&6; } | |
6e198e97 | 7198 | |
a848cd7e | 7199 | |
077c7880 | 7200 | enablestring= |
6e198e97 | 7201 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 7202 | if test -z "$defaultval"; then |
6e198e97 VZ |
7203 | if test x"$enablestring" = xdisable; then |
7204 | defaultval=yes | |
7205 | else | |
7206 | defaultval=no | |
7207 | fi | |
7208 | fi | |
7209 | ||
d589327a VZ |
7210 | { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_archive" >&5 |
7211 | echo $ECHO_N "checking for --${enablestring:-enable}-fs_archive... $ECHO_C" >&6; } | |
47964710 | 7212 | # Check whether --enable-fs_archive was given. |
26e422a9 | 7213 | if test "${enable_fs_archive+set}" = set; then |
47964710 | 7214 | enableval=$enable_fs_archive; |
26e422a9 | 7215 | if test "$enableval" = yes; then |
d970f7d5 | 7216 | wx_cv_use_fs_archive='wxUSE_FS_ARCHIVE=yes' |
26e422a9 | 7217 | else |
d970f7d5 | 7218 | wx_cv_use_fs_archive='wxUSE_FS_ARCHIVE=no' |
26e422a9 MW |
7219 | fi |
7220 | ||
7221 | else | |
7222 | ||
d970f7d5 | 7223 | wx_cv_use_fs_archive='wxUSE_FS_ARCHIVE=${'DEFAULT_wxUSE_FS_ARCHIVE":-$defaultval}" |
26e422a9 | 7224 | |
47964710 VS |
7225 | fi |
7226 | ||
26e422a9 | 7227 | |
d970f7d5 | 7228 | eval "$wx_cv_use_fs_archive" |
26e422a9 | 7229 | |
6e198e97 | 7230 | if test x"$enablestring" = xdisable; then |
7ac0e38e | 7231 | if test $wxUSE_FS_ARCHIVE = no; then |
6e198e97 | 7232 | result=yes |
7ac0e38e VZ |
7233 | else |
7234 | result=no | |
6e198e97 | 7235 | fi |
26e422a9 | 7236 | else |
6e198e97 | 7237 | result=$wxUSE_FS_ARCHIVE |
26e422a9 MW |
7238 | fi |
7239 | ||
d589327a VZ |
7240 | { echo "$as_me:$LINENO: result: $result" >&5 |
7241 | echo "${ECHO_T}$result" >&6; } | |
6e198e97 | 7242 | |
26e422a9 | 7243 | |
077c7880 | 7244 | enablestring= |
6e198e97 | 7245 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 7246 | if test -z "$defaultval"; then |
6e198e97 VZ |
7247 | if test x"$enablestring" = xdisable; then |
7248 | defaultval=yes | |
7249 | else | |
7250 | defaultval=no | |
7251 | fi | |
7252 | fi | |
7253 | ||
d589327a VZ |
7254 | { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5 |
7255 | echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6; } | |
47964710 | 7256 | # Check whether --enable-fs_inet was given. |
a848cd7e | 7257 | if test "${enable_fs_inet+set}" = set; then |
47964710 | 7258 | enableval=$enable_fs_inet; |
a848cd7e | 7259 | if test "$enableval" = yes; then |
d970f7d5 | 7260 | wx_cv_use_fs_inet='wxUSE_FS_INET=yes' |
a848cd7e | 7261 | else |
d970f7d5 | 7262 | wx_cv_use_fs_inet='wxUSE_FS_INET=no' |
a848cd7e SC |
7263 | fi |
7264 | ||
7265 | else | |
7266 | ||
d970f7d5 | 7267 | wx_cv_use_fs_inet='wxUSE_FS_INET=${'DEFAULT_wxUSE_FS_INET":-$defaultval}" |
a848cd7e | 7268 | |
47964710 VS |
7269 | fi |
7270 | ||
a848cd7e | 7271 | |
d970f7d5 | 7272 | eval "$wx_cv_use_fs_inet" |
a848cd7e | 7273 | |
6e198e97 | 7274 | if test x"$enablestring" = xdisable; then |
7ac0e38e | 7275 | if test $wxUSE_FS_INET = no; then |
6e198e97 | 7276 | result=yes |
7ac0e38e VZ |
7277 | else |
7278 | result=no | |
6e198e97 | 7279 | fi |
a848cd7e | 7280 | else |
6e198e97 | 7281 | result=$wxUSE_FS_INET |
a848cd7e SC |
7282 | fi |
7283 | ||
d589327a VZ |
7284 | { echo "$as_me:$LINENO: result: $result" >&5 |
7285 | echo "${ECHO_T}$result" >&6; } | |
6e198e97 | 7286 | |
a848cd7e | 7287 | |
077c7880 | 7288 | enablestring= |
6e198e97 | 7289 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 7290 | if test -z "$defaultval"; then |
6e198e97 VZ |
7291 | if test x"$enablestring" = xdisable; then |
7292 | defaultval=yes | |
7293 | else | |
7294 | defaultval=no | |
7295 | fi | |
7296 | fi | |
7297 | ||
d589327a VZ |
7298 | { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5 |
7299 | echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6; } | |
47964710 | 7300 | # Check whether --enable-fs_zip was given. |
a848cd7e | 7301 | if test "${enable_fs_zip+set}" = set; then |
47964710 | 7302 | enableval=$enable_fs_zip; |
a848cd7e | 7303 | if test "$enableval" = yes; then |
d970f7d5 | 7304 | wx_cv_use_fs_zip='wxUSE_FS_ZIP=yes' |
a848cd7e | 7305 | else |
d970f7d5 | 7306 | wx_cv_use_fs_zip='wxUSE_FS_ZIP=no' |
a848cd7e SC |
7307 | fi |
7308 | ||
7309 | else | |
7310 | ||
d970f7d5 | 7311 | wx_cv_use_fs_zip='wxUSE_FS_ZIP=${'DEFAULT_wxUSE_FS_ZIP":-$defaultval}" |
a848cd7e | 7312 | |
47964710 VS |
7313 | fi |
7314 | ||
a848cd7e | 7315 | |
d970f7d5 | 7316 | eval "$wx_cv_use_fs_zip" |
a848cd7e | 7317 | |
6e198e97 | 7318 | if test x"$enablestring" = xdisable; then |
7ac0e38e | 7319 | if test $wxUSE_FS_ZIP = no; then |
6e198e97 | 7320 | result=yes |
7ac0e38e VZ |
7321 | else |
7322 | result=no | |
6e198e97 | 7323 | fi |
a848cd7e | 7324 | else |
6e198e97 | 7325 | result=$wxUSE_FS_ZIP |
a848cd7e SC |
7326 | fi |
7327 | ||
d589327a VZ |
7328 | { echo "$as_me:$LINENO: result: $result" >&5 |
7329 | echo "${ECHO_T}$result" >&6; } | |
6e198e97 | 7330 | |
a848cd7e | 7331 | |
6b8ef0b3 VZ |
7332 | enablestring= |
7333 | defaultval=$wxUSE_ALL_FEATURES | |
7334 | if test -z "$defaultval"; then | |
7335 | if test x"$enablestring" = xdisable; then | |
7336 | defaultval=yes | |
7337 | else | |
7338 | defaultval=no | |
7339 | fi | |
7340 | fi | |
7341 | ||
7342 | { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fswatcher" >&5 | |
7343 | echo $ECHO_N "checking for --${enablestring:-enable}-fswatcher... $ECHO_C" >&6; } | |
7344 | # Check whether --enable-fswatcher was given. | |
7345 | if test "${enable_fswatcher+set}" = set; then | |
7346 | enableval=$enable_fswatcher; | |
7347 | if test "$enableval" = yes; then | |
7348 | wx_cv_use_fswatcher='wxUSE_FSWATCHER=yes' | |
7349 | else | |
7350 | wx_cv_use_fswatcher='wxUSE_FSWATCHER=no' | |
7351 | fi | |
7352 | ||
7353 | else | |
7354 | ||
7355 | wx_cv_use_fswatcher='wxUSE_FSWATCHER=${'DEFAULT_wxUSE_FSWATCHER":-$defaultval}" | |
7356 | ||
7357 | fi | |
7358 | ||
7359 | ||
7360 | eval "$wx_cv_use_fswatcher" | |
7361 | ||
7362 | if test x"$enablestring" = xdisable; then | |
7363 | if test $wxUSE_FSWATCHER = no; then | |
7364 | result=yes | |
7365 | else | |
7366 | result=no | |
7367 | fi | |
7368 | else | |
7369 | result=$wxUSE_FSWATCHER | |
7370 | fi | |
7371 | ||
7372 | { echo "$as_me:$LINENO: result: $result" >&5 | |
7373 | echo "${ECHO_T}$result" >&6; } | |
7374 | ||
7375 | ||
077c7880 | 7376 | enablestring= |
6e198e97 | 7377 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 7378 | if test -z "$defaultval"; then |
6e198e97 VZ |
7379 | if test x"$enablestring" = xdisable; then |
7380 | defaultval=yes | |
7381 | else | |
7382 | defaultval=no | |
7383 | fi | |
7384 | fi | |
7385 | ||
d589327a VZ |
7386 | { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5 |
7387 | echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6; } | |
47964710 | 7388 | # Check whether --enable-geometry was given. |
a848cd7e | 7389 | if test "${enable_geometry+set}" = set; then |
47964710 | 7390 | enableval=$enable_geometry; |
a848cd7e | 7391 | if test "$enableval" = yes; then |
d970f7d5 | 7392 | wx_cv_use_geometry='wxUSE_GEOMETRY=yes' |
a848cd7e | 7393 | else |
d970f7d5 | 7394 | wx_cv_use_geometry='wxUSE_GEOMETRY=no' |
a848cd7e SC |
7395 | fi |
7396 | ||
7397 | else | |
7398 | ||
d970f7d5 | 7399 | wx_cv_use_geometry='wxUSE_GEOMETRY=${'DEFAULT_wxUSE_GEOMETRY":-$defaultval}" |
a848cd7e | 7400 | |
47964710 VS |
7401 | fi |
7402 | ||
a848cd7e | 7403 | |
d970f7d5 | 7404 | eval "$wx_cv_use_geometry" |
a848cd7e | 7405 | |
6e198e97 | 7406 | if test x"$enablestring" = xdisable; then |
7ac0e38e | 7407 | if test $wxUSE_GEOMETRY = no; then |
6e198e97 | 7408 | result=yes |
7ac0e38e VZ |
7409 | else |
7410 | result=no | |
6e198e97 | 7411 | fi |
a848cd7e | 7412 | else |
6e198e97 | 7413 | result=$wxUSE_GEOMETRY |
a848cd7e SC |
7414 | fi |
7415 | ||
d589327a VZ |
7416 | { echo "$as_me:$LINENO: result: $result" >&5 |
7417 | echo "${ECHO_T}$result" >&6; } | |
6e198e97 | 7418 | |
a848cd7e | 7419 | |
077c7880 | 7420 | enablestring= |
6e198e97 | 7421 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 7422 | if test -z "$defaultval"; then |
6e198e97 VZ |
7423 | if test x"$enablestring" = xdisable; then |
7424 | defaultval=yes | |
7425 | else | |
7426 | defaultval=no | |
7427 | fi | |
7428 | fi | |
7429 | ||
d589327a VZ |
7430 | { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5 |
7431 | echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6; } | |
47964710 | 7432 | # Check whether --enable-log was given. |
a848cd7e | 7433 | if test "${enable_log+set}" = set; then |
47964710 | 7434 | enableval=$enable_log; |
a848cd7e | 7435 | if test "$enableval" = yes; then |
d970f7d5 | 7436 | wx_cv_use_log='wxUSE_LOG=yes' |
a848cd7e | 7437 | else |
d970f7d5 | 7438 | wx_cv_use_log='wxUSE_LOG=no' |
a848cd7e SC |
7439 | fi |
7440 | ||
7441 | else | |
7442 | ||
d970f7d5 | 7443 | wx_cv_use_log='wxUSE_LOG=${'DEFAULT_wxUSE_LOG":-$defaultval}" |
a848cd7e | 7444 | |
47964710 VS |
7445 | fi |
7446 | ||
a848cd7e | 7447 | |
d970f7d5 | 7448 | eval "$wx_cv_use_log" |
a848cd7e | 7449 | |
6e198e97 | 7450 | if test x"$enablestring" = xdisable; then |
7ac0e38e | 7451 | if test $wxUSE_LOG = no; then |
6e198e97 | 7452 | result=yes |
7ac0e38e VZ |
7453 | else |
7454 | result=no | |
6e198e97 | 7455 | fi |
a848cd7e | 7456 | else |
6e198e97 | 7457 | result=$wxUSE_LOG |
a848cd7e SC |
7458 | fi |
7459 | ||
d589327a VZ |
7460 | { echo "$as_me:$LINENO: result: $result" >&5 |
7461 | echo "${ECHO_T}$result" >&6; } | |
6e198e97 | 7462 | |
a848cd7e | 7463 | |
077c7880 | 7464 | enablestring= |
6e198e97 | 7465 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 7466 | if test -z "$defaultval"; then |
6e198e97 VZ |
7467 | if test x"$enablestring" = xdisable; then |
7468 | defaultval=yes | |
7469 | else | |
7470 | defaultval=no | |
7471 | fi | |
7472 | fi | |
7473 | ||
d589327a VZ |
7474 | { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5 |
7475 | echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6; } | |
47964710 | 7476 | # Check whether --enable-longlong was given. |
a848cd7e | 7477 | if test "${enable_longlong+set}" = set; then |
47964710 | 7478 | enableval=$enable_longlong; |
a848cd7e | 7479 | if test "$enableval" = yes; then |
d970f7d5 | 7480 | wx_cv_use_longlong='wxUSE_LONGLONG=yes' |
a848cd7e | 7481 | else |
d970f7d5 | 7482 | wx_cv_use_longlong='wxUSE_LONGLONG=no' |
a848cd7e SC |
7483 | fi |
7484 | ||
7485 | else | |
7486 | ||
d970f7d5 | 7487 | wx_cv_use_longlong='wxUSE_LONGLONG=${'DEFAULT_wxUSE_LONGLONG":-$defaultval}" |
a848cd7e | 7488 | |
47964710 VS |
7489 | fi |
7490 | ||
a848cd7e | 7491 | |
d970f7d5 | 7492 | eval "$wx_cv_use_longlong" |
a848cd7e | 7493 | |
6e198e97 | 7494 | if test x"$enablestring" = xdisable; then |
7ac0e38e | 7495 | if test $wxUSE_LONGLONG = no; then |
6e198e97 | 7496 | result=yes |
7ac0e38e VZ |
7497 | else |
7498 | result=no | |
6e198e97 | 7499 | fi |
a848cd7e | 7500 | else |
6e198e97 | 7501 | result=$wxUSE_LONGLONG |
a848cd7e SC |
7502 | fi |
7503 | ||
d589327a VZ |
7504 | { echo "$as_me:$LINENO: result: $result" >&5 |
7505 | echo "${ECHO_T}$result" >&6; } | |
6e198e97 | 7506 | |
a848cd7e | 7507 | |
077c7880 | 7508 | enablestring= |
6e198e97 | 7509 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 7510 | if test -z "$defaultval"; then |
6e198e97 VZ |
7511 | if test x"$enablestring" = xdisable; then |
7512 | defaultval=yes | |
7513 | else | |
7514 | defaultval=no | |
7515 | fi | |
7516 | fi | |
7517 | ||
d589327a VZ |
7518 | { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5 |
7519 | echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6; } | |
47964710 | 7520 | # Check whether --enable-mimetype was given. |
a848cd7e | 7521 | if test "${enable_mimetype+set}" = set; then |
47964710 | 7522 | enableval=$enable_mimetype; |
a848cd7e | 7523 | if test "$enableval" = yes; then |
d970f7d5 | 7524 | wx_cv_use_mimetype='wxUSE_MIMETYPE=yes' |
a848cd7e | 7525 | else |
d970f7d5 | 7526 | wx_cv_use_mimetype='wxUSE_MIMETYPE=no' |
a848cd7e SC |
7527 | fi |
7528 | ||
7529 | else | |
7530 | ||
d970f7d5 | 7531 | wx_cv_use_mimetype='wxUSE_MIMETYPE=${'DEFAULT_wxUSE_MIMETYPE":-$defaultval}" |
a848cd7e | 7532 | |
47964710 VS |
7533 | fi |
7534 | ||
a848cd7e | 7535 | |
d970f7d5 | 7536 | eval "$wx_cv_use_mimetype" |
a848cd7e | 7537 | |
6e198e97 | 7538 | if test x"$enablestring" = xdisable; then |
7ac0e38e | 7539 | if test $wxUSE_MIMETYPE = no; then |
6e198e97 | 7540 | result=yes |
7ac0e38e VZ |
7541 | else |
7542 | result=no | |
6e198e97 | 7543 | fi |
a848cd7e | 7544 | else |
6e198e97 | 7545 | result=$wxUSE_MIMETYPE |
81727065 VS |
7546 | fi |
7547 | ||
d589327a VZ |
7548 | { echo "$as_me:$LINENO: result: $result" >&5 |
7549 | echo "${ECHO_T}$result" >&6; } | |
81727065 VS |
7550 | |
7551 | ||
4732e2dc VZ |
7552 | enablestring= |
7553 | defaultval=$wxUSE_ALL_FEATURES | |
7554 | if test -z "$defaultval"; then | |
7555 | if test x"$enablestring" = xdisable; then | |
7556 | defaultval=yes | |
7557 | else | |
7558 | defaultval=no | |
7559 | fi | |
7560 | fi | |
7561 | ||
d589327a VZ |
7562 | { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printfposparam" >&5 |
7563 | echo $ECHO_N "checking for --${enablestring:-enable}-printfposparam... $ECHO_C" >&6; } | |
4732e2dc VZ |
7564 | # Check whether --enable-printfposparam was given. |
7565 | if test "${enable_printfposparam+set}" = set; then | |
7566 | enableval=$enable_printfposparam; | |
7567 | if test "$enableval" = yes; then | |
7568 | wx_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS=yes' | |
7569 | else | |
7570 | wx_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS=no' | |
7571 | fi | |
7572 | ||
7573 | else | |
7574 | ||
7575 | wx_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS=${'DEFAULT_wxUSE_PRINTF_POS_PARAMS":-$defaultval}" | |
7576 | ||
7577 | fi | |
7578 | ||
7579 | ||
7580 | eval "$wx_cv_use_printfposparam" | |
7581 | ||
7582 | if test x"$enablestring" = xdisable; then | |
7ac0e38e | 7583 | if test $wxUSE_PRINTF_POS_PARAMS = no; then |
4732e2dc | 7584 | result=yes |
7ac0e38e VZ |
7585 | else |
7586 | result=no | |
4732e2dc VZ |
7587 | fi |
7588 | else | |
7589 | result=$wxUSE_PRINTF_POS_PARAMS | |
7590 | fi | |
7591 | ||
d589327a VZ |
7592 | { echo "$as_me:$LINENO: result: $result" >&5 |
7593 | echo "${ECHO_T}$result" >&6; } | |
4732e2dc VZ |
7594 | |
7595 | ||
111d9948 | 7596 | enablestring= |
6e198e97 | 7597 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 7598 | if test -z "$defaultval"; then |
6e198e97 VZ |
7599 | if test x"$enablestring" = xdisable; then |
7600 | defaultval=yes | |
7601 | else | |
7602 | defaultval=no | |
7603 | fi | |
111d9948 VS |
7604 | fi |
7605 | ||
d589327a VZ |
7606 | { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5 |
7607 | echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6; } | |
47964710 | 7608 | # Check whether --enable-snglinst was given. |
a848cd7e | 7609 | if test "${enable_snglinst+set}" = set; then |
47964710 | 7610 | enableval=$enable_snglinst; |
a848cd7e | 7611 | if test "$enableval" = yes; then |
d970f7d5 | 7612 | wx_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes' |
a848cd7e | 7613 | else |
d970f7d5 | 7614 | wx_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no' |
a848cd7e SC |
7615 | fi |
7616 | ||
7617 | else | |
7618 | ||
d970f7d5 | 7619 | wx_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=${'DEFAULT_wxUSE_SNGLINST_CHECKER":-$defaultval}" |
a848cd7e | 7620 | |
47964710 VS |
7621 | fi |
7622 | ||
a848cd7e | 7623 | |
d970f7d5 | 7624 | eval "$wx_cv_use_snglinst" |
a848cd7e | 7625 | |
6e198e97 | 7626 | if test x"$enablestring" = xdisable; then |
7ac0e38e | 7627 | if test $wxUSE_SNGLINST_CHECKER = no; then |
6e198e97 | 7628 | result=yes |
7ac0e38e VZ |
7629 | else |
7630 | result=no | |
6e198e97 | 7631 | fi |
a848cd7e | 7632 | else |
6e198e97 | 7633 | result=$wxUSE_SNGLINST_CHECKER |
a848cd7e SC |
7634 | fi |
7635 | ||
d589327a VZ |
7636 | { echo "$as_me:$LINENO: result: $result" >&5 |
7637 | echo "${ECHO_T}$result" >&6; } | |
a848cd7e SC |
7638 | |
7639 | ||
4732e2dc VZ |
7640 | enablestring= |
7641 | defaultval=$wxUSE_ALL_FEATURES | |
7642 | if test -z "$defaultval"; then | |
7643 | if test x"$enablestring" = xdisable; then | |
7644 | defaultval=yes | |
7645 | else | |
7646 | defaultval=no | |
7647 | fi | |
7648 | fi | |
7649 | ||
d589327a VZ |
7650 | { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sound" >&5 |
7651 | echo $ECHO_N "checking for --${enablestring:-enable}-sound... $ECHO_C" >&6; } | |
4732e2dc VZ |
7652 | # Check whether --enable-sound was given. |
7653 | if test "${enable_sound+set}" = set; then | |
7654 | enableval=$enable_sound; | |
7655 | if test "$enableval" = yes; then | |
7656 | wx_cv_use_sound='wxUSE_SOUND=yes' | |
7657 | else | |
7658 | wx_cv_use_sound='wxUSE_SOUND=no' | |
7659 | fi | |
7660 | ||
7661 | else | |
7662 | ||
7663 | wx_cv_use_sound='wxUSE_SOUND=${'DEFAULT_wxUSE_SOUND":-$defaultval}" | |
7664 | ||
7665 | fi | |
7666 | ||
7667 | ||
7668 | eval "$wx_cv_use_sound" | |
7669 | ||
7670 | if test x"$enablestring" = xdisable; then | |
7ac0e38e | 7671 | if test $wxUSE_SOUND = no; then |
4732e2dc | 7672 | result=yes |
7ac0e38e VZ |
7673 | else |
7674 | result=no | |
4732e2dc VZ |
7675 | fi |
7676 | else | |
7677 | result=$wxUSE_SOUND | |
7678 | fi | |
7679 | ||
d589327a VZ |
7680 | { echo "$as_me:$LINENO: result: $result" >&5 |
7681 | echo "${ECHO_T}$result" >&6; } | |
4732e2dc VZ |
7682 | |
7683 | ||
077c7880 | 7684 | enablestring= |
6e198e97 | 7685 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 7686 | if test -z "$defaultval"; then |
6e198e97 VZ |
7687 | if test x"$enablestring" = xdisable; then |
7688 | defaultval=yes | |
7689 | else | |
7690 | defaultval=no | |
7691 | fi | |
59746b65 MW |
7692 | fi |
7693 | ||
d589327a VZ |
7694 | { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stdpaths" >&5 |
7695 | echo $ECHO_N "checking for --${enablestring:-enable}-stdpaths... $ECHO_C" >&6; } | |
47964710 | 7696 | # Check whether --enable-stdpaths was given. |
07158944 | 7697 | if test "${enable_stdpaths+set}" = set; then |
47964710 | 7698 | enableval=$enable_stdpaths; |
a848cd7e | 7699 | if test "$enableval" = yes; then |
d970f7d5 | 7700 | wx_cv_use_stdpaths='wxUSE_STDPATHS=yes' |
a848cd7e | 7701 | else |
d970f7d5 | 7702 | wx_cv_use_stdpaths='wxUSE_STDPATHS=no' |
a848cd7e SC |
7703 | fi |
7704 | ||
7705 | else | |
7706 | ||
d970f7d5 | 7707 | wx_cv_use_stdpaths='wxUSE_STDPATHS=${'DEFAULT_wxUSE_STDPATHS":-$defaultval}" |
a848cd7e | 7708 | |
47964710 VS |
7709 | fi |
7710 | ||
a848cd7e | 7711 | |
d970f7d5 | 7712 | eval "$wx_cv_use_stdpaths" |
a848cd7e | 7713 | |
6e198e97 | 7714 | if test x"$enablestring" = xdisable; then |
7ac0e38e | 7715 | if test $wxUSE_STDPATHS = no; then |
6e198e97 | 7716 | result=yes |
7ac0e38e VZ |
7717 | else |
7718 | result=no | |
6e198e97 | 7719 | fi |
a848cd7e | 7720 | else |
6e198e97 | 7721 | result=$wxUSE_STDPATHS |
a848cd7e SC |
7722 | fi |
7723 | ||
d589327a VZ |
7724 | { echo "$as_me:$LINENO: result: $result" >&5 |
7725 | echo "${ECHO_T}$result" >&6; } | |
6e198e97 | 7726 | |
a848cd7e | 7727 | |
077c7880 | 7728 | enablestring= |
6e198e97 | 7729 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 7730 | if test -z "$defaultval"; then |
6e198e97 VZ |
7731 | if test x"$enablestring" = xdisable; then |
7732 | defaultval=yes | |
7733 | else | |
7734 | defaultval=no | |
7735 | fi | |
7736 | fi | |
7737 | ||
d589327a VZ |
7738 | { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5 |
7739 | echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6; } | |
47964710 | 7740 | # Check whether --enable-stopwatch was given. |
a848cd7e | 7741 | if test "${enable_stopwatch+set}" = set; then |
47964710 | 7742 | enableval=$enable_stopwatch; |
a848cd7e | 7743 | if test "$enableval" = yes; then |
d970f7d5 | 7744 | wx_cv_use_stopwatch='wxUSE_STOPWATCH=yes' |
a848cd7e | 7745 | else |
d970f7d5 | 7746 | wx_cv_use_stopwatch='wxUSE_STOPWATCH=no' |
a848cd7e SC |
7747 | fi |
7748 | ||
7749 | else | |
7750 | ||
d970f7d5 | 7751 | wx_cv_use_stopwatch='wxUSE_STOPWATCH=${'DEFAULT_wxUSE_STOPWATCH":-$defaultval}" |
a848cd7e | 7752 | |
47964710 VS |
7753 | fi |
7754 | ||
a848cd7e | 7755 | |
d970f7d5 | 7756 | eval "$wx_cv_use_stopwatch" |
6e198e97 VZ |
7757 | |
7758 | if test x"$enablestring" = xdisable; then | |
7ac0e38e | 7759 | if test $wxUSE_STOPWATCH = no; then |
6e198e97 | 7760 | result=yes |
7ac0e38e VZ |
7761 | else |
7762 | result=no | |
6e198e97 | 7763 | fi |
a848cd7e | 7764 | else |
6e198e97 | 7765 | result=$wxUSE_STOPWATCH |
a848cd7e SC |
7766 | fi |
7767 | ||
d589327a VZ |
7768 | { echo "$as_me:$LINENO: result: $result" >&5 |
7769 | echo "${ECHO_T}$result" >&6; } | |
6e198e97 | 7770 | |
a848cd7e | 7771 | |
077c7880 | 7772 | enablestring= |
6e198e97 | 7773 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 7774 | if test -z "$defaultval"; then |
6e198e97 VZ |
7775 | if test x"$enablestring" = xdisable; then |
7776 | defaultval=yes | |
7777 | else | |
7778 | defaultval=no | |
7779 | fi | |
7780 | fi | |
7781 | ||
d589327a VZ |
7782 | { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5 |
7783 | echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6; } | |
47964710 | 7784 | # Check whether --enable-streams was given. |
07158944 | 7785 | if test "${enable_streams+set}" = set; then |
47964710 | 7786 | enableval=$enable_streams; |
07158944 | 7787 | if test "$enableval" = yes; then |
d970f7d5 | 7788 | wx_cv_use_streams='wxUSE_STREAMS=yes' |
07158944 | 7789 | else |
d970f7d5 | 7790 | wx_cv_use_streams='wxUSE_STREAMS=no' |
07158944 VZ |
7791 | fi |
7792 | ||
7793 | else | |
7794 | ||
d970f7d5 | 7795 | wx_cv_use_streams='wxUSE_STREAMS=${'DEFAULT_wxUSE_STREAMS":-$defaultval}" |
07158944 | 7796 | |
47964710 VS |
7797 | fi |
7798 | ||
07158944 | 7799 | |
d970f7d5 | 7800 | eval "$wx_cv_use_streams" |
07158944 | 7801 | |
6e198e97 | 7802 | if test x"$enablestring" = xdisable; then |
7ac0e38e | 7803 | if test $wxUSE_STREAMS = no; then |
6e198e97 | 7804 | result=yes |
7ac0e38e VZ |
7805 | else |
7806 | result=no | |
6e198e97 | 7807 | fi |
07158944 | 7808 | else |
6e198e97 | 7809 | result=$wxUSE_STREAMS |
07158944 VZ |
7810 | fi |
7811 | ||
d589327a VZ |
7812 | { echo "$as_me:$LINENO: result: $result" >&5 |
7813 | echo "${ECHO_T}$result" >&6; } | |
6e198e97 | 7814 | |
07158944 | 7815 | |
077c7880 | 7816 | enablestring= |
6e198e97 | 7817 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 7818 | if test -z "$defaultval"; then |
6e198e97 VZ |
7819 | if test x"$enablestring" = xdisable; then |
7820 | defaultval=yes | |
7821 | else | |
7822 | defaultval=no | |
7823 | fi | |
7824 | fi | |
7825 | ||
16d4f440 PC |
7826 | { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sysoptions" >&5 |
7827 | echo $ECHO_N "checking for --${enablestring:-enable}-sysoptions... $ECHO_C" >&6; } | |
7828 | # Check whether --enable-sysoptions was given. | |
7829 | if test "${enable_sysoptions+set}" = set; then | |
7830 | enableval=$enable_sysoptions; | |
a848cd7e | 7831 | if test "$enableval" = yes; then |
16d4f440 | 7832 | wx_cv_use_sysoptions='wxUSE_SYSTEM_OPTIONS=yes' |
a848cd7e | 7833 | else |
16d4f440 | 7834 | wx_cv_use_sysoptions='wxUSE_SYSTEM_OPTIONS=no' |
a848cd7e SC |
7835 | fi |
7836 | ||
7837 | else | |
7838 | ||
16d4f440 | 7839 | wx_cv_use_sysoptions='wxUSE_SYSTEM_OPTIONS=${'DEFAULT_wxUSE_SYSTEM_OPTIONS":-$defaultval}" |
a848cd7e | 7840 | |
47964710 VS |
7841 | fi |
7842 | ||
a848cd7e | 7843 | |
16d4f440 | 7844 | eval "$wx_cv_use_sysoptions" |
a848cd7e | 7845 | |
6e198e97 | 7846 | if test x"$enablestring" = xdisable; then |
7ac0e38e | 7847 | if test $wxUSE_SYSTEM_OPTIONS = no; then |
6e198e97 | 7848 | result=yes |
7ac0e38e VZ |
7849 | else |
7850 | result=no | |
6e198e97 | 7851 | fi |
a848cd7e | 7852 | else |
6e198e97 | 7853 | result=$wxUSE_SYSTEM_OPTIONS |
a848cd7e SC |
7854 | fi |
7855 | ||
d589327a VZ |
7856 | { echo "$as_me:$LINENO: result: $result" >&5 |
7857 | echo "${ECHO_T}$result" >&6; } | |
6e198e97 | 7858 | |
a848cd7e | 7859 | |
077c7880 | 7860 | enablestring= |
6e198e97 | 7861 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 7862 | if test -z "$defaultval"; then |
6e198e97 VZ |
7863 | if test x"$enablestring" = xdisable; then |
7864 | defaultval=yes | |
7865 | else | |
7866 | defaultval=no | |
7867 | fi | |
7868 | fi | |
7869 | ||
d589327a VZ |
7870 | { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tarstream" >&5 |
7871 | echo $ECHO_N "checking for --${enablestring:-enable}-tarstream... $ECHO_C" >&6; } | |
47964710 | 7872 | # Check whether --enable-tarstream was given. |
26e422a9 | 7873 | if test "${enable_tarstream+set}" = set; then |
47964710 | 7874 | enableval=$enable_tarstream; |
26e422a9 | 7875 | if test "$enableval" = yes; then |
d970f7d5 | 7876 | wx_cv_use_tarstream='wxUSE_TARSTREAM=yes' |
26e422a9 | 7877 | else |
d970f7d5 | 7878 | wx_cv_use_tarstream='wxUSE_TARSTREAM=no' |
26e422a9 MW |
7879 | fi |
7880 | ||
7881 | else | |
7882 | ||
d970f7d5 | 7883 | wx_cv_use_tarstream='wxUSE_TARSTREAM=${'DEFAULT_wxUSE_TARSTREAM":-$defaultval}" |
26e422a9 | 7884 | |
47964710 VS |
7885 | fi |
7886 | ||
26e422a9 | 7887 | |
d970f7d5 | 7888 | eval "$wx_cv_use_tarstream" |
26e422a9 | 7889 | |
6e198e97 | 7890 | if test x"$enablestring" = xdisable; then |
7ac0e38e | 7891 | if test $wxUSE_TARSTREAM = no; then |
6e198e97 | 7892 | result=yes |
7ac0e38e VZ |
7893 | else |
7894 | result=no | |
6e198e97 | 7895 | fi |
26e422a9 | 7896 | else |
6e198e97 | 7897 | result=$wxUSE_TARSTREAM |
26e422a9 MW |
7898 | fi |
7899 | ||
d589327a VZ |
7900 | { echo "$as_me:$LINENO: result: $result" >&5 |
7901 | echo "${ECHO_T}$result" >&6; } | |
6e198e97 | 7902 | |
26e422a9 | 7903 | |
077c7880 | 7904 | enablestring= |
6e198e97 | 7905 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 7906 | if test -z "$defaultval"; then |
6e198e97 VZ |
7907 | if test x"$enablestring" = xdisable; then |
7908 | defaultval=yes | |
7909 | else | |
7910 | defaultval=no | |
7911 | fi | |
7912 | fi | |
7913 | ||
d589327a VZ |
7914 | { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5 |
7915 | echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6; } | |
47964710 | 7916 | # Check whether --enable-textbuf was given. |
a848cd7e | 7917 | if test "${enable_textbuf+set}" = set; then |
47964710 | 7918 | enableval=$enable_textbuf; |
a848cd7e | 7919 | if test "$enableval" = yes; then |
d970f7d5 | 7920 | wx_cv_use_textbuf='wxUSE_TEXTBUFFER=yes' |
a848cd7e | 7921 | else |
d970f7d5 | 7922 | wx_cv_use_textbuf='wxUSE_TEXTBUFFER=no' |
a848cd7e SC |
7923 | fi |
7924 | ||
7925 | else | |
7926 | ||
d970f7d5 | 7927 | wx_cv_use_textbuf='wxUSE_TEXTBUFFER=${'DEFAULT_wxUSE_TEXTBUFFER":-$defaultval}" |
a848cd7e | 7928 | |
47964710 VS |
7929 | fi |
7930 | ||
a848cd7e | 7931 | |
d970f7d5 | 7932 | eval "$wx_cv_use_textbuf" |
a848cd7e | 7933 | |
6e198e97 | 7934 | if test x"$enablestring" = xdisable; then |
7ac0e38e | 7935 | if test $wxUSE_TEXTBUFFER = no; then |
6e198e97 | 7936 | result=yes |
7ac0e38e VZ |
7937 | else |
7938 | result=no | |
6e198e97 | 7939 | fi |
a848cd7e | 7940 | else |
6e198e97 | 7941 | result=$wxUSE_TEXTBUFFER |
a848cd7e SC |
7942 | fi |
7943 | ||
d589327a VZ |
7944 | { echo "$as_me:$LINENO: result: $result" >&5 |
7945 | echo "${ECHO_T}$result" >&6; } | |
6e198e97 | 7946 | |
a848cd7e | 7947 | |
077c7880 | 7948 | enablestring= |
6e198e97 | 7949 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 7950 | if test -z "$defaultval"; then |
6e198e97 VZ |
7951 | if test x"$enablestring" = xdisable; then |
7952 | defaultval=yes | |
7953 | else | |
7954 | defaultval=no | |
7955 | fi | |
7956 | fi | |
7957 | ||
d589327a VZ |
7958 | { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5 |
7959 | echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6; } | |
47964710 | 7960 | # Check whether --enable-textfile was given. |
a848cd7e | 7961 | if test "${enable_textfile+set}" = set; then |
47964710 | 7962 | enableval=$enable_textfile; |
a848cd7e | 7963 | if test "$enableval" = yes; then |
d970f7d5 | 7964 | wx_cv_use_textfile='wxUSE_TEXTFILE=yes' |
a848cd7e | 7965 | else |
d970f7d5 | 7966 | wx_cv_use_textfile='wxUSE_TEXTFILE=no' |
a848cd7e SC |
7967 | fi |
7968 | ||
7969 | else | |
7970 | ||
d970f7d5 | 7971 | wx_cv_use_textfile='wxUSE_TEXTFILE=${'DEFAULT_wxUSE_TEXTFILE":-$defaultval}" |
a848cd7e | 7972 | |
47964710 VS |
7973 | fi |
7974 | ||
a848cd7e | 7975 | |
d970f7d5 | 7976 | eval "$wx_cv_use_textfile" |
a848cd7e | 7977 | |
6e198e97 | 7978 | if test x"$enablestring" = xdisable; then |
7ac0e38e | 7979 | if test $wxUSE_TEXTFILE = no; then |
6e198e97 | 7980 | result=yes |
7ac0e38e VZ |
7981 | else |
7982 | result=no | |
6e198e97 | 7983 | fi |
a848cd7e | 7984 | else |
6e198e97 | 7985 | result=$wxUSE_TEXTFILE |
a848cd7e SC |
7986 | fi |
7987 | ||
d589327a VZ |
7988 | { echo "$as_me:$LINENO: result: $result" >&5 |
7989 | echo "${ECHO_T}$result" >&6; } | |
6e198e97 | 7990 | |
a848cd7e | 7991 | |
077c7880 | 7992 | enablestring= |
6e198e97 | 7993 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 7994 | if test -z "$defaultval"; then |
6e198e97 VZ |
7995 | if test x"$enablestring" = xdisable; then |
7996 | defaultval=yes | |
7997 | else | |
7998 | defaultval=no | |
7999 | fi | |
8000 | fi | |
8001 | ||
d589327a VZ |
8002 | { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5 |
8003 | echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6; } | |
47964710 | 8004 | # Check whether --enable-timer was given. |
a848cd7e | 8005 | if test "${enable_timer+set}" = set; then |
47964710 | 8006 | enableval=$enable_timer; |
a848cd7e | 8007 | if test "$enableval" = yes; then |
d970f7d5 | 8008 | wx_cv_use_timer='wxUSE_TIMER=yes' |
a848cd7e | 8009 | else |
d970f7d5 | 8010 | wx_cv_use_timer='wxUSE_TIMER=no' |
a848cd7e SC |
8011 | fi |
8012 | ||
8013 | else | |
8014 | ||
d970f7d5 | 8015 | wx_cv_use_timer='wxUSE_TIMER=${'DEFAULT_wxUSE_TIMER":-$defaultval}" |
a848cd7e | 8016 | |
47964710 VS |
8017 | fi |
8018 | ||
a848cd7e | 8019 | |
d970f7d5 | 8020 | eval "$wx_cv_use_timer" |
a848cd7e | 8021 | |
6e198e97 | 8022 | if test x"$enablestring" = xdisable; then |
7ac0e38e | 8023 | if test $wxUSE_TIMER = no; then |
6e198e97 | 8024 | result=yes |
7ac0e38e VZ |
8025 | else |
8026 | result=no | |
6e198e97 | 8027 | fi |
a848cd7e | 8028 | else |
6e198e97 | 8029 | result=$wxUSE_TIMER |
a848cd7e SC |
8030 | fi |
8031 | ||
d589327a VZ |
8032 | { echo "$as_me:$LINENO: result: $result" >&5 |
8033 | echo "${ECHO_T}$result" >&6; } | |
a848cd7e | 8034 | |
a848cd7e | 8035 | |
6e198e97 VZ |
8036 | enablestring= |
8037 | defaultval=$wxUSE_ALL_FEATURES | |
238663c1 | 8038 | if test -z "$defaultval"; then |
6e198e97 VZ |
8039 | if test x"$enablestring" = xdisable; then |
8040 | defaultval=yes | |
8041 | else | |
8042 | defaultval=no | |
8043 | fi | |
a848cd7e SC |
8044 | fi |
8045 | ||
d589327a VZ |
8046 | { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-variant" >&5 |
8047 | echo $ECHO_N "checking for --${enablestring:-enable}-variant... $ECHO_C" >&6; } | |
4732e2dc VZ |
8048 | # Check whether --enable-variant was given. |
8049 | if test "${enable_variant+set}" = set; then | |
8050 | enableval=$enable_variant; | |
f10e38c4 | 8051 | if test "$enableval" = yes; then |
4732e2dc | 8052 | wx_cv_use_variant='wxUSE_VARIANT=yes' |
f10e38c4 | 8053 | else |
4732e2dc | 8054 | wx_cv_use_variant='wxUSE_VARIANT=no' |
f10e38c4 VZ |
8055 | fi |
8056 | ||
8057 | else | |
8058 | ||
4732e2dc | 8059 | wx_cv_use_variant='wxUSE_VARIANT=${'DEFAULT_wxUSE_VARIANT":-$defaultval}" |
f10e38c4 | 8060 | |
47964710 VS |
8061 | fi |
8062 | ||
f10e38c4 | 8063 | |
4732e2dc | 8064 | eval "$wx_cv_use_variant" |
f10e38c4 | 8065 | |
6e198e97 | 8066 | if test x"$enablestring" = xdisable; then |
7ac0e38e | 8067 | if test $wxUSE_VARIANT = no; then |
6e198e97 | 8068 | result=yes |
7ac0e38e VZ |
8069 | else |
8070 | result=no | |
6e198e97 | 8071 | fi |
f10e38c4 | 8072 | else |
4732e2dc | 8073 | result=$wxUSE_VARIANT |
f10e38c4 VZ |
8074 | fi |
8075 | ||
d589327a VZ |
8076 | { echo "$as_me:$LINENO: result: $result" >&5 |
8077 | echo "${ECHO_T}$result" >&6; } | |
6e198e97 | 8078 | |
f10e38c4 | 8079 | |
077c7880 | 8080 | enablestring= |
6e198e97 | 8081 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 8082 | if test -z "$defaultval"; then |
6e198e97 VZ |
8083 | if test x"$enablestring" = xdisable; then |
8084 | defaultval=yes | |
8085 | else | |
8086 | defaultval=no | |
8087 | fi | |
8088 | fi | |
8089 | ||
d589327a VZ |
8090 | { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5 |
8091 | echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6; } | |
47964710 | 8092 | # Check whether --enable-zipstream was given. |
a848cd7e | 8093 | if test "${enable_zipstream+set}" = set; then |
47964710 | 8094 | enableval=$enable_zipstream; |
a848cd7e | 8095 | if test "$enableval" = yes; then |
d970f7d5 | 8096 | wx_cv_use_zipstream='wxUSE_ZIPSTREAM=yes' |
a848cd7e | 8097 | else |
d970f7d5 | 8098 | wx_cv_use_zipstream='wxUSE_ZIPSTREAM=no' |
a848cd7e SC |
8099 | fi |
8100 | ||
8101 | else | |
8102 | ||
d970f7d5 | 8103 | wx_cv_use_zipstream='wxUSE_ZIPSTREAM=${'DEFAULT_wxUSE_ZIPSTREAM":-$defaultval}" |
a848cd7e | 8104 | |
47964710 VS |
8105 | fi |
8106 | ||
a848cd7e | 8107 | |
d970f7d5 | 8108 | eval "$wx_cv_use_zipstream" |
a848cd7e | 8109 | |
6e198e97 | 8110 | if test x"$enablestring" = xdisable; then |
7ac0e38e | 8111 | if test $wxUSE_ZIPSTREAM = no; then |
6e198e97 | 8112 | result=yes |
7ac0e38e VZ |
8113 | else |
8114 | result=no | |
6e198e97 | 8115 | fi |
a848cd7e | 8116 | else |
6e198e97 | 8117 | result=$wxUSE_ZIPSTREAM |
a848cd7e SC |
8118 | fi |
8119 | ||
d589327a VZ |
8120 | { echo "$as_me:$LINENO: result: $result" >&5 |
8121 | echo "${ECHO_T}$result" >&6; } | |
6e198e97 | 8122 | |
a848cd7e | 8123 | |
a848cd7e | 8124 | |
077c7880 | 8125 | enablestring= |
6e198e97 | 8126 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 8127 | if test -z "$defaultval"; then |
6e198e97 VZ |
8128 | if test x"$enablestring" = xdisable; then |
8129 | defaultval=yes | |
8130 | else | |
8131 | defaultval=no | |
8132 | fi | |
8133 | fi | |
8134 | ||
d589327a VZ |
8135 | { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5 |
8136 | echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6; } | |
47964710 | 8137 | # Check whether --enable-url was given. |
a848cd7e | 8138 | if test "${enable_url+set}" = set; then |
47964710 | 8139 | enableval=$enable_url; |
a848cd7e | 8140 | if test "$enableval" = yes; then |
d970f7d5 | 8141 | wx_cv_use_url='wxUSE_URL=yes' |
a848cd7e | 8142 | else |
d970f7d5 | 8143 | wx_cv_use_url='wxUSE_URL=no' |
a848cd7e SC |
8144 | fi |
8145 | ||
8146 | else | |
8147 | ||
d970f7d5 | 8148 | wx_cv_use_url='wxUSE_URL=${'DEFAULT_wxUSE_URL":-$defaultval}" |
a848cd7e | 8149 | |
47964710 VS |
8150 | fi |
8151 | ||
a848cd7e | 8152 | |
d970f7d5 | 8153 | eval "$wx_cv_use_url" |
a848cd7e | 8154 | |
6e198e97 | 8155 | if test x"$enablestring" = xdisable; then |
7ac0e38e | 8156 | if test $wxUSE_URL = no; then |
6e198e97 | 8157 | result=yes |
7ac0e38e VZ |
8158 | else |
8159 | result=no | |
6e198e97 | 8160 | fi |
a848cd7e | 8161 | else |
6e198e97 | 8162 | result=$wxUSE_URL |
a848cd7e SC |
8163 | fi |
8164 | ||
d589327a VZ |
8165 | { echo "$as_me:$LINENO: result: $result" >&5 |
8166 | echo "${ECHO_T}$result" >&6; } | |
6e198e97 | 8167 | |
a848cd7e | 8168 | |
077c7880 | 8169 | enablestring= |
6e198e97 | 8170 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 8171 | if test -z "$defaultval"; then |
6e198e97 VZ |
8172 | if test x"$enablestring" = xdisable; then |
8173 | defaultval=yes | |
8174 | else | |
8175 | defaultval=no | |
8176 | fi | |
8177 | fi | |
8178 | ||
d589327a VZ |
8179 | { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5 |
8180 | echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6; } | |
47964710 | 8181 | # Check whether --enable-protocol was given. |
a848cd7e | 8182 | if test "${enable_protocol+set}" = set; then |
47964710 | 8183 | enableval=$enable_protocol; |
a848cd7e | 8184 | if test "$enableval" = yes; then |
d970f7d5 | 8185 | wx_cv_use_protocol='wxUSE_PROTOCOL=yes' |
a848cd7e | 8186 | else |
d970f7d5 | 8187 | wx_cv_use_protocol='wxUSE_PROTOCOL=no' |
a848cd7e SC |
8188 | fi |
8189 | ||
8190 | else | |
8191 | ||
d970f7d5 | 8192 | wx_cv_use_protocol='wxUSE_PROTOCOL=${'DEFAULT_wxUSE_PROTOCOL":-$defaultval}" |
a848cd7e | 8193 | |
47964710 VS |
8194 | fi |
8195 | ||
a848cd7e | 8196 | |
d970f7d5 | 8197 | eval "$wx_cv_use_protocol" |
a848cd7e | 8198 | |
6e198e97 | 8199 | if test x"$enablestring" = xdisable; then |
7ac0e38e | 8200 | if test $wxUSE_PROTOCOL = no; then |
6e198e97 | 8201 | result=yes |
7ac0e38e VZ |
8202 | else |
8203 | result=no | |
6e198e97 | 8204 | fi |
a848cd7e | 8205 | else |
6e198e97 | 8206 | result=$wxUSE_PROTOCOL |
a848cd7e SC |
8207 | fi |
8208 | ||
d589327a VZ |
8209 | { echo "$as_me:$LINENO: result: $result" >&5 |
8210 | echo "${ECHO_T}$result" >&6; } | |
6e198e97 | 8211 | |
a848cd7e | 8212 | |
077c7880 | 8213 | enablestring= |
6e198e97 | 8214 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 8215 | if test -z "$defaultval"; then |
6e198e97 VZ |
8216 | if test x"$enablestring" = xdisable; then |
8217 | defaultval=yes | |
8218 | else | |
8219 | defaultval=no | |
8220 | fi | |
8221 | fi | |
8222 | ||
d589327a VZ |
8223 | { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5 |
8224 | echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6; } | |
47964710 | 8225 | # Check whether --enable-protocol_http was given. |
a848cd7e | 8226 | if test "${enable_protocol_http+set}" = set; then |
47964710 | 8227 | enableval=$enable_protocol_http; |
a848cd7e | 8228 | if test "$enableval" = yes; then |
d970f7d5 | 8229 | wx_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes' |
a848cd7e | 8230 | else |
d970f7d5 | 8231 | wx_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no' |
a848cd7e SC |
8232 | fi |
8233 | ||
8234 | else | |
8235 | ||
d970f7d5 | 8236 | wx_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=${'DEFAULT_wxUSE_PROTOCOL_HTTP":-$defaultval}" |
a848cd7e | 8237 | |
47964710 VS |
8238 | fi |
8239 | ||
a848cd7e | 8240 | |
d970f7d5 | 8241 | eval "$wx_cv_use_protocol_http" |
a848cd7e | 8242 | |
6e198e97 | 8243 | if test x"$enablestring" = xdisable; then |
7ac0e38e | 8244 | if test $wxUSE_PROTOCOL_HTTP = no; then |
6e198e97 | 8245 | result=yes |
7ac0e38e VZ |
8246 | else |
8247 | result=no | |
6e198e97 | 8248 | fi |
a848cd7e | 8249 | else |
6e198e97 | 8250 | result=$wxUSE_PROTOCOL_HTTP |
a848cd7e SC |
8251 | fi |
8252 | ||
d589327a VZ |
8253 | { echo "$as_me:$LINENO: result: $result" >&5 |
8254 | echo "${ECHO_T}$result" >&6; } | |
6e198e97 | 8255 | |
a848cd7e | 8256 | |
077c7880 | 8257 | enablestring= |
6e198e97 | 8258 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 8259 | if test -z "$defaultval"; then |
6e198e97 VZ |
8260 | if test x"$enablestring" = xdisable; then |
8261 | defaultval=yes | |
8262 | else | |
8263 | defaultval=no | |
8264 | fi | |
8265 | fi | |
8266 | ||
d589327a VZ |
8267 | { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5 |
8268 | echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6; } | |
47964710 | 8269 | # Check whether --enable-protocol_ftp was given. |
a848cd7e | 8270 | if test "${enable_protocol_ftp+set}" = set; then |
47964710 | 8271 | enableval=$enable_protocol_ftp; |
a848cd7e | 8272 | if test "$enableval" = yes; then |
d970f7d5 | 8273 | wx_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes' |
a848cd7e | 8274 | else |
d970f7d5 | 8275 | wx_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no' |
a848cd7e SC |
8276 | fi |
8277 | ||
8278 | else | |
8279 | ||
d970f7d5 | 8280 | wx_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=${'DEFAULT_wxUSE_PROTOCOL_FTP":-$defaultval}" |
a848cd7e | 8281 | |
47964710 VS |
8282 | fi |
8283 | ||
a848cd7e | 8284 | |
d970f7d5 | 8285 | eval "$wx_cv_use_protocol_ftp" |
a848cd7e | 8286 | |
6e198e97 | 8287 | if test x"$enablestring" = xdisable; then |
7ac0e38e | 8288 | if test $wxUSE_PROTOCOL_FTP = no; then |
6e198e97 | 8289 | result=yes |
7ac0e38e VZ |
8290 | else |
8291 | result=no | |
6e198e97 | 8292 | fi |
a848cd7e | 8293 | else |
6e198e97 | 8294 | result=$wxUSE_PROTOCOL_FTP |
a848cd7e SC |
8295 | fi |
8296 | ||
d589327a VZ |
8297 | { echo "$as_me:$LINENO: result: $result" >&5 |
8298 | echo "${ECHO_T}$result" >&6; } | |
6e198e97 | 8299 | |
a848cd7e | 8300 | |
077c7880 | 8301 | enablestring= |
6e198e97 | 8302 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 8303 | if test -z "$defaultval"; then |
6e198e97 VZ |
8304 | if test x"$enablestring" = xdisable; then |
8305 | defaultval=yes | |
8306 | else | |
8307 | defaultval=no | |
8308 | fi | |
8309 | fi | |
8310 | ||
d589327a VZ |
8311 | { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5 |
8312 | echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6; } | |
47964710 | 8313 | # Check whether --enable-protocol_file was given. |
a848cd7e | 8314 | if test "${enable_protocol_file+set}" = set; then |
47964710 | 8315 | enableval=$enable_protocol_file; |
a848cd7e | 8316 | if test "$enableval" = yes; then |
d970f7d5 | 8317 | wx_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes' |
a848cd7e | 8318 | else |
d970f7d5 | 8319 | wx_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no' |
a848cd7e SC |
8320 | fi |
8321 | ||
8322 | else | |
8323 | ||
d970f7d5 | 8324 | wx_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=${'DEFAULT_wxUSE_PROTOCOL_FILE":-$defaultval}" |
a848cd7e | 8325 | |
47964710 VS |
8326 | fi |
8327 | ||
a848cd7e | 8328 | |
d970f7d5 | 8329 | eval "$wx_cv_use_protocol_file" |
a848cd7e | 8330 | |
6e198e97 | 8331 | if test x"$enablestring" = xdisable; then |
7ac0e38e | 8332 | if test $wxUSE_PROTOCOL_FILE = no; then |
6e198e97 | 8333 | result=yes |
7ac0e38e VZ |
8334 | else |
8335 | result=no | |
6e198e97 | 8336 | fi |
a848cd7e | 8337 | else |
6e198e97 | 8338 | result=$wxUSE_PROTOCOL_FILE |
a848cd7e SC |
8339 | fi |
8340 | ||
d589327a VZ |
8341 | { echo "$as_me:$LINENO: result: $result" >&5 |
8342 | echo "${ECHO_T}$result" >&6; } | |
a848cd7e SC |
8343 | |
8344 | ||
8345 | ||
077c7880 | 8346 | enablestring= |
6e198e97 | 8347 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 8348 | if test -z "$defaultval"; then |
6e198e97 VZ |
8349 | if test x"$enablestring" = xdisable; then |
8350 | defaultval=yes | |
8351 | else | |
8352 | defaultval=no | |
8353 | fi | |
8354 | fi | |
8355 | ||
d589327a VZ |
8356 | { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5 |
8357 | echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6; } | |
47964710 | 8358 | # Check whether --enable-threads was given. |
a848cd7e | 8359 | if test "${enable_threads+set}" = set; then |
47964710 | 8360 | enableval=$enable_threads; |
a848cd7e | 8361 | if test "$enableval" = yes; then |
d970f7d5 | 8362 | wx_cv_use_threads='wxUSE_THREADS=yes' |
a848cd7e | 8363 | else |
d970f7d5 | 8364 | wx_cv_use_threads='wxUSE_THREADS=no' |
a848cd7e SC |
8365 | fi |
8366 | ||
8367 | else | |
8368 | ||
d970f7d5 | 8369 | wx_cv_use_threads='wxUSE_THREADS=${'DEFAULT_wxUSE_THREADS":-$defaultval}" |
a848cd7e | 8370 | |
47964710 VS |
8371 | fi |
8372 | ||
a848cd7e | 8373 | |
d970f7d5 | 8374 | eval "$wx_cv_use_threads" |
a848cd7e | 8375 | |
6e198e97 | 8376 | if test x"$enablestring" = xdisable; then |
7ac0e38e | 8377 | if test $wxUSE_THREADS = no; then |
6e198e97 | 8378 | result=yes |
7ac0e38e VZ |
8379 | else |
8380 | result=no | |
6e198e97 | 8381 | fi |
a848cd7e | 8382 | else |
6e198e97 | 8383 | result=$wxUSE_THREADS |
a848cd7e SC |
8384 | fi |
8385 | ||
d589327a VZ |
8386 | { echo "$as_me:$LINENO: result: $result" >&5 |
8387 | echo "${ECHO_T}$result" >&6; } | |
6e198e97 | 8388 | |
a848cd7e | 8389 | |
91a5e00c VS |
8390 | |
8391 | enablestring= | |
8392 | defaultval= | |
8393 | if test -z "$defaultval"; then | |
8394 | if test x"$enablestring" = xdisable; then | |
8395 | defaultval=yes | |
8396 | else | |
8397 | defaultval=no | |
8398 | fi | |
8399 | fi | |
8400 | ||
d589327a VZ |
8401 | { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iniconf" >&5 |
8402 | echo $ECHO_N "checking for --${enablestring:-enable}-iniconf... $ECHO_C" >&6; } | |
47964710 | 8403 | # Check whether --enable-iniconf was given. |
91a5e00c | 8404 | if test "${enable_iniconf+set}" = set; then |
47964710 | 8405 | enableval=$enable_iniconf; |
91a5e00c VS |
8406 | if test "$enableval" = yes; then |
8407 | wx_cv_use_iniconf='wxUSE_INICONF=yes' | |
8408 | else | |
8409 | wx_cv_use_iniconf='wxUSE_INICONF=no' | |
8410 | fi | |
91a5e00c VS |
8411 | |
8412 | else | |
8413 | ||
91a5e00c VS |
8414 | wx_cv_use_iniconf='wxUSE_INICONF=${'DEFAULT_wxUSE_INICONF":-$defaultval}" |
8415 | ||
47964710 VS |
8416 | fi |
8417 | ||
91a5e00c VS |
8418 | |
8419 | eval "$wx_cv_use_iniconf" | |
91a5e00c VS |
8420 | |
8421 | if test x"$enablestring" = xdisable; then | |
7ac0e38e | 8422 | if test $wxUSE_INICONF = no; then |
91a5e00c | 8423 | result=yes |
7ac0e38e VZ |
8424 | else |
8425 | result=no | |
91a5e00c VS |
8426 | fi |
8427 | else | |
8428 | result=$wxUSE_INICONF | |
8429 | fi | |
8430 | ||
d589327a VZ |
8431 | { echo "$as_me:$LINENO: result: $result" >&5 |
8432 | echo "${ECHO_T}$result" >&6; } | |
91a5e00c VS |
8433 | |
8434 | ||
8435 | enablestring= | |
8436 | defaultval=$wxUSE_ALL_FEATURES | |
8437 | if test -z "$defaultval"; then | |
8438 | if test x"$enablestring" = xdisable; then | |
8439 | defaultval=yes | |
8440 | else | |
8441 | defaultval=no | |
8442 | fi | |
8443 | fi | |
8444 | ||
d589327a VZ |
8445 | { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-regkey" >&5 |
8446 | echo $ECHO_N "checking for --${enablestring:-enable}-regkey... $ECHO_C" >&6; } | |
47964710 | 8447 | # Check whether --enable-regkey was given. |
91a5e00c | 8448 | if test "${enable_regkey+set}" = set; then |
47964710 | 8449 | enableval=$enable_regkey; |
91a5e00c VS |
8450 | if test "$enableval" = yes; then |
8451 | wx_cv_use_regkey='wxUSE_REGKEY=yes' | |
8452 | else | |
8453 | wx_cv_use_regkey='wxUSE_REGKEY=no' | |
8454 | fi | |
91a5e00c VS |
8455 | |
8456 | else | |
8457 | ||
91a5e00c VS |
8458 | wx_cv_use_regkey='wxUSE_REGKEY=${'DEFAULT_wxUSE_REGKEY":-$defaultval}" |
8459 | ||
47964710 VS |
8460 | fi |
8461 | ||
91a5e00c VS |
8462 | |
8463 | eval "$wx_cv_use_regkey" | |
91a5e00c VS |
8464 | |
8465 | if test x"$enablestring" = xdisable; then | |
7ac0e38e | 8466 | if test $wxUSE_REGKEY = no; then |
91a5e00c | 8467 | result=yes |
7ac0e38e VZ |
8468 | else |
8469 | result=no | |
91a5e00c VS |
8470 | fi |
8471 | else | |
8472 | result=$wxUSE_REGKEY | |
8473 | fi | |
8474 | ||
d589327a VZ |
8475 | { echo "$as_me:$LINENO: result: $result" >&5 |
8476 | echo "${ECHO_T}$result" >&6; } | |
91a5e00c VS |
8477 | |
8478 | ||
a848cd7e SC |
8479 | if test "$wxUSE_GUI" = "yes"; then |
8480 | ||
8481 | ||
8482 | ||
077c7880 | 8483 | enablestring= |
6e198e97 | 8484 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 8485 | if test -z "$defaultval"; then |
6e198e97 VZ |
8486 | if test x"$enablestring" = xdisable; then |
8487 | defaultval=yes | |
8488 | else | |
8489 | defaultval=no | |
8490 | fi | |
8491 | fi | |
8492 | ||
d589327a VZ |
8493 | { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5 |
8494 | echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6; } | |
47964710 | 8495 | # Check whether --enable-docview was given. |
a848cd7e | 8496 | if test "${enable_docview+set}" = set; then |
47964710 | 8497 | enableval=$enable_docview; |
a848cd7e | 8498 | if test "$enableval" = yes; then |
d970f7d5 | 8499 | wx_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes' |
a848cd7e | 8500 | else |
d970f7d5 | 8501 | wx_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no' |
a848cd7e SC |
8502 | fi |
8503 | ||
8504 | else | |
8505 | ||
d970f7d5 | 8506 | wx_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=${'DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE":-$defaultval}" |
a848cd7e | 8507 | |
47964710 VS |
8508 | fi |
8509 | ||
a848cd7e | 8510 | |
d970f7d5 | 8511 | eval "$wx_cv_use_docview" |
a848cd7e | 8512 | |
6e198e97 | 8513 | if test x"$enablestring" = xdisable; then |
7ac0e38e | 8514 | if test $wxUSE_DOC_VIEW_ARCHITECTURE = no; then |
6e198e97 | 8515 | result=yes |
7ac0e38e VZ |
8516 | else |
8517 | result=no | |
6e198e97 | 8518 | fi |
a848cd7e | 8519 | else |
6e198e97 | 8520 | result=$wxUSE_DOC_VIEW_ARCHITECTURE |
a848cd7e SC |
8521 | fi |
8522 | ||
d589327a VZ |
8523 | { echo "$as_me:$LINENO: result: $result" >&5 |
8524 | echo "${ECHO_T}$result" >&6; } | |
6e198e97 | 8525 | |
a848cd7e | 8526 | |
077c7880 | 8527 | enablestring= |
6e198e97 | 8528 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 8529 | if test -z "$defaultval"; then |
6e198e97 VZ |
8530 | if test x"$enablestring" = xdisable; then |
8531 | defaultval=yes | |
8532 | else | |
8533 | defaultval=no | |
8534 | fi | |
8535 | fi | |
8536 | ||
d589327a VZ |
8537 | { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5 |
8538 | echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6; } | |
47964710 | 8539 | # Check whether --enable-help was given. |
a848cd7e | 8540 | if test "${enable_help+set}" = set; then |
47964710 | 8541 | enableval=$enable_help; |
a848cd7e | 8542 | if test "$enableval" = yes; then |
d970f7d5 | 8543 | wx_cv_use_help='wxUSE_HELP=yes' |
a848cd7e | 8544 | else |
d970f7d5 | 8545 | wx_cv_use_help='wxUSE_HELP=no' |
a848cd7e SC |
8546 | fi |
8547 | ||
8548 | else | |
8549 | ||
d970f7d5 | 8550 | wx_cv_use_help='wxUSE_HELP=${'DEFAULT_wxUSE_HELP":-$defaultval}" |
a848cd7e | 8551 | |
47964710 VS |
8552 | fi |
8553 | ||
a848cd7e | 8554 | |
d970f7d5 | 8555 | eval "$wx_cv_use_help" |
a848cd7e | 8556 | |
6e198e97 | 8557 | if test x"$enablestring" = xdisable; then |
7ac0e38e | 8558 | if test $wxUSE_HELP = no; then |
6e198e97 | 8559 | result=yes |
7ac0e38e VZ |
8560 | else |
8561 | result=no | |
6e198e97 | 8562 | fi |
a848cd7e | 8563 | else |
6e198e97 | 8564 | result=$wxUSE_HELP |
a848cd7e SC |
8565 | fi |
8566 | ||
d589327a VZ |
8567 | { echo "$as_me:$LINENO: result: $result" >&5 |
8568 | echo "${ECHO_T}$result" >&6; } | |
6e198e97 | 8569 | |
a848cd7e | 8570 | |
077c7880 | 8571 | enablestring= |
6e198e97 | 8572 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 8573 | if test -z "$defaultval"; then |
6e198e97 VZ |
8574 | if test x"$enablestring" = xdisable; then |
8575 | defaultval=yes | |
8576 | else | |
8577 | defaultval=no | |
8578 | fi | |
8579 | fi | |
8580 | ||
d589327a VZ |
8581 | { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5 |
8582 | echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6; } | |
47964710 | 8583 | # Check whether --enable-mshtmlhelp was given. |
a848cd7e | 8584 | if test "${enable_mshtmlhelp+set}" = set; then |
47964710 | 8585 | enableval=$enable_mshtmlhelp; |
a848cd7e | 8586 | if test "$enableval" = yes; then |
d970f7d5 | 8587 | wx_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes' |
a848cd7e | 8588 | else |
d970f7d5 | 8589 | wx_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no' |
a848cd7e SC |
8590 | fi |
8591 | ||
8592 | else | |
8593 | ||
d970f7d5 | 8594 | wx_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=${'DEFAULT_wxUSE_MS_HTML_HELP":-$defaultval}" |
a848cd7e | 8595 | |
47964710 VS |
8596 | fi |
8597 | ||
a848cd7e | 8598 | |
d970f7d5 | 8599 | eval "$wx_cv_use_mshtmlhelp" |
a848cd7e | 8600 | |
6e198e97 | 8601 | if test x"$enablestring" = xdisable; then |
7ac0e38e | 8602 | if test $wxUSE_MS_HTML_HELP = no; then |
6e198e97 | 8603 | result=yes |
7ac0e38e VZ |
8604 | else |
8605 | result=no | |
6e198e97 | 8606 | fi |
a848cd7e | 8607 | else |
6e198e97 | 8608 | result=$wxUSE_MS_HTML_HELP |
a848cd7e SC |
8609 | fi |
8610 | ||
d589327a VZ |
8611 | { echo "$as_me:$LINENO: result: $result" >&5 |
8612 | echo "${ECHO_T}$result" >&6; } | |
6e198e97 | 8613 | |
a848cd7e | 8614 | |
077c7880 | 8615 | enablestring= |
6e198e97 | 8616 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 8617 | if test -z "$defaultval"; then |
6e198e97 VZ |
8618 | if test x"$enablestring" = xdisable; then |
8619 | defaultval=yes | |
8620 | else | |
8621 | defaultval=no | |
8622 | fi | |
8623 | fi | |
8624 | ||
d589327a VZ |
8625 | { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5 |
8626 | echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6; } | |
47964710 | 8627 | # Check whether --enable-html was given. |
a848cd7e | 8628 | if test "${enable_html+set}" = set; then |
47964710 | 8629 | enableval=$enable_html; |
a848cd7e | 8630 | if test "$enableval" = yes; then |
d970f7d5 | 8631 | wx_cv_use_html='wxUSE_HTML=yes' |
a848cd7e | 8632 | else |
d970f7d5 | 8633 | wx_cv_use_html='wxUSE_HTML=no' |
a848cd7e SC |
8634 | fi |
8635 | ||
8636 | else | |
8637 | ||
d970f7d5 | 8638 | wx_cv_use_html='wxUSE_HTML=${'DEFAULT_wxUSE_HTML":-$defaultval}" |
a848cd7e | 8639 | |
47964710 VS |
8640 | fi |
8641 | ||
a848cd7e | 8642 | |
d970f7d5 | 8643 | eval "$wx_cv_use_html" |
a848cd7e | 8644 | |
6e198e97 | 8645 | if test x"$enablestring" = xdisable; then |
7ac0e38e | 8646 | if test $wxUSE_HTML = no; then |
6e198e97 | 8647 | result=yes |
7ac0e38e VZ |
8648 | else |
8649 | result=no | |
6e198e97 | 8650 | fi |
a848cd7e | 8651 | else |
6e198e97 | 8652 | result=$wxUSE_HTML |
a848cd7e SC |
8653 | fi |
8654 | ||
d589327a VZ |
8655 | { echo "$as_me:$LINENO: result: $result" >&5 |
8656 | echo "${ECHO_T}$result" >&6; } | |
6e198e97 | 8657 | |
a848cd7e | 8658 | |
077c7880 | 8659 | enablestring= |
6e198e97 | 8660 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 8661 | if test -z "$defaultval"; then |
6e198e97 VZ |
8662 | if test x"$enablestring" = xdisable; then |
8663 | defaultval=yes | |
8664 | else | |
8665 | defaultval=no | |
8666 | fi | |
8667 | fi | |
8668 | ||
d589327a VZ |
8669 | { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5 |
8670 | echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6; } | |
47964710 | 8671 | # Check whether --enable-htmlhelp was given. |
a848cd7e | 8672 | if test "${enable_htmlhelp+set}" = set; then |
47964710 | 8673 | enableval=$enable_htmlhelp; |
a848cd7e | 8674 | if test "$enableval" = yes; then |
d970f7d5 | 8675 | wx_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes' |
a848cd7e | 8676 | else |
d970f7d5 | 8677 | wx_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no' |
a848cd7e SC |
8678 | fi |
8679 | ||
8680 | else | |
8681 | ||
d970f7d5 | 8682 | wx_cv_use_htmlhelp='wxUSE_WXHTML_HELP=${'DEFAULT_wxUSE_WXHTML_HELP":-$defaultval}" |
a848cd7e | 8683 | |
47964710 VS |
8684 | fi |
8685 | ||
a848cd7e | 8686 | |
d970f7d5 | 8687 | eval "$wx_cv_use_htmlhelp" |
a848cd7e | 8688 | |
6e198e97 | 8689 | if test x"$enablestring" = xdisable; then |
7ac0e38e | 8690 | if test $wxUSE_WXHTML_HELP = no; then |
6e198e97 | 8691 | result=yes |
7ac0e38e VZ |
8692 | else |
8693 | result=no | |
6e198e97 | 8694 | fi |
a848cd7e | 8695 | else |
6e198e97 | 8696 | result=$wxUSE_WXHTML_HELP |
a848cd7e SC |
8697 | fi |
8698 | ||
d589327a VZ |
8699 | { echo "$as_me:$LINENO: result: $result" >&5 |
8700 | echo "${ECHO_T}$result" >&6; } | |
6e198e97 | 8701 | |
a848cd7e | 8702 | |
077c7880 | 8703 | enablestring= |
6e198e97 | 8704 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 8705 | if test -z "$defaultval"; then |
6e198e97 VZ |
8706 | if test x"$enablestring" = xdisable; then |
8707 | defaultval=yes | |
8708 | else | |
8709 | defaultval=no | |
8710 | fi | |
8711 | fi | |
8712 | ||
d589327a VZ |
8713 | { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xrc" >&5 |
8714 | echo $ECHO_N "checking for --${enablestring:-enable}-xrc... $ECHO_C" >&6; } | |
47964710 | 8715 | # Check whether --enable-xrc was given. |
9a8f0513 | 8716 | if test "${enable_xrc+set}" = set; then |
47964710 | 8717 | enableval=$enable_xrc; |
9a8f0513 | 8718 | if test "$enableval" = yes; then |
d970f7d5 | 8719 | wx_cv_use_xrc='wxUSE_XRC=yes' |
9a8f0513 | 8720 | else |
d970f7d5 | 8721 | wx_cv_use_xrc='wxUSE_XRC=no' |
9a8f0513 VS |
8722 | fi |
8723 | ||
8724 | else | |
8725 | ||
d970f7d5 | 8726 | wx_cv_use_xrc='wxUSE_XRC=${'DEFAULT_wxUSE_XRC":-$defaultval}" |
9a8f0513 | 8727 | |
47964710 VS |
8728 | fi |
8729 | ||
9a8f0513 | 8730 | |
d970f7d5 | 8731 | eval "$wx_cv_use_xrc" |
9a8f0513 | 8732 | |
6e198e97 | 8733 | if test x"$enablestring" = xdisable; then |
7ac0e38e | 8734 | if test $wxUSE_XRC = no; then |
6e198e97 | 8735 | result=yes |
7ac0e38e VZ |
8736 | else |
8737 | result=no | |
6e198e97 | 8738 | fi |
9a8f0513 | 8739 | else |
6e198e97 | 8740 | result=$wxUSE_XRC |
9a8f0513 VS |
8741 | fi |
8742 | ||
d589327a VZ |
8743 | { echo "$as_me:$LINENO: result: $result" >&5 |
8744 | echo "${ECHO_T}$result" >&6; } | |
6e198e97 | 8745 | |
9a8f0513 | 8746 | |
077c7880 | 8747 | enablestring= |
6e198e97 | 8748 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 8749 | if test -z "$defaultval"; then |
6e198e97 VZ |
8750 | if test x"$enablestring" = xdisable; then |
8751 | defaultval=yes | |
8752 | else | |
8753 | defaultval=no | |
8754 | fi | |
8755 | fi | |
8756 | ||
d589327a VZ |
8757 | { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-aui" >&5 |
8758 | echo $ECHO_N "checking for --${enablestring:-enable}-aui... $ECHO_C" >&6; } | |
47964710 | 8759 | # Check whether --enable-aui was given. |
3f60522a | 8760 | if test "${enable_aui+set}" = set; then |
47964710 | 8761 | enableval=$enable_aui; |
3f60522a | 8762 | if test "$enableval" = yes; then |
d970f7d5 | 8763 | wx_cv_use_aui='wxUSE_AUI=yes' |
3f60522a | 8764 | else |
d970f7d5 | 8765 | wx_cv_use_aui='wxUSE_AUI=no' |
3f60522a JS |
8766 | fi |
8767 | ||
8768 | else | |
8769 | ||
d970f7d5 | 8770 | wx_cv_use_aui='wxUSE_AUI=${'DEFAULT_wxUSE_AUI":-$defaultval}" |
3f60522a | 8771 | |
47964710 VS |
8772 | fi |
8773 | ||
3f60522a | 8774 | |
d970f7d5 | 8775 | eval "$wx_cv_use_aui" |
3f60522a | 8776 | |
6e198e97 | 8777 | if test x"$enablestring" = xdisable; then |
7ac0e38e | 8778 | if test $wxUSE_AUI = no; then |
6e198e97 | 8779 | result=yes |
7ac0e38e VZ |
8780 | else |
8781 | result=no | |
6e198e97 | 8782 | fi |
3f60522a | 8783 | else |
6e198e97 | 8784 | result=$wxUSE_AUI |
3f60522a JS |
8785 | fi |
8786 | ||
d589327a VZ |
8787 | { echo "$as_me:$LINENO: result: $result" >&5 |
8788 | echo "${ECHO_T}$result" >&6; } | |
6e198e97 | 8789 | |
3f60522a | 8790 | |
1c4293cb VZ |
8791 | enablestring= |
8792 | defaultval=$wxUSE_ALL_FEATURES | |
8793 | if test -z "$defaultval"; then | |
8794 | if test x"$enablestring" = xdisable; then | |
8795 | defaultval=yes | |
8796 | else | |
8797 | defaultval=no | |
8798 | fi | |
8799 | fi | |
8800 | ||
d589327a VZ |
8801 | { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-propgrid" >&5 |
8802 | echo $ECHO_N "checking for --${enablestring:-enable}-propgrid... $ECHO_C" >&6; } | |
1c4293cb VZ |
8803 | # Check whether --enable-propgrid was given. |
8804 | if test "${enable_propgrid+set}" = set; then | |
8805 | enableval=$enable_propgrid; | |
8806 | if test "$enableval" = yes; then | |
8807 | wx_cv_use_propgrid='wxUSE_PROPGRID=yes' | |
8808 | else | |
8809 | wx_cv_use_propgrid='wxUSE_PROPGRID=no' | |
8810 | fi | |
8811 | ||
8812 | else | |
8813 | ||
8814 | wx_cv_use_propgrid='wxUSE_PROPGRID=${'DEFAULT_wxUSE_PROPGRID":-$defaultval}" | |
8815 | ||
8816 | fi | |
8817 | ||
8818 | ||
8819 | eval "$wx_cv_use_propgrid" | |
8820 | ||
8821 | if test x"$enablestring" = xdisable; then | |
7ac0e38e | 8822 | if test $wxUSE_PROPGRID = no; then |
1c4293cb | 8823 | result=yes |
7ac0e38e VZ |
8824 | else |
8825 | result=no | |
1c4293cb VZ |
8826 | fi |
8827 | else | |
8828 | result=$wxUSE_PROPGRID | |
8829 | fi | |
8830 | ||
d589327a VZ |
8831 | { echo "$as_me:$LINENO: result: $result" >&5 |
8832 | echo "${ECHO_T}$result" >&6; } | |
1c4293cb VZ |
8833 | |
8834 | ||
d33ccbe1 VZ |
8835 | enablestring= |
8836 | defaultval=$wxUSE_ALL_FEATURES | |
8837 | if test -z "$defaultval"; then | |
8838 | if test x"$enablestring" = xdisable; then | |
8839 | defaultval=yes | |
8840 | else | |
8841 | defaultval=no | |
8842 | fi | |
8843 | fi | |
8844 | ||
8845 | { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ribbon" >&5 | |
8846 | echo $ECHO_N "checking for --${enablestring:-enable}-ribbon... $ECHO_C" >&6; } | |
8847 | # Check whether --enable-ribbon was given. | |
8848 | if test "${enable_ribbon+set}" = set; then | |
8849 | enableval=$enable_ribbon; | |
8850 | if test "$enableval" = yes; then | |
8851 | wx_cv_use_ribbon='wxUSE_RIBBON=yes' | |
8852 | else | |
8853 | wx_cv_use_ribbon='wxUSE_RIBBON=no' | |
8854 | fi | |
8855 | ||
8856 | else | |
8857 | ||
8858 | wx_cv_use_ribbon='wxUSE_RIBBON=${'DEFAULT_wxUSE_RIBBON":-$defaultval}" | |
8859 | ||
8860 | fi | |
8861 | ||
8862 | ||
8863 | eval "$wx_cv_use_ribbon" | |
8864 | ||
8865 | if test x"$enablestring" = xdisable; then | |
8866 | if test $wxUSE_RIBBON = no; then | |
8867 | result=yes | |
8868 | else | |
8869 | result=no | |
8870 | fi | |
8871 | else | |
8872 | result=$wxUSE_RIBBON | |
8873 | fi | |
8874 | ||
8875 | { echo "$as_me:$LINENO: result: $result" >&5 | |
8876 | echo "${ECHO_T}$result" >&6; } | |
8877 | ||
8878 | ||
54429bb3 | 8879 | enablestring= |
6e198e97 | 8880 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 8881 | if test -z "$defaultval"; then |
6e198e97 VZ |
8882 | if test x"$enablestring" = xdisable; then |
8883 | defaultval=yes | |
8884 | else | |
8885 | defaultval=no | |
8886 | fi | |
8887 | fi | |
8888 | ||
d589327a VZ |
8889 | { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stc" >&5 |
8890 | echo $ECHO_N "checking for --${enablestring:-enable}-stc... $ECHO_C" >&6; } | |
47964710 | 8891 | # Check whether --enable-stc was given. |
54429bb3 | 8892 | if test "${enable_stc+set}" = set; then |
47964710 | 8893 | enableval=$enable_stc; |
54429bb3 | 8894 | if test "$enableval" = yes; then |
d970f7d5 | 8895 | wx_cv_use_stc='wxUSE_STC=yes' |
54429bb3 | 8896 | else |
d970f7d5 | 8897 | wx_cv_use_stc='wxUSE_STC=no' |
54429bb3 RD |
8898 | fi |
8899 | ||
8900 | else | |
8901 | ||
d970f7d5 | 8902 | wx_cv_use_stc='wxUSE_STC=${'DEFAULT_wxUSE_STC":-$defaultval}" |
54429bb3 | 8903 | |
47964710 VS |
8904 | fi |
8905 | ||
54429bb3 | 8906 | |
d970f7d5 | 8907 | eval "$wx_cv_use_stc" |
54429bb3 | 8908 | |
6e198e97 | 8909 | if test x"$enablestring" = xdisable; then |
7ac0e38e | 8910 | if test $wxUSE_STC = no; then |
6e198e97 | 8911 | result=yes |
7ac0e38e VZ |
8912 | else |
8913 | result=no | |
6e198e97 | 8914 | fi |
54429bb3 | 8915 | else |
6e198e97 | 8916 | result=$wxUSE_STC |
54429bb3 RD |
8917 | fi |
8918 | ||
d589327a VZ |
8919 | { echo "$as_me:$LINENO: result: $result" >&5 |
8920 | echo "${ECHO_T}$result" >&6; } | |
6e198e97 | 8921 | |
54429bb3 | 8922 | |
077c7880 | 8923 | enablestring= |
6e198e97 | 8924 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 8925 | if test -z "$defaultval"; then |
6e198e97 VZ |
8926 | if test x"$enablestring" = xdisable; then |
8927 | defaultval=yes | |
8928 | else | |
8929 | defaultval=no | |
8930 | fi | |
8931 | fi | |
8932 | ||
d589327a VZ |
8933 | { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5 |
8934 | echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6; } | |
47964710 | 8935 | # Check whether --enable-constraints was given. |
a848cd7e | 8936 | if test "${enable_constraints+set}" = set; then |
47964710 | 8937 | enableval=$enable_constraints; |
a848cd7e | 8938 | if test "$enableval" = yes; then |
d970f7d5 | 8939 | wx_cv_use_constraints='wxUSE_CONSTRAINTS=yes' |
a848cd7e | 8940 | else |
d970f7d5 | 8941 | wx_cv_use_constraints='wxUSE_CONSTRAINTS=no' |
a848cd7e SC |
8942 | fi |
8943 | ||
8944 | else | |
8945 | ||
d970f7d5 | 8946 | wx_cv_use_constraints='wxUSE_CONSTRAINTS=${'DEFAULT_wxUSE_CONSTRAINTS":-$defaultval}" |
a848cd7e | 8947 | |
47964710 VS |
8948 | fi |
8949 | ||
a848cd7e | 8950 | |
d970f7d5 | 8951 | eval "$wx_cv_use_constraints" |
a848cd7e | 8952 | |
6e198e97 | 8953 | if test x"$enablestring" = xdisable; then |
7ac0e38e | 8954 | if test $wxUSE_CONSTRAINTS = no; then |
6e198e97 | 8955 | result=yes |
7ac0e38e VZ |
8956 | else |
8957 | result=no | |
6e198e97 | 8958 | fi |
a848cd7e | 8959 | else |
6e198e97 | 8960 | result=$wxUSE_CONSTRAINTS |
a848cd7e SC |
8961 | fi |
8962 | ||
d589327a VZ |
8963 | { echo "$as_me:$LINENO: result: $result" >&5 |
8964 | echo "${ECHO_T}$result" >&6; } | |
6e198e97 | 8965 | |
a848cd7e | 8966 | |
077c7880 | 8967 | enablestring= |
6e198e97 | 8968 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 8969 | if test -z "$defaultval"; then |
6e198e97 VZ |
8970 | if test x"$enablestring" = xdisable; then |
8971 | defaultval=yes | |
8972 | else | |
8973 | defaultval=no | |
8974 | fi | |
8975 | fi | |
8976 | ||
d589327a VZ |
8977 | { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5 |
8978 | echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6; } | |
4732e2dc VZ |
8979 | # Check whether --enable-loggui was given. |
8980 | if test "${enable_loggui+set}" = set; then | |
8981 | enableval=$enable_loggui; | |
a848cd7e | 8982 | if test "$enableval" = yes; then |
4732e2dc | 8983 | wx_cv_use_loggui='wxUSE_LOGGUI=yes' |
a848cd7e | 8984 | else |
4732e2dc | 8985 | wx_cv_use_loggui='wxUSE_LOGGUI=no' |
a848cd7e SC |
8986 | fi |
8987 | ||
8988 | else | |
8989 | ||
4732e2dc | 8990 | wx_cv_use_loggui='wxUSE_LOGGUI=${'DEFAULT_wxUSE_LOGGUI":-$defaultval}" |
a848cd7e | 8991 | |
47964710 VS |
8992 | fi |
8993 | ||
a848cd7e | 8994 | |
4732e2dc | 8995 | eval "$wx_cv_use_loggui" |
a848cd7e | 8996 | |
6e198e97 | 8997 | if test x"$enablestring" = xdisable; then |
7ac0e38e | 8998 | if test $wxUSE_LOGGUI = no; then |
6e198e97 | 8999 | result=yes |
7ac0e38e VZ |
9000 | else |
9001 | result=no | |
6e198e97 | 9002 | fi |
a848cd7e | 9003 | else |
4732e2dc | 9004 | result=$wxUSE_LOGGUI |
a848cd7e SC |
9005 | fi |
9006 | ||
d589327a VZ |
9007 | { echo "$as_me:$LINENO: result: $result" >&5 |
9008 | echo "${ECHO_T}$result" >&6; } | |
6e198e97 | 9009 | |
a848cd7e | 9010 | |
077c7880 | 9011 | enablestring= |
6e198e97 | 9012 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 9013 | if test -z "$defaultval"; then |
6e198e97 VZ |
9014 | if test x"$enablestring" = xdisable; then |
9015 | defaultval=yes | |
9016 | else | |
9017 | defaultval=no | |
9018 | fi | |
9019 | fi | |
9020 | ||
d589327a VZ |
9021 | { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5 |
9022 | echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6; } | |
4732e2dc VZ |
9023 | # Check whether --enable-logwin was given. |
9024 | if test "${enable_logwin+set}" = set; then | |
9025 | enableval=$enable_logwin; | |
a848cd7e | 9026 | if test "$enableval" = yes; then |
4732e2dc | 9027 | wx_cv_use_logwin='wxUSE_LOGWINDOW=yes' |
a848cd7e | 9028 | else |
4732e2dc | 9029 | wx_cv_use_logwin='wxUSE_LOGWINDOW=no' |
a848cd7e SC |
9030 | fi |
9031 | ||
9032 | else | |
9033 | ||
4732e2dc | 9034 | wx_cv_use_logwin='wxUSE_LOGWINDOW=${'DEFAULT_wxUSE_LOGWINDOW":-$defaultval}" |
a848cd7e | 9035 | |
47964710 VS |
9036 | fi |
9037 | ||
a848cd7e | 9038 | |
4732e2dc | 9039 | eval "$wx_cv_use_logwin" |
a848cd7e | 9040 | |
6e198e97 | 9041 | if test x"$enablestring" = xdisable; then |
7ac0e38e | 9042 | if test $wxUSE_LOGWINDOW = no; then |
6e198e97 | 9043 | result=yes |
7ac0e38e VZ |
9044 | else |
9045 | result=no | |
6e198e97 | 9046 | fi |
8a7b1113 | 9047 | else |
4732e2dc | 9048 | result=$wxUSE_LOGWINDOW |
8a7b1113 VZ |
9049 | fi |
9050 | ||
d589327a VZ |
9051 | { echo "$as_me:$LINENO: result: $result" >&5 |
9052 | echo "${ECHO_T}$result" >&6; } | |
6e198e97 | 9053 | |
8a7b1113 | 9054 | |
077c7880 | 9055 | enablestring= |
6e198e97 | 9056 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 9057 | if test -z "$defaultval"; then |
6e198e97 VZ |
9058 | if test x"$enablestring" = xdisable; then |
9059 | defaultval=yes | |
9060 | else | |
9061 | defaultval=no | |
9062 | fi | |
9063 | fi | |
9064 | ||
d589327a VZ |
9065 | { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5 |
9066 | echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6; } | |
4732e2dc VZ |
9067 | # Check whether --enable-logdialog was given. |
9068 | if test "${enable_logdialog+set}" = set; then | |
9069 | enableval=$enable_logdialog; | |
8a7b1113 | 9070 | if test "$enableval" = yes; then |
4732e2dc | 9071 | wx_cv_use_logdialog='wxUSE_LOGDIALOG=yes' |
8a7b1113 | 9072 | else |
4732e2dc | 9073 | wx_cv_use_logdialog='wxUSE_LOGDIALOG=no' |
8a7b1113 VZ |
9074 | fi |
9075 | ||
9076 | else | |
9077 | ||
4732e2dc | 9078 | wx_cv_use_logdialog='wxUSE_LOGDIALOG=${'DEFAULT_wxUSE_LOGDIALOG":-$defaultval}" |
8a7b1113 | 9079 | |
47964710 VS |
9080 | fi |
9081 | ||
8a7b1113 | 9082 | |
4732e2dc | 9083 | eval "$wx_cv_use_logdialog" |
8a7b1113 | 9084 | |
6e198e97 | 9085 | if test x"$enablestring" = xdisable; then |
7ac0e38e | 9086 | if test $wxUSE_LOGDIALOG = no; then |
6e198e97 | 9087 | result=yes |
7ac0e38e VZ |
9088 | else |
9089 | result=no | |
6e198e97 | 9090 | fi |
a848cd7e | 9091 | else |
4732e2dc | 9092 | result=$wxUSE_LOGDIALOG |
a848cd7e SC |
9093 | fi |
9094 | ||
d589327a VZ |
9095 | { echo "$as_me:$LINENO: result: $result" >&5 |
9096 | echo "${ECHO_T}$result" >&6; } | |
6e198e97 | 9097 | |
a848cd7e | 9098 | |
077c7880 | 9099 | enablestring= |
6e198e97 | 9100 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 9101 | if test -z "$defaultval"; then |
6e198e97 VZ |
9102 | if test x"$enablestring" = xdisable; then |
9103 | defaultval=yes | |
9104 | else | |
9105 | defaultval=no | |
9106 | fi | |
9107 | fi | |
9108 | ||
d589327a VZ |
9109 | { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5 |
9110 | echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6; } | |
4732e2dc VZ |
9111 | # Check whether --enable-mdi was given. |
9112 | if test "${enable_mdi+set}" = set; then | |
9113 | enableval=$enable_mdi; | |
a848cd7e | 9114 | if test "$enableval" = yes; then |
4732e2dc | 9115 | wx_cv_use_mdi='wxUSE_MDI=yes' |
a848cd7e | 9116 | else |
4732e2dc | 9117 | wx_cv_use_mdi='wxUSE_MDI=no' |
a848cd7e SC |
9118 | fi |
9119 | ||
9120 | else | |
9121 | ||
4732e2dc | 9122 | wx_cv_use_mdi='wxUSE_MDI=${'DEFAULT_wxUSE_MDI":-$defaultval}" |
a848cd7e | 9123 | |
47964710 VS |
9124 | fi |
9125 | ||
a848cd7e | 9126 | |
4732e2dc | 9127 | eval "$wx_cv_use_mdi" |
a848cd7e | 9128 | |
6e198e97 | 9129 | if test x"$enablestring" = xdisable; then |
7ac0e38e | 9130 | if test $wxUSE_MDI = no; then |
6e198e97 | 9131 | result=yes |
7ac0e38e VZ |
9132 | else |
9133 | result=no | |
6e198e97 | 9134 | fi |
a848cd7e | 9135 | else |
4732e2dc | 9136 | result=$wxUSE_MDI |
a848cd7e SC |
9137 | fi |
9138 | ||
d589327a VZ |
9139 | { echo "$as_me:$LINENO: result: $result" >&5 |
9140 | echo "${ECHO_T}$result" >&6; } | |
6e198e97 | 9141 | |
a848cd7e | 9142 | |
077c7880 | 9143 | enablestring= |
6e198e97 | 9144 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 9145 | if test -z "$defaultval"; then |
6e198e97 VZ |
9146 | if test x"$enablestring" = xdisable; then |
9147 | defaultval=yes | |
9148 | else | |
9149 | defaultval=no | |
9150 | fi | |
9151 | fi | |
9152 | ||
d589327a VZ |
9153 | { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdidoc" >&5 |
9154 | echo $ECHO_N "checking for --${enablestring:-enable}-mdidoc... $ECHO_C" >&6; } | |
4732e2dc VZ |
9155 | # Check whether --enable-mdidoc was given. |
9156 | if test "${enable_mdidoc+set}" = set; then | |
9157 | enableval=$enable_mdidoc; | |
a848cd7e | 9158 | if test "$enableval" = yes; then |
4732e2dc | 9159 | wx_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=yes' |
a848cd7e | 9160 | else |
4732e2dc | 9161 | wx_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=no' |
a848cd7e SC |
9162 | fi |
9163 | ||
9164 | else | |
9165 | ||
4732e2dc | 9166 | wx_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=${'DEFAULT_wxUSE_MDI_ARCHITECTURE":-$defaultval}" |
a848cd7e | 9167 | |
47964710 VS |
9168 | fi |
9169 | ||
a848cd7e | 9170 | |
4732e2dc | 9171 | eval "$wx_cv_use_mdidoc" |
a848cd7e | 9172 | |
6e198e97 | 9173 | if test x"$enablestring" = xdisable; then |
7ac0e38e | 9174 | if test $wxUSE_MDI_ARCHITECTURE = no; then |
6e198e97 | 9175 | result=yes |
7ac0e38e VZ |
9176 | else |
9177 | result=no | |
6e198e97 | 9178 | fi |
a848cd7e | 9179 | else |
4732e2dc | 9180 | result=$wxUSE_MDI_ARCHITECTURE |
a848cd7e SC |
9181 | fi |
9182 | ||
d589327a VZ |
9183 | { echo "$as_me:$LINENO: result: $result" >&5 |
9184 | echo "${ECHO_T}$result" >&6; } | |
6e198e97 | 9185 | |
a848cd7e | 9186 | |
077c7880 | 9187 | enablestring= |
6e198e97 | 9188 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 9189 | if test -z "$defaultval"; then |
6e198e97 VZ |
9190 | if test x"$enablestring" = xdisable; then |
9191 | defaultval=yes | |
9192 | else | |
9193 | defaultval=no | |
9194 | fi | |
9195 | fi | |
9196 | ||
d589327a VZ |
9197 | { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mediactrl" >&5 |
9198 | echo $ECHO_N "checking for --${enablestring:-enable}-mediactrl... $ECHO_C" >&6; } | |
4732e2dc VZ |
9199 | # Check whether --enable-mediactrl was given. |
9200 | if test "${enable_mediactrl+set}" = set; then | |
9201 | enableval=$enable_mediactrl; | |
a848cd7e | 9202 | if test "$enableval" = yes; then |
4732e2dc | 9203 | wx_cv_use_mediactrl='wxUSE_MEDIACTRL=yes' |
a848cd7e | 9204 | else |
4732e2dc | 9205 | wx_cv_use_mediactrl='wxUSE_MEDIACTRL=no' |
a848cd7e SC |
9206 | fi |
9207 | ||
9208 | else | |
9209 | ||
4732e2dc | 9210 | wx_cv_use_mediactrl='wxUSE_MEDIACTRL=${'DEFAULT_wxUSE_MEDIACTRL":-$defaultval}" |
a848cd7e | 9211 | |
47964710 VS |
9212 | fi |
9213 | ||
a848cd7e | 9214 | |
4732e2dc | 9215 | eval "$wx_cv_use_mediactrl" |
a848cd7e | 9216 | |
6e198e97 | 9217 | if test x"$enablestring" = xdisable; then |
7ac0e38e | 9218 | if test $wxUSE_MEDIACTRL = no; then |
6e198e97 | 9219 | result=yes |
7ac0e38e VZ |
9220 | else |
9221 | result=no | |
6e198e97 | 9222 | fi |
a848cd7e | 9223 | else |
4732e2dc VZ |
9224 | result=$wxUSE_MEDIACTRL |
9225 | fi | |
9226 | ||
d589327a VZ |
9227 | { echo "$as_me:$LINENO: result: $result" >&5 |
9228 | echo "${ECHO_T}$result" >&6; } | |
4732e2dc VZ |
9229 | |
9230 | ||
9231 | enablestring= | |
9232 | defaultval=$wxUSE_ALL_FEATURES | |
9233 | if test -z "$defaultval"; then | |
9234 | if test x"$enablestring" = xdisable; then | |
9235 | defaultval=yes | |
9236 | else | |
9237 | defaultval=no | |
9238 | fi | |
9239 | fi | |
9240 | ||
d589327a VZ |
9241 | { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gstreamer8" >&5 |
9242 | echo $ECHO_N "checking for --${enablestring:-enable}-gstreamer8... $ECHO_C" >&6; } | |
4732e2dc VZ |
9243 | # Check whether --enable-gstreamer8 was given. |
9244 | if test "${enable_gstreamer8+set}" = set; then | |
9245 | enableval=$enable_gstreamer8; | |
9246 | if test "$enableval" = yes; then | |
9247 | wx_cv_use_gstreamer8='wxUSE_GSTREAMER8=yes' | |
9248 | else | |
9249 | wx_cv_use_gstreamer8='wxUSE_GSTREAMER8=no' | |
9250 | fi | |
9251 | ||
9252 | else | |
9253 | ||
9254 | wx_cv_use_gstreamer8='wxUSE_GSTREAMER8=${'DEFAULT_wxUSE_GSTREAMER8":-$defaultval}" | |
9255 | ||
9256 | fi | |
9257 | ||
9258 | ||
9259 | eval "$wx_cv_use_gstreamer8" | |
9260 | ||
9261 | if test x"$enablestring" = xdisable; then | |
7ac0e38e | 9262 | if test $wxUSE_GSTREAMER8 = no; then |
4732e2dc | 9263 | result=yes |
7ac0e38e VZ |
9264 | else |
9265 | result=no | |
4732e2dc VZ |
9266 | fi |
9267 | else | |
9268 | result=$wxUSE_GSTREAMER8 | |
a848cd7e SC |
9269 | fi |
9270 | ||
d589327a VZ |
9271 | { echo "$as_me:$LINENO: result: $result" >&5 |
9272 | echo "${ECHO_T}$result" >&6; } | |
6e198e97 | 9273 | |
a848cd7e | 9274 | |
077c7880 | 9275 | enablestring= |
6e198e97 | 9276 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 9277 | if test -z "$defaultval"; then |
6e198e97 VZ |
9278 | if test x"$enablestring" = xdisable; then |
9279 | defaultval=yes | |
9280 | else | |
9281 | defaultval=no | |
9282 | fi | |
9283 | fi | |
9284 | ||
d589327a VZ |
9285 | { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-webkit" >&5 |
9286 | echo $ECHO_N "checking for --${enablestring:-enable}-webkit... $ECHO_C" >&6; } | |
47964710 | 9287 | # Check whether --enable-webkit was given. |
646b6ec1 | 9288 | if test "${enable_webkit+set}" = set; then |
47964710 | 9289 | enableval=$enable_webkit; |
646b6ec1 | 9290 | if test "$enableval" = yes; then |
d970f7d5 | 9291 | wx_cv_use_webkit='wxUSE_WEBKIT=yes' |
646b6ec1 | 9292 | else |
d970f7d5 | 9293 | wx_cv_use_webkit='wxUSE_WEBKIT=no' |
646b6ec1 VS |
9294 | fi |
9295 | ||
9296 | else | |
9297 | ||
d970f7d5 | 9298 | wx_cv_use_webkit='wxUSE_WEBKIT=${'DEFAULT_wxUSE_WEBKIT":-$defaultval}" |
646b6ec1 | 9299 | |
47964710 VS |
9300 | fi |
9301 | ||
646b6ec1 | 9302 | |
d970f7d5 | 9303 | eval "$wx_cv_use_webkit" |
646b6ec1 | 9304 | |
6e198e97 | 9305 | if test x"$enablestring" = xdisable; then |
7ac0e38e | 9306 | if test $wxUSE_WEBKIT = no; then |
6e198e97 | 9307 | result=yes |
7ac0e38e VZ |
9308 | else |
9309 | result=no | |
6e198e97 | 9310 | fi |
646b6ec1 | 9311 | else |
6e198e97 | 9312 | result=$wxUSE_WEBKIT |
646b6ec1 VS |
9313 | fi |
9314 | ||
d589327a VZ |
9315 | { echo "$as_me:$LINENO: result: $result" >&5 |
9316 | echo "${ECHO_T}$result" >&6; } | |
6e198e97 | 9317 | |
646b6ec1 | 9318 | |
077c7880 | 9319 | enablestring= |
6e198e97 | 9320 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 9321 | if test -z "$defaultval"; then |
6e198e97 VZ |
9322 | if test x"$enablestring" = xdisable; then |
9323 | defaultval=yes | |
9324 | else | |
9325 | defaultval=no | |
9326 | fi | |
9327 | fi | |
9328 | ||
d589327a VZ |
9329 | { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-richtext" >&5 |
9330 | echo $ECHO_N "checking for --${enablestring:-enable}-richtext... $ECHO_C" >&6; } | |
47964710 | 9331 | # Check whether --enable-richtext was given. |
6da4ac91 | 9332 | if test "${enable_richtext+set}" = set; then |
47964710 | 9333 | enableval=$enable_richtext; |
91dea314 | 9334 | if test "$enableval" = yes; then |
d970f7d5 | 9335 | wx_cv_use_richtext='wxUSE_RICHTEXT=yes' |
91dea314 | 9336 | else |
d970f7d5 | 9337 | wx_cv_use_richtext='wxUSE_RICHTEXT=no' |
91dea314 MW |
9338 | fi |
9339 | ||
9340 | else | |
9341 | ||
d970f7d5 | 9342 | wx_cv_use_richtext='wxUSE_RICHTEXT=${'DEFAULT_wxUSE_RICHTEXT":-$defaultval}" |
91dea314 | 9343 | |
47964710 VS |
9344 | fi |
9345 | ||
91dea314 | 9346 | |
d970f7d5 | 9347 | eval "$wx_cv_use_richtext" |
91dea314 | 9348 | |
6e198e97 | 9349 | if test x"$enablestring" = xdisable; then |
7ac0e38e | 9350 | if test $wxUSE_RICHTEXT = no; then |
6e198e97 | 9351 | result=yes |
7ac0e38e VZ |
9352 | else |
9353 | result=no | |
6e198e97 | 9354 | fi |
91dea314 | 9355 | else |
6e198e97 | 9356 | result=$wxUSE_RICHTEXT |
91dea314 MW |
9357 | fi |
9358 | ||
d589327a VZ |
9359 | { echo "$as_me:$LINENO: result: $result" >&5 |
9360 | echo "${ECHO_T}$result" >&6; } | |
6e198e97 | 9361 | |
91dea314 | 9362 | |
077c7880 | 9363 | enablestring= |
6e198e97 | 9364 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 9365 | if test -z "$defaultval"; then |
6e198e97 VZ |
9366 | if test x"$enablestring" = xdisable; then |
9367 | defaultval=yes | |
9368 | else | |
9369 | defaultval=no | |
9370 | fi | |
9371 | fi | |
9372 | ||
d589327a VZ |
9373 | { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5 |
9374 | echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6; } | |
47964710 | 9375 | # Check whether --enable-postscript was given. |
a848cd7e | 9376 | if test "${enable_postscript+set}" = set; then |
47964710 | 9377 | enableval=$enable_postscript; |
a848cd7e | 9378 | if test "$enableval" = yes; then |
d970f7d5 | 9379 | wx_cv_use_postscript='wxUSE_POSTSCRIPT=yes' |
a848cd7e | 9380 | else |
d970f7d5 | 9381 | wx_cv_use_postscript='wxUSE_POSTSCRIPT=no' |
a848cd7e SC |
9382 | fi |
9383 | ||
9384 | else | |
9385 | ||
d970f7d5 | 9386 | wx_cv_use_postscript='wxUSE_POSTSCRIPT=${'DEFAULT_wxUSE_POSTSCRIPT":-$defaultval}" |
a848cd7e | 9387 | |
47964710 VS |
9388 | fi |
9389 | ||
a848cd7e | 9390 | |
d970f7d5 | 9391 | eval "$wx_cv_use_postscript" |
a848cd7e | 9392 | |
6e198e97 | 9393 | if test x"$enablestring" = xdisable; then |
7ac0e38e | 9394 | if test $wxUSE_POSTSCRIPT = no; then |
6e198e97 | 9395 | result=yes |
7ac0e38e VZ |
9396 | else |
9397 | result=no | |
6e198e97 | 9398 | fi |
a848cd7e | 9399 | else |
6e198e97 | 9400 | result=$wxUSE_POSTSCRIPT |
a848cd7e SC |
9401 | fi |
9402 | ||
d589327a VZ |
9403 | { echo "$as_me:$LINENO: result: $result" >&5 |
9404 | echo "${ECHO_T}$result" >&6; } | |
a848cd7e SC |
9405 | |
9406 | ||
4732e2dc VZ |
9407 | enablestring= |
9408 | defaultval=$wxUSE_ALL_FEATURES | |
9409 | if test -z "$defaultval"; then | |
9410 | if test x"$enablestring" = xdisable; then | |
9411 | defaultval=yes | |
9412 | else | |
9413 | defaultval=no | |
9414 | fi | |
9415 | fi | |
9416 | ||
d589327a VZ |
9417 | { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5 |
9418 | echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6; } | |
4732e2dc VZ |
9419 | # Check whether --enable-printarch was given. |
9420 | if test "${enable_printarch+set}" = set; then | |
9421 | enableval=$enable_printarch; | |
9422 | if test "$enableval" = yes; then | |
9423 | wx_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes' | |
9424 | else | |
9425 | wx_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no' | |
9426 | fi | |
9427 | ||
9428 | else | |
9429 | ||
9430 | wx_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=${'DEFAULT_wxUSE_PRINTING_ARCHITECTURE":-$defaultval}" | |
9431 | ||
9432 | fi | |
9433 | ||
9434 | ||
9435 | eval "$wx_cv_use_printarch" | |
9436 | ||
9437 | if test x"$enablestring" = xdisable; then | |
7ac0e38e | 9438 | if test $wxUSE_PRINTING_ARCHITECTURE = no; then |
4732e2dc | 9439 | result=yes |
7ac0e38e VZ |
9440 | else |
9441 | result=no | |
4732e2dc VZ |
9442 | fi |
9443 | else | |
9444 | result=$wxUSE_PRINTING_ARCHITECTURE | |
9445 | fi | |
9446 | ||
d589327a VZ |
9447 | { echo "$as_me:$LINENO: result: $result" >&5 |
9448 | echo "${ECHO_T}$result" >&6; } | |
4732e2dc VZ |
9449 | |
9450 | ||
b0fc907f VZ |
9451 | enablestring= |
9452 | defaultval=$wxUSE_ALL_FEATURES | |
238663c1 | 9453 | if test -z "$defaultval"; then |
b0fc907f VZ |
9454 | if test x"$enablestring" = xdisable; then |
9455 | defaultval=yes | |
9456 | else | |
9457 | defaultval=no | |
9458 | fi | |
9459 | fi | |
9460 | ||
d589327a VZ |
9461 | { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-svg" >&5 |
9462 | echo $ECHO_N "checking for --${enablestring:-enable}-svg... $ECHO_C" >&6; } | |
47964710 | 9463 | # Check whether --enable-svg was given. |
b0fc907f | 9464 | if test "${enable_svg+set}" = set; then |
47964710 | 9465 | enableval=$enable_svg; |
b0fc907f | 9466 | if test "$enableval" = yes; then |
d970f7d5 | 9467 | wx_cv_use_svg='wxUSE_SVG=yes' |
b0fc907f | 9468 | else |
d970f7d5 | 9469 | wx_cv_use_svg='wxUSE_SVG=no' |
b0fc907f VZ |
9470 | fi |
9471 | ||
9472 | else | |
9473 | ||
d970f7d5 | 9474 | wx_cv_use_svg='wxUSE_SVG=${'DEFAULT_wxUSE_SVG":-$defaultval}" |
b0fc907f | 9475 | |
47964710 VS |
9476 | fi |
9477 | ||
b0fc907f | 9478 | |
d970f7d5 | 9479 | eval "$wx_cv_use_svg" |
b0fc907f VZ |
9480 | |
9481 | if test x"$enablestring" = xdisable; then | |
7ac0e38e | 9482 | if test $wxUSE_SVG = no; then |
b0fc907f | 9483 | result=yes |
7ac0e38e VZ |
9484 | else |
9485 | result=no | |
b0fc907f VZ |
9486 | fi |
9487 | else | |
9488 | result=$wxUSE_SVG | |
9489 | fi | |
9490 | ||
d589327a VZ |
9491 | { echo "$as_me:$LINENO: result: $result" >&5 |
9492 | echo "${ECHO_T}$result" >&6; } | |
b0fc907f VZ |
9493 | |
9494 | ||
a12bd55b VZ |
9495 | if test "$wxUSE_MAC" != 1; then |
9496 | ||
9497 | enablestring= | |
9498 | defaultval=$wxUSE_ALL_FEATURES | |
9499 | if test -z "$defaultval"; then | |
9500 | if test x"$enablestring" = xdisable; then | |
9501 | defaultval=yes | |
9502 | else | |
9503 | defaultval=no | |
9504 | fi | |
9505 | fi | |
9506 | ||
9507 | { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-graphics_ctx" >&5 | |
9508 | echo $ECHO_N "checking for --${enablestring:-enable}-graphics_ctx... $ECHO_C" >&6; } | |
9509 | # Check whether --enable-graphics_ctx was given. | |
9510 | if test "${enable_graphics_ctx+set}" = set; then | |
9511 | enableval=$enable_graphics_ctx; | |
9512 | if test "$enableval" = yes; then | |
9513 | wx_cv_use_graphics_ctx='wxUSE_GRAPHICS_CONTEXT=yes' | |
9514 | else | |
9515 | wx_cv_use_graphics_ctx='wxUSE_GRAPHICS_CONTEXT=no' | |
9516 | fi | |
9517 | ||
9518 | else | |
9519 | ||
9520 | wx_cv_use_graphics_ctx='wxUSE_GRAPHICS_CONTEXT=${'DEFAULT_wxUSE_GRAPHICS_CONTEXT":-$defaultval}" | |
9521 | ||
9522 | fi | |
9523 | ||
9524 | ||
9525 | eval "$wx_cv_use_graphics_ctx" | |
9526 | ||
9527 | if test x"$enablestring" = xdisable; then | |
9528 | if test $wxUSE_GRAPHICS_CONTEXT = no; then | |
9529 | result=yes | |
9530 | else | |
9531 | result=no | |
9532 | fi | |
9533 | else | |
9534 | result=$wxUSE_GRAPHICS_CONTEXT | |
9535 | fi | |
9536 | ||
9537 | { echo "$as_me:$LINENO: result: $result" >&5 | |
9538 | echo "${ECHO_T}$result" >&6; } | |
9539 | ||
9540 | fi | |
9541 | ||
a848cd7e SC |
9542 | |
9543 | ||
077c7880 | 9544 | enablestring= |
6e198e97 | 9545 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 9546 | if test -z "$defaultval"; then |
6e198e97 VZ |
9547 | if test x"$enablestring" = xdisable; then |
9548 | defaultval=yes | |
9549 | else | |
9550 | defaultval=no | |
9551 | fi | |
9552 | fi | |
9553 | ||
d589327a VZ |
9554 | { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5 |
9555 | echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6; } | |
47964710 | 9556 | # Check whether --enable-clipboard was given. |
a848cd7e | 9557 | if test "${enable_clipboard+set}" = set; then |
47964710 | 9558 | enableval=$enable_clipboard; |
a848cd7e | 9559 | if test "$enableval" = yes; then |
d970f7d5 | 9560 | wx_cv_use_clipboard='wxUSE_CLIPBOARD=yes' |
a848cd7e | 9561 | else |
d970f7d5 | 9562 | wx_cv_use_clipboard='wxUSE_CLIPBOARD=no' |
a848cd7e SC |
9563 | fi |
9564 | ||
9565 | else | |
9566 | ||
d970f7d5 | 9567 | wx_cv_use_clipboard='wxUSE_CLIPBOARD=${'DEFAULT_wxUSE_CLIPBOARD":-$defaultval}" |
a848cd7e | 9568 | |
47964710 VS |
9569 | fi |
9570 | ||
a848cd7e | 9571 | |
d970f7d5 | 9572 | eval "$wx_cv_use_clipboard" |
a848cd7e | 9573 | |
6e198e97 | 9574 | if test x"$enablestring" = xdisable; then |
7ac0e38e | 9575 | if test $wxUSE_CLIPBOARD = no; then |
6e198e97 | 9576 | result=yes |
7ac0e38e VZ |
9577 | else |
9578 | result=no | |
6e198e97 | 9579 | fi |
a848cd7e | 9580 | else |
6e198e97 | 9581 | result=$wxUSE_CLIPBOARD |
a848cd7e SC |
9582 | fi |
9583 | ||
d589327a VZ |
9584 | { echo "$as_me:$LINENO: result: $result" >&5 |
9585 | echo "${ECHO_T}$result" >&6; } | |
6e198e97 | 9586 | |
a848cd7e | 9587 | |
077c7880 | 9588 | enablestring= |
6e198e97 | 9589 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 9590 | if test -z "$defaultval"; then |
6e198e97 VZ |
9591 | if test x"$enablestring" = xdisable; then |
9592 | defaultval=yes | |
9593 | else | |
9594 | defaultval=no | |
9595 | fi | |
9596 | fi | |
9597 | ||
d589327a VZ |
9598 | { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5 |
9599 | echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6; } | |
47964710 | 9600 | # Check whether --enable-dnd was given. |
a848cd7e | 9601 | if test "${enable_dnd+set}" = set; then |
47964710 | 9602 | enableval=$enable_dnd; |
a848cd7e | 9603 | if test "$enableval" = yes; then |
d970f7d5 | 9604 | wx_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes' |
a848cd7e | 9605 | else |
d970f7d5 | 9606 | wx_cv_use_dnd='wxUSE_DRAG_AND_DROP=no' |
a848cd7e SC |
9607 | fi |
9608 | ||
9609 | else | |
9610 | ||
d970f7d5 | 9611 | wx_cv_use_dnd='wxUSE_DRAG_AND_DROP=${'DEFAULT_wxUSE_DRAG_AND_DROP":-$defaultval}" |
a848cd7e | 9612 | |
47964710 VS |
9613 | fi |
9614 | ||
a848cd7e | 9615 | |
d970f7d5 | 9616 | eval "$wx_cv_use_dnd" |
a848cd7e | 9617 | |
6e198e97 | 9618 | if test x"$enablestring" = xdisable; then |
7ac0e38e | 9619 | if test $wxUSE_DRAG_AND_DROP = no; then |
6e198e97 | 9620 | result=yes |
7ac0e38e VZ |
9621 | else |
9622 | result=no | |
6e198e97 | 9623 | fi |
a848cd7e | 9624 | else |
6e198e97 | 9625 | result=$wxUSE_DRAG_AND_DROP |
a848cd7e SC |
9626 | fi |
9627 | ||
d589327a VZ |
9628 | { echo "$as_me:$LINENO: result: $result" >&5 |
9629 | echo "${ECHO_T}$result" >&6; } | |
6e198e97 | 9630 | |
a848cd7e | 9631 | |
077c7880 | 9632 | enablestring= |
6e198e97 | 9633 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 9634 | if test -z "$defaultval"; then |
6e198e97 VZ |
9635 | if test x"$enablestring" = xdisable; then |
9636 | defaultval=yes | |
9637 | else | |
9638 | defaultval=no | |
9639 | fi | |
9640 | fi | |
9641 | ||
d589327a VZ |
9642 | { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5 |
9643 | echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6; } | |
47964710 | 9644 | # Check whether --enable-metafile was given. |
a848cd7e | 9645 | if test "${enable_metafile+set}" = set; then |
47964710 | 9646 | enableval=$enable_metafile; |
a848cd7e | 9647 | if test "$enableval" = yes; then |
d970f7d5 | 9648 | wx_cv_use_metafile='wxUSE_METAFILE=yes' |
a848cd7e | 9649 | else |
d970f7d5 | 9650 | wx_cv_use_metafile='wxUSE_METAFILE=no' |
a848cd7e SC |
9651 | fi |
9652 | ||
9653 | else | |
9654 | ||
d970f7d5 | 9655 | wx_cv_use_metafile='wxUSE_METAFILE=${'DEFAULT_wxUSE_METAFILE":-$defaultval}" |
a848cd7e | 9656 | |
47964710 VS |
9657 | fi |
9658 | ||
a848cd7e | 9659 | |
d970f7d5 | 9660 | eval "$wx_cv_use_metafile" |
a848cd7e | 9661 | |
6e198e97 | 9662 | if test x"$enablestring" = xdisable; then |
7ac0e38e | 9663 | if test $wxUSE_METAFILE = no; then |
6e198e97 | 9664 | result=yes |
7ac0e38e VZ |
9665 | else |
9666 | result=no | |
6e198e97 | 9667 | fi |
a848cd7e | 9668 | else |
6e198e97 | 9669 | result=$wxUSE_METAFILE |
a848cd7e SC |
9670 | fi |
9671 | ||
d589327a VZ |
9672 | { echo "$as_me:$LINENO: result: $result" >&5 |
9673 | echo "${ECHO_T}$result" >&6; } | |
a848cd7e SC |
9674 | |
9675 | ||
9676 | ||
3c7410a5 | 9677 | DEFAULT_wxUSE_CONTROLS=none |
a848cd7e | 9678 | |
3c7410a5 VZ |
9679 | enablestring=disable |
9680 | defaultval= | |
238663c1 | 9681 | if test -z "$defaultval"; then |
6e198e97 VZ |
9682 | if test x"$enablestring" = xdisable; then |
9683 | defaultval=yes | |
9684 | else | |
9685 | defaultval=no | |
9686 | fi | |
9687 | fi | |
9688 | ||
d589327a VZ |
9689 | { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5 |
9690 | echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6; } | |
47964710 | 9691 | # Check whether --enable-controls was given. |
a848cd7e | 9692 | if test "${enable_controls+set}" = set; then |
47964710 | 9693 | enableval=$enable_controls; |
a848cd7e | 9694 | if test "$enableval" = yes; then |
d970f7d5 | 9695 | wx_cv_use_controls='wxUSE_CONTROLS=yes' |
a848cd7e | 9696 | else |
d970f7d5 | 9697 | wx_cv_use_controls='wxUSE_CONTROLS=no' |
a848cd7e SC |
9698 | fi |
9699 | ||
9700 | else | |
9701 | ||
d970f7d5 | 9702 | wx_cv_use_controls='wxUSE_CONTROLS=${'DEFAULT_wxUSE_CONTROLS":-$defaultval}" |
a848cd7e | 9703 | |
47964710 VS |
9704 | fi |
9705 | ||
a848cd7e | 9706 | |
d970f7d5 | 9707 | eval "$wx_cv_use_controls" |
a848cd7e | 9708 | |
6e198e97 | 9709 | if test x"$enablestring" = xdisable; then |
7ac0e38e | 9710 | if test $wxUSE_CONTROLS = no; then |
6e198e97 | 9711 | result=yes |
7ac0e38e VZ |
9712 | else |
9713 | result=no | |
6e198e97 | 9714 | fi |
a848cd7e | 9715 | else |
6e198e97 | 9716 | result=$wxUSE_CONTROLS |
a848cd7e SC |
9717 | fi |
9718 | ||
d589327a VZ |
9719 | { echo "$as_me:$LINENO: result: $result" >&5 |
9720 | echo "${ECHO_T}$result" >&6; } | |
6e198e97 | 9721 | |
a848cd7e | 9722 | |
e6d984e2 VZ |
9723 | if test "$wxUSE_CONTROLS" = "no"; then |
9724 | DEFAULT_wxUSE_ACCEL=no | |
9725 | DEFAULT_wxUSE_ANIMATIONCTRL=no | |
9726 | DEFAULT_wxUSE_BMPBUTTON=no | |
9727 | DEFAULT_wxUSE_BUTTON=no | |
9728 | DEFAULT_wxUSE_CALCTRL=no | |
9729 | DEFAULT_wxUSE_CARET=no | |
9730 | DEFAULT_wxUSE_CHECKBOX=no | |
9731 | DEFAULT_wxUSE_CHECKLISTBOX=no | |
9732 | DEFAULT_wxUSE_CHOICE=no | |
9733 | DEFAULT_wxUSE_CHOICEBOOK=no | |
9734 | DEFAULT_wxUSE_COLLPANE=no | |
9735 | DEFAULT_wxUSE_COLOURPICKERCTRL=no | |
9736 | DEFAULT_wxUSE_COMBOBOX=no | |
9737 | DEFAULT_wxUSE_COMBOBOX=no | |
9738 | DEFAULT_wxUSE_DATAVIEWCTRL=no | |
9739 | DEFAULT_wxUSE_DATEPICKCTRL=no | |
9740 | DEFAULT_wxUSE_DETECT_SM=no | |
9741 | DEFAULT_wxUSE_DIRPICKERCTRL=no | |
9742 | DEFAULT_wxUSE_DISPLAY=no | |
9743 | DEFAULT_wxUSE_FILECTRL=no | |
9744 | DEFAULT_wxUSE_FILEPICKERCTRL=no | |
9745 | DEFAULT_wxUSE_FONTPICKERCTRL=no | |
9746 | DEFAULT_wxUSE_GAUGE=no | |
9747 | DEFAULT_wxUSE_GRID=no | |
e721a2a2 | 9748 | DEFAULT_wxUSE_HEADERCTRL=no |
e6d984e2 VZ |
9749 | DEFAULT_wxUSE_HYPERLINKCTRL=no |
9750 | DEFAULT_wxUSE_IMAGLIST=no | |
9751 | DEFAULT_wxUSE_LISTBOOK=no | |
9752 | DEFAULT_wxUSE_LISTBOX=no | |
9753 | DEFAULT_wxUSE_LISTCTRL=no | |
9754 | DEFAULT_wxUSE_NOTEBOOK=no | |
9755 | DEFAULT_wxUSE_POPUPWIN=no | |
9756 | DEFAULT_wxUSE_RADIOBOX=no | |
9757 | DEFAULT_wxUSE_RADIOBTN=no | |
9758 | DEFAULT_wxUSE_REARRANGECTRL=no | |
9759 | DEFAULT_wxUSE_SASH=no | |
9760 | DEFAULT_wxUSE_SCROLLBAR=no | |
9761 | DEFAULT_wxUSE_SEARCHCTRL=no | |
9762 | DEFAULT_wxUSE_SLIDER=no | |
9763 | DEFAULT_wxUSE_SPINBTN=no | |
9764 | DEFAULT_wxUSE_SPINCTRL=no | |
9765 | DEFAULT_wxUSE_SPLITTER=no | |
9766 | DEFAULT_wxUSE_STATBMP=no | |
9767 | DEFAULT_wxUSE_STATBOX=no | |
9768 | DEFAULT_wxUSE_STATLINE=no | |
9769 | DEFAULT_wxUSE_STATUSBAR=no | |
9770 | DEFAULT_wxUSE_TIPWINDOW=no | |
9771 | DEFAULT_wxUSE_TOGGLEBTN=no | |
9772 | DEFAULT_wxUSE_TOOLBAR=no | |
9773 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no | |
9774 | DEFAULT_wxUSE_TOOLBOOK=no | |
9775 | DEFAULT_wxUSE_TOOLTIPS=no | |
9776 | DEFAULT_wxUSE_TREEBOOK=no | |
9777 | DEFAULT_wxUSE_TREECTRL=no | |
a848cd7e SC |
9778 | fi |
9779 | ||
a848cd7e | 9780 | |
077c7880 | 9781 | enablestring= |
6e198e97 | 9782 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 9783 | if test -z "$defaultval"; then |
6e198e97 VZ |
9784 | if test x"$enablestring" = xdisable; then |
9785 | defaultval=yes | |
9786 | else | |
9787 | defaultval=no | |
9788 | fi | |
9789 | fi | |
9790 | ||
d589327a VZ |
9791 | { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5 |
9792 | echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6; } | |
47964710 | 9793 | # Check whether --enable-accel was given. |
a848cd7e | 9794 | if test "${enable_accel+set}" = set; then |
47964710 | 9795 | enableval=$enable_accel; |
a848cd7e | 9796 | if test "$enableval" = yes; then |
d970f7d5 | 9797 | wx_cv_use_accel='wxUSE_ACCEL=yes' |
a848cd7e | 9798 | else |
d970f7d5 | 9799 | wx_cv_use_accel='wxUSE_ACCEL=no' |
a848cd7e SC |
9800 | fi |
9801 | ||
9802 | else | |
9803 | ||
d970f7d5 | 9804 | wx_cv_use_accel='wxUSE_ACCEL=${'DEFAULT_wxUSE_ACCEL":-$defaultval}" |
a848cd7e | 9805 | |
47964710 VS |
9806 | fi |
9807 | ||
a848cd7e | 9808 | |
d970f7d5 | 9809 | eval "$wx_cv_use_accel" |
a848cd7e | 9810 | |
6e198e97 | 9811 | if test x"$enablestring" = xdisable; then |
7ac0e38e | 9812 | if test $wxUSE_ACCEL = no; then |
6e198e97 | 9813 | result=yes |
7ac0e38e VZ |
9814 | else |
9815 | result=no | |
6e198e97 | 9816 | fi |
a848cd7e | 9817 | else |
6e198e97 | 9818 | result=$wxUSE_ACCEL |
a848cd7e SC |
9819 | fi |
9820 | ||
d589327a VZ |
9821 | { echo "$as_me:$LINENO: result: $result" >&5 |
9822 | echo "${ECHO_T}$result" >&6; } | |
6e198e97 | 9823 | |
a848cd7e | 9824 | |
077c7880 | 9825 | enablestring= |
6e198e97 | 9826 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 9827 | if test -z "$defaultval"; then |
6e198e97 VZ |
9828 | if test x"$enablestring" = xdisable; then |
9829 | defaultval=yes | |
9830 | else | |
9831 | defaultval=no | |
9832 | fi | |
9833 | fi | |
9834 | ||
d589327a VZ |
9835 | { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-animatectrl" >&5 |
9836 | echo $ECHO_N "checking for --${enablestring:-enable}-animatectrl... $ECHO_C" >&6; } | |
47964710 | 9837 | # Check whether --enable-animatectrl was given. |
3ea50042 | 9838 | if test "${enable_animatectrl+set}" = set; then |
47964710 | 9839 | enableval=$enable_animatectrl; |
3ea50042 | 9840 | if test "$enableval" = yes; then |
d970f7d5 | 9841 | wx_cv_use_animatectrl='wxUSE_ANIMATIONCTRL=yes' |
3ea50042 | 9842 | else |
d970f7d5 | 9843 | wx_cv_use_animatectrl='wxUSE_ANIMATIONCTRL=no' |
3ea50042 VZ |
9844 | fi |
9845 | ||
9846 | else | |
9847 | ||
d970f7d5 | 9848 | wx_cv_use_animatectrl='wxUSE_ANIMATIONCTRL=${'DEFAULT_wxUSE_ANIMATIONCTRL":-$defaultval}" |
3ea50042 | 9849 | |
47964710 VS |
9850 | fi |
9851 | ||
3ea50042 | 9852 | |
d970f7d5 | 9853 | eval "$wx_cv_use_animatectrl" |
3ea50042 | 9854 | |
6e198e97 | 9855 | if test x"$enablestring" = xdisable; then |
7ac0e38e | 9856 | if test $wxUSE_ANIMATIONCTRL = no; then |
6e198e97 | 9857 | result=yes |
7ac0e38e VZ |
9858 | else |
9859 | result=no | |
6e198e97 | 9860 | fi |
3ea50042 | 9861 | else |
6e198e97 | 9862 | result=$wxUSE_ANIMATIONCTRL |
3ea50042 VZ |
9863 | fi |
9864 | ||
d589327a VZ |
9865 | { echo "$as_me:$LINENO: result: $result" >&5 |
9866 | echo "${ECHO_T}$result" >&6; } | |
6e198e97 | 9867 | |
3ea50042 | 9868 | |
077c7880 | 9869 | enablestring= |
6e198e97 | 9870 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 9871 | if test -z "$defaultval"; then |
6e198e97 VZ |
9872 | if test x"$enablestring" = xdisable; then |
9873 | defaultval=yes | |
9874 | else | |
9875 | defaultval=no | |
9876 | fi | |
9877 | fi | |
9878 | ||
d589327a VZ |
9879 | { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5 |
9880 | echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6; } | |
e6d984e2 VZ |
9881 | # Check whether --enable-bmpbutton was given. |
9882 | if test "${enable_bmpbutton+set}" = set; then | |
9883 | enableval=$enable_bmpbutton; | |
a848cd7e | 9884 | if test "$enableval" = yes; then |
e6d984e2 | 9885 | wx_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes' |
a848cd7e | 9886 | else |
e6d984e2 | 9887 | wx_cv_use_bmpbutton='wxUSE_BMPBUTTON=no' |
a848cd7e SC |
9888 | fi |
9889 | ||
9890 | else | |
9891 | ||
e6d984e2 | 9892 | wx_cv_use_bmpbutton='wxUSE_BMPBUTTON=${'DEFAULT_wxUSE_BMPBUTTON":-$defaultval}" |
a848cd7e | 9893 | |
47964710 VS |
9894 | fi |
9895 | ||
a848cd7e | 9896 | |
e6d984e2 | 9897 | eval "$wx_cv_use_bmpbutton" |
a848cd7e | 9898 | |
6e198e97 | 9899 | if test x"$enablestring" = xdisable; then |
7ac0e38e | 9900 | if test $wxUSE_BMPBUTTON = no; then |
6e198e97 | 9901 | result=yes |
7ac0e38e VZ |
9902 | else |
9903 | result=no | |
6e198e97 | 9904 | fi |
a848cd7e | 9905 | else |
e6d984e2 | 9906 | result=$wxUSE_BMPBUTTON |
a848cd7e SC |
9907 | fi |
9908 | ||
d589327a VZ |
9909 | { echo "$as_me:$LINENO: result: $result" >&5 |
9910 | echo "${ECHO_T}$result" >&6; } | |
6e198e97 | 9911 | |
a848cd7e | 9912 | |
077c7880 | 9913 | enablestring= |
6e198e97 | 9914 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 9915 | if test -z "$defaultval"; then |
6e198e97 VZ |
9916 | if test x"$enablestring" = xdisable; then |
9917 | defaultval=yes | |
9918 | else | |
9919 | defaultval=no | |
9920 | fi | |
9921 | fi | |
9922 | ||
d589327a VZ |
9923 | { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpcombobox" >&5 |
9924 | echo $ECHO_N "checking for --${enablestring:-enable}-bmpcombobox... $ECHO_C" >&6; } | |
e6d984e2 VZ |
9925 | # Check whether --enable-bmpcombobox was given. |
9926 | if test "${enable_bmpcombobox+set}" = set; then | |
9927 | enableval=$enable_bmpcombobox; | |
a848cd7e | 9928 | if test "$enableval" = yes; then |
e6d984e2 | 9929 | wx_cv_use_bmpcombobox='wxUSE_BITMAPCOMBOBOX=yes' |
a848cd7e | 9930 | else |
e6d984e2 | 9931 | wx_cv_use_bmpcombobox='wxUSE_BITMAPCOMBOBOX=no' |
a848cd7e SC |
9932 | fi |
9933 | ||
9934 | else | |
9935 | ||
e6d984e2 | 9936 | wx_cv_use_bmpcombobox='wxUSE_BITMAPCOMBOBOX=${'DEFAULT_wxUSE_BITMAPCOMBOBOX":-$defaultval}" |
a848cd7e | 9937 | |
47964710 VS |
9938 | fi |
9939 | ||
a848cd7e | 9940 | |
e6d984e2 | 9941 | eval "$wx_cv_use_bmpcombobox" |
a848cd7e | 9942 | |
6e198e97 | 9943 | if test x"$enablestring" = xdisable; then |
7ac0e38e | 9944 | if test $wxUSE_BITMAPCOMBOBOX = no; then |
6e198e97 | 9945 | result=yes |
7ac0e38e VZ |
9946 | else |
9947 | result=no | |
6e198e97 | 9948 | fi |
a848cd7e | 9949 | else |
e6d984e2 | 9950 | result=$wxUSE_BITMAPCOMBOBOX |
a848cd7e SC |
9951 | fi |
9952 | ||
d589327a VZ |
9953 | { echo "$as_me:$LINENO: result: $result" >&5 |
9954 | echo "${ECHO_T}$result" >&6; } | |
6e198e97 | 9955 | |
a848cd7e | 9956 | |
077c7880 | 9957 | enablestring= |
6e198e97 | 9958 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 9959 | if test -z "$defaultval"; then |
6e198e97 VZ |
9960 | if test x"$enablestring" = xdisable; then |
9961 | defaultval=yes | |
9962 | else | |
9963 | defaultval=no | |
9964 | fi | |
9965 | fi | |
9966 | ||
d589327a VZ |
9967 | { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5 |
9968 | echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6; } | |
e6d984e2 VZ |
9969 | # Check whether --enable-button was given. |
9970 | if test "${enable_button+set}" = set; then | |
9971 | enableval=$enable_button; | |
95a46303 | 9972 | if test "$enableval" = yes; then |
e6d984e2 | 9973 | wx_cv_use_button='wxUSE_BUTTON=yes' |
95a46303 | 9974 | else |
e6d984e2 | 9975 | wx_cv_use_button='wxUSE_BUTTON=no' |
95a46303 RR |
9976 | fi |
9977 | ||
9978 | else | |
9979 | ||
e6d984e2 | 9980 | wx_cv_use_button='wxUSE_BUTTON=${'DEFAULT_wxUSE_BUTTON":-$defaultval}" |
95a46303 | 9981 | |
47964710 VS |
9982 | fi |
9983 | ||
95a46303 | 9984 | |
e6d984e2 | 9985 | eval "$wx_cv_use_button" |
95a46303 | 9986 | |
6e198e97 | 9987 | if test x"$enablestring" = xdisable; then |
7ac0e38e | 9988 | if test $wxUSE_BUTTON = no; then |
6e198e97 | 9989 | result=yes |
7ac0e38e VZ |
9990 | else |
9991 | result=no | |
6e198e97 | 9992 | fi |
95a46303 | 9993 | else |
e6d984e2 | 9994 | result=$wxUSE_BUTTON |
95a46303 RR |
9995 | fi |
9996 | ||
d589327a VZ |
9997 | { echo "$as_me:$LINENO: result: $result" >&5 |
9998 | echo "${ECHO_T}$result" >&6; } | |
6e198e97 | 9999 | |
95a46303 | 10000 | |
077c7880 | 10001 | enablestring= |
6e198e97 | 10002 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 10003 | if test -z "$defaultval"; then |
6e198e97 VZ |
10004 | if test x"$enablestring" = xdisable; then |
10005 | defaultval=yes | |
10006 | else | |
10007 | defaultval=no | |
10008 | fi | |
10009 | fi | |
10010 | ||
d589327a VZ |
10011 | { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5 |
10012 | echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6; } | |
47964710 | 10013 | # Check whether --enable-calendar was given. |
a848cd7e | 10014 | if test "${enable_calendar+set}" = set; then |
47964710 | 10015 | enableval=$enable_calendar; |
a848cd7e | 10016 | if test "$enableval" = yes; then |
d970f7d5 | 10017 | wx_cv_use_calendar='wxUSE_CALCTRL=yes' |
a848cd7e | 10018 | else |
d970f7d5 | 10019 | wx_cv_use_calendar='wxUSE_CALCTRL=no' |
a848cd7e SC |
10020 | fi |
10021 | ||
10022 | else | |
10023 | ||
d970f7d5 | 10024 | wx_cv_use_calendar='wxUSE_CALCTRL=${'DEFAULT_wxUSE_CALCTRL":-$defaultval}" |
a848cd7e | 10025 | |
47964710 VS |
10026 | fi |
10027 | ||
a848cd7e | 10028 | |
d970f7d5 | 10029 | eval "$wx_cv_use_calendar" |
a848cd7e | 10030 | |
6e198e97 | 10031 | if test x"$enablestring" = xdisable; then |
7ac0e38e | 10032 | if test $wxUSE_CALCTRL = no; then |
6e198e97 | 10033 | result=yes |
7ac0e38e VZ |
10034 | else |
10035 | result=no | |
6e198e97 | 10036 | fi |
a848cd7e | 10037 | else |
6e198e97 | 10038 | result=$wxUSE_CALCTRL |
a848cd7e SC |
10039 | fi |
10040 | ||
d589327a VZ |
10041 | { echo "$as_me:$LINENO: result: $result" >&5 |
10042 | echo "${ECHO_T}$result" >&6; } | |
6e198e97 | 10043 | |
a848cd7e | 10044 | |
077c7880 | 10045 | enablestring= |
6e198e97 | 10046 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 10047 | if test -z "$defaultval"; then |
6e198e97 VZ |
10048 | if test x"$enablestring" = xdisable; then |
10049 | defaultval=yes | |
10050 | else | |
10051 | defaultval=no | |
10052 | fi | |
10053 | fi | |
10054 | ||
d589327a VZ |
10055 | { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5 |
10056 | echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6; } | |
47964710 | 10057 | # Check whether --enable-caret was given. |
a848cd7e | 10058 | if test "${enable_caret+set}" = set; then |
47964710 | 10059 | enableval=$enable_caret; |
a848cd7e | 10060 | if test "$enableval" = yes; then |
d970f7d5 | 10061 | wx_cv_use_caret='wxUSE_CARET=yes' |
a848cd7e | 10062 | else |
d970f7d5 | 10063 | wx_cv_use_caret='wxUSE_CARET=no' |
a848cd7e SC |
10064 | fi |
10065 | ||
10066 | else | |
10067 | ||
d970f7d5 | 10068 | wx_cv_use_caret='wxUSE_CARET=${'DEFAULT_wxUSE_CARET":-$defaultval}" |
a848cd7e | 10069 | |
47964710 VS |
10070 | fi |
10071 | ||
a848cd7e | 10072 | |
d970f7d5 | 10073 | eval "$wx_cv_use_caret" |
a848cd7e | 10074 | |
6e198e97 | 10075 | if test x"$enablestring" = xdisable; then |
7ac0e38e | 10076 | if test $wxUSE_CARET = no; then |
6e198e97 | 10077 | result=yes |
7ac0e38e VZ |
10078 | else |
10079 | result=no | |
6e198e97 | 10080 | fi |
a848cd7e | 10081 | else |
6e198e97 | 10082 | result=$wxUSE_CARET |
a848cd7e SC |
10083 | fi |
10084 | ||
d589327a VZ |
10085 | { echo "$as_me:$LINENO: result: $result" >&5 |
10086 | echo "${ECHO_T}$result" >&6; } | |
6e198e97 | 10087 | |
a848cd7e | 10088 | |
077c7880 | 10089 | enablestring= |
6e198e97 | 10090 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 10091 | if test -z "$defaultval"; then |
6e198e97 VZ |
10092 | if test x"$enablestring" = xdisable; then |
10093 | defaultval=yes | |
10094 | else | |
10095 | defaultval=no | |
10096 | fi | |
10097 | fi | |
10098 | ||
d589327a VZ |
10099 | { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5 |
10100 | echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6; } | |
47964710 | 10101 | # Check whether --enable-checkbox was given. |
a848cd7e | 10102 | if test "${enable_checkbox+set}" = set; then |
47964710 | 10103 | enableval=$enable_checkbox; |
a848cd7e | 10104 | if test "$enableval" = yes; then |
d970f7d5 | 10105 | wx_cv_use_checkbox='wxUSE_CHECKBOX=yes' |
a848cd7e | 10106 | else |
d970f7d5 | 10107 | wx_cv_use_checkbox='wxUSE_CHECKBOX=no' |
a848cd7e SC |
10108 | fi |
10109 | ||
10110 | else | |
10111 | ||
d970f7d5 | 10112 | wx_cv_use_checkbox='wxUSE_CHECKBOX=${'DEFAULT_wxUSE_CHECKBOX":-$defaultval}" |
a848cd7e | 10113 | |
47964710 VS |
10114 | fi |
10115 | ||
a848cd7e | 10116 | |
d970f7d5 | 10117 | eval "$wx_cv_use_checkbox" |
a848cd7e | 10118 | |
6e198e97 | 10119 | if test x"$enablestring" = xdisable; then |
7ac0e38e | 10120 | if test $wxUSE_CHECKBOX = no; then |
6e198e97 | 10121 | result=yes |
7ac0e38e VZ |
10122 | else |
10123 | result=no | |
6e198e97 | 10124 | fi |
a848cd7e | 10125 | else |
6e198e97 | 10126 | result=$wxUSE_CHECKBOX |
a848cd7e SC |
10127 | fi |
10128 | ||
d589327a VZ |
10129 | { echo "$as_me:$LINENO: result: $result" >&5 |
10130 | echo "${ECHO_T}$result" >&6; } | |
6e198e97 | 10131 | |
a848cd7e | 10132 | |
077c7880 | 10133 | enablestring= |
6e198e97 | 10134 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 10135 | if test -z "$defaultval"; then |
6e198e97 VZ |
10136 | if test x"$enablestring" = xdisable; then |
10137 | defaultval=yes | |
10138 | else | |
10139 | defaultval=no | |
10140 | fi | |
10141 | fi | |
10142 | ||
d589327a VZ |
10143 | { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5 |
10144 | echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6; } | |
47964710 | 10145 | # Check whether --enable-checklst was given. |
a848cd7e | 10146 | if test "${enable_checklst+set}" = set; then |
47964710 | 10147 | enableval=$enable_checklst; |
a848cd7e | 10148 | if test "$enableval" = yes; then |
d970f7d5 | 10149 | wx_cv_use_checklst='wxUSE_CHECKLST=yes' |
a848cd7e | 10150 | else |
d970f7d5 | 10151 | wx_cv_use_checklst='wxUSE_CHECKLST=no' |
a848cd7e SC |
10152 | fi |
10153 | ||
10154 | else | |
10155 | ||
d970f7d5 | 10156 | wx_cv_use_checklst='wxUSE_CHECKLST=${'DEFAULT_wxUSE_CHECKLST":-$defaultval}" |
a848cd7e | 10157 | |
47964710 VS |
10158 | fi |
10159 | ||
a848cd7e | 10160 | |
d970f7d5 | 10161 | eval "$wx_cv_use_checklst" |
a848cd7e | 10162 | |
6e198e97 | 10163 | if test x"$enablestring" = xdisable; then |
7ac0e38e | 10164 | if test $wxUSE_CHECKLST = no; then |
6e198e97 | 10165 | result=yes |
7ac0e38e VZ |
10166 | else |
10167 | result=no | |
6e198e97 | 10168 | fi |
a848cd7e | 10169 | else |
6e198e97 | 10170 | result=$wxUSE_CHECKLST |
a848cd7e SC |
10171 | fi |
10172 | ||
d589327a VZ |
10173 | { echo "$as_me:$LINENO: result: $result" >&5 |
10174 | echo "${ECHO_T}$result" >&6; } | |
6e198e97 | 10175 | |
a848cd7e | 10176 | |
077c7880 | 10177 | enablestring= |
6e198e97 | 10178 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 10179 | if test -z "$defaultval"; then |
6e198e97 VZ |
10180 | if test x"$enablestring" = xdisable; then |
10181 | defaultval=yes | |
10182 | else | |
10183 | defaultval=no | |
10184 | fi | |
10185 | fi | |
10186 | ||
d589327a VZ |
10187 | { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5 |
10188 | echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6; } | |
47964710 | 10189 | # Check whether --enable-choice was given. |
a848cd7e | 10190 | if test "${enable_choice+set}" = set; then |
47964710 | 10191 | enableval=$enable_choice; |
a848cd7e | 10192 | if test "$enableval" = yes; then |
d970f7d5 | 10193 | wx_cv_use_choice='wxUSE_CHOICE=yes' |
a848cd7e | 10194 | else |
d970f7d5 | 10195 | wx_cv_use_choice='wxUSE_CHOICE=no' |
a848cd7e SC |
10196 | fi |
10197 | ||
10198 | else | |
10199 | ||
d970f7d5 | 10200 | wx_cv_use_choice='wxUSE_CHOICE=${'DEFAULT_wxUSE_CHOICE":-$defaultval}" |
a848cd7e | 10201 | |
47964710 VS |
10202 | fi |
10203 | ||
a848cd7e | 10204 | |
d970f7d5 | 10205 | eval "$wx_cv_use_choice" |
a848cd7e | 10206 | |
6e198e97 | 10207 | if test x"$enablestring" = xdisable; then |
7ac0e38e | 10208 | if test $wxUSE_CHOICE = no; then |
6e198e97 | 10209 | result=yes |
7ac0e38e VZ |
10210 | else |
10211 | result=no | |
6e198e97 | 10212 | fi |
a848cd7e | 10213 | else |
6e198e97 | 10214 | result=$wxUSE_CHOICE |
a848cd7e SC |
10215 | fi |
10216 | ||
d589327a VZ |
10217 | { echo "$as_me:$LINENO: result: $result" >&5 |
10218 | echo "${ECHO_T}$result" >&6; } | |
6e198e97 | 10219 | |
a848cd7e | 10220 | |
077c7880 | 10221 | enablestring= |
6e198e97 | 10222 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 10223 | if test -z "$defaultval"; then |
6e198e97 VZ |
10224 | if test x"$enablestring" = xdisable; then |
10225 | defaultval=yes | |
10226 | else | |
10227 | defaultval=no | |
10228 | fi | |
10229 | fi | |
10230 | ||
d589327a VZ |
10231 | { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicebook" >&5 |
10232 | echo $ECHO_N "checking for --${enablestring:-enable}-choicebook... $ECHO_C" >&6; } | |
47964710 | 10233 | # Check whether --enable-choicebook was given. |
92bbdbcd | 10234 | if test "${enable_choicebook+set}" = set; then |
47964710 | 10235 | enableval=$enable_choicebook; |
92bbdbcd | 10236 | if test "$enableval" = yes; then |
d970f7d5 | 10237 | wx_cv_use_choicebook='wxUSE_CHOICEBOOK=yes' |
92bbdbcd | 10238 | else |
d970f7d5 | 10239 | wx_cv_use_choicebook='wxUSE_CHOICEBOOK=no' |
92bbdbcd WS |
10240 | fi |
10241 | ||
10242 | else | |
10243 | ||
d970f7d5 | 10244 | wx_cv_use_choicebook='wxUSE_CHOICEBOOK=${'DEFAULT_wxUSE_CHOICEBOOK":-$defaultval}" |
92bbdbcd | 10245 | |
47964710 VS |
10246 | fi |
10247 | ||
92bbdbcd | 10248 | |
d970f7d5 | 10249 | eval "$wx_cv_use_choicebook" |
92bbdbcd | 10250 | |
6e198e97 | 10251 | if test x"$enablestring" = xdisable; then |
7ac0e38e | 10252 | if test $wxUSE_CHOICEBOOK = no; then |
6e198e97 | 10253 | result=yes |
7ac0e38e VZ |
10254 | else |
10255 | result=no | |
6e198e97 | 10256 | fi |
92bbdbcd | 10257 | else |
6e198e97 | 10258 | result=$wxUSE_CHOICEBOOK |
92bbdbcd WS |
10259 | fi |
10260 | ||
d589327a VZ |
10261 | { echo "$as_me:$LINENO: result: $result" >&5 |
10262 | echo "${ECHO_T}$result" >&6; } | |
6e198e97 | 10263 | |
92bbdbcd | 10264 | |
077c7880 | 10265 | enablestring= |
6e198e97 | 10266 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 10267 | if test -z "$defaultval"; then |
6e198e97 VZ |
10268 | if test x"$enablestring" = xdisable; then |
10269 | defaultval=yes | |
10270 | else | |
10271 | defaultval=no | |
10272 | fi | |
10273 | fi | |
10274 | ||
d589327a VZ |
10275 | { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-collpane" >&5 |
10276 | echo $ECHO_N "checking for --${enablestring:-enable}-collpane... $ECHO_C" >&6; } | |
47964710 | 10277 | # Check whether --enable-collpane was given. |
bd915ace | 10278 | if test "${enable_collpane+set}" = set; then |
47964710 | 10279 | enableval=$enable_collpane; |
bd915ace | 10280 | if test "$enableval" = yes; then |
d970f7d5 | 10281 | wx_cv_use_collpane='wxUSE_COLLPANE=yes' |
bd915ace | 10282 | else |
d970f7d5 | 10283 | wx_cv_use_collpane='wxUSE_COLLPANE=no' |
bd915ace RR |
10284 | fi |
10285 | ||
10286 | else | |
10287 | ||
d970f7d5 | 10288 | wx_cv_use_collpane='wxUSE_COLLPANE=${'DEFAULT_wxUSE_COLLPANE":-$defaultval}" |
bd915ace | 10289 | |
47964710 VS |
10290 | fi |
10291 | ||
bd915ace | 10292 | |
d970f7d5 | 10293 | eval "$wx_cv_use_collpane" |
bd915ace | 10294 | |
6e198e97 | 10295 | if test x"$enablestring" = xdisable; then |
7ac0e38e | 10296 | if test $wxUSE_COLLPANE = no; then |
6e198e97 | 10297 | result=yes |
7ac0e38e VZ |
10298 | else |
10299 | result=no | |
6e198e97 | 10300 | fi |
bd915ace | 10301 | else |
6e198e97 | 10302 | result=$wxUSE_COLLPANE |
bd915ace RR |
10303 | fi |
10304 | ||
d589327a VZ |
10305 | { echo "$as_me:$LINENO: result: $result" >&5 |
10306 | echo "${ECHO_T}$result" >&6; } | |
6e198e97 | 10307 | |
bd915ace | 10308 | |
077c7880 | 10309 | enablestring= |
6e198e97 | 10310 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 10311 | if test -z "$defaultval"; then |
6e198e97 VZ |
10312 | if test x"$enablestring" = xdisable; then |
10313 | defaultval=yes | |
10314 | else | |
10315 | defaultval=no | |
10316 | fi | |
10317 | fi | |
10318 | ||
d589327a VZ |
10319 | { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-colourpicker" >&5 |
10320 | echo $ECHO_N "checking for --${enablestring:-enable}-colourpicker... $ECHO_C" >&6; } | |
47964710 | 10321 | # Check whether --enable-colourpicker was given. |
e9263684 | 10322 | if test "${enable_colourpicker+set}" = set; then |
47964710 | 10323 | enableval=$enable_colourpicker; |
e9263684 | 10324 | if test "$enableval" = yes; then |
d970f7d5 | 10325 | wx_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL=yes' |
e9263684 | 10326 | else |
d970f7d5 | 10327 | wx_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL=no' |
e9263684 VZ |
10328 | fi |
10329 | ||
10330 | else | |
10331 | ||
d970f7d5 | 10332 | wx_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL=${'DEFAULT_wxUSE_COLOURPICKERCTRL":-$defaultval}" |
e9263684 | 10333 | |
47964710 VS |
10334 | fi |
10335 | ||
e9263684 | 10336 | |
d970f7d5 | 10337 | eval "$wx_cv_use_colourpicker" |
e9263684 | 10338 | |
6e198e97 | 10339 | if test x"$enablestring" = xdisable; then |
7ac0e38e | 10340 | if test $wxUSE_COLOURPICKERCTRL = no; then |
6e198e97 | 10341 | result=yes |
7ac0e38e VZ |
10342 | else |
10343 | result=no | |
6e198e97 | 10344 | fi |
e9263684 | 10345 | else |
6e198e97 | 10346 | result=$wxUSE_COLOURPICKERCTRL |
e9263684 VZ |
10347 | fi |
10348 | ||
d589327a VZ |
10349 | { echo "$as_me:$LINENO: result: $result" >&5 |
10350 | echo "${ECHO_T}$result" >&6; } | |
6e198e97 | 10351 | |
e9263684 | 10352 | |
077c7880 | 10353 | enablestring= |
6e198e97 | 10354 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 10355 | if test -z "$defaultval"; then |
6e198e97 VZ |
10356 | if test x"$enablestring" = xdisable; then |
10357 | defaultval=yes | |
10358 | else | |
10359 | defaultval=no | |
10360 | fi | |
10361 | fi | |
10362 | ||
d589327a VZ |
10363 | { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5 |
10364 | echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6; } | |
47964710 | 10365 | # Check whether --enable-combobox was given. |
a848cd7e | 10366 | if test "${enable_combobox+set}" = set; then |
47964710 | 10367 | enableval=$enable_combobox; |
a848cd7e | 10368 | if test "$enableval" = yes; then |
d970f7d5 | 10369 | wx_cv_use_combobox='wxUSE_COMBOBOX=yes' |
a848cd7e | 10370 | else |
d970f7d5 | 10371 | wx_cv_use_combobox='wxUSE_COMBOBOX=no' |
a848cd7e SC |
10372 | fi |
10373 | ||
10374 | else | |
10375 | ||
d970f7d5 | 10376 | wx_cv_use_combobox='wxUSE_COMBOBOX=${'DEFAULT_wxUSE_COMBOBOX":-$defaultval}" |
a848cd7e | 10377 | |
47964710 VS |
10378 | fi |
10379 | ||
a848cd7e | 10380 | |
d970f7d5 | 10381 | eval "$wx_cv_use_combobox" |
a848cd7e | 10382 | |
6e198e97 | 10383 | if test x"$enablestring" = xdisable; then |
7ac0e38e | 10384 | if test $wxUSE_COMBOBOX = no; then |
6e198e97 | 10385 | result=yes |
7ac0e38e VZ |
10386 | else |
10387 | result=no | |
6e198e97 | 10388 | fi |
a848cd7e | 10389 | else |
6e198e97 | 10390 | result=$wxUSE_COMBOBOX |
a848cd7e SC |
10391 | fi |
10392 | ||
d589327a VZ |
10393 | { echo "$as_me:$LINENO: result: $result" >&5 |
10394 | echo "${ECHO_T}$result" >&6; } | |
6e198e97 | 10395 | |
a848cd7e | 10396 | |
077c7880 | 10397 | enablestring= |
6e198e97 | 10398 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 10399 | if test -z "$defaultval"; then |
6e198e97 VZ |
10400 | if test x"$enablestring" = xdisable; then |
10401 | defaultval=yes | |
10402 | else | |
10403 | defaultval=no | |
10404 | fi | |
10405 | fi | |
10406 | ||
d589327a VZ |
10407 | { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-comboctrl" >&5 |
10408 | echo $ECHO_N "checking for --${enablestring:-enable}-comboctrl... $ECHO_C" >&6; } | |
47964710 | 10409 | # Check whether --enable-comboctrl was given. |
a57d600f | 10410 | if test "${enable_comboctrl+set}" = set; then |
47964710 | 10411 | enableval=$enable_comboctrl; |
642bcba9 | 10412 | if test "$enableval" = yes; then |
d970f7d5 | 10413 | wx_cv_use_comboctrl='wxUSE_COMBOCTRL=yes' |
642bcba9 | 10414 | else |
d970f7d5 | 10415 | wx_cv_use_comboctrl='wxUSE_COMBOCTRL=no' |
642bcba9 VZ |
10416 | fi |
10417 | ||
10418 | else | |
10419 | ||
d970f7d5 | 10420 | wx_cv_use_comboctrl='wxUSE_COMBOCTRL=${'DEFAULT_wxUSE_COMBOCTRL":-$defaultval}" |
642bcba9 | 10421 | |
47964710 VS |
10422 | fi |
10423 | ||
642bcba9 | 10424 | |
d970f7d5 | 10425 | eval "$wx_cv_use_comboctrl" |
642bcba9 | 10426 | |
6e198e97 | 10427 | if test x"$enablestring" = xdisable; then |
7ac0e38e | 10428 | if test $wxUSE_COMBOCTRL = no; then |
6e198e97 | 10429 | result=yes |
7ac0e38e VZ |
10430 | else |
10431 | result=no | |
6e198e97 | 10432 | fi |
642bcba9 | 10433 | else |
6e198e97 | 10434 | result=$wxUSE_COMBOCTRL |
642bcba9 VZ |
10435 | fi |
10436 | ||
d589327a VZ |
10437 | { echo "$as_me:$LINENO: result: $result" >&5 |
10438 | echo "${ECHO_T}$result" >&6; } | |
6e198e97 | 10439 | |
642bcba9 | 10440 | |
e6d984e2 VZ |
10441 | enablestring= |
10442 | defaultval=$wxUSE_ALL_FEATURES | |
10443 | if test -z "$defaultval"; then | |
10444 | if test x"$enablestring" = xdisable; then | |
10445 | defaultval=yes | |
10446 | else | |
10447 | defaultval=no | |
10448 | fi | |
10449 | fi | |
10450 | ||
d589327a VZ |
10451 | { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataviewctrl" >&5 |
10452 | echo $ECHO_N "checking for --${enablestring:-enable}-dataviewctrl... $ECHO_C" >&6; } | |
e6d984e2 VZ |
10453 | # Check whether --enable-dataviewctrl was given. |
10454 | if test "${enable_dataviewctrl+set}" = set; then | |
10455 | enableval=$enable_dataviewctrl; | |
10456 | if test "$enableval" = yes; then | |
10457 | wx_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=yes' | |
10458 | else | |
10459 | wx_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=no' | |
10460 | fi | |
10461 | ||
10462 | else | |
10463 | ||
10464 | wx_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=${'DEFAULT_wxUSE_DATAVIEWCTRL":-$defaultval}" | |
10465 | ||
10466 | fi | |
10467 | ||
10468 | ||
10469 | eval "$wx_cv_use_dataviewctrl" | |
10470 | ||
10471 | if test x"$enablestring" = xdisable; then | |
7ac0e38e | 10472 | if test $wxUSE_DATAVIEWCTRL = no; then |
e6d984e2 | 10473 | result=yes |
7ac0e38e VZ |
10474 | else |
10475 | result=no | |
e6d984e2 VZ |
10476 | fi |
10477 | else | |
10478 | result=$wxUSE_DATAVIEWCTRL | |
10479 | fi | |
10480 | ||
d589327a VZ |
10481 | { echo "$as_me:$LINENO: result: $result" >&5 |
10482 | echo "${ECHO_T}$result" >&6; } | |
e6d984e2 VZ |
10483 | |
10484 | ||
077c7880 | 10485 | enablestring= |
6e198e97 | 10486 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 10487 | if test -z "$defaultval"; then |
6e198e97 VZ |
10488 | if test x"$enablestring" = xdisable; then |
10489 | defaultval=yes | |
10490 | else | |
10491 | defaultval=no | |
10492 | fi | |
10493 | fi | |
10494 | ||
d589327a VZ |
10495 | { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datepick" >&5 |
10496 | echo $ECHO_N "checking for --${enablestring:-enable}-datepick... $ECHO_C" >&6; } | |
47964710 | 10497 | # Check whether --enable-datepick was given. |
da98e9be | 10498 | if test "${enable_datepick+set}" = set; then |
47964710 | 10499 | enableval=$enable_datepick; |
da98e9be | 10500 | if test "$enableval" = yes; then |
d970f7d5 | 10501 | wx_cv_use_datepick='wxUSE_DATEPICKCTRL=yes' |
da98e9be | 10502 | else |
d970f7d5 | 10503 | wx_cv_use_datepick='wxUSE_DATEPICKCTRL=no' |
da98e9be VZ |
10504 | fi |
10505 | ||
10506 | else | |
10507 | ||
d970f7d5 | 10508 | wx_cv_use_datepick='wxUSE_DATEPICKCTRL=${'DEFAULT_wxUSE_DATEPICKCTRL":-$defaultval}" |
da98e9be | 10509 | |
47964710 VS |
10510 | fi |
10511 | ||
da98e9be | 10512 | |
d970f7d5 | 10513 | eval "$wx_cv_use_datepick" |
da98e9be | 10514 | |
6e198e97 | 10515 | if test x"$enablestring" = xdisable; then |
7ac0e38e | 10516 | if test $wxUSE_DATEPICKCTRL = no; then |
6e198e97 | 10517 | result=yes |
7ac0e38e VZ |
10518 | else |
10519 | result=no | |
6e198e97 | 10520 | fi |
da98e9be | 10521 | else |
6e198e97 | 10522 | result=$wxUSE_DATEPICKCTRL |
da98e9be VZ |
10523 | fi |
10524 | ||
d589327a VZ |
10525 | { echo "$as_me:$LINENO: result: $result" >&5 |
10526 | echo "${ECHO_T}$result" >&6; } | |
6e198e97 | 10527 | |
da98e9be | 10528 | |
077c7880 | 10529 | enablestring= |
6e198e97 | 10530 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 10531 | if test -z "$defaultval"; then |
6e198e97 VZ |
10532 | if test x"$enablestring" = xdisable; then |
10533 | defaultval=yes | |
10534 | else | |
10535 | defaultval=no | |
10536 | fi | |
10537 | fi | |
10538 | ||
d589327a VZ |
10539 | { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-detect_sm" >&5 |
10540 | echo $ECHO_N "checking for --${enablestring:-enable}-detect_sm... $ECHO_C" >&6; } | |
e6d984e2 VZ |
10541 | # Check whether --enable-detect_sm was given. |
10542 | if test "${enable_detect_sm+set}" = set; then | |
10543 | enableval=$enable_detect_sm; | |
e9263684 | 10544 | if test "$enableval" = yes; then |
e6d984e2 | 10545 | wx_cv_use_detect_sm='wxUSE_DETECT_SM=yes' |
e9263684 | 10546 | else |
e6d984e2 | 10547 | wx_cv_use_detect_sm='wxUSE_DETECT_SM=no' |
e9263684 VZ |
10548 | fi |
10549 | ||
10550 | else | |
10551 | ||
e6d984e2 | 10552 | wx_cv_use_detect_sm='wxUSE_DETECT_SM=${'DEFAULT_wxUSE_DETECT_SM":-$defaultval}" |
e9263684 | 10553 | |
47964710 VS |
10554 | fi |
10555 | ||
e9263684 | 10556 | |
e6d984e2 | 10557 | eval "$wx_cv_use_detect_sm" |
e9263684 | 10558 | |
6e198e97 | 10559 | if test x"$enablestring" = xdisable; then |
7ac0e38e | 10560 | if test $wxUSE_DETECT_SM = no; then |
6e198e97 | 10561 | result=yes |
7ac0e38e VZ |
10562 | else |
10563 | result=no | |
6e198e97 | 10564 | fi |
e9263684 | 10565 | else |
e6d984e2 | 10566 | result=$wxUSE_DETECT_SM |
e9263684 VZ |
10567 | fi |
10568 | ||
d589327a VZ |
10569 | { echo "$as_me:$LINENO: result: $result" >&5 |
10570 | echo "${ECHO_T}$result" >&6; } | |
6e198e97 | 10571 | |
e9263684 | 10572 | |
077c7880 | 10573 | enablestring= |
6e198e97 | 10574 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 10575 | if test -z "$defaultval"; then |
6e198e97 VZ |
10576 | if test x"$enablestring" = xdisable; then |
10577 | defaultval=yes | |
10578 | else | |
10579 | defaultval=no | |
10580 | fi | |
10581 | fi | |
10582 | ||
d589327a VZ |
10583 | { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirpicker" >&5 |
10584 | echo $ECHO_N "checking for --${enablestring:-enable}-dirpicker... $ECHO_C" >&6; } | |
e6d984e2 VZ |
10585 | # Check whether --enable-dirpicker was given. |
10586 | if test "${enable_dirpicker+set}" = set; then | |
10587 | enableval=$enable_dirpicker; | |
a848cd7e | 10588 | if test "$enableval" = yes; then |
e6d984e2 | 10589 | wx_cv_use_dirpicker='wxUSE_DIRPICKERCTRL=yes' |
a848cd7e | 10590 | else |
e6d984e2 | 10591 | wx_cv_use_dirpicker='wxUSE_DIRPICKERCTRL=no' |
a848cd7e SC |
10592 | fi |
10593 | ||
10594 | else | |
10595 | ||
e6d984e2 | 10596 | wx_cv_use_dirpicker='wxUSE_DIRPICKERCTRL=${'DEFAULT_wxUSE_DIRPICKERCTRL":-$defaultval}" |
a848cd7e | 10597 | |
47964710 VS |
10598 | fi |
10599 | ||
a848cd7e | 10600 | |
e6d984e2 | 10601 | eval "$wx_cv_use_dirpicker" |
a848cd7e | 10602 | |
6e198e97 | 10603 | if test x"$enablestring" = xdisable; then |
7ac0e38e | 10604 | if test $wxUSE_DIRPICKERCTRL = no; then |
6e198e97 | 10605 | result=yes |
7ac0e38e VZ |
10606 | else |
10607 | result=no | |
6e198e97 | 10608 | fi |
a848cd7e | 10609 | else |
e6d984e2 | 10610 | result=$wxUSE_DIRPICKERCTRL |
a848cd7e SC |
10611 | fi |
10612 | ||
d589327a VZ |
10613 | { echo "$as_me:$LINENO: result: $result" >&5 |
10614 | echo "${ECHO_T}$result" >&6; } | |
6e198e97 | 10615 | |
a848cd7e | 10616 | |
077c7880 | 10617 | enablestring= |
6e198e97 | 10618 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 10619 | if test -z "$defaultval"; then |
6e198e97 VZ |
10620 | if test x"$enablestring" = xdisable; then |
10621 | defaultval=yes | |
10622 | else | |
10623 | defaultval=no | |
10624 | fi | |
10625 | fi | |
10626 | ||
d589327a VZ |
10627 | { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5 |
10628 | echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6; } | |
e6d984e2 VZ |
10629 | # Check whether --enable-display was given. |
10630 | if test "${enable_display+set}" = set; then | |
10631 | enableval=$enable_display; | |
88bbc332 | 10632 | if test "$enableval" = yes; then |
e6d984e2 | 10633 | wx_cv_use_display='wxUSE_DISPLAY=yes' |
88bbc332 | 10634 | else |
e6d984e2 | 10635 | wx_cv_use_display='wxUSE_DISPLAY=no' |
88bbc332 RR |
10636 | fi |
10637 | ||
10638 | else | |
10639 | ||
e6d984e2 | 10640 | wx_cv_use_display='wxUSE_DISPLAY=${'DEFAULT_wxUSE_DISPLAY":-$defaultval}" |
88bbc332 | 10641 | |
47964710 VS |
10642 | fi |
10643 | ||
88bbc332 | 10644 | |
e6d984e2 | 10645 | eval "$wx_cv_use_display" |
88bbc332 | 10646 | |
6e198e97 | 10647 | if test x"$enablestring" = xdisable; then |
7ac0e38e | 10648 | if test $wxUSE_DISPLAY = no; then |
6e198e97 | 10649 | result=yes |
7ac0e38e VZ |
10650 | else |
10651 | result=no | |
6e198e97 | 10652 | fi |
23575150 | 10653 | else |
e6d984e2 | 10654 | result=$wxUSE_DISPLAY |
23575150 RR |
10655 | fi |
10656 | ||
d589327a VZ |
10657 | { echo "$as_me:$LINENO: result: $result" >&5 |
10658 | echo "${ECHO_T}$result" >&6; } | |
6e198e97 | 10659 | |
23575150 RR |
10660 | |
10661 | enablestring= | |
6e198e97 | 10662 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 10663 | if test -z "$defaultval"; then |
6e198e97 VZ |
10664 | if test x"$enablestring" = xdisable; then |
10665 | defaultval=yes | |
10666 | else | |
10667 | defaultval=no | |
10668 | fi | |
10669 | fi | |
10670 | ||
d589327a VZ |
10671 | { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-editablebox" >&5 |
10672 | echo $ECHO_N "checking for --${enablestring:-enable}-editablebox... $ECHO_C" >&6; } | |
47964710 | 10673 | # Check whether --enable-editablebox was given. |
23575150 | 10674 | if test "${enable_editablebox+set}" = set; then |
47964710 | 10675 | enableval=$enable_editablebox; |
23575150 | 10676 | if test "$enableval" = yes; then |
d970f7d5 | 10677 | wx_cv_use_editablebox='wxUSE_EDITABLELISTBOX=yes' |
23575150 | 10678 | else |
d970f7d5 | 10679 | wx_cv_use_editablebox='wxUSE_EDITABLELISTBOX=no' |
23575150 RR |
10680 | fi |
10681 | ||
10682 | else | |
10683 | ||
d970f7d5 | 10684 | wx_cv_use_editablebox='wxUSE_EDITABLELISTBOX=${'DEFAULT_wxUSE_EDITABLELISTBOX":-$defaultval}" |
23575150 | 10685 | |
47964710 VS |
10686 | fi |
10687 | ||
23575150 | 10688 | |
d970f7d5 | 10689 | eval "$wx_cv_use_editablebox" |
23575150 | 10690 | |
6e198e97 | 10691 | if test x"$enablestring" = xdisable; then |
7ac0e38e | 10692 | if test $wxUSE_EDITABLELISTBOX = no; then |
6e198e97 | 10693 | result=yes |
7ac0e38e VZ |
10694 | else |
10695 | result=no | |
6e198e97 | 10696 | fi |
88bbc332 | 10697 | else |
6e198e97 | 10698 | result=$wxUSE_EDITABLELISTBOX |
88bbc332 RR |
10699 | fi |
10700 | ||
d589327a VZ |
10701 | { echo "$as_me:$LINENO: result: $result" >&5 |
10702 | echo "${ECHO_T}$result" >&6; } | |
6e198e97 | 10703 | |
88bbc332 | 10704 | |
077c7880 | 10705 | enablestring= |
6e198e97 | 10706 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 10707 | if test -z "$defaultval"; then |
6e198e97 VZ |
10708 | if test x"$enablestring" = xdisable; then |
10709 | defaultval=yes | |
10710 | else | |
10711 | defaultval=no | |
10712 | fi | |
10713 | fi | |
10714 | ||
d589327a VZ |
10715 | { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filectrl" >&5 |
10716 | echo $ECHO_N "checking for --${enablestring:-enable}-filectrl... $ECHO_C" >&6; } | |
e6d984e2 VZ |
10717 | # Check whether --enable-filectrl was given. |
10718 | if test "${enable_filectrl+set}" = set; then | |
10719 | enableval=$enable_filectrl; | |
e9263684 | 10720 | if test "$enableval" = yes; then |
e6d984e2 | 10721 | wx_cv_use_filectrl='wxUSE_FILECTRL=yes' |
e9263684 | 10722 | else |
e6d984e2 | 10723 | wx_cv_use_filectrl='wxUSE_FILECTRL=no' |
e9263684 VZ |
10724 | fi |
10725 | ||
10726 | else | |
10727 | ||
e6d984e2 | 10728 | wx_cv_use_filectrl='wxUSE_FILECTRL=${'DEFAULT_wxUSE_FILECTRL":-$defaultval}" |
e9263684 | 10729 | |
47964710 VS |
10730 | fi |
10731 | ||
e9263684 | 10732 | |
e6d984e2 | 10733 | eval "$wx_cv_use_filectrl" |
e9263684 | 10734 | |
6e198e97 | 10735 | if test x"$enablestring" = xdisable; then |
7ac0e38e | 10736 | if test $wxUSE_FILECTRL = no; then |
6e198e97 | 10737 | result=yes |
7ac0e38e VZ |
10738 | else |
10739 | result=no | |
6e198e97 | 10740 | fi |
e9263684 | 10741 | else |
e6d984e2 | 10742 | result=$wxUSE_FILECTRL |
e9263684 VZ |
10743 | fi |
10744 | ||
d589327a VZ |
10745 | { echo "$as_me:$LINENO: result: $result" >&5 |
10746 | echo "${ECHO_T}$result" >&6; } | |
6e198e97 | 10747 | |
e9263684 | 10748 | |
0cf3e587 VZ |
10749 | enablestring= |
10750 | defaultval=$wxUSE_ALL_FEATURES | |
10751 | if test -z "$defaultval"; then | |
10752 | if test x"$enablestring" = xdisable; then | |
10753 | defaultval=yes | |
10754 | else | |
10755 | defaultval=no | |
10756 | fi | |
10757 | fi | |
10758 | ||
d589327a VZ |
10759 | { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filepicker" >&5 |
10760 | echo $ECHO_N "checking for --${enablestring:-enable}-filepicker... $ECHO_C" >&6; } | |
e6d984e2 VZ |
10761 | # Check whether --enable-filepicker was given. |
10762 | if test "${enable_filepicker+set}" = set; then | |
10763 | enableval=$enable_filepicker; | |
0cf3e587 | 10764 | if test "$enableval" = yes; then |
e6d984e2 | 10765 | wx_cv_use_filepicker='wxUSE_FILEPICKERCTRL=yes' |
0cf3e587 | 10766 | else |
e6d984e2 | 10767 | wx_cv_use_filepicker='wxUSE_FILEPICKERCTRL=no' |
0cf3e587 | 10768 | fi |
0cf3e587 VZ |
10769 | |
10770 | else | |
10771 | ||
e6d984e2 | 10772 | wx_cv_use_filepicker='wxUSE_FILEPICKERCTRL=${'DEFAULT_wxUSE_FILEPICKERCTRL":-$defaultval}" |
0cf3e587 VZ |
10773 | |
10774 | fi | |
10775 | ||
10776 | ||
e6d984e2 | 10777 | eval "$wx_cv_use_filepicker" |
0cf3e587 VZ |
10778 | |
10779 | if test x"$enablestring" = xdisable; then | |
7ac0e38e | 10780 | if test $wxUSE_FILEPICKERCTRL = no; then |
0cf3e587 | 10781 | result=yes |
7ac0e38e VZ |
10782 | else |
10783 | result=no | |
0cf3e587 VZ |
10784 | fi |
10785 | else | |
e6d984e2 | 10786 | result=$wxUSE_FILEPICKERCTRL |
0cf3e587 VZ |
10787 | fi |
10788 | ||
d589327a VZ |
10789 | { echo "$as_me:$LINENO: result: $result" >&5 |
10790 | echo "${ECHO_T}$result" >&6; } | |
0cf3e587 VZ |
10791 | |
10792 | ||
077c7880 | 10793 | enablestring= |
6e198e97 | 10794 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 10795 | if test -z "$defaultval"; then |
6e198e97 VZ |
10796 | if test x"$enablestring" = xdisable; then |
10797 | defaultval=yes | |
10798 | else | |
10799 | defaultval=no | |
10800 | fi | |
10801 | fi | |
10802 | ||
d589327a VZ |
10803 | { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontpicker" >&5 |
10804 | echo $ECHO_N "checking for --${enablestring:-enable}-fontpicker... $ECHO_C" >&6; } | |
47964710 | 10805 | # Check whether --enable-fontpicker was given. |
e9263684 | 10806 | if test "${enable_fontpicker+set}" = set; then |
47964710 | 10807 | enableval=$enable_fontpicker; |
e9263684 | 10808 | if test "$enableval" = yes; then |
d970f7d5 | 10809 | wx_cv_use_fontpicker='wxUSE_FONTPICKERCTRL=yes' |
e9263684 | 10810 | else |
d970f7d5 | 10811 | wx_cv_use_fontpicker='wxUSE_FONTPICKERCTRL=no' |
e9263684 VZ |
10812 | fi |
10813 | ||
10814 | else | |
10815 | ||
d970f7d5 | 10816 | wx_cv_use_fontpicker='wxUSE_FONTPICKERCTRL=${'DEFAULT_wxUSE_FONTPICKERCTRL":-$defaultval}" |
e9263684 | 10817 | |
47964710 VS |
10818 | fi |
10819 | ||
e9263684 | 10820 | |
d970f7d5 | 10821 | eval "$wx_cv_use_fontpicker" |
e9263684 | 10822 | |
6e198e97 | 10823 | if test x"$enablestring" = xdisable; then |
7ac0e38e | 10824 | if test $wxUSE_FONTPICKERCTRL = no; then |
6e198e97 | 10825 | result=yes |
7ac0e38e VZ |
10826 | else |
10827 | result=no | |
6e198e97 | 10828 | fi |
e9263684 | 10829 | else |
6e198e97 | 10830 | result=$wxUSE_FONTPICKERCTRL |
e9263684 VZ |
10831 | fi |
10832 | ||
d589327a VZ |
10833 | { echo "$as_me:$LINENO: result: $result" >&5 |
10834 | echo "${ECHO_T}$result" >&6; } | |
6e198e97 | 10835 | |
e9263684 | 10836 | |
077c7880 | 10837 | enablestring= |
6e198e97 | 10838 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 10839 | if test -z "$defaultval"; then |
6e198e97 VZ |
10840 | if test x"$enablestring" = xdisable; then |
10841 | defaultval=yes | |
10842 | else | |
10843 | defaultval=no | |
10844 | fi | |
10845 | fi | |
10846 | ||
d589327a VZ |
10847 | { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5 |
10848 | echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6; } | |
47964710 | 10849 | # Check whether --enable-gauge was given. |
a848cd7e | 10850 | if test "${enable_gauge+set}" = set; then |
47964710 | 10851 | enableval=$enable_gauge; |
a848cd7e | 10852 | if test "$enableval" = yes; then |
d970f7d5 | 10853 | wx_cv_use_gauge='wxUSE_GAUGE=yes' |
a848cd7e | 10854 | else |
d970f7d5 | 10855 | wx_cv_use_gauge='wxUSE_GAUGE=no' |
a848cd7e SC |
10856 | fi |
10857 | ||
10858 | else | |
10859 | ||
d970f7d5 | 10860 | wx_cv_use_gauge='wxUSE_GAUGE=${'DEFAULT_wxUSE_GAUGE":-$defaultval}" |
a848cd7e | 10861 | |
47964710 VS |
10862 | fi |
10863 | ||
a848cd7e | 10864 | |
d970f7d5 | 10865 | eval "$wx_cv_use_gauge" |
a848cd7e | 10866 | |
6e198e97 | 10867 | if test x"$enablestring" = xdisable; then |
7ac0e38e | 10868 | if test $wxUSE_GAUGE = no; then |
6e198e97 | 10869 | result=yes |
7ac0e38e VZ |
10870 | else |
10871 | result=no | |
6e198e97 | 10872 | fi |
a848cd7e | 10873 | else |
6e198e97 | 10874 | result=$wxUSE_GAUGE |
a848cd7e SC |
10875 | fi |
10876 | ||
d589327a VZ |
10877 | { echo "$as_me:$LINENO: result: $result" >&5 |
10878 | echo "${ECHO_T}$result" >&6; } | |
6e198e97 | 10879 | |
a848cd7e | 10880 | |
077c7880 | 10881 | enablestring= |
6e198e97 | 10882 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 10883 | if test -z "$defaultval"; then |
6e198e97 VZ |
10884 | if test x"$enablestring" = xdisable; then |
10885 | defaultval=yes | |
10886 | else | |
10887 | defaultval=no | |
10888 | fi | |
10889 | fi | |
10890 | ||
d589327a VZ |
10891 | { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5 |
10892 | echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6; } | |
47964710 | 10893 | # Check whether --enable-grid was given. |
a848cd7e | 10894 | if test "${enable_grid+set}" = set; then |
47964710 | 10895 | enableval=$enable_grid; |
a848cd7e | 10896 | if test "$enableval" = yes; then |
d970f7d5 | 10897 | wx_cv_use_grid='wxUSE_GRID=yes' |
a848cd7e | 10898 | else |
d970f7d5 | 10899 | wx_cv_use_grid='wxUSE_GRID=no' |
a848cd7e SC |
10900 | fi |
10901 | ||
10902 | else | |
10903 | ||
d970f7d5 | 10904 | wx_cv_use_grid='wxUSE_GRID=${'DEFAULT_wxUSE_GRID":-$defaultval}" |
a848cd7e | 10905 | |
47964710 VS |
10906 | fi |
10907 | ||
a848cd7e | 10908 | |
d970f7d5 | 10909 | eval "$wx_cv_use_grid" |
a848cd7e | 10910 | |
6e198e97 | 10911 | if test x"$enablestring" = xdisable; then |
7ac0e38e | 10912 | if test $wxUSE_GRID = no; then |
6e198e97 | 10913 | result=yes |
7ac0e38e VZ |
10914 | else |
10915 | result=no | |
6e198e97 | 10916 | fi |
a848cd7e | 10917 | else |
6e198e97 | 10918 | result=$wxUSE_GRID |
a848cd7e SC |
10919 | fi |
10920 | ||
d589327a VZ |
10921 | { echo "$as_me:$LINENO: result: $result" >&5 |
10922 | echo "${ECHO_T}$result" >&6; } | |
6e198e97 | 10923 | |
a848cd7e | 10924 | |
e721a2a2 VZ |
10925 | enablestring= |
10926 | defaultval=$wxUSE_ALL_FEATURES | |
10927 | if test -z "$defaultval"; then | |
10928 | if test x"$enablestring" = xdisable; then | |
10929 | defaultval=yes | |
10930 | else | |
10931 | defaultval=no | |
10932 | fi | |
10933 | fi | |
10934 | ||
d589327a VZ |
10935 | { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-headerctrl" >&5 |
10936 | echo $ECHO_N "checking for --${enablestring:-enable}-headerctrl... $ECHO_C" >&6; } | |
e721a2a2 VZ |
10937 | # Check whether --enable-headerctrl was given. |
10938 | if test "${enable_headerctrl+set}" = set; then | |
10939 | enableval=$enable_headerctrl; | |
10940 | if test "$enableval" = yes; then | |
10941 | wx_cv_use_headerctrl='wxUSE_HEADERCTRL=yes' | |
10942 | else | |
10943 | wx_cv_use_headerctrl='wxUSE_HEADERCTRL=no' | |
10944 | fi | |
10945 | ||
10946 | else | |
10947 | ||
10948 | wx_cv_use_headerctrl='wxUSE_HEADERCTRL=${'DEFAULT_wxUSE_HEADERCTRL":-$defaultval}" | |
10949 | ||
10950 | fi | |
10951 | ||
10952 | ||
10953 | eval "$wx_cv_use_headerctrl" | |
10954 | ||
10955 | if test x"$enablestring" = xdisable; then | |
7ac0e38e | 10956 | if test $wxUSE_HEADERCTRL = no; then |
e721a2a2 | 10957 | result=yes |
7ac0e38e VZ |
10958 | else |
10959 | result=no | |
e721a2a2 VZ |
10960 | fi |
10961 | else | |
10962 | result=$wxUSE_HEADERCTRL | |
10963 | fi | |
10964 | ||
d589327a VZ |
10965 | { echo "$as_me:$LINENO: result: $result" >&5 |
10966 | echo "${ECHO_T}$result" >&6; } | |
e721a2a2 VZ |
10967 | |
10968 | ||
077c7880 | 10969 | enablestring= |
6e198e97 | 10970 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 10971 | if test -z "$defaultval"; then |
6e198e97 VZ |
10972 | if test x"$enablestring" = xdisable; then |
10973 | defaultval=yes | |
10974 | else | |
10975 | defaultval=no | |
10976 | fi | |
10977 | fi | |
10978 | ||
d589327a VZ |
10979 | { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-hyperlink" >&5 |
10980 | echo $ECHO_N "checking for --${enablestring:-enable}-hyperlink... $ECHO_C" >&6; } | |
e6d984e2 VZ |
10981 | # Check whether --enable-hyperlink was given. |
10982 | if test "${enable_hyperlink+set}" = set; then | |
10983 | enableval=$enable_hyperlink; | |
20e34ecc | 10984 | if test "$enableval" = yes; then |
e6d984e2 | 10985 | wx_cv_use_hyperlink='wxUSE_HYPERLINKCTRL=yes' |
20e34ecc | 10986 | else |
e6d984e2 | 10987 | wx_cv_use_hyperlink='wxUSE_HYPERLINKCTRL=no' |
20e34ecc RR |
10988 | fi |
10989 | ||
10990 | else | |
10991 | ||
e6d984e2 | 10992 | wx_cv_use_hyperlink='wxUSE_HYPERLINKCTRL=${'DEFAULT_wxUSE_HYPERLINKCTRL":-$defaultval}" |
20e34ecc | 10993 | |
47964710 VS |
10994 | fi |
10995 | ||
20e34ecc | 10996 | |
e6d984e2 | 10997 | eval "$wx_cv_use_hyperlink" |
20e34ecc | 10998 | |
6e198e97 | 10999 | if test x"$enablestring" = xdisable; then |
7ac0e38e | 11000 | if test $wxUSE_HYPERLINKCTRL = no; then |
6e198e97 | 11001 | result=yes |
7ac0e38e VZ |
11002 | else |
11003 | result=no | |
6e198e97 | 11004 | fi |
6954625c | 11005 | else |
6e198e97 | 11006 | result=$wxUSE_HYPERLINKCTRL |
6954625c VZ |
11007 | fi |
11008 | ||
d589327a VZ |
11009 | { echo "$as_me:$LINENO: result: $result" >&5 |
11010 | echo "${ECHO_T}$result" >&6; } | |
6e198e97 | 11011 | |
6954625c | 11012 | |
077c7880 | 11013 | enablestring= |
6e198e97 | 11014 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 11015 | if test -z "$defaultval"; then |
6e198e97 VZ |
11016 | if test x"$enablestring" = xdisable; then |
11017 | defaultval=yes | |
11018 | else | |
11019 | defaultval=no | |
11020 | fi | |
11021 | fi | |
11022 | ||
d589327a VZ |
11023 | { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5 |
11024 | echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6; } | |
47964710 | 11025 | # Check whether --enable-imaglist was given. |
a848cd7e | 11026 | if test "${enable_imaglist+set}" = set; then |
47964710 | 11027 | enableval=$enable_imaglist; |
a848cd7e | 11028 | if test "$enableval" = yes; then |
d970f7d5 | 11029 | wx_cv_use_imaglist='wxUSE_IMAGLIST=yes' |
a848cd7e | 11030 | else |
d970f7d5 | 11031 | wx_cv_use_imaglist='wxUSE_IMAGLIST=no' |
a848cd7e SC |
11032 | fi |
11033 | ||
11034 | else | |
11035 | ||
d970f7d5 | 11036 | wx_cv_use_imaglist='wxUSE_IMAGLIST=${'DEFAULT_wxUSE_IMAGLIST":-$defaultval}" |
a848cd7e | 11037 | |
47964710 VS |
11038 | fi |
11039 | ||
a848cd7e | 11040 | |
d970f7d5 | 11041 | eval "$wx_cv_use_imaglist" |
a848cd7e | 11042 | |
6e198e97 | 11043 | if test x"$enablestring" = xdisable; then |
7ac0e38e | 11044 | if test $wxUSE_IMAGLIST = no; then |
6e198e97 | 11045 | result=yes |
7ac0e38e VZ |
11046 | else |
11047 | result=no | |
6e198e97 | 11048 | fi |
a848cd7e | 11049 | else |
6e198e97 | 11050 | result=$wxUSE_IMAGLIST |
a848cd7e SC |
11051 | fi |
11052 | ||
d589327a VZ |
11053 | { echo "$as_me:$LINENO: result: $result" >&5 |
11054 | echo "${ECHO_T}$result" >&6; } | |
6e198e97 | 11055 | |
a848cd7e | 11056 | |
a92b5dfe VZ |
11057 | enablestring= |
11058 | defaultval=$wxUSE_ALL_FEATURES | |
11059 | if test -z "$defaultval"; then | |
11060 | if test x"$enablestring" = xdisable; then | |
11061 | defaultval=yes | |
11062 | else | |
11063 | defaultval=no | |
11064 | fi | |
11065 | fi | |
11066 | ||
11067 | { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-infobar" >&5 | |
11068 | echo $ECHO_N "checking for --${enablestring:-enable}-infobar... $ECHO_C" >&6; } | |
11069 | # Check whether --enable-infobar was given. | |
11070 | if test "${enable_infobar+set}" = set; then | |
11071 | enableval=$enable_infobar; | |
11072 | if test "$enableval" = yes; then | |
11073 | wx_cv_use_infobar='wxUSE_INFOBAR=yes' | |
11074 | else | |
11075 | wx_cv_use_infobar='wxUSE_INFOBAR=no' | |
11076 | fi | |
11077 | ||
11078 | else | |
11079 | ||
11080 | wx_cv_use_infobar='wxUSE_INFOBAR=${'DEFAULT_wxUSE_INFOBAR":-$defaultval}" | |
11081 | ||
11082 | fi | |
11083 | ||
11084 | ||
11085 | eval "$wx_cv_use_infobar" | |
11086 | ||
11087 | if test x"$enablestring" = xdisable; then | |
11088 | if test $wxUSE_INFOBAR = no; then | |
11089 | result=yes | |
11090 | else | |
11091 | result=no | |
11092 | fi | |
11093 | else | |
11094 | result=$wxUSE_INFOBAR | |
11095 | fi | |
11096 | ||
11097 | { echo "$as_me:$LINENO: result: $result" >&5 | |
11098 | echo "${ECHO_T}$result" >&6; } | |
11099 | ||
11100 | ||
077c7880 | 11101 | enablestring= |
6e198e97 | 11102 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 11103 | if test -z "$defaultval"; then |
6e198e97 VZ |
11104 | if test x"$enablestring" = xdisable; then |
11105 | defaultval=yes | |
11106 | else | |
11107 | defaultval=no | |
11108 | fi | |
11109 | fi | |
11110 | ||
d589327a VZ |
11111 | { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5 |
11112 | echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6; } | |
47964710 | 11113 | # Check whether --enable-listbook was given. |
a848cd7e | 11114 | if test "${enable_listbook+set}" = set; then |
47964710 | 11115 | enableval=$enable_listbook; |
a848cd7e | 11116 | if test "$enableval" = yes; then |
d970f7d5 | 11117 | wx_cv_use_listbook='wxUSE_LISTBOOK=yes' |
a848cd7e | 11118 | else |
d970f7d5 | 11119 | wx_cv_use_listbook='wxUSE_LISTBOOK=no' |
a848cd7e SC |
11120 | fi |
11121 | ||
11122 | else | |
11123 | ||
d970f7d5 | 11124 | wx_cv_use_listbook='wxUSE_LISTBOOK=${'DEFAULT_wxUSE_LISTBOOK":-$defaultval}" |
a848cd7e | 11125 | |
47964710 VS |
11126 | fi |
11127 | ||
a848cd7e | 11128 | |
d970f7d5 | 11129 | eval "$wx_cv_use_listbook" |
a848cd7e | 11130 | |
6e198e97 | 11131 | if test x"$enablestring" = xdisable; then |
7ac0e38e | 11132 | if test $wxUSE_LISTBOOK = no; then |
6e198e97 | 11133 | result=yes |
7ac0e38e VZ |
11134 | else |
11135 | result=no | |
6e198e97 | 11136 | fi |
a848cd7e | 11137 | else |
6e198e97 | 11138 | result=$wxUSE_LISTBOOK |
a848cd7e SC |
11139 | fi |
11140 | ||
d589327a VZ |
11141 | { echo "$as_me:$LINENO: result: $result" >&5 |
11142 | echo "${ECHO_T}$result" >&6; } | |
6e198e97 | 11143 | |
a848cd7e | 11144 | |
077c7880 | 11145 | enablestring= |
6e198e97 | 11146 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 11147 | if test -z "$defaultval"; then |
6e198e97 VZ |
11148 | if test x"$enablestring" = xdisable; then |
11149 | defaultval=yes | |
11150 | else | |
11151 | defaultval=no | |
11152 | fi | |
11153 | fi | |
11154 | ||
d589327a VZ |
11155 | { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5 |
11156 | echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6; } | |
47964710 | 11157 | # Check whether --enable-listbox was given. |
a848cd7e | 11158 | if test "${enable_listbox+set}" = set; then |
47964710 | 11159 | enableval=$enable_listbox; |
a848cd7e | 11160 | if test "$enableval" = yes; then |
d970f7d5 | 11161 | wx_cv_use_listbox='wxUSE_LISTBOX=yes' |
a848cd7e | 11162 | else |
d970f7d5 | 11163 | wx_cv_use_listbox='wxUSE_LISTBOX=no' |
a848cd7e SC |
11164 | fi |
11165 | ||
11166 | else | |
11167 | ||
d970f7d5 | 11168 | wx_cv_use_listbox='wxUSE_LISTBOX=${'DEFAULT_wxUSE_LISTBOX":-$defaultval}" |
a848cd7e | 11169 | |
47964710 VS |
11170 | fi |
11171 | ||
a848cd7e | 11172 | |
d970f7d5 | 11173 | eval "$wx_cv_use_listbox" |
a848cd7e | 11174 | |
6e198e97 | 11175 | if test x"$enablestring" = xdisable; then |
7ac0e38e | 11176 | if test $wxUSE_LISTBOX = no; then |
6e198e97 | 11177 | result=yes |
7ac0e38e VZ |
11178 | else |
11179 | result=no | |
6e198e97 | 11180 | fi |
a848cd7e | 11181 | else |
6e198e97 | 11182 | result=$wxUSE_LISTBOX |
a848cd7e SC |
11183 | fi |
11184 | ||
d589327a VZ |
11185 | { echo "$as_me:$LINENO: result: $result" >&5 |
11186 | echo "${ECHO_T}$result" >&6; } | |
6e198e97 | 11187 | |
a848cd7e | 11188 | |
077c7880 | 11189 | enablestring= |
6e198e97 | 11190 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 11191 | if test -z "$defaultval"; then |
6e198e97 VZ |
11192 | if test x"$enablestring" = xdisable; then |
11193 | defaultval=yes | |
11194 | else | |
11195 | defaultval=no | |
11196 | fi | |
11197 | fi | |
11198 | ||
d589327a VZ |
11199 | { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5 |
11200 | echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6; } | |
47964710 | 11201 | # Check whether --enable-listctrl was given. |
a848cd7e | 11202 | if test "${enable_listctrl+set}" = set; then |
47964710 | 11203 | enableval=$enable_listctrl; |
a848cd7e | 11204 | if test "$enableval" = yes; then |
d970f7d5 | 11205 | wx_cv_use_listctrl='wxUSE_LISTCTRL=yes' |
a848cd7e | 11206 | else |
d970f7d5 | 11207 | wx_cv_use_listctrl='wxUSE_LISTCTRL=no' |
a848cd7e SC |
11208 | fi |
11209 | ||
11210 | else | |
11211 | ||
d970f7d5 | 11212 | wx_cv_use_listctrl='wxUSE_LISTCTRL=${'DEFAULT_wxUSE_LISTCTRL":-$defaultval}" |
a848cd7e | 11213 | |
47964710 VS |
11214 | fi |
11215 | ||
a848cd7e | 11216 | |
d970f7d5 | 11217 | eval "$wx_cv_use_listctrl" |
a848cd7e | 11218 | |
6e198e97 | 11219 | if test x"$enablestring" = xdisable; then |
7ac0e38e | 11220 | if test $wxUSE_LISTCTRL = no; then |
6e198e97 | 11221 | result=yes |
7ac0e38e VZ |
11222 | else |
11223 | result=no | |
6e198e97 | 11224 | fi |
a848cd7e | 11225 | else |
6e198e97 | 11226 | result=$wxUSE_LISTCTRL |
a848cd7e SC |
11227 | fi |
11228 | ||
d589327a VZ |
11229 | { echo "$as_me:$LINENO: result: $result" >&5 |
11230 | echo "${ECHO_T}$result" >&6; } | |
6e198e97 | 11231 | |
a848cd7e | 11232 | |
077c7880 | 11233 | enablestring= |
6e198e97 | 11234 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 11235 | if test -z "$defaultval"; then |
6e198e97 VZ |
11236 | if test x"$enablestring" = xdisable; then |
11237 | defaultval=yes | |
11238 | else | |
11239 | defaultval=no | |
11240 | fi | |
11241 | fi | |
11242 | ||
d589327a VZ |
11243 | { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5 |
11244 | echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6; } | |
47964710 | 11245 | # Check whether --enable-notebook was given. |
a848cd7e | 11246 | if test "${enable_notebook+set}" = set; then |
47964710 | 11247 | enableval=$enable_notebook; |
a848cd7e | 11248 | if test "$enableval" = yes; then |
d970f7d5 | 11249 | wx_cv_use_notebook='wxUSE_NOTEBOOK=yes' |
a848cd7e | 11250 | else |
d970f7d5 | 11251 | wx_cv_use_notebook='wxUSE_NOTEBOOK=no' |
a848cd7e SC |
11252 | fi |
11253 | ||
11254 | else | |
11255 | ||
d970f7d5 | 11256 | wx_cv_use_notebook='wxUSE_NOTEBOOK=${'DEFAULT_wxUSE_NOTEBOOK":-$defaultval}" |
a848cd7e | 11257 | |
47964710 VS |
11258 | fi |
11259 | ||
a848cd7e | 11260 | |
d970f7d5 | 11261 | eval "$wx_cv_use_notebook" |
a848cd7e | 11262 | |
6e198e97 | 11263 | if test x"$enablestring" = xdisable; then |
7ac0e38e | 11264 | if test $wxUSE_NOTEBOOK = no; then |
6e198e97 | 11265 | result=yes |
7ac0e38e VZ |
11266 | else |
11267 | result=no | |
6e198e97 | 11268 | fi |
a848cd7e | 11269 | else |
6e198e97 | 11270 | result=$wxUSE_NOTEBOOK |
a848cd7e SC |
11271 | fi |
11272 | ||
d589327a VZ |
11273 | { echo "$as_me:$LINENO: result: $result" >&5 |
11274 | echo "${ECHO_T}$result" >&6; } | |
6e198e97 | 11275 | |
a848cd7e | 11276 | |
e36a1739 VZ |
11277 | enablestring= |
11278 | defaultval=$wxUSE_ALL_FEATURES | |
11279 | if test -z "$defaultval"; then | |
11280 | if test x"$enablestring" = xdisable; then | |
11281 | defaultval=yes | |
11282 | else | |
11283 | defaultval=no | |
11284 | fi | |
11285 | fi | |
11286 | ||
d589327a VZ |
11287 | { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notifmsg" >&5 |
11288 | echo $ECHO_N "checking for --${enablestring:-enable}-notifmsg... $ECHO_C" >&6; } | |
e36a1739 VZ |
11289 | # Check whether --enable-notifmsg was given. |
11290 | if test "${enable_notifmsg+set}" = set; then | |
11291 | enableval=$enable_notifmsg; | |
11292 | if test "$enableval" = yes; then | |
11293 | wx_cv_use_notifmsg='wxUSE_NOTIFICATION_MESSAGE=yes' | |
11294 | else | |
11295 | wx_cv_use_notifmsg='wxUSE_NOTIFICATION_MESSAGE=no' | |
11296 | fi | |
11297 | ||
11298 | else | |
11299 | ||
11300 | wx_cv_use_notifmsg='wxUSE_NOTIFICATION_MESSAGE=${'DEFAULT_wxUSE_NOTIFICATION_MESSAGE":-$defaultval}" | |
11301 | ||
11302 | fi | |
11303 | ||
11304 | ||
11305 | eval "$wx_cv_use_notifmsg" | |
11306 | ||
11307 | if test x"$enablestring" = xdisable; then | |
7ac0e38e | 11308 | if test $wxUSE_NOTIFICATION_MESSAGE = no; then |
e36a1739 | 11309 | result=yes |
7ac0e38e VZ |
11310 | else |
11311 | result=no | |
e36a1739 VZ |
11312 | fi |
11313 | else | |
11314 | result=$wxUSE_NOTIFICATION_MESSAGE | |
11315 | fi | |
11316 | ||
d589327a VZ |
11317 | { echo "$as_me:$LINENO: result: $result" >&5 |
11318 | echo "${ECHO_T}$result" >&6; } | |
e36a1739 VZ |
11319 | |
11320 | ||
077c7880 | 11321 | enablestring= |
6e198e97 | 11322 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 11323 | if test -z "$defaultval"; then |
6e198e97 VZ |
11324 | if test x"$enablestring" = xdisable; then |
11325 | defaultval=yes | |
11326 | else | |
11327 | defaultval=no | |
11328 | fi | |
11329 | fi | |
11330 | ||
d589327a VZ |
11331 | { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-odcombobox" >&5 |
11332 | echo $ECHO_N "checking for --${enablestring:-enable}-odcombobox... $ECHO_C" >&6; } | |
47964710 | 11333 | # Check whether --enable-odcombobox was given. |
a57d600f | 11334 | if test "${enable_odcombobox+set}" = set; then |
47964710 | 11335 | enableval=$enable_odcombobox; |
642bcba9 | 11336 | if test "$enableval" = yes; then |
d970f7d5 | 11337 | wx_cv_use_odcombobox='wxUSE_ODCOMBOBOX=yes' |
642bcba9 | 11338 | else |
d970f7d5 | 11339 | wx_cv_use_odcombobox='wxUSE_ODCOMBOBOX=no' |
642bcba9 VZ |
11340 | fi |
11341 | ||
11342 | else | |
11343 | ||
d970f7d5 | 11344 | wx_cv_use_odcombobox='wxUSE_ODCOMBOBOX=${'DEFAULT_wxUSE_ODCOMBOBOX":-$defaultval}" |
642bcba9 | 11345 | |
47964710 VS |
11346 | fi |
11347 | ||
642bcba9 | 11348 | |
d970f7d5 | 11349 | eval "$wx_cv_use_odcombobox" |
642bcba9 | 11350 | |
6e198e97 | 11351 | if test x"$enablestring" = xdisable; then |
7ac0e38e | 11352 | if test $wxUSE_ODCOMBOBOX = no; then |
6e198e97 | 11353 | result=yes |
7ac0e38e VZ |
11354 | else |
11355 | result=no | |
6e198e97 | 11356 | fi |
642bcba9 | 11357 | else |
6e198e97 | 11358 | result=$wxUSE_ODCOMBOBOX |
642bcba9 VZ |
11359 | fi |
11360 | ||
d589327a VZ |
11361 | { echo "$as_me:$LINENO: result: $result" >&5 |
11362 | echo "${ECHO_T}$result" >&6; } | |
6e198e97 | 11363 | |
642bcba9 | 11364 | |
e6d984e2 VZ |
11365 | enablestring= |
11366 | defaultval=$wxUSE_ALL_FEATURES | |
11367 | if test -z "$defaultval"; then | |
11368 | if test x"$enablestring" = xdisable; then | |
11369 | defaultval=yes | |
11370 | else | |
11371 | defaultval=no | |
11372 | fi | |
11373 | fi | |
11374 | ||
d589327a VZ |
11375 | { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5 |
11376 | echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6; } | |
e6d984e2 VZ |
11377 | # Check whether --enable-popupwin was given. |
11378 | if test "${enable_popupwin+set}" = set; then | |
11379 | enableval=$enable_popupwin; | |
11380 | if test "$enableval" = yes; then | |
11381 | wx_cv_use_popupwin='wxUSE_POPUPWIN=yes' | |
11382 | else | |
11383 | wx_cv_use_popupwin='wxUSE_POPUPWIN=no' | |
11384 | fi | |
11385 | ||
11386 | else | |
11387 | ||
11388 | wx_cv_use_popupwin='wxUSE_POPUPWIN=${'DEFAULT_wxUSE_POPUPWIN":-$defaultval}" | |
11389 | ||
11390 | fi | |
11391 | ||
11392 | ||
11393 | eval "$wx_cv_use_popupwin" | |
11394 | ||
11395 | if test x"$enablestring" = xdisable; then | |
7ac0e38e | 11396 | if test $wxUSE_POPUPWIN = no; then |
e6d984e2 | 11397 | result=yes |
7ac0e38e VZ |
11398 | else |
11399 | result=no | |
e6d984e2 VZ |
11400 | fi |
11401 | else | |
11402 | result=$wxUSE_POPUPWIN | |
11403 | fi | |
11404 | ||
d589327a VZ |
11405 | { echo "$as_me:$LINENO: result: $result" >&5 |
11406 | echo "${ECHO_T}$result" >&6; } | |
e6d984e2 VZ |
11407 | |
11408 | ||
077c7880 | 11409 | enablestring= |
6e198e97 | 11410 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 11411 | if test -z "$defaultval"; then |
6e198e97 VZ |
11412 | if test x"$enablestring" = xdisable; then |
11413 | defaultval=yes | |
11414 | else | |
11415 | defaultval=no | |
11416 | fi | |
11417 | fi | |
11418 | ||
d589327a VZ |
11419 | { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5 |
11420 | echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6; } | |
47964710 | 11421 | # Check whether --enable-radiobox was given. |
a848cd7e | 11422 | if test "${enable_radiobox+set}" = set; then |
47964710 | 11423 | enableval=$enable_radiobox; |
a848cd7e | 11424 | if test "$enableval" = yes; then |
d970f7d5 | 11425 | wx_cv_use_radiobox='wxUSE_RADIOBOX=yes' |
a848cd7e | 11426 | else |
d970f7d5 | 11427 | wx_cv_use_radiobox='wxUSE_RADIOBOX=no' |
a848cd7e SC |
11428 | fi |
11429 | ||
11430 | else | |
11431 | ||
d970f7d5 | 11432 | wx_cv_use_radiobox='wxUSE_RADIOBOX=${'DEFAULT_wxUSE_RADIOBOX":-$defaultval}" |
a848cd7e | 11433 | |
47964710 VS |
11434 | fi |
11435 | ||
a848cd7e | 11436 | |
d970f7d5 | 11437 | eval "$wx_cv_use_radiobox" |
a848cd7e | 11438 | |
6e198e97 | 11439 | if test x"$enablestring" = xdisable; then |
7ac0e38e | 11440 | if test $wxUSE_RADIOBOX = no; then |
6e198e97 | 11441 | result=yes |
7ac0e38e VZ |
11442 | else |
11443 | result=no | |
6e198e97 | 11444 | fi |
a848cd7e | 11445 | else |
6e198e97 | 11446 | result=$wxUSE_RADIOBOX |
a848cd7e SC |
11447 | fi |
11448 | ||
d589327a VZ |
11449 | { echo "$as_me:$LINENO: result: $result" >&5 |
11450 | echo "${ECHO_T}$result" >&6; } | |
6e198e97 | 11451 | |
a848cd7e | 11452 | |
077c7880 | 11453 | enablestring= |
6e198e97 | 11454 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 11455 | if test -z "$defaultval"; then |
6e198e97 VZ |
11456 | if test x"$enablestring" = xdisable; then |
11457 | defaultval=yes | |
11458 | else | |
11459 | defaultval=no | |
11460 | fi | |
11461 | fi | |
11462 | ||
d589327a VZ |
11463 | { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5 |
11464 | echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6; } | |
47964710 | 11465 | # Check whether --enable-radiobtn was given. |
a848cd7e | 11466 | if test "${enable_radiobtn+set}" = set; then |
47964710 | 11467 | enableval=$enable_radiobtn; |
a848cd7e | 11468 | if test "$enableval" = yes; then |
d970f7d5 | 11469 | wx_cv_use_radiobtn='wxUSE_RADIOBTN=yes' |
a848cd7e | 11470 | else |
d970f7d5 | 11471 | wx_cv_use_radiobtn='wxUSE_RADIOBTN=no' |
a848cd7e SC |
11472 | fi |
11473 | ||
11474 | else | |
11475 | ||
d970f7d5 | 11476 | wx_cv_use_radiobtn='wxUSE_RADIOBTN=${'DEFAULT_wxUSE_RADIOBTN":-$defaultval}" |
a848cd7e | 11477 | |
47964710 VS |
11478 | fi |
11479 | ||
a848cd7e | 11480 | |
d970f7d5 | 11481 | eval "$wx_cv_use_radiobtn" |
a848cd7e | 11482 | |
6e198e97 | 11483 | if test x"$enablestring" = xdisable; then |
7ac0e38e | 11484 | if test $wxUSE_RADIOBTN = no; then |
6e198e97 | 11485 | result=yes |
7ac0e38e VZ |
11486 | else |
11487 | result=no | |
6e198e97 | 11488 | fi |
a848cd7e | 11489 | else |
6e198e97 | 11490 | result=$wxUSE_RADIOBTN |
a848cd7e SC |
11491 | fi |
11492 | ||
d589327a VZ |
11493 | { echo "$as_me:$LINENO: result: $result" >&5 |
11494 | echo "${ECHO_T}$result" >&6; } | |
6e198e97 | 11495 | |
a848cd7e | 11496 | |
f0bb342f VZ |
11497 | enablestring= |
11498 | defaultval=$wxUSE_ALL_FEATURES | |
11499 | if test -z "$defaultval"; then | |
11500 | if test x"$enablestring" = xdisable; then | |
11501 | defaultval=yes | |
11502 | else | |
11503 | defaultval=no | |
11504 | fi | |
11505 | fi | |
11506 | ||
d589327a VZ |
11507 | { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-rearrangectrl" >&5 |
11508 | echo $ECHO_N "checking for --${enablestring:-enable}-rearrangectrl... $ECHO_C" >&6; } | |
f0bb342f VZ |
11509 | # Check whether --enable-rearrangectrl was given. |
11510 | if test "${enable_rearrangectrl+set}" = set; then | |
11511 | enableval=$enable_rearrangectrl; | |
11512 | if test "$enableval" = yes; then | |
11513 | wx_cv_use_rearrangectrl='wxUSE_REARRANGECTRL=yes' | |
11514 | else | |
11515 | wx_cv_use_rearrangectrl='wxUSE_REARRANGECTRL=no' | |
11516 | fi | |
11517 | ||
11518 | else | |
11519 | ||
11520 | wx_cv_use_rearrangectrl='wxUSE_REARRANGECTRL=${'DEFAULT_wxUSE_REARRANGECTRL":-$defaultval}" | |
11521 | ||
11522 | fi | |
11523 | ||
11524 | ||
11525 | eval "$wx_cv_use_rearrangectrl" | |
11526 | ||
11527 | if test x"$enablestring" = xdisable; then | |
7ac0e38e | 11528 | if test $wxUSE_REARRANGECTRL = no; then |
f0bb342f | 11529 | result=yes |
7ac0e38e VZ |
11530 | else |
11531 | result=no | |
f0bb342f VZ |
11532 | fi |
11533 | else | |
11534 | result=$wxUSE_REARRANGECTRL | |
11535 | fi | |
11536 | ||
d589327a VZ |
11537 | { echo "$as_me:$LINENO: result: $result" >&5 |
11538 | echo "${ECHO_T}$result" >&6; } | |
f0bb342f VZ |
11539 | |
11540 | ||
077c7880 | 11541 | enablestring= |
6e198e97 | 11542 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 11543 | if test -z "$defaultval"; then |
6e198e97 VZ |
11544 | if test x"$enablestring" = xdisable; then |
11545 | defaultval=yes | |
11546 | else | |
11547 | defaultval=no | |
11548 | fi | |
11549 | fi | |
11550 | ||
d589327a VZ |
11551 | { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5 |
11552 | echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6; } | |
47964710 | 11553 | # Check whether --enable-sash was given. |
a848cd7e | 11554 | if test "${enable_sash+set}" = set; then |
47964710 | 11555 | enableval=$enable_sash; |
a848cd7e | 11556 | if test "$enableval" = yes; then |
d970f7d5 | 11557 | wx_cv_use_sash='wxUSE_SASH=yes' |
a848cd7e | 11558 | else |
d970f7d5 | 11559 | wx_cv_use_sash='wxUSE_SASH=no' |
a848cd7e SC |
11560 | fi |
11561 | ||
11562 | else | |
11563 | ||
d970f7d5 | 11564 | wx_cv_use_sash='wxUSE_SASH=${'DEFAULT_wxUSE_SASH":-$defaultval}" |
a848cd7e | 11565 | |
47964710 VS |
11566 | fi |
11567 | ||
a848cd7e | 11568 | |
d970f7d5 | 11569 | eval "$wx_cv_use_sash" |
a848cd7e | 11570 | |
6e198e97 | 11571 | if test x"$enablestring" = xdisable; then |
7ac0e38e | 11572 | if test $wxUSE_SASH = no; then |
6e198e97 | 11573 | result=yes |
7ac0e38e VZ |
11574 | else |
11575 | result=no | |
6e198e97 | 11576 | fi |
a848cd7e | 11577 | else |
6e198e97 | 11578 | result=$wxUSE_SASH |
a848cd7e SC |
11579 | fi |
11580 | ||
d589327a VZ |
11581 | { echo "$as_me:$LINENO: result: $result" >&5 |
11582 | echo "${ECHO_T}$result" >&6; } | |
6e198e97 | 11583 | |
a848cd7e | 11584 | |
077c7880 | 11585 | enablestring= |
6e198e97 | 11586 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 11587 | if test -z "$defaultval"; then |
6e198e97 VZ |
11588 | if test x"$enablestring" = xdisable; then |
11589 | defaultval=yes | |
11590 | else | |
11591 | defaultval=no | |
11592 | fi | |
11593 | fi | |
11594 | ||
d589327a VZ |
11595 | { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5 |
11596 | echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6; } | |
47964710 | 11597 | # Check whether --enable-scrollbar was given. |
a848cd7e | 11598 | if test "${enable_scrollbar+set}" = set; then |
47964710 | 11599 | enableval=$enable_scrollbar; |
a848cd7e | 11600 | if test "$enableval" = yes; then |
d970f7d5 | 11601 | wx_cv_use_scrollbar='wxUSE_SCROLLBAR=yes' |
a848cd7e | 11602 | else |
d970f7d5 | 11603 | wx_cv_use_scrollbar='wxUSE_SCROLLBAR=no' |
a848cd7e SC |
11604 | fi |
11605 | ||
11606 | else | |
11607 | ||
d970f7d5 | 11608 | wx_cv_use_scrollbar='wxUSE_SCROLLBAR=${'DEFAULT_wxUSE_SCROLLBAR":-$defaultval}" |
a848cd7e | 11609 | |
47964710 VS |
11610 | fi |
11611 | ||
a848cd7e | 11612 | |
d970f7d5 | 11613 | eval "$wx_cv_use_scrollbar" |
a848cd7e | 11614 | |
6e198e97 | 11615 | if test x"$enablestring" = xdisable; then |
7ac0e38e | 11616 | if test $wxUSE_SCROLLBAR = no; then |
6e198e97 | 11617 | result=yes |
7ac0e38e VZ |
11618 | else |
11619 | result=no | |
6e198e97 | 11620 | fi |
a848cd7e | 11621 | else |
6e198e97 | 11622 | result=$wxUSE_SCROLLBAR |
a848cd7e SC |
11623 | fi |
11624 | ||
d589327a VZ |
11625 | { echo "$as_me:$LINENO: result: $result" >&5 |
11626 | echo "${ECHO_T}$result" >&6; } | |
6e198e97 | 11627 | |
a848cd7e | 11628 | |
077c7880 | 11629 | enablestring= |
6e198e97 | 11630 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 11631 | if test -z "$defaultval"; then |
6e198e97 VZ |
11632 | if test x"$enablestring" = xdisable; then |
11633 | defaultval=yes | |
11634 | else | |
11635 | defaultval=no | |
11636 | fi | |
11637 | fi | |
11638 | ||
d589327a VZ |
11639 | { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-searchctrl" >&5 |
11640 | echo $ECHO_N "checking for --${enablestring:-enable}-searchctrl... $ECHO_C" >&6; } | |
47964710 | 11641 | # Check whether --enable-searchctrl was given. |
3f7f284d | 11642 | if test "${enable_searchctrl+set}" = set; then |
47964710 | 11643 | enableval=$enable_searchctrl; |
3f7f284d | 11644 | if test "$enableval" = yes; then |
d970f7d5 | 11645 | wx_cv_use_searchctrl='wxUSE_SEARCHCTRL=yes' |
3f7f284d | 11646 | else |
d970f7d5 | 11647 | wx_cv_use_searchctrl='wxUSE_SEARCHCTRL=no' |
3f7f284d | 11648 | fi |
a848cd7e | 11649 | |
3f7f284d RD |
11650 | else |
11651 | ||
d970f7d5 | 11652 | wx_cv_use_searchctrl='wxUSE_SEARCHCTRL=${'DEFAULT_wxUSE_SEARCHCTRL":-$defaultval}" |
3f7f284d | 11653 | |
47964710 VS |
11654 | fi |
11655 | ||
3f7f284d | 11656 | |
d970f7d5 | 11657 | eval "$wx_cv_use_searchctrl" |
3f7f284d | 11658 | |
6e198e97 | 11659 | if test x"$enablestring" = xdisable; then |
7ac0e38e | 11660 | if test $wxUSE_SEARCHCTRL = no; then |
6e198e97 | 11661 | result=yes |
7ac0e38e VZ |
11662 | else |
11663 | result=no | |
6e198e97 | 11664 | fi |
3f7f284d | 11665 | else |
6e198e97 | 11666 | result=$wxUSE_SEARCHCTRL |
3f7f284d RD |
11667 | fi |
11668 | ||
d589327a VZ |
11669 | { echo "$as_me:$LINENO: result: $result" >&5 |
11670 | echo "${ECHO_T}$result" >&6; } | |
6e198e97 | 11671 | |
3f7f284d RD |
11672 | |
11673 | enablestring= | |
6e198e97 | 11674 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 11675 | if test -z "$defaultval"; then |
6e198e97 VZ |
11676 | if test x"$enablestring" = xdisable; then |
11677 | defaultval=yes | |
11678 | else | |
11679 | defaultval=no | |
11680 | fi | |
11681 | fi | |
11682 | ||
d589327a VZ |
11683 | { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5 |
11684 | echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6; } | |
47964710 | 11685 | # Check whether --enable-slider was given. |
3f7f284d | 11686 | if test "${enable_slider+set}" = set; then |
47964710 | 11687 | enableval=$enable_slider; |
a848cd7e | 11688 | if test "$enableval" = yes; then |
d970f7d5 | 11689 | wx_cv_use_slider='wxUSE_SLIDER=yes' |
a848cd7e | 11690 | else |
d970f7d5 | 11691 | wx_cv_use_slider='wxUSE_SLIDER=no' |
a848cd7e SC |
11692 | fi |
11693 | ||
11694 | else | |
11695 | ||
d970f7d5 | 11696 | wx_cv_use_slider='wxUSE_SLIDER=${'DEFAULT_wxUSE_SLIDER":-$defaultval}" |
a848cd7e | 11697 | |
47964710 VS |
11698 | fi |
11699 | ||
a848cd7e | 11700 | |
d970f7d5 | 11701 | eval "$wx_cv_use_slider" |
a848cd7e | 11702 | |
6e198e97 | 11703 | if test x"$enablestring" = xdisable; then |
7ac0e38e | 11704 | if test $wxUSE_SLIDER = no; then |
6e198e97 | 11705 | result=yes |
7ac0e38e VZ |
11706 | else |
11707 | result=no | |
6e198e97 | 11708 | fi |
a848cd7e | 11709 | else |
6e198e97 | 11710 | result=$wxUSE_SLIDER |
a848cd7e SC |
11711 | fi |
11712 | ||
d589327a VZ |
11713 | { echo "$as_me:$LINENO: result: $result" >&5 |
11714 | echo "${ECHO_T}$result" >&6; } | |
6e198e97 | 11715 | |
a848cd7e | 11716 | |
077c7880 | 11717 | enablestring= |
6e198e97 | 11718 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 11719 | if test -z "$defaultval"; then |
6e198e97 VZ |
11720 | if test x"$enablestring" = xdisable; then |
11721 | defaultval=yes | |
11722 | else | |
11723 | defaultval=no | |
11724 | fi | |
11725 | fi | |
11726 | ||
d589327a VZ |
11727 | { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5 |
11728 | echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6; } | |
47964710 | 11729 | # Check whether --enable-spinbtn was given. |
a848cd7e | 11730 | if test "${enable_spinbtn+set}" = set; then |
47964710 | 11731 | enableval=$enable_spinbtn; |
a848cd7e | 11732 | if test "$enableval" = yes; then |
d970f7d5 | 11733 | wx_cv_use_spinbtn='wxUSE_SPINBTN=yes' |
a848cd7e | 11734 | else |
d970f7d5 | 11735 | wx_cv_use_spinbtn='wxUSE_SPINBTN=no' |
a848cd7e SC |
11736 | fi |
11737 | ||
11738 | else | |
11739 | ||
d970f7d5 | 11740 | wx_cv_use_spinbtn='wxUSE_SPINBTN=${'DEFAULT_wxUSE_SPINBTN":-$defaultval}" |
a848cd7e | 11741 | |
47964710 VS |
11742 | fi |
11743 | ||
a848cd7e | 11744 | |
d970f7d5 | 11745 | eval "$wx_cv_use_spinbtn" |
a848cd7e | 11746 | |
6e198e97 | 11747 | if test x"$enablestring" = xdisable; then |
7ac0e38e | 11748 | if test $wxUSE_SPINBTN = no; then |
6e198e97 | 11749 | result=yes |
7ac0e38e VZ |
11750 | else |
11751 | result=no | |
6e198e97 | 11752 | fi |
a848cd7e | 11753 | else |
6e198e97 | 11754 | result=$wxUSE_SPINBTN |
a848cd7e SC |
11755 | fi |
11756 | ||
d589327a VZ |
11757 | { echo "$as_me:$LINENO: result: $result" >&5 |
11758 | echo "${ECHO_T}$result" >&6; } | |
6e198e97 | 11759 | |
a848cd7e | 11760 | |
077c7880 | 11761 | enablestring= |
6e198e97 | 11762 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 11763 | if test -z "$defaultval"; then |
6e198e97 VZ |
11764 | if test x"$enablestring" = xdisable; then |
11765 | defaultval=yes | |
11766 | else | |
11767 | defaultval=no | |
11768 | fi | |
11769 | fi | |
11770 | ||
d589327a VZ |
11771 | { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5 |
11772 | echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6; } | |
47964710 | 11773 | # Check whether --enable-spinctrl was given. |
a848cd7e | 11774 | if test "${enable_spinctrl+set}" = set; then |
47964710 | 11775 | enableval=$enable_spinctrl; |
a848cd7e | 11776 | if test "$enableval" = yes; then |
d970f7d5 | 11777 | wx_cv_use_spinctrl='wxUSE_SPINCTRL=yes' |
a848cd7e | 11778 | else |
d970f7d5 | 11779 | wx_cv_use_spinctrl='wxUSE_SPINCTRL=no' |
a848cd7e SC |
11780 | fi |
11781 | ||
11782 | else | |
11783 | ||
d970f7d5 | 11784 | wx_cv_use_spinctrl='wxUSE_SPINCTRL=${'DEFAULT_wxUSE_SPINCTRL":-$defaultval}" |
a848cd7e | 11785 | |
47964710 VS |
11786 | fi |
11787 | ||
a848cd7e | 11788 | |
d970f7d5 | 11789 | eval "$wx_cv_use_spinctrl" |
a848cd7e | 11790 | |
6e198e97 | 11791 | if test x"$enablestring" = xdisable; then |
7ac0e38e | 11792 | if test $wxUSE_SPINCTRL = no; then |
6e198e97 | 11793 | result=yes |
7ac0e38e VZ |
11794 | else |
11795 | result=no | |
6e198e97 | 11796 | fi |
a848cd7e | 11797 | else |
6e198e97 | 11798 | result=$wxUSE_SPINCTRL |
a848cd7e SC |
11799 | fi |
11800 | ||
d589327a VZ |
11801 | { echo "$as_me:$LINENO: result: $result" >&5 |
11802 | echo "${ECHO_T}$result" >&6; } | |
6e198e97 | 11803 | |
a848cd7e | 11804 | |
077c7880 | 11805 | enablestring= |
6e198e97 | 11806 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 11807 | if test -z "$defaultval"; then |
6e198e97 VZ |
11808 | if test x"$enablestring" = xdisable; then |
11809 | defaultval=yes | |
11810 | else | |
11811 | defaultval=no | |
11812 | fi | |
11813 | fi | |
11814 | ||
d589327a VZ |
11815 | { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5 |
11816 | echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6; } | |
47964710 | 11817 | # Check whether --enable-splitter was given. |
a848cd7e | 11818 | if test "${enable_splitter+set}" = set; then |
47964710 | 11819 | enableval=$enable_splitter; |
a848cd7e | 11820 | if test "$enableval" = yes; then |
d970f7d5 | 11821 | wx_cv_use_splitter='wxUSE_SPLITTER=yes' |
a848cd7e | 11822 | else |
d970f7d5 | 11823 | wx_cv_use_splitter='wxUSE_SPLITTER=no' |
a848cd7e SC |
11824 | fi |
11825 | ||
11826 | else | |
11827 | ||
d970f7d5 | 11828 | wx_cv_use_splitter='wxUSE_SPLITTER=${'DEFAULT_wxUSE_SPLITTER":-$defaultval}" |
a848cd7e | 11829 | |
47964710 VS |
11830 | fi |
11831 | ||
a848cd7e | 11832 | |
d970f7d5 | 11833 | eval "$wx_cv_use_splitter" |
a848cd7e | 11834 | |
6e198e97 | 11835 | if test x"$enablestring" = xdisable; then |
7ac0e38e | 11836 | if test $wxUSE_SPLITTER = no; then |
6e198e97 | 11837 | result=yes |
7ac0e38e VZ |
11838 | else |
11839 | result=no | |
6e198e97 | 11840 | fi |
a848cd7e | 11841 | else |
6e198e97 | 11842 | result=$wxUSE_SPLITTER |
a848cd7e SC |
11843 | fi |
11844 | ||
d589327a VZ |
11845 | { echo "$as_me:$LINENO: result: $result" >&5 |
11846 | echo "${ECHO_T}$result" >&6; } | |
6e198e97 | 11847 | |
a848cd7e | 11848 | |
077c7880 | 11849 | enablestring= |
6e198e97 | 11850 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 11851 | if test -z "$defaultval"; then |
6e198e97 VZ |
11852 | if test x"$enablestring" = xdisable; then |
11853 | defaultval=yes | |
11854 | else | |
11855 | defaultval=no | |
11856 | fi | |
11857 | fi | |
11858 | ||
d589327a VZ |
11859 | { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5 |
11860 | echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6; } | |
47964710 | 11861 | # Check whether --enable-statbmp was given. |
a848cd7e | 11862 | if test "${enable_statbmp+set}" = set; then |
47964710 | 11863 | enableval=$enable_statbmp; |
a848cd7e | 11864 | if test "$enableval" = yes; then |
d970f7d5 | 11865 | wx_cv_use_statbmp='wxUSE_STATBMP=yes' |
a848cd7e | 11866 | else |
d970f7d5 | 11867 | wx_cv_use_statbmp='wxUSE_STATBMP=no' |
a848cd7e SC |
11868 | fi |
11869 | ||
11870 | else | |
11871 | ||
d970f7d5 | 11872 | wx_cv_use_statbmp='wxUSE_STATBMP=${'DEFAULT_wxUSE_STATBMP":-$defaultval}" |
a848cd7e | 11873 | |
47964710 VS |
11874 | fi |
11875 | ||
a848cd7e | 11876 | |
d970f7d5 | 11877 | eval "$wx_cv_use_statbmp" |
a848cd7e | 11878 | |
6e198e97 | 11879 | if test x"$enablestring" = xdisable; then |
7ac0e38e | 11880 | if test $wxUSE_STATBMP = no; then |
6e198e97 | 11881 | result=yes |
7ac0e38e VZ |
11882 | else |
11883 | result=no | |
6e198e97 | 11884 | fi |
a848cd7e | 11885 | else |
6e198e97 | 11886 | result=$wxUSE_STATBMP |
a848cd7e SC |
11887 | fi |
11888 | ||
d589327a VZ |
11889 | { echo "$as_me:$LINENO: result: $result" >&5 |
11890 | echo "${ECHO_T}$result" >&6; } | |
6e198e97 | 11891 | |
a848cd7e | 11892 | |
077c7880 | 11893 | enablestring= |
6e198e97 | 11894 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 11895 | if test -z "$defaultval"; then |
6e198e97 VZ |
11896 | if test x"$enablestring" = xdisable; then |
11897 | defaultval=yes | |
11898 | else | |
11899 | defaultval=no | |
11900 | fi | |
11901 | fi | |
11902 | ||
d589327a VZ |
11903 | { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5 |
11904 | echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6; } | |
47964710 | 11905 | # Check whether --enable-statbox was given. |
a848cd7e | 11906 | if test "${enable_statbox+set}" = set; then |
47964710 | 11907 | enableval=$enable_statbox; |
a848cd7e | 11908 | if test "$enableval" = yes; then |
d970f7d5 | 11909 | wx_cv_use_statbox='wxUSE_STATBOX=yes' |
a848cd7e | 11910 | else |
d970f7d5 | 11911 | wx_cv_use_statbox='wxUSE_STATBOX=no' |
a848cd7e SC |
11912 | fi |
11913 | ||
11914 | else | |
11915 | ||
d970f7d5 | 11916 | wx_cv_use_statbox='wxUSE_STATBOX=${'DEFAULT_wxUSE_STATBOX":-$defaultval}" |
a848cd7e | 11917 | |
47964710 VS |
11918 | fi |
11919 | ||
a848cd7e | 11920 | |
d970f7d5 | 11921 | eval "$wx_cv_use_statbox" |
a848cd7e | 11922 | |
6e198e97 | 11923 | if test x"$enablestring" = xdisable; then |
7ac0e38e | 11924 | if test $wxUSE_STATBOX = no; then |
6e198e97 | 11925 | result=yes |
7ac0e38e VZ |
11926 | else |
11927 | result=no | |
6e198e97 | 11928 | fi |
a848cd7e | 11929 | else |
6e198e97 | 11930 | result=$wxUSE_STATBOX |
a848cd7e SC |
11931 | fi |
11932 | ||
d589327a VZ |
11933 | { echo "$as_me:$LINENO: result: $result" >&5 |
11934 | echo "${ECHO_T}$result" >&6; } | |
6e198e97 | 11935 | |
a848cd7e | 11936 | |
077c7880 | 11937 | enablestring= |
6e198e97 | 11938 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 11939 | if test -z "$defaultval"; then |
6e198e97 VZ |
11940 | if test x"$enablestring" = xdisable; then |
11941 | defaultval=yes | |
11942 | else | |
11943 | defaultval=no | |
11944 | fi | |
11945 | fi | |
11946 | ||
d589327a VZ |
11947 | { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5 |
11948 | echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6; } | |
47964710 | 11949 | # Check whether --enable-statline was given. |
a848cd7e | 11950 | if test "${enable_statline+set}" = set; then |
47964710 | 11951 | enableval=$enable_statline; |
a848cd7e | 11952 | if test "$enableval" = yes; then |
d970f7d5 | 11953 | wx_cv_use_statline='wxUSE_STATLINE=yes' |
a848cd7e | 11954 | else |
d970f7d5 | 11955 | wx_cv_use_statline='wxUSE_STATLINE=no' |
a848cd7e SC |
11956 | fi |
11957 | ||
11958 | else | |
11959 | ||
d970f7d5 | 11960 | wx_cv_use_statline='wxUSE_STATLINE=${'DEFAULT_wxUSE_STATLINE":-$defaultval}" |
a848cd7e | 11961 | |
47964710 VS |
11962 | fi |
11963 | ||
a848cd7e | 11964 | |
d970f7d5 | 11965 | eval "$wx_cv_use_statline" |
a848cd7e | 11966 | |
6e198e97 | 11967 | if test x"$enablestring" = xdisable; then |
7ac0e38e | 11968 | if test $wxUSE_STATLINE = no; then |
6e198e97 | 11969 | result=yes |
7ac0e38e VZ |
11970 | else |
11971 | result=no | |
6e198e97 | 11972 | fi |
a848cd7e | 11973 | else |
6e198e97 | 11974 | result=$wxUSE_STATLINE |
a848cd7e SC |
11975 | fi |
11976 | ||
d589327a VZ |
11977 | { echo "$as_me:$LINENO: result: $result" >&5 |
11978 | echo "${ECHO_T}$result" >&6; } | |
6e198e97 | 11979 | |
a848cd7e | 11980 | |
077c7880 | 11981 | enablestring= |
6e198e97 | 11982 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 11983 | if test -z "$defaultval"; then |
6e198e97 VZ |
11984 | if test x"$enablestring" = xdisable; then |
11985 | defaultval=yes | |
11986 | else | |
11987 | defaultval=no | |
11988 | fi | |
11989 | fi | |
11990 | ||
d589327a VZ |
11991 | { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5 |
11992 | echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6; } | |
47964710 | 11993 | # Check whether --enable-stattext was given. |
a848cd7e | 11994 | if test "${enable_stattext+set}" = set; then |
47964710 | 11995 | enableval=$enable_stattext; |
a848cd7e | 11996 | if test "$enableval" = yes; then |
d970f7d5 | 11997 | wx_cv_use_stattext='wxUSE_STATTEXT=yes' |
a848cd7e | 11998 | else |
d970f7d5 | 11999 | wx_cv_use_stattext='wxUSE_STATTEXT=no' |
a848cd7e SC |
12000 | fi |
12001 | ||
12002 | else | |
12003 | ||
d970f7d5 | 12004 | wx_cv_use_stattext='wxUSE_STATTEXT=${'DEFAULT_wxUSE_STATTEXT":-$defaultval}" |
a848cd7e | 12005 | |
47964710 VS |
12006 | fi |
12007 | ||
a848cd7e | 12008 | |
d970f7d5 | 12009 | eval "$wx_cv_use_stattext" |
a848cd7e | 12010 | |
6e198e97 | 12011 | if test x"$enablestring" = xdisable; then |
7ac0e38e | 12012 | if test $wxUSE_STATTEXT = no; then |
6e198e97 | 12013 | result=yes |
7ac0e38e VZ |
12014 | else |
12015 | result=no | |
6e198e97 | 12016 | fi |
a848cd7e | 12017 | else |
6e198e97 | 12018 | result=$wxUSE_STATTEXT |
a848cd7e SC |
12019 | fi |
12020 | ||
d589327a VZ |
12021 | { echo "$as_me:$LINENO: result: $result" >&5 |
12022 | echo "${ECHO_T}$result" >&6; } | |
6e198e97 | 12023 | |
a848cd7e | 12024 | |
077c7880 | 12025 | enablestring= |
6e198e97 | 12026 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 12027 | if test -z "$defaultval"; then |
6e198e97 VZ |
12028 | if test x"$enablestring" = xdisable; then |
12029 | defaultval=yes | |
12030 | else | |
12031 | defaultval=no | |
12032 | fi | |
12033 | fi | |
12034 | ||
d589327a VZ |
12035 | { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5 |
12036 | echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6; } | |
47964710 | 12037 | # Check whether --enable-statusbar was given. |
a848cd7e | 12038 | if test "${enable_statusbar+set}" = set; then |
47964710 | 12039 | enableval=$enable_statusbar; |
a848cd7e | 12040 | if test "$enableval" = yes; then |
d970f7d5 | 12041 | wx_cv_use_statusbar='wxUSE_STATUSBAR=yes' |
a848cd7e | 12042 | else |
d970f7d5 | 12043 | wx_cv_use_statusbar='wxUSE_STATUSBAR=no' |
a848cd7e SC |
12044 | fi |
12045 | ||
12046 | else | |
12047 | ||
d970f7d5 | 12048 | wx_cv_use_statusbar='wxUSE_STATUSBAR=${'DEFAULT_wxUSE_STATUSBAR":-$defaultval}" |
a848cd7e | 12049 | |
47964710 VS |
12050 | fi |
12051 | ||
a848cd7e | 12052 | |
d970f7d5 | 12053 | eval "$wx_cv_use_statusbar" |
a848cd7e | 12054 | |
6e198e97 | 12055 | if test x"$enablestring" = xdisable; then |
7ac0e38e | 12056 | if test $wxUSE_STATUSBAR = no; then |
6e198e97 | 12057 | result=yes |
7ac0e38e VZ |
12058 | else |
12059 | result=no | |
6e198e97 | 12060 | fi |
a848cd7e | 12061 | else |
6e198e97 | 12062 | result=$wxUSE_STATUSBAR |
a848cd7e SC |
12063 | fi |
12064 | ||
d589327a VZ |
12065 | { echo "$as_me:$LINENO: result: $result" >&5 |
12066 | echo "${ECHO_T}$result" >&6; } | |
6e198e97 | 12067 | |
a848cd7e | 12068 | |
4f167b46 VZ |
12069 | enablestring= |
12070 | defaultval=$wxUSE_ALL_FEATURES | |
12071 | if test -z "$defaultval"; then | |
12072 | if test x"$enablestring" = xdisable; then | |
12073 | defaultval=yes | |
12074 | else | |
12075 | defaultval=no | |
12076 | fi | |
12077 | fi | |
12078 | ||
d589327a VZ |
12079 | { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-taskbaricon" >&5 |
12080 | echo $ECHO_N "checking for --${enablestring:-enable}-taskbaricon... $ECHO_C" >&6; } | |
47964710 | 12081 | # Check whether --enable-taskbaricon was given. |
4f167b46 | 12082 | if test "${enable_taskbaricon+set}" = set; then |
47964710 | 12083 | enableval=$enable_taskbaricon; |
4f167b46 VZ |
12084 | if test "$enableval" = yes; then |
12085 | wx_cv_use_taskbaricon='wxUSE_TASKBARICON=yes' | |
12086 | else | |
12087 | wx_cv_use_taskbaricon='wxUSE_TASKBARICON=no' | |
12088 | fi | |
12089 | ||
12090 | else | |
12091 | ||
4f167b46 VZ |
12092 | wx_cv_use_taskbaricon='wxUSE_TASKBARICON=${'DEFAULT_wxUSE_TASKBARICON":-$defaultval}" |
12093 | ||
47964710 VS |
12094 | fi |
12095 | ||
4f167b46 VZ |
12096 | |
12097 | eval "$wx_cv_use_taskbaricon" | |
4f167b46 VZ |
12098 | |
12099 | if test x"$enablestring" = xdisable; then | |
7ac0e38e | 12100 | if test $wxUSE_TASKBARICON = no; then |
4f167b46 | 12101 | result=yes |
7ac0e38e VZ |
12102 | else |
12103 | result=no | |
4f167b46 VZ |
12104 | fi |
12105 | else | |
12106 | result=$wxUSE_TASKBARICON | |
12107 | fi | |
12108 | ||
d589327a VZ |
12109 | { echo "$as_me:$LINENO: result: $result" >&5 |
12110 | echo "${ECHO_T}$result" >&6; } | |
4f167b46 VZ |
12111 | |
12112 | ||
077c7880 | 12113 | enablestring= |
6e198e97 | 12114 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 12115 | if test -z "$defaultval"; then |
6e198e97 VZ |
12116 | if test x"$enablestring" = xdisable; then |
12117 | defaultval=yes | |
12118 | else | |
12119 | defaultval=no | |
12120 | fi | |
12121 | fi | |
12122 | ||
d589327a VZ |
12123 | { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5 |
12124 | echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6; } | |
e6d984e2 VZ |
12125 | # Check whether --enable-tbarnative was given. |
12126 | if test "${enable_tbarnative+set}" = set; then | |
12127 | enableval=$enable_tbarnative; | |
a848cd7e | 12128 | if test "$enableval" = yes; then |
e6d984e2 | 12129 | wx_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes' |
a848cd7e | 12130 | else |
e6d984e2 | 12131 | wx_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no' |
a848cd7e SC |
12132 | fi |
12133 | ||
12134 | else | |
12135 | ||
e6d984e2 | 12136 | wx_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=${'DEFAULT_wxUSE_TOOLBAR_NATIVE":-$defaultval}" |
a848cd7e | 12137 | |
47964710 VS |
12138 | fi |
12139 | ||
a848cd7e | 12140 | |
e6d984e2 | 12141 | eval "$wx_cv_use_tbarnative" |
a848cd7e | 12142 | |
6e198e97 | 12143 | if test x"$enablestring" = xdisable; then |
7ac0e38e | 12144 | if test $wxUSE_TOOLBAR_NATIVE = no; then |
6e198e97 | 12145 | result=yes |
7ac0e38e VZ |
12146 | else |
12147 | result=no | |
6e198e97 | 12148 | fi |
a848cd7e | 12149 | else |
e6d984e2 | 12150 | result=$wxUSE_TOOLBAR_NATIVE |
a848cd7e SC |
12151 | fi |
12152 | ||
d589327a VZ |
12153 | { echo "$as_me:$LINENO: result: $result" >&5 |
12154 | echo "${ECHO_T}$result" >&6; } | |
6e198e97 | 12155 | |
a848cd7e | 12156 | |
077c7880 | 12157 | enablestring= |
6e198e97 | 12158 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 12159 | if test -z "$defaultval"; then |
6e198e97 VZ |
12160 | if test x"$enablestring" = xdisable; then |
12161 | defaultval=yes | |
12162 | else | |
12163 | defaultval=no | |
12164 | fi | |
12165 | fi | |
12166 | ||
d589327a VZ |
12167 | { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5 |
12168 | echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6; } | |
e6d984e2 VZ |
12169 | # Check whether --enable-textctrl was given. |
12170 | if test "${enable_textctrl+set}" = set; then | |
12171 | enableval=$enable_textctrl; | |
a848cd7e | 12172 | if test "$enableval" = yes; then |
e6d984e2 | 12173 | wx_cv_use_textctrl='wxUSE_TEXTCTRL=yes' |
a848cd7e | 12174 | else |
e6d984e2 | 12175 | wx_cv_use_textctrl='wxUSE_TEXTCTRL=no' |
a848cd7e SC |
12176 | fi |
12177 | ||
12178 | else | |
12179 | ||
e6d984e2 | 12180 | wx_cv_use_textctrl='wxUSE_TEXTCTRL=${'DEFAULT_wxUSE_TEXTCTRL":-$defaultval}" |
a848cd7e | 12181 | |
47964710 VS |
12182 | fi |
12183 | ||
a848cd7e | 12184 | |
e6d984e2 | 12185 | eval "$wx_cv_use_textctrl" |
a848cd7e | 12186 | |
6e198e97 | 12187 | if test x"$enablestring" = xdisable; then |
7ac0e38e | 12188 | if test $wxUSE_TEXTCTRL = no; then |
6e198e97 | 12189 | result=yes |
7ac0e38e VZ |
12190 | else |
12191 | result=no | |
6e198e97 | 12192 | fi |
a848cd7e | 12193 | else |
e6d984e2 | 12194 | result=$wxUSE_TEXTCTRL |
a848cd7e SC |
12195 | fi |
12196 | ||
d589327a VZ |
12197 | { echo "$as_me:$LINENO: result: $result" >&5 |
12198 | echo "${ECHO_T}$result" >&6; } | |
6e198e97 | 12199 | |
a848cd7e | 12200 | |
077c7880 | 12201 | enablestring= |
6e198e97 | 12202 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 12203 | if test -z "$defaultval"; then |
6e198e97 VZ |
12204 | if test x"$enablestring" = xdisable; then |
12205 | defaultval=yes | |
12206 | else | |
12207 | defaultval=no | |
12208 | fi | |
12209 | fi | |
12210 | ||
d589327a VZ |
12211 | { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5 |
12212 | echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6; } | |
e6d984e2 VZ |
12213 | # Check whether --enable-tipwindow was given. |
12214 | if test "${enable_tipwindow+set}" = set; then | |
12215 | enableval=$enable_tipwindow; | |
a848cd7e | 12216 | if test "$enableval" = yes; then |
e6d984e2 | 12217 | wx_cv_use_tipwindow='wxUSE_TIPWINDOW=yes' |
a848cd7e | 12218 | else |
e6d984e2 | 12219 | wx_cv_use_tipwindow='wxUSE_TIPWINDOW=no' |
a848cd7e SC |
12220 | fi |
12221 | ||
12222 | else | |
12223 | ||
e6d984e2 | 12224 | wx_cv_use_tipwindow='wxUSE_TIPWINDOW=${'DEFAULT_wxUSE_TIPWINDOW":-$defaultval}" |
a848cd7e | 12225 | |
47964710 VS |
12226 | fi |
12227 | ||
a848cd7e | 12228 | |
e6d984e2 | 12229 | eval "$wx_cv_use_tipwindow" |
a848cd7e | 12230 | |
6e198e97 | 12231 | if test x"$enablestring" = xdisable; then |
7ac0e38e | 12232 | if test $wxUSE_TIPWINDOW = no; then |
6e198e97 | 12233 | result=yes |
7ac0e38e VZ |
12234 | else |
12235 | result=no | |
6e198e97 | 12236 | fi |
a848cd7e | 12237 | else |
e6d984e2 | 12238 | result=$wxUSE_TIPWINDOW |
a848cd7e SC |
12239 | fi |
12240 | ||
d589327a VZ |
12241 | { echo "$as_me:$LINENO: result: $result" >&5 |
12242 | echo "${ECHO_T}$result" >&6; } | |
6e198e97 | 12243 | |
a848cd7e | 12244 | |
077c7880 | 12245 | enablestring= |
6e198e97 | 12246 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 12247 | if test -z "$defaultval"; then |
6e198e97 VZ |
12248 | if test x"$enablestring" = xdisable; then |
12249 | defaultval=yes | |
12250 | else | |
12251 | defaultval=no | |
12252 | fi | |
12253 | fi | |
12254 | ||
d589327a VZ |
12255 | { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5 |
12256 | echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6; } | |
e6d984e2 VZ |
12257 | # Check whether --enable-togglebtn was given. |
12258 | if test "${enable_togglebtn+set}" = set; then | |
12259 | enableval=$enable_togglebtn; | |
a848cd7e | 12260 | if test "$enableval" = yes; then |
e6d984e2 | 12261 | wx_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes' |
a848cd7e | 12262 | else |
e6d984e2 | 12263 | wx_cv_use_togglebtn='wxUSE_TOGGLEBTN=no' |
a848cd7e SC |
12264 | fi |
12265 | ||
12266 | else | |
12267 | ||
e6d984e2 | 12268 | wx_cv_use_togglebtn='wxUSE_TOGGLEBTN=${'DEFAULT_wxUSE_TOGGLEBTN":-$defaultval}" |
a848cd7e | 12269 | |
47964710 VS |
12270 | fi |
12271 | ||
a848cd7e | 12272 | |
e6d984e2 | 12273 | eval "$wx_cv_use_togglebtn" |
a848cd7e | 12274 | |
6e198e97 | 12275 | if test x"$enablestring" = xdisable; then |
7ac0e38e | 12276 | if test $wxUSE_TOGGLEBTN = no; then |
6e198e97 | 12277 | result=yes |
7ac0e38e VZ |
12278 | else |
12279 | result=no | |
6e198e97 | 12280 | fi |
a848cd7e | 12281 | else |
e6d984e2 | 12282 | result=$wxUSE_TOGGLEBTN |
a848cd7e SC |
12283 | fi |
12284 | ||
d589327a VZ |
12285 | { echo "$as_me:$LINENO: result: $result" >&5 |
12286 | echo "${ECHO_T}$result" >&6; } | |
6e198e97 | 12287 | |
a848cd7e | 12288 | |
077c7880 | 12289 | enablestring= |
6e198e97 | 12290 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 12291 | if test -z "$defaultval"; then |
6e198e97 VZ |
12292 | if test x"$enablestring" = xdisable; then |
12293 | defaultval=yes | |
12294 | else | |
12295 | defaultval=no | |
12296 | fi | |
12297 | fi | |
12298 | ||
d589327a VZ |
12299 | { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5 |
12300 | echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6; } | |
e6d984e2 VZ |
12301 | # Check whether --enable-toolbar was given. |
12302 | if test "${enable_toolbar+set}" = set; then | |
12303 | enableval=$enable_toolbar; | |
0093c2fc | 12304 | if test "$enableval" = yes; then |
e6d984e2 | 12305 | wx_cv_use_toolbar='wxUSE_TOOLBAR=yes' |
0093c2fc | 12306 | else |
e6d984e2 | 12307 | wx_cv_use_toolbar='wxUSE_TOOLBAR=no' |
0093c2fc VZ |
12308 | fi |
12309 | ||
12310 | else | |
12311 | ||
e6d984e2 | 12312 | wx_cv_use_toolbar='wxUSE_TOOLBAR=${'DEFAULT_wxUSE_TOOLBAR":-$defaultval}" |
0093c2fc | 12313 | |
47964710 VS |
12314 | fi |
12315 | ||
0093c2fc | 12316 | |
e6d984e2 | 12317 | eval "$wx_cv_use_toolbar" |
0093c2fc | 12318 | |
6e198e97 | 12319 | if test x"$enablestring" = xdisable; then |
7ac0e38e | 12320 | if test $wxUSE_TOOLBAR = no; then |
6e198e97 | 12321 | result=yes |
7ac0e38e VZ |
12322 | else |
12323 | result=no | |
6e198e97 | 12324 | fi |
0093c2fc | 12325 | else |
e6d984e2 | 12326 | result=$wxUSE_TOOLBAR |
0093c2fc VZ |
12327 | fi |
12328 | ||
d589327a VZ |
12329 | { echo "$as_me:$LINENO: result: $result" >&5 |
12330 | echo "${ECHO_T}$result" >&6; } | |
6e198e97 | 12331 | |
0093c2fc | 12332 | |
077c7880 | 12333 | enablestring= |
6e198e97 | 12334 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 12335 | if test -z "$defaultval"; then |
6e198e97 VZ |
12336 | if test x"$enablestring" = xdisable; then |
12337 | defaultval=yes | |
12338 | else | |
12339 | defaultval=no | |
12340 | fi | |
12341 | fi | |
12342 | ||
d589327a VZ |
12343 | { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbook" >&5 |
12344 | echo $ECHO_N "checking for --${enablestring:-enable}-toolbook... $ECHO_C" >&6; } | |
47964710 | 12345 | # Check whether --enable-toolbook was given. |
5ec3bc43 | 12346 | if test "${enable_toolbook+set}" = set; then |
47964710 | 12347 | enableval=$enable_toolbook; |
5ec3bc43 | 12348 | if test "$enableval" = yes; then |
d970f7d5 | 12349 | wx_cv_use_toolbook='wxUSE_TOOLBOOK=yes' |
5ec3bc43 | 12350 | else |
d970f7d5 | 12351 | wx_cv_use_toolbook='wxUSE_TOOLBOOK=no' |
5ec3bc43 JS |
12352 | fi |
12353 | ||
12354 | else | |
12355 | ||
d970f7d5 | 12356 | wx_cv_use_toolbook='wxUSE_TOOLBOOK=${'DEFAULT_wxUSE_TOOLBOOK":-$defaultval}" |
5ec3bc43 | 12357 | |
47964710 VS |
12358 | fi |
12359 | ||
5ec3bc43 | 12360 | |
d970f7d5 | 12361 | eval "$wx_cv_use_toolbook" |
5ec3bc43 | 12362 | |
6e198e97 | 12363 | if test x"$enablestring" = xdisable; then |
7ac0e38e | 12364 | if test $wxUSE_TOOLBOOK = no; then |
6e198e97 | 12365 | result=yes |
7ac0e38e VZ |
12366 | else |
12367 | result=no | |
6e198e97 | 12368 | fi |
5ec3bc43 | 12369 | else |
6e198e97 | 12370 | result=$wxUSE_TOOLBOOK |
5ec3bc43 JS |
12371 | fi |
12372 | ||
d589327a VZ |
12373 | { echo "$as_me:$LINENO: result: $result" >&5 |
12374 | echo "${ECHO_T}$result" >&6; } | |
6e198e97 | 12375 | |
5ec3bc43 | 12376 | |
077c7880 | 12377 | enablestring= |
6e198e97 | 12378 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 12379 | if test -z "$defaultval"; then |
6e198e97 VZ |
12380 | if test x"$enablestring" = xdisable; then |
12381 | defaultval=yes | |
12382 | else | |
12383 | defaultval=no | |
12384 | fi | |
12385 | fi | |
12386 | ||
d589327a VZ |
12387 | { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treebook" >&5 |
12388 | echo $ECHO_N "checking for --${enablestring:-enable}-treebook... $ECHO_C" >&6; } | |
e6d984e2 VZ |
12389 | # Check whether --enable-treebook was given. |
12390 | if test "${enable_treebook+set}" = set; then | |
12391 | enableval=$enable_treebook; | |
a848cd7e | 12392 | if test "$enableval" = yes; then |
e6d984e2 | 12393 | wx_cv_use_treebook='wxUSE_TREEBOOK=yes' |
a848cd7e | 12394 | else |
e6d984e2 | 12395 | wx_cv_use_treebook='wxUSE_TREEBOOK=no' |
a848cd7e SC |
12396 | fi |
12397 | ||
12398 | else | |
12399 | ||
e6d984e2 | 12400 | wx_cv_use_treebook='wxUSE_TREEBOOK=${'DEFAULT_wxUSE_TREEBOOK":-$defaultval}" |
a848cd7e | 12401 | |
47964710 VS |
12402 | fi |
12403 | ||
a848cd7e | 12404 | |
e6d984e2 | 12405 | eval "$wx_cv_use_treebook" |
a848cd7e | 12406 | |
6e198e97 | 12407 | if test x"$enablestring" = xdisable; then |
7ac0e38e | 12408 | if test $wxUSE_TREEBOOK = no; then |
6e198e97 | 12409 | result=yes |
7ac0e38e VZ |
12410 | else |
12411 | result=no | |
6e198e97 | 12412 | fi |
a848cd7e | 12413 | else |
e6d984e2 | 12414 | result=$wxUSE_TREEBOOK |
a848cd7e SC |
12415 | fi |
12416 | ||
d589327a VZ |
12417 | { echo "$as_me:$LINENO: result: $result" >&5 |
12418 | echo "${ECHO_T}$result" >&6; } | |
6e198e97 | 12419 | |
a848cd7e | 12420 | |
077c7880 | 12421 | enablestring= |
6e198e97 | 12422 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 12423 | if test -z "$defaultval"; then |
6e198e97 VZ |
12424 | if test x"$enablestring" = xdisable; then |
12425 | defaultval=yes | |
12426 | else | |
12427 | defaultval=no | |
12428 | fi | |
12429 | fi | |
12430 | ||
d589327a VZ |
12431 | { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5 |
12432 | echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6; } | |
e6d984e2 VZ |
12433 | # Check whether --enable-treectrl was given. |
12434 | if test "${enable_treectrl+set}" = set; then | |
12435 | enableval=$enable_treectrl; | |
a848cd7e | 12436 | if test "$enableval" = yes; then |
e6d984e2 | 12437 | wx_cv_use_treectrl='wxUSE_TREECTRL=yes' |
a848cd7e | 12438 | else |
e6d984e2 | 12439 | wx_cv_use_treectrl='wxUSE_TREECTRL=no' |
a848cd7e SC |
12440 | fi |
12441 | ||
12442 | else | |
12443 | ||
e6d984e2 | 12444 | wx_cv_use_treectrl='wxUSE_TREECTRL=${'DEFAULT_wxUSE_TREECTRL":-$defaultval}" |
a848cd7e | 12445 | |
47964710 VS |
12446 | fi |
12447 | ||
a848cd7e | 12448 | |
e6d984e2 | 12449 | eval "$wx_cv_use_treectrl" |
a848cd7e | 12450 | |
6e198e97 | 12451 | if test x"$enablestring" = xdisable; then |
7ac0e38e | 12452 | if test $wxUSE_TREECTRL = no; then |
6e198e97 | 12453 | result=yes |
7ac0e38e VZ |
12454 | else |
12455 | result=no | |
6e198e97 | 12456 | fi |
a848cd7e | 12457 | else |
e6d984e2 | 12458 | result=$wxUSE_TREECTRL |
a848cd7e SC |
12459 | fi |
12460 | ||
d589327a VZ |
12461 | { echo "$as_me:$LINENO: result: $result" >&5 |
12462 | echo "${ECHO_T}$result" >&6; } | |
6e198e97 | 12463 | |
a848cd7e SC |
12464 | |
12465 | ||
12466 | ||
077c7880 | 12467 | enablestring= |
6e198e97 | 12468 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 12469 | if test -z "$defaultval"; then |
6e198e97 VZ |
12470 | if test x"$enablestring" = xdisable; then |
12471 | defaultval=yes | |
12472 | else | |
12473 | defaultval=no | |
12474 | fi | |
12475 | fi | |
12476 | ||
d589327a VZ |
12477 | { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5 |
12478 | echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6; } | |
47964710 | 12479 | # Check whether --enable-commondlg was given. |
a848cd7e | 12480 | if test "${enable_commondlg+set}" = set; then |
47964710 | 12481 | enableval=$enable_commondlg; |
a848cd7e | 12482 | if test "$enableval" = yes; then |
d970f7d5 | 12483 | wx_cv_use_commondlg='wxUSE_COMMONDLGS=yes' |
a848cd7e | 12484 | else |
d970f7d5 | 12485 | wx_cv_use_commondlg='wxUSE_COMMONDLGS=no' |
a848cd7e SC |
12486 | fi |
12487 | ||
12488 | else | |
12489 | ||
d970f7d5 | 12490 | wx_cv_use_commondlg='wxUSE_COMMONDLGS=${'DEFAULT_wxUSE_COMMONDLGS":-$defaultval}" |
a848cd7e | 12491 | |
47964710 VS |
12492 | fi |
12493 | ||
a848cd7e | 12494 | |
d970f7d5 | 12495 | eval "$wx_cv_use_commondlg" |
a848cd7e | 12496 | |
6e198e97 | 12497 | if test x"$enablestring" = xdisable; then |
7ac0e38e | 12498 | if test $wxUSE_COMMONDLGS = no; then |
6e198e97 | 12499 | result=yes |
7ac0e38e VZ |
12500 | else |
12501 | result=no | |
6e198e97 | 12502 | fi |
a848cd7e | 12503 | else |
6e198e97 | 12504 | result=$wxUSE_COMMONDLGS |
a848cd7e SC |
12505 | fi |
12506 | ||
d589327a VZ |
12507 | { echo "$as_me:$LINENO: result: $result" >&5 |
12508 | echo "${ECHO_T}$result" >&6; } | |
6e198e97 | 12509 | |
a848cd7e | 12510 | |
077c7880 | 12511 | enablestring= |
6e198e97 | 12512 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 12513 | if test -z "$defaultval"; then |
6e198e97 VZ |
12514 | if test x"$enablestring" = xdisable; then |
12515 | defaultval=yes | |
12516 | else | |
12517 | defaultval=no | |
12518 | fi | |
12519 | fi | |
12520 | ||
d589327a VZ |
12521 | { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-aboutdlg" >&5 |
12522 | echo $ECHO_N "checking for --${enablestring:-enable}-aboutdlg... $ECHO_C" >&6; } | |
47964710 | 12523 | # Check whether --enable-aboutdlg was given. |
319c5ed4 | 12524 | if test "${enable_aboutdlg+set}" = set; then |
47964710 | 12525 | enableval=$enable_aboutdlg; |
319c5ed4 | 12526 | if test "$enableval" = yes; then |
d970f7d5 | 12527 | wx_cv_use_aboutdlg='wxUSE_ABOUTDLG=yes' |
319c5ed4 | 12528 | else |
d970f7d5 | 12529 | wx_cv_use_aboutdlg='wxUSE_ABOUTDLG=no' |
319c5ed4 VZ |
12530 | fi |
12531 | ||
12532 | else | |
12533 | ||
d970f7d5 | 12534 | wx_cv_use_aboutdlg='wxUSE_ABOUTDLG=${'DEFAULT_wxUSE_ABOUTDLG":-$defaultval}" |
319c5ed4 | 12535 | |
47964710 VS |
12536 | fi |
12537 | ||
319c5ed4 | 12538 | |
d970f7d5 | 12539 | eval "$wx_cv_use_aboutdlg" |
319c5ed4 | 12540 | |
6e198e97 | 12541 | if test x"$enablestring" = xdisable; then |
7ac0e38e | 12542 | if test $wxUSE_ABOUTDLG = no; then |
6e198e97 | 12543 | result=yes |
7ac0e38e VZ |
12544 | else |
12545 | result=no | |
6e198e97 | 12546 | fi |
319c5ed4 | 12547 | else |
6e198e97 | 12548 | result=$wxUSE_ABOUTDLG |
319c5ed4 VZ |
12549 | fi |
12550 | ||
d589327a VZ |
12551 | { echo "$as_me:$LINENO: result: $result" >&5 |
12552 | echo "${ECHO_T}$result" >&6; } | |
6e198e97 | 12553 | |
319c5ed4 | 12554 | |
077c7880 | 12555 | enablestring= |
6e198e97 | 12556 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 12557 | if test -z "$defaultval"; then |
6e198e97 VZ |
12558 | if test x"$enablestring" = xdisable; then |
12559 | defaultval=yes | |
12560 | else | |
12561 | defaultval=no | |
12562 | fi | |
12563 | fi | |
12564 | ||
d589327a VZ |
12565 | { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5 |
12566 | echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6; } | |
47964710 | 12567 | # Check whether --enable-choicedlg was given. |
a848cd7e | 12568 | if test "${enable_choicedlg+set}" = set; then |
47964710 | 12569 | enableval=$enable_choicedlg; |
a848cd7e | 12570 | if test "$enableval" = yes; then |
d970f7d5 | 12571 | wx_cv_use_choicedlg='wxUSE_CHOICEDLG=yes' |
a848cd7e | 12572 | else |
d970f7d5 | 12573 | wx_cv_use_choicedlg='wxUSE_CHOICEDLG=no' |
a848cd7e SC |
12574 | fi |
12575 | ||
12576 | else | |
12577 | ||
d970f7d5 | 12578 | wx_cv_use_choicedlg='wxUSE_CHOICEDLG=${'DEFAULT_wxUSE_CHOICEDLG":-$defaultval}" |
a848cd7e | 12579 | |
47964710 VS |
12580 | fi |
12581 | ||
a848cd7e | 12582 | |
d970f7d5 | 12583 | eval "$wx_cv_use_choicedlg" |
a848cd7e | 12584 | |
6e198e97 | 12585 | if test x"$enablestring" = xdisable; then |
7ac0e38e | 12586 | if test $wxUSE_CHOICEDLG = no; then |
6e198e97 | 12587 | result=yes |
7ac0e38e VZ |
12588 | else |
12589 | result=no | |
6e198e97 | 12590 | fi |
a848cd7e | 12591 | else |
6e198e97 | 12592 | result=$wxUSE_CHOICEDLG |
a848cd7e SC |
12593 | fi |
12594 | ||
d589327a VZ |
12595 | { echo "$as_me:$LINENO: result: $result" >&5 |
12596 | echo "${ECHO_T}$result" >&6; } | |
6e198e97 | 12597 | |
a848cd7e | 12598 | |
077c7880 | 12599 | enablestring= |
6e198e97 | 12600 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 12601 | if test -z "$defaultval"; then |
6e198e97 VZ |
12602 | if test x"$enablestring" = xdisable; then |
12603 | defaultval=yes | |
12604 | else | |
12605 | defaultval=no | |
12606 | fi | |
12607 | fi | |
12608 | ||
d589327a VZ |
12609 | { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5 |
12610 | echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6; } | |
47964710 | 12611 | # Check whether --enable-coldlg was given. |
a848cd7e | 12612 | if test "${enable_coldlg+set}" = set; then |
47964710 | 12613 | enableval=$enable_coldlg; |
a848cd7e | 12614 | if test "$enableval" = yes; then |
d970f7d5 | 12615 | wx_cv_use_coldlg='wxUSE_COLOURDLG=yes' |
a848cd7e | 12616 | else |
d970f7d5 | 12617 | wx_cv_use_coldlg='wxUSE_COLOURDLG=no' |
a848cd7e SC |
12618 | fi |
12619 | ||
12620 | else | |
12621 | ||
d970f7d5 | 12622 | wx_cv_use_coldlg='wxUSE_COLOURDLG=${'DEFAULT_wxUSE_COLOURDLG":-$defaultval}" |
a848cd7e | 12623 | |
47964710 VS |
12624 | fi |
12625 | ||
a848cd7e | 12626 | |
d970f7d5 | 12627 | eval "$wx_cv_use_coldlg" |
a848cd7e | 12628 | |
6e198e97 | 12629 | if test x"$enablestring" = xdisable; then |
7ac0e38e | 12630 | if test $wxUSE_COLOURDLG = no; then |
6e198e97 | 12631 | result=yes |
7ac0e38e VZ |
12632 | else |
12633 | result=no | |
6e198e97 | 12634 | fi |
a848cd7e | 12635 | else |
6e198e97 | 12636 | result=$wxUSE_COLOURDLG |
a848cd7e SC |
12637 | fi |
12638 | ||
d589327a VZ |
12639 | { echo "$as_me:$LINENO: result: $result" >&5 |
12640 | echo "${ECHO_T}$result" >&6; } | |
6e198e97 | 12641 | |
a848cd7e | 12642 | |
077c7880 | 12643 | enablestring= |
6e198e97 | 12644 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 12645 | if test -z "$defaultval"; then |
6e198e97 VZ |
12646 | if test x"$enablestring" = xdisable; then |
12647 | defaultval=yes | |
12648 | else | |
12649 | defaultval=no | |
12650 | fi | |
12651 | fi | |
12652 | ||
d589327a VZ |
12653 | { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5 |
12654 | echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6; } | |
47964710 | 12655 | # Check whether --enable-filedlg was given. |
a848cd7e | 12656 | if test "${enable_filedlg+set}" = set; then |
47964710 | 12657 | enableval=$enable_filedlg; |
a848cd7e | 12658 | if test "$enableval" = yes; then |
d970f7d5 | 12659 | wx_cv_use_filedlg='wxUSE_FILEDLG=yes' |
a848cd7e | 12660 | else |
d970f7d5 | 12661 | wx_cv_use_filedlg='wxUSE_FILEDLG=no' |
a848cd7e SC |
12662 | fi |
12663 | ||
12664 | else | |
12665 | ||
d970f7d5 | 12666 | wx_cv_use_filedlg='wxUSE_FILEDLG=${'DEFAULT_wxUSE_FILEDLG":-$defaultval}" |
a848cd7e | 12667 | |
47964710 VS |
12668 | fi |
12669 | ||
a848cd7e | 12670 | |
d970f7d5 | 12671 | eval "$wx_cv_use_filedlg" |
a848cd7e | 12672 | |
6e198e97 | 12673 | if test x"$enablestring" = xdisable; then |
7ac0e38e | 12674 | if test $wxUSE_FILEDLG = no; then |
6e198e97 | 12675 | result=yes |
7ac0e38e VZ |
12676 | else |
12677 | result=no | |
6e198e97 | 12678 | fi |
a848cd7e | 12679 | else |
6e198e97 | 12680 | result=$wxUSE_FILEDLG |
a848cd7e SC |
12681 | fi |
12682 | ||
d589327a VZ |
12683 | { echo "$as_me:$LINENO: result: $result" >&5 |
12684 | echo "${ECHO_T}$result" >&6; } | |
6e198e97 | 12685 | |
a848cd7e | 12686 | |
077c7880 | 12687 | enablestring= |
6e198e97 | 12688 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 12689 | if test -z "$defaultval"; then |
6e198e97 VZ |
12690 | if test x"$enablestring" = xdisable; then |
12691 | defaultval=yes | |
12692 | else | |
12693 | defaultval=no | |
12694 | fi | |
12695 | fi | |
12696 | ||
d589327a VZ |
12697 | { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5 |
12698 | echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6; } | |
47964710 | 12699 | # Check whether --enable-finddlg was given. |
a848cd7e | 12700 | if test "${enable_finddlg+set}" = set; then |
47964710 | 12701 | enableval=$enable_finddlg; |
a848cd7e | 12702 | if test "$enableval" = yes; then |
d970f7d5 | 12703 | wx_cv_use_finddlg='wxUSE_FINDREPLDLG=yes' |
a848cd7e | 12704 | else |
d970f7d5 | 12705 | wx_cv_use_finddlg='wxUSE_FINDREPLDLG=no' |
a848cd7e SC |
12706 | fi |
12707 | ||
12708 | else | |
12709 | ||
d970f7d5 | 12710 | wx_cv_use_finddlg='wxUSE_FINDREPLDLG=${'DEFAULT_wxUSE_FINDREPLDLG":-$defaultval}" |
a848cd7e | 12711 | |
47964710 VS |
12712 | fi |
12713 | ||
a848cd7e | 12714 | |
d970f7d5 | 12715 | eval "$wx_cv_use_finddlg" |
a848cd7e | 12716 | |
6e198e97 | 12717 | if test x"$enablestring" = xdisable; then |
7ac0e38e | 12718 | if test $wxUSE_FINDREPLDLG = no; then |
6e198e97 | 12719 | result=yes |
7ac0e38e VZ |
12720 | else |
12721 | result=no | |
6e198e97 | 12722 | fi |
a848cd7e | 12723 | else |
6e198e97 | 12724 | result=$wxUSE_FINDREPLDLG |
a848cd7e SC |
12725 | fi |
12726 | ||
d589327a VZ |
12727 | { echo "$as_me:$LINENO: result: $result" >&5 |
12728 | echo "${ECHO_T}$result" >&6; } | |
6e198e97 | 12729 | |
a848cd7e | 12730 | |
077c7880 | 12731 | enablestring= |
6e198e97 | 12732 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 12733 | if test -z "$defaultval"; then |
6e198e97 VZ |
12734 | if test x"$enablestring" = xdisable; then |
12735 | defaultval=yes | |
12736 | else | |
12737 | defaultval=no | |
12738 | fi | |
12739 | fi | |
12740 | ||
d589327a VZ |
12741 | { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5 |
12742 | echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6; } | |
47964710 | 12743 | # Check whether --enable-fontdlg was given. |
a848cd7e | 12744 | if test "${enable_fontdlg+set}" = set; then |
47964710 | 12745 | enableval=$enable_fontdlg; |
a848cd7e | 12746 | if test "$enableval" = yes; then |
d970f7d5 | 12747 | wx_cv_use_fontdlg='wxUSE_FONTDLG=yes' |
a848cd7e | 12748 | else |
d970f7d5 | 12749 | wx_cv_use_fontdlg='wxUSE_FONTDLG=no' |
a848cd7e SC |
12750 | fi |
12751 | ||
12752 | else | |
12753 | ||
d970f7d5 | 12754 | wx_cv_use_fontdlg='wxUSE_FONTDLG=${'DEFAULT_wxUSE_FONTDLG":-$defaultval}" |
a848cd7e | 12755 | |
47964710 VS |
12756 | fi |
12757 | ||
a848cd7e | 12758 | |
d970f7d5 | 12759 | eval "$wx_cv_use_fontdlg" |
a848cd7e | 12760 | |
6e198e97 | 12761 | if test x"$enablestring" = xdisable; then |
7ac0e38e | 12762 | if test $wxUSE_FONTDLG = no; then |
6e198e97 | 12763 | result=yes |
7ac0e38e VZ |
12764 | else |
12765 | result=no | |
6e198e97 | 12766 | fi |
a848cd7e | 12767 | else |
6e198e97 | 12768 | result=$wxUSE_FONTDLG |
a848cd7e SC |
12769 | fi |
12770 | ||
d589327a VZ |
12771 | { echo "$as_me:$LINENO: result: $result" >&5 |
12772 | echo "${ECHO_T}$result" >&6; } | |
6e198e97 | 12773 | |
a848cd7e | 12774 | |
077c7880 | 12775 | enablestring= |
6e198e97 | 12776 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 12777 | if test -z "$defaultval"; then |
6e198e97 VZ |
12778 | if test x"$enablestring" = xdisable; then |
12779 | defaultval=yes | |
12780 | else | |
12781 | defaultval=no | |
12782 | fi | |
12783 | fi | |
12784 | ||
d589327a VZ |
12785 | { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5 |
12786 | echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6; } | |
47964710 | 12787 | # Check whether --enable-dirdlg was given. |
a848cd7e | 12788 | if test "${enable_dirdlg+set}" = set; then |
47964710 | 12789 | enableval=$enable_dirdlg; |
a848cd7e | 12790 | if test "$enableval" = yes; then |
d970f7d5 | 12791 | wx_cv_use_dirdlg='wxUSE_DIRDLG=yes' |
a848cd7e | 12792 | else |
d970f7d5 | 12793 | wx_cv_use_dirdlg='wxUSE_DIRDLG=no' |
a848cd7e SC |
12794 | fi |
12795 | ||
12796 | else | |
12797 | ||
d970f7d5 | 12798 | wx_cv_use_dirdlg='wxUSE_DIRDLG=${'DEFAULT_wxUSE_DIRDLG":-$defaultval}" |
a848cd7e | 12799 | |
47964710 VS |
12800 | fi |
12801 | ||
a848cd7e | 12802 | |
d970f7d5 | 12803 | eval "$wx_cv_use_dirdlg" |
a848cd7e | 12804 | |
6e198e97 | 12805 | if test x"$enablestring" = xdisable; then |
7ac0e38e | 12806 | if test $wxUSE_DIRDLG = no; then |
6e198e97 | 12807 | result=yes |
7ac0e38e VZ |
12808 | else |
12809 | result=no | |
6e198e97 | 12810 | fi |
a848cd7e | 12811 | else |
6e198e97 | 12812 | result=$wxUSE_DIRDLG |
a848cd7e SC |
12813 | fi |
12814 | ||
d589327a VZ |
12815 | { echo "$as_me:$LINENO: result: $result" >&5 |
12816 | echo "${ECHO_T}$result" >&6; } | |
6e198e97 | 12817 | |
a848cd7e | 12818 | |
077c7880 | 12819 | enablestring= |
6e198e97 | 12820 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 12821 | if test -z "$defaultval"; then |
6e198e97 VZ |
12822 | if test x"$enablestring" = xdisable; then |
12823 | defaultval=yes | |
12824 | else | |
12825 | defaultval=no | |
12826 | fi | |
12827 | fi | |
12828 | ||
d589327a VZ |
12829 | { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5 |
12830 | echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6; } | |
47964710 | 12831 | # Check whether --enable-msgdlg was given. |
a848cd7e | 12832 | if test "${enable_msgdlg+set}" = set; then |
47964710 | 12833 | enableval=$enable_msgdlg; |
a848cd7e | 12834 | if test "$enableval" = yes; then |
d970f7d5 | 12835 | wx_cv_use_msgdlg='wxUSE_MSGDLG=yes' |
a848cd7e | 12836 | else |
d970f7d5 | 12837 | wx_cv_use_msgdlg='wxUSE_MSGDLG=no' |
a848cd7e SC |
12838 | fi |
12839 | ||
12840 | else | |
12841 | ||
d970f7d5 | 12842 | wx_cv_use_msgdlg='wxUSE_MSGDLG=${'DEFAULT_wxUSE_MSGDLG":-$defaultval}" |
a848cd7e | 12843 | |
47964710 VS |
12844 | fi |
12845 | ||
a848cd7e | 12846 | |
d970f7d5 | 12847 | eval "$wx_cv_use_msgdlg" |
a848cd7e | 12848 | |
6e198e97 | 12849 | if test x"$enablestring" = xdisable; then |
7ac0e38e | 12850 | if test $wxUSE_MSGDLG = no; then |
6e198e97 | 12851 | result=yes |
7ac0e38e VZ |
12852 | else |
12853 | result=no | |
6e198e97 | 12854 | fi |
a848cd7e | 12855 | else |
6e198e97 | 12856 | result=$wxUSE_MSGDLG |
a848cd7e SC |
12857 | fi |
12858 | ||
d589327a VZ |
12859 | { echo "$as_me:$LINENO: result: $result" >&5 |
12860 | echo "${ECHO_T}$result" >&6; } | |
6e198e97 | 12861 | |
a848cd7e | 12862 | |
077c7880 | 12863 | enablestring= |
6e198e97 | 12864 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 12865 | if test -z "$defaultval"; then |
6e198e97 VZ |
12866 | if test x"$enablestring" = xdisable; then |
12867 | defaultval=yes | |
12868 | else | |
12869 | defaultval=no | |
12870 | fi | |
12871 | fi | |
12872 | ||
d589327a VZ |
12873 | { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5 |
12874 | echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6; } | |
47964710 | 12875 | # Check whether --enable-numberdlg was given. |
a848cd7e | 12876 | if test "${enable_numberdlg+set}" = set; then |
47964710 | 12877 | enableval=$enable_numberdlg; |
a848cd7e | 12878 | if test "$enableval" = yes; then |
d970f7d5 | 12879 | wx_cv_use_numberdlg='wxUSE_NUMBERDLG=yes' |
a848cd7e | 12880 | else |
d970f7d5 | 12881 | wx_cv_use_numberdlg='wxUSE_NUMBERDLG=no' |
a848cd7e SC |
12882 | fi |
12883 | ||
12884 | else | |
12885 | ||
d970f7d5 | 12886 | wx_cv_use_numberdlg='wxUSE_NUMBERDLG=${'DEFAULT_wxUSE_NUMBERDLG":-$defaultval}" |
a848cd7e | 12887 | |
47964710 VS |
12888 | fi |
12889 | ||
a848cd7e | 12890 | |
d970f7d5 | 12891 | eval "$wx_cv_use_numberdlg" |
a848cd7e | 12892 | |
6e198e97 | 12893 | if test x"$enablestring" = xdisable; then |
7ac0e38e | 12894 | if test $wxUSE_NUMBERDLG = no; then |
6e198e97 | 12895 | result=yes |
7ac0e38e VZ |
12896 | else |
12897 | result=no | |
6e198e97 | 12898 | fi |
a848cd7e | 12899 | else |
6e198e97 | 12900 | result=$wxUSE_NUMBERDLG |
a848cd7e SC |
12901 | fi |
12902 | ||
d589327a VZ |
12903 | { echo "$as_me:$LINENO: result: $result" >&5 |
12904 | echo "${ECHO_T}$result" >&6; } | |
6e198e97 | 12905 | |
a848cd7e | 12906 | |
077c7880 | 12907 | enablestring= |
6e198e97 | 12908 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 12909 | if test -z "$defaultval"; then |
6e198e97 VZ |
12910 | if test x"$enablestring" = xdisable; then |
12911 | defaultval=yes | |
12912 | else | |
12913 | defaultval=no | |
12914 | fi | |
12915 | fi | |
12916 | ||
d589327a VZ |
12917 | { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5 |
12918 | echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6; } | |
47964710 | 12919 | # Check whether --enable-splash was given. |
a848cd7e | 12920 | if test "${enable_splash+set}" = set; then |
47964710 | 12921 | enableval=$enable_splash; |
a848cd7e | 12922 | if test "$enableval" = yes; then |
d970f7d5 | 12923 | wx_cv_use_splash='wxUSE_SPLASH=yes' |
a848cd7e | 12924 | else |
d970f7d5 | 12925 | wx_cv_use_splash='wxUSE_SPLASH=no' |
a848cd7e SC |
12926 | fi |
12927 | ||
12928 | else | |
12929 | ||
d970f7d5 | 12930 | wx_cv_use_splash='wxUSE_SPLASH=${'DEFAULT_wxUSE_SPLASH":-$defaultval}" |
a848cd7e | 12931 | |
47964710 VS |
12932 | fi |
12933 | ||
a848cd7e | 12934 | |
d970f7d5 | 12935 | eval "$wx_cv_use_splash" |
a848cd7e | 12936 | |
6e198e97 | 12937 | if test x"$enablestring" = xdisable; then |
7ac0e38e | 12938 | if test $wxUSE_SPLASH = no; then |
6e198e97 | 12939 | result=yes |
7ac0e38e VZ |
12940 | else |
12941 | result=no | |
6e198e97 | 12942 | fi |
a848cd7e | 12943 | else |
6e198e97 | 12944 | result=$wxUSE_SPLASH |
a848cd7e SC |
12945 | fi |
12946 | ||
d589327a VZ |
12947 | { echo "$as_me:$LINENO: result: $result" >&5 |
12948 | echo "${ECHO_T}$result" >&6; } | |
6e198e97 | 12949 | |
a848cd7e | 12950 | |
077c7880 | 12951 | enablestring= |
6e198e97 | 12952 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 12953 | if test -z "$defaultval"; then |
6e198e97 VZ |
12954 | if test x"$enablestring" = xdisable; then |
12955 | defaultval=yes | |
12956 | else | |
12957 | defaultval=no | |
12958 | fi | |
12959 | fi | |
12960 | ||
d589327a VZ |
12961 | { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5 |
12962 | echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6; } | |
47964710 | 12963 | # Check whether --enable-textdlg was given. |
a848cd7e | 12964 | if test "${enable_textdlg+set}" = set; then |
47964710 | 12965 | enableval=$enable_textdlg; |
a848cd7e | 12966 | if test "$enableval" = yes; then |
d970f7d5 | 12967 | wx_cv_use_textdlg='wxUSE_TEXTDLG=yes' |
a848cd7e | 12968 | else |
d970f7d5 | 12969 | wx_cv_use_textdlg='wxUSE_TEXTDLG=no' |
a848cd7e SC |
12970 | fi |
12971 | ||
12972 | else | |
12973 | ||
d970f7d5 | 12974 | wx_cv_use_textdlg='wxUSE_TEXTDLG=${'DEFAULT_wxUSE_TEXTDLG":-$defaultval}" |
a848cd7e | 12975 | |
47964710 VS |
12976 | fi |
12977 | ||
a848cd7e | 12978 | |
d970f7d5 | 12979 | eval "$wx_cv_use_textdlg" |
a848cd7e | 12980 | |
6e198e97 | 12981 | if test x"$enablestring" = xdisable; then |
7ac0e38e | 12982 | if test $wxUSE_TEXTDLG = no; then |
6e198e97 | 12983 | result=yes |
7ac0e38e VZ |
12984 | else |
12985 | result=no | |
6e198e97 | 12986 | fi |
a848cd7e | 12987 | else |
6e198e97 | 12988 | result=$wxUSE_TEXTDLG |
a848cd7e SC |
12989 | fi |
12990 | ||
d589327a VZ |
12991 | { echo "$as_me:$LINENO: result: $result" >&5 |
12992 | echo "${ECHO_T}$result" >&6; } | |
6e198e97 | 12993 | |
a848cd7e | 12994 | |
077c7880 | 12995 | enablestring= |
6e198e97 | 12996 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 12997 | if test -z "$defaultval"; then |
6e198e97 VZ |
12998 | if test x"$enablestring" = xdisable; then |
12999 | defaultval=yes | |
13000 | else | |
13001 | defaultval=no | |
13002 | fi | |
13003 | fi | |
13004 | ||
d589327a VZ |
13005 | { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5 |
13006 | echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6; } | |
47964710 | 13007 | # Check whether --enable-tipdlg was given. |
a848cd7e | 13008 | if test "${enable_tipdlg+set}" = set; then |
47964710 | 13009 | enableval=$enable_tipdlg; |
a848cd7e | 13010 | if test "$enableval" = yes; then |
d970f7d5 | 13011 | wx_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes' |
a848cd7e | 13012 | else |
d970f7d5 | 13013 | wx_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no' |
a848cd7e SC |
13014 | fi |
13015 | ||
13016 | else | |
13017 | ||
d970f7d5 | 13018 | wx_cv_use_tipdlg='wxUSE_STARTUP_TIPS=${'DEFAULT_wxUSE_STARTUP_TIPS":-$defaultval}" |
a848cd7e | 13019 | |
47964710 VS |
13020 | fi |
13021 | ||
a848cd7e | 13022 | |
d970f7d5 | 13023 | eval "$wx_cv_use_tipdlg" |
a848cd7e | 13024 | |
6e198e97 | 13025 | if test x"$enablestring" = xdisable; then |
7ac0e38e | 13026 | if test $wxUSE_STARTUP_TIPS = no; then |
6e198e97 | 13027 | result=yes |
7ac0e38e VZ |
13028 | else |
13029 | result=no | |
6e198e97 | 13030 | fi |
a848cd7e | 13031 | else |
6e198e97 | 13032 | result=$wxUSE_STARTUP_TIPS |
a848cd7e SC |
13033 | fi |
13034 | ||
d589327a VZ |
13035 | { echo "$as_me:$LINENO: result: $result" >&5 |
13036 | echo "${ECHO_T}$result" >&6; } | |
6e198e97 | 13037 | |
a848cd7e | 13038 | |
077c7880 | 13039 | enablestring= |
6e198e97 | 13040 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 13041 | if test -z "$defaultval"; then |
6e198e97 VZ |
13042 | if test x"$enablestring" = xdisable; then |
13043 | defaultval=yes | |
13044 | else | |
13045 | defaultval=no | |
13046 | fi | |
13047 | fi | |
13048 | ||
d589327a VZ |
13049 | { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5 |
13050 | echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6; } | |
47964710 | 13051 | # Check whether --enable-progressdlg was given. |
a848cd7e | 13052 | if test "${enable_progressdlg+set}" = set; then |
47964710 | 13053 | enableval=$enable_progressdlg; |
a848cd7e | 13054 | if test "$enableval" = yes; then |
d970f7d5 | 13055 | wx_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes' |
a848cd7e | 13056 | else |
d970f7d5 | 13057 | wx_cv_use_progressdlg='wxUSE_PROGRESSDLG=no' |
a848cd7e SC |
13058 | fi |
13059 | ||
13060 | else | |
13061 | ||
d970f7d5 | 13062 | wx_cv_use_progressdlg='wxUSE_PROGRESSDLG=${'DEFAULT_wxUSE_PROGRESSDLG":-$defaultval}" |
a848cd7e | 13063 | |
47964710 VS |
13064 | fi |
13065 | ||
a848cd7e | 13066 | |
d970f7d5 | 13067 | eval "$wx_cv_use_progressdlg" |
a848cd7e | 13068 | |
6e198e97 | 13069 | if test x"$enablestring" = xdisable; then |
7ac0e38e | 13070 | if test $wxUSE_PROGRESSDLG = no; then |
6e198e97 | 13071 | result=yes |
7ac0e38e VZ |
13072 | else |
13073 | result=no | |
6e198e97 | 13074 | fi |
a848cd7e | 13075 | else |
6e198e97 | 13076 | result=$wxUSE_PROGRESSDLG |
a848cd7e SC |
13077 | fi |
13078 | ||
d589327a VZ |
13079 | { echo "$as_me:$LINENO: result: $result" >&5 |
13080 | echo "${ECHO_T}$result" >&6; } | |
6e198e97 | 13081 | |
a848cd7e | 13082 | |
077c7880 | 13083 | enablestring= |
6e198e97 | 13084 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 13085 | if test -z "$defaultval"; then |
6e198e97 VZ |
13086 | if test x"$enablestring" = xdisable; then |
13087 | defaultval=yes | |
13088 | else | |
13089 | defaultval=no | |
13090 | fi | |
13091 | fi | |
13092 | ||
d589327a VZ |
13093 | { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5 |
13094 | echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6; } | |
47964710 | 13095 | # Check whether --enable-wizarddlg was given. |
a848cd7e | 13096 | if test "${enable_wizarddlg+set}" = set; then |
47964710 | 13097 | enableval=$enable_wizarddlg; |
a848cd7e | 13098 | if test "$enableval" = yes; then |
d970f7d5 | 13099 | wx_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes' |
a848cd7e | 13100 | else |
d970f7d5 | 13101 | wx_cv_use_wizarddlg='wxUSE_WIZARDDLG=no' |
a848cd7e SC |
13102 | fi |
13103 | ||
13104 | else | |
13105 | ||
d970f7d5 | 13106 | wx_cv_use_wizarddlg='wxUSE_WIZARDDLG=${'DEFAULT_wxUSE_WIZARDDLG":-$defaultval}" |
a848cd7e | 13107 | |
47964710 VS |
13108 | fi |
13109 | ||
a848cd7e | 13110 | |
d970f7d5 | 13111 | eval "$wx_cv_use_wizarddlg" |
a848cd7e | 13112 | |
6e198e97 | 13113 | if test x"$enablestring" = xdisable; then |
7ac0e38e | 13114 | if test $wxUSE_WIZARDDLG = no; then |
6e198e97 | 13115 | result=yes |
7ac0e38e VZ |
13116 | else |
13117 | result=no | |
6e198e97 | 13118 | fi |
a848cd7e | 13119 | else |
6e198e97 | 13120 | result=$wxUSE_WIZARDDLG |
a848cd7e SC |
13121 | fi |
13122 | ||
d589327a VZ |
13123 | { echo "$as_me:$LINENO: result: $result" >&5 |
13124 | echo "${ECHO_T}$result" >&6; } | |
6e198e97 | 13125 | |
a848cd7e SC |
13126 | |
13127 | ||
13128 | ||
077c7880 | 13129 | enablestring= |
6e198e97 | 13130 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 13131 | if test -z "$defaultval"; then |
6e198e97 VZ |
13132 | if test x"$enablestring" = xdisable; then |
13133 | defaultval=yes | |
13134 | else | |
13135 | defaultval=no | |
13136 | fi | |
13137 | fi | |
13138 | ||
d589327a VZ |
13139 | { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5 |
13140 | echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6; } | |
47964710 | 13141 | # Check whether --enable-menus was given. |
a848cd7e | 13142 | if test "${enable_menus+set}" = set; then |
47964710 | 13143 | enableval=$enable_menus; |
a848cd7e | 13144 | if test "$enableval" = yes; then |
d970f7d5 | 13145 | wx_cv_use_menus='wxUSE_MENUS=yes' |
a848cd7e | 13146 | else |
d970f7d5 | 13147 | wx_cv_use_menus='wxUSE_MENUS=no' |
a848cd7e SC |
13148 | fi |
13149 | ||
13150 | else | |
13151 | ||
d970f7d5 | 13152 | wx_cv_use_menus='wxUSE_MENUS=${'DEFAULT_wxUSE_MENUS":-$defaultval}" |
a848cd7e | 13153 | |
47964710 VS |
13154 | fi |
13155 | ||
a848cd7e | 13156 | |
d970f7d5 | 13157 | eval "$wx_cv_use_menus" |
a848cd7e | 13158 | |
6e198e97 | 13159 | if test x"$enablestring" = xdisable; then |
7ac0e38e | 13160 | if test $wxUSE_MENUS = no; then |
6e198e97 | 13161 | result=yes |
7ac0e38e VZ |
13162 | else |
13163 | result=no | |
6e198e97 | 13164 | fi |
a848cd7e | 13165 | else |
6e198e97 | 13166 | result=$wxUSE_MENUS |
a848cd7e SC |
13167 | fi |
13168 | ||
d589327a VZ |
13169 | { echo "$as_me:$LINENO: result: $result" >&5 |
13170 | echo "${ECHO_T}$result" >&6; } | |
6e198e97 | 13171 | |
a848cd7e | 13172 | |
077c7880 | 13173 | enablestring= |
6e198e97 | 13174 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 13175 | if test -z "$defaultval"; then |
6e198e97 VZ |
13176 | if test x"$enablestring" = xdisable; then |
13177 | defaultval=yes | |
13178 | else | |
13179 | defaultval=no | |
13180 | fi | |
13181 | fi | |
13182 | ||
d589327a VZ |
13183 | { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5 |
13184 | echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6; } | |
47964710 | 13185 | # Check whether --enable-miniframe was given. |
a848cd7e | 13186 | if test "${enable_miniframe+set}" = set; then |
47964710 | 13187 | enableval=$enable_miniframe; |
a848cd7e | 13188 | if test "$enableval" = yes; then |
d970f7d5 | 13189 | wx_cv_use_miniframe='wxUSE_MINIFRAME=yes' |
a848cd7e | 13190 | else |
d970f7d5 | 13191 | wx_cv_use_miniframe='wxUSE_MINIFRAME=no' |
a848cd7e SC |
13192 | fi |
13193 | ||
13194 | else | |
13195 | ||
d970f7d5 | 13196 | wx_cv_use_miniframe='wxUSE_MINIFRAME=${'DEFAULT_wxUSE_MINIFRAME":-$defaultval}" |
a848cd7e | 13197 | |
47964710 VS |
13198 | fi |
13199 | ||
a848cd7e | 13200 | |
d970f7d5 | 13201 | eval "$wx_cv_use_miniframe" |
a848cd7e | 13202 | |
6e198e97 | 13203 | if test x"$enablestring" = xdisable; then |
7ac0e38e | 13204 | if test $wxUSE_MINIFRAME = no; then |
6e198e97 | 13205 | result=yes |
7ac0e38e VZ |
13206 | else |
13207 | result=no | |
6e198e97 | 13208 | fi |
a848cd7e | 13209 | else |
6e198e97 | 13210 | result=$wxUSE_MINIFRAME |
a848cd7e SC |
13211 | fi |
13212 | ||
d589327a VZ |
13213 | { echo "$as_me:$LINENO: result: $result" >&5 |
13214 | echo "${ECHO_T}$result" >&6; } | |
6e198e97 | 13215 | |
a848cd7e | 13216 | |
077c7880 | 13217 | enablestring= |
6e198e97 | 13218 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 13219 | if test -z "$defaultval"; then |
6e198e97 VZ |
13220 | if test x"$enablestring" = xdisable; then |
13221 | defaultval=yes | |
13222 | else | |
13223 | defaultval=no | |
13224 | fi | |
13225 | fi | |
13226 | ||
d589327a VZ |
13227 | { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5 |
13228 | echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6; } | |
47964710 | 13229 | # Check whether --enable-tooltips was given. |
a848cd7e | 13230 | if test "${enable_tooltips+set}" = set; then |
47964710 | 13231 | enableval=$enable_tooltips; |
a848cd7e | 13232 | if test "$enableval" = yes; then |
d970f7d5 | 13233 | wx_cv_use_tooltips='wxUSE_TOOLTIPS=yes' |
a848cd7e | 13234 | else |
d970f7d5 | 13235 | wx_cv_use_tooltips='wxUSE_TOOLTIPS=no' |
a848cd7e SC |
13236 | fi |
13237 | ||
13238 | else | |
13239 | ||
d970f7d5 | 13240 | wx_cv_use_tooltips='wxUSE_TOOLTIPS=${'DEFAULT_wxUSE_TOOLTIPS":-$defaultval}" |
a848cd7e | 13241 | |
47964710 VS |
13242 | fi |
13243 | ||
a848cd7e | 13244 | |
d970f7d5 | 13245 | eval "$wx_cv_use_tooltips" |
a848cd7e | 13246 | |
6e198e97 | 13247 | if test x"$enablestring" = xdisable; then |
7ac0e38e | 13248 | if test $wxUSE_TOOLTIPS = no; then |
6e198e97 | 13249 | result=yes |
7ac0e38e VZ |
13250 | else |
13251 | result=no | |
6e198e97 | 13252 | fi |
a848cd7e | 13253 | else |
6e198e97 | 13254 | result=$wxUSE_TOOLTIPS |
a848cd7e SC |
13255 | fi |
13256 | ||
d589327a VZ |
13257 | { echo "$as_me:$LINENO: result: $result" >&5 |
13258 | echo "${ECHO_T}$result" >&6; } | |
6e198e97 | 13259 | |
a848cd7e | 13260 | |
077c7880 | 13261 | enablestring= |
6e198e97 | 13262 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 13263 | if test -z "$defaultval"; then |
6e198e97 VZ |
13264 | if test x"$enablestring" = xdisable; then |
13265 | defaultval=yes | |
13266 | else | |
13267 | defaultval=no | |
13268 | fi | |
13269 | fi | |
13270 | ||
d589327a VZ |
13271 | { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5 |
13272 | echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6; } | |
47964710 | 13273 | # Check whether --enable-splines was given. |
a848cd7e | 13274 | if test "${enable_splines+set}" = set; then |
47964710 | 13275 | enableval=$enable_splines; |
a848cd7e | 13276 | if test "$enableval" = yes; then |
d970f7d5 | 13277 | wx_cv_use_splines='wxUSE_SPLINES=yes' |
a848cd7e | 13278 | else |
d970f7d5 | 13279 | wx_cv_use_splines='wxUSE_SPLINES=no' |
a848cd7e SC |
13280 | fi |
13281 | ||
13282 | else | |
13283 | ||
d970f7d5 | 13284 | wx_cv_use_splines='wxUSE_SPLINES=${'DEFAULT_wxUSE_SPLINES":-$defaultval}" |
a848cd7e | 13285 | |
47964710 VS |
13286 | fi |
13287 | ||
a848cd7e | 13288 | |
d970f7d5 | 13289 | eval "$wx_cv_use_splines" |
a848cd7e | 13290 | |
6e198e97 | 13291 | if test x"$enablestring" = xdisable; then |
7ac0e38e | 13292 | if test $wxUSE_SPLINES = no; then |
6e198e97 | 13293 | result=yes |
7ac0e38e VZ |
13294 | else |
13295 | result=no | |
6e198e97 | 13296 | fi |
a848cd7e | 13297 | else |
6e198e97 | 13298 | result=$wxUSE_SPLINES |
a848cd7e SC |
13299 | fi |
13300 | ||
d589327a VZ |
13301 | { echo "$as_me:$LINENO: result: $result" >&5 |
13302 | echo "${ECHO_T}$result" >&6; } | |
6e198e97 | 13303 | |
a848cd7e | 13304 | |
077c7880 | 13305 | enablestring= |
6e198e97 | 13306 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 13307 | if test -z "$defaultval"; then |
6e198e97 VZ |
13308 | if test x"$enablestring" = xdisable; then |
13309 | defaultval=yes | |
13310 | else | |
13311 | defaultval=no | |
13312 | fi | |
13313 | fi | |
13314 | ||
d589327a VZ |
13315 | { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mousewheel" >&5 |
13316 | echo $ECHO_N "checking for --${enablestring:-enable}-mousewheel... $ECHO_C" >&6; } | |
47964710 | 13317 | # Check whether --enable-mousewheel was given. |
fbe2ca43 | 13318 | if test "${enable_mousewheel+set}" = set; then |
47964710 | 13319 | enableval=$enable_mousewheel; |
fbe2ca43 | 13320 | if test "$enableval" = yes; then |
d970f7d5 | 13321 | wx_cv_use_mousewheel='wxUSE_MOUSEWHEEL=yes' |
fbe2ca43 | 13322 | else |
d970f7d5 | 13323 | wx_cv_use_mousewheel='wxUSE_MOUSEWHEEL=no' |
fbe2ca43 SN |
13324 | fi |
13325 | ||
13326 | else | |
13327 | ||
d970f7d5 | 13328 | wx_cv_use_mousewheel='wxUSE_MOUSEWHEEL=${'DEFAULT_wxUSE_MOUSEWHEEL":-$defaultval}" |
fbe2ca43 | 13329 | |
47964710 VS |
13330 | fi |
13331 | ||
fbe2ca43 | 13332 | |
d970f7d5 | 13333 | eval "$wx_cv_use_mousewheel" |
fbe2ca43 | 13334 | |
6e198e97 | 13335 | if test x"$enablestring" = xdisable; then |
7ac0e38e | 13336 | if test $wxUSE_MOUSEWHEEL = no; then |
6e198e97 | 13337 | result=yes |
7ac0e38e VZ |
13338 | else |
13339 | result=no | |
6e198e97 | 13340 | fi |
fbe2ca43 | 13341 | else |
6e198e97 | 13342 | result=$wxUSE_MOUSEWHEEL |
fbe2ca43 SN |
13343 | fi |
13344 | ||
d589327a VZ |
13345 | { echo "$as_me:$LINENO: result: $result" >&5 |
13346 | echo "${ECHO_T}$result" >&6; } | |
6e198e97 | 13347 | |
fbe2ca43 | 13348 | |
077c7880 | 13349 | enablestring= |
6e198e97 | 13350 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 13351 | if test -z "$defaultval"; then |
6e198e97 VZ |
13352 | if test x"$enablestring" = xdisable; then |
13353 | defaultval=yes | |
13354 | else | |
13355 | defaultval=no | |
13356 | fi | |
13357 | fi | |
13358 | ||
d589327a VZ |
13359 | { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5 |
13360 | echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6; } | |
47964710 | 13361 | # Check whether --enable-validators was given. |
a848cd7e | 13362 | if test "${enable_validators+set}" = set; then |
47964710 | 13363 | enableval=$enable_validators; |
a848cd7e | 13364 | if test "$enableval" = yes; then |
d970f7d5 | 13365 | wx_cv_use_validators='wxUSE_VALIDATORS=yes' |
a848cd7e | 13366 | else |
d970f7d5 | 13367 | wx_cv_use_validators='wxUSE_VALIDATORS=no' |
a848cd7e SC |
13368 | fi |
13369 | ||
13370 | else | |
13371 | ||
d970f7d5 | 13372 | wx_cv_use_validators='wxUSE_VALIDATORS=${'DEFAULT_wxUSE_VALIDATORS":-$defaultval}" |
a848cd7e | 13373 | |
47964710 VS |
13374 | fi |
13375 | ||
a848cd7e | 13376 | |
d970f7d5 | 13377 | eval "$wx_cv_use_validators" |
a848cd7e | 13378 | |
6e198e97 | 13379 | if test x"$enablestring" = xdisable; then |
7ac0e38e | 13380 | if test $wxUSE_VALIDATORS = no; then |
6e198e97 | 13381 | result=yes |
7ac0e38e VZ |
13382 | else |
13383 | result=no | |
6e198e97 | 13384 | fi |
a848cd7e | 13385 | else |
6e198e97 | 13386 | result=$wxUSE_VALIDATORS |
a848cd7e SC |
13387 | fi |
13388 | ||
d589327a VZ |
13389 | { echo "$as_me:$LINENO: result: $result" >&5 |
13390 | echo "${ECHO_T}$result" >&6; } | |
6e198e97 | 13391 | |
a848cd7e | 13392 | |
077c7880 | 13393 | enablestring= |
6e198e97 | 13394 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 13395 | if test -z "$defaultval"; then |
6e198e97 VZ |
13396 | if test x"$enablestring" = xdisable; then |
13397 | defaultval=yes | |
13398 | else | |
13399 | defaultval=no | |
13400 | fi | |
13401 | fi | |
13402 | ||
d589327a VZ |
13403 | { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5 |
13404 | echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6; } | |
47964710 | 13405 | # Check whether --enable-busyinfo was given. |
a848cd7e | 13406 | if test "${enable_busyinfo+set}" = set; then |
47964710 | 13407 | enableval=$enable_busyinfo; |
a848cd7e | 13408 | if test "$enableval" = yes; then |
d970f7d5 | 13409 | wx_cv_use_busyinfo='wxUSE_BUSYINFO=yes' |
a848cd7e | 13410 | else |
d970f7d5 | 13411 | wx_cv_use_busyinfo='wxUSE_BUSYINFO=no' |
a848cd7e SC |
13412 | fi |
13413 | ||
13414 | else | |
13415 | ||
d970f7d5 | 13416 | wx_cv_use_busyinfo='wxUSE_BUSYINFO=${'DEFAULT_wxUSE_BUSYINFO":-$defaultval}" |
a848cd7e | 13417 | |
47964710 VS |
13418 | fi |
13419 | ||
a848cd7e | 13420 | |
d970f7d5 | 13421 | eval "$wx_cv_use_busyinfo" |
a848cd7e | 13422 | |
6e198e97 | 13423 | if test x"$enablestring" = xdisable; then |
7ac0e38e | 13424 | if test $wxUSE_BUSYINFO = no; then |
6e198e97 | 13425 | result=yes |
7ac0e38e VZ |
13426 | else |
13427 | result=no | |
6e198e97 | 13428 | fi |
a848cd7e | 13429 | else |
6e198e97 | 13430 | result=$wxUSE_BUSYINFO |
a848cd7e SC |
13431 | fi |
13432 | ||
d589327a VZ |
13433 | { echo "$as_me:$LINENO: result: $result" >&5 |
13434 | echo "${ECHO_T}$result" >&6; } | |
6e198e97 | 13435 | |
a848cd7e | 13436 | |
077c7880 | 13437 | enablestring= |
6e198e97 | 13438 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 13439 | if test -z "$defaultval"; then |
6e198e97 VZ |
13440 | if test x"$enablestring" = xdisable; then |
13441 | defaultval=yes | |
13442 | else | |
13443 | defaultval=no | |
13444 | fi | |
13445 | fi | |
13446 | ||
d589327a VZ |
13447 | { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5 |
13448 | echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6; } | |
47964710 | 13449 | # Check whether --enable-joystick was given. |
a848cd7e | 13450 | if test "${enable_joystick+set}" = set; then |
47964710 | 13451 | enableval=$enable_joystick; |
a848cd7e | 13452 | if test "$enableval" = yes; then |
d970f7d5 | 13453 | wx_cv_use_joystick='wxUSE_JOYSTICK=yes' |
a848cd7e | 13454 | else |
d970f7d5 | 13455 | wx_cv_use_joystick='wxUSE_JOYSTICK=no' |
a848cd7e SC |
13456 | fi |
13457 | ||
13458 | else | |
13459 | ||
d970f7d5 | 13460 | wx_cv_use_joystick='wxUSE_JOYSTICK=${'DEFAULT_wxUSE_JOYSTICK":-$defaultval}" |
a848cd7e | 13461 | |
47964710 VS |
13462 | fi |
13463 | ||
a848cd7e | 13464 | |
d970f7d5 | 13465 | eval "$wx_cv_use_joystick" |
a848cd7e | 13466 | |
6e198e97 | 13467 | if test x"$enablestring" = xdisable; then |
7ac0e38e | 13468 | if test $wxUSE_JOYSTICK = no; then |
6e198e97 | 13469 | result=yes |
7ac0e38e VZ |
13470 | else |
13471 | result=no | |
6e198e97 | 13472 | fi |
a848cd7e | 13473 | else |
6e198e97 | 13474 | result=$wxUSE_JOYSTICK |
a848cd7e SC |
13475 | fi |
13476 | ||
d589327a VZ |
13477 | { echo "$as_me:$LINENO: result: $result" >&5 |
13478 | echo "${ECHO_T}$result" >&6; } | |
6e198e97 | 13479 | |
a848cd7e | 13480 | |
077c7880 | 13481 | enablestring= |
6e198e97 | 13482 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 13483 | if test -z "$defaultval"; then |
6e198e97 VZ |
13484 | if test x"$enablestring" = xdisable; then |
13485 | defaultval=yes | |
13486 | else | |
13487 | defaultval=no | |
13488 | fi | |
13489 | fi | |
13490 | ||
d589327a VZ |
13491 | { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5 |
13492 | echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6; } | |
47964710 | 13493 | # Check whether --enable-metafile was given. |
a848cd7e | 13494 | if test "${enable_metafile+set}" = set; then |
47964710 | 13495 | enableval=$enable_metafile; |
a848cd7e | 13496 | if test "$enableval" = yes; then |
d970f7d5 | 13497 | wx_cv_use_metafile='wxUSE_METAFILE=yes' |
a848cd7e | 13498 | else |
d970f7d5 | 13499 | wx_cv_use_metafile='wxUSE_METAFILE=no' |
a848cd7e SC |
13500 | fi |
13501 | ||
13502 | else | |
13503 | ||
d970f7d5 | 13504 | wx_cv_use_metafile='wxUSE_METAFILE=${'DEFAULT_wxUSE_METAFILE":-$defaultval}" |
a848cd7e | 13505 | |
47964710 VS |
13506 | fi |
13507 | ||
a848cd7e | 13508 | |
d970f7d5 | 13509 | eval "$wx_cv_use_metafile" |
a848cd7e | 13510 | |
6e198e97 | 13511 | if test x"$enablestring" = xdisable; then |
7ac0e38e | 13512 | if test $wxUSE_METAFILE = no; then |
6e198e97 | 13513 | result=yes |
7ac0e38e VZ |
13514 | else |
13515 | result=no | |
6e198e97 | 13516 | fi |
a848cd7e | 13517 | else |
6e198e97 | 13518 | result=$wxUSE_METAFILE |
a848cd7e SC |
13519 | fi |
13520 | ||
d589327a VZ |
13521 | { echo "$as_me:$LINENO: result: $result" >&5 |
13522 | echo "${ECHO_T}$result" >&6; } | |
6e198e97 | 13523 | |
a848cd7e | 13524 | |
077c7880 | 13525 | enablestring= |
6e198e97 | 13526 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 13527 | if test -z "$defaultval"; then |
6e198e97 VZ |
13528 | if test x"$enablestring" = xdisable; then |
13529 | defaultval=yes | |
13530 | else | |
13531 | defaultval=no | |
13532 | fi | |
13533 | fi | |
13534 | ||
d589327a VZ |
13535 | { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5 |
13536 | echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6; } | |
47964710 | 13537 | # Check whether --enable-dragimage was given. |
a848cd7e | 13538 | if test "${enable_dragimage+set}" = set; then |
47964710 | 13539 | enableval=$enable_dragimage; |
a848cd7e | 13540 | if test "$enableval" = yes; then |
d970f7d5 | 13541 | wx_cv_use_dragimage='wxUSE_DRAGIMAGE=yes' |
a848cd7e | 13542 | else |
d970f7d5 | 13543 | wx_cv_use_dragimage='wxUSE_DRAGIMAGE=no' |
a848cd7e SC |
13544 | fi |
13545 | ||
13546 | else | |
13547 | ||
d970f7d5 | 13548 | wx_cv_use_dragimage='wxUSE_DRAGIMAGE=${'DEFAULT_wxUSE_DRAGIMAGE":-$defaultval}" |
a848cd7e | 13549 | |
47964710 VS |
13550 | fi |
13551 | ||
a848cd7e | 13552 | |
d970f7d5 | 13553 | eval "$wx_cv_use_dragimage" |
a848cd7e | 13554 | |
6e198e97 | 13555 | if test x"$enablestring" = xdisable; then |
7ac0e38e | 13556 | if test $wxUSE_DRAGIMAGE = no; then |
6e198e97 | 13557 | result=yes |
7ac0e38e VZ |
13558 | else |
13559 | result=no | |
6e198e97 | 13560 | fi |
a848cd7e | 13561 | else |
6e198e97 | 13562 | result=$wxUSE_DRAGIMAGE |
a848cd7e SC |
13563 | fi |
13564 | ||
d589327a VZ |
13565 | { echo "$as_me:$LINENO: result: $result" >&5 |
13566 | echo "${ECHO_T}$result" >&6; } | |
6e198e97 | 13567 | |
a848cd7e | 13568 | |
077c7880 | 13569 | enablestring= |
6e198e97 | 13570 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 13571 | if test -z "$defaultval"; then |
6e198e97 VZ |
13572 | if test x"$enablestring" = xdisable; then |
13573 | defaultval=yes | |
13574 | else | |
13575 | defaultval=no | |
13576 | fi | |
13577 | fi | |
13578 | ||
d589327a VZ |
13579 | { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5 |
13580 | echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6; } | |
47964710 | 13581 | # Check whether --enable-accessibility was given. |
a848cd7e | 13582 | if test "${enable_accessibility+set}" = set; then |
47964710 | 13583 | enableval=$enable_accessibility; |
a848cd7e | 13584 | if test "$enableval" = yes; then |
d970f7d5 | 13585 | wx_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes' |
a848cd7e | 13586 | else |
d970f7d5 | 13587 | wx_cv_use_accessibility='wxUSE_ACCESSIBILITY=no' |
a848cd7e SC |
13588 | fi |
13589 | ||
13590 | else | |
13591 | ||
d970f7d5 | 13592 | wx_cv_use_accessibility='wxUSE_ACCESSIBILITY=${'DEFAULT_wxUSE_ACCESSIBILITY":-$defaultval}" |
a848cd7e | 13593 | |
47964710 VS |
13594 | fi |
13595 | ||
a848cd7e | 13596 | |
d970f7d5 | 13597 | eval "$wx_cv_use_accessibility" |
a848cd7e | 13598 | |
6e198e97 | 13599 | if test x"$enablestring" = xdisable; then |
7ac0e38e | 13600 | if test $wxUSE_ACCESSIBILITY = no; then |
6e198e97 | 13601 | result=yes |
7ac0e38e VZ |
13602 | else |
13603 | result=no | |
6e198e97 | 13604 | fi |
a848cd7e | 13605 | else |
6e198e97 | 13606 | result=$wxUSE_ACCESSIBILITY |
a848cd7e SC |
13607 | fi |
13608 | ||
d589327a VZ |
13609 | { echo "$as_me:$LINENO: result: $result" >&5 |
13610 | echo "${ECHO_T}$result" >&6; } | |
6e198e97 | 13611 | |
a848cd7e | 13612 | |
9b7e0226 VZ |
13613 | enablestring= |
13614 | defaultval=$wxUSE_ALL_FEATURES | |
13615 | if test -z "$defaultval"; then | |
13616 | if test x"$enablestring" = xdisable; then | |
13617 | defaultval=yes | |
13618 | else | |
13619 | defaultval=no | |
13620 | fi | |
13621 | fi | |
13622 | ||
13623 | { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-uiactionsim" >&5 | |
13624 | echo $ECHO_N "checking for --${enablestring:-enable}-uiactionsim... $ECHO_C" >&6; } | |
13625 | # Check whether --enable-uiactionsim was given. | |
13626 | if test "${enable_uiactionsim+set}" = set; then | |
13627 | enableval=$enable_uiactionsim; | |
13628 | if test "$enableval" = yes; then | |
13629 | wx_cv_use_uiactionsim='wxUSE_UIACTIONSIMULATOR=yes' | |
13630 | else | |
13631 | wx_cv_use_uiactionsim='wxUSE_UIACTIONSIMULATOR=no' | |
13632 | fi | |
13633 | ||
13634 | else | |
13635 | ||
13636 | wx_cv_use_uiactionsim='wxUSE_UIACTIONSIMULATOR=${'DEFAULT_wxUSE_UIACTIONSIMULATOR":-$defaultval}" | |
13637 | ||
13638 | fi | |
13639 | ||
13640 | ||
13641 | eval "$wx_cv_use_uiactionsim" | |
13642 | ||
13643 | if test x"$enablestring" = xdisable; then | |
13644 | if test $wxUSE_UIACTIONSIMULATOR = no; then | |
13645 | result=yes | |
13646 | else | |
13647 | result=no | |
13648 | fi | |
13649 | else | |
13650 | result=$wxUSE_UIACTIONSIMULATOR | |
13651 | fi | |
13652 | ||
13653 | { echo "$as_me:$LINENO: result: $result" >&5 | |
13654 | echo "${ECHO_T}$result" >&6; } | |
13655 | ||
13656 | ||
a848cd7e SC |
13657 | |
13658 | ||
077c7880 | 13659 | enablestring= |
6e198e97 | 13660 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 13661 | if test -z "$defaultval"; then |
6e198e97 VZ |
13662 | if test x"$enablestring" = xdisable; then |
13663 | defaultval=yes | |
13664 | else | |
13665 | defaultval=no | |
13666 | fi | |
13667 | fi | |
13668 | ||
d589327a VZ |
13669 | { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5 |
13670 | echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6; } | |
47964710 | 13671 | # Check whether --enable-palette was given. |
a848cd7e | 13672 | if test "${enable_palette+set}" = set; then |
47964710 | 13673 | enableval=$enable_palette; |
a848cd7e | 13674 | if test "$enableval" = yes; then |
d970f7d5 | 13675 | wx_cv_use_palette='wxUSE_PALETTE=yes' |
a848cd7e | 13676 | else |
d970f7d5 | 13677 | wx_cv_use_palette='wxUSE_PALETTE=no' |
a848cd7e SC |
13678 | fi |
13679 | ||
13680 | else | |
13681 | ||
d970f7d5 | 13682 | wx_cv_use_palette='wxUSE_PALETTE=${'DEFAULT_wxUSE_PALETTE":-$defaultval}" |
a848cd7e | 13683 | |
47964710 VS |
13684 | fi |
13685 | ||
a848cd7e | 13686 | |
d970f7d5 | 13687 | eval "$wx_cv_use_palette" |
a848cd7e | 13688 | |
6e198e97 | 13689 | if test x"$enablestring" = xdisable; then |
7ac0e38e | 13690 | if test $wxUSE_PALETTE = no; then |
6e198e97 | 13691 | result=yes |
7ac0e38e VZ |
13692 | else |
13693 | result=no | |
6e198e97 | 13694 | fi |
a848cd7e | 13695 | else |
6e198e97 | 13696 | result=$wxUSE_PALETTE |
a848cd7e SC |
13697 | fi |
13698 | ||
d589327a VZ |
13699 | { echo "$as_me:$LINENO: result: $result" >&5 |
13700 | echo "${ECHO_T}$result" >&6; } | |
6e198e97 | 13701 | |
a848cd7e | 13702 | |
077c7880 | 13703 | enablestring= |
6e198e97 | 13704 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 13705 | if test -z "$defaultval"; then |
6e198e97 VZ |
13706 | if test x"$enablestring" = xdisable; then |
13707 | defaultval=yes | |
13708 | else | |
13709 | defaultval=no | |
13710 | fi | |
13711 | fi | |
13712 | ||
d589327a VZ |
13713 | { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5 |
13714 | echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6; } | |
47964710 | 13715 | # Check whether --enable-image was given. |
a848cd7e | 13716 | if test "${enable_image+set}" = set; then |
47964710 | 13717 | enableval=$enable_image; |
a848cd7e | 13718 | if test "$enableval" = yes; then |
d970f7d5 | 13719 | wx_cv_use_image='wxUSE_IMAGE=yes' |
a848cd7e | 13720 | else |
d970f7d5 | 13721 | wx_cv_use_image='wxUSE_IMAGE=no' |
a848cd7e SC |
13722 | fi |
13723 | ||
13724 | else | |
13725 | ||
d970f7d5 | 13726 | wx_cv_use_image='wxUSE_IMAGE=${'DEFAULT_wxUSE_IMAGE":-$defaultval}" |
a848cd7e | 13727 | |
47964710 VS |
13728 | fi |
13729 | ||
a848cd7e | 13730 | |
d970f7d5 | 13731 | eval "$wx_cv_use_image" |
a848cd7e | 13732 | |
6e198e97 | 13733 | if test x"$enablestring" = xdisable; then |
7ac0e38e | 13734 | if test $wxUSE_IMAGE = no; then |
6e198e97 | 13735 | result=yes |
7ac0e38e VZ |
13736 | else |
13737 | result=no | |
6e198e97 | 13738 | fi |
a848cd7e | 13739 | else |
6e198e97 | 13740 | result=$wxUSE_IMAGE |
a848cd7e SC |
13741 | fi |
13742 | ||
d589327a VZ |
13743 | { echo "$as_me:$LINENO: result: $result" >&5 |
13744 | echo "${ECHO_T}$result" >&6; } | |
6e198e97 | 13745 | |
a848cd7e | 13746 | |
077c7880 | 13747 | enablestring= |
6e198e97 | 13748 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 13749 | if test -z "$defaultval"; then |
6e198e97 VZ |
13750 | if test x"$enablestring" = xdisable; then |
13751 | defaultval=yes | |
13752 | else | |
13753 | defaultval=no | |
13754 | fi | |
13755 | fi | |
13756 | ||
d589327a VZ |
13757 | { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5 |
13758 | echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6; } | |
47964710 | 13759 | # Check whether --enable-gif was given. |
a848cd7e | 13760 | if test "${enable_gif+set}" = set; then |
47964710 | 13761 | enableval=$enable_gif; |
a848cd7e | 13762 | if test "$enableval" = yes; then |
d970f7d5 | 13763 | wx_cv_use_gif='wxUSE_GIF=yes' |
a848cd7e | 13764 | else |
d970f7d5 | 13765 | wx_cv_use_gif='wxUSE_GIF=no' |
a848cd7e SC |
13766 | fi |
13767 | ||
13768 | else | |
13769 | ||
d970f7d5 | 13770 | wx_cv_use_gif='wxUSE_GIF=${'DEFAULT_wxUSE_GIF":-$defaultval}" |
a848cd7e | 13771 | |
47964710 VS |
13772 | fi |
13773 | ||
a848cd7e | 13774 | |
d970f7d5 | 13775 | eval "$wx_cv_use_gif" |
a848cd7e | 13776 | |
6e198e97 | 13777 | if test x"$enablestring" = xdisable; then |
7ac0e38e | 13778 | if test $wxUSE_GIF = no; then |
6e198e97 | 13779 | result=yes |
7ac0e38e VZ |
13780 | else |
13781 | result=no | |
6e198e97 | 13782 | fi |
a848cd7e | 13783 | else |
6e198e97 | 13784 | result=$wxUSE_GIF |
a848cd7e SC |
13785 | fi |
13786 | ||
d589327a VZ |
13787 | { echo "$as_me:$LINENO: result: $result" >&5 |
13788 | echo "${ECHO_T}$result" >&6; } | |
6e198e97 | 13789 | |
a848cd7e | 13790 | |
077c7880 | 13791 | enablestring= |
6e198e97 | 13792 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 13793 | if test -z "$defaultval"; then |
6e198e97 VZ |
13794 | if test x"$enablestring" = xdisable; then |
13795 | defaultval=yes | |
13796 | else | |
13797 | defaultval=no | |
13798 | fi | |
13799 | fi | |
13800 | ||
d589327a VZ |
13801 | { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5 |
13802 | echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6; } | |
47964710 | 13803 | # Check whether --enable-pcx was given. |
a848cd7e | 13804 | if test "${enable_pcx+set}" = set; then |
47964710 | 13805 | enableval=$enable_pcx; |
a848cd7e | 13806 | if test "$enableval" = yes; then |
d970f7d5 | 13807 | wx_cv_use_pcx='wxUSE_PCX=yes' |
a848cd7e | 13808 | else |
d970f7d5 | 13809 | wx_cv_use_pcx='wxUSE_PCX=no' |
a848cd7e SC |
13810 | fi |
13811 | ||
13812 | else | |
13813 | ||
d970f7d5 | 13814 | wx_cv_use_pcx='wxUSE_PCX=${'DEFAULT_wxUSE_PCX":-$defaultval}" |
a848cd7e | 13815 | |
47964710 VS |
13816 | fi |
13817 | ||
a848cd7e | 13818 | |
d970f7d5 | 13819 | eval "$wx_cv_use_pcx" |
a848cd7e | 13820 | |
6e198e97 | 13821 | if test x"$enablestring" = xdisable; then |
7ac0e38e | 13822 | if test $wxUSE_PCX = no; then |
6e198e97 | 13823 | result=yes |
7ac0e38e VZ |
13824 | else |
13825 | result=no | |
6e198e97 | 13826 | fi |
a848cd7e | 13827 | else |
6e198e97 | 13828 | result=$wxUSE_PCX |
a848cd7e SC |
13829 | fi |
13830 | ||
d589327a VZ |
13831 | { echo "$as_me:$LINENO: result: $result" >&5 |
13832 | echo "${ECHO_T}$result" >&6; } | |
6e198e97 | 13833 | |
a848cd7e | 13834 | |
077c7880 | 13835 | enablestring= |
6e198e97 | 13836 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 13837 | if test -z "$defaultval"; then |
6e198e97 VZ |
13838 | if test x"$enablestring" = xdisable; then |
13839 | defaultval=yes | |
13840 | else | |
13841 | defaultval=no | |
13842 | fi | |
13843 | fi | |
13844 | ||
d589327a VZ |
13845 | { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tga" >&5 |
13846 | echo $ECHO_N "checking for --${enablestring:-enable}-tga... $ECHO_C" >&6; } | |
47964710 | 13847 | # Check whether --enable-tga was given. |
bb9e79c0 | 13848 | if test "${enable_tga+set}" = set; then |
47964710 | 13849 | enableval=$enable_tga; |
bb9e79c0 | 13850 | if test "$enableval" = yes; then |
d970f7d5 | 13851 | wx_cv_use_tga='wxUSE_TGA=yes' |
bb9e79c0 | 13852 | else |
d970f7d5 | 13853 | wx_cv_use_tga='wxUSE_TGA=no' |
bb9e79c0 VZ |
13854 | fi |
13855 | ||
13856 | else | |
13857 | ||
d970f7d5 | 13858 | wx_cv_use_tga='wxUSE_TGA=${'DEFAULT_wxUSE_TGA":-$defaultval}" |
bb9e79c0 | 13859 | |
47964710 VS |
13860 | fi |
13861 | ||
bb9e79c0 | 13862 | |
d970f7d5 | 13863 | eval "$wx_cv_use_tga" |
bb9e79c0 | 13864 | |
6e198e97 | 13865 | if test x"$enablestring" = xdisable; then |
7ac0e38e | 13866 | if test $wxUSE_TGA = no; then |
6e198e97 | 13867 | result=yes |
7ac0e38e VZ |
13868 | else |
13869 | result=no | |
6e198e97 | 13870 | fi |
bb9e79c0 | 13871 | else |
6e198e97 | 13872 | result=$wxUSE_TGA |
bb9e79c0 VZ |
13873 | fi |
13874 | ||
d589327a VZ |
13875 | { echo "$as_me:$LINENO: result: $result" >&5 |
13876 | echo "${ECHO_T}$result" >&6; } | |
6e198e97 | 13877 | |
bb9e79c0 | 13878 | |
077c7880 | 13879 | enablestring= |
6e198e97 | 13880 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 13881 | if test -z "$defaultval"; then |
6e198e97 VZ |
13882 | if test x"$enablestring" = xdisable; then |
13883 | defaultval=yes | |
13884 | else | |
13885 | defaultval=no | |
13886 | fi | |
13887 | fi | |
13888 | ||
d589327a VZ |
13889 | { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5 |
13890 | echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6; } | |
47964710 | 13891 | # Check whether --enable-iff was given. |
a848cd7e | 13892 | if test "${enable_iff+set}" = set; then |
47964710 | 13893 | enableval=$enable_iff; |
a848cd7e | 13894 | if test "$enableval" = yes; then |
d970f7d5 | 13895 | wx_cv_use_iff='wxUSE_IFF=yes' |
a848cd7e | 13896 | else |
d970f7d5 | 13897 | wx_cv_use_iff='wxUSE_IFF=no' |
a848cd7e SC |
13898 | fi |
13899 | ||
13900 | else | |
13901 | ||
d970f7d5 | 13902 | wx_cv_use_iff='wxUSE_IFF=${'DEFAULT_wxUSE_IFF":-$defaultval}" |
a848cd7e | 13903 | |
47964710 VS |
13904 | fi |
13905 | ||
a848cd7e | 13906 | |
d970f7d5 | 13907 | eval "$wx_cv_use_iff" |
a848cd7e | 13908 | |
6e198e97 | 13909 | if test x"$enablestring" = xdisable; then |
7ac0e38e | 13910 | if test $wxUSE_IFF = no; then |
6e198e97 | 13911 | result=yes |
7ac0e38e VZ |
13912 | else |
13913 | result=no | |
6e198e97 | 13914 | fi |
a848cd7e | 13915 | else |
6e198e97 | 13916 | result=$wxUSE_IFF |
a848cd7e SC |
13917 | fi |
13918 | ||
d589327a VZ |
13919 | { echo "$as_me:$LINENO: result: $result" >&5 |
13920 | echo "${ECHO_T}$result" >&6; } | |
6e198e97 | 13921 | |
a848cd7e | 13922 | |
077c7880 | 13923 | enablestring= |
6e198e97 | 13924 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 13925 | if test -z "$defaultval"; then |
6e198e97 VZ |
13926 | if test x"$enablestring" = xdisable; then |
13927 | defaultval=yes | |
13928 | else | |
13929 | defaultval=no | |
13930 | fi | |
13931 | fi | |
13932 | ||
d589327a VZ |
13933 | { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5 |
13934 | echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6; } | |
47964710 | 13935 | # Check whether --enable-pnm was given. |
a848cd7e | 13936 | if test "${enable_pnm+set}" = set; then |
47964710 | 13937 | enableval=$enable_pnm; |
a848cd7e | 13938 | if test "$enableval" = yes; then |
d970f7d5 | 13939 | wx_cv_use_pnm='wxUSE_PNM=yes' |
a848cd7e | 13940 | else |
d970f7d5 | 13941 | wx_cv_use_pnm='wxUSE_PNM=no' |
a848cd7e SC |
13942 | fi |
13943 | ||
13944 | else | |
13945 | ||
d970f7d5 | 13946 | wx_cv_use_pnm='wxUSE_PNM=${'DEFAULT_wxUSE_PNM":-$defaultval}" |
a848cd7e | 13947 | |
47964710 VS |
13948 | fi |
13949 | ||
a848cd7e | 13950 | |
d970f7d5 | 13951 | eval "$wx_cv_use_pnm" |
a848cd7e | 13952 | |
6e198e97 | 13953 | if test x"$enablestring" = xdisable; then |
7ac0e38e | 13954 | if test $wxUSE_PNM = no; then |
6e198e97 | 13955 | result=yes |
7ac0e38e VZ |
13956 | else |
13957 | result=no | |
6e198e97 | 13958 | fi |
a848cd7e | 13959 | else |
6e198e97 | 13960 | result=$wxUSE_PNM |
a848cd7e SC |
13961 | fi |
13962 | ||
d589327a VZ |
13963 | { echo "$as_me:$LINENO: result: $result" >&5 |
13964 | echo "${ECHO_T}$result" >&6; } | |
6e198e97 | 13965 | |
a848cd7e | 13966 | |
077c7880 | 13967 | enablestring= |
6e198e97 | 13968 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 13969 | if test -z "$defaultval"; then |
6e198e97 VZ |
13970 | if test x"$enablestring" = xdisable; then |
13971 | defaultval=yes | |
13972 | else | |
13973 | defaultval=no | |
13974 | fi | |
13975 | fi | |
13976 | ||
d589327a VZ |
13977 | { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5 |
13978 | echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6; } | |
47964710 | 13979 | # Check whether --enable-xpm was given. |
a848cd7e | 13980 | if test "${enable_xpm+set}" = set; then |
47964710 | 13981 | enableval=$enable_xpm; |
a848cd7e | 13982 | if test "$enableval" = yes; then |
d970f7d5 | 13983 | wx_cv_use_xpm='wxUSE_XPM=yes' |
a848cd7e | 13984 | else |
d970f7d5 | 13985 | wx_cv_use_xpm='wxUSE_XPM=no' |
a848cd7e SC |
13986 | fi |
13987 | ||
13988 | else | |
13989 | ||
d970f7d5 | 13990 | wx_cv_use_xpm='wxUSE_XPM=${'DEFAULT_wxUSE_XPM":-$defaultval}" |
a848cd7e | 13991 | |
47964710 VS |
13992 | fi |
13993 | ||
a848cd7e | 13994 | |
d970f7d5 | 13995 | eval "$wx_cv_use_xpm" |
a848cd7e | 13996 | |
6e198e97 | 13997 | if test x"$enablestring" = xdisable; then |
7ac0e38e | 13998 | if test $wxUSE_XPM = no; then |
6e198e97 | 13999 | result=yes |
7ac0e38e VZ |
14000 | else |
14001 | result=no | |
6e198e97 | 14002 | fi |
a848cd7e | 14003 | else |
6e198e97 | 14004 | result=$wxUSE_XPM |
a848cd7e SC |
14005 | fi |
14006 | ||
d589327a VZ |
14007 | { echo "$as_me:$LINENO: result: $result" >&5 |
14008 | echo "${ECHO_T}$result" >&6; } | |
6e198e97 | 14009 | |
a848cd7e | 14010 | |
077c7880 | 14011 | enablestring= |
6e198e97 | 14012 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 14013 | if test -z "$defaultval"; then |
6e198e97 VZ |
14014 | if test x"$enablestring" = xdisable; then |
14015 | defaultval=yes | |
14016 | else | |
14017 | defaultval=no | |
14018 | fi | |
14019 | fi | |
14020 | ||
d589327a VZ |
14021 | { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5 |
14022 | echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6; } | |
47964710 | 14023 | # Check whether --enable-ico_cur was given. |
a848cd7e | 14024 | if test "${enable_ico_cur+set}" = set; then |
47964710 | 14025 | enableval=$enable_ico_cur; |
a848cd7e | 14026 | if test "$enableval" = yes; then |
d970f7d5 | 14027 | wx_cv_use_ico_cur='wxUSE_ICO_CUR=yes' |
a848cd7e | 14028 | else |
d970f7d5 | 14029 | wx_cv_use_ico_cur='wxUSE_ICO_CUR=no' |
a848cd7e SC |
14030 | fi |
14031 | ||
14032 | else | |
14033 | ||
d970f7d5 | 14034 | wx_cv_use_ico_cur='wxUSE_ICO_CUR=${'DEFAULT_wxUSE_ICO_CUR":-$defaultval}" |
a848cd7e | 14035 | |
47964710 VS |
14036 | fi |
14037 | ||
a848cd7e | 14038 | |
d970f7d5 | 14039 | eval "$wx_cv_use_ico_cur" |
a848cd7e | 14040 | |
6e198e97 | 14041 | if test x"$enablestring" = xdisable; then |
7ac0e38e | 14042 | if test $wxUSE_ICO_CUR = no; then |
6e198e97 | 14043 | result=yes |
7ac0e38e VZ |
14044 | else |
14045 | result=no | |
6e198e97 | 14046 | fi |
a848cd7e | 14047 | else |
6e198e97 | 14048 | result=$wxUSE_ICO_CUR |
a848cd7e SC |
14049 | fi |
14050 | ||
d589327a VZ |
14051 | { echo "$as_me:$LINENO: result: $result" >&5 |
14052 | echo "${ECHO_T}$result" >&6; } | |
a848cd7e | 14053 | |
a848cd7e | 14054 | |
5d18e029 VZ |
14055 | |
14056 | ||
14057 | enablestring= | |
14058 | defaultval=$wxUSE_ALL_FEATURES | |
14059 | if test -z "$defaultval"; then | |
14060 | if test x"$enablestring" = xdisable; then | |
14061 | defaultval=yes | |
14062 | else | |
14063 | defaultval=no | |
14064 | fi | |
14065 | fi | |
14066 | ||
d589327a VZ |
14067 | { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dccache" >&5 |
14068 | echo $ECHO_N "checking for --${enablestring:-enable}-dccache... $ECHO_C" >&6; } | |
47964710 | 14069 | # Check whether --enable-dccache was given. |
5d18e029 | 14070 | if test "${enable_dccache+set}" = set; then |
47964710 | 14071 | enableval=$enable_dccache; |
5d18e029 VZ |
14072 | if test "$enableval" = yes; then |
14073 | wx_cv_use_dccache='wxUSE_DC_CACHEING=yes' | |
14074 | else | |
14075 | wx_cv_use_dccache='wxUSE_DC_CACHEING=no' | |
14076 | fi | |
14077 | ||
14078 | else | |
14079 | ||
5d18e029 VZ |
14080 | wx_cv_use_dccache='wxUSE_DC_CACHEING=${'DEFAULT_wxUSE_DC_CACHEING":-$defaultval}" |
14081 | ||
47964710 VS |
14082 | fi |
14083 | ||
5d18e029 VZ |
14084 | |
14085 | eval "$wx_cv_use_dccache" | |
5d18e029 VZ |
14086 | |
14087 | if test x"$enablestring" = xdisable; then | |
7ac0e38e | 14088 | if test $wxUSE_DC_CACHEING = no; then |
5d18e029 | 14089 | result=yes |
7ac0e38e VZ |
14090 | else |
14091 | result=no | |
5d18e029 VZ |
14092 | fi |
14093 | else | |
14094 | result=$wxUSE_DC_CACHEING | |
14095 | fi | |
14096 | ||
d589327a VZ |
14097 | { echo "$as_me:$LINENO: result: $result" >&5 |
14098 | echo "${ECHO_T}$result" >&6; } | |
5d18e029 VZ |
14099 | |
14100 | ||
0295153c VZ |
14101 | enablestring= |
14102 | defaultval=$wxUSE_ALL_FEATURES | |
14103 | if test -z "$defaultval"; then | |
14104 | if test x"$enablestring" = xdisable; then | |
14105 | defaultval=yes | |
14106 | else | |
14107 | defaultval=no | |
14108 | fi | |
14109 | fi | |
14110 | ||
d589327a VZ |
14111 | { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ps-in-msw" >&5 |
14112 | echo $ECHO_N "checking for --${enablestring:-enable}-ps-in-msw... $ECHO_C" >&6; } | |
47964710 | 14113 | # Check whether --enable-ps-in-msw was given. |
0295153c | 14114 | if test "${enable_ps_in_msw+set}" = set; then |
47964710 | 14115 | enableval=$enable_ps_in_msw; |
0295153c VZ |
14116 | if test "$enableval" = yes; then |
14117 | wx_cv_use_ps_in_msw='wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW=yes' | |
14118 | else | |
14119 | wx_cv_use_ps_in_msw='wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW=no' | |
14120 | fi | |
0295153c VZ |
14121 | |
14122 | else | |
14123 | ||
0295153c VZ |
14124 | wx_cv_use_ps_in_msw='wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW=${'DEFAULT_wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW":-$defaultval}" |
14125 | ||
47964710 VS |
14126 | fi |
14127 | ||
0295153c VZ |
14128 | |
14129 | eval "$wx_cv_use_ps_in_msw" | |
0295153c VZ |
14130 | |
14131 | if test x"$enablestring" = xdisable; then | |
7ac0e38e | 14132 | if test $wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW = no; then |
0295153c | 14133 | result=yes |
7ac0e38e VZ |
14134 | else |
14135 | result=no | |
0295153c VZ |
14136 | fi |
14137 | else | |
14138 | result=$wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW | |
14139 | fi | |
14140 | ||
d589327a VZ |
14141 | { echo "$as_me:$LINENO: result: $result" >&5 |
14142 | echo "${ECHO_T}$result" >&6; } | |
0295153c VZ |
14143 | |
14144 | ||
6fdf2acc VZ |
14145 | enablestring= |
14146 | defaultval=$wxUSE_ALL_FEATURES | |
14147 | if test -z "$defaultval"; then | |
14148 | if test x"$enablestring" = xdisable; then | |
14149 | defaultval=yes | |
14150 | else | |
14151 | defaultval=no | |
14152 | fi | |
14153 | fi | |
14154 | ||
d589327a VZ |
14155 | { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ownerdrawn" >&5 |
14156 | echo $ECHO_N "checking for --${enablestring:-enable}-ownerdrawn... $ECHO_C" >&6; } | |
47964710 | 14157 | # Check whether --enable-ownerdrawn was given. |
6fdf2acc | 14158 | if test "${enable_ownerdrawn+set}" = set; then |
47964710 | 14159 | enableval=$enable_ownerdrawn; |
6fdf2acc VZ |
14160 | if test "$enableval" = yes; then |
14161 | wx_cv_use_ownerdrawn='wxUSE_OWNER_DRAWN=yes' | |
14162 | else | |
14163 | wx_cv_use_ownerdrawn='wxUSE_OWNER_DRAWN=no' | |
14164 | fi | |
6fdf2acc VZ |
14165 | |
14166 | else | |
14167 | ||
6fdf2acc VZ |
14168 | wx_cv_use_ownerdrawn='wxUSE_OWNER_DRAWN=${'DEFAULT_wxUSE_OWNER_DRAWN":-$defaultval}" |
14169 | ||
47964710 VS |
14170 | fi |
14171 | ||
6fdf2acc VZ |
14172 | |
14173 | eval "$wx_cv_use_ownerdrawn" | |
6fdf2acc VZ |
14174 | |
14175 | if test x"$enablestring" = xdisable; then | |
7ac0e38e | 14176 | if test $wxUSE_OWNER_DRAWN = no; then |
6fdf2acc | 14177 | result=yes |
7ac0e38e VZ |
14178 | else |
14179 | result=no | |
6fdf2acc VZ |
14180 | fi |
14181 | else | |
14182 | result=$wxUSE_OWNER_DRAWN | |
14183 | fi | |
14184 | ||
d589327a VZ |
14185 | { echo "$as_me:$LINENO: result: $result" >&5 |
14186 | echo "${ECHO_T}$result" >&6; } | |
6fdf2acc VZ |
14187 | |
14188 | ||
5d18e029 VZ |
14189 | enablestring= |
14190 | defaultval=$wxUSE_ALL_FEATURES | |
14191 | if test -z "$defaultval"; then | |
14192 | if test x"$enablestring" = xdisable; then | |
14193 | defaultval=yes | |
14194 | else | |
14195 | defaultval=no | |
14196 | fi | |
14197 | fi | |
14198 | ||
d589327a VZ |
14199 | { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-uxtheme" >&5 |
14200 | echo $ECHO_N "checking for --${enablestring:-enable}-uxtheme... $ECHO_C" >&6; } | |
47964710 | 14201 | # Check whether --enable-uxtheme was given. |
5d18e029 | 14202 | if test "${enable_uxtheme+set}" = set; then |
47964710 | 14203 | enableval=$enable_uxtheme; |
5d18e029 VZ |
14204 | if test "$enableval" = yes; then |
14205 | wx_cv_use_uxtheme='wxUSE_UXTHEME=yes' | |
14206 | else | |
14207 | wx_cv_use_uxtheme='wxUSE_UXTHEME=no' | |
14208 | fi | |
14209 | ||
14210 | else | |
14211 | ||
5d18e029 VZ |
14212 | wx_cv_use_uxtheme='wxUSE_UXTHEME=${'DEFAULT_wxUSE_UXTHEME":-$defaultval}" |
14213 | ||
47964710 VS |
14214 | fi |
14215 | ||
5d18e029 VZ |
14216 | |
14217 | eval "$wx_cv_use_uxtheme" | |
5d18e029 VZ |
14218 | |
14219 | if test x"$enablestring" = xdisable; then | |
7ac0e38e | 14220 | if test $wxUSE_UXTHEME = no; then |
5d18e029 | 14221 | result=yes |
7ac0e38e VZ |
14222 | else |
14223 | result=no | |
5d18e029 VZ |
14224 | fi |
14225 | else | |
14226 | result=$wxUSE_UXTHEME | |
14227 | fi | |
14228 | ||
d589327a VZ |
14229 | { echo "$as_me:$LINENO: result: $result" >&5 |
14230 | echo "${ECHO_T}$result" >&6; } | |
5d18e029 VZ |
14231 | |
14232 | ||
508d12b2 VZ |
14233 | enablestring= |
14234 | defaultval=$wxUSE_ALL_FEATURES | |
14235 | if test -z "$defaultval"; then | |
14236 | if test x"$enablestring" = xdisable; then | |
14237 | defaultval=yes | |
14238 | else | |
14239 | defaultval=no | |
14240 | fi | |
14241 | fi | |
14242 | ||
d589327a VZ |
14243 | { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wxdib" >&5 |
14244 | echo $ECHO_N "checking for --${enablestring:-enable}-wxdib... $ECHO_C" >&6; } | |
47964710 | 14245 | # Check whether --enable-wxdib was given. |
508d12b2 | 14246 | if test "${enable_wxdib+set}" = set; then |
47964710 | 14247 | enableval=$enable_wxdib; |
508d12b2 VZ |
14248 | if test "$enableval" = yes; then |
14249 | wx_cv_use_wxdib='wxUSE_DIB=yes' | |
14250 | else | |
14251 | wx_cv_use_wxdib='wxUSE_DIB=no' | |
14252 | fi | |
508d12b2 VZ |
14253 | |
14254 | else | |
14255 | ||
508d12b2 VZ |
14256 | wx_cv_use_wxdib='wxUSE_DIB=${'DEFAULT_wxUSE_DIB":-$defaultval}" |
14257 | ||
47964710 VS |
14258 | fi |
14259 | ||
508d12b2 VZ |
14260 | |
14261 | eval "$wx_cv_use_wxdib" | |
508d12b2 VZ |
14262 | |
14263 | if test x"$enablestring" = xdisable; then | |
7ac0e38e | 14264 | if test $wxUSE_DIB = no; then |
508d12b2 | 14265 | result=yes |
7ac0e38e VZ |
14266 | else |
14267 | result=no | |
508d12b2 VZ |
14268 | fi |
14269 | else | |
14270 | result=$wxUSE_DIB | |
14271 | fi | |
14272 | ||
d589327a VZ |
14273 | { echo "$as_me:$LINENO: result: $result" >&5 |
14274 | echo "${ECHO_T}$result" >&6; } | |
508d12b2 VZ |
14275 | |
14276 | ||
91a2809d VZ |
14277 | if test "$wxUSE_MSW" != 1; then |
14278 | DEFAULT_wxUSE_AUTOID_MANAGEMENT=no | |
14279 | fi | |
14280 | ||
14281 | ||
75a29ef1 VZ |
14282 | enablestring= |
14283 | defaultval=$wxUSE_ALL_FEATURES | |
14284 | if test -z "$defaultval"; then | |
14285 | if test x"$enablestring" = xdisable; then | |
14286 | defaultval=yes | |
14287 | else | |
14288 | defaultval=no | |
14289 | fi | |
14290 | fi | |
14291 | ||
d589327a VZ |
14292 | { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-autoidman" >&5 |
14293 | echo $ECHO_N "checking for --${enablestring:-enable}-autoidman... $ECHO_C" >&6; } | |
75a29ef1 VZ |
14294 | # Check whether --enable-autoidman was given. |
14295 | if test "${enable_autoidman+set}" = set; then | |
14296 | enableval=$enable_autoidman; | |
14297 | if test "$enableval" = yes; then | |
14298 | wx_cv_use_autoidman='wxUSE_AUTOID_MANAGEMENT=yes' | |
14299 | else | |
14300 | wx_cv_use_autoidman='wxUSE_AUTOID_MANAGEMENT=no' | |
14301 | fi | |
14302 | ||
14303 | else | |
14304 | ||
14305 | wx_cv_use_autoidman='wxUSE_AUTOID_MANAGEMENT=${'DEFAULT_wxUSE_AUTOID_MANAGEMENT":-$defaultval}" | |
14306 | ||
14307 | fi | |
14308 | ||
14309 | ||
14310 | eval "$wx_cv_use_autoidman" | |
14311 | ||
14312 | if test x"$enablestring" = xdisable; then | |
7ac0e38e | 14313 | if test $wxUSE_AUTOID_MANAGEMENT = no; then |
75a29ef1 | 14314 | result=yes |
7ac0e38e VZ |
14315 | else |
14316 | result=no | |
75a29ef1 VZ |
14317 | fi |
14318 | else | |
14319 | result=$wxUSE_AUTOID_MANAGEMENT | |
14320 | fi | |
14321 | ||
d589327a VZ |
14322 | { echo "$as_me:$LINENO: result: $result" >&5 |
14323 | echo "${ECHO_T}$result" >&6; } | |
75a29ef1 VZ |
14324 | |
14325 | ||
a848cd7e SC |
14326 | fi |
14327 | ||
a848cd7e | 14328 | |
8bf7f1a9 VZ |
14329 | cat >confcache <<\_ACEOF |
14330 | # This file is a shell script that caches the results of configure | |
14331 | # tests run on this system so they can be shared between configure | |
14332 | # scripts and configure runs, see configure's option --config-cache. | |
14333 | # It is not useful on other systems. If it contains results you don't | |
14334 | # want to keep, you may remove or edit it. | |
14335 | # | |
14336 | # config.status only pays attention to the cache file if you give it | |
14337 | # the --recheck option to rerun configure. | |
14338 | # | |
14339 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
14340 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
14341 | # following values. | |
14342 | ||
14343 | _ACEOF | |
14344 | ||
14345 | # The following way of writing the cache mishandles newlines in values, | |
14346 | # but we know of no workaround that is simple, portable, and efficient. | |
47964710 | 14347 | # So, we kill variables containing newlines. |
8bf7f1a9 VZ |
14348 | # Ultrix sh set writes to stderr and can't be redirected directly, |
14349 | # and sets the high bit in the cache file unless we assign to the vars. | |
47964710 VS |
14350 | ( |
14351 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
14352 | eval ac_val=\$$ac_var | |
14353 | case $ac_val in #( | |
14354 | *${as_nl}*) | |
14355 | case $ac_var in #( | |
d589327a VZ |
14356 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
14357 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; | |
47964710 VS |
14358 | esac |
14359 | case $ac_var in #( | |
14360 | _ | IFS | as_nl) ;; #( | |
14361 | *) $as_unset $ac_var ;; | |
14362 | esac ;; | |
14363 | esac | |
14364 | done | |
14365 | ||
8bf7f1a9 | 14366 | (set) 2>&1 | |
47964710 VS |
14367 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
14368 | *${as_nl}ac_space=\ *) | |
8bf7f1a9 VZ |
14369 | # `set' does not quote correctly, so add quotes (double-quote |
14370 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
14371 | sed -n \ | |
14372 | "s/'/'\\\\''/g; | |
14373 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
47964710 | 14374 | ;; #( |
8bf7f1a9 VZ |
14375 | *) |
14376 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
47964710 | 14377 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
8bf7f1a9 | 14378 | ;; |
47964710 VS |
14379 | esac | |
14380 | sort | |
14381 | ) | | |
8bf7f1a9 | 14382 | sed ' |
47964710 | 14383 | /^ac_cv_env_/b end |
8bf7f1a9 | 14384 | t clear |
47964710 | 14385 | :clear |
8bf7f1a9 VZ |
14386 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
14387 | t end | |
47964710 VS |
14388 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
14389 | :end' >>confcache | |
14390 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
14391 | if test -w "$cache_file"; then | |
14392 | test "x$cache_file" != "x/dev/null" && | |
d589327a VZ |
14393 | { echo "$as_me:$LINENO: updating cache $cache_file" >&5 |
14394 | echo "$as_me: updating cache $cache_file" >&6;} | |
8bf7f1a9 VZ |
14395 | cat confcache >$cache_file |
14396 | else | |
d589327a VZ |
14397 | { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 |
14398 | echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
8bf7f1a9 VZ |
14399 | fi |
14400 | fi | |
14401 | rm -f confcache | |
14402 | ||
14403 | CFLAGS=${CFLAGS:=} | |
14404 | ||
14405 | ||
14406 | ||
14407 | ac_ext=c | |
a848cd7e SC |
14408 | ac_cpp='$CPP $CPPFLAGS' |
14409 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
14410 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
14411 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
14412 | if test -n "$ac_tool_prefix"; then | |
14413 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
14414 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
d589327a VZ |
14415 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
14416 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
a848cd7e | 14417 | if test "${ac_cv_prog_CC+set}" = set; then |
d589327a | 14418 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a848cd7e SC |
14419 | else |
14420 | if test -n "$CC"; then | |
14421 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
14422 | else | |
14423 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14424 | for as_dir in $PATH | |
14425 | do | |
14426 | IFS=$as_save_IFS | |
14427 | test -z "$as_dir" && as_dir=. | |
14428 | for ac_exec_ext in '' $ac_executable_extensions; do | |
47964710 | 14429 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
a848cd7e | 14430 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
d589327a | 14431 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
a848cd7e SC |
14432 | break 2 |
14433 | fi | |
14434 | done | |
14435 | done | |
47964710 | 14436 | IFS=$as_save_IFS |
a848cd7e SC |
14437 | |
14438 | fi | |
14439 | fi | |
14440 | CC=$ac_cv_prog_CC | |
14441 | if test -n "$CC"; then | |
d589327a VZ |
14442 | { echo "$as_me:$LINENO: result: $CC" >&5 |
14443 | echo "${ECHO_T}$CC" >&6; } | |
a848cd7e | 14444 | else |
d589327a VZ |
14445 | { echo "$as_me:$LINENO: result: no" >&5 |
14446 | echo "${ECHO_T}no" >&6; } | |
a848cd7e SC |
14447 | fi |
14448 | ||
47964710 | 14449 | |
a848cd7e SC |
14450 | fi |
14451 | if test -z "$ac_cv_prog_CC"; then | |
14452 | ac_ct_CC=$CC | |
14453 | # Extract the first word of "gcc", so it can be a program name with args. | |
14454 | set dummy gcc; ac_word=$2 | |
d589327a VZ |
14455 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
14456 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
a848cd7e | 14457 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
d589327a | 14458 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a848cd7e SC |
14459 | else |
14460 | if test -n "$ac_ct_CC"; then | |
14461 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
14462 | else | |
14463 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14464 | for as_dir in $PATH | |
14465 | do | |
14466 | IFS=$as_save_IFS | |
14467 | test -z "$as_dir" && as_dir=. | |
14468 | for ac_exec_ext in '' $ac_executable_extensions; do | |
47964710 | 14469 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
a848cd7e | 14470 | ac_cv_prog_ac_ct_CC="gcc" |
d589327a | 14471 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
a848cd7e SC |
14472 | break 2 |
14473 | fi | |
14474 | done | |
14475 | done | |
47964710 | 14476 | IFS=$as_save_IFS |
a848cd7e SC |
14477 | |
14478 | fi | |
14479 | fi | |
14480 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
14481 | if test -n "$ac_ct_CC"; then | |
d589327a VZ |
14482 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
14483 | echo "${ECHO_T}$ac_ct_CC" >&6; } | |
a848cd7e | 14484 | else |
d589327a VZ |
14485 | { echo "$as_me:$LINENO: result: no" >&5 |
14486 | echo "${ECHO_T}no" >&6; } | |
a848cd7e SC |
14487 | fi |
14488 | ||
47964710 VS |
14489 | if test "x$ac_ct_CC" = x; then |
14490 | CC="" | |
14491 | else | |
14492 | case $cross_compiling:$ac_tool_warned in | |
14493 | yes:) | |
d589327a VZ |
14494 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
14495 | whose name does not start with the host triplet. If you think this | |
14496 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
14497 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | |
14498 | whose name does not start with the host triplet. If you think this | |
14499 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
47964710 VS |
14500 | ac_tool_warned=yes ;; |
14501 | esac | |
14502 | CC=$ac_ct_CC | |
14503 | fi | |
a848cd7e SC |
14504 | else |
14505 | CC="$ac_cv_prog_CC" | |
14506 | fi | |
14507 | ||
14508 | if test -z "$CC"; then | |
47964710 VS |
14509 | if test -n "$ac_tool_prefix"; then |
14510 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
a848cd7e | 14511 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
d589327a VZ |
14512 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
14513 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
a848cd7e | 14514 | if test "${ac_cv_prog_CC+set}" = set; then |
d589327a | 14515 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a848cd7e SC |
14516 | else |
14517 | if test -n "$CC"; then | |
14518 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
14519 | else | |
14520 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14521 | for as_dir in $PATH | |
14522 | do | |
14523 | IFS=$as_save_IFS | |
14524 | test -z "$as_dir" && as_dir=. | |
14525 | for ac_exec_ext in '' $ac_executable_extensions; do | |
47964710 | 14526 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
a848cd7e | 14527 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
d589327a | 14528 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
a848cd7e SC |
14529 | break 2 |
14530 | fi | |
14531 | done | |
14532 | done | |
47964710 | 14533 | IFS=$as_save_IFS |
a848cd7e SC |
14534 | |
14535 | fi | |
14536 | fi | |
14537 | CC=$ac_cv_prog_CC | |
14538 | if test -n "$CC"; then | |
d589327a VZ |
14539 | { echo "$as_me:$LINENO: result: $CC" >&5 |
14540 | echo "${ECHO_T}$CC" >&6; } | |
4db03d26 | 14541 | else |
d589327a VZ |
14542 | { echo "$as_me:$LINENO: result: no" >&5 |
14543 | echo "${ECHO_T}no" >&6; } | |
4db03d26 VZ |
14544 | fi |
14545 | ||
bd8a7646 | 14546 | |
47964710 | 14547 | fi |
a848cd7e SC |
14548 | fi |
14549 | if test -z "$CC"; then | |
14550 | # Extract the first word of "cc", so it can be a program name with args. | |
14551 | set dummy cc; ac_word=$2 | |
d589327a VZ |
14552 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
14553 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
a848cd7e | 14554 | if test "${ac_cv_prog_CC+set}" = set; then |
d589327a | 14555 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a848cd7e SC |
14556 | else |
14557 | if test -n "$CC"; then | |
14558 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
14559 | else | |
14560 | ac_prog_rejected=no | |
14561 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14562 | for as_dir in $PATH | |
14563 | do | |
14564 | IFS=$as_save_IFS | |
14565 | test -z "$as_dir" && as_dir=. | |
14566 | for ac_exec_ext in '' $ac_executable_extensions; do | |
47964710 | 14567 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
a848cd7e SC |
14568 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
14569 | ac_prog_rejected=yes | |
14570 | continue | |
14571 | fi | |
14572 | ac_cv_prog_CC="cc" | |
d589327a | 14573 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
a848cd7e SC |
14574 | break 2 |
14575 | fi | |
14576 | done | |
14577 | done | |
47964710 | 14578 | IFS=$as_save_IFS |
a848cd7e SC |
14579 | |
14580 | if test $ac_prog_rejected = yes; then | |
14581 | # We found a bogon in the path, so make sure we never use it. | |
14582 | set dummy $ac_cv_prog_CC | |
14583 | shift | |
14584 | if test $# != 0; then | |
14585 | # We chose a different compiler from the bogus one. | |
14586 | # However, it has the same basename, so the bogon will be chosen | |
14587 | # first if we set CC to just the basename; use the full file name. | |
14588 | shift | |
14589 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
14590 | fi | |
14591 | fi | |
14592 | fi | |
14593 | fi | |
14594 | CC=$ac_cv_prog_CC | |
14595 | if test -n "$CC"; then | |
d589327a VZ |
14596 | { echo "$as_me:$LINENO: result: $CC" >&5 |
14597 | echo "${ECHO_T}$CC" >&6; } | |
a848cd7e | 14598 | else |
d589327a VZ |
14599 | { echo "$as_me:$LINENO: result: no" >&5 |
14600 | echo "${ECHO_T}no" >&6; } | |
a848cd7e SC |
14601 | fi |
14602 | ||
47964710 | 14603 | |
a848cd7e SC |
14604 | fi |
14605 | if test -z "$CC"; then | |
14606 | if test -n "$ac_tool_prefix"; then | |
47964710 | 14607 | for ac_prog in cl.exe |
a848cd7e SC |
14608 | do |
14609 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
14610 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
d589327a VZ |
14611 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
14612 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
a848cd7e | 14613 | if test "${ac_cv_prog_CC+set}" = set; then |
d589327a | 14614 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a848cd7e SC |
14615 | else |
14616 | if test -n "$CC"; then | |
14617 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
14618 | else | |
14619 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14620 | for as_dir in $PATH | |
14621 | do | |
14622 | IFS=$as_save_IFS | |
14623 | test -z "$as_dir" && as_dir=. | |
14624 | for ac_exec_ext in '' $ac_executable_extensions; do | |
47964710 | 14625 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
a848cd7e | 14626 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
d589327a | 14627 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
a848cd7e SC |
14628 | break 2 |
14629 | fi | |
14630 | done | |
14631 | done | |
47964710 | 14632 | IFS=$as_save_IFS |
a848cd7e SC |
14633 | |
14634 | fi | |
14635 | fi | |
14636 | CC=$ac_cv_prog_CC | |
14637 | if test -n "$CC"; then | |
d589327a VZ |
14638 | { echo "$as_me:$LINENO: result: $CC" >&5 |
14639 | echo "${ECHO_T}$CC" >&6; } | |
a848cd7e | 14640 | else |
d589327a VZ |
14641 | { echo "$as_me:$LINENO: result: no" >&5 |
14642 | echo "${ECHO_T}no" >&6; } | |
a848cd7e SC |
14643 | fi |
14644 | ||
47964710 | 14645 | |
a848cd7e SC |
14646 | test -n "$CC" && break |
14647 | done | |
14648 | fi | |
14649 | if test -z "$CC"; then | |
14650 | ac_ct_CC=$CC | |
47964710 | 14651 | for ac_prog in cl.exe |
a848cd7e SC |
14652 | do |
14653 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
14654 | set dummy $ac_prog; ac_word=$2 | |
d589327a VZ |
14655 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
14656 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
a848cd7e | 14657 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
d589327a | 14658 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a848cd7e SC |
14659 | else |
14660 | if test -n "$ac_ct_CC"; then | |
14661 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
14662 | else | |
14663 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14664 | for as_dir in $PATH | |
14665 | do | |
14666 | IFS=$as_save_IFS | |
14667 | test -z "$as_dir" && as_dir=. | |
14668 | for ac_exec_ext in '' $ac_executable_extensions; do | |
47964710 | 14669 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
a848cd7e | 14670 | ac_cv_prog_ac_ct_CC="$ac_prog" |
d589327a | 14671 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
a848cd7e SC |
14672 | break 2 |
14673 | fi | |
14674 | done | |
14675 | done | |
47964710 | 14676 | IFS=$as_save_IFS |
a848cd7e SC |
14677 | |
14678 | fi | |
14679 | fi | |
14680 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
14681 | if test -n "$ac_ct_CC"; then | |
d589327a VZ |
14682 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
14683 | echo "${ECHO_T}$ac_ct_CC" >&6; } | |
a848cd7e | 14684 | else |
d589327a VZ |
14685 | { echo "$as_me:$LINENO: result: no" >&5 |
14686 | echo "${ECHO_T}no" >&6; } | |
a848cd7e SC |
14687 | fi |
14688 | ||
47964710 | 14689 | |
a848cd7e SC |
14690 | test -n "$ac_ct_CC" && break |
14691 | done | |
14692 | ||
47964710 VS |
14693 | if test "x$ac_ct_CC" = x; then |
14694 | CC="" | |
14695 | else | |
14696 | case $cross_compiling:$ac_tool_warned in | |
14697 | yes:) | |
d589327a VZ |
14698 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
14699 | whose name does not start with the host triplet. If you think this | |
14700 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
14701 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | |
14702 | whose name does not start with the host triplet. If you think this | |
14703 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
47964710 VS |
14704 | ac_tool_warned=yes ;; |
14705 | esac | |
14706 | CC=$ac_ct_CC | |
14707 | fi | |
a848cd7e SC |
14708 | fi |
14709 | ||
14710 | fi | |
14711 | ||
14712 | ||
d589327a | 14713 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
a848cd7e | 14714 | See \`config.log' for more details." >&5 |
d589327a | 14715 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
a848cd7e | 14716 | See \`config.log' for more details." >&2;} |
d589327a | 14717 | { (exit 1); exit 1; }; } |
a848cd7e SC |
14718 | |
14719 | # Provide some information about the compiler. | |
d589327a VZ |
14720 | echo "$as_me:$LINENO: checking for C compiler version" >&5 |
14721 | ac_compiler=`set X $ac_compile; echo $2` | |
47964710 VS |
14722 | { (ac_try="$ac_compiler --version >&5" |
14723 | case "(($ac_try" in | |
14724 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14725 | *) ac_try_echo=$ac_try;; | |
14726 | esac | |
d589327a | 14727 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 14728 | (eval "$ac_compiler --version >&5") 2>&5 |
a848cd7e | 14729 | ac_status=$? |
d589327a | 14730 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
a848cd7e | 14731 | (exit $ac_status); } |
47964710 VS |
14732 | { (ac_try="$ac_compiler -v >&5" |
14733 | case "(($ac_try" in | |
14734 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14735 | *) ac_try_echo=$ac_try;; | |
14736 | esac | |
d589327a | 14737 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 14738 | (eval "$ac_compiler -v >&5") 2>&5 |
a848cd7e | 14739 | ac_status=$? |
d589327a | 14740 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
a848cd7e | 14741 | (exit $ac_status); } |
47964710 VS |
14742 | { (ac_try="$ac_compiler -V >&5" |
14743 | case "(($ac_try" in | |
14744 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14745 | *) ac_try_echo=$ac_try;; | |
14746 | esac | |
d589327a | 14747 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 14748 | (eval "$ac_compiler -V >&5") 2>&5 |
a848cd7e | 14749 | ac_status=$? |
d589327a | 14750 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
a848cd7e SC |
14751 | (exit $ac_status); } |
14752 | ||
14753 | cat >conftest.$ac_ext <<_ACEOF | |
14754 | /* confdefs.h. */ | |
14755 | _ACEOF | |
14756 | cat confdefs.h >>conftest.$ac_ext | |
14757 | cat >>conftest.$ac_ext <<_ACEOF | |
14758 | /* end confdefs.h. */ | |
14759 | ||
14760 | int | |
14761 | main () | |
14762 | { | |
14763 | ||
14764 | ; | |
14765 | return 0; | |
14766 | } | |
14767 | _ACEOF | |
14768 | ac_clean_files_save=$ac_clean_files | |
d589327a | 14769 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
a848cd7e SC |
14770 | # Try to create an executable without -o first, disregard a.out. |
14771 | # It will help us diagnose broken compilers, and finding out an intuition | |
14772 | # of exeext. | |
d589327a VZ |
14773 | { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
14774 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } | |
14775 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
14776 | # | |
14777 | # List of possible output files, starting from the most likely. | |
14778 | # The algorithm is not robust to junk in `.', hence go to wildcards (a.*) | |
14779 | # only as a last resort. b.out is created by i960 compilers. | |
14780 | ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' | |
14781 | # | |
14782 | # The IRIX 6 linker writes into existing files which may not be | |
14783 | # executable, retaining their permissions. Remove them first so a | |
14784 | # subsequent execution test works. | |
47964710 VS |
14785 | ac_rmfiles= |
14786 | for ac_file in $ac_files | |
14787 | do | |
14788 | case $ac_file in | |
d589327a | 14789 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; |
47964710 VS |
14790 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
14791 | esac | |
14792 | done | |
14793 | rm -f $ac_rmfiles | |
14794 | ||
14795 | if { (ac_try="$ac_link_default" | |
14796 | case "(($ac_try" in | |
14797 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14798 | *) ac_try_echo=$ac_try;; | |
14799 | esac | |
d589327a | 14800 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 14801 | (eval "$ac_link_default") 2>&5 |
a848cd7e | 14802 | ac_status=$? |
d589327a | 14803 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
a848cd7e | 14804 | (exit $ac_status); }; then |
47964710 VS |
14805 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
14806 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
14807 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
14808 | # so that the user can short-circuit this test for compilers unknown to | |
14809 | # Autoconf. | |
14810 | for ac_file in $ac_files '' | |
a848cd7e SC |
14811 | do |
14812 | test -f "$ac_file" || continue | |
14813 | case $ac_file in | |
d589327a | 14814 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) |
ac1cb8d3 | 14815 | ;; |
a848cd7e | 14816 | [ab].out ) |
ac1cb8d3 VS |
14817 | # We found the default executable, but exeext='' is most |
14818 | # certainly right. | |
14819 | break;; | |
a848cd7e | 14820 | *.* ) |
47964710 VS |
14821 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
14822 | then :; else | |
14823 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
14824 | fi | |
14825 | # We set ac_cv_exeext here because the later test for it is not | |
14826 | # safe: cross compilers may not add the suffix if given an `-o' | |
14827 | # argument, so we may need to know it at that point already. | |
14828 | # Even if this section looks crufty: it has the advantage of | |
14829 | # actually working. | |
ac1cb8d3 | 14830 | break;; |
a848cd7e | 14831 | * ) |
ac1cb8d3 | 14832 | break;; |
a848cd7e SC |
14833 | esac |
14834 | done | |
47964710 VS |
14835 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
14836 | ||
a848cd7e | 14837 | else |
47964710 VS |
14838 | ac_file='' |
14839 | fi | |
14840 | ||
d589327a VZ |
14841 | { echo "$as_me:$LINENO: result: $ac_file" >&5 |
14842 | echo "${ECHO_T}$ac_file" >&6; } | |
47964710 | 14843 | if test -z "$ac_file"; then |
d589327a | 14844 | echo "$as_me: failed program was:" >&5 |
a848cd7e SC |
14845 | sed 's/^/| /' conftest.$ac_ext >&5 |
14846 | ||
d589327a | 14847 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
a848cd7e | 14848 | See \`config.log' for more details." >&5 |
d589327a | 14849 | echo "$as_me: error: C compiler cannot create executables |
a848cd7e | 14850 | See \`config.log' for more details." >&2;} |
d589327a | 14851 | { (exit 77); exit 77; }; } |
a848cd7e SC |
14852 | fi |
14853 | ||
14854 | ac_exeext=$ac_cv_exeext | |
a848cd7e | 14855 | |
47964710 | 14856 | # Check that the compiler produces executables we can run. If not, either |
a848cd7e | 14857 | # the compiler is broken, or we cross compile. |
d589327a VZ |
14858 | { echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
14859 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } | |
a848cd7e SC |
14860 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
14861 | # If not cross compiling, check that we can run a simple program. | |
14862 | if test "$cross_compiling" != yes; then | |
14863 | if { ac_try='./$ac_file' | |
47964710 VS |
14864 | { (case "(($ac_try" in |
14865 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14866 | *) ac_try_echo=$ac_try;; | |
14867 | esac | |
d589327a | 14868 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 14869 | (eval "$ac_try") 2>&5 |
a848cd7e | 14870 | ac_status=$? |
d589327a | 14871 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
a848cd7e SC |
14872 | (exit $ac_status); }; }; then |
14873 | cross_compiling=no | |
14874 | else | |
14875 | if test "$cross_compiling" = maybe; then | |
14876 | cross_compiling=yes | |
14877 | else | |
d589327a | 14878 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
a848cd7e SC |
14879 | If you meant to cross compile, use \`--host'. |
14880 | See \`config.log' for more details." >&5 | |
d589327a | 14881 | echo "$as_me: error: cannot run C compiled programs. |
a848cd7e SC |
14882 | If you meant to cross compile, use \`--host'. |
14883 | See \`config.log' for more details." >&2;} | |
d589327a | 14884 | { (exit 1); exit 1; }; } |
a848cd7e SC |
14885 | fi |
14886 | fi | |
14887 | fi | |
d589327a VZ |
14888 | { echo "$as_me:$LINENO: result: yes" >&5 |
14889 | echo "${ECHO_T}yes" >&6; } | |
a848cd7e | 14890 | |
d589327a | 14891 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
a848cd7e | 14892 | ac_clean_files=$ac_clean_files_save |
47964710 | 14893 | # Check that the compiler produces executables we can run. If not, either |
a848cd7e | 14894 | # the compiler is broken, or we cross compile. |
d589327a VZ |
14895 | { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
14896 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } | |
14897 | { echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
14898 | echo "${ECHO_T}$cross_compiling" >&6; } | |
47964710 | 14899 | |
d589327a VZ |
14900 | { echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
14901 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } | |
47964710 VS |
14902 | if { (ac_try="$ac_link" |
14903 | case "(($ac_try" in | |
14904 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14905 | *) ac_try_echo=$ac_try;; | |
14906 | esac | |
d589327a | 14907 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 14908 | (eval "$ac_link") 2>&5 |
a848cd7e | 14909 | ac_status=$? |
d589327a | 14910 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
a848cd7e SC |
14911 | (exit $ac_status); }; then |
14912 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
14913 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
14914 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
14915 | # `rm'. | |
14916 | for ac_file in conftest.exe conftest conftest.*; do | |
14917 | test -f "$ac_file" || continue | |
14918 | case $ac_file in | |
d589327a | 14919 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; |
a848cd7e | 14920 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
ac1cb8d3 | 14921 | break;; |
8bf7f1a9 VZ |
14922 | * ) break;; |
14923 | esac | |
6da4ac91 | 14924 | done |
6da4ac91 | 14925 | else |
d589327a | 14926 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
8bf7f1a9 | 14927 | See \`config.log' for more details." >&5 |
d589327a | 14928 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
8bf7f1a9 | 14929 | See \`config.log' for more details." >&2;} |
d589327a | 14930 | { (exit 1); exit 1; }; } |
6da4ac91 VZ |
14931 | fi |
14932 | ||
8bf7f1a9 | 14933 | rm -f conftest$ac_cv_exeext |
d589327a VZ |
14934 | { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
14935 | echo "${ECHO_T}$ac_cv_exeext" >&6; } | |
8bf7f1a9 VZ |
14936 | |
14937 | rm -f conftest.$ac_ext | |
14938 | EXEEXT=$ac_cv_exeext | |
14939 | ac_exeext=$EXEEXT | |
d589327a VZ |
14940 | { echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
14941 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } | |
8bf7f1a9 | 14942 | if test "${ac_cv_objext+set}" = set; then |
d589327a | 14943 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6da4ac91 | 14944 | else |
8bf7f1a9 VZ |
14945 | cat >conftest.$ac_ext <<_ACEOF |
14946 | /* confdefs.h. */ | |
14947 | _ACEOF | |
14948 | cat confdefs.h >>conftest.$ac_ext | |
14949 | cat >>conftest.$ac_ext <<_ACEOF | |
14950 | /* end confdefs.h. */ | |
6da4ac91 | 14951 | |
8bf7f1a9 VZ |
14952 | int |
14953 | main () | |
14954 | { | |
6da4ac91 | 14955 | |
8bf7f1a9 VZ |
14956 | ; |
14957 | return 0; | |
14958 | } | |
14959 | _ACEOF | |
14960 | rm -f conftest.o conftest.obj | |
47964710 VS |
14961 | if { (ac_try="$ac_compile" |
14962 | case "(($ac_try" in | |
14963 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14964 | *) ac_try_echo=$ac_try;; | |
14965 | esac | |
d589327a | 14966 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 14967 | (eval "$ac_compile") 2>&5 |
8bf7f1a9 | 14968 | ac_status=$? |
d589327a | 14969 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8bf7f1a9 | 14970 | (exit $ac_status); }; then |
47964710 VS |
14971 | for ac_file in conftest.o conftest.obj conftest.*; do |
14972 | test -f "$ac_file" || continue; | |
8bf7f1a9 | 14973 | case $ac_file in |
d589327a | 14974 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; |
8bf7f1a9 VZ |
14975 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
14976 | break;; | |
14977 | esac | |
6da4ac91 | 14978 | done |
8bf7f1a9 | 14979 | else |
d589327a | 14980 | echo "$as_me: failed program was:" >&5 |
8bf7f1a9 | 14981 | sed 's/^/| /' conftest.$ac_ext >&5 |
6da4ac91 | 14982 | |
d589327a | 14983 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
6da4ac91 | 14984 | See \`config.log' for more details." >&5 |
d589327a | 14985 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
6da4ac91 | 14986 | See \`config.log' for more details." >&2;} |
d589327a | 14987 | { (exit 1); exit 1; }; } |
8bf7f1a9 | 14988 | fi |
6da4ac91 | 14989 | |
8bf7f1a9 VZ |
14990 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
14991 | fi | |
d589327a VZ |
14992 | { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
14993 | echo "${ECHO_T}$ac_cv_objext" >&6; } | |
8bf7f1a9 VZ |
14994 | OBJEXT=$ac_cv_objext |
14995 | ac_objext=$OBJEXT | |
d589327a VZ |
14996 | { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
14997 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } | |
6da4ac91 | 14998 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
d589327a | 14999 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6da4ac91 VZ |
15000 | else |
15001 | cat >conftest.$ac_ext <<_ACEOF | |
15002 | /* confdefs.h. */ | |
15003 | _ACEOF | |
15004 | cat confdefs.h >>conftest.$ac_ext | |
15005 | cat >>conftest.$ac_ext <<_ACEOF | |
15006 | /* end confdefs.h. */ | |
15007 | ||
15008 | int | |
15009 | main () | |
15010 | { | |
15011 | #ifndef __GNUC__ | |
15012 | choke me | |
15013 | #endif | |
15014 | ||
15015 | ; | |
15016 | return 0; | |
15017 | } | |
15018 | _ACEOF | |
15019 | rm -f conftest.$ac_objext | |
47964710 VS |
15020 | if { (ac_try="$ac_compile" |
15021 | case "(($ac_try" in | |
15022 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15023 | *) ac_try_echo=$ac_try;; | |
15024 | esac | |
d589327a | 15025 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 15026 | (eval "$ac_compile") 2>conftest.er1 |
6da4ac91 VZ |
15027 | ac_status=$? |
15028 | grep -v '^ *+' conftest.er1 >conftest.err | |
15029 | rm -f conftest.er1 | |
15030 | cat conftest.err >&5 | |
d589327a | 15031 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
15032 | (exit $ac_status); } && { |
15033 | test -z "$ac_c_werror_flag" || | |
15034 | test ! -s conftest.err | |
15035 | } && test -s conftest.$ac_objext; then | |
6da4ac91 VZ |
15036 | ac_compiler_gnu=yes |
15037 | else | |
d589327a | 15038 | echo "$as_me: failed program was:" >&5 |
6da4ac91 VZ |
15039 | sed 's/^/| /' conftest.$ac_ext >&5 |
15040 | ||
47964710 | 15041 | ac_compiler_gnu=no |
6da4ac91 | 15042 | fi |
47964710 VS |
15043 | |
15044 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6da4ac91 VZ |
15045 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
15046 | ||
15047 | fi | |
d589327a VZ |
15048 | { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
15049 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } | |
15050 | GCC=`test $ac_compiler_gnu = yes && echo yes` | |
6da4ac91 VZ |
15051 | ac_test_CFLAGS=${CFLAGS+set} |
15052 | ac_save_CFLAGS=$CFLAGS | |
d589327a VZ |
15053 | { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
15054 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } | |
6da4ac91 | 15055 | if test "${ac_cv_prog_cc_g+set}" = set; then |
d589327a | 15056 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6da4ac91 | 15057 | else |
47964710 VS |
15058 | ac_save_c_werror_flag=$ac_c_werror_flag |
15059 | ac_c_werror_flag=yes | |
15060 | ac_cv_prog_cc_g=no | |
15061 | CFLAGS="-g" | |
15062 | cat >conftest.$ac_ext <<_ACEOF | |
3f7f284d RD |
15063 | /* confdefs.h. */ |
15064 | _ACEOF | |
15065 | cat confdefs.h >>conftest.$ac_ext | |
15066 | cat >>conftest.$ac_ext <<_ACEOF | |
15067 | /* end confdefs.h. */ | |
15068 | ||
15069 | int | |
15070 | main () | |
15071 | { | |
15072 | ||
15073 | ; | |
15074 | return 0; | |
15075 | } | |
15076 | _ACEOF | |
15077 | rm -f conftest.$ac_objext | |
47964710 VS |
15078 | if { (ac_try="$ac_compile" |
15079 | case "(($ac_try" in | |
15080 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15081 | *) ac_try_echo=$ac_try;; | |
15082 | esac | |
d589327a | 15083 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 15084 | (eval "$ac_compile") 2>conftest.er1 |
3f7f284d RD |
15085 | ac_status=$? |
15086 | grep -v '^ *+' conftest.er1 >conftest.err | |
15087 | rm -f conftest.er1 | |
15088 | cat conftest.err >&5 | |
d589327a | 15089 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
15090 | (exit $ac_status); } && { |
15091 | test -z "$ac_c_werror_flag" || | |
15092 | test ! -s conftest.err | |
15093 | } && test -s conftest.$ac_objext; then | |
15094 | ac_cv_prog_cc_g=yes | |
15095 | else | |
d589327a | 15096 | echo "$as_me: failed program was:" >&5 |
47964710 VS |
15097 | sed 's/^/| /' conftest.$ac_ext >&5 |
15098 | ||
15099 | CFLAGS="" | |
15100 | cat >conftest.$ac_ext <<_ACEOF | |
15101 | /* confdefs.h. */ | |
15102 | _ACEOF | |
15103 | cat confdefs.h >>conftest.$ac_ext | |
15104 | cat >>conftest.$ac_ext <<_ACEOF | |
15105 | /* end confdefs.h. */ | |
15106 | ||
15107 | int | |
15108 | main () | |
15109 | { | |
15110 | ||
15111 | ; | |
15112 | return 0; | |
15113 | } | |
15114 | _ACEOF | |
15115 | rm -f conftest.$ac_objext | |
15116 | if { (ac_try="$ac_compile" | |
15117 | case "(($ac_try" in | |
15118 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15119 | *) ac_try_echo=$ac_try;; | |
15120 | esac | |
d589327a | 15121 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 15122 | (eval "$ac_compile") 2>conftest.er1 |
7fd3acaf | 15123 | ac_status=$? |
47964710 VS |
15124 | grep -v '^ *+' conftest.er1 >conftest.err |
15125 | rm -f conftest.er1 | |
15126 | cat conftest.err >&5 | |
d589327a | 15127 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
15128 | (exit $ac_status); } && { |
15129 | test -z "$ac_c_werror_flag" || | |
15130 | test ! -s conftest.err | |
15131 | } && test -s conftest.$ac_objext; then | |
15132 | : | |
15133 | else | |
d589327a | 15134 | echo "$as_me: failed program was:" >&5 |
47964710 VS |
15135 | sed 's/^/| /' conftest.$ac_ext >&5 |
15136 | ||
15137 | ac_c_werror_flag=$ac_save_c_werror_flag | |
15138 | CFLAGS="-g" | |
15139 | cat >conftest.$ac_ext <<_ACEOF | |
15140 | /* confdefs.h. */ | |
15141 | _ACEOF | |
15142 | cat confdefs.h >>conftest.$ac_ext | |
15143 | cat >>conftest.$ac_ext <<_ACEOF | |
15144 | /* end confdefs.h. */ | |
15145 | ||
15146 | int | |
15147 | main () | |
15148 | { | |
15149 | ||
15150 | ; | |
15151 | return 0; | |
15152 | } | |
15153 | _ACEOF | |
15154 | rm -f conftest.$ac_objext | |
15155 | if { (ac_try="$ac_compile" | |
15156 | case "(($ac_try" in | |
15157 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15158 | *) ac_try_echo=$ac_try;; | |
15159 | esac | |
d589327a | 15160 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 15161 | (eval "$ac_compile") 2>conftest.er1 |
7fd3acaf | 15162 | ac_status=$? |
47964710 VS |
15163 | grep -v '^ *+' conftest.er1 >conftest.err |
15164 | rm -f conftest.er1 | |
15165 | cat conftest.err >&5 | |
d589327a | 15166 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
15167 | (exit $ac_status); } && { |
15168 | test -z "$ac_c_werror_flag" || | |
15169 | test ! -s conftest.err | |
15170 | } && test -s conftest.$ac_objext; then | |
7fd3acaf RD |
15171 | ac_cv_prog_cc_g=yes |
15172 | else | |
d589327a | 15173 | echo "$as_me: failed program was:" >&5 |
7fd3acaf RD |
15174 | sed 's/^/| /' conftest.$ac_ext >&5 |
15175 | ||
47964710 | 15176 | |
6da4ac91 | 15177 | fi |
47964710 VS |
15178 | |
15179 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
15180 | fi | |
15181 | ||
15182 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
15183 | fi | |
15184 | ||
15185 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
15186 | ac_c_werror_flag=$ac_save_c_werror_flag | |
84ebfcbd | 15187 | fi |
d589327a VZ |
15188 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
15189 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } | |
6da4ac91 VZ |
15190 | if test "$ac_test_CFLAGS" = set; then |
15191 | CFLAGS=$ac_save_CFLAGS | |
15192 | elif test $ac_cv_prog_cc_g = yes; then | |
15193 | if test "$GCC" = yes; then | |
15194 | CFLAGS="-g -O2" | |
15195 | else | |
15196 | CFLAGS="-g" | |
15197 | fi | |
15198 | else | |
15199 | if test "$GCC" = yes; then | |
15200 | CFLAGS="-O2" | |
15201 | else | |
15202 | CFLAGS= | |
15203 | fi | |
15204 | fi | |
d589327a VZ |
15205 | { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
15206 | echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } | |
47964710 | 15207 | if test "${ac_cv_prog_cc_c89+set}" = set; then |
d589327a | 15208 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6da4ac91 | 15209 | else |
47964710 | 15210 | ac_cv_prog_cc_c89=no |
6da4ac91 VZ |
15211 | ac_save_CC=$CC |
15212 | cat >conftest.$ac_ext <<_ACEOF | |
15213 | /* confdefs.h. */ | |
15214 | _ACEOF | |
15215 | cat confdefs.h >>conftest.$ac_ext | |
15216 | cat >>conftest.$ac_ext <<_ACEOF | |
15217 | /* end confdefs.h. */ | |
15218 | #include <stdarg.h> | |
15219 | #include <stdio.h> | |
15220 | #include <sys/types.h> | |
15221 | #include <sys/stat.h> | |
15222 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
15223 | struct buf { int x; }; | |
15224 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
15225 | static char *e (p, i) | |
15226 | char **p; | |
15227 | int i; | |
15228 | { | |
15229 | return p[i]; | |
15230 | } | |
15231 | static char *f (char * (*g) (char **, int), char **p, ...) | |
15232 | { | |
15233 | char *s; | |
15234 | va_list v; | |
15235 | va_start (v,p); | |
15236 | s = g (p, va_arg (v,int)); | |
15237 | va_end (v); | |
15238 | return s; | |
15239 | } | |
15240 | ||
15241 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
15242 | function prototypes and stuff, but not '\xHH' hex character constants. | |
15243 | These don't provoke an error unfortunately, instead are silently treated | |
47964710 | 15244 | as 'x'. The following induces an error, until -std is added to get |
6da4ac91 VZ |
15245 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
15246 | array size at least. It's necessary to write '\x00'==0 to get something | |
47964710 | 15247 | that's true only with -std. */ |
6da4ac91 VZ |
15248 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
15249 | ||
47964710 VS |
15250 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
15251 | inside strings and character constants. */ | |
15252 | #define FOO(x) 'x' | |
15253 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
15254 | ||
6da4ac91 VZ |
15255 | int test (int i, double x); |
15256 | struct s1 {int (*f) (int a);}; | |
15257 | struct s2 {int (*f) (double a);}; | |
15258 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
15259 | int argc; | |
15260 | char **argv; | |
15261 | int | |
15262 | main () | |
15263 | { | |
15264 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
15265 | ; | |
15266 | return 0; | |
15267 | } | |
15268 | _ACEOF | |
47964710 VS |
15269 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
15270 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
6da4ac91 VZ |
15271 | do |
15272 | CC="$ac_save_CC $ac_arg" | |
15273 | rm -f conftest.$ac_objext | |
47964710 VS |
15274 | if { (ac_try="$ac_compile" |
15275 | case "(($ac_try" in | |
15276 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15277 | *) ac_try_echo=$ac_try;; | |
15278 | esac | |
d589327a | 15279 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 15280 | (eval "$ac_compile") 2>conftest.er1 |
6da4ac91 VZ |
15281 | ac_status=$? |
15282 | grep -v '^ *+' conftest.er1 >conftest.err | |
15283 | rm -f conftest.er1 | |
15284 | cat conftest.err >&5 | |
d589327a | 15285 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
15286 | (exit $ac_status); } && { |
15287 | test -z "$ac_c_werror_flag" || | |
15288 | test ! -s conftest.err | |
15289 | } && test -s conftest.$ac_objext; then | |
15290 | ac_cv_prog_cc_c89=$ac_arg | |
6da4ac91 | 15291 | else |
d589327a | 15292 | echo "$as_me: failed program was:" >&5 |
6da4ac91 VZ |
15293 | sed 's/^/| /' conftest.$ac_ext >&5 |
15294 | ||
47964710 | 15295 | |
6da4ac91 | 15296 | fi |
47964710 VS |
15297 | |
15298 | rm -f core conftest.err conftest.$ac_objext | |
15299 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
6da4ac91 | 15300 | done |
47964710 | 15301 | rm -f conftest.$ac_ext |
6da4ac91 VZ |
15302 | CC=$ac_save_CC |
15303 | ||
15304 | fi | |
47964710 VS |
15305 | # AC_CACHE_VAL |
15306 | case "x$ac_cv_prog_cc_c89" in | |
15307 | x) | |
d589327a VZ |
15308 | { echo "$as_me:$LINENO: result: none needed" >&5 |
15309 | echo "${ECHO_T}none needed" >&6; } ;; | |
47964710 | 15310 | xno) |
d589327a VZ |
15311 | { echo "$as_me:$LINENO: result: unsupported" >&5 |
15312 | echo "${ECHO_T}unsupported" >&6; } ;; | |
6da4ac91 | 15313 | *) |
47964710 | 15314 | CC="$CC $ac_cv_prog_cc_c89" |
d589327a VZ |
15315 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
15316 | echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; | |
6da4ac91 VZ |
15317 | esac |
15318 | ||
bd8a7646 | 15319 | |
6da4ac91 VZ |
15320 | ac_ext=c |
15321 | ac_cpp='$CPP $CPPFLAGS' | |
15322 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
15323 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
15324 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
15325 | ||
15326 | ||
ab0ad5f1 | 15327 | |
43a7c679 | 15328 | |
ab0ad5f1 VZ |
15329 | ac_ext=c |
15330 | ac_cpp='$CPP $CPPFLAGS' | |
15331 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
15332 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
15333 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
15334 | ||
d589327a VZ |
15335 | { echo "$as_me:$LINENO: checking whether we are using the Intel C compiler" >&5 |
15336 | echo $ECHO_N "checking whether we are using the Intel C compiler... $ECHO_C" >&6; } | |
ab0ad5f1 | 15337 | if test "${bakefile_cv_c_compiler___INTEL_COMPILER+set}" = set; then |
d589327a | 15338 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ab0ad5f1 VZ |
15339 | else |
15340 | cat >conftest.$ac_ext <<_ACEOF | |
15341 | /* confdefs.h. */ | |
15342 | _ACEOF | |
15343 | cat confdefs.h >>conftest.$ac_ext | |
15344 | cat >>conftest.$ac_ext <<_ACEOF | |
15345 | /* end confdefs.h. */ | |
15346 | ||
15347 | int | |
15348 | main () | |
15349 | { | |
15350 | ||
15351 | #ifndef __INTEL_COMPILER | |
15352 | choke me | |
15353 | #endif | |
15354 | ||
15355 | ; | |
15356 | return 0; | |
15357 | } | |
15358 | _ACEOF | |
15359 | rm -f conftest.$ac_objext | |
47964710 VS |
15360 | if { (ac_try="$ac_compile" |
15361 | case "(($ac_try" in | |
15362 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15363 | *) ac_try_echo=$ac_try;; | |
15364 | esac | |
d589327a | 15365 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 15366 | (eval "$ac_compile") 2>conftest.er1 |
ab0ad5f1 VZ |
15367 | ac_status=$? |
15368 | grep -v '^ *+' conftest.er1 >conftest.err | |
15369 | rm -f conftest.er1 | |
15370 | cat conftest.err >&5 | |
d589327a | 15371 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
15372 | (exit $ac_status); } && { |
15373 | test -z "$ac_c_werror_flag" || | |
15374 | test ! -s conftest.err | |
15375 | } && test -s conftest.$ac_objext; then | |
ab0ad5f1 VZ |
15376 | bakefile_cv_c_compiler___INTEL_COMPILER=yes |
15377 | else | |
d589327a | 15378 | echo "$as_me: failed program was:" >&5 |
ab0ad5f1 VZ |
15379 | sed 's/^/| /' conftest.$ac_ext >&5 |
15380 | ||
47964710 | 15381 | bakefile_cv_c_compiler___INTEL_COMPILER=no |
ab0ad5f1 VZ |
15382 | |
15383 | fi | |
47964710 VS |
15384 | |
15385 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ab0ad5f1 VZ |
15386 | |
15387 | ||
15388 | fi | |
d589327a VZ |
15389 | { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___INTEL_COMPILER" >&5 |
15390 | echo "${ECHO_T}$bakefile_cv_c_compiler___INTEL_COMPILER" >&6; } | |
43a7c679 VZ |
15391 | if test "x$bakefile_cv_c_compiler___INTEL_COMPILER" = "xyes"; then |
15392 | :; INTELCC=yes | |
15393 | else | |
15394 | :; | |
15395 | fi | |
ab0ad5f1 VZ |
15396 | ac_ext=c |
15397 | ac_cpp='$CPP $CPPFLAGS' | |
15398 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
15399 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
15400 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
15401 | ||
43a7c679 | 15402 | |
ab0ad5f1 VZ |
15403 | |
15404 | ||
05622061 VZ |
15405 | if test "$INTELCC" = "yes"; then |
15406 | ||
15407 | ||
15408 | ac_ext=c | |
15409 | ac_cpp='$CPP $CPPFLAGS' | |
15410 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
15411 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
15412 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
15413 | ||
d589327a VZ |
15414 | { echo "$as_me:$LINENO: checking whether we are using Intel C compiler v8 or later" >&5 |
15415 | echo $ECHO_N "checking whether we are using Intel C compiler v8 or later... $ECHO_C" >&6; } | |
05622061 | 15416 | if test "${bakefile_cv_c_compiler___INTEL_COMPILER_lt_800+set}" = set; then |
d589327a | 15417 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
05622061 VZ |
15418 | else |
15419 | cat >conftest.$ac_ext <<_ACEOF | |
15420 | /* confdefs.h. */ | |
15421 | _ACEOF | |
15422 | cat confdefs.h >>conftest.$ac_ext | |
15423 | cat >>conftest.$ac_ext <<_ACEOF | |
15424 | /* end confdefs.h. */ | |
15425 | ||
15426 | int | |
15427 | main () | |
15428 | { | |
15429 | ||
15430 | #ifndef __INTEL_COMPILER || __INTEL_COMPILER < 800 | |
15431 | choke me | |
15432 | #endif | |
15433 | ||
15434 | ; | |
15435 | return 0; | |
15436 | } | |
15437 | _ACEOF | |
15438 | rm -f conftest.$ac_objext | |
15439 | if { (ac_try="$ac_compile" | |
15440 | case "(($ac_try" in | |
15441 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15442 | *) ac_try_echo=$ac_try;; | |
15443 | esac | |
d589327a | 15444 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
05622061 VZ |
15445 | (eval "$ac_compile") 2>conftest.er1 |
15446 | ac_status=$? | |
15447 | grep -v '^ *+' conftest.er1 >conftest.err | |
15448 | rm -f conftest.er1 | |
15449 | cat conftest.err >&5 | |
d589327a | 15450 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
05622061 VZ |
15451 | (exit $ac_status); } && { |
15452 | test -z "$ac_c_werror_flag" || | |
15453 | test ! -s conftest.err | |
15454 | } && test -s conftest.$ac_objext; then | |
15455 | bakefile_cv_c_compiler___INTEL_COMPILER_lt_800=yes | |
15456 | else | |
d589327a | 15457 | echo "$as_me: failed program was:" >&5 |
05622061 VZ |
15458 | sed 's/^/| /' conftest.$ac_ext >&5 |
15459 | ||
15460 | bakefile_cv_c_compiler___INTEL_COMPILER_lt_800=no | |
15461 | ||
15462 | fi | |
15463 | ||
15464 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
15465 | ||
15466 | ||
15467 | fi | |
d589327a VZ |
15468 | { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___INTEL_COMPILER_lt_800" >&5 |
15469 | echo "${ECHO_T}$bakefile_cv_c_compiler___INTEL_COMPILER_lt_800" >&6; } | |
05622061 VZ |
15470 | if test "x$bakefile_cv_c_compiler___INTEL_COMPILER_lt_800" = "xyes"; then |
15471 | :; INTELCC8=yes | |
15472 | else | |
15473 | :; | |
15474 | fi | |
15475 | ac_ext=c | |
15476 | ac_cpp='$CPP $CPPFLAGS' | |
15477 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
15478 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
15479 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
15480 | ||
15481 | ||
15482 | ||
15483 | ||
15484 | ||
15485 | ac_ext=c | |
15486 | ac_cpp='$CPP $CPPFLAGS' | |
15487 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
15488 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
15489 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
15490 | ||
d589327a VZ |
15491 | { echo "$as_me:$LINENO: checking whether we are using Intel C compiler v10 or later" >&5 |
15492 | echo $ECHO_N "checking whether we are using Intel C compiler v10 or later... $ECHO_C" >&6; } | |
05622061 | 15493 | if test "${bakefile_cv_c_compiler___INTEL_COMPILER_lt_1000+set}" = set; then |
d589327a | 15494 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
05622061 VZ |
15495 | else |
15496 | cat >conftest.$ac_ext <<_ACEOF | |
15497 | /* confdefs.h. */ | |
15498 | _ACEOF | |
15499 | cat confdefs.h >>conftest.$ac_ext | |
15500 | cat >>conftest.$ac_ext <<_ACEOF | |
15501 | /* end confdefs.h. */ | |
15502 | ||
15503 | int | |
15504 | main () | |
15505 | { | |
15506 | ||
15507 | #ifndef __INTEL_COMPILER || __INTEL_COMPILER < 1000 | |
15508 | choke me | |
15509 | #endif | |
15510 | ||
15511 | ; | |
15512 | return 0; | |
15513 | } | |
15514 | _ACEOF | |
15515 | rm -f conftest.$ac_objext | |
15516 | if { (ac_try="$ac_compile" | |
15517 | case "(($ac_try" in | |
15518 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15519 | *) ac_try_echo=$ac_try;; | |
15520 | esac | |
d589327a | 15521 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
05622061 VZ |
15522 | (eval "$ac_compile") 2>conftest.er1 |
15523 | ac_status=$? | |
15524 | grep -v '^ *+' conftest.er1 >conftest.err | |
15525 | rm -f conftest.er1 | |
15526 | cat conftest.err >&5 | |
d589327a | 15527 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
05622061 VZ |
15528 | (exit $ac_status); } && { |
15529 | test -z "$ac_c_werror_flag" || | |
15530 | test ! -s conftest.err | |
15531 | } && test -s conftest.$ac_objext; then | |
15532 | bakefile_cv_c_compiler___INTEL_COMPILER_lt_1000=yes | |
15533 | else | |
d589327a | 15534 | echo "$as_me: failed program was:" >&5 |
05622061 VZ |
15535 | sed 's/^/| /' conftest.$ac_ext >&5 |
15536 | ||
15537 | bakefile_cv_c_compiler___INTEL_COMPILER_lt_1000=no | |
15538 | ||
15539 | fi | |
15540 | ||
15541 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
15542 | ||
15543 | ||
15544 | fi | |
d589327a VZ |
15545 | { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___INTEL_COMPILER_lt_1000" >&5 |
15546 | echo "${ECHO_T}$bakefile_cv_c_compiler___INTEL_COMPILER_lt_1000" >&6; } | |
05622061 VZ |
15547 | if test "x$bakefile_cv_c_compiler___INTEL_COMPILER_lt_1000" = "xyes"; then |
15548 | :; INTELCC10=yes | |
15549 | else | |
15550 | :; | |
15551 | fi | |
15552 | ac_ext=c | |
15553 | ac_cpp='$CPP $CPPFLAGS' | |
15554 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
15555 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
15556 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
15557 | ||
15558 | ||
15559 | ||
15560 | fi | |
15561 | ||
ab0ad5f1 | 15562 | if test "x$GCC" != "xyes"; then |
3006edc0 | 15563 | if test "xCC" = "xC"; then |
d589327a VZ |
15564 | { echo "$as_me:$LINENO: checking if the C compiler requires -ext o" >&5 |
15565 | echo $ECHO_N "checking if the C compiler requires -ext o... $ECHO_C" >&6; } | |
0093c2fc | 15566 | if test "${bakefile_cv_c_exto+set}" = set; then |
d589327a | 15567 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
480ccd21 DE |
15568 | else |
15569 | cat >conftest.$ac_ext <<_ACEOF | |
15570 | /* confdefs.h. */ | |
15571 | _ACEOF | |
15572 | cat confdefs.h >>conftest.$ac_ext | |
15573 | cat >>conftest.$ac_ext <<_ACEOF | |
15574 | /* end confdefs.h. */ | |
15575 | ||
15576 | int | |
15577 | main () | |
15578 | { | |
15579 | ||
15580 | ; | |
15581 | return 0; | |
15582 | } | |
15583 | _ACEOF | |
15584 | rm -f conftest.$ac_objext conftest.$ac_ext.o | |
15585 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15586 | (eval $ac_compile) 2>&5 | |
15587 | ac_status=$? | |
d589327a | 15588 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
480ccd21 DE |
15589 | (exit $ac_status); }; then |
15590 | for ac_file in `(ls conftest.* 2>/dev/null)`; do | |
15591 | case $ac_file in | |
15592 | conftest.$ac_ext.o) | |
0093c2fc | 15593 | bakefile_cv_c_exto="-ext o" |
480ccd21 DE |
15594 | ;; |
15595 | *) | |
15596 | ;; | |
15597 | esac | |
15598 | done | |
15599 | else | |
d589327a | 15600 | { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile |
480ccd21 | 15601 | See \`config.log' for more details." >&5 |
d589327a | 15602 | echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile |
480ccd21 | 15603 | See \`config.log' for more details." >&2;} |
d589327a | 15604 | { (exit 1); exit 1; }; } |
480ccd21 DE |
15605 | |
15606 | fi | |
15607 | ||
15608 | rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext | |
15609 | ||
15610 | fi | |
d589327a VZ |
15611 | { echo "$as_me:$LINENO: result: $bakefile_cv_c_exto" >&5 |
15612 | echo "${ECHO_T}$bakefile_cv_c_exto" >&6; } | |
0093c2fc | 15613 | if test "x$bakefile_cv_c_exto" '!=' "x"; then |
480ccd21 | 15614 | if test "c" = "c"; then |
0093c2fc | 15615 | CFLAGS="$bakefile_cv_c_exto $CFLAGS" |
480ccd21 DE |
15616 | fi |
15617 | if test "c" = "cxx"; then | |
0093c2fc | 15618 | CXXFLAGS="$bakefile_cv_c_exto $CXXFLAGS" |
480ccd21 DE |
15619 | fi |
15620 | fi | |
15621 | ||
0093c2fc | 15622 | if test "x$bakefile_cv_c_exto" '!=' "x"; then |
3006edc0 VZ |
15623 | unset ac_cv_prog_cc_g |
15624 | ac_test_CFLAGS=${CFLAGS+set} | |
480ccd21 | 15625 | ac_save_CFLAGS=$CFLAGS |
d589327a VZ |
15626 | { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
15627 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } | |
480ccd21 | 15628 | if test "${ac_cv_prog_cc_g+set}" = set; then |
d589327a | 15629 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
480ccd21 | 15630 | else |
47964710 VS |
15631 | ac_save_c_werror_flag=$ac_c_werror_flag |
15632 | ac_c_werror_flag=yes | |
15633 | ac_cv_prog_cc_g=no | |
15634 | CFLAGS="-g" | |
15635 | cat >conftest.$ac_ext <<_ACEOF | |
3f7f284d RD |
15636 | /* confdefs.h. */ |
15637 | _ACEOF | |
15638 | cat confdefs.h >>conftest.$ac_ext | |
15639 | cat >>conftest.$ac_ext <<_ACEOF | |
15640 | /* end confdefs.h. */ | |
15641 | ||
15642 | int | |
15643 | main () | |
15644 | { | |
15645 | ||
15646 | ; | |
15647 | return 0; | |
15648 | } | |
15649 | _ACEOF | |
15650 | rm -f conftest.$ac_objext | |
47964710 VS |
15651 | if { (ac_try="$ac_compile" |
15652 | case "(($ac_try" in | |
15653 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15654 | *) ac_try_echo=$ac_try;; | |
15655 | esac | |
d589327a | 15656 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 15657 | (eval "$ac_compile") 2>conftest.er1 |
3f7f284d RD |
15658 | ac_status=$? |
15659 | grep -v '^ *+' conftest.er1 >conftest.err | |
15660 | rm -f conftest.er1 | |
15661 | cat conftest.err >&5 | |
d589327a | 15662 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
15663 | (exit $ac_status); } && { |
15664 | test -z "$ac_c_werror_flag" || | |
15665 | test ! -s conftest.err | |
15666 | } && test -s conftest.$ac_objext; then | |
15667 | ac_cv_prog_cc_g=yes | |
15668 | else | |
d589327a | 15669 | echo "$as_me: failed program was:" >&5 |
47964710 VS |
15670 | sed 's/^/| /' conftest.$ac_ext >&5 |
15671 | ||
15672 | CFLAGS="" | |
15673 | cat >conftest.$ac_ext <<_ACEOF | |
15674 | /* confdefs.h. */ | |
15675 | _ACEOF | |
15676 | cat confdefs.h >>conftest.$ac_ext | |
15677 | cat >>conftest.$ac_ext <<_ACEOF | |
15678 | /* end confdefs.h. */ | |
15679 | ||
15680 | int | |
15681 | main () | |
15682 | { | |
15683 | ||
15684 | ; | |
15685 | return 0; | |
15686 | } | |
15687 | _ACEOF | |
15688 | rm -f conftest.$ac_objext | |
15689 | if { (ac_try="$ac_compile" | |
15690 | case "(($ac_try" in | |
15691 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15692 | *) ac_try_echo=$ac_try;; | |
15693 | esac | |
d589327a | 15694 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 15695 | (eval "$ac_compile") 2>conftest.er1 |
7fd3acaf | 15696 | ac_status=$? |
47964710 VS |
15697 | grep -v '^ *+' conftest.er1 >conftest.err |
15698 | rm -f conftest.er1 | |
15699 | cat conftest.err >&5 | |
d589327a | 15700 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
15701 | (exit $ac_status); } && { |
15702 | test -z "$ac_c_werror_flag" || | |
15703 | test ! -s conftest.err | |
15704 | } && test -s conftest.$ac_objext; then | |
15705 | : | |
15706 | else | |
d589327a | 15707 | echo "$as_me: failed program was:" >&5 |
47964710 VS |
15708 | sed 's/^/| /' conftest.$ac_ext >&5 |
15709 | ||
15710 | ac_c_werror_flag=$ac_save_c_werror_flag | |
15711 | CFLAGS="-g" | |
15712 | cat >conftest.$ac_ext <<_ACEOF | |
15713 | /* confdefs.h. */ | |
15714 | _ACEOF | |
15715 | cat confdefs.h >>conftest.$ac_ext | |
15716 | cat >>conftest.$ac_ext <<_ACEOF | |
15717 | /* end confdefs.h. */ | |
15718 | ||
15719 | int | |
15720 | main () | |
15721 | { | |
15722 | ||
15723 | ; | |
15724 | return 0; | |
15725 | } | |
15726 | _ACEOF | |
15727 | rm -f conftest.$ac_objext | |
15728 | if { (ac_try="$ac_compile" | |
15729 | case "(($ac_try" in | |
15730 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15731 | *) ac_try_echo=$ac_try;; | |
15732 | esac | |
d589327a | 15733 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 15734 | (eval "$ac_compile") 2>conftest.er1 |
7fd3acaf | 15735 | ac_status=$? |
47964710 VS |
15736 | grep -v '^ *+' conftest.er1 >conftest.err |
15737 | rm -f conftest.er1 | |
15738 | cat conftest.err >&5 | |
d589327a | 15739 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
15740 | (exit $ac_status); } && { |
15741 | test -z "$ac_c_werror_flag" || | |
15742 | test ! -s conftest.err | |
15743 | } && test -s conftest.$ac_objext; then | |
480ccd21 DE |
15744 | ac_cv_prog_cc_g=yes |
15745 | else | |
d589327a | 15746 | echo "$as_me: failed program was:" >&5 |
480ccd21 DE |
15747 | sed 's/^/| /' conftest.$ac_ext >&5 |
15748 | ||
47964710 | 15749 | |
7fd3acaf | 15750 | fi |
47964710 VS |
15751 | |
15752 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
15753 | fi | |
15754 | ||
15755 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
15756 | fi | |
15757 | ||
15758 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
15759 | ac_c_werror_flag=$ac_save_c_werror_flag | |
7fd3acaf | 15760 | fi |
d589327a VZ |
15761 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
15762 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } | |
480ccd21 DE |
15763 | if test "$ac_test_CFLAGS" = set; then |
15764 | CFLAGS=$ac_save_CFLAGS | |
15765 | elif test $ac_cv_prog_cc_g = yes; then | |
15766 | if test "$GCC" = yes; then | |
15767 | CFLAGS="-g -O2" | |
15768 | else | |
15769 | CFLAGS="-g" | |
15770 | fi | |
15771 | else | |
15772 | if test "$GCC" = yes; then | |
15773 | CFLAGS="-O2" | |
15774 | else | |
15775 | CFLAGS= | |
15776 | fi | |
15777 | fi | |
3006edc0 | 15778 | fi |
ab0ad5f1 | 15779 | fi |
3006edc0 VZ |
15780 | |
15781 | case `uname -s` in | |
15782 | AIX*) | |
43a7c679 VZ |
15783 | |
15784 | ||
15785 | ac_ext=c | |
3006edc0 VZ |
15786 | ac_cpp='$CPP $CPPFLAGS' |
15787 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
15788 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
15789 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
15790 | ||
d589327a VZ |
15791 | { echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5 |
15792 | echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6; } | |
43a7c679 | 15793 | if test "${bakefile_cv_c_compiler___xlC__+set}" = set; then |
d589327a | 15794 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
faa5c14f VZ |
15795 | else |
15796 | cat >conftest.$ac_ext <<_ACEOF | |
15797 | /* confdefs.h. */ | |
15798 | _ACEOF | |
15799 | cat confdefs.h >>conftest.$ac_ext | |
15800 | cat >>conftest.$ac_ext <<_ACEOF | |
15801 | /* end confdefs.h. */ | |
15802 | ||
15803 | int | |
15804 | main () | |
15805 | { | |
43a7c679 VZ |
15806 | |
15807 | #ifndef __xlC__ | |
15808 | choke me | |
15809 | #endif | |
faa5c14f VZ |
15810 | |
15811 | ; | |
15812 | return 0; | |
15813 | } | |
15814 | _ACEOF | |
15815 | rm -f conftest.$ac_objext | |
47964710 VS |
15816 | if { (ac_try="$ac_compile" |
15817 | case "(($ac_try" in | |
15818 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15819 | *) ac_try_echo=$ac_try;; | |
15820 | esac | |
d589327a | 15821 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 15822 | (eval "$ac_compile") 2>conftest.er1 |
faa5c14f VZ |
15823 | ac_status=$? |
15824 | grep -v '^ *+' conftest.er1 >conftest.err | |
15825 | rm -f conftest.er1 | |
15826 | cat conftest.err >&5 | |
d589327a | 15827 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
15828 | (exit $ac_status); } && { |
15829 | test -z "$ac_c_werror_flag" || | |
15830 | test ! -s conftest.err | |
15831 | } && test -s conftest.$ac_objext; then | |
43a7c679 | 15832 | bakefile_cv_c_compiler___xlC__=yes |
faa5c14f | 15833 | else |
d589327a | 15834 | echo "$as_me: failed program was:" >&5 |
faa5c14f VZ |
15835 | sed 's/^/| /' conftest.$ac_ext >&5 |
15836 | ||
47964710 | 15837 | bakefile_cv_c_compiler___xlC__=no |
43a7c679 | 15838 | |
faa5c14f | 15839 | fi |
47964710 VS |
15840 | |
15841 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
faa5c14f | 15842 | |
faa5c14f | 15843 | |
43a7c679 | 15844 | fi |
d589327a VZ |
15845 | { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___xlC__" >&5 |
15846 | echo "${ECHO_T}$bakefile_cv_c_compiler___xlC__" >&6; } | |
43a7c679 VZ |
15847 | if test "x$bakefile_cv_c_compiler___xlC__" = "xyes"; then |
15848 | :; XLCC=yes | |
15849 | else | |
15850 | :; | |
15851 | fi | |
15852 | ac_ext=c | |
faa5c14f VZ |
15853 | ac_cpp='$CPP $CPPFLAGS' |
15854 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
15855 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
15856 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
15857 | ||
15858 | ||
43a7c679 | 15859 | |
faa5c14f VZ |
15860 | ;; |
15861 | ||
15862 | Darwin) | |
43a7c679 VZ |
15863 | |
15864 | ||
15865 | ac_ext=c | |
faa5c14f VZ |
15866 | ac_cpp='$CPP $CPPFLAGS' |
15867 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
15868 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
15869 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
15870 | ||
d589327a VZ |
15871 | { echo "$as_me:$LINENO: checking whether we are using the Metrowerks C compiler" >&5 |
15872 | echo $ECHO_N "checking whether we are using the Metrowerks C compiler... $ECHO_C" >&6; } | |
43a7c679 | 15873 | if test "${bakefile_cv_c_compiler___MWERKS__+set}" = set; then |
d589327a | 15874 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
faa5c14f VZ |
15875 | else |
15876 | cat >conftest.$ac_ext <<_ACEOF | |
15877 | /* confdefs.h. */ | |
15878 | _ACEOF | |
15879 | cat confdefs.h >>conftest.$ac_ext | |
15880 | cat >>conftest.$ac_ext <<_ACEOF | |
15881 | /* end confdefs.h. */ | |
15882 | ||
15883 | int | |
15884 | main () | |
15885 | { | |
43a7c679 VZ |
15886 | |
15887 | #ifndef __MWERKS__ | |
15888 | choke me | |
15889 | #endif | |
faa5c14f VZ |
15890 | |
15891 | ; | |
15892 | return 0; | |
15893 | } | |
15894 | _ACEOF | |
15895 | rm -f conftest.$ac_objext | |
47964710 VS |
15896 | if { (ac_try="$ac_compile" |
15897 | case "(($ac_try" in | |
15898 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15899 | *) ac_try_echo=$ac_try;; | |
15900 | esac | |
d589327a | 15901 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 15902 | (eval "$ac_compile") 2>conftest.er1 |
faa5c14f VZ |
15903 | ac_status=$? |
15904 | grep -v '^ *+' conftest.er1 >conftest.err | |
15905 | rm -f conftest.er1 | |
15906 | cat conftest.err >&5 | |
d589327a | 15907 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
15908 | (exit $ac_status); } && { |
15909 | test -z "$ac_c_werror_flag" || | |
15910 | test ! -s conftest.err | |
15911 | } && test -s conftest.$ac_objext; then | |
43a7c679 | 15912 | bakefile_cv_c_compiler___MWERKS__=yes |
faa5c14f | 15913 | else |
d589327a | 15914 | echo "$as_me: failed program was:" >&5 |
faa5c14f VZ |
15915 | sed 's/^/| /' conftest.$ac_ext >&5 |
15916 | ||
47964710 | 15917 | bakefile_cv_c_compiler___MWERKS__=no |
43a7c679 | 15918 | |
faa5c14f | 15919 | fi |
47964710 VS |
15920 | |
15921 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
faa5c14f | 15922 | |
faa5c14f | 15923 | |
43a7c679 | 15924 | fi |
d589327a VZ |
15925 | { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___MWERKS__" >&5 |
15926 | echo "${ECHO_T}$bakefile_cv_c_compiler___MWERKS__" >&6; } | |
43a7c679 VZ |
15927 | if test "x$bakefile_cv_c_compiler___MWERKS__" = "xyes"; then |
15928 | :; MWCC=yes | |
15929 | else | |
15930 | :; | |
15931 | fi | |
15932 | ac_ext=c | |
faa5c14f VZ |
15933 | ac_cpp='$CPP $CPPFLAGS' |
15934 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
15935 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
15936 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
15937 | ||
15938 | ||
43a7c679 | 15939 | |
05622061 | 15940 | if test "$MWCC" != "yes"; then |
43a7c679 VZ |
15941 | |
15942 | ||
15943 | ac_ext=c | |
faa5c14f VZ |
15944 | ac_cpp='$CPP $CPPFLAGS' |
15945 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
15946 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
15947 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
15948 | ||
d589327a VZ |
15949 | { echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5 |
15950 | echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6; } | |
43a7c679 | 15951 | if test "${bakefile_cv_c_compiler___xlC__+set}" = set; then |
d589327a | 15952 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3006edc0 VZ |
15953 | else |
15954 | cat >conftest.$ac_ext <<_ACEOF | |
15955 | /* confdefs.h. */ | |
15956 | _ACEOF | |
15957 | cat confdefs.h >>conftest.$ac_ext | |
15958 | cat >>conftest.$ac_ext <<_ACEOF | |
15959 | /* end confdefs.h. */ | |
15960 | ||
15961 | int | |
15962 | main () | |
15963 | { | |
43a7c679 VZ |
15964 | |
15965 | #ifndef __xlC__ | |
15966 | choke me | |
15967 | #endif | |
3006edc0 VZ |
15968 | |
15969 | ; | |
15970 | return 0; | |
15971 | } | |
15972 | _ACEOF | |
15973 | rm -f conftest.$ac_objext | |
47964710 VS |
15974 | if { (ac_try="$ac_compile" |
15975 | case "(($ac_try" in | |
15976 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15977 | *) ac_try_echo=$ac_try;; | |
15978 | esac | |
d589327a | 15979 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 15980 | (eval "$ac_compile") 2>conftest.er1 |
3006edc0 VZ |
15981 | ac_status=$? |
15982 | grep -v '^ *+' conftest.er1 >conftest.err | |
15983 | rm -f conftest.er1 | |
15984 | cat conftest.err >&5 | |
d589327a | 15985 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
15986 | (exit $ac_status); } && { |
15987 | test -z "$ac_c_werror_flag" || | |
15988 | test ! -s conftest.err | |
15989 | } && test -s conftest.$ac_objext; then | |
43a7c679 | 15990 | bakefile_cv_c_compiler___xlC__=yes |
3006edc0 | 15991 | else |
d589327a | 15992 | echo "$as_me: failed program was:" >&5 |
3006edc0 VZ |
15993 | sed 's/^/| /' conftest.$ac_ext >&5 |
15994 | ||
47964710 | 15995 | bakefile_cv_c_compiler___xlC__=no |
43a7c679 | 15996 | |
3006edc0 | 15997 | fi |
47964710 VS |
15998 | |
15999 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
9273ffba | 16000 | |
9273ffba | 16001 | |
43a7c679 | 16002 | fi |
d589327a VZ |
16003 | { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___xlC__" >&5 |
16004 | echo "${ECHO_T}$bakefile_cv_c_compiler___xlC__" >&6; } | |
43a7c679 VZ |
16005 | if test "x$bakefile_cv_c_compiler___xlC__" = "xyes"; then |
16006 | :; XLCC=yes | |
16007 | else | |
16008 | :; | |
16009 | fi | |
16010 | ac_ext=c | |
9273ffba DE |
16011 | ac_cpp='$CPP $CPPFLAGS' |
16012 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
16013 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
16014 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
16015 | ||
16016 | ||
43a7c679 | 16017 | |
05622061 | 16018 | fi |
3006edc0 VZ |
16019 | ;; |
16020 | ||
16021 | IRIX*) | |
a848cd7e | 16022 | |
6dcfc289 | 16023 | |
0ad5d837 VZ |
16024 | ac_ext=c |
16025 | ac_cpp='$CPP $CPPFLAGS' | |
16026 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
16027 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
16028 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
16029 | ||
d589327a VZ |
16030 | { echo "$as_me:$LINENO: checking whether we are using the SGI C compiler" >&5 |
16031 | echo $ECHO_N "checking whether we are using the SGI C compiler... $ECHO_C" >&6; } | |
0ad5d837 | 16032 | if test "${bakefile_cv_c_compiler__SGI_COMPILER_VERSION+set}" = set; then |
d589327a | 16033 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
0ad5d837 VZ |
16034 | else |
16035 | cat >conftest.$ac_ext <<_ACEOF | |
16036 | /* confdefs.h. */ | |
16037 | _ACEOF | |
16038 | cat confdefs.h >>conftest.$ac_ext | |
16039 | cat >>conftest.$ac_ext <<_ACEOF | |
16040 | /* end confdefs.h. */ | |
16041 | ||
16042 | int | |
16043 | main () | |
16044 | { | |
16045 | ||
16046 | #ifndef _SGI_COMPILER_VERSION | |
16047 | choke me | |
16048 | #endif | |
16049 | ||
16050 | ; | |
16051 | return 0; | |
16052 | } | |
16053 | _ACEOF | |
16054 | rm -f conftest.$ac_objext | |
47964710 VS |
16055 | if { (ac_try="$ac_compile" |
16056 | case "(($ac_try" in | |
16057 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16058 | *) ac_try_echo=$ac_try;; | |
16059 | esac | |
d589327a | 16060 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 16061 | (eval "$ac_compile") 2>conftest.er1 |
0ad5d837 VZ |
16062 | ac_status=$? |
16063 | grep -v '^ *+' conftest.er1 >conftest.err | |
16064 | rm -f conftest.er1 | |
16065 | cat conftest.err >&5 | |
d589327a | 16066 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
16067 | (exit $ac_status); } && { |
16068 | test -z "$ac_c_werror_flag" || | |
16069 | test ! -s conftest.err | |
16070 | } && test -s conftest.$ac_objext; then | |
0ad5d837 VZ |
16071 | bakefile_cv_c_compiler__SGI_COMPILER_VERSION=yes |
16072 | else | |
d589327a | 16073 | echo "$as_me: failed program was:" >&5 |
0ad5d837 VZ |
16074 | sed 's/^/| /' conftest.$ac_ext >&5 |
16075 | ||
47964710 | 16076 | bakefile_cv_c_compiler__SGI_COMPILER_VERSION=no |
0ad5d837 VZ |
16077 | |
16078 | fi | |
47964710 VS |
16079 | |
16080 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
0ad5d837 VZ |
16081 | |
16082 | ||
16083 | fi | |
d589327a VZ |
16084 | { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&5 |
16085 | echo "${ECHO_T}$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&6; } | |
43a7c679 VZ |
16086 | if test "x$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" = "xyes"; then |
16087 | :; SGICC=yes | |
16088 | else | |
16089 | :; | |
16090 | fi | |
0ad5d837 VZ |
16091 | ac_ext=c |
16092 | ac_cpp='$CPP $CPPFLAGS' | |
16093 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
16094 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
16095 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
16096 | ||
43a7c679 VZ |
16097 | |
16098 | ||
16099 | ;; | |
16100 | ||
16101 | Linux*) | |
05622061 | 16102 | if test "$INTELCC" != "yes"; then |
43a7c679 VZ |
16103 | |
16104 | ||
16105 | ac_ext=c | |
16106 | ac_cpp='$CPP $CPPFLAGS' | |
16107 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
16108 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
16109 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
16110 | ||
d589327a VZ |
16111 | { echo "$as_me:$LINENO: checking whether we are using the Sun C compiler" >&5 |
16112 | echo $ECHO_N "checking whether we are using the Sun C compiler... $ECHO_C" >&6; } | |
43a7c679 | 16113 | if test "${bakefile_cv_c_compiler___SUNPRO_C+set}" = set; then |
d589327a | 16114 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
43a7c679 VZ |
16115 | else |
16116 | cat >conftest.$ac_ext <<_ACEOF | |
16117 | /* confdefs.h. */ | |
16118 | _ACEOF | |
16119 | cat confdefs.h >>conftest.$ac_ext | |
16120 | cat >>conftest.$ac_ext <<_ACEOF | |
16121 | /* end confdefs.h. */ | |
16122 | ||
16123 | int | |
16124 | main () | |
16125 | { | |
16126 | ||
16127 | #ifndef __SUNPRO_C | |
16128 | choke me | |
16129 | #endif | |
16130 | ||
16131 | ; | |
16132 | return 0; | |
16133 | } | |
16134 | _ACEOF | |
16135 | rm -f conftest.$ac_objext | |
47964710 VS |
16136 | if { (ac_try="$ac_compile" |
16137 | case "(($ac_try" in | |
16138 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16139 | *) ac_try_echo=$ac_try;; | |
16140 | esac | |
d589327a | 16141 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 16142 | (eval "$ac_compile") 2>conftest.er1 |
43a7c679 VZ |
16143 | ac_status=$? |
16144 | grep -v '^ *+' conftest.er1 >conftest.err | |
16145 | rm -f conftest.er1 | |
16146 | cat conftest.err >&5 | |
d589327a | 16147 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
16148 | (exit $ac_status); } && { |
16149 | test -z "$ac_c_werror_flag" || | |
16150 | test ! -s conftest.err | |
16151 | } && test -s conftest.$ac_objext; then | |
43a7c679 VZ |
16152 | bakefile_cv_c_compiler___SUNPRO_C=yes |
16153 | else | |
d589327a | 16154 | echo "$as_me: failed program was:" >&5 |
43a7c679 VZ |
16155 | sed 's/^/| /' conftest.$ac_ext >&5 |
16156 | ||
47964710 | 16157 | bakefile_cv_c_compiler___SUNPRO_C=no |
43a7c679 VZ |
16158 | |
16159 | fi | |
47964710 VS |
16160 | |
16161 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
43a7c679 VZ |
16162 | |
16163 | ||
16164 | fi | |
d589327a VZ |
16165 | { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___SUNPRO_C" >&5 |
16166 | echo "${ECHO_T}$bakefile_cv_c_compiler___SUNPRO_C" >&6; } | |
43a7c679 VZ |
16167 | if test "x$bakefile_cv_c_compiler___SUNPRO_C" = "xyes"; then |
16168 | :; SUNCC=yes | |
a48b6595 VZ |
16169 | else |
16170 | :; | |
16171 | fi | |
43a7c679 VZ |
16172 | ac_ext=c |
16173 | ac_cpp='$CPP $CPPFLAGS' | |
16174 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
16175 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
16176 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
16177 | ||
0ad5d837 VZ |
16178 | |
16179 | ||
05622061 | 16180 | fi |
3006edc0 VZ |
16181 | ;; |
16182 | ||
0093c2fc | 16183 | HP-UX*) |
3006edc0 VZ |
16184 | |
16185 | ||
16186 | ac_ext=c | |
16187 | ac_cpp='$CPP $CPPFLAGS' | |
16188 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
16189 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
16190 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
16191 | ||
d589327a VZ |
16192 | { echo "$as_me:$LINENO: checking whether we are using the HP C compiler" >&5 |
16193 | echo $ECHO_N "checking whether we are using the HP C compiler... $ECHO_C" >&6; } | |
0093c2fc | 16194 | if test "${bakefile_cv_c_compiler___HP_cc+set}" = set; then |
d589327a | 16195 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3006edc0 VZ |
16196 | else |
16197 | cat >conftest.$ac_ext <<_ACEOF | |
16198 | /* confdefs.h. */ | |
16199 | _ACEOF | |
16200 | cat confdefs.h >>conftest.$ac_ext | |
16201 | cat >>conftest.$ac_ext <<_ACEOF | |
16202 | /* end confdefs.h. */ | |
16203 | ||
16204 | int | |
16205 | main () | |
16206 | { | |
16207 | ||
0093c2fc | 16208 | #ifndef __HP_cc |
3006edc0 VZ |
16209 | choke me |
16210 | #endif | |
16211 | ||
16212 | ; | |
16213 | return 0; | |
16214 | } | |
16215 | _ACEOF | |
16216 | rm -f conftest.$ac_objext | |
47964710 VS |
16217 | if { (ac_try="$ac_compile" |
16218 | case "(($ac_try" in | |
16219 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16220 | *) ac_try_echo=$ac_try;; | |
16221 | esac | |
d589327a | 16222 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 16223 | (eval "$ac_compile") 2>conftest.er1 |
3006edc0 VZ |
16224 | ac_status=$? |
16225 | grep -v '^ *+' conftest.er1 >conftest.err | |
16226 | rm -f conftest.er1 | |
16227 | cat conftest.err >&5 | |
d589327a | 16228 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
16229 | (exit $ac_status); } && { |
16230 | test -z "$ac_c_werror_flag" || | |
16231 | test ! -s conftest.err | |
16232 | } && test -s conftest.$ac_objext; then | |
0093c2fc | 16233 | bakefile_cv_c_compiler___HP_cc=yes |
3006edc0 | 16234 | else |
d589327a | 16235 | echo "$as_me: failed program was:" >&5 |
3006edc0 VZ |
16236 | sed 's/^/| /' conftest.$ac_ext >&5 |
16237 | ||
47964710 | 16238 | bakefile_cv_c_compiler___HP_cc=no |
3006edc0 VZ |
16239 | |
16240 | fi | |
47964710 VS |
16241 | |
16242 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3006edc0 VZ |
16243 | |
16244 | ||
16245 | fi | |
d589327a VZ |
16246 | { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___HP_cc" >&5 |
16247 | echo "${ECHO_T}$bakefile_cv_c_compiler___HP_cc" >&6; } | |
43a7c679 VZ |
16248 | if test "x$bakefile_cv_c_compiler___HP_cc" = "xyes"; then |
16249 | :; HPCC=yes | |
16250 | else | |
16251 | :; | |
16252 | fi | |
3006edc0 VZ |
16253 | ac_ext=c |
16254 | ac_cpp='$CPP $CPPFLAGS' | |
16255 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
16256 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
16257 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
16258 | ||
a1aa0349 VZ |
16259 | |
16260 | ||
16261 | ;; | |
16262 | ||
0093c2fc | 16263 | OSF1) |
a1aa0349 VZ |
16264 | |
16265 | ||
16266 | ac_ext=c | |
16267 | ac_cpp='$CPP $CPPFLAGS' | |
16268 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
16269 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
16270 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
16271 | ||
d589327a VZ |
16272 | { echo "$as_me:$LINENO: checking whether we are using the Compaq C compiler" >&5 |
16273 | echo $ECHO_N "checking whether we are using the Compaq C compiler... $ECHO_C" >&6; } | |
0093c2fc | 16274 | if test "${bakefile_cv_c_compiler___DECC+set}" = set; then |
d589327a | 16275 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a1aa0349 VZ |
16276 | else |
16277 | cat >conftest.$ac_ext <<_ACEOF | |
16278 | /* confdefs.h. */ | |
16279 | _ACEOF | |
16280 | cat confdefs.h >>conftest.$ac_ext | |
16281 | cat >>conftest.$ac_ext <<_ACEOF | |
16282 | /* end confdefs.h. */ | |
16283 | ||
16284 | int | |
16285 | main () | |
16286 | { | |
16287 | ||
0093c2fc | 16288 | #ifndef __DECC |
a1aa0349 VZ |
16289 | choke me |
16290 | #endif | |
16291 | ||
16292 | ; | |
16293 | return 0; | |
16294 | } | |
16295 | _ACEOF | |
16296 | rm -f conftest.$ac_objext | |
47964710 VS |
16297 | if { (ac_try="$ac_compile" |
16298 | case "(($ac_try" in | |
16299 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16300 | *) ac_try_echo=$ac_try;; | |
16301 | esac | |
d589327a | 16302 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 16303 | (eval "$ac_compile") 2>conftest.er1 |
a1aa0349 VZ |
16304 | ac_status=$? |
16305 | grep -v '^ *+' conftest.er1 >conftest.err | |
16306 | rm -f conftest.er1 | |
16307 | cat conftest.err >&5 | |
d589327a | 16308 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
16309 | (exit $ac_status); } && { |
16310 | test -z "$ac_c_werror_flag" || | |
16311 | test ! -s conftest.err | |
16312 | } && test -s conftest.$ac_objext; then | |
0093c2fc | 16313 | bakefile_cv_c_compiler___DECC=yes |
a1aa0349 | 16314 | else |
d589327a | 16315 | echo "$as_me: failed program was:" >&5 |
a1aa0349 VZ |
16316 | sed 's/^/| /' conftest.$ac_ext >&5 |
16317 | ||
47964710 | 16318 | bakefile_cv_c_compiler___DECC=no |
a1aa0349 VZ |
16319 | |
16320 | fi | |
47964710 VS |
16321 | |
16322 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
a1aa0349 VZ |
16323 | |
16324 | ||
16325 | fi | |
d589327a VZ |
16326 | { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___DECC" >&5 |
16327 | echo "${ECHO_T}$bakefile_cv_c_compiler___DECC" >&6; } | |
43a7c679 VZ |
16328 | if test "x$bakefile_cv_c_compiler___DECC" = "xyes"; then |
16329 | :; COMPAQCC=yes | |
16330 | else | |
16331 | :; | |
16332 | fi | |
a1aa0349 VZ |
16333 | ac_ext=c |
16334 | ac_cpp='$CPP $CPPFLAGS' | |
16335 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
16336 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
16337 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
16338 | ||
0093c2fc VZ |
16339 | |
16340 | ||
16341 | ;; | |
16342 | ||
16343 | SunOS) | |
16344 | ||
16345 | ||
16346 | ac_ext=c | |
16347 | ac_cpp='$CPP $CPPFLAGS' | |
16348 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
16349 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
16350 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
16351 | ||
d589327a VZ |
16352 | { echo "$as_me:$LINENO: checking whether we are using the Sun C compiler" >&5 |
16353 | echo $ECHO_N "checking whether we are using the Sun C compiler... $ECHO_C" >&6; } | |
0093c2fc | 16354 | if test "${bakefile_cv_c_compiler___SUNPRO_C+set}" = set; then |
d589327a | 16355 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
0093c2fc VZ |
16356 | else |
16357 | cat >conftest.$ac_ext <<_ACEOF | |
16358 | /* confdefs.h. */ | |
16359 | _ACEOF | |
16360 | cat confdefs.h >>conftest.$ac_ext | |
16361 | cat >>conftest.$ac_ext <<_ACEOF | |
16362 | /* end confdefs.h. */ | |
16363 | ||
16364 | int | |
16365 | main () | |
16366 | { | |
16367 | ||
16368 | #ifndef __SUNPRO_C | |
16369 | choke me | |
16370 | #endif | |
16371 | ||
16372 | ; | |
16373 | return 0; | |
16374 | } | |
16375 | _ACEOF | |
16376 | rm -f conftest.$ac_objext | |
47964710 VS |
16377 | if { (ac_try="$ac_compile" |
16378 | case "(($ac_try" in | |
16379 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16380 | *) ac_try_echo=$ac_try;; | |
16381 | esac | |
d589327a | 16382 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 16383 | (eval "$ac_compile") 2>conftest.er1 |
0093c2fc VZ |
16384 | ac_status=$? |
16385 | grep -v '^ *+' conftest.er1 >conftest.err | |
16386 | rm -f conftest.er1 | |
16387 | cat conftest.err >&5 | |
d589327a | 16388 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
16389 | (exit $ac_status); } && { |
16390 | test -z "$ac_c_werror_flag" || | |
16391 | test ! -s conftest.err | |
16392 | } && test -s conftest.$ac_objext; then | |
0093c2fc VZ |
16393 | bakefile_cv_c_compiler___SUNPRO_C=yes |
16394 | else | |
d589327a | 16395 | echo "$as_me: failed program was:" >&5 |
0093c2fc VZ |
16396 | sed 's/^/| /' conftest.$ac_ext >&5 |
16397 | ||
47964710 | 16398 | bakefile_cv_c_compiler___SUNPRO_C=no |
0093c2fc VZ |
16399 | |
16400 | fi | |
47964710 VS |
16401 | |
16402 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
0093c2fc VZ |
16403 | |
16404 | ||
16405 | fi | |
d589327a VZ |
16406 | { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___SUNPRO_C" >&5 |
16407 | echo "${ECHO_T}$bakefile_cv_c_compiler___SUNPRO_C" >&6; } | |
43a7c679 VZ |
16408 | if test "x$bakefile_cv_c_compiler___SUNPRO_C" = "xyes"; then |
16409 | :; SUNCC=yes | |
16410 | else | |
16411 | :; | |
16412 | fi | |
0093c2fc VZ |
16413 | ac_ext=c |
16414 | ac_cpp='$CPP $CPPFLAGS' | |
16415 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
16416 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
16417 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
16418 | ||
3006edc0 VZ |
16419 | |
16420 | ||
16421 | ;; | |
16422 | esac | |
ab0ad5f1 | 16423 | fi |
a9e5b1f0 MW |
16424 | |
16425 | ||
3006edc0 | 16426 | |
a848cd7e SC |
16427 | ac_ext=c |
16428 | ac_cpp='$CPP $CPPFLAGS' | |
16429 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
16430 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
16431 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
d589327a VZ |
16432 | { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
16433 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } | |
a848cd7e SC |
16434 | # On Suns, sometimes $CPP names a directory. |
16435 | if test -n "$CPP" && test -d "$CPP"; then | |
16436 | CPP= | |
16437 | fi | |
16438 | if test -z "$CPP"; then | |
16439 | if test "${ac_cv_prog_CPP+set}" = set; then | |
d589327a | 16440 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a848cd7e SC |
16441 | else |
16442 | # Double quotes because CPP needs to be expanded | |
16443 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
16444 | do | |
16445 | ac_preproc_ok=false | |
16446 | for ac_c_preproc_warn_flag in '' yes | |
16447 | do | |
16448 | # Use a header file that comes with gcc, so configuring glibc | |
16449 | # with a fresh cross-compiler works. | |
16450 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
16451 | # <limits.h> exists even on freestanding compilers. | |
16452 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
16453 | # not just through cpp. "Syntax error" is here to catch this case. | |
16454 | cat >conftest.$ac_ext <<_ACEOF | |
16455 | /* confdefs.h. */ | |
16456 | _ACEOF | |
16457 | cat confdefs.h >>conftest.$ac_ext | |
16458 | cat >>conftest.$ac_ext <<_ACEOF | |
16459 | /* end confdefs.h. */ | |
16460 | #ifdef __STDC__ | |
16461 | # include <limits.h> | |
16462 | #else | |
16463 | # include <assert.h> | |
16464 | #endif | |
ac1cb8d3 | 16465 | Syntax error |
a848cd7e | 16466 | _ACEOF |
47964710 VS |
16467 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
16468 | case "(($ac_try" in | |
16469 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16470 | *) ac_try_echo=$ac_try;; | |
16471 | esac | |
d589327a | 16472 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 16473 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
a848cd7e SC |
16474 | ac_status=$? |
16475 | grep -v '^ *+' conftest.er1 >conftest.err | |
16476 | rm -f conftest.er1 | |
16477 | cat conftest.err >&5 | |
d589327a | 16478 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
16479 | (exit $ac_status); } >/dev/null && { |
16480 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
16481 | test ! -s conftest.err | |
16482 | }; then | |
a848cd7e SC |
16483 | : |
16484 | else | |
d589327a | 16485 | echo "$as_me: failed program was:" >&5 |
a848cd7e SC |
16486 | sed 's/^/| /' conftest.$ac_ext >&5 |
16487 | ||
16488 | # Broken: fails on valid input. | |
16489 | continue | |
16490 | fi | |
47964710 | 16491 | |
a848cd7e SC |
16492 | rm -f conftest.err conftest.$ac_ext |
16493 | ||
47964710 | 16494 | # OK, works on sane cases. Now check whether nonexistent headers |
a848cd7e SC |
16495 | # can be detected and how. |
16496 | cat >conftest.$ac_ext <<_ACEOF | |
16497 | /* confdefs.h. */ | |
16498 | _ACEOF | |
16499 | cat confdefs.h >>conftest.$ac_ext | |
16500 | cat >>conftest.$ac_ext <<_ACEOF | |
16501 | /* end confdefs.h. */ | |
16502 | #include <ac_nonexistent.h> | |
16503 | _ACEOF | |
47964710 VS |
16504 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
16505 | case "(($ac_try" in | |
16506 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16507 | *) ac_try_echo=$ac_try;; | |
16508 | esac | |
d589327a | 16509 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 16510 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
a848cd7e SC |
16511 | ac_status=$? |
16512 | grep -v '^ *+' conftest.er1 >conftest.err | |
16513 | rm -f conftest.er1 | |
16514 | cat conftest.err >&5 | |
d589327a | 16515 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
16516 | (exit $ac_status); } >/dev/null && { |
16517 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
16518 | test ! -s conftest.err | |
16519 | }; then | |
a848cd7e SC |
16520 | # Broken: success on invalid input. |
16521 | continue | |
16522 | else | |
d589327a | 16523 | echo "$as_me: failed program was:" >&5 |
a848cd7e SC |
16524 | sed 's/^/| /' conftest.$ac_ext >&5 |
16525 | ||
16526 | # Passes both tests. | |
16527 | ac_preproc_ok=: | |
16528 | break | |
16529 | fi | |
47964710 | 16530 | |
a848cd7e SC |
16531 | rm -f conftest.err conftest.$ac_ext |
16532 | ||
16533 | done | |
16534 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
16535 | rm -f conftest.err conftest.$ac_ext | |
16536 | if $ac_preproc_ok; then | |
16537 | break | |
16538 | fi | |
16539 | ||
16540 | done | |
16541 | ac_cv_prog_CPP=$CPP | |
16542 | ||
16543 | fi | |
16544 | CPP=$ac_cv_prog_CPP | |
16545 | else | |
16546 | ac_cv_prog_CPP=$CPP | |
16547 | fi | |
d589327a VZ |
16548 | { echo "$as_me:$LINENO: result: $CPP" >&5 |
16549 | echo "${ECHO_T}$CPP" >&6; } | |
a848cd7e SC |
16550 | ac_preproc_ok=false |
16551 | for ac_c_preproc_warn_flag in '' yes | |
16552 | do | |
16553 | # Use a header file that comes with gcc, so configuring glibc | |
16554 | # with a fresh cross-compiler works. | |
16555 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
16556 | # <limits.h> exists even on freestanding compilers. | |
16557 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
16558 | # not just through cpp. "Syntax error" is here to catch this case. | |
16559 | cat >conftest.$ac_ext <<_ACEOF | |
16560 | /* confdefs.h. */ | |
16561 | _ACEOF | |
16562 | cat confdefs.h >>conftest.$ac_ext | |
16563 | cat >>conftest.$ac_ext <<_ACEOF | |
16564 | /* end confdefs.h. */ | |
16565 | #ifdef __STDC__ | |
16566 | # include <limits.h> | |
16567 | #else | |
16568 | # include <assert.h> | |
16569 | #endif | |
ac1cb8d3 | 16570 | Syntax error |
a848cd7e | 16571 | _ACEOF |
47964710 VS |
16572 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
16573 | case "(($ac_try" in | |
16574 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16575 | *) ac_try_echo=$ac_try;; | |
16576 | esac | |
d589327a | 16577 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 16578 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
a848cd7e SC |
16579 | ac_status=$? |
16580 | grep -v '^ *+' conftest.er1 >conftest.err | |
16581 | rm -f conftest.er1 | |
16582 | cat conftest.err >&5 | |
d589327a | 16583 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
16584 | (exit $ac_status); } >/dev/null && { |
16585 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
16586 | test ! -s conftest.err | |
16587 | }; then | |
a848cd7e SC |
16588 | : |
16589 | else | |
d589327a | 16590 | echo "$as_me: failed program was:" >&5 |
a848cd7e SC |
16591 | sed 's/^/| /' conftest.$ac_ext >&5 |
16592 | ||
16593 | # Broken: fails on valid input. | |
16594 | continue | |
16595 | fi | |
47964710 | 16596 | |
a848cd7e SC |
16597 | rm -f conftest.err conftest.$ac_ext |
16598 | ||
47964710 | 16599 | # OK, works on sane cases. Now check whether nonexistent headers |
a848cd7e SC |
16600 | # can be detected and how. |
16601 | cat >conftest.$ac_ext <<_ACEOF | |
16602 | /* confdefs.h. */ | |
16603 | _ACEOF | |
16604 | cat confdefs.h >>conftest.$ac_ext | |
16605 | cat >>conftest.$ac_ext <<_ACEOF | |
16606 | /* end confdefs.h. */ | |
16607 | #include <ac_nonexistent.h> | |
16608 | _ACEOF | |
47964710 VS |
16609 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
16610 | case "(($ac_try" in | |
16611 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16612 | *) ac_try_echo=$ac_try;; | |
16613 | esac | |
d589327a | 16614 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 16615 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
a848cd7e SC |
16616 | ac_status=$? |
16617 | grep -v '^ *+' conftest.er1 >conftest.err | |
16618 | rm -f conftest.er1 | |
16619 | cat conftest.err >&5 | |
d589327a | 16620 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
16621 | (exit $ac_status); } >/dev/null && { |
16622 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
16623 | test ! -s conftest.err | |
16624 | }; then | |
a848cd7e SC |
16625 | # Broken: success on invalid input. |
16626 | continue | |
16627 | else | |
d589327a | 16628 | echo "$as_me: failed program was:" >&5 |
a848cd7e SC |
16629 | sed 's/^/| /' conftest.$ac_ext >&5 |
16630 | ||
16631 | # Passes both tests. | |
16632 | ac_preproc_ok=: | |
16633 | break | |
16634 | fi | |
47964710 | 16635 | |
a848cd7e SC |
16636 | rm -f conftest.err conftest.$ac_ext |
16637 | ||
16638 | done | |
16639 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
16640 | rm -f conftest.err conftest.$ac_ext | |
16641 | if $ac_preproc_ok; then | |
16642 | : | |
16643 | else | |
d589327a | 16644 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
a848cd7e | 16645 | See \`config.log' for more details." >&5 |
d589327a | 16646 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
a848cd7e | 16647 | See \`config.log' for more details." >&2;} |
d589327a | 16648 | { (exit 1); exit 1; }; } |
a848cd7e SC |
16649 | fi |
16650 | ||
16651 | ac_ext=c | |
16652 | ac_cpp='$CPP $CPPFLAGS' | |
16653 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
16654 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
16655 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
16656 | ||
16657 | ||
d589327a VZ |
16658 | { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 |
16659 | echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } | |
47964710 | 16660 | if test "${ac_cv_path_GREP+set}" = set; then |
d589327a VZ |
16661 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
16662 | else | |
16663 | # Extract the first word of "grep ggrep" to use in msg output | |
16664 | if test -z "$GREP"; then | |
16665 | set dummy grep ggrep; ac_prog_name=$2 | |
16666 | if test "${ac_cv_path_GREP+set}" = set; then | |
16667 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
47964710 VS |
16668 | else |
16669 | ac_path_GREP_found=false | |
d589327a VZ |
16670 | # Loop through the user's path and test for each of PROGNAME-LIST |
16671 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
47964710 VS |
16672 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
16673 | do | |
16674 | IFS=$as_save_IFS | |
16675 | test -z "$as_dir" && as_dir=. | |
16676 | for ac_prog in grep ggrep; do | |
d589327a VZ |
16677 | for ac_exec_ext in '' $ac_executable_extensions; do |
16678 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
16679 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue | |
16680 | # Check for GNU ac_path_GREP and select it if it is found. | |
47964710 VS |
16681 | # Check for GNU $ac_path_GREP |
16682 | case `"$ac_path_GREP" --version 2>&1` in | |
16683 | *GNU*) | |
16684 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
16685 | *) | |
16686 | ac_count=0 | |
d589327a | 16687 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
47964710 VS |
16688 | while : |
16689 | do | |
16690 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
16691 | mv "conftest.tmp" "conftest.in" | |
16692 | cp "conftest.in" "conftest.nl" | |
d589327a | 16693 | echo 'GREP' >> "conftest.nl" |
47964710 VS |
16694 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
16695 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
16696 | ac_count=`expr $ac_count + 1` | |
16697 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
16698 | # Best one so far, save it but keep looking for a better one | |
16699 | ac_cv_path_GREP="$ac_path_GREP" | |
16700 | ac_path_GREP_max=$ac_count | |
16701 | fi | |
16702 | # 10*(2^10) chars as input seems more than enough | |
16703 | test $ac_count -gt 10 && break | |
16704 | done | |
16705 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
16706 | esac | |
16707 | ||
d589327a VZ |
16708 | |
16709 | $ac_path_GREP_found && break 3 | |
47964710 VS |
16710 | done |
16711 | done | |
d589327a VZ |
16712 | |
16713 | done | |
47964710 | 16714 | IFS=$as_save_IFS |
d589327a VZ |
16715 | |
16716 | ||
16717 | fi | |
16718 | ||
16719 | GREP="$ac_cv_path_GREP" | |
16720 | if test -z "$GREP"; then | |
16721 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | |
16722 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | |
47964710 | 16723 | { (exit 1); exit 1; }; } |
d589327a VZ |
16724 | fi |
16725 | ||
47964710 VS |
16726 | else |
16727 | ac_cv_path_GREP=$GREP | |
16728 | fi | |
16729 | ||
d589327a | 16730 | |
47964710 | 16731 | fi |
d589327a VZ |
16732 | { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 |
16733 | echo "${ECHO_T}$ac_cv_path_GREP" >&6; } | |
47964710 VS |
16734 | GREP="$ac_cv_path_GREP" |
16735 | ||
16736 | ||
d589327a VZ |
16737 | { echo "$as_me:$LINENO: checking for egrep" >&5 |
16738 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } | |
47964710 | 16739 | if test "${ac_cv_path_EGREP+set}" = set; then |
d589327a | 16740 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
47964710 VS |
16741 | else |
16742 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | |
16743 | then ac_cv_path_EGREP="$GREP -E" | |
16744 | else | |
d589327a VZ |
16745 | # Extract the first word of "egrep" to use in msg output |
16746 | if test -z "$EGREP"; then | |
16747 | set dummy egrep; ac_prog_name=$2 | |
16748 | if test "${ac_cv_path_EGREP+set}" = set; then | |
16749 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16750 | else | |
47964710 | 16751 | ac_path_EGREP_found=false |
d589327a VZ |
16752 | # Loop through the user's path and test for each of PROGNAME-LIST |
16753 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
47964710 VS |
16754 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
16755 | do | |
16756 | IFS=$as_save_IFS | |
16757 | test -z "$as_dir" && as_dir=. | |
16758 | for ac_prog in egrep; do | |
d589327a VZ |
16759 | for ac_exec_ext in '' $ac_executable_extensions; do |
16760 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
16761 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue | |
16762 | # Check for GNU ac_path_EGREP and select it if it is found. | |
47964710 VS |
16763 | # Check for GNU $ac_path_EGREP |
16764 | case `"$ac_path_EGREP" --version 2>&1` in | |
16765 | *GNU*) | |
16766 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
16767 | *) | |
16768 | ac_count=0 | |
d589327a | 16769 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
47964710 VS |
16770 | while : |
16771 | do | |
16772 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
16773 | mv "conftest.tmp" "conftest.in" | |
16774 | cp "conftest.in" "conftest.nl" | |
d589327a | 16775 | echo 'EGREP' >> "conftest.nl" |
47964710 VS |
16776 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
16777 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
16778 | ac_count=`expr $ac_count + 1` | |
16779 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
16780 | # Best one so far, save it but keep looking for a better one | |
16781 | ac_cv_path_EGREP="$ac_path_EGREP" | |
16782 | ac_path_EGREP_max=$ac_count | |
16783 | fi | |
16784 | # 10*(2^10) chars as input seems more than enough | |
16785 | test $ac_count -gt 10 && break | |
16786 | done | |
16787 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
16788 | esac | |
16789 | ||
d589327a VZ |
16790 | |
16791 | $ac_path_EGREP_found && break 3 | |
47964710 VS |
16792 | done |
16793 | done | |
d589327a VZ |
16794 | |
16795 | done | |
47964710 | 16796 | IFS=$as_save_IFS |
d589327a VZ |
16797 | |
16798 | ||
16799 | fi | |
16800 | ||
16801 | EGREP="$ac_cv_path_EGREP" | |
16802 | if test -z "$EGREP"; then | |
16803 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | |
16804 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | |
47964710 | 16805 | { (exit 1); exit 1; }; } |
d589327a VZ |
16806 | fi |
16807 | ||
47964710 VS |
16808 | else |
16809 | ac_cv_path_EGREP=$EGREP | |
16810 | fi | |
16811 | ||
d589327a | 16812 | |
47964710 | 16813 | fi |
7fd3acaf | 16814 | fi |
d589327a VZ |
16815 | { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 |
16816 | echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } | |
47964710 | 16817 | EGREP="$ac_cv_path_EGREP" |
a848cd7e SC |
16818 | |
16819 | ||
16820 | if test $ac_cv_c_compiler_gnu = yes; then | |
d589327a VZ |
16821 | { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5 |
16822 | echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; } | |
a848cd7e | 16823 | if test "${ac_cv_prog_gcc_traditional+set}" = set; then |
d589327a | 16824 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a848cd7e SC |
16825 | else |
16826 | ac_pattern="Autoconf.*'x'" | |
16827 | cat >conftest.$ac_ext <<_ACEOF | |
16828 | /* confdefs.h. */ | |
16829 | _ACEOF | |
16830 | cat confdefs.h >>conftest.$ac_ext | |
16831 | cat >>conftest.$ac_ext <<_ACEOF | |
16832 | /* end confdefs.h. */ | |
16833 | #include <sgtty.h> | |
16834 | Autoconf TIOCGETP | |
16835 | _ACEOF | |
16836 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
16837 | $EGREP "$ac_pattern" >/dev/null 2>&1; then | |
16838 | ac_cv_prog_gcc_traditional=yes | |
16839 | else | |
16840 | ac_cv_prog_gcc_traditional=no | |
16841 | fi | |
16842 | rm -f conftest* | |
16843 | ||
16844 | ||
16845 | if test $ac_cv_prog_gcc_traditional = no; then | |
16846 | cat >conftest.$ac_ext <<_ACEOF | |
16847 | /* confdefs.h. */ | |
16848 | _ACEOF | |
16849 | cat confdefs.h >>conftest.$ac_ext | |
16850 | cat >>conftest.$ac_ext <<_ACEOF | |
16851 | /* end confdefs.h. */ | |
16852 | #include <termio.h> | |
16853 | Autoconf TCGETA | |
16854 | _ACEOF | |
16855 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
16856 | $EGREP "$ac_pattern" >/dev/null 2>&1; then | |
16857 | ac_cv_prog_gcc_traditional=yes | |
16858 | fi | |
16859 | rm -f conftest* | |
16860 | ||
16861 | fi | |
16862 | fi | |
d589327a VZ |
16863 | { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5 |
16864 | echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; } | |
a848cd7e SC |
16865 | if test $ac_cv_prog_gcc_traditional = yes; then |
16866 | CC="$CC -traditional" | |
16867 | fi | |
16868 | fi | |
16869 | ||
16870 | ||
a848cd7e | 16871 | CXXFLAGS=${CXXFLAGS:=} |
6dcfc289 DE |
16872 | |
16873 | ||
3006edc0 | 16874 | |
47964710 | 16875 | ac_ext=cpp |
a848cd7e SC |
16876 | ac_cpp='$CXXCPP $CPPFLAGS' |
16877 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
16878 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
16879 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
47964710 VS |
16880 | if test -z "$CXX"; then |
16881 | if test -n "$CCC"; then | |
16882 | CXX=$CCC | |
16883 | else | |
16884 | if test -n "$ac_tool_prefix"; then | |
16885 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | |
a848cd7e SC |
16886 | do |
16887 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
16888 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
d589327a VZ |
16889 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
16890 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
a848cd7e | 16891 | if test "${ac_cv_prog_CXX+set}" = set; then |
d589327a | 16892 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a848cd7e SC |
16893 | else |
16894 | if test -n "$CXX"; then | |
16895 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
16896 | else | |
16897 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16898 | for as_dir in $PATH | |
16899 | do | |
16900 | IFS=$as_save_IFS | |
16901 | test -z "$as_dir" && as_dir=. | |
16902 | for ac_exec_ext in '' $ac_executable_extensions; do | |
47964710 | 16903 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
a848cd7e | 16904 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
d589327a | 16905 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
a848cd7e SC |
16906 | break 2 |
16907 | fi | |
16908 | done | |
16909 | done | |
47964710 | 16910 | IFS=$as_save_IFS |
a848cd7e SC |
16911 | |
16912 | fi | |
16913 | fi | |
16914 | CXX=$ac_cv_prog_CXX | |
16915 | if test -n "$CXX"; then | |
d589327a VZ |
16916 | { echo "$as_me:$LINENO: result: $CXX" >&5 |
16917 | echo "${ECHO_T}$CXX" >&6; } | |
a848cd7e | 16918 | else |
d589327a VZ |
16919 | { echo "$as_me:$LINENO: result: no" >&5 |
16920 | echo "${ECHO_T}no" >&6; } | |
a848cd7e SC |
16921 | fi |
16922 | ||
47964710 | 16923 | |
a848cd7e SC |
16924 | test -n "$CXX" && break |
16925 | done | |
16926 | fi | |
16927 | if test -z "$CXX"; then | |
16928 | ac_ct_CXX=$CXX | |
47964710 | 16929 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
a848cd7e SC |
16930 | do |
16931 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
16932 | set dummy $ac_prog; ac_word=$2 | |
d589327a VZ |
16933 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
16934 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
a848cd7e | 16935 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then |
d589327a | 16936 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a848cd7e SC |
16937 | else |
16938 | if test -n "$ac_ct_CXX"; then | |
16939 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
16940 | else | |
16941 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16942 | for as_dir in $PATH | |
16943 | do | |
16944 | IFS=$as_save_IFS | |
16945 | test -z "$as_dir" && as_dir=. | |
16946 | for ac_exec_ext in '' $ac_executable_extensions; do | |
47964710 | 16947 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
a848cd7e | 16948 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
d589327a | 16949 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
a848cd7e SC |
16950 | break 2 |
16951 | fi | |
16952 | done | |
16953 | done | |
47964710 | 16954 | IFS=$as_save_IFS |
a848cd7e SC |
16955 | |
16956 | fi | |
16957 | fi | |
16958 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | |
16959 | if test -n "$ac_ct_CXX"; then | |
d589327a VZ |
16960 | { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 |
16961 | echo "${ECHO_T}$ac_ct_CXX" >&6; } | |
a848cd7e | 16962 | else |
d589327a VZ |
16963 | { echo "$as_me:$LINENO: result: no" >&5 |
16964 | echo "${ECHO_T}no" >&6; } | |
a848cd7e SC |
16965 | fi |
16966 | ||
47964710 | 16967 | |
a848cd7e SC |
16968 | test -n "$ac_ct_CXX" && break |
16969 | done | |
a848cd7e | 16970 | |
47964710 VS |
16971 | if test "x$ac_ct_CXX" = x; then |
16972 | CXX="g++" | |
16973 | else | |
16974 | case $cross_compiling:$ac_tool_warned in | |
16975 | yes:) | |
d589327a VZ |
16976 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
16977 | whose name does not start with the host triplet. If you think this | |
16978 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
16979 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | |
16980 | whose name does not start with the host triplet. If you think this | |
16981 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
47964710 VS |
16982 | ac_tool_warned=yes ;; |
16983 | esac | |
16984 | CXX=$ac_ct_CXX | |
16985 | fi | |
a848cd7e SC |
16986 | fi |
16987 | ||
47964710 VS |
16988 | fi |
16989 | fi | |
a848cd7e | 16990 | # Provide some information about the compiler. |
d589327a VZ |
16991 | echo "$as_me:$LINENO: checking for C++ compiler version" >&5 |
16992 | ac_compiler=`set X $ac_compile; echo $2` | |
47964710 VS |
16993 | { (ac_try="$ac_compiler --version >&5" |
16994 | case "(($ac_try" in | |
16995 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16996 | *) ac_try_echo=$ac_try;; | |
16997 | esac | |
d589327a | 16998 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 16999 | (eval "$ac_compiler --version >&5") 2>&5 |
a848cd7e | 17000 | ac_status=$? |
d589327a | 17001 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
a848cd7e | 17002 | (exit $ac_status); } |
47964710 VS |
17003 | { (ac_try="$ac_compiler -v >&5" |
17004 | case "(($ac_try" in | |
17005 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17006 | *) ac_try_echo=$ac_try;; | |
17007 | esac | |
d589327a | 17008 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 17009 | (eval "$ac_compiler -v >&5") 2>&5 |
a848cd7e | 17010 | ac_status=$? |
d589327a | 17011 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
a848cd7e | 17012 | (exit $ac_status); } |
47964710 VS |
17013 | { (ac_try="$ac_compiler -V >&5" |
17014 | case "(($ac_try" in | |
17015 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17016 | *) ac_try_echo=$ac_try;; | |
17017 | esac | |
d589327a | 17018 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 17019 | (eval "$ac_compiler -V >&5") 2>&5 |
a848cd7e | 17020 | ac_status=$? |
d589327a | 17021 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
a848cd7e SC |
17022 | (exit $ac_status); } |
17023 | ||
d589327a VZ |
17024 | { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 |
17025 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } | |
a848cd7e | 17026 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then |
d589327a | 17027 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a848cd7e SC |
17028 | else |
17029 | cat >conftest.$ac_ext <<_ACEOF | |
17030 | /* confdefs.h. */ | |
17031 | _ACEOF | |
17032 | cat confdefs.h >>conftest.$ac_ext | |
17033 | cat >>conftest.$ac_ext <<_ACEOF | |
17034 | /* end confdefs.h. */ | |
17035 | ||
17036 | int | |
17037 | main () | |
17038 | { | |
17039 | #ifndef __GNUC__ | |
17040 | choke me | |
17041 | #endif | |
17042 | ||
17043 | ; | |
17044 | return 0; | |
17045 | } | |
17046 | _ACEOF | |
17047 | rm -f conftest.$ac_objext | |
47964710 VS |
17048 | if { (ac_try="$ac_compile" |
17049 | case "(($ac_try" in | |
17050 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17051 | *) ac_try_echo=$ac_try;; | |
17052 | esac | |
d589327a | 17053 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 17054 | (eval "$ac_compile") 2>conftest.er1 |
a848cd7e | 17055 | ac_status=$? |
ac1cb8d3 VS |
17056 | grep -v '^ *+' conftest.er1 >conftest.err |
17057 | rm -f conftest.er1 | |
17058 | cat conftest.err >&5 | |
d589327a | 17059 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
17060 | (exit $ac_status); } && { |
17061 | test -z "$ac_cxx_werror_flag" || | |
17062 | test ! -s conftest.err | |
17063 | } && test -s conftest.$ac_objext; then | |
a848cd7e SC |
17064 | ac_compiler_gnu=yes |
17065 | else | |
d589327a | 17066 | echo "$as_me: failed program was:" >&5 |
a848cd7e SC |
17067 | sed 's/^/| /' conftest.$ac_ext >&5 |
17068 | ||
47964710 | 17069 | ac_compiler_gnu=no |
a848cd7e | 17070 | fi |
47964710 VS |
17071 | |
17072 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
a848cd7e SC |
17073 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
17074 | ||
17075 | fi | |
d589327a VZ |
17076 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 |
17077 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } | |
17078 | GXX=`test $ac_compiler_gnu = yes && echo yes` | |
a848cd7e SC |
17079 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
17080 | ac_save_CXXFLAGS=$CXXFLAGS | |
d589327a VZ |
17081 | { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 |
17082 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } | |
a848cd7e | 17083 | if test "${ac_cv_prog_cxx_g+set}" = set; then |
d589327a | 17084 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a848cd7e | 17085 | else |
47964710 VS |
17086 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
17087 | ac_cxx_werror_flag=yes | |
17088 | ac_cv_prog_cxx_g=no | |
17089 | CXXFLAGS="-g" | |
17090 | cat >conftest.$ac_ext <<_ACEOF | |
a848cd7e SC |
17091 | /* confdefs.h. */ |
17092 | _ACEOF | |
17093 | cat confdefs.h >>conftest.$ac_ext | |
17094 | cat >>conftest.$ac_ext <<_ACEOF | |
17095 | /* end confdefs.h. */ | |
17096 | ||
17097 | int | |
17098 | main () | |
17099 | { | |
17100 | ||
17101 | ; | |
17102 | return 0; | |
17103 | } | |
17104 | _ACEOF | |
17105 | rm -f conftest.$ac_objext | |
47964710 VS |
17106 | if { (ac_try="$ac_compile" |
17107 | case "(($ac_try" in | |
17108 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17109 | *) ac_try_echo=$ac_try;; | |
17110 | esac | |
d589327a | 17111 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 17112 | (eval "$ac_compile") 2>conftest.er1 |
a848cd7e | 17113 | ac_status=$? |
ac1cb8d3 VS |
17114 | grep -v '^ *+' conftest.er1 >conftest.err |
17115 | rm -f conftest.er1 | |
17116 | cat conftest.err >&5 | |
d589327a | 17117 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
17118 | (exit $ac_status); } && { |
17119 | test -z "$ac_cxx_werror_flag" || | |
17120 | test ! -s conftest.err | |
17121 | } && test -s conftest.$ac_objext; then | |
a848cd7e SC |
17122 | ac_cv_prog_cxx_g=yes |
17123 | else | |
d589327a | 17124 | echo "$as_me: failed program was:" >&5 |
a848cd7e SC |
17125 | sed 's/^/| /' conftest.$ac_ext >&5 |
17126 | ||
47964710 VS |
17127 | CXXFLAGS="" |
17128 | cat >conftest.$ac_ext <<_ACEOF | |
a848cd7e SC |
17129 | /* confdefs.h. */ |
17130 | _ACEOF | |
17131 | cat confdefs.h >>conftest.$ac_ext | |
17132 | cat >>conftest.$ac_ext <<_ACEOF | |
17133 | /* end confdefs.h. */ | |
47964710 | 17134 | |
a848cd7e SC |
17135 | int |
17136 | main () | |
17137 | { | |
47964710 | 17138 | |
a848cd7e SC |
17139 | ; |
17140 | return 0; | |
17141 | } | |
17142 | _ACEOF | |
17143 | rm -f conftest.$ac_objext | |
47964710 VS |
17144 | if { (ac_try="$ac_compile" |
17145 | case "(($ac_try" in | |
17146 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17147 | *) ac_try_echo=$ac_try;; | |
17148 | esac | |
d589327a | 17149 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 17150 | (eval "$ac_compile") 2>conftest.er1 |
a848cd7e | 17151 | ac_status=$? |
ac1cb8d3 VS |
17152 | grep -v '^ *+' conftest.er1 >conftest.err |
17153 | rm -f conftest.er1 | |
17154 | cat conftest.err >&5 | |
d589327a | 17155 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
17156 | (exit $ac_status); } && { |
17157 | test -z "$ac_cxx_werror_flag" || | |
17158 | test ! -s conftest.err | |
17159 | } && test -s conftest.$ac_objext; then | |
a848cd7e SC |
17160 | : |
17161 | else | |
d589327a | 17162 | echo "$as_me: failed program was:" >&5 |
a848cd7e SC |
17163 | sed 's/^/| /' conftest.$ac_ext >&5 |
17164 | ||
47964710 VS |
17165 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
17166 | CXXFLAGS="-g" | |
17167 | cat >conftest.$ac_ext <<_ACEOF | |
a848cd7e SC |
17168 | /* confdefs.h. */ |
17169 | _ACEOF | |
17170 | cat confdefs.h >>conftest.$ac_ext | |
17171 | cat >>conftest.$ac_ext <<_ACEOF | |
17172 | /* end confdefs.h. */ | |
47964710 | 17173 | |
a848cd7e SC |
17174 | int |
17175 | main () | |
17176 | { | |
47964710 | 17177 | |
a848cd7e SC |
17178 | ; |
17179 | return 0; | |
17180 | } | |
17181 | _ACEOF | |
17182 | rm -f conftest.$ac_objext | |
47964710 VS |
17183 | if { (ac_try="$ac_compile" |
17184 | case "(($ac_try" in | |
17185 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17186 | *) ac_try_echo=$ac_try;; | |
17187 | esac | |
d589327a | 17188 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 17189 | (eval "$ac_compile") 2>conftest.er1 |
a848cd7e | 17190 | ac_status=$? |
ac1cb8d3 VS |
17191 | grep -v '^ *+' conftest.er1 >conftest.err |
17192 | rm -f conftest.er1 | |
17193 | cat conftest.err >&5 | |
d589327a | 17194 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
17195 | (exit $ac_status); } && { |
17196 | test -z "$ac_cxx_werror_flag" || | |
17197 | test ! -s conftest.err | |
17198 | } && test -s conftest.$ac_objext; then | |
17199 | ac_cv_prog_cxx_g=yes | |
a848cd7e | 17200 | else |
d589327a | 17201 | echo "$as_me: failed program was:" >&5 |
a848cd7e SC |
17202 | sed 's/^/| /' conftest.$ac_ext >&5 |
17203 | ||
47964710 | 17204 | |
84ebfcbd | 17205 | fi |
47964710 VS |
17206 | |
17207 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
17208 | fi | |
17209 | ||
17210 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
a848cd7e SC |
17211 | fi |
17212 | ||
47964710 VS |
17213 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
17214 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
17215 | fi | |
d589327a VZ |
17216 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 |
17217 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } | |
47964710 VS |
17218 | if test "$ac_test_CXXFLAGS" = set; then |
17219 | CXXFLAGS=$ac_save_CXXFLAGS | |
17220 | elif test $ac_cv_prog_cxx_g = yes; then | |
17221 | if test "$GXX" = yes; then | |
17222 | CXXFLAGS="-g -O2" | |
17223 | else | |
17224 | CXXFLAGS="-g" | |
17225 | fi | |
17226 | else | |
17227 | if test "$GXX" = yes; then | |
17228 | CXXFLAGS="-O2" | |
17229 | else | |
17230 | CXXFLAGS= | |
17231 | fi | |
17232 | fi | |
fd5199d6 VZ |
17233 | ac_ext=c |
17234 | ac_cpp='$CPP $CPPFLAGS' | |
17235 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17236 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17237 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
a848cd7e | 17238 | |
ab0ad5f1 VZ |
17239 | |
17240 | ||
43a7c679 | 17241 | |
47964710 | 17242 | ac_ext=cpp |
ab0ad5f1 VZ |
17243 | ac_cpp='$CXXCPP $CPPFLAGS' |
17244 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17245 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17246 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
17247 | ||
d589327a VZ |
17248 | { echo "$as_me:$LINENO: checking whether we are using the Intel C++ compiler" >&5 |
17249 | echo $ECHO_N "checking whether we are using the Intel C++ compiler... $ECHO_C" >&6; } | |
ab0ad5f1 | 17250 | if test "${bakefile_cv_cxx_compiler___INTEL_COMPILER+set}" = set; then |
d589327a | 17251 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ab0ad5f1 VZ |
17252 | else |
17253 | cat >conftest.$ac_ext <<_ACEOF | |
17254 | /* confdefs.h. */ | |
17255 | _ACEOF | |
17256 | cat confdefs.h >>conftest.$ac_ext | |
17257 | cat >>conftest.$ac_ext <<_ACEOF | |
17258 | /* end confdefs.h. */ | |
17259 | ||
17260 | int | |
17261 | main () | |
17262 | { | |
17263 | ||
17264 | #ifndef __INTEL_COMPILER | |
17265 | choke me | |
17266 | #endif | |
17267 | ||
17268 | ; | |
17269 | return 0; | |
17270 | } | |
17271 | _ACEOF | |
17272 | rm -f conftest.$ac_objext | |
47964710 VS |
17273 | if { (ac_try="$ac_compile" |
17274 | case "(($ac_try" in | |
17275 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17276 | *) ac_try_echo=$ac_try;; | |
17277 | esac | |
d589327a | 17278 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 17279 | (eval "$ac_compile") 2>conftest.er1 |
ab0ad5f1 VZ |
17280 | ac_status=$? |
17281 | grep -v '^ *+' conftest.er1 >conftest.err | |
17282 | rm -f conftest.er1 | |
17283 | cat conftest.err >&5 | |
d589327a | 17284 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
17285 | (exit $ac_status); } && { |
17286 | test -z "$ac_cxx_werror_flag" || | |
17287 | test ! -s conftest.err | |
17288 | } && test -s conftest.$ac_objext; then | |
ab0ad5f1 VZ |
17289 | bakefile_cv_cxx_compiler___INTEL_COMPILER=yes |
17290 | else | |
d589327a | 17291 | echo "$as_me: failed program was:" >&5 |
ab0ad5f1 VZ |
17292 | sed 's/^/| /' conftest.$ac_ext >&5 |
17293 | ||
47964710 | 17294 | bakefile_cv_cxx_compiler___INTEL_COMPILER=no |
ab0ad5f1 VZ |
17295 | |
17296 | fi | |
47964710 VS |
17297 | |
17298 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ab0ad5f1 VZ |
17299 | |
17300 | ||
17301 | fi | |
d589327a VZ |
17302 | { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___INTEL_COMPILER" >&5 |
17303 | echo "${ECHO_T}$bakefile_cv_cxx_compiler___INTEL_COMPILER" >&6; } | |
43a7c679 VZ |
17304 | if test "x$bakefile_cv_cxx_compiler___INTEL_COMPILER" = "xyes"; then |
17305 | :; INTELCXX=yes | |
17306 | else | |
17307 | :; | |
17308 | fi | |
fd5199d6 VZ |
17309 | ac_ext=c |
17310 | ac_cpp='$CPP $CPPFLAGS' | |
17311 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17312 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17313 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
ab0ad5f1 | 17314 | |
43a7c679 | 17315 | |
ab0ad5f1 VZ |
17316 | |
17317 | ||
05622061 VZ |
17318 | if test "$INTELCXX" = "yes"; then |
17319 | ||
17320 | ||
17321 | ac_ext=cpp | |
17322 | ac_cpp='$CXXCPP $CPPFLAGS' | |
17323 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17324 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17325 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
17326 | ||
d589327a VZ |
17327 | { echo "$as_me:$LINENO: checking whether we are using Intel C++ compiler v8 or later" >&5 |
17328 | echo $ECHO_N "checking whether we are using Intel C++ compiler v8 or later... $ECHO_C" >&6; } | |
05622061 | 17329 | if test "${bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_800+set}" = set; then |
d589327a | 17330 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
05622061 VZ |
17331 | else |
17332 | cat >conftest.$ac_ext <<_ACEOF | |
17333 | /* confdefs.h. */ | |
17334 | _ACEOF | |
17335 | cat confdefs.h >>conftest.$ac_ext | |
17336 | cat >>conftest.$ac_ext <<_ACEOF | |
17337 | /* end confdefs.h. */ | |
17338 | ||
17339 | int | |
17340 | main () | |
17341 | { | |
17342 | ||
17343 | #ifndef __INTEL_COMPILER || __INTEL_COMPILER < 800 | |
17344 | choke me | |
17345 | #endif | |
17346 | ||
17347 | ; | |
17348 | return 0; | |
17349 | } | |
17350 | _ACEOF | |
17351 | rm -f conftest.$ac_objext | |
17352 | if { (ac_try="$ac_compile" | |
17353 | case "(($ac_try" in | |
17354 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17355 | *) ac_try_echo=$ac_try;; | |
17356 | esac | |
d589327a | 17357 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
05622061 VZ |
17358 | (eval "$ac_compile") 2>conftest.er1 |
17359 | ac_status=$? | |
17360 | grep -v '^ *+' conftest.er1 >conftest.err | |
17361 | rm -f conftest.er1 | |
17362 | cat conftest.err >&5 | |
d589327a | 17363 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
05622061 VZ |
17364 | (exit $ac_status); } && { |
17365 | test -z "$ac_cxx_werror_flag" || | |
17366 | test ! -s conftest.err | |
17367 | } && test -s conftest.$ac_objext; then | |
17368 | bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_800=yes | |
17369 | else | |
d589327a | 17370 | echo "$as_me: failed program was:" >&5 |
05622061 VZ |
17371 | sed 's/^/| /' conftest.$ac_ext >&5 |
17372 | ||
17373 | bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_800=no | |
17374 | ||
17375 | fi | |
17376 | ||
17377 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
17378 | ||
17379 | ||
17380 | fi | |
d589327a VZ |
17381 | { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_800" >&5 |
17382 | echo "${ECHO_T}$bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_800" >&6; } | |
05622061 VZ |
17383 | if test "x$bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_800" = "xyes"; then |
17384 | :; INTELCXX8=yes | |
17385 | else | |
17386 | :; | |
17387 | fi | |
17388 | ac_ext=c | |
17389 | ac_cpp='$CPP $CPPFLAGS' | |
17390 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17391 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17392 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
17393 | ||
17394 | ||
17395 | ||
17396 | ||
17397 | ||
17398 | ac_ext=cpp | |
17399 | ac_cpp='$CXXCPP $CPPFLAGS' | |
17400 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17401 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17402 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
17403 | ||
d589327a VZ |
17404 | { echo "$as_me:$LINENO: checking whether we are using Intel C++ compiler v10 or later" >&5 |
17405 | echo $ECHO_N "checking whether we are using Intel C++ compiler v10 or later... $ECHO_C" >&6; } | |
05622061 | 17406 | if test "${bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_1000+set}" = set; then |
d589327a | 17407 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
05622061 VZ |
17408 | else |
17409 | cat >conftest.$ac_ext <<_ACEOF | |
17410 | /* confdefs.h. */ | |
17411 | _ACEOF | |
17412 | cat confdefs.h >>conftest.$ac_ext | |
17413 | cat >>conftest.$ac_ext <<_ACEOF | |
17414 | /* end confdefs.h. */ | |
17415 | ||
17416 | int | |
17417 | main () | |
17418 | { | |
17419 | ||
17420 | #ifndef __INTEL_COMPILER || __INTEL_COMPILER < 1000 | |
17421 | choke me | |
17422 | #endif | |
17423 | ||
17424 | ; | |
17425 | return 0; | |
17426 | } | |
17427 | _ACEOF | |
17428 | rm -f conftest.$ac_objext | |
17429 | if { (ac_try="$ac_compile" | |
17430 | case "(($ac_try" in | |
17431 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17432 | *) ac_try_echo=$ac_try;; | |
17433 | esac | |
d589327a | 17434 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
05622061 VZ |
17435 | (eval "$ac_compile") 2>conftest.er1 |
17436 | ac_status=$? | |
17437 | grep -v '^ *+' conftest.er1 >conftest.err | |
17438 | rm -f conftest.er1 | |
17439 | cat conftest.err >&5 | |
d589327a | 17440 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
05622061 VZ |
17441 | (exit $ac_status); } && { |
17442 | test -z "$ac_cxx_werror_flag" || | |
17443 | test ! -s conftest.err | |
17444 | } && test -s conftest.$ac_objext; then | |
17445 | bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_1000=yes | |
17446 | else | |
d589327a | 17447 | echo "$as_me: failed program was:" >&5 |
05622061 VZ |
17448 | sed 's/^/| /' conftest.$ac_ext >&5 |
17449 | ||
17450 | bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_1000=no | |
17451 | ||
17452 | fi | |
17453 | ||
17454 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
17455 | ||
17456 | ||
17457 | fi | |
d589327a VZ |
17458 | { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_1000" >&5 |
17459 | echo "${ECHO_T}$bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_1000" >&6; } | |
05622061 VZ |
17460 | if test "x$bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_1000" = "xyes"; then |
17461 | :; INTELCXX10=yes | |
17462 | else | |
17463 | :; | |
17464 | fi | |
17465 | ac_ext=c | |
17466 | ac_cpp='$CPP $CPPFLAGS' | |
17467 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17468 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17469 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
17470 | ||
17471 | ||
17472 | ||
17473 | fi | |
17474 | ||
3006edc0 VZ |
17475 | if test "x$GCXX" != "xyes"; then |
17476 | if test "xCXX" = "xC"; then | |
d589327a VZ |
17477 | { echo "$as_me:$LINENO: checking if the C compiler requires -ext o" >&5 |
17478 | echo $ECHO_N "checking if the C compiler requires -ext o... $ECHO_C" >&6; } | |
fd5199d6 | 17479 | if test "${bakefile_cv_c_exto+set}" = set; then |
d589327a | 17480 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
480ccd21 DE |
17481 | else |
17482 | cat >conftest.$ac_ext <<_ACEOF | |
17483 | /* confdefs.h. */ | |
17484 | _ACEOF | |
17485 | cat confdefs.h >>conftest.$ac_ext | |
17486 | cat >>conftest.$ac_ext <<_ACEOF | |
17487 | /* end confdefs.h. */ | |
17488 | ||
17489 | int | |
17490 | main () | |
17491 | { | |
17492 | ||
17493 | ; | |
17494 | return 0; | |
17495 | } | |
17496 | _ACEOF | |
17497 | rm -f conftest.$ac_objext conftest.$ac_ext.o | |
17498 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
17499 | (eval $ac_compile) 2>&5 | |
17500 | ac_status=$? | |
d589327a | 17501 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
480ccd21 DE |
17502 | (exit $ac_status); }; then |
17503 | for ac_file in `(ls conftest.* 2>/dev/null)`; do | |
17504 | case $ac_file in | |
17505 | conftest.$ac_ext.o) | |
fd5199d6 | 17506 | bakefile_cv_c_exto="-ext o" |
480ccd21 DE |
17507 | ;; |
17508 | *) | |
17509 | ;; | |
17510 | esac | |
17511 | done | |
17512 | else | |
d589327a | 17513 | { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile |
480ccd21 | 17514 | See \`config.log' for more details." >&5 |
d589327a | 17515 | echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile |
480ccd21 | 17516 | See \`config.log' for more details." >&2;} |
d589327a | 17517 | { (exit 1); exit 1; }; } |
480ccd21 DE |
17518 | |
17519 | fi | |
17520 | ||
17521 | rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext | |
17522 | ||
17523 | fi | |
d589327a VZ |
17524 | { echo "$as_me:$LINENO: result: $bakefile_cv_c_exto" >&5 |
17525 | echo "${ECHO_T}$bakefile_cv_c_exto" >&6; } | |
fd5199d6 VZ |
17526 | if test "x$bakefile_cv_c_exto" '!=' "x"; then |
17527 | if test "c" = "c"; then | |
17528 | CFLAGS="$bakefile_cv_c_exto $CFLAGS" | |
480ccd21 | 17529 | fi |
fd5199d6 VZ |
17530 | if test "c" = "cxx"; then |
17531 | CXXFLAGS="$bakefile_cv_c_exto $CXXFLAGS" | |
480ccd21 DE |
17532 | fi |
17533 | fi | |
17534 | ||
0093c2fc | 17535 | if test "x$bakefile_cv_c_exto" '!=' "x"; then |
3006edc0 VZ |
17536 | unset ac_cv_prog_cc_g |
17537 | ac_test_CFLAGS=${CFLAGS+set} | |
17538 | ac_save_CFLAGS=$CFLAGS | |
d589327a VZ |
17539 | { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
17540 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } | |
3006edc0 | 17541 | if test "${ac_cv_prog_cc_g+set}" = set; then |
d589327a | 17542 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
480ccd21 | 17543 | else |
47964710 VS |
17544 | ac_save_c_werror_flag=$ac_c_werror_flag |
17545 | ac_c_werror_flag=yes | |
17546 | ac_cv_prog_cc_g=no | |
17547 | CFLAGS="-g" | |
17548 | cat >conftest.$ac_ext <<_ACEOF | |
3f7f284d RD |
17549 | /* confdefs.h. */ |
17550 | _ACEOF | |
17551 | cat confdefs.h >>conftest.$ac_ext | |
17552 | cat >>conftest.$ac_ext <<_ACEOF | |
17553 | /* end confdefs.h. */ | |
17554 | ||
17555 | int | |
17556 | main () | |
17557 | { | |
17558 | ||
17559 | ; | |
17560 | return 0; | |
17561 | } | |
17562 | _ACEOF | |
17563 | rm -f conftest.$ac_objext | |
47964710 VS |
17564 | if { (ac_try="$ac_compile" |
17565 | case "(($ac_try" in | |
17566 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17567 | *) ac_try_echo=$ac_try;; | |
17568 | esac | |
d589327a | 17569 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 17570 | (eval "$ac_compile") 2>conftest.er1 |
3f7f284d RD |
17571 | ac_status=$? |
17572 | grep -v '^ *+' conftest.er1 >conftest.err | |
17573 | rm -f conftest.er1 | |
17574 | cat conftest.err >&5 | |
d589327a | 17575 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
17576 | (exit $ac_status); } && { |
17577 | test -z "$ac_c_werror_flag" || | |
17578 | test ! -s conftest.err | |
17579 | } && test -s conftest.$ac_objext; then | |
17580 | ac_cv_prog_cc_g=yes | |
17581 | else | |
d589327a | 17582 | echo "$as_me: failed program was:" >&5 |
47964710 VS |
17583 | sed 's/^/| /' conftest.$ac_ext >&5 |
17584 | ||
17585 | CFLAGS="" | |
17586 | cat >conftest.$ac_ext <<_ACEOF | |
17587 | /* confdefs.h. */ | |
17588 | _ACEOF | |
17589 | cat confdefs.h >>conftest.$ac_ext | |
17590 | cat >>conftest.$ac_ext <<_ACEOF | |
17591 | /* end confdefs.h. */ | |
17592 | ||
17593 | int | |
17594 | main () | |
17595 | { | |
17596 | ||
17597 | ; | |
17598 | return 0; | |
17599 | } | |
17600 | _ACEOF | |
17601 | rm -f conftest.$ac_objext | |
17602 | if { (ac_try="$ac_compile" | |
17603 | case "(($ac_try" in | |
17604 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17605 | *) ac_try_echo=$ac_try;; | |
17606 | esac | |
d589327a | 17607 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 17608 | (eval "$ac_compile") 2>conftest.er1 |
7fd3acaf | 17609 | ac_status=$? |
47964710 VS |
17610 | grep -v '^ *+' conftest.er1 >conftest.err |
17611 | rm -f conftest.er1 | |
17612 | cat conftest.err >&5 | |
d589327a | 17613 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
17614 | (exit $ac_status); } && { |
17615 | test -z "$ac_c_werror_flag" || | |
17616 | test ! -s conftest.err | |
17617 | } && test -s conftest.$ac_objext; then | |
17618 | : | |
17619 | else | |
d589327a | 17620 | echo "$as_me: failed program was:" >&5 |
47964710 VS |
17621 | sed 's/^/| /' conftest.$ac_ext >&5 |
17622 | ||
17623 | ac_c_werror_flag=$ac_save_c_werror_flag | |
17624 | CFLAGS="-g" | |
17625 | cat >conftest.$ac_ext <<_ACEOF | |
17626 | /* confdefs.h. */ | |
17627 | _ACEOF | |
17628 | cat confdefs.h >>conftest.$ac_ext | |
17629 | cat >>conftest.$ac_ext <<_ACEOF | |
17630 | /* end confdefs.h. */ | |
17631 | ||
17632 | int | |
17633 | main () | |
17634 | { | |
17635 | ||
17636 | ; | |
17637 | return 0; | |
17638 | } | |
17639 | _ACEOF | |
17640 | rm -f conftest.$ac_objext | |
17641 | if { (ac_try="$ac_compile" | |
17642 | case "(($ac_try" in | |
17643 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17644 | *) ac_try_echo=$ac_try;; | |
17645 | esac | |
d589327a | 17646 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 17647 | (eval "$ac_compile") 2>conftest.er1 |
7fd3acaf | 17648 | ac_status=$? |
47964710 VS |
17649 | grep -v '^ *+' conftest.er1 >conftest.err |
17650 | rm -f conftest.er1 | |
17651 | cat conftest.err >&5 | |
d589327a | 17652 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
17653 | (exit $ac_status); } && { |
17654 | test -z "$ac_c_werror_flag" || | |
17655 | test ! -s conftest.err | |
17656 | } && test -s conftest.$ac_objext; then | |
3006edc0 | 17657 | ac_cv_prog_cc_g=yes |
480ccd21 | 17658 | else |
d589327a | 17659 | echo "$as_me: failed program was:" >&5 |
480ccd21 DE |
17660 | sed 's/^/| /' conftest.$ac_ext >&5 |
17661 | ||
47964710 VS |
17662 | |
17663 | fi | |
17664 | ||
17665 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
faa5c14f | 17666 | fi |
47964710 VS |
17667 | |
17668 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
17669 | fi | |
17670 | ||
17671 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
17672 | ac_c_werror_flag=$ac_save_c_werror_flag | |
faa5c14f | 17673 | fi |
d589327a VZ |
17674 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
17675 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } | |
3006edc0 VZ |
17676 | if test "$ac_test_CFLAGS" = set; then |
17677 | CFLAGS=$ac_save_CFLAGS | |
17678 | elif test $ac_cv_prog_cc_g = yes; then | |
17679 | if test "$GCC" = yes; then | |
17680 | CFLAGS="-g -O2" | |
480ccd21 | 17681 | else |
3006edc0 | 17682 | CFLAGS="-g" |
480ccd21 DE |
17683 | fi |
17684 | else | |
3006edc0 VZ |
17685 | if test "$GCC" = yes; then |
17686 | CFLAGS="-O2" | |
480ccd21 | 17687 | else |
3006edc0 | 17688 | CFLAGS= |
480ccd21 DE |
17689 | fi |
17690 | fi | |
3006edc0 | 17691 | fi |
ab0ad5f1 | 17692 | fi |
3006edc0 VZ |
17693 | |
17694 | case `uname -s` in | |
17695 | AIX*) | |
3006edc0 | 17696 | |
3006edc0 | 17697 | |
47964710 | 17698 | ac_ext=cpp |
95986553 DE |
17699 | ac_cpp='$CXXCPP $CPPFLAGS' |
17700 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17701 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17702 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
17703 | ||
d589327a VZ |
17704 | { echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5 |
17705 | echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6; } | |
43a7c679 | 17706 | if test "${bakefile_cv_cxx_compiler___xlC__+set}" = set; then |
d589327a | 17707 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
95986553 DE |
17708 | else |
17709 | cat >conftest.$ac_ext <<_ACEOF | |
17710 | /* confdefs.h. */ | |
17711 | _ACEOF | |
17712 | cat confdefs.h >>conftest.$ac_ext | |
17713 | cat >>conftest.$ac_ext <<_ACEOF | |
17714 | /* end confdefs.h. */ | |
17715 | ||
17716 | int | |
17717 | main () | |
17718 | { | |
43a7c679 VZ |
17719 | |
17720 | #ifndef __xlC__ | |
17721 | choke me | |
17722 | #endif | |
95986553 DE |
17723 | |
17724 | ; | |
17725 | return 0; | |
17726 | } | |
17727 | _ACEOF | |
17728 | rm -f conftest.$ac_objext | |
47964710 VS |
17729 | if { (ac_try="$ac_compile" |
17730 | case "(($ac_try" in | |
17731 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17732 | *) ac_try_echo=$ac_try;; | |
17733 | esac | |
d589327a | 17734 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 17735 | (eval "$ac_compile") 2>conftest.er1 |
95986553 DE |
17736 | ac_status=$? |
17737 | grep -v '^ *+' conftest.er1 >conftest.err | |
17738 | rm -f conftest.er1 | |
17739 | cat conftest.err >&5 | |
d589327a | 17740 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
17741 | (exit $ac_status); } && { |
17742 | test -z "$ac_cxx_werror_flag" || | |
17743 | test ! -s conftest.err | |
17744 | } && test -s conftest.$ac_objext; then | |
43a7c679 | 17745 | bakefile_cv_cxx_compiler___xlC__=yes |
95986553 | 17746 | else |
d589327a | 17747 | echo "$as_me: failed program was:" >&5 |
95986553 DE |
17748 | sed 's/^/| /' conftest.$ac_ext >&5 |
17749 | ||
47964710 | 17750 | bakefile_cv_cxx_compiler___xlC__=no |
43a7c679 | 17751 | |
95986553 | 17752 | fi |
47964710 VS |
17753 | |
17754 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
43a7c679 | 17755 | |
95986553 DE |
17756 | |
17757 | fi | |
d589327a VZ |
17758 | { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___xlC__" >&5 |
17759 | echo "${ECHO_T}$bakefile_cv_cxx_compiler___xlC__" >&6; } | |
43a7c679 VZ |
17760 | if test "x$bakefile_cv_cxx_compiler___xlC__" = "xyes"; then |
17761 | :; XLCXX=yes | |
17762 | else | |
17763 | :; | |
17764 | fi | |
17765 | ac_ext=c | |
17766 | ac_cpp='$CPP $CPPFLAGS' | |
17767 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17768 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17769 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
95986553 | 17770 | |
43a7c679 VZ |
17771 | |
17772 | ||
17773 | ;; | |
17774 | ||
17775 | Darwin) | |
17776 | ||
17777 | ||
47964710 | 17778 | ac_ext=cpp |
43a7c679 VZ |
17779 | ac_cpp='$CXXCPP $CPPFLAGS' |
17780 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17781 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17782 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
17783 | ||
d589327a VZ |
17784 | { echo "$as_me:$LINENO: checking whether we are using the Metrowerks C++ compiler" >&5 |
17785 | echo $ECHO_N "checking whether we are using the Metrowerks C++ compiler... $ECHO_C" >&6; } | |
43a7c679 | 17786 | if test "${bakefile_cv_cxx_compiler___MWERKS__+set}" = set; then |
d589327a | 17787 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
43a7c679 VZ |
17788 | else |
17789 | cat >conftest.$ac_ext <<_ACEOF | |
17790 | /* confdefs.h. */ | |
17791 | _ACEOF | |
17792 | cat confdefs.h >>conftest.$ac_ext | |
17793 | cat >>conftest.$ac_ext <<_ACEOF | |
17794 | /* end confdefs.h. */ | |
17795 | ||
17796 | int | |
17797 | main () | |
17798 | { | |
17799 | ||
17800 | #ifndef __MWERKS__ | |
17801 | choke me | |
17802 | #endif | |
17803 | ||
17804 | ; | |
17805 | return 0; | |
17806 | } | |
17807 | _ACEOF | |
17808 | rm -f conftest.$ac_objext | |
47964710 VS |
17809 | if { (ac_try="$ac_compile" |
17810 | case "(($ac_try" in | |
17811 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17812 | *) ac_try_echo=$ac_try;; | |
17813 | esac | |
d589327a | 17814 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 17815 | (eval "$ac_compile") 2>conftest.er1 |
43a7c679 VZ |
17816 | ac_status=$? |
17817 | grep -v '^ *+' conftest.er1 >conftest.err | |
17818 | rm -f conftest.er1 | |
17819 | cat conftest.err >&5 | |
d589327a | 17820 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
17821 | (exit $ac_status); } && { |
17822 | test -z "$ac_cxx_werror_flag" || | |
17823 | test ! -s conftest.err | |
17824 | } && test -s conftest.$ac_objext; then | |
43a7c679 VZ |
17825 | bakefile_cv_cxx_compiler___MWERKS__=yes |
17826 | else | |
d589327a | 17827 | echo "$as_me: failed program was:" >&5 |
43a7c679 VZ |
17828 | sed 's/^/| /' conftest.$ac_ext >&5 |
17829 | ||
47964710 | 17830 | bakefile_cv_cxx_compiler___MWERKS__=no |
43a7c679 VZ |
17831 | |
17832 | fi | |
47964710 VS |
17833 | |
17834 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
43a7c679 VZ |
17835 | |
17836 | ||
17837 | fi | |
d589327a VZ |
17838 | { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___MWERKS__" >&5 |
17839 | echo "${ECHO_T}$bakefile_cv_cxx_compiler___MWERKS__" >&6; } | |
43a7c679 VZ |
17840 | if test "x$bakefile_cv_cxx_compiler___MWERKS__" = "xyes"; then |
17841 | :; MWCXX=yes | |
17842 | else | |
17843 | :; | |
17844 | fi | |
17845 | ac_ext=c | |
fd5199d6 VZ |
17846 | ac_cpp='$CPP $CPPFLAGS' |
17847 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17848 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17849 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
95986553 DE |
17850 | |
17851 | ||
43a7c679 | 17852 | |
05622061 | 17853 | if test "$MWCXX" != "yes"; then |
43a7c679 VZ |
17854 | |
17855 | ||
47964710 | 17856 | ac_ext=cpp |
9273ffba DE |
17857 | ac_cpp='$CXXCPP $CPPFLAGS' |
17858 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17859 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17860 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
17861 | ||
d589327a VZ |
17862 | { echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5 |
17863 | echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6; } | |
43a7c679 | 17864 | if test "${bakefile_cv_cxx_compiler___xlC__+set}" = set; then |
d589327a | 17865 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9273ffba DE |
17866 | else |
17867 | cat >conftest.$ac_ext <<_ACEOF | |
17868 | /* confdefs.h. */ | |
17869 | _ACEOF | |
17870 | cat confdefs.h >>conftest.$ac_ext | |
17871 | cat >>conftest.$ac_ext <<_ACEOF | |
17872 | /* end confdefs.h. */ | |
17873 | ||
17874 | int | |
17875 | main () | |
17876 | { | |
43a7c679 VZ |
17877 | |
17878 | #ifndef __xlC__ | |
17879 | choke me | |
17880 | #endif | |
9273ffba DE |
17881 | |
17882 | ; | |
17883 | return 0; | |
17884 | } | |
17885 | _ACEOF | |
17886 | rm -f conftest.$ac_objext | |
47964710 VS |
17887 | if { (ac_try="$ac_compile" |
17888 | case "(($ac_try" in | |
17889 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17890 | *) ac_try_echo=$ac_try;; | |
17891 | esac | |
d589327a | 17892 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 17893 | (eval "$ac_compile") 2>conftest.er1 |
9273ffba DE |
17894 | ac_status=$? |
17895 | grep -v '^ *+' conftest.er1 >conftest.err | |
17896 | rm -f conftest.er1 | |
17897 | cat conftest.err >&5 | |
d589327a | 17898 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
17899 | (exit $ac_status); } && { |
17900 | test -z "$ac_cxx_werror_flag" || | |
17901 | test ! -s conftest.err | |
17902 | } && test -s conftest.$ac_objext; then | |
43a7c679 | 17903 | bakefile_cv_cxx_compiler___xlC__=yes |
9273ffba | 17904 | else |
d589327a | 17905 | echo "$as_me: failed program was:" >&5 |
9273ffba DE |
17906 | sed 's/^/| /' conftest.$ac_ext >&5 |
17907 | ||
47964710 | 17908 | bakefile_cv_cxx_compiler___xlC__=no |
43a7c679 | 17909 | |
9273ffba | 17910 | fi |
47964710 VS |
17911 | |
17912 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
9273ffba | 17913 | |
9273ffba | 17914 | |
43a7c679 | 17915 | fi |
d589327a VZ |
17916 | { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___xlC__" >&5 |
17917 | echo "${ECHO_T}$bakefile_cv_cxx_compiler___xlC__" >&6; } | |
43a7c679 VZ |
17918 | if test "x$bakefile_cv_cxx_compiler___xlC__" = "xyes"; then |
17919 | :; XLCXX=yes | |
17920 | else | |
17921 | :; | |
17922 | fi | |
17923 | ac_ext=c | |
fd5199d6 VZ |
17924 | ac_cpp='$CPP $CPPFLAGS' |
17925 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17926 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17927 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
9273ffba DE |
17928 | |
17929 | ||
43a7c679 | 17930 | |
05622061 | 17931 | fi |
3006edc0 VZ |
17932 | ;; |
17933 | ||
17934 | IRIX*) | |
95986553 | 17935 | |
6dcfc289 | 17936 | |
47964710 | 17937 | ac_ext=cpp |
0ad5d837 VZ |
17938 | ac_cpp='$CXXCPP $CPPFLAGS' |
17939 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17940 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17941 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
17942 | ||
d589327a VZ |
17943 | { echo "$as_me:$LINENO: checking whether we are using the SGI C++ compiler" >&5 |
17944 | echo $ECHO_N "checking whether we are using the SGI C++ compiler... $ECHO_C" >&6; } | |
0ad5d837 | 17945 | if test "${bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION+set}" = set; then |
d589327a | 17946 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
0ad5d837 VZ |
17947 | else |
17948 | cat >conftest.$ac_ext <<_ACEOF | |
17949 | /* confdefs.h. */ | |
17950 | _ACEOF | |
17951 | cat confdefs.h >>conftest.$ac_ext | |
17952 | cat >>conftest.$ac_ext <<_ACEOF | |
17953 | /* end confdefs.h. */ | |
17954 | ||
17955 | int | |
17956 | main () | |
17957 | { | |
17958 | ||
17959 | #ifndef _SGI_COMPILER_VERSION | |
17960 | choke me | |
17961 | #endif | |
17962 | ||
17963 | ; | |
17964 | return 0; | |
17965 | } | |
17966 | _ACEOF | |
17967 | rm -f conftest.$ac_objext | |
47964710 VS |
17968 | if { (ac_try="$ac_compile" |
17969 | case "(($ac_try" in | |
17970 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17971 | *) ac_try_echo=$ac_try;; | |
17972 | esac | |
d589327a | 17973 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 17974 | (eval "$ac_compile") 2>conftest.er1 |
0ad5d837 VZ |
17975 | ac_status=$? |
17976 | grep -v '^ *+' conftest.er1 >conftest.err | |
17977 | rm -f conftest.er1 | |
17978 | cat conftest.err >&5 | |
d589327a | 17979 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
17980 | (exit $ac_status); } && { |
17981 | test -z "$ac_cxx_werror_flag" || | |
17982 | test ! -s conftest.err | |
17983 | } && test -s conftest.$ac_objext; then | |
0ad5d837 VZ |
17984 | bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=yes |
17985 | else | |
d589327a | 17986 | echo "$as_me: failed program was:" >&5 |
0ad5d837 VZ |
17987 | sed 's/^/| /' conftest.$ac_ext >&5 |
17988 | ||
47964710 | 17989 | bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=no |
0ad5d837 VZ |
17990 | |
17991 | fi | |
47964710 VS |
17992 | |
17993 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
0ad5d837 VZ |
17994 | |
17995 | ||
17996 | fi | |
d589327a VZ |
17997 | { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&5 |
17998 | echo "${ECHO_T}$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&6; } | |
43a7c679 VZ |
17999 | if test "x$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" = "xyes"; then |
18000 | :; SGICXX=yes | |
18001 | else | |
18002 | :; | |
18003 | fi | |
fd5199d6 VZ |
18004 | ac_ext=c |
18005 | ac_cpp='$CPP $CPPFLAGS' | |
18006 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18007 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18008 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
0ad5d837 | 18009 | |
43a7c679 VZ |
18010 | |
18011 | ||
18012 | ;; | |
18013 | ||
18014 | Linux*) | |
05622061 | 18015 | if test "$INTELCXX" != "yes"; then |
43a7c679 VZ |
18016 | |
18017 | ||
47964710 | 18018 | ac_ext=cpp |
43a7c679 VZ |
18019 | ac_cpp='$CXXCPP $CPPFLAGS' |
18020 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18021 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18022 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
18023 | ||
d589327a VZ |
18024 | { echo "$as_me:$LINENO: checking whether we are using the Sun C++ compiler" >&5 |
18025 | echo $ECHO_N "checking whether we are using the Sun C++ compiler... $ECHO_C" >&6; } | |
43a7c679 | 18026 | if test "${bakefile_cv_cxx_compiler___SUNPRO_CC+set}" = set; then |
d589327a | 18027 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
43a7c679 VZ |
18028 | else |
18029 | cat >conftest.$ac_ext <<_ACEOF | |
18030 | /* confdefs.h. */ | |
18031 | _ACEOF | |
18032 | cat confdefs.h >>conftest.$ac_ext | |
18033 | cat >>conftest.$ac_ext <<_ACEOF | |
18034 | /* end confdefs.h. */ | |
18035 | ||
18036 | int | |
18037 | main () | |
18038 | { | |
18039 | ||
18040 | #ifndef __SUNPRO_CC | |
18041 | choke me | |
18042 | #endif | |
18043 | ||
18044 | ; | |
18045 | return 0; | |
18046 | } | |
18047 | _ACEOF | |
18048 | rm -f conftest.$ac_objext | |
47964710 VS |
18049 | if { (ac_try="$ac_compile" |
18050 | case "(($ac_try" in | |
18051 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
18052 | *) ac_try_echo=$ac_try;; | |
18053 | esac | |
d589327a | 18054 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 18055 | (eval "$ac_compile") 2>conftest.er1 |
43a7c679 VZ |
18056 | ac_status=$? |
18057 | grep -v '^ *+' conftest.er1 >conftest.err | |
18058 | rm -f conftest.er1 | |
18059 | cat conftest.err >&5 | |
d589327a | 18060 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
18061 | (exit $ac_status); } && { |
18062 | test -z "$ac_cxx_werror_flag" || | |
18063 | test ! -s conftest.err | |
18064 | } && test -s conftest.$ac_objext; then | |
43a7c679 VZ |
18065 | bakefile_cv_cxx_compiler___SUNPRO_CC=yes |
18066 | else | |
d589327a | 18067 | echo "$as_me: failed program was:" >&5 |
43a7c679 VZ |
18068 | sed 's/^/| /' conftest.$ac_ext >&5 |
18069 | ||
47964710 | 18070 | bakefile_cv_cxx_compiler___SUNPRO_CC=no |
43a7c679 VZ |
18071 | |
18072 | fi | |
47964710 VS |
18073 | |
18074 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
43a7c679 VZ |
18075 | |
18076 | ||
18077 | fi | |
d589327a VZ |
18078 | { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___SUNPRO_CC" >&5 |
18079 | echo "${ECHO_T}$bakefile_cv_cxx_compiler___SUNPRO_CC" >&6; } | |
43a7c679 VZ |
18080 | if test "x$bakefile_cv_cxx_compiler___SUNPRO_CC" = "xyes"; then |
18081 | :; SUNCXX=yes | |
a48b6595 VZ |
18082 | else |
18083 | :; | |
18084 | fi | |
43a7c679 VZ |
18085 | ac_ext=c |
18086 | ac_cpp='$CPP $CPPFLAGS' | |
18087 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18088 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18089 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
18090 | ||
0ad5d837 VZ |
18091 | |
18092 | ||
05622061 | 18093 | fi |
3006edc0 VZ |
18094 | ;; |
18095 | ||
0093c2fc | 18096 | HP-UX*) |
3006edc0 VZ |
18097 | |
18098 | ||
47964710 | 18099 | ac_ext=cpp |
3006edc0 VZ |
18100 | ac_cpp='$CXXCPP $CPPFLAGS' |
18101 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18102 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18103 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
18104 | ||
d589327a VZ |
18105 | { echo "$as_me:$LINENO: checking whether we are using the HP C++ compiler" >&5 |
18106 | echo $ECHO_N "checking whether we are using the HP C++ compiler... $ECHO_C" >&6; } | |
0093c2fc | 18107 | if test "${bakefile_cv_cxx_compiler___HP_aCC+set}" = set; then |
d589327a | 18108 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3006edc0 VZ |
18109 | else |
18110 | cat >conftest.$ac_ext <<_ACEOF | |
18111 | /* confdefs.h. */ | |
18112 | _ACEOF | |
18113 | cat confdefs.h >>conftest.$ac_ext | |
18114 | cat >>conftest.$ac_ext <<_ACEOF | |
18115 | /* end confdefs.h. */ | |
18116 | ||
18117 | int | |
18118 | main () | |
18119 | { | |
18120 | ||
0093c2fc | 18121 | #ifndef __HP_aCC |
3006edc0 VZ |
18122 | choke me |
18123 | #endif | |
18124 | ||
18125 | ; | |
18126 | return 0; | |
18127 | } | |
18128 | _ACEOF | |
18129 | rm -f conftest.$ac_objext | |
47964710 VS |
18130 | if { (ac_try="$ac_compile" |
18131 | case "(($ac_try" in | |
18132 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
18133 | *) ac_try_echo=$ac_try;; | |
18134 | esac | |
d589327a | 18135 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 18136 | (eval "$ac_compile") 2>conftest.er1 |
3006edc0 VZ |
18137 | ac_status=$? |
18138 | grep -v '^ *+' conftest.er1 >conftest.err | |
18139 | rm -f conftest.er1 | |
18140 | cat conftest.err >&5 | |
d589327a | 18141 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
18142 | (exit $ac_status); } && { |
18143 | test -z "$ac_cxx_werror_flag" || | |
18144 | test ! -s conftest.err | |
18145 | } && test -s conftest.$ac_objext; then | |
0093c2fc | 18146 | bakefile_cv_cxx_compiler___HP_aCC=yes |
3006edc0 | 18147 | else |
d589327a | 18148 | echo "$as_me: failed program was:" >&5 |
3006edc0 VZ |
18149 | sed 's/^/| /' conftest.$ac_ext >&5 |
18150 | ||
47964710 | 18151 | bakefile_cv_cxx_compiler___HP_aCC=no |
3006edc0 VZ |
18152 | |
18153 | fi | |
47964710 VS |
18154 | |
18155 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3006edc0 VZ |
18156 | |
18157 | ||
18158 | fi | |
d589327a VZ |
18159 | { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___HP_aCC" >&5 |
18160 | echo "${ECHO_T}$bakefile_cv_cxx_compiler___HP_aCC" >&6; } | |
43a7c679 VZ |
18161 | if test "x$bakefile_cv_cxx_compiler___HP_aCC" = "xyes"; then |
18162 | :; HPCXX=yes | |
18163 | else | |
18164 | :; | |
18165 | fi | |
fd5199d6 VZ |
18166 | ac_ext=c |
18167 | ac_cpp='$CPP $CPPFLAGS' | |
18168 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18169 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18170 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3006edc0 | 18171 | |
a1aa0349 VZ |
18172 | |
18173 | ||
18174 | ;; | |
18175 | ||
0093c2fc | 18176 | OSF1) |
a1aa0349 VZ |
18177 | |
18178 | ||
47964710 | 18179 | ac_ext=cpp |
a1aa0349 VZ |
18180 | ac_cpp='$CXXCPP $CPPFLAGS' |
18181 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18182 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18183 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
18184 | ||
d589327a VZ |
18185 | { echo "$as_me:$LINENO: checking whether we are using the Compaq C++ compiler" >&5 |
18186 | echo $ECHO_N "checking whether we are using the Compaq C++ compiler... $ECHO_C" >&6; } | |
0093c2fc | 18187 | if test "${bakefile_cv_cxx_compiler___DECCXX+set}" = set; then |
d589327a | 18188 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a1aa0349 VZ |
18189 | else |
18190 | cat >conftest.$ac_ext <<_ACEOF | |
18191 | /* confdefs.h. */ | |
18192 | _ACEOF | |
18193 | cat confdefs.h >>conftest.$ac_ext | |
18194 | cat >>conftest.$ac_ext <<_ACEOF | |
18195 | /* end confdefs.h. */ | |
18196 | ||
18197 | int | |
18198 | main () | |
18199 | { | |
18200 | ||
0093c2fc | 18201 | #ifndef __DECCXX |
a1aa0349 VZ |
18202 | choke me |
18203 | #endif | |
18204 | ||
18205 | ; | |
18206 | return 0; | |
18207 | } | |
18208 | _ACEOF | |
18209 | rm -f conftest.$ac_objext | |
47964710 VS |
18210 | if { (ac_try="$ac_compile" |
18211 | case "(($ac_try" in | |
18212 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
18213 | *) ac_try_echo=$ac_try;; | |
18214 | esac | |
d589327a | 18215 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 18216 | (eval "$ac_compile") 2>conftest.er1 |
a1aa0349 VZ |
18217 | ac_status=$? |
18218 | grep -v '^ *+' conftest.er1 >conftest.err | |
18219 | rm -f conftest.er1 | |
18220 | cat conftest.err >&5 | |
d589327a | 18221 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
18222 | (exit $ac_status); } && { |
18223 | test -z "$ac_cxx_werror_flag" || | |
18224 | test ! -s conftest.err | |
18225 | } && test -s conftest.$ac_objext; then | |
0093c2fc | 18226 | bakefile_cv_cxx_compiler___DECCXX=yes |
a1aa0349 | 18227 | else |
d589327a | 18228 | echo "$as_me: failed program was:" >&5 |
a1aa0349 VZ |
18229 | sed 's/^/| /' conftest.$ac_ext >&5 |
18230 | ||
47964710 | 18231 | bakefile_cv_cxx_compiler___DECCXX=no |
a1aa0349 VZ |
18232 | |
18233 | fi | |
47964710 VS |
18234 | |
18235 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
a1aa0349 VZ |
18236 | |
18237 | ||
18238 | fi | |
d589327a VZ |
18239 | { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___DECCXX" >&5 |
18240 | echo "${ECHO_T}$bakefile_cv_cxx_compiler___DECCXX" >&6; } | |
43a7c679 VZ |
18241 | if test "x$bakefile_cv_cxx_compiler___DECCXX" = "xyes"; then |
18242 | :; COMPAQCXX=yes | |
18243 | else | |
18244 | :; | |
18245 | fi | |
fd5199d6 VZ |
18246 | ac_ext=c |
18247 | ac_cpp='$CPP $CPPFLAGS' | |
18248 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18249 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18250 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
a1aa0349 | 18251 | |
0093c2fc VZ |
18252 | |
18253 | ||
18254 | ;; | |
18255 | ||
18256 | SunOS) | |
18257 | ||
18258 | ||
47964710 | 18259 | ac_ext=cpp |
0093c2fc VZ |
18260 | ac_cpp='$CXXCPP $CPPFLAGS' |
18261 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18262 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18263 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
18264 | ||
d589327a VZ |
18265 | { echo "$as_me:$LINENO: checking whether we are using the Sun C++ compiler" >&5 |
18266 | echo $ECHO_N "checking whether we are using the Sun C++ compiler... $ECHO_C" >&6; } | |
0093c2fc | 18267 | if test "${bakefile_cv_cxx_compiler___SUNPRO_CC+set}" = set; then |
d589327a | 18268 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
0093c2fc VZ |
18269 | else |
18270 | cat >conftest.$ac_ext <<_ACEOF | |
18271 | /* confdefs.h. */ | |
18272 | _ACEOF | |
18273 | cat confdefs.h >>conftest.$ac_ext | |
18274 | cat >>conftest.$ac_ext <<_ACEOF | |
18275 | /* end confdefs.h. */ | |
18276 | ||
18277 | int | |
18278 | main () | |
18279 | { | |
18280 | ||
18281 | #ifndef __SUNPRO_CC | |
18282 | choke me | |
18283 | #endif | |
18284 | ||
18285 | ; | |
18286 | return 0; | |
18287 | } | |
18288 | _ACEOF | |
18289 | rm -f conftest.$ac_objext | |
47964710 VS |
18290 | if { (ac_try="$ac_compile" |
18291 | case "(($ac_try" in | |
18292 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
18293 | *) ac_try_echo=$ac_try;; | |
18294 | esac | |
d589327a | 18295 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 18296 | (eval "$ac_compile") 2>conftest.er1 |
0093c2fc VZ |
18297 | ac_status=$? |
18298 | grep -v '^ *+' conftest.er1 >conftest.err | |
18299 | rm -f conftest.er1 | |
18300 | cat conftest.err >&5 | |
d589327a | 18301 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
18302 | (exit $ac_status); } && { |
18303 | test -z "$ac_cxx_werror_flag" || | |
18304 | test ! -s conftest.err | |
18305 | } && test -s conftest.$ac_objext; then | |
0093c2fc VZ |
18306 | bakefile_cv_cxx_compiler___SUNPRO_CC=yes |
18307 | else | |
d589327a | 18308 | echo "$as_me: failed program was:" >&5 |
0093c2fc VZ |
18309 | sed 's/^/| /' conftest.$ac_ext >&5 |
18310 | ||
47964710 | 18311 | bakefile_cv_cxx_compiler___SUNPRO_CC=no |
0093c2fc VZ |
18312 | |
18313 | fi | |
47964710 VS |
18314 | |
18315 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
0093c2fc VZ |
18316 | |
18317 | ||
18318 | fi | |
d589327a VZ |
18319 | { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___SUNPRO_CC" >&5 |
18320 | echo "${ECHO_T}$bakefile_cv_cxx_compiler___SUNPRO_CC" >&6; } | |
43a7c679 VZ |
18321 | if test "x$bakefile_cv_cxx_compiler___SUNPRO_CC" = "xyes"; then |
18322 | :; SUNCXX=yes | |
18323 | else | |
18324 | :; | |
18325 | fi | |
fd5199d6 VZ |
18326 | ac_ext=c |
18327 | ac_cpp='$CPP $CPPFLAGS' | |
18328 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18329 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18330 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
0093c2fc | 18331 | |
a9e5b1f0 MW |
18332 | |
18333 | ||
3006edc0 VZ |
18334 | ;; |
18335 | esac | |
18336 | fi | |
18337 | ||
18338 | ||
18339 | ||
b7064225 | 18340 | if test "$CXX" = "g++" -a "$GXX" != "yes"; then |
d589327a VZ |
18341 | { { echo "$as_me:$LINENO: error: C++ compiler is needed to build wxWidgets" >&5 |
18342 | echo "$as_me: error: C++ compiler is needed to build wxWidgets" >&2;} | |
d5e0be7d VZ |
18343 | { (exit 1); exit 1; }; } |
18344 | fi | |
18345 | ||
d083d201 MW |
18346 | if test "x$SUNCXX" != xyes; then |
18347 | if test -n "$ac_tool_prefix"; then | |
8c80d384 DE |
18348 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
18349 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
d589327a VZ |
18350 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
18351 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
a848cd7e | 18352 | if test "${ac_cv_prog_AR+set}" = set; then |
d589327a | 18353 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a848cd7e SC |
18354 | else |
18355 | if test -n "$AR"; then | |
18356 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
18357 | else | |
18358 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
18359 | for as_dir in $PATH | |
18360 | do | |
18361 | IFS=$as_save_IFS | |
18362 | test -z "$as_dir" && as_dir=. | |
18363 | for ac_exec_ext in '' $ac_executable_extensions; do | |
47964710 | 18364 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
8c80d384 | 18365 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
d589327a | 18366 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
a848cd7e SC |
18367 | break 2 |
18368 | fi | |
18369 | done | |
18370 | done | |
47964710 | 18371 | IFS=$as_save_IFS |
a848cd7e SC |
18372 | |
18373 | fi | |
18374 | fi | |
18375 | AR=$ac_cv_prog_AR | |
18376 | if test -n "$AR"; then | |
d589327a VZ |
18377 | { echo "$as_me:$LINENO: result: $AR" >&5 |
18378 | echo "${ECHO_T}$AR" >&6; } | |
a848cd7e | 18379 | else |
d589327a VZ |
18380 | { echo "$as_me:$LINENO: result: no" >&5 |
18381 | echo "${ECHO_T}no" >&6; } | |
a848cd7e SC |
18382 | fi |
18383 | ||
47964710 | 18384 | |
8c80d384 DE |
18385 | fi |
18386 | if test -z "$ac_cv_prog_AR"; then | |
18387 | ac_ct_AR=$AR | |
18388 | # Extract the first word of "ar", so it can be a program name with args. | |
18389 | set dummy ar; ac_word=$2 | |
d589327a VZ |
18390 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
18391 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
8c80d384 | 18392 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then |
d589327a | 18393 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8c80d384 DE |
18394 | else |
18395 | if test -n "$ac_ct_AR"; then | |
18396 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
18397 | else | |
18398 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
18399 | for as_dir in $PATH | |
18400 | do | |
18401 | IFS=$as_save_IFS | |
18402 | test -z "$as_dir" && as_dir=. | |
18403 | for ac_exec_ext in '' $ac_executable_extensions; do | |
47964710 | 18404 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
8c80d384 | 18405 | ac_cv_prog_ac_ct_AR="ar" |
d589327a | 18406 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8c80d384 DE |
18407 | break 2 |
18408 | fi | |
18409 | done | |
18410 | done | |
47964710 | 18411 | IFS=$as_save_IFS |
8c80d384 DE |
18412 | |
18413 | fi | |
18414 | fi | |
18415 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
18416 | if test -n "$ac_ct_AR"; then | |
d589327a VZ |
18417 | { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 |
18418 | echo "${ECHO_T}$ac_ct_AR" >&6; } | |
8c80d384 | 18419 | else |
d589327a VZ |
18420 | { echo "$as_me:$LINENO: result: no" >&5 |
18421 | echo "${ECHO_T}no" >&6; } | |
8c80d384 DE |
18422 | fi |
18423 | ||
47964710 VS |
18424 | if test "x$ac_ct_AR" = x; then |
18425 | AR="" | |
18426 | else | |
18427 | case $cross_compiling:$ac_tool_warned in | |
18428 | yes:) | |
d589327a VZ |
18429 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
18430 | whose name does not start with the host triplet. If you think this | |
18431 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
18432 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | |
18433 | whose name does not start with the host triplet. If you think this | |
18434 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
47964710 VS |
18435 | ac_tool_warned=yes ;; |
18436 | esac | |
18437 | AR=$ac_ct_AR | |
18438 | fi | |
8c80d384 DE |
18439 | else |
18440 | AR="$ac_cv_prog_AR" | |
18441 | fi | |
18442 | ||
d083d201 | 18443 | if test "x$AR" = "x" ; then |
d589327a VZ |
18444 | { { echo "$as_me:$LINENO: error: ar is needed to build wxWidgets" >&5 |
18445 | echo "$as_me: error: ar is needed to build wxWidgets" >&2;} | |
a848cd7e | 18446 | { (exit 1); exit 1; }; } |
d083d201 | 18447 | fi |
a848cd7e SC |
18448 | fi |
18449 | ||
6c254c52 VZ |
18450 | |
18451 | if test "$wxUSE_MAC" = 1; then | |
18452 | ||
b4e05bdd DE |
18453 | retest_macosx_linking=no |
18454 | ||
b4e05bdd DE |
18455 | if test "x$wxUSE_UNIVERSAL_BINARY" != xno ; then |
18456 | if test "x$wxUSE_UNIVERSAL_BINARY" == xyes; then | |
18457 | # Implicitly turn on the new --with-macosx-sdk using the default | |
18458 | # SDK which provides the behavior this option has always had. | |
18459 | if test "x$wxUSE_MACOSX_SDK" = "x"; then | |
d589327a VZ |
18460 | { echo "$as_me:$LINENO: WARNING: Enabling default SDK due to --enable-universal_binary." >&5 |
18461 | echo "$as_me: WARNING: Enabling default SDK due to --enable-universal_binary." >&2;} | |
18462 | { echo "$as_me:$LINENO: WARNING: If you don't want this, specify --without-macosx-sdk" >&5 | |
18463 | echo "$as_me: WARNING: If you don't want this, specify --without-macosx-sdk" >&2;} | |
b4e05bdd DE |
18464 | wxUSE_MACOSX_SDK=yes |
18465 | fi | |
18466 | else | |
18467 | # Complain to user if he specified an argument to --enable-universal_binary | |
18468 | # and also 1) specified --with-macosx-sdk using the default (yes) or | |
18469 | # 2) specified --with-macosx-sdk using a path or 3) specified | |
18470 | # --without-macosx-sdk (no). | |
18471 | if test "x$wxUSE_MACOSX_SDK" != "x" ; then | |
d589327a | 18472 | { { echo "$as_me:$LINENO: error: Please specify the new --with-macosx-sdk=PATH and do not specify an arg to --enable-universal_binary |
b4e05bdd | 18473 | See \`config.log' for more details." >&5 |
d589327a | 18474 | echo "$as_me: error: Please specify the new --with-macosx-sdk=PATH and do not specify an arg to --enable-universal_binary |
b4e05bdd | 18475 | See \`config.log' for more details." >&2;} |
d589327a | 18476 | { (exit 1); exit 1; }; } |
b4e05bdd DE |
18477 | else |
18478 | # Put the SDK path into the wxUSE_MACOSX_SDK. We don't have to | |
18479 | # special-case the empty string because the below test simply | |
18480 | # converts "no" to the empty string anyway. | |
18481 | wxUSE_MACOSX_SDK="$wxUSE_UNIVERSAL_BINARY" | |
d589327a VZ |
18482 | { echo "$as_me:$LINENO: WARNING: Please use --with-macosx-sdk=PATH and --enable-universal_binary without an argument" >&5 |
18483 | echo "$as_me: WARNING: Please use --with-macosx-sdk=PATH and --enable-universal_binary without an argument" >&2;} | |
b4e05bdd DE |
18484 | fi |
18485 | fi | |
18486 | OSX_UNIV_OPTS="-arch ppc -arch i386" | |
18487 | CXXFLAGS="$OSX_UNIV_OPTS $CXXFLAGS" | |
18488 | CFLAGS="$OSX_UNIV_OPTS $CFLAGS" | |
64d975b2 DE |
18489 | OBJCXXFLAGS="$OSX_UNIV_OPTS $OBJCXXFLAGS" |
18490 | OBJCFLAGS="$OSX_UNIV_OPTS $OBJCFLAGS" | |
b4e05bdd DE |
18491 | LDFLAGS="$OSX_UNIV_OPTS $LDFLAGS" |
18492 | retest_macosx_linking=yes | |
18493 | ||
d589327a VZ |
18494 | { echo "$as_me:$LINENO: WARNING: Disabling precompiled headers due to universal binary build." >&5 |
18495 | echo "$as_me: WARNING: Disabling precompiled headers due to universal binary build." >&2;} | |
b4e05bdd DE |
18496 | bk_use_pch=no |
18497 | fi | |
b4e05bdd DE |
18498 | |
18499 | if test "x$wxUSE_MACOSX_SDK" = "xno"; then | |
18500 | wxUSE_MACOSX_SDK= | |
18501 | elif test "x$wxUSE_MACOSX_SDK" = "xyes"; then | |
18502 | # TODO: Search for most recent SDK and use it. | |
18503 | wxUSE_MACOSX_SDK="/Developer/SDKs/MacOSX10.4u.sdk" | |
18504 | fi | |
18505 | ||
18506 | ||
18507 | if test "x$wxUSE_MACOSX_SDK" != "x"; then | |
d589327a VZ |
18508 | { echo "$as_me:$LINENO: checking for SDK directory $wxUSE_MACOSX_SDK" >&5 |
18509 | echo $ECHO_N "checking for SDK directory $wxUSE_MACOSX_SDK... $ECHO_C" >&6; } | |
b4e05bdd | 18510 | if ! test -d "$wxUSE_MACOSX_SDK"; then |
d589327a | 18511 | { { echo "$as_me:$LINENO: error: not found |
b4e05bdd | 18512 | See \`config.log' for more details." >&5 |
d589327a | 18513 | echo "$as_me: error: not found |
b4e05bdd | 18514 | See \`config.log' for more details." >&2;} |
d589327a | 18515 | { (exit 1); exit 1; }; } |
b4e05bdd | 18516 | else |
d589327a VZ |
18517 | { echo "$as_me:$LINENO: result: exists" >&5 |
18518 | echo "${ECHO_T}exists" >&6; } | |
b4e05bdd DE |
18519 | fi |
18520 | MACOSX_SDK_OPTS="-isysroot $wxUSE_MACOSX_SDK" | |
18521 | eval "CC=\"$CC $MACOSX_SDK_OPTS\"" | |
18522 | eval "CXX=\"$CXX $MACOSX_SDK_OPTS\"" | |
18523 | eval "LD=\"$LD $MACOSX_SDK_OPTS\"" | |
18524 | retest_macosx_linking=yes | |
18525 | fi | |
18526 | ||
18527 | if test "x$wxUSE_MACOSX_VERSION_MIN" = "xno"; then | |
18528 | wxUSE_MACOSX_VERSION_MIN= | |
18529 | elif test "x$wxUSE_MACOSX_VERSION_MIN" = "xyes"; then | |
18530 | if test "x$wxUSE_MACOSX_SDK" != "x"; then | |
d589327a VZ |
18531 | { echo "$as_me:$LINENO: checking SDK deployment version" >&5 |
18532 | echo $ECHO_N "checking SDK deployment version... $ECHO_C" >&6; } | |
b4e05bdd DE |
18533 | |
18534 | MACOSX_SDK_PLIST_VERSION_MIN=`defaults read "$wxUSE_MACOSX_SDK/SDKSettings" buildSettings | grep '^ *"\{0,1\}MACOSX_DEPLOYMENT_TARGET"\{0,1\} *= *"\{0,1\}[^"]*"\{0,1\}; *$' | sed 's/^ *"\{0,1\}MACOSX_DEPLOYMENT_TARGET"\{0,1\} *= *"\{0,1\}\([^"]*\)"\{0,1\} *; *$/\1/'` | |
18535 | ||
11804291 DE |
18536 | # If that failed, try again with the new key |
18537 | if test "x$MACOSX_SDK_PLIST_VERSION_MIN" == "x"; then | |
18538 | ||
18539 | MACOSX_SDK_PLIST_VERSION_MIN=`defaults read "$wxUSE_MACOSX_SDK/SDKSettings" DefaultProperties | grep '^ *"\{0,1\}MACOSX_DEPLOYMENT_TARGET"\{0,1\} *= *"\{0,1\}[^"]*"\{0,1\}; *$' | sed 's/^ *"\{0,1\}MACOSX_DEPLOYMENT_TARGET"\{0,1\} *= *"\{0,1\}\([^"]*\)"\{0,1\} *; *$/\1/'` | |
18540 | ||
18541 | fi | |
18542 | ||
b4e05bdd DE |
18543 | if test "x$MACOSX_SDK_PLIST_VERSION_MIN" != "x"; then |
18544 | wxUSE_MACOSX_VERSION_MIN=$MACOSX_SDK_PLIST_VERSION_MIN | |
d589327a VZ |
18545 | { echo "$as_me:$LINENO: result: $wxUSE_MACOSX_VERSION_MIN" >&5 |
18546 | echo "${ECHO_T}$wxUSE_MACOSX_VERSION_MIN" >&6; } | |
b4e05bdd | 18547 | else |
d589327a VZ |
18548 | { echo "$as_me:$LINENO: WARNING: Could not determine deployment target from SDKSettings.plist" >&5 |
18549 | echo "$as_me: WARNING: Could not determine deployment target from SDKSettings.plist" >&2;} | |
b4e05bdd DE |
18550 | wxUSE_MACOSX_VERSION_MIN= |
18551 | fi | |
18552 | else | |
18553 | wxUSE_MACOSX_VERSION_MIN= | |
18554 | fi | |
e9efd9f1 | 18555 | elif test "x$wxUSE_MACOSX_VERSION_MIN" = "x"; then |
06a08679 VZ |
18556 | for ac_prog in sw_vers |
18557 | do | |
18558 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
18559 | set dummy $ac_prog; ac_word=$2 | |
18560 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
18561 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
18562 | if test "${ac_cv_prog_OSX_SW_VERS+set}" = set; then | |
18563 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18564 | else | |
18565 | if test -n "$OSX_SW_VERS"; then | |
18566 | ac_cv_prog_OSX_SW_VERS="$OSX_SW_VERS" # Let the user override the test. | |
18567 | else | |
18568 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
18569 | for as_dir in $PATH | |
18570 | do | |
18571 | IFS=$as_save_IFS | |
18572 | test -z "$as_dir" && as_dir=. | |
18573 | for ac_exec_ext in '' $ac_executable_extensions; do | |
18574 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
18575 | ac_cv_prog_OSX_SW_VERS="$ac_prog" | |
18576 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
18577 | break 2 | |
18578 | fi | |
18579 | done | |
18580 | done | |
18581 | IFS=$as_save_IFS | |
18582 | ||
18583 | fi | |
18584 | fi | |
18585 | OSX_SW_VERS=$ac_cv_prog_OSX_SW_VERS | |
18586 | if test -n "$OSX_SW_VERS"; then | |
18587 | { echo "$as_me:$LINENO: result: $OSX_SW_VERS" >&5 | |
18588 | echo "${ECHO_T}$OSX_SW_VERS" >&6; } | |
18589 | else | |
18590 | { echo "$as_me:$LINENO: result: no" >&5 | |
18591 | echo "${ECHO_T}no" >&6; } | |
18592 | fi | |
18593 | ||
18594 | ||
18595 | test -n "$OSX_SW_VERS" && break | |
18596 | done | |
18597 | ||
18598 | if test "$OSX_SW_VERS" != ""; then | |
18599 | OSX_VERSION=`sw_vers -productVersion | grep 10.[0-9]` | |
18600 | else | |
18601 | { echo "$as_me:$LINENO: WARNING: Assuming OS X 10.4, use --with-macosx-version-min to override." >&5 | |
18602 | echo "$as_me: WARNING: Assuming OS X 10.4, use --with-macosx-version-min to override." >&2;} | |
18603 | OSX_VERSION="10.4" | |
18604 | fi | |
a49318f1 VZ |
18605 | |
18606 | case "$OSX_VERSION" in | |
18607 | 10.4* ) | |
18608 | wxUSE_MACOSX_VERSION_MIN=10.4 | |
18609 | ;; | |
18610 | ||
18611 | * ) | |
18612 | if test "$wxUSE_OSX_CARBON" = 1; then | |
18613 | # otherwise configure stops on leopard for universal_binary | |
18614 | wxUSE_MACOSX_VERSION_MIN=10.4 | |
18615 | else | |
18616 | # for Cocoa, use 10.5 to be able to compile it in 64 bits too | |
18617 | wxUSE_MACOSX_VERSION_MIN=10.5 | |
18618 | fi | |
18619 | ;; | |
18620 | esac | |
8e6b680d KO |
18621 | fi |
18622 | ||
18623 | NEEDS_GCC40="no" | |
18624 | if test "x$wxUSE_MACOSX_VERSION_MIN" == "x10.4"; then | |
18625 | NEEDS_GCC40="yes" | |
18626 | fi | |
18627 | ||
18628 | if test "$wxUSE_OSX_CARBON" = 1; then | |
18629 | NEEDS_GCC40="yes" | |
18630 | fi | |
18631 | ||
18632 | if test "x$NEEDS_GCC40" == "xyes"; then | |
18633 | # gcc 4.2 cannot compile 10.4 compatible code, so if the user is using it | |
18634 | # and wants 10.4 compatible code, then 'downgrade' to 4.0 | |
18635 | # This is also the simplest way to get 32-bit binaries on Snow Leopard. | |
18636 | if test "x$CC" = "xgcc"; then | |
18637 | CCVERSION=`$CC --version | grep 4.[2-9].` | |
18638 | if test "x$CCVERSION" != "x"; then | |
18639 | echo "$as_me:$LINENO: WARNING: gcc >= 4.2 cannot compile 10.4 compatible code. Using gcc 4.0 instead." | |
18640 | CC="/usr/bin/gcc-4.0" | |
18641 | fi | |
18642 | fi | |
18643 | ||
18644 | if test "x$CXX" = "xg++"; then | |
18645 | CCVERSION=`$CXX --version | grep 4.[2-9].` | |
18646 | if test "x$CCVERSION" != "x"; then | |
18647 | CXX="/usr/bin/g++-4.0" | |
18648 | fi | |
80ba44a0 | 18649 | fi |
b4e05bdd DE |
18650 | fi |
18651 | ||
18652 | if test "x$wxUSE_MACOSX_VERSION_MIN" != "x"; then | |
18653 | MACOSX_VERSION_MIN_OPTS="-mmacosx-version-min=$wxUSE_MACOSX_VERSION_MIN" | |
18654 | eval "CC=\"$CC $MACOSX_VERSION_MIN_OPTS\"" | |
18655 | eval "CXX=\"$CXX $MACOSX_VERSION_MIN_OPTS\"" | |
18656 | eval "LD=\"$LD $MACOSX_VERSION_MIN_OPTS\"" | |
18657 | retest_macosx_linking=yes | |
18658 | fi | |
18659 | ||
18660 | if test "x$retest_macosx_linking" = "xyes"; then | |
18661 | ac_ext=c | |
18662 | ac_cpp='$CPP $CPPFLAGS' | |
18663 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18664 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18665 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
18666 | ||
d589327a VZ |
18667 | { echo "$as_me:$LINENO: checking if C compiler works with SDK/version options" >&5 |
18668 | echo $ECHO_N "checking if C compiler works with SDK/version options... $ECHO_C" >&6; } | |
b4e05bdd DE |
18669 | cat >conftest.$ac_ext <<_ACEOF |
18670 | /* confdefs.h. */ | |
18671 | _ACEOF | |
18672 | cat confdefs.h >>conftest.$ac_ext | |
18673 | cat >>conftest.$ac_ext <<_ACEOF | |
18674 | /* end confdefs.h. */ | |
18675 | ||
18676 | int | |
18677 | main () | |
18678 | { | |
18679 | ||
18680 | ; | |
18681 | return 0; | |
18682 | } | |
18683 | _ACEOF | |
18684 | rm -f conftest.$ac_objext conftest$ac_exeext | |
47964710 VS |
18685 | if { (ac_try="$ac_link" |
18686 | case "(($ac_try" in | |
18687 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
18688 | *) ac_try_echo=$ac_try;; | |
18689 | esac | |
d589327a | 18690 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 18691 | (eval "$ac_link") 2>conftest.er1 |
b4e05bdd DE |
18692 | ac_status=$? |
18693 | grep -v '^ *+' conftest.er1 >conftest.err | |
18694 | rm -f conftest.er1 | |
18695 | cat conftest.err >&5 | |
d589327a | 18696 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
18697 | (exit $ac_status); } && { |
18698 | test -z "$ac_c_werror_flag" || | |
18699 | test ! -s conftest.err | |
d589327a VZ |
18700 | } && test -s conftest$ac_exeext && |
18701 | $as_test_x conftest$ac_exeext; then | |
18702 | { echo "$as_me:$LINENO: result: yes" >&5 | |
18703 | echo "${ECHO_T}yes" >&6; } | |
b4e05bdd | 18704 | else |
d589327a | 18705 | echo "$as_me: failed program was:" >&5 |
b4e05bdd DE |
18706 | sed 's/^/| /' conftest.$ac_ext >&5 |
18707 | ||
d589327a | 18708 | { { echo "$as_me:$LINENO: error: no. Try a different SDK |
b4e05bdd | 18709 | See \`config.log' for more details." >&5 |
d589327a | 18710 | echo "$as_me: error: no. Try a different SDK |
b4e05bdd | 18711 | See \`config.log' for more details." >&2;} |
d589327a | 18712 | { (exit 1); exit 1; }; }; exit 1 |
b4e05bdd | 18713 | fi |
47964710 VS |
18714 | |
18715 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
b4e05bdd DE |
18716 | conftest$ac_exeext conftest.$ac_ext |
18717 | ac_ext=c | |
18718 | ac_cpp='$CPP $CPPFLAGS' | |
18719 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18720 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18721 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
18722 | ||
18723 | ||
47964710 | 18724 | ac_ext=cpp |
b4e05bdd DE |
18725 | ac_cpp='$CXXCPP $CPPFLAGS' |
18726 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18727 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18728 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
18729 | ||
d589327a VZ |
18730 | { echo "$as_me:$LINENO: checking if C++ compiler works with SDK/version options" >&5 |
18731 | echo $ECHO_N "checking if C++ compiler works with SDK/version options... $ECHO_C" >&6; } | |
b4e05bdd DE |
18732 | cat >conftest.$ac_ext <<_ACEOF |
18733 | /* confdefs.h. */ | |
18734 | _ACEOF | |
18735 | cat confdefs.h >>conftest.$ac_ext | |
18736 | cat >>conftest.$ac_ext <<_ACEOF | |
18737 | /* end confdefs.h. */ | |
18738 | ||
18739 | int | |
18740 | main () | |
18741 | { | |
18742 | ||
18743 | ; | |
18744 | return 0; | |
18745 | } | |
18746 | _ACEOF | |
18747 | rm -f conftest.$ac_objext conftest$ac_exeext | |
47964710 VS |
18748 | if { (ac_try="$ac_link" |
18749 | case "(($ac_try" in | |
18750 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
18751 | *) ac_try_echo=$ac_try;; | |
18752 | esac | |
d589327a | 18753 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 18754 | (eval "$ac_link") 2>conftest.er1 |
b4e05bdd DE |
18755 | ac_status=$? |
18756 | grep -v '^ *+' conftest.er1 >conftest.err | |
18757 | rm -f conftest.er1 | |
18758 | cat conftest.err >&5 | |
d589327a | 18759 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
18760 | (exit $ac_status); } && { |
18761 | test -z "$ac_cxx_werror_flag" || | |
18762 | test ! -s conftest.err | |
d589327a VZ |
18763 | } && test -s conftest$ac_exeext && |
18764 | $as_test_x conftest$ac_exeext; then | |
18765 | { echo "$as_me:$LINENO: result: yes" >&5 | |
18766 | echo "${ECHO_T}yes" >&6; } | |
b4e05bdd | 18767 | else |
d589327a | 18768 | echo "$as_me: failed program was:" >&5 |
b4e05bdd DE |
18769 | sed 's/^/| /' conftest.$ac_ext >&5 |
18770 | ||
d589327a | 18771 | { { echo "$as_me:$LINENO: error: no. Try a different SDK |
b4e05bdd | 18772 | See \`config.log' for more details." >&5 |
d589327a | 18773 | echo "$as_me: error: no. Try a different SDK |
b4e05bdd | 18774 | See \`config.log' for more details." >&2;} |
d589327a | 18775 | { (exit 1); exit 1; }; }; exit 1 |
b4e05bdd | 18776 | fi |
47964710 VS |
18777 | |
18778 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
b4e05bdd DE |
18779 | conftest$ac_exeext conftest.$ac_ext |
18780 | ac_ext=c | |
18781 | ac_cpp='$CPP $CPPFLAGS' | |
18782 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18783 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18784 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
18785 | ||
18786 | fi | |
18787 | ||
6c254c52 | 18788 | fi |
a848cd7e SC |
18789 | case "${host}" in |
18790 | ||
cfda0ea8 | 18791 | *-*-darwin* ) |
a848cd7e SC |
18792 | INSTALL_PROGRAM="cp -fp" |
18793 | INSTALL_DATA="cp -fp" | |
18794 | ;; | |
18795 | *) | |
18796 | ;; | |
18797 | esac | |
18798 | ||
a848cd7e | 18799 | |
2113bc77 | 18800 | if test "x$XLCXX" = "xyes" -a "x$USE_AIX" = "x1"; then |
c92ad099 | 18801 | CXXFLAGS="-qunique $CXXFLAGS" |
9273ffba DE |
18802 | fi |
18803 | ||
4d7ec9f1 DE |
18804 | case "${host}" in |
18805 | powerpc-*-darwin* ) | |
d589327a VZ |
18806 | { echo "$as_me:$LINENO: checking if __POWERPC__ is already defined" >&5 |
18807 | echo $ECHO_N "checking if __POWERPC__ is already defined... $ECHO_C" >&6; } | |
4d7ec9f1 DE |
18808 | cat >conftest.$ac_ext <<_ACEOF |
18809 | /* confdefs.h. */ | |
18810 | _ACEOF | |
18811 | cat confdefs.h >>conftest.$ac_ext | |
18812 | cat >>conftest.$ac_ext <<_ACEOF | |
18813 | /* end confdefs.h. */ | |
18814 | ||
18815 | int | |
18816 | main () | |
18817 | { | |
18818 | #ifndef __POWERPC__ | |
18819 | choke me for lack of PowerPC | |
18820 | #endif | |
18821 | ||
18822 | ; | |
18823 | return 0; | |
18824 | } | |
18825 | _ACEOF | |
18826 | rm -f conftest.$ac_objext | |
47964710 VS |
18827 | if { (ac_try="$ac_compile" |
18828 | case "(($ac_try" in | |
18829 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
18830 | *) ac_try_echo=$ac_try;; | |
18831 | esac | |
d589327a | 18832 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 18833 | (eval "$ac_compile") 2>conftest.er1 |
4d7ec9f1 DE |
18834 | ac_status=$? |
18835 | grep -v '^ *+' conftest.er1 >conftest.err | |
18836 | rm -f conftest.er1 | |
18837 | cat conftest.err >&5 | |
d589327a | 18838 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
18839 | (exit $ac_status); } && { |
18840 | test -z "$ac_c_werror_flag" || | |
18841 | test ! -s conftest.err | |
18842 | } && test -s conftest.$ac_objext; then | |
d589327a VZ |
18843 | { echo "$as_me:$LINENO: result: yes" >&5 |
18844 | echo "${ECHO_T}yes" >&6; } | |
4d7ec9f1 | 18845 | else |
d589327a | 18846 | echo "$as_me: failed program was:" >&5 |
4d7ec9f1 DE |
18847 | sed 's/^/| /' conftest.$ac_ext >&5 |
18848 | ||
d589327a VZ |
18849 | { echo "$as_me:$LINENO: result: no" >&5 |
18850 | echo "${ECHO_T}no" >&6; } | |
4d7ec9f1 DE |
18851 | cat >>confdefs.h <<\_ACEOF |
18852 | #define __POWERPC__ 1 | |
18853 | _ACEOF | |
18854 | ||
18855 | ||
18856 | fi | |
47964710 VS |
18857 | |
18858 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
cfda0ea8 DE |
18859 | ;; |
18860 | esac | |
18861 | ||
18862 | case "${host}" in | |
18863 | *-*-darwin* ) | |
d589327a VZ |
18864 | { echo "$as_me:$LINENO: checking if CoreFoundation/CFBase.h is usable" >&5 |
18865 | echo $ECHO_N "checking if CoreFoundation/CFBase.h is usable... $ECHO_C" >&6; } | |
4d7ec9f1 DE |
18866 | cat >conftest.$ac_ext <<_ACEOF |
18867 | /* confdefs.h. */ | |
18868 | _ACEOF | |
18869 | cat confdefs.h >>conftest.$ac_ext | |
18870 | cat >>conftest.$ac_ext <<_ACEOF | |
18871 | /* end confdefs.h. */ | |
18872 | #include <CoreFoundation/CFBase.h> | |
18873 | ||
18874 | int | |
18875 | main () | |
18876 | { | |
18877 | ||
18878 | ; | |
18879 | return 0; | |
18880 | } | |
18881 | _ACEOF | |
18882 | rm -f conftest.$ac_objext | |
47964710 VS |
18883 | if { (ac_try="$ac_compile" |
18884 | case "(($ac_try" in | |
18885 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
18886 | *) ac_try_echo=$ac_try;; | |
18887 | esac | |
d589327a | 18888 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 18889 | (eval "$ac_compile") 2>conftest.er1 |
4d7ec9f1 DE |
18890 | ac_status=$? |
18891 | grep -v '^ *+' conftest.er1 >conftest.err | |
18892 | rm -f conftest.er1 | |
18893 | cat conftest.err >&5 | |
d589327a | 18894 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
18895 | (exit $ac_status); } && { |
18896 | test -z "$ac_c_werror_flag" || | |
18897 | test ! -s conftest.err | |
18898 | } && test -s conftest.$ac_objext; then | |
d589327a VZ |
18899 | { echo "$as_me:$LINENO: result: yes" >&5 |
18900 | echo "${ECHO_T}yes" >&6; } | |
4d7ec9f1 | 18901 | else |
d589327a | 18902 | echo "$as_me: failed program was:" >&5 |
4d7ec9f1 DE |
18903 | sed 's/^/| /' conftest.$ac_ext >&5 |
18904 | ||
d589327a VZ |
18905 | { echo "$as_me:$LINENO: result: no" >&5 |
18906 | echo "${ECHO_T}no" >&6; } | |
18907 | { echo "$as_me:$LINENO: checking if __CF_USE_FRAMEWORK_INCLUDES__ is required" >&5 | |
18908 | echo $ECHO_N "checking if __CF_USE_FRAMEWORK_INCLUDES__ is required... $ECHO_C" >&6; } | |
4d7ec9f1 DE |
18909 | cat >conftest.$ac_ext <<_ACEOF |
18910 | /* confdefs.h. */ | |
18911 | _ACEOF | |
18912 | cat confdefs.h >>conftest.$ac_ext | |
18913 | cat >>conftest.$ac_ext <<_ACEOF | |
18914 | /* end confdefs.h. */ | |
18915 | #define __CF_USE_FRAMEWORK_INCLUDES__ | |
18916 | #include <CoreFoundation/CFBase.h> | |
18917 | ||
18918 | int | |
18919 | main () | |
18920 | { | |
18921 | ||
18922 | ; | |
18923 | return 0; | |
18924 | } | |
18925 | _ACEOF | |
18926 | rm -f conftest.$ac_objext | |
47964710 VS |
18927 | if { (ac_try="$ac_compile" |
18928 | case "(($ac_try" in | |
18929 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
18930 | *) ac_try_echo=$ac_try;; | |
18931 | esac | |
d589327a | 18932 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 18933 | (eval "$ac_compile") 2>conftest.er1 |
4d7ec9f1 DE |
18934 | ac_status=$? |
18935 | grep -v '^ *+' conftest.er1 >conftest.err | |
18936 | rm -f conftest.er1 | |
18937 | cat conftest.err >&5 | |
d589327a | 18938 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
18939 | (exit $ac_status); } && { |
18940 | test -z "$ac_c_werror_flag" || | |
18941 | test ! -s conftest.err | |
18942 | } && test -s conftest.$ac_objext; then | |
d589327a VZ |
18943 | { echo "$as_me:$LINENO: result: yes" >&5 |
18944 | echo "${ECHO_T}yes" >&6; } | |
c92ad099 | 18945 | CPPFLAGS="-D__CF_USE_FRAMEWORK_INCLUDES__ $CPPFLAGS" |
4d7ec9f1 | 18946 | else |
d589327a | 18947 | echo "$as_me: failed program was:" >&5 |
4d7ec9f1 DE |
18948 | sed 's/^/| /' conftest.$ac_ext >&5 |
18949 | ||
d589327a | 18950 | { { echo "$as_me:$LINENO: error: no. CoreFoundation not available. |
4d7ec9f1 | 18951 | See \`config.log' for more details." >&5 |
d589327a | 18952 | echo "$as_me: error: no. CoreFoundation not available. |
4d7ec9f1 | 18953 | See \`config.log' for more details." >&2;} |
d589327a | 18954 | { (exit 1); exit 1; }; } |
4d7ec9f1 DE |
18955 | |
18956 | fi | |
47964710 VS |
18957 | |
18958 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4d7ec9f1 DE |
18959 | |
18960 | ||
18961 | fi | |
47964710 VS |
18962 | |
18963 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4d7ec9f1 DE |
18964 | ;; |
18965 | esac | |
18966 | ||
8bf7f1a9 VZ |
18967 | wants_win32=0 |
18968 | doesnt_want_win32=0 | |
18969 | case "${host}" in | |
18970 | *-*-cygwin*) | |
18971 | if test "$wxUSE_MSW" = 1 ; then | |
18972 | wants_win32=1 | |
18973 | else | |
d589327a VZ |
18974 | { echo "$as_me:$LINENO: checking if -mno-cygwin is in effect" >&5 |
18975 | echo $ECHO_N "checking if -mno-cygwin is in effect... $ECHO_C" >&6; } | |
8bf7f1a9 | 18976 | if test "${wx_cv_nocygwin+set}" = set; then |
d589327a | 18977 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8bf7f1a9 VZ |
18978 | else |
18979 | ||
18980 | cat >conftest.$ac_ext <<_ACEOF | |
18981 | /* confdefs.h. */ | |
18982 | _ACEOF | |
18983 | cat confdefs.h >>conftest.$ac_ext | |
18984 | cat >>conftest.$ac_ext <<_ACEOF | |
18985 | /* end confdefs.h. */ | |
18986 | ||
18987 | int | |
18988 | main () | |
18989 | { | |
18990 | ||
18991 | #ifdef __MINGW32__ | |
18992 | choke me | |
18993 | #endif | |
18994 | ||
18995 | ; | |
18996 | return 0; | |
18997 | } | |
18998 | _ACEOF | |
18999 | rm -f conftest.$ac_objext | |
47964710 VS |
19000 | if { (ac_try="$ac_compile" |
19001 | case "(($ac_try" in | |
19002 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
19003 | *) ac_try_echo=$ac_try;; | |
19004 | esac | |
d589327a | 19005 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 19006 | (eval "$ac_compile") 2>conftest.er1 |
8bf7f1a9 VZ |
19007 | ac_status=$? |
19008 | grep -v '^ *+' conftest.er1 >conftest.err | |
19009 | rm -f conftest.er1 | |
19010 | cat conftest.err >&5 | |
d589327a | 19011 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
19012 | (exit $ac_status); } && { |
19013 | test -z "$ac_c_werror_flag" || | |
19014 | test ! -s conftest.err | |
19015 | } && test -s conftest.$ac_objext; then | |
8bf7f1a9 VZ |
19016 | wx_cv_nocygwin=no |
19017 | else | |
d589327a | 19018 | echo "$as_me: failed program was:" >&5 |
8bf7f1a9 VZ |
19019 | sed 's/^/| /' conftest.$ac_ext >&5 |
19020 | ||
47964710 | 19021 | wx_cv_nocygwin=yes |
8bf7f1a9 VZ |
19022 | |
19023 | fi | |
47964710 VS |
19024 | |
19025 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
8bf7f1a9 VZ |
19026 | |
19027 | ||
19028 | fi | |
d589327a VZ |
19029 | { echo "$as_me:$LINENO: result: $wx_cv_nocygwin" >&5 |
19030 | echo "${ECHO_T}$wx_cv_nocygwin" >&6; } | |
8bf7f1a9 VZ |
19031 | |
19032 | if test "$wx_cv_nocygwin" = "yes"; then | |
19033 | wants_win32=1 | |
19034 | else | |
19035 | doesnt_want_win32=1 | |
19036 | fi | |
19037 | fi | |
19038 | if test "$wants_win32" = 1 ; then | |
19039 | BAKEFILE_FORCE_PLATFORM=win32 | |
19040 | fi | |
19041 | ;; | |
19042 | *-*-mingw*) | |
19043 | wants_win32=1 | |
19044 | ;; | |
19045 | esac | |
19046 | ||
19047 | if test "$wxUSE_WINE" = "yes"; then | |
19048 | wants_win32=1 | |
8bf7f1a9 VZ |
19049 | LDFLAGS_GUI="-mwindows" |
19050 | fi | |
19051 | ||
19052 | if test "$wants_win32" = 1 ; then | |
19053 | USE_UNIX=0 | |
19054 | USE_WIN32=1 | |
19055 | cat >>confdefs.h <<\_ACEOF | |
19056 | #define __WIN32__ 1 | |
19057 | _ACEOF | |
19058 | ||
19059 | cat >>confdefs.h <<\_ACEOF | |
19060 | #define __WIN95__ 1 | |
19061 | _ACEOF | |
19062 | ||
19063 | cat >>confdefs.h <<\_ACEOF | |
19064 | #define __WINDOWS__ 1 | |
19065 | _ACEOF | |
19066 | ||
19067 | cat >>confdefs.h <<\_ACEOF | |
19068 | #define __GNUWIN32__ 1 | |
19069 | _ACEOF | |
19070 | ||
19071 | cat >>confdefs.h <<\_ACEOF | |
19072 | #define STRICT 1 | |
19073 | _ACEOF | |
19074 | ||
19075 | fi | |
19076 | if test "$doesnt_want_win32" = 1 ; then | |
19077 | USE_UNIX=1 | |
19078 | USE_WIN32=0 | |
19079 | fi | |
19080 | ||
19081 | if test "$USE_UNIX" = 1 ; then | |
19082 | wxUSE_UNIX=yes | |
19083 | cat >>confdefs.h <<\_ACEOF | |
19084 | #define __UNIX__ 1 | |
19085 | _ACEOF | |
19086 | ||
19087 | fi | |
19088 | ||
a848cd7e SC |
19089 | case "${host}" in |
19090 | *-pc-os2_emx | *-pc-os2-emx ) | |
fd5199d6 | 19091 | if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then |
d589327a VZ |
19092 | { echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5 |
19093 | echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6; } | |
a848cd7e | 19094 | if test "${ac_cv_lib_cExt_drand48+set}" = set; then |
d589327a | 19095 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a848cd7e SC |
19096 | else |
19097 | ac_check_lib_save_LIBS=$LIBS | |
19098 | LIBS="-lcExt $LIBS" | |
19099 | cat >conftest.$ac_ext <<_ACEOF | |
19100 | /* confdefs.h. */ | |
19101 | _ACEOF | |
19102 | cat confdefs.h >>conftest.$ac_ext | |
19103 | cat >>conftest.$ac_ext <<_ACEOF | |
19104 | /* end confdefs.h. */ | |
19105 | ||
47964710 VS |
19106 | /* Override any GCC internal prototype to avoid an error. |
19107 | Use char because int might match the return type of a GCC | |
19108 | builtin and then its argument prototype would still apply. */ | |
a848cd7e SC |
19109 | #ifdef __cplusplus |
19110 | extern "C" | |
19111 | #endif | |
a848cd7e SC |
19112 | char drand48 (); |
19113 | int | |
19114 | main () | |
19115 | { | |
47964710 | 19116 | return drand48 (); |
a848cd7e SC |
19117 | ; |
19118 | return 0; | |
19119 | } | |
19120 | _ACEOF | |
19121 | rm -f conftest.$ac_objext conftest$ac_exeext | |
47964710 VS |
19122 | if { (ac_try="$ac_link" |
19123 | case "(($ac_try" in | |
19124 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
19125 | *) ac_try_echo=$ac_try;; | |
19126 | esac | |
d589327a | 19127 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 19128 | (eval "$ac_link") 2>conftest.er1 |
a848cd7e | 19129 | ac_status=$? |
ac1cb8d3 VS |
19130 | grep -v '^ *+' conftest.er1 >conftest.err |
19131 | rm -f conftest.er1 | |
19132 | cat conftest.err >&5 | |
d589327a | 19133 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
19134 | (exit $ac_status); } && { |
19135 | test -z "$ac_c_werror_flag" || | |
19136 | test ! -s conftest.err | |
d589327a VZ |
19137 | } && test -s conftest$ac_exeext && |
19138 | $as_test_x conftest$ac_exeext; then | |
a848cd7e SC |
19139 | ac_cv_lib_cExt_drand48=yes |
19140 | else | |
d589327a | 19141 | echo "$as_me: failed program was:" >&5 |
a848cd7e SC |
19142 | sed 's/^/| /' conftest.$ac_ext >&5 |
19143 | ||
47964710 | 19144 | ac_cv_lib_cExt_drand48=no |
a848cd7e | 19145 | fi |
47964710 VS |
19146 | |
19147 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
ac1cb8d3 | 19148 | conftest$ac_exeext conftest.$ac_ext |
a848cd7e SC |
19149 | LIBS=$ac_check_lib_save_LIBS |
19150 | fi | |
d589327a VZ |
19151 | { echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5 |
19152 | echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6; } | |
19153 | if test $ac_cv_lib_cExt_drand48 = yes; then | |
a848cd7e SC |
19154 | LIBS="$LIBS -lcExt" |
19155 | fi | |
19156 | ||
19157 | else | |
19158 | RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res" | |
19159 | fi | |
d589327a VZ |
19160 | { echo "$as_me:$LINENO: checking for gcc/libc version" >&5 |
19161 | echo $ECHO_N "checking for gcc/libc version... $ECHO_C" >&6; } | |
a848cd7e | 19162 | if test "${wx_cv_gccversion+set}" = set; then |
d589327a | 19163 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a848cd7e SC |
19164 | else |
19165 | ||
391a765e VS |
19166 | if test "$cross_compiling" = yes; then |
19167 | wx_cv_gccversion="EMX2" | |
19168 | ||
19169 | else | |
19170 | cat >conftest.$ac_ext <<_ACEOF | |
a848cd7e SC |
19171 | /* confdefs.h. */ |
19172 | _ACEOF | |
19173 | cat confdefs.h >>conftest.$ac_ext | |
19174 | cat >>conftest.$ac_ext <<_ACEOF | |
19175 | /* end confdefs.h. */ | |
19176 | ||
391a765e | 19177 | #include <stdio.h> |
a848cd7e | 19178 | |
391a765e VS |
19179 | int main() |
19180 | { | |
19181 | FILE *f=fopen("conftestval", "w"); | |
19182 | if (!f) exit(1); | |
19183 | fprintf(f, | |
a848cd7e | 19184 | #if (__GNUC__ < 3) |
391a765e VS |
19185 | "EMX2" |
19186 | #elif (__GNUC__==3) && ((__GNUC_MINOR__ < 2) || ((__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__<2))) | |
19187 | "EMX3" | |
19188 | #elif (__GNUC__==3) && (__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__==2) | |
19189 | "Innotek5" | |
19190 | #else | |
19191 | "Innotek6" | |
a848cd7e | 19192 | #endif |
5039a2df | 19193 | ); |
391a765e VS |
19194 | exit(0); |
19195 | } | |
a848cd7e | 19196 | |
a848cd7e | 19197 | _ACEOF |
391a765e | 19198 | rm -f conftest$ac_exeext |
47964710 VS |
19199 | if { (ac_try="$ac_link" |
19200 | case "(($ac_try" in | |
19201 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
19202 | *) ac_try_echo=$ac_try;; | |
19203 | esac | |
d589327a | 19204 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 19205 | (eval "$ac_link") 2>&5 |
ac1cb8d3 | 19206 | ac_status=$? |
d589327a | 19207 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
391a765e | 19208 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
47964710 VS |
19209 | { (case "(($ac_try" in |
19210 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
19211 | *) ac_try_echo=$ac_try;; | |
19212 | esac | |
d589327a | 19213 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 19214 | (eval "$ac_try") 2>&5 |
a848cd7e | 19215 | ac_status=$? |
d589327a | 19216 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
a848cd7e | 19217 | (exit $ac_status); }; }; then |
391a765e | 19218 | wx_cv_gccversion=`cat conftestval` |
a848cd7e | 19219 | else |
d589327a VZ |
19220 | echo "$as_me: program exited with status $ac_status" >&5 |
19221 | echo "$as_me: failed program was:" >&5 | |
a848cd7e SC |
19222 | sed 's/^/| /' conftest.$ac_ext >&5 |
19223 | ||
391a765e VS |
19224 | ( exit $ac_status ) |
19225 | wx_cv_gccversion="EMX2" | |
a848cd7e | 19226 | fi |
47964710 | 19227 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 19228 | fi |
a848cd7e | 19229 | |
47964710 VS |
19230 | |
19231 | ||
a848cd7e | 19232 | fi |
d589327a VZ |
19233 | { echo "$as_me:$LINENO: result: $wx_cv_gccversion" >&5 |
19234 | echo "${ECHO_T}$wx_cv_gccversion" >&6; } | |
391a765e | 19235 | if test "$wx_cv_gccversion" = "EMX2"; then |
a848cd7e SC |
19236 | LIBS="$LIBS -lstdcpp" |
19237 | LDFLAGS="$LDFLAGS -Zsysv-signals" | |
19238 | else | |
391a765e | 19239 | if test "$wx_cv_gccversion" = "EMX3"; then |
ddd14b14 | 19240 | LIBS="$LIBS -lstdcxx -lgcc" |
a848cd7e SC |
19241 | LDFLAGS="$LDFLAGS -Zsysv-signals" |
19242 | else | |
19243 | LIBS="$LIBS -lstdc++" | |
19244 | fi | |
19245 | fi | |
94acd38e | 19246 | if test "$wxUSE_SHARED" = "yes" -a "$wxUSE_OMF" = "no"; then |
d589327a VZ |
19247 | { echo "$as_me:$LINENO: WARNING: Building DLLs requires OMF mode, enabled" >&5 |
19248 | echo "$as_me: WARNING: Building DLLs requires OMF mode, enabled" >&2;} | |
94acd38e | 19249 | wxUSE_OMF=yes |
ec3edcc9 | 19250 | enable_omf=yes |
a848cd7e SC |
19251 | fi |
19252 | ;; | |
19253 | *) | |
19254 | ||
d589327a VZ |
19255 | { echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5 |
19256 | echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6; } | |
a848cd7e | 19257 | if test "${ac_cv_string_strcasecmp+set}" = set; then |
d589327a | 19258 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a848cd7e SC |
19259 | else |
19260 | ||
19261 | cat >conftest.$ac_ext <<_ACEOF | |
19262 | /* confdefs.h. */ | |
19263 | _ACEOF | |
19264 | cat confdefs.h >>conftest.$ac_ext | |
19265 | cat >>conftest.$ac_ext <<_ACEOF | |
19266 | /* end confdefs.h. */ | |
19267 | ||
19268 | #include <string.h> | |
19269 | ||
19270 | int | |
19271 | main () | |
19272 | { | |
19273 | ||
19274 | strcasecmp("foo", "bar"); | |
19275 | ||
19276 | ; | |
19277 | return 0; | |
19278 | } | |
19279 | _ACEOF | |
19280 | rm -f conftest.$ac_objext conftest$ac_exeext | |
47964710 VS |
19281 | if { (ac_try="$ac_link" |
19282 | case "(($ac_try" in | |
19283 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
19284 | *) ac_try_echo=$ac_try;; | |
19285 | esac | |
d589327a | 19286 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 19287 | (eval "$ac_link") 2>conftest.er1 |
a848cd7e | 19288 | ac_status=$? |
ac1cb8d3 VS |
19289 | grep -v '^ *+' conftest.er1 >conftest.err |
19290 | rm -f conftest.er1 | |
19291 | cat conftest.err >&5 | |
d589327a | 19292 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
19293 | (exit $ac_status); } && { |
19294 | test -z "$ac_c_werror_flag" || | |
19295 | test ! -s conftest.err | |
d589327a VZ |
19296 | } && test -s conftest$ac_exeext && |
19297 | $as_test_x conftest$ac_exeext; then | |
a848cd7e SC |
19298 | ac_cv_string_strcasecmp=yes |
19299 | else | |
d589327a | 19300 | echo "$as_me: failed program was:" >&5 |
a848cd7e SC |
19301 | sed 's/^/| /' conftest.$ac_ext >&5 |
19302 | ||
47964710 | 19303 | ac_cv_string_strcasecmp=no |
a848cd7e SC |
19304 | |
19305 | fi | |
47964710 VS |
19306 | |
19307 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
ac1cb8d3 | 19308 | conftest$ac_exeext conftest.$ac_ext |
a848cd7e SC |
19309 | |
19310 | fi | |
d589327a VZ |
19311 | { echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5 |
19312 | echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6; } | |
a848cd7e SC |
19313 | |
19314 | if test x"$ac_cv_string_strcasecmp" = "xyes"; then | |
19315 | cat >>confdefs.h <<\_ACEOF | |
19316 | #define HAVE_STRCASECMP_IN_STRING_H 1 | |
19317 | _ACEOF | |
19318 | ||
19319 | else | |
d589327a VZ |
19320 | { echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5 |
19321 | echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6; } | |
a848cd7e | 19322 | if test "${ac_cv_strings_strcasecmp+set}" = set; then |
d589327a | 19323 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a848cd7e SC |
19324 | else |
19325 | ||
19326 | cat >conftest.$ac_ext <<_ACEOF | |
19327 | /* confdefs.h. */ | |
19328 | _ACEOF | |
19329 | cat confdefs.h >>conftest.$ac_ext | |
19330 | cat >>conftest.$ac_ext <<_ACEOF | |
19331 | /* end confdefs.h. */ | |
19332 | ||
19333 | #include <strings.h> | |
19334 | ||
19335 | int | |
19336 | main () | |
19337 | { | |
19338 | ||
19339 | strcasecmp("foo", "bar"); | |
19340 | ||
19341 | ; | |
19342 | return 0; | |
19343 | } | |
19344 | _ACEOF | |
19345 | rm -f conftest.$ac_objext conftest$ac_exeext | |
47964710 VS |
19346 | if { (ac_try="$ac_link" |
19347 | case "(($ac_try" in | |
19348 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
19349 | *) ac_try_echo=$ac_try;; | |
19350 | esac | |
d589327a | 19351 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 19352 | (eval "$ac_link") 2>conftest.er1 |
a848cd7e | 19353 | ac_status=$? |
ac1cb8d3 VS |
19354 | grep -v '^ *+' conftest.er1 >conftest.err |
19355 | rm -f conftest.er1 | |
19356 | cat conftest.err >&5 | |
d589327a | 19357 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
19358 | (exit $ac_status); } && { |
19359 | test -z "$ac_c_werror_flag" || | |
19360 | test ! -s conftest.err | |
d589327a VZ |
19361 | } && test -s conftest$ac_exeext && |
19362 | $as_test_x conftest$ac_exeext; then | |
a848cd7e SC |
19363 | ac_cv_strings_strcasecmp=yes |
19364 | else | |
d589327a | 19365 | echo "$as_me: failed program was:" >&5 |
a848cd7e SC |
19366 | sed 's/^/| /' conftest.$ac_ext >&5 |
19367 | ||
47964710 | 19368 | ac_cv_strings_strcasecmp=no |
a848cd7e SC |
19369 | |
19370 | fi | |
47964710 VS |
19371 | |
19372 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
ac1cb8d3 | 19373 | conftest$ac_exeext conftest.$ac_ext |
a848cd7e SC |
19374 | |
19375 | fi | |
d589327a VZ |
19376 | { echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5 |
19377 | echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6; } | |
a848cd7e | 19378 | |
0c3c69fc | 19379 | if test x"$ac_cv_strings_strcasecmp" = "xyes"; then |
a848cd7e SC |
19380 | cat >>confdefs.h <<\_ACEOF |
19381 | #define HAVE_STRCASECMP_IN_STRINGS_H 1 | |
19382 | _ACEOF | |
19383 | ||
19384 | else | |
d589327a VZ |
19385 | { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5 |
19386 | echo "$as_me: error: No case-insensitive string comparison function found." >&2;} | |
a848cd7e SC |
19387 | { (exit 1); exit 1; }; } |
19388 | fi | |
19389 | fi | |
19390 | ||
a848cd7e SC |
19391 | ;; |
19392 | esac | |
19393 | ||
19394 | ||
d589327a VZ |
19395 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
19396 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } | |
a848cd7e | 19397 | if test "${ac_cv_header_stdc+set}" = set; then |
d589327a | 19398 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a848cd7e SC |
19399 | else |
19400 | cat >conftest.$ac_ext <<_ACEOF | |
19401 | /* confdefs.h. */ | |
19402 | _ACEOF | |
19403 | cat confdefs.h >>conftest.$ac_ext | |
19404 | cat >>conftest.$ac_ext <<_ACEOF | |
19405 | /* end confdefs.h. */ | |
19406 | #include <stdlib.h> | |
19407 | #include <stdarg.h> | |
19408 | #include <string.h> | |
19409 | #include <float.h> | |
19410 | ||
19411 | int | |
19412 | main () | |
19413 | { | |
19414 | ||
19415 | ; | |
19416 | return 0; | |
19417 | } | |
19418 | _ACEOF | |
19419 | rm -f conftest.$ac_objext | |
47964710 VS |
19420 | if { (ac_try="$ac_compile" |
19421 | case "(($ac_try" in | |
19422 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
19423 | *) ac_try_echo=$ac_try;; | |
19424 | esac | |
d589327a | 19425 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 19426 | (eval "$ac_compile") 2>conftest.er1 |
a848cd7e | 19427 | ac_status=$? |
ac1cb8d3 VS |
19428 | grep -v '^ *+' conftest.er1 >conftest.err |
19429 | rm -f conftest.er1 | |
19430 | cat conftest.err >&5 | |
d589327a | 19431 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
19432 | (exit $ac_status); } && { |
19433 | test -z "$ac_c_werror_flag" || | |
19434 | test ! -s conftest.err | |
19435 | } && test -s conftest.$ac_objext; then | |
a848cd7e SC |
19436 | ac_cv_header_stdc=yes |
19437 | else | |
d589327a | 19438 | echo "$as_me: failed program was:" >&5 |
a848cd7e SC |
19439 | sed 's/^/| /' conftest.$ac_ext >&5 |
19440 | ||
47964710 | 19441 | ac_cv_header_stdc=no |
a848cd7e | 19442 | fi |
47964710 VS |
19443 | |
19444 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
a848cd7e SC |
19445 | |
19446 | if test $ac_cv_header_stdc = yes; then | |
19447 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
19448 | cat >conftest.$ac_ext <<_ACEOF | |
19449 | /* confdefs.h. */ | |
19450 | _ACEOF | |
19451 | cat confdefs.h >>conftest.$ac_ext | |
19452 | cat >>conftest.$ac_ext <<_ACEOF | |
19453 | /* end confdefs.h. */ | |
19454 | #include <string.h> | |
19455 | ||
19456 | _ACEOF | |
19457 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
19458 | $EGREP "memchr" >/dev/null 2>&1; then | |
19459 | : | |
19460 | else | |
19461 | ac_cv_header_stdc=no | |
19462 | fi | |
19463 | rm -f conftest* | |
19464 | ||
19465 | fi | |
19466 | ||
19467 | if test $ac_cv_header_stdc = yes; then | |
19468 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
19469 | cat >conftest.$ac_ext <<_ACEOF | |
19470 | /* confdefs.h. */ | |
19471 | _ACEOF | |
19472 | cat confdefs.h >>conftest.$ac_ext | |
19473 | cat >>conftest.$ac_ext <<_ACEOF | |
19474 | /* end confdefs.h. */ | |
19475 | #include <stdlib.h> | |
19476 | ||
19477 | _ACEOF | |
19478 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
19479 | $EGREP "free" >/dev/null 2>&1; then | |
19480 | : | |
19481 | else | |
19482 | ac_cv_header_stdc=no | |
19483 | fi | |
19484 | rm -f conftest* | |
19485 | ||
19486 | fi | |
19487 | ||
19488 | if test $ac_cv_header_stdc = yes; then | |
19489 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
19490 | if test "$cross_compiling" = yes; then | |
19491 | : | |
19492 | else | |
19493 | cat >conftest.$ac_ext <<_ACEOF | |
19494 | /* confdefs.h. */ | |
19495 | _ACEOF | |
19496 | cat confdefs.h >>conftest.$ac_ext | |
19497 | cat >>conftest.$ac_ext <<_ACEOF | |
19498 | /* end confdefs.h. */ | |
19499 | #include <ctype.h> | |
47964710 | 19500 | #include <stdlib.h> |
a848cd7e SC |
19501 | #if ((' ' & 0x0FF) == 0x020) |
19502 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
19503 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
19504 | #else | |
19505 | # define ISLOWER(c) \ | |
ac1cb8d3 VS |
19506 | (('a' <= (c) && (c) <= 'i') \ |
19507 | || ('j' <= (c) && (c) <= 'r') \ | |
19508 | || ('s' <= (c) && (c) <= 'z')) | |
a848cd7e SC |
19509 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
19510 | #endif | |
19511 | ||
19512 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
19513 | int | |
19514 | main () | |
19515 | { | |
19516 | int i; | |
19517 | for (i = 0; i < 256; i++) | |
19518 | if (XOR (islower (i), ISLOWER (i)) | |
ac1cb8d3 | 19519 | || toupper (i) != TOUPPER (i)) |
47964710 VS |
19520 | return 2; |
19521 | return 0; | |
a848cd7e SC |
19522 | } |
19523 | _ACEOF | |
19524 | rm -f conftest$ac_exeext | |
47964710 VS |
19525 | if { (ac_try="$ac_link" |
19526 | case "(($ac_try" in | |
19527 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
19528 | *) ac_try_echo=$ac_try;; | |
19529 | esac | |
d589327a | 19530 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 19531 | (eval "$ac_link") 2>&5 |
a848cd7e | 19532 | ac_status=$? |
d589327a | 19533 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
a848cd7e | 19534 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
47964710 VS |
19535 | { (case "(($ac_try" in |
19536 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
19537 | *) ac_try_echo=$ac_try;; | |
19538 | esac | |
d589327a | 19539 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 19540 | (eval "$ac_try") 2>&5 |
a848cd7e | 19541 | ac_status=$? |
d589327a | 19542 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
a848cd7e SC |
19543 | (exit $ac_status); }; }; then |
19544 | : | |
19545 | else | |
d589327a VZ |
19546 | echo "$as_me: program exited with status $ac_status" >&5 |
19547 | echo "$as_me: failed program was:" >&5 | |
a848cd7e SC |
19548 | sed 's/^/| /' conftest.$ac_ext >&5 |
19549 | ||
19550 | ( exit $ac_status ) | |
19551 | ac_cv_header_stdc=no | |
19552 | fi | |
47964710 | 19553 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 19554 | fi |
47964710 VS |
19555 | |
19556 | ||
a848cd7e SC |
19557 | fi |
19558 | fi | |
d589327a VZ |
19559 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
19560 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } | |
a848cd7e SC |
19561 | if test $ac_cv_header_stdc = yes; then |
19562 | ||
19563 | cat >>confdefs.h <<\_ACEOF | |
19564 | #define STDC_HEADERS 1 | |
19565 | _ACEOF | |
19566 | ||
19567 | fi | |
19568 | ||
19569 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
19570 | ||
19571 | ||
19572 | ||
19573 | ||
19574 | ||
19575 | ||
19576 | ||
19577 | ||
19578 | ||
19579 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
ac1cb8d3 | 19580 | inttypes.h stdint.h unistd.h |
a848cd7e | 19581 | do |
d589327a VZ |
19582 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
19583 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
19584 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
47964710 | 19585 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
d589327a | 19586 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a848cd7e SC |
19587 | else |
19588 | cat >conftest.$ac_ext <<_ACEOF | |
19589 | /* confdefs.h. */ | |
19590 | _ACEOF | |
19591 | cat confdefs.h >>conftest.$ac_ext | |
19592 | cat >>conftest.$ac_ext <<_ACEOF | |
19593 | /* end confdefs.h. */ | |
19594 | $ac_includes_default | |
19595 | ||
19596 | #include <$ac_header> | |
19597 | _ACEOF | |
19598 | rm -f conftest.$ac_objext | |
47964710 VS |
19599 | if { (ac_try="$ac_compile" |
19600 | case "(($ac_try" in | |
19601 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
19602 | *) ac_try_echo=$ac_try;; | |
19603 | esac | |
d589327a | 19604 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 19605 | (eval "$ac_compile") 2>conftest.er1 |
a848cd7e | 19606 | ac_status=$? |
ac1cb8d3 VS |
19607 | grep -v '^ *+' conftest.er1 >conftest.err |
19608 | rm -f conftest.er1 | |
19609 | cat conftest.err >&5 | |
d589327a | 19610 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
19611 | (exit $ac_status); } && { |
19612 | test -z "$ac_c_werror_flag" || | |
19613 | test ! -s conftest.err | |
19614 | } && test -s conftest.$ac_objext; then | |
a848cd7e SC |
19615 | eval "$as_ac_Header=yes" |
19616 | else | |
d589327a | 19617 | echo "$as_me: failed program was:" >&5 |
a848cd7e SC |
19618 | sed 's/^/| /' conftest.$ac_ext >&5 |
19619 | ||
47964710 | 19620 | eval "$as_ac_Header=no" |
a848cd7e | 19621 | fi |
47964710 VS |
19622 | |
19623 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
a848cd7e | 19624 | fi |
d589327a VZ |
19625 | ac_res=`eval echo '${'$as_ac_Header'}'` |
19626 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
19627 | echo "${ECHO_T}$ac_res" >&6; } | |
19628 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
a848cd7e | 19629 | cat >>confdefs.h <<_ACEOF |
d589327a | 19630 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
a848cd7e SC |
19631 | _ACEOF |
19632 | ||
19633 | fi | |
19634 | ||
19635 | done | |
19636 | ||
19637 | ||
19638 | ||
a848cd7e | 19639 | |
05787cec | 19640 | for ac_header in langinfo.h wchar.h |
a848cd7e | 19641 | do |
d589327a VZ |
19642 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
19643 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
19644 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
47964710 | 19645 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
d589327a | 19646 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a848cd7e | 19647 | else |
6e7b8bcb | 19648 | cat >conftest.$ac_ext <<_ACEOF |
a848cd7e SC |
19649 | /* confdefs.h. */ |
19650 | _ACEOF | |
19651 | cat confdefs.h >>conftest.$ac_ext | |
19652 | cat >>conftest.$ac_ext <<_ACEOF | |
19653 | /* end confdefs.h. */ | |
19654 | $ac_includes_default | |
6e7b8bcb | 19655 | |
a848cd7e SC |
19656 | #include <$ac_header> |
19657 | _ACEOF | |
19658 | rm -f conftest.$ac_objext | |
47964710 VS |
19659 | if { (ac_try="$ac_compile" |
19660 | case "(($ac_try" in | |
19661 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
19662 | *) ac_try_echo=$ac_try;; | |
19663 | esac | |
d589327a | 19664 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 19665 | (eval "$ac_compile") 2>conftest.er1 |
a848cd7e | 19666 | ac_status=$? |
ac1cb8d3 VS |
19667 | grep -v '^ *+' conftest.er1 >conftest.err |
19668 | rm -f conftest.er1 | |
19669 | cat conftest.err >&5 | |
d589327a | 19670 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
19671 | (exit $ac_status); } && { |
19672 | test -z "$ac_c_werror_flag" || | |
19673 | test ! -s conftest.err | |
19674 | } && test -s conftest.$ac_objext; then | |
6e7b8bcb | 19675 | eval "$as_ac_Header=yes" |
a848cd7e | 19676 | else |
d589327a | 19677 | echo "$as_me: failed program was:" >&5 |
a848cd7e SC |
19678 | sed 's/^/| /' conftest.$ac_ext >&5 |
19679 | ||
47964710 | 19680 | eval "$as_ac_Header=no" |
a848cd7e | 19681 | fi |
47964710 VS |
19682 | |
19683 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
a848cd7e | 19684 | fi |
d589327a VZ |
19685 | ac_res=`eval echo '${'$as_ac_Header'}'` |
19686 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
19687 | echo "${ECHO_T}$ac_res" >&6; } | |
19688 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
a848cd7e | 19689 | cat >>confdefs.h <<_ACEOF |
d589327a | 19690 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
a848cd7e SC |
19691 | _ACEOF |
19692 | ||
19693 | fi | |
19694 | ||
19695 | done | |
19696 | ||
a848cd7e | 19697 | |
55e34571 | 19698 | if test "$ac_cv_header_wchar_h" != "yes"; then |
1f7e12cc DE |
19699 | |
19700 | for ac_header in wcstr.h | |
19701 | do | |
d589327a VZ |
19702 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
19703 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
19704 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
47964710 | 19705 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
d589327a | 19706 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a848cd7e | 19707 | else |
6e7b8bcb | 19708 | cat >conftest.$ac_ext <<_ACEOF |
a848cd7e SC |
19709 | /* confdefs.h. */ |
19710 | _ACEOF | |
19711 | cat confdefs.h >>conftest.$ac_ext | |
19712 | cat >>conftest.$ac_ext <<_ACEOF | |
19713 | /* end confdefs.h. */ | |
19714 | $ac_includes_default | |
6e7b8bcb | 19715 | |
1f7e12cc | 19716 | #include <$ac_header> |
a848cd7e SC |
19717 | _ACEOF |
19718 | rm -f conftest.$ac_objext | |
47964710 VS |
19719 | if { (ac_try="$ac_compile" |
19720 | case "(($ac_try" in | |
19721 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
19722 | *) ac_try_echo=$ac_try;; | |
19723 | esac | |
d589327a | 19724 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 19725 | (eval "$ac_compile") 2>conftest.er1 |
a848cd7e | 19726 | ac_status=$? |
ac1cb8d3 VS |
19727 | grep -v '^ *+' conftest.er1 >conftest.err |
19728 | rm -f conftest.er1 | |
19729 | cat conftest.err >&5 | |
d589327a | 19730 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
19731 | (exit $ac_status); } && { |
19732 | test -z "$ac_c_werror_flag" || | |
19733 | test ! -s conftest.err | |
19734 | } && test -s conftest.$ac_objext; then | |
1f7e12cc | 19735 | eval "$as_ac_Header=yes" |
a848cd7e | 19736 | else |
d589327a | 19737 | echo "$as_me: failed program was:" >&5 |
a848cd7e SC |
19738 | sed 's/^/| /' conftest.$ac_ext >&5 |
19739 | ||
47964710 | 19740 | eval "$as_ac_Header=no" |
a848cd7e | 19741 | fi |
47964710 VS |
19742 | |
19743 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
a848cd7e | 19744 | fi |
d589327a VZ |
19745 | ac_res=`eval echo '${'$as_ac_Header'}'` |
19746 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
19747 | echo "${ECHO_T}$ac_res" >&6; } | |
19748 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
1f7e12cc | 19749 | cat >>confdefs.h <<_ACEOF |
d589327a | 19750 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
1f7e12cc DE |
19751 | _ACEOF |
19752 | ||
19753 | fi | |
a848cd7e | 19754 | |
1f7e12cc | 19755 | done |
a848cd7e | 19756 | |
a848cd7e SC |
19757 | fi |
19758 | ||
a848cd7e SC |
19759 | case "${host}" in |
19760 | *-pc-os2_emx | *-pc-os2-emx ) | |
391a765e VS |
19761 | if test $ac_cv_header_langinfo_h = "yes" \ |
19762 | -a \( "$wx_cv_gccversion" = "EMX2" \ | |
19763 | -o "$wx_cv_gccversion" = "EMX3" \ | |
19764 | -o "$wx_cv_gccversion" = "Innotek5" \); then | |
a848cd7e SC |
19765 | LIBS="$LIBS -lintl" |
19766 | fi | |
19767 | ;; | |
19768 | esac | |
19769 | ||
bc023abb | 19770 | if test "$USE_UNIX" = 1 ; then |
1f7e12cc DE |
19771 | |
19772 | for ac_header in sys/select.h | |
19773 | do | |
d589327a VZ |
19774 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
19775 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
19776 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
47964710 | 19777 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
d589327a | 19778 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
bc023abb | 19779 | else |
6e7b8bcb | 19780 | cat >conftest.$ac_ext <<_ACEOF |
bc023abb MW |
19781 | /* confdefs.h. */ |
19782 | _ACEOF | |
19783 | cat confdefs.h >>conftest.$ac_ext | |
19784 | cat >>conftest.$ac_ext <<_ACEOF | |
19785 | /* end confdefs.h. */ | |
19786 | $ac_includes_default | |
6e7b8bcb | 19787 | |
1f7e12cc | 19788 | #include <$ac_header> |
bc023abb MW |
19789 | _ACEOF |
19790 | rm -f conftest.$ac_objext | |
47964710 VS |
19791 | if { (ac_try="$ac_compile" |
19792 | case "(($ac_try" in | |
19793 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
19794 | *) ac_try_echo=$ac_try;; | |
19795 | esac | |
d589327a | 19796 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 19797 | (eval "$ac_compile") 2>conftest.er1 |
bc023abb MW |
19798 | ac_status=$? |
19799 | grep -v '^ *+' conftest.er1 >conftest.err | |
19800 | rm -f conftest.er1 | |
19801 | cat conftest.err >&5 | |
d589327a | 19802 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
19803 | (exit $ac_status); } && { |
19804 | test -z "$ac_c_werror_flag" || | |
19805 | test ! -s conftest.err | |
19806 | } && test -s conftest.$ac_objext; then | |
1f7e12cc | 19807 | eval "$as_ac_Header=yes" |
bc023abb | 19808 | else |
d589327a | 19809 | echo "$as_me: failed program was:" >&5 |
bc023abb MW |
19810 | sed 's/^/| /' conftest.$ac_ext >&5 |
19811 | ||
47964710 | 19812 | eval "$as_ac_Header=no" |
bc023abb | 19813 | fi |
47964710 VS |
19814 | |
19815 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
bc023abb | 19816 | fi |
d589327a VZ |
19817 | ac_res=`eval echo '${'$as_ac_Header'}'` |
19818 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
19819 | echo "${ECHO_T}$ac_res" >&6; } | |
19820 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
1f7e12cc | 19821 | cat >>confdefs.h <<_ACEOF |
d589327a | 19822 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
1f7e12cc DE |
19823 | _ACEOF |
19824 | ||
19825 | fi | |
7fd3acaf | 19826 | |
1f7e12cc | 19827 | done |
bc023abb MW |
19828 | |
19829 | fi | |
19830 | ||
a848cd7e | 19831 | |
d589327a VZ |
19832 | { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
19833 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; } | |
a848cd7e | 19834 | if test "${ac_cv_c_const+set}" = set; then |
d589327a | 19835 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a848cd7e SC |
19836 | else |
19837 | cat >conftest.$ac_ext <<_ACEOF | |
19838 | /* confdefs.h. */ | |
19839 | _ACEOF | |
19840 | cat confdefs.h >>conftest.$ac_ext | |
19841 | cat >>conftest.$ac_ext <<_ACEOF | |
19842 | /* end confdefs.h. */ | |
19843 | ||
19844 | int | |
19845 | main () | |
19846 | { | |
19847 | /* FIXME: Include the comments suggested by Paul. */ | |
19848 | #ifndef __cplusplus | |
19849 | /* Ultrix mips cc rejects this. */ | |
19850 | typedef int charset[2]; | |
47964710 | 19851 | const charset cs; |
a848cd7e | 19852 | /* SunOS 4.1.1 cc rejects this. */ |
47964710 VS |
19853 | char const *const *pcpcc; |
19854 | char **ppc; | |
a848cd7e SC |
19855 | /* NEC SVR4.0.2 mips cc rejects this. */ |
19856 | struct point {int x, y;}; | |
19857 | static struct point const zero = {0,0}; | |
19858 | /* AIX XL C 1.02.0.0 rejects this. | |
19859 | It does not let you subtract one const X* pointer from another in | |
19860 | an arm of an if-expression whose if-part is not a constant | |
19861 | expression */ | |
19862 | const char *g = "string"; | |
47964710 | 19863 | pcpcc = &g + (g ? g-g : 0); |
a848cd7e | 19864 | /* HPUX 7.0 cc rejects these. */ |
47964710 VS |
19865 | ++pcpcc; |
19866 | ppc = (char**) pcpcc; | |
19867 | pcpcc = (char const *const *) ppc; | |
a848cd7e SC |
19868 | { /* SCO 3.2v4 cc rejects this. */ |
19869 | char *t; | |
19870 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
19871 | ||
19872 | *t++ = 0; | |
47964710 | 19873 | if (s) return 0; |
a848cd7e SC |
19874 | } |
19875 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
19876 | int x[] = {25, 17}; | |
19877 | const int *foo = &x[0]; | |
19878 | ++foo; | |
19879 | } | |
19880 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
19881 | typedef const int *iptr; | |
19882 | iptr p = 0; | |
19883 | ++p; | |
19884 | } | |
19885 | { /* AIX XL C 1.02.0.0 rejects this saying | |
19886 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
19887 | struct s { int j; const int *ap[3]; }; | |
19888 | struct s *b; b->j = 5; | |
19889 | } | |
19890 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
19891 | const int foo = 10; | |
47964710 | 19892 | if (!foo) return 0; |
a848cd7e | 19893 | } |
47964710 | 19894 | return !cs[0] && !zero.x; |
a848cd7e SC |
19895 | #endif |
19896 | ||
19897 | ; | |
19898 | return 0; | |
19899 | } | |
19900 | _ACEOF | |
19901 | rm -f conftest.$ac_objext | |
47964710 VS |
19902 | if { (ac_try="$ac_compile" |
19903 | case "(($ac_try" in | |
19904 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
19905 | *) ac_try_echo=$ac_try;; | |
19906 | esac | |
d589327a | 19907 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 19908 | (eval "$ac_compile") 2>conftest.er1 |
a848cd7e | 19909 | ac_status=$? |
ac1cb8d3 VS |
19910 | grep -v '^ *+' conftest.er1 >conftest.err |
19911 | rm -f conftest.er1 | |
19912 | cat conftest.err >&5 | |
d589327a | 19913 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
19914 | (exit $ac_status); } && { |
19915 | test -z "$ac_c_werror_flag" || | |
19916 | test ! -s conftest.err | |
19917 | } && test -s conftest.$ac_objext; then | |
a848cd7e SC |
19918 | ac_cv_c_const=yes |
19919 | else | |
d589327a | 19920 | echo "$as_me: failed program was:" >&5 |
a848cd7e SC |
19921 | sed 's/^/| /' conftest.$ac_ext >&5 |
19922 | ||
47964710 | 19923 | ac_cv_c_const=no |
a848cd7e | 19924 | fi |
47964710 VS |
19925 | |
19926 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
a848cd7e | 19927 | fi |
d589327a VZ |
19928 | { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
19929 | echo "${ECHO_T}$ac_cv_c_const" >&6; } | |
a848cd7e SC |
19930 | if test $ac_cv_c_const = no; then |
19931 | ||
19932 | cat >>confdefs.h <<\_ACEOF | |
d589327a | 19933 | #define const |
a848cd7e SC |
19934 | _ACEOF |
19935 | ||
19936 | fi | |
19937 | ||
d589327a VZ |
19938 | { echo "$as_me:$LINENO: checking for inline" >&5 |
19939 | echo $ECHO_N "checking for inline... $ECHO_C" >&6; } | |
a848cd7e | 19940 | if test "${ac_cv_c_inline+set}" = set; then |
d589327a | 19941 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a848cd7e SC |
19942 | else |
19943 | ac_cv_c_inline=no | |
19944 | for ac_kw in inline __inline__ __inline; do | |
19945 | cat >conftest.$ac_ext <<_ACEOF | |
19946 | /* confdefs.h. */ | |
19947 | _ACEOF | |
19948 | cat confdefs.h >>conftest.$ac_ext | |
19949 | cat >>conftest.$ac_ext <<_ACEOF | |
19950 | /* end confdefs.h. */ | |
19951 | #ifndef __cplusplus | |
19952 | typedef int foo_t; | |
19953 | static $ac_kw foo_t static_foo () {return 0; } | |
19954 | $ac_kw foo_t foo () {return 0; } | |
19955 | #endif | |
19956 | ||
19957 | _ACEOF | |
19958 | rm -f conftest.$ac_objext | |
47964710 VS |
19959 | if { (ac_try="$ac_compile" |
19960 | case "(($ac_try" in | |
19961 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
19962 | *) ac_try_echo=$ac_try;; | |
19963 | esac | |
d589327a | 19964 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 19965 | (eval "$ac_compile") 2>conftest.er1 |
a848cd7e | 19966 | ac_status=$? |
ac1cb8d3 VS |
19967 | grep -v '^ *+' conftest.er1 >conftest.err |
19968 | rm -f conftest.er1 | |
19969 | cat conftest.err >&5 | |
d589327a | 19970 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
19971 | (exit $ac_status); } && { |
19972 | test -z "$ac_c_werror_flag" || | |
19973 | test ! -s conftest.err | |
19974 | } && test -s conftest.$ac_objext; then | |
19975 | ac_cv_c_inline=$ac_kw | |
a848cd7e | 19976 | else |
d589327a | 19977 | echo "$as_me: failed program was:" >&5 |
a848cd7e SC |
19978 | sed 's/^/| /' conftest.$ac_ext >&5 |
19979 | ||
47964710 | 19980 | |
a848cd7e | 19981 | fi |
47964710 VS |
19982 | |
19983 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
19984 | test "$ac_cv_c_inline" != no && break | |
a848cd7e SC |
19985 | done |
19986 | ||
19987 | fi | |
d589327a VZ |
19988 | { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 |
19989 | echo "${ECHO_T}$ac_cv_c_inline" >&6; } | |
ac1cb8d3 VS |
19990 | |
19991 | ||
a848cd7e SC |
19992 | case $ac_cv_c_inline in |
19993 | inline | yes) ;; | |
ac1cb8d3 VS |
19994 | *) |
19995 | case $ac_cv_c_inline in | |
19996 | no) ac_val=;; | |
19997 | *) ac_val=$ac_cv_c_inline;; | |
19998 | esac | |
19999 | cat >>confdefs.h <<_ACEOF | |
20000 | #ifndef __cplusplus | |
20001 | #define inline $ac_val | |
20002 | #endif | |
de59c161 | 20003 | _ACEOF |
ac1cb8d3 | 20004 | ;; |
a848cd7e SC |
20005 | esac |
20006 | ||
20007 | ||
d589327a VZ |
20008 | { echo "$as_me:$LINENO: checking for short" >&5 |
20009 | echo $ECHO_N "checking for short... $ECHO_C" >&6; } | |
20010 | if test "${ac_cv_type_short+set}" = set; then | |
20011 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20012 | else | |
20013 | cat >conftest.$ac_ext <<_ACEOF | |
20014 | /* confdefs.h. */ | |
20015 | _ACEOF | |
20016 | cat confdefs.h >>conftest.$ac_ext | |
20017 | cat >>conftest.$ac_ext <<_ACEOF | |
20018 | /* end confdefs.h. */ | |
20019 | $ac_includes_default | |
20020 | typedef short ac__type_new_; | |
20021 | int | |
20022 | main () | |
20023 | { | |
20024 | if ((ac__type_new_ *) 0) | |
20025 | return 0; | |
20026 | if (sizeof (ac__type_new_)) | |
20027 | return 0; | |
20028 | ; | |
20029 | return 0; | |
20030 | } | |
20031 | _ACEOF | |
20032 | rm -f conftest.$ac_objext | |
20033 | if { (ac_try="$ac_compile" | |
20034 | case "(($ac_try" in | |
20035 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20036 | *) ac_try_echo=$ac_try;; | |
20037 | esac | |
20038 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
20039 | (eval "$ac_compile") 2>conftest.er1 | |
20040 | ac_status=$? | |
20041 | grep -v '^ *+' conftest.er1 >conftest.err | |
20042 | rm -f conftest.er1 | |
20043 | cat conftest.err >&5 | |
20044 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20045 | (exit $ac_status); } && { | |
20046 | test -z "$ac_c_werror_flag" || | |
20047 | test ! -s conftest.err | |
20048 | } && test -s conftest.$ac_objext; then | |
20049 | ac_cv_type_short=yes | |
20050 | else | |
20051 | echo "$as_me: failed program was:" >&5 | |
20052 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20053 | ||
20054 | ac_cv_type_short=no | |
20055 | fi | |
20056 | ||
20057 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
20058 | fi | |
20059 | { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 | |
20060 | echo "${ECHO_T}$ac_cv_type_short" >&6; } | |
20061 | ||
47964710 VS |
20062 | # The cast to long int works around a bug in the HP C Compiler |
20063 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
20064 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
20065 | # This bug is HP SR number 8606223364. | |
d589327a VZ |
20066 | { echo "$as_me:$LINENO: checking size of short" >&5 |
20067 | echo $ECHO_N "checking size of short... $ECHO_C" >&6; } | |
a848cd7e | 20068 | if test "${ac_cv_sizeof_short+set}" = set; then |
d589327a | 20069 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a848cd7e | 20070 | else |
a848cd7e SC |
20071 | if test "$cross_compiling" = yes; then |
20072 | # Depending upon the size, compute the lo and hi bounds. | |
20073 | cat >conftest.$ac_ext <<_ACEOF | |
20074 | /* confdefs.h. */ | |
20075 | _ACEOF | |
20076 | cat confdefs.h >>conftest.$ac_ext | |
20077 | cat >>conftest.$ac_ext <<_ACEOF | |
20078 | /* end confdefs.h. */ | |
20079 | $ac_includes_default | |
d589327a | 20080 | typedef short ac__type_sizeof_; |
a848cd7e SC |
20081 | int |
20082 | main () | |
20083 | { | |
d589327a | 20084 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; |
a848cd7e SC |
20085 | test_array [0] = 0 |
20086 | ||
20087 | ; | |
20088 | return 0; | |
20089 | } | |
20090 | _ACEOF | |
20091 | rm -f conftest.$ac_objext | |
47964710 VS |
20092 | if { (ac_try="$ac_compile" |
20093 | case "(($ac_try" in | |
20094 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20095 | *) ac_try_echo=$ac_try;; | |
20096 | esac | |
d589327a | 20097 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 20098 | (eval "$ac_compile") 2>conftest.er1 |
a848cd7e | 20099 | ac_status=$? |
ac1cb8d3 VS |
20100 | grep -v '^ *+' conftest.er1 >conftest.err |
20101 | rm -f conftest.er1 | |
20102 | cat conftest.err >&5 | |
d589327a | 20103 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
20104 | (exit $ac_status); } && { |
20105 | test -z "$ac_c_werror_flag" || | |
20106 | test ! -s conftest.err | |
20107 | } && test -s conftest.$ac_objext; then | |
a848cd7e SC |
20108 | ac_lo=0 ac_mid=0 |
20109 | while :; do | |
20110 | cat >conftest.$ac_ext <<_ACEOF | |
20111 | /* confdefs.h. */ | |
20112 | _ACEOF | |
20113 | cat confdefs.h >>conftest.$ac_ext | |
20114 | cat >>conftest.$ac_ext <<_ACEOF | |
20115 | /* end confdefs.h. */ | |
20116 | $ac_includes_default | |
d589327a | 20117 | typedef short ac__type_sizeof_; |
a848cd7e SC |
20118 | int |
20119 | main () | |
20120 | { | |
d589327a | 20121 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
a848cd7e SC |
20122 | test_array [0] = 0 |
20123 | ||
20124 | ; | |
20125 | return 0; | |
20126 | } | |
20127 | _ACEOF | |
20128 | rm -f conftest.$ac_objext | |
47964710 VS |
20129 | if { (ac_try="$ac_compile" |
20130 | case "(($ac_try" in | |
20131 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20132 | *) ac_try_echo=$ac_try;; | |
20133 | esac | |
d589327a | 20134 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 20135 | (eval "$ac_compile") 2>conftest.er1 |
a848cd7e | 20136 | ac_status=$? |
ac1cb8d3 VS |
20137 | grep -v '^ *+' conftest.er1 >conftest.err |
20138 | rm -f conftest.er1 | |
20139 | cat conftest.err >&5 | |
d589327a | 20140 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
20141 | (exit $ac_status); } && { |
20142 | test -z "$ac_c_werror_flag" || | |
20143 | test ! -s conftest.err | |
20144 | } && test -s conftest.$ac_objext; then | |
a848cd7e SC |
20145 | ac_hi=$ac_mid; break |
20146 | else | |
d589327a | 20147 | echo "$as_me: failed program was:" >&5 |
a848cd7e SC |
20148 | sed 's/^/| /' conftest.$ac_ext >&5 |
20149 | ||
47964710 VS |
20150 | ac_lo=`expr $ac_mid + 1` |
20151 | if test $ac_lo -le $ac_mid; then | |
20152 | ac_lo= ac_hi= | |
20153 | break | |
20154 | fi | |
20155 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 20156 | fi |
47964710 VS |
20157 | |
20158 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
a848cd7e SC |
20159 | done |
20160 | else | |
d589327a | 20161 | echo "$as_me: failed program was:" >&5 |
a848cd7e SC |
20162 | sed 's/^/| /' conftest.$ac_ext >&5 |
20163 | ||
47964710 | 20164 | cat >conftest.$ac_ext <<_ACEOF |
a848cd7e SC |
20165 | /* confdefs.h. */ |
20166 | _ACEOF | |
20167 | cat confdefs.h >>conftest.$ac_ext | |
20168 | cat >>conftest.$ac_ext <<_ACEOF | |
20169 | /* end confdefs.h. */ | |
20170 | $ac_includes_default | |
d589327a | 20171 | typedef short ac__type_sizeof_; |
a848cd7e SC |
20172 | int |
20173 | main () | |
20174 | { | |
d589327a | 20175 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; |
a848cd7e SC |
20176 | test_array [0] = 0 |
20177 | ||
20178 | ; | |
20179 | return 0; | |
20180 | } | |
20181 | _ACEOF | |
20182 | rm -f conftest.$ac_objext | |
47964710 VS |
20183 | if { (ac_try="$ac_compile" |
20184 | case "(($ac_try" in | |
20185 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20186 | *) ac_try_echo=$ac_try;; | |
20187 | esac | |
d589327a | 20188 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 20189 | (eval "$ac_compile") 2>conftest.er1 |
a848cd7e | 20190 | ac_status=$? |
ac1cb8d3 VS |
20191 | grep -v '^ *+' conftest.er1 >conftest.err |
20192 | rm -f conftest.er1 | |
20193 | cat conftest.err >&5 | |
d589327a | 20194 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
20195 | (exit $ac_status); } && { |
20196 | test -z "$ac_c_werror_flag" || | |
20197 | test ! -s conftest.err | |
20198 | } && test -s conftest.$ac_objext; then | |
a848cd7e SC |
20199 | ac_hi=-1 ac_mid=-1 |
20200 | while :; do | |
20201 | cat >conftest.$ac_ext <<_ACEOF | |
20202 | /* confdefs.h. */ | |
20203 | _ACEOF | |
20204 | cat confdefs.h >>conftest.$ac_ext | |
20205 | cat >>conftest.$ac_ext <<_ACEOF | |
20206 | /* end confdefs.h. */ | |
20207 | $ac_includes_default | |
d589327a | 20208 | typedef short ac__type_sizeof_; |
a848cd7e SC |
20209 | int |
20210 | main () | |
20211 | { | |
d589327a | 20212 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; |
a848cd7e SC |
20213 | test_array [0] = 0 |
20214 | ||
20215 | ; | |
20216 | return 0; | |
20217 | } | |
20218 | _ACEOF | |
20219 | rm -f conftest.$ac_objext | |
47964710 VS |
20220 | if { (ac_try="$ac_compile" |
20221 | case "(($ac_try" in | |
20222 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20223 | *) ac_try_echo=$ac_try;; | |
20224 | esac | |
d589327a | 20225 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 20226 | (eval "$ac_compile") 2>conftest.er1 |
a848cd7e | 20227 | ac_status=$? |
ac1cb8d3 VS |
20228 | grep -v '^ *+' conftest.er1 >conftest.err |
20229 | rm -f conftest.er1 | |
20230 | cat conftest.err >&5 | |
d589327a | 20231 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
20232 | (exit $ac_status); } && { |
20233 | test -z "$ac_c_werror_flag" || | |
20234 | test ! -s conftest.err | |
20235 | } && test -s conftest.$ac_objext; then | |
a848cd7e SC |
20236 | ac_lo=$ac_mid; break |
20237 | else | |
d589327a | 20238 | echo "$as_me: failed program was:" >&5 |
a848cd7e SC |
20239 | sed 's/^/| /' conftest.$ac_ext >&5 |
20240 | ||
47964710 VS |
20241 | ac_hi=`expr '(' $ac_mid ')' - 1` |
20242 | if test $ac_mid -le $ac_hi; then | |
20243 | ac_lo= ac_hi= | |
20244 | break | |
20245 | fi | |
20246 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 20247 | fi |
47964710 VS |
20248 | |
20249 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
a848cd7e SC |
20250 | done |
20251 | else | |
d589327a | 20252 | echo "$as_me: failed program was:" >&5 |
a848cd7e SC |
20253 | sed 's/^/| /' conftest.$ac_ext >&5 |
20254 | ||
47964710 | 20255 | ac_lo= ac_hi= |
a848cd7e | 20256 | fi |
47964710 VS |
20257 | |
20258 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
a848cd7e | 20259 | fi |
47964710 VS |
20260 | |
20261 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
a848cd7e SC |
20262 | # Binary search between lo and hi bounds. |
20263 | while test "x$ac_lo" != "x$ac_hi"; do | |
20264 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
20265 | cat >conftest.$ac_ext <<_ACEOF | |
20266 | /* confdefs.h. */ | |
20267 | _ACEOF | |
20268 | cat confdefs.h >>conftest.$ac_ext | |
20269 | cat >>conftest.$ac_ext <<_ACEOF | |
20270 | /* end confdefs.h. */ | |
20271 | $ac_includes_default | |
d589327a | 20272 | typedef short ac__type_sizeof_; |
a848cd7e SC |
20273 | int |
20274 | main () | |
20275 | { | |
d589327a | 20276 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
a848cd7e SC |
20277 | test_array [0] = 0 |
20278 | ||
20279 | ; | |
20280 | return 0; | |
20281 | } | |
20282 | _ACEOF | |
20283 | rm -f conftest.$ac_objext | |
47964710 VS |
20284 | if { (ac_try="$ac_compile" |
20285 | case "(($ac_try" in | |
20286 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20287 | *) ac_try_echo=$ac_try;; | |
20288 | esac | |
d589327a | 20289 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 20290 | (eval "$ac_compile") 2>conftest.er1 |
a848cd7e | 20291 | ac_status=$? |
ac1cb8d3 VS |
20292 | grep -v '^ *+' conftest.er1 >conftest.err |
20293 | rm -f conftest.er1 | |
20294 | cat conftest.err >&5 | |
d589327a | 20295 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
20296 | (exit $ac_status); } && { |
20297 | test -z "$ac_c_werror_flag" || | |
20298 | test ! -s conftest.err | |
20299 | } && test -s conftest.$ac_objext; then | |
a848cd7e SC |
20300 | ac_hi=$ac_mid |
20301 | else | |
d589327a | 20302 | echo "$as_me: failed program was:" >&5 |
a848cd7e SC |
20303 | sed 's/^/| /' conftest.$ac_ext >&5 |
20304 | ||
47964710 | 20305 | ac_lo=`expr '(' $ac_mid ')' + 1` |
a848cd7e | 20306 | fi |
47964710 VS |
20307 | |
20308 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
a848cd7e SC |
20309 | done |
20310 | case $ac_lo in | |
20311 | ?*) ac_cv_sizeof_short=$ac_lo;; | |
47964710 | 20312 | '') if test "$ac_cv_type_short" = yes; then |
d589327a | 20313 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short) |
a848cd7e | 20314 | See \`config.log' for more details." >&5 |
d589327a | 20315 | echo "$as_me: error: cannot compute sizeof (short) |
a848cd7e | 20316 | See \`config.log' for more details." >&2;} |
d589327a | 20317 | { (exit 77); exit 77; }; } |
47964710 VS |
20318 | else |
20319 | ac_cv_sizeof_short=0 | |
20320 | fi ;; | |
a848cd7e | 20321 | esac |
a848cd7e SC |
20322 | else |
20323 | cat >conftest.$ac_ext <<_ACEOF | |
20324 | /* confdefs.h. */ | |
20325 | _ACEOF | |
20326 | cat confdefs.h >>conftest.$ac_ext | |
20327 | cat >>conftest.$ac_ext <<_ACEOF | |
20328 | /* end confdefs.h. */ | |
20329 | $ac_includes_default | |
d589327a VZ |
20330 | typedef short ac__type_sizeof_; |
20331 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } | |
20332 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } | |
a848cd7e SC |
20333 | #include <stdio.h> |
20334 | #include <stdlib.h> | |
20335 | int | |
20336 | main () | |
20337 | { | |
20338 | ||
20339 | FILE *f = fopen ("conftest.val", "w"); | |
20340 | if (! f) | |
47964710 | 20341 | return 1; |
d589327a | 20342 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
a848cd7e | 20343 | { |
47964710 | 20344 | long int i = longval (); |
d589327a | 20345 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
47964710 | 20346 | return 1; |
d589327a | 20347 | fprintf (f, "%ld\n", i); |
a848cd7e SC |
20348 | } |
20349 | else | |
20350 | { | |
47964710 | 20351 | unsigned long int i = ulongval (); |
d589327a | 20352 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
47964710 | 20353 | return 1; |
d589327a | 20354 | fprintf (f, "%lu\n", i); |
a848cd7e | 20355 | } |
47964710 | 20356 | return ferror (f) || fclose (f) != 0; |
a848cd7e SC |
20357 | |
20358 | ; | |
20359 | return 0; | |
20360 | } | |
20361 | _ACEOF | |
20362 | rm -f conftest$ac_exeext | |
47964710 VS |
20363 | if { (ac_try="$ac_link" |
20364 | case "(($ac_try" in | |
20365 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20366 | *) ac_try_echo=$ac_try;; | |
20367 | esac | |
d589327a | 20368 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 20369 | (eval "$ac_link") 2>&5 |
a848cd7e | 20370 | ac_status=$? |
d589327a | 20371 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
a848cd7e | 20372 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
47964710 VS |
20373 | { (case "(($ac_try" in |
20374 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20375 | *) ac_try_echo=$ac_try;; | |
20376 | esac | |
d589327a | 20377 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 20378 | (eval "$ac_try") 2>&5 |
a848cd7e | 20379 | ac_status=$? |
d589327a | 20380 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
a848cd7e SC |
20381 | (exit $ac_status); }; }; then |
20382 | ac_cv_sizeof_short=`cat conftest.val` | |
20383 | else | |
d589327a VZ |
20384 | echo "$as_me: program exited with status $ac_status" >&5 |
20385 | echo "$as_me: failed program was:" >&5 | |
a848cd7e SC |
20386 | sed 's/^/| /' conftest.$ac_ext >&5 |
20387 | ||
20388 | ( exit $ac_status ) | |
47964710 | 20389 | if test "$ac_cv_type_short" = yes; then |
d589327a | 20390 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short) |
a848cd7e | 20391 | See \`config.log' for more details." >&5 |
d589327a | 20392 | echo "$as_me: error: cannot compute sizeof (short) |
a848cd7e | 20393 | See \`config.log' for more details." >&2;} |
d589327a | 20394 | { (exit 77); exit 77; }; } |
47964710 VS |
20395 | else |
20396 | ac_cv_sizeof_short=0 | |
20397 | fi | |
a848cd7e | 20398 | fi |
47964710 | 20399 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20400 | fi |
20401 | rm -f conftest.val | |
bd8a7646 | 20402 | fi |
d589327a VZ |
20403 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 |
20404 | echo "${ECHO_T}$ac_cv_sizeof_short" >&6; } | |
47964710 VS |
20405 | |
20406 | ||
20407 | ||
a848cd7e SC |
20408 | cat >>confdefs.h <<_ACEOF |
20409 | #define SIZEOF_SHORT $ac_cv_sizeof_short | |
20410 | _ACEOF | |
20411 | ||
20412 | ||
d589327a VZ |
20413 | { echo "$as_me:$LINENO: checking for void *" >&5 |
20414 | echo $ECHO_N "checking for void *... $ECHO_C" >&6; } | |
20415 | if test "${ac_cv_type_void_p+set}" = set; then | |
20416 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20417 | else | |
20418 | cat >conftest.$ac_ext <<_ACEOF | |
20419 | /* confdefs.h. */ | |
20420 | _ACEOF | |
20421 | cat confdefs.h >>conftest.$ac_ext | |
20422 | cat >>conftest.$ac_ext <<_ACEOF | |
20423 | /* end confdefs.h. */ | |
20424 | $ac_includes_default | |
20425 | typedef void * ac__type_new_; | |
20426 | int | |
20427 | main () | |
20428 | { | |
20429 | if ((ac__type_new_ *) 0) | |
20430 | return 0; | |
20431 | if (sizeof (ac__type_new_)) | |
20432 | return 0; | |
20433 | ; | |
20434 | return 0; | |
20435 | } | |
20436 | _ACEOF | |
20437 | rm -f conftest.$ac_objext | |
20438 | if { (ac_try="$ac_compile" | |
20439 | case "(($ac_try" in | |
20440 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20441 | *) ac_try_echo=$ac_try;; | |
20442 | esac | |
20443 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
20444 | (eval "$ac_compile") 2>conftest.er1 | |
20445 | ac_status=$? | |
20446 | grep -v '^ *+' conftest.er1 >conftest.err | |
20447 | rm -f conftest.er1 | |
20448 | cat conftest.err >&5 | |
20449 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20450 | (exit $ac_status); } && { | |
20451 | test -z "$ac_c_werror_flag" || | |
20452 | test ! -s conftest.err | |
20453 | } && test -s conftest.$ac_objext; then | |
20454 | ac_cv_type_void_p=yes | |
20455 | else | |
20456 | echo "$as_me: failed program was:" >&5 | |
20457 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20458 | ||
20459 | ac_cv_type_void_p=no | |
20460 | fi | |
20461 | ||
20462 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
20463 | fi | |
20464 | { echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5 | |
20465 | echo "${ECHO_T}$ac_cv_type_void_p" >&6; } | |
20466 | ||
47964710 VS |
20467 | # The cast to long int works around a bug in the HP C Compiler |
20468 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
20469 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
20470 | # This bug is HP SR number 8606223364. | |
d589327a VZ |
20471 | { echo "$as_me:$LINENO: checking size of void *" >&5 |
20472 | echo $ECHO_N "checking size of void *... $ECHO_C" >&6; } | |
a848cd7e | 20473 | if test "${ac_cv_sizeof_void_p+set}" = set; then |
d589327a | 20474 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a848cd7e | 20475 | else |
a848cd7e SC |
20476 | if test "$cross_compiling" = yes; then |
20477 | # Depending upon the size, compute the lo and hi bounds. | |
20478 | cat >conftest.$ac_ext <<_ACEOF | |
20479 | /* confdefs.h. */ | |
20480 | _ACEOF | |
20481 | cat confdefs.h >>conftest.$ac_ext | |
20482 | cat >>conftest.$ac_ext <<_ACEOF | |
20483 | /* end confdefs.h. */ | |
20484 | $ac_includes_default | |
d589327a | 20485 | typedef void * ac__type_sizeof_; |
a848cd7e SC |
20486 | int |
20487 | main () | |
20488 | { | |
d589327a | 20489 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; |
a848cd7e SC |
20490 | test_array [0] = 0 |
20491 | ||
20492 | ; | |
20493 | return 0; | |
20494 | } | |
20495 | _ACEOF | |
20496 | rm -f conftest.$ac_objext | |
47964710 VS |
20497 | if { (ac_try="$ac_compile" |
20498 | case "(($ac_try" in | |
20499 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20500 | *) ac_try_echo=$ac_try;; | |
20501 | esac | |
d589327a | 20502 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 20503 | (eval "$ac_compile") 2>conftest.er1 |
a848cd7e | 20504 | ac_status=$? |
ac1cb8d3 VS |
20505 | grep -v '^ *+' conftest.er1 >conftest.err |
20506 | rm -f conftest.er1 | |
20507 | cat conftest.err >&5 | |
d589327a | 20508 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
20509 | (exit $ac_status); } && { |
20510 | test -z "$ac_c_werror_flag" || | |
20511 | test ! -s conftest.err | |
20512 | } && test -s conftest.$ac_objext; then | |
a848cd7e SC |
20513 | ac_lo=0 ac_mid=0 |
20514 | while :; do | |
20515 | cat >conftest.$ac_ext <<_ACEOF | |
20516 | /* confdefs.h. */ | |
20517 | _ACEOF | |
20518 | cat confdefs.h >>conftest.$ac_ext | |
20519 | cat >>conftest.$ac_ext <<_ACEOF | |
20520 | /* end confdefs.h. */ | |
20521 | $ac_includes_default | |
d589327a | 20522 | typedef void * ac__type_sizeof_; |
a848cd7e SC |
20523 | int |
20524 | main () | |
20525 | { | |
d589327a | 20526 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
a848cd7e SC |
20527 | test_array [0] = 0 |
20528 | ||
20529 | ; | |
20530 | return 0; | |
20531 | } | |
20532 | _ACEOF | |
20533 | rm -f conftest.$ac_objext | |
47964710 VS |
20534 | if { (ac_try="$ac_compile" |
20535 | case "(($ac_try" in | |
20536 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20537 | *) ac_try_echo=$ac_try;; | |
20538 | esac | |
d589327a | 20539 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 20540 | (eval "$ac_compile") 2>conftest.er1 |
a848cd7e | 20541 | ac_status=$? |
ac1cb8d3 VS |
20542 | grep -v '^ *+' conftest.er1 >conftest.err |
20543 | rm -f conftest.er1 | |
20544 | cat conftest.err >&5 | |
d589327a | 20545 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
20546 | (exit $ac_status); } && { |
20547 | test -z "$ac_c_werror_flag" || | |
20548 | test ! -s conftest.err | |
20549 | } && test -s conftest.$ac_objext; then | |
a848cd7e SC |
20550 | ac_hi=$ac_mid; break |
20551 | else | |
d589327a | 20552 | echo "$as_me: failed program was:" >&5 |
a848cd7e SC |
20553 | sed 's/^/| /' conftest.$ac_ext >&5 |
20554 | ||
47964710 VS |
20555 | ac_lo=`expr $ac_mid + 1` |
20556 | if test $ac_lo -le $ac_mid; then | |
20557 | ac_lo= ac_hi= | |
20558 | break | |
20559 | fi | |
20560 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 20561 | fi |
47964710 VS |
20562 | |
20563 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
a848cd7e SC |
20564 | done |
20565 | else | |
d589327a | 20566 | echo "$as_me: failed program was:" >&5 |
a848cd7e SC |
20567 | sed 's/^/| /' conftest.$ac_ext >&5 |
20568 | ||
47964710 | 20569 | cat >conftest.$ac_ext <<_ACEOF |
a848cd7e SC |
20570 | /* confdefs.h. */ |
20571 | _ACEOF | |
20572 | cat confdefs.h >>conftest.$ac_ext | |
20573 | cat >>conftest.$ac_ext <<_ACEOF | |
20574 | /* end confdefs.h. */ | |
20575 | $ac_includes_default | |
d589327a | 20576 | typedef void * ac__type_sizeof_; |
a848cd7e SC |
20577 | int |
20578 | main () | |
20579 | { | |
d589327a | 20580 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; |
a848cd7e SC |
20581 | test_array [0] = 0 |
20582 | ||
20583 | ; | |
20584 | return 0; | |
20585 | } | |
20586 | _ACEOF | |
20587 | rm -f conftest.$ac_objext | |
47964710 VS |
20588 | if { (ac_try="$ac_compile" |
20589 | case "(($ac_try" in | |
20590 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20591 | *) ac_try_echo=$ac_try;; | |
20592 | esac | |
d589327a | 20593 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 20594 | (eval "$ac_compile") 2>conftest.er1 |
a848cd7e | 20595 | ac_status=$? |
ac1cb8d3 VS |
20596 | grep -v '^ *+' conftest.er1 >conftest.err |
20597 | rm -f conftest.er1 | |
20598 | cat conftest.err >&5 | |
d589327a | 20599 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
20600 | (exit $ac_status); } && { |
20601 | test -z "$ac_c_werror_flag" || | |
20602 | test ! -s conftest.err | |
20603 | } && test -s conftest.$ac_objext; then | |
a848cd7e SC |
20604 | ac_hi=-1 ac_mid=-1 |
20605 | while :; do | |
20606 | cat >conftest.$ac_ext <<_ACEOF | |
20607 | /* confdefs.h. */ | |
20608 | _ACEOF | |
20609 | cat confdefs.h >>conftest.$ac_ext | |
20610 | cat >>conftest.$ac_ext <<_ACEOF | |
20611 | /* end confdefs.h. */ | |
20612 | $ac_includes_default | |
d589327a | 20613 | typedef void * ac__type_sizeof_; |
a848cd7e SC |
20614 | int |
20615 | main () | |
20616 | { | |
d589327a | 20617 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; |
a848cd7e SC |
20618 | test_array [0] = 0 |
20619 | ||
20620 | ; | |
20621 | return 0; | |
20622 | } | |
20623 | _ACEOF | |
20624 | rm -f conftest.$ac_objext | |
47964710 VS |
20625 | if { (ac_try="$ac_compile" |
20626 | case "(($ac_try" in | |
20627 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20628 | *) ac_try_echo=$ac_try;; | |
20629 | esac | |
d589327a | 20630 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 20631 | (eval "$ac_compile") 2>conftest.er1 |
a848cd7e | 20632 | ac_status=$? |
ac1cb8d3 VS |
20633 | grep -v '^ *+' conftest.er1 >conftest.err |
20634 | rm -f conftest.er1 | |
20635 | cat conftest.err >&5 | |
d589327a | 20636 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
20637 | (exit $ac_status); } && { |
20638 | test -z "$ac_c_werror_flag" || | |
20639 | test ! -s conftest.err | |
20640 | } && test -s conftest.$ac_objext; then | |
a848cd7e SC |
20641 | ac_lo=$ac_mid; break |
20642 | else | |
d589327a | 20643 | echo "$as_me: failed program was:" >&5 |
a848cd7e SC |
20644 | sed 's/^/| /' conftest.$ac_ext >&5 |
20645 | ||
47964710 VS |
20646 | ac_hi=`expr '(' $ac_mid ')' - 1` |
20647 | if test $ac_mid -le $ac_hi; then | |
20648 | ac_lo= ac_hi= | |
20649 | break | |
20650 | fi | |
20651 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 20652 | fi |
47964710 VS |
20653 | |
20654 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
a848cd7e SC |
20655 | done |
20656 | else | |
d589327a | 20657 | echo "$as_me: failed program was:" >&5 |
a848cd7e SC |
20658 | sed 's/^/| /' conftest.$ac_ext >&5 |
20659 | ||
47964710 | 20660 | ac_lo= ac_hi= |
a848cd7e | 20661 | fi |
47964710 VS |
20662 | |
20663 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
a848cd7e | 20664 | fi |
47964710 VS |
20665 | |
20666 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
a848cd7e SC |
20667 | # Binary search between lo and hi bounds. |
20668 | while test "x$ac_lo" != "x$ac_hi"; do | |
20669 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
20670 | cat >conftest.$ac_ext <<_ACEOF | |
20671 | /* confdefs.h. */ | |
20672 | _ACEOF | |
20673 | cat confdefs.h >>conftest.$ac_ext | |
20674 | cat >>conftest.$ac_ext <<_ACEOF | |
20675 | /* end confdefs.h. */ | |
20676 | $ac_includes_default | |
d589327a | 20677 | typedef void * ac__type_sizeof_; |
a848cd7e SC |
20678 | int |
20679 | main () | |
20680 | { | |
d589327a | 20681 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
a848cd7e SC |
20682 | test_array [0] = 0 |
20683 | ||
20684 | ; | |
20685 | return 0; | |
20686 | } | |
20687 | _ACEOF | |
20688 | rm -f conftest.$ac_objext | |
47964710 VS |
20689 | if { (ac_try="$ac_compile" |
20690 | case "(($ac_try" in | |
20691 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20692 | *) ac_try_echo=$ac_try;; | |
20693 | esac | |
d589327a | 20694 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 20695 | (eval "$ac_compile") 2>conftest.er1 |
a848cd7e | 20696 | ac_status=$? |
ac1cb8d3 VS |
20697 | grep -v '^ *+' conftest.er1 >conftest.err |
20698 | rm -f conftest.er1 | |
20699 | cat conftest.err >&5 | |
d589327a | 20700 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
20701 | (exit $ac_status); } && { |
20702 | test -z "$ac_c_werror_flag" || | |
20703 | test ! -s conftest.err | |
20704 | } && test -s conftest.$ac_objext; then | |
a848cd7e SC |
20705 | ac_hi=$ac_mid |
20706 | else | |
d589327a | 20707 | echo "$as_me: failed program was:" >&5 |
a848cd7e SC |
20708 | sed 's/^/| /' conftest.$ac_ext >&5 |
20709 | ||
47964710 | 20710 | ac_lo=`expr '(' $ac_mid ')' + 1` |
a848cd7e | 20711 | fi |
47964710 VS |
20712 | |
20713 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
a848cd7e SC |
20714 | done |
20715 | case $ac_lo in | |
20716 | ?*) ac_cv_sizeof_void_p=$ac_lo;; | |
47964710 | 20717 | '') if test "$ac_cv_type_void_p" = yes; then |
d589327a | 20718 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *) |
a848cd7e | 20719 | See \`config.log' for more details." >&5 |
d589327a | 20720 | echo "$as_me: error: cannot compute sizeof (void *) |
a848cd7e | 20721 | See \`config.log' for more details." >&2;} |
d589327a | 20722 | { (exit 77); exit 77; }; } |
47964710 VS |
20723 | else |
20724 | ac_cv_sizeof_void_p=0 | |
20725 | fi ;; | |
a848cd7e | 20726 | esac |
a848cd7e SC |
20727 | else |
20728 | cat >conftest.$ac_ext <<_ACEOF | |
20729 | /* confdefs.h. */ | |
20730 | _ACEOF | |
20731 | cat confdefs.h >>conftest.$ac_ext | |
20732 | cat >>conftest.$ac_ext <<_ACEOF | |
20733 | /* end confdefs.h. */ | |
20734 | $ac_includes_default | |
d589327a VZ |
20735 | typedef void * ac__type_sizeof_; |
20736 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } | |
20737 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } | |
a848cd7e SC |
20738 | #include <stdio.h> |
20739 | #include <stdlib.h> | |
20740 | int | |
20741 | main () | |
20742 | { | |
20743 | ||
20744 | FILE *f = fopen ("conftest.val", "w"); | |
20745 | if (! f) | |
47964710 | 20746 | return 1; |
d589327a | 20747 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
a848cd7e | 20748 | { |
47964710 | 20749 | long int i = longval (); |
d589327a | 20750 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
47964710 | 20751 | return 1; |
d589327a | 20752 | fprintf (f, "%ld\n", i); |
a848cd7e SC |
20753 | } |
20754 | else | |
20755 | { | |
47964710 | 20756 | unsigned long int i = ulongval (); |
d589327a | 20757 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
47964710 | 20758 | return 1; |
d589327a | 20759 | fprintf (f, "%lu\n", i); |
a848cd7e | 20760 | } |
47964710 | 20761 | return ferror (f) || fclose (f) != 0; |
a848cd7e SC |
20762 | |
20763 | ; | |
20764 | return 0; | |
20765 | } | |
20766 | _ACEOF | |
20767 | rm -f conftest$ac_exeext | |
47964710 VS |
20768 | if { (ac_try="$ac_link" |
20769 | case "(($ac_try" in | |
20770 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20771 | *) ac_try_echo=$ac_try;; | |
20772 | esac | |
d589327a | 20773 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 20774 | (eval "$ac_link") 2>&5 |
a848cd7e | 20775 | ac_status=$? |
d589327a | 20776 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
a848cd7e | 20777 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
47964710 VS |
20778 | { (case "(($ac_try" in |
20779 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20780 | *) ac_try_echo=$ac_try;; | |
20781 | esac | |
d589327a | 20782 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 20783 | (eval "$ac_try") 2>&5 |
a848cd7e | 20784 | ac_status=$? |
d589327a | 20785 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
a848cd7e SC |
20786 | (exit $ac_status); }; }; then |
20787 | ac_cv_sizeof_void_p=`cat conftest.val` | |
20788 | else | |
d589327a VZ |
20789 | echo "$as_me: program exited with status $ac_status" >&5 |
20790 | echo "$as_me: failed program was:" >&5 | |
a848cd7e SC |
20791 | sed 's/^/| /' conftest.$ac_ext >&5 |
20792 | ||
20793 | ( exit $ac_status ) | |
47964710 | 20794 | if test "$ac_cv_type_void_p" = yes; then |
d589327a | 20795 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *) |
a848cd7e | 20796 | See \`config.log' for more details." >&5 |
d589327a | 20797 | echo "$as_me: error: cannot compute sizeof (void *) |
a848cd7e | 20798 | See \`config.log' for more details." >&2;} |
d589327a | 20799 | { (exit 77); exit 77; }; } |
47964710 VS |
20800 | else |
20801 | ac_cv_sizeof_void_p=0 | |
20802 | fi | |
a848cd7e | 20803 | fi |
47964710 | 20804 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20805 | fi |
20806 | rm -f conftest.val | |
bd8a7646 | 20807 | fi |
d589327a VZ |
20808 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5 |
20809 | echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; } | |
47964710 VS |
20810 | |
20811 | ||
20812 | ||
a848cd7e SC |
20813 | cat >>confdefs.h <<_ACEOF |
20814 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p | |
20815 | _ACEOF | |
20816 | ||
20817 | ||
d589327a VZ |
20818 | { echo "$as_me:$LINENO: checking for int" >&5 |
20819 | echo $ECHO_N "checking for int... $ECHO_C" >&6; } | |
20820 | if test "${ac_cv_type_int+set}" = set; then | |
20821 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20822 | else | |
20823 | cat >conftest.$ac_ext <<_ACEOF | |
20824 | /* confdefs.h. */ | |
20825 | _ACEOF | |
20826 | cat confdefs.h >>conftest.$ac_ext | |
20827 | cat >>conftest.$ac_ext <<_ACEOF | |
20828 | /* end confdefs.h. */ | |
20829 | $ac_includes_default | |
20830 | typedef int ac__type_new_; | |
20831 | int | |
20832 | main () | |
20833 | { | |
20834 | if ((ac__type_new_ *) 0) | |
20835 | return 0; | |
20836 | if (sizeof (ac__type_new_)) | |
20837 | return 0; | |
20838 | ; | |
20839 | return 0; | |
20840 | } | |
20841 | _ACEOF | |
20842 | rm -f conftest.$ac_objext | |
20843 | if { (ac_try="$ac_compile" | |
20844 | case "(($ac_try" in | |
20845 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20846 | *) ac_try_echo=$ac_try;; | |
20847 | esac | |
20848 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
20849 | (eval "$ac_compile") 2>conftest.er1 | |
20850 | ac_status=$? | |
20851 | grep -v '^ *+' conftest.er1 >conftest.err | |
20852 | rm -f conftest.er1 | |
20853 | cat conftest.err >&5 | |
20854 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20855 | (exit $ac_status); } && { | |
20856 | test -z "$ac_c_werror_flag" || | |
20857 | test ! -s conftest.err | |
20858 | } && test -s conftest.$ac_objext; then | |
20859 | ac_cv_type_int=yes | |
20860 | else | |
20861 | echo "$as_me: failed program was:" >&5 | |
20862 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20863 | ||
20864 | ac_cv_type_int=no | |
20865 | fi | |
20866 | ||
20867 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
20868 | fi | |
20869 | { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 | |
20870 | echo "${ECHO_T}$ac_cv_type_int" >&6; } | |
20871 | ||
47964710 VS |
20872 | # The cast to long int works around a bug in the HP C Compiler |
20873 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
20874 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
20875 | # This bug is HP SR number 8606223364. | |
d589327a VZ |
20876 | { echo "$as_me:$LINENO: checking size of int" >&5 |
20877 | echo $ECHO_N "checking size of int... $ECHO_C" >&6; } | |
a848cd7e | 20878 | if test "${ac_cv_sizeof_int+set}" = set; then |
d589327a | 20879 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a848cd7e | 20880 | else |
a848cd7e SC |
20881 | if test "$cross_compiling" = yes; then |
20882 | # Depending upon the size, compute the lo and hi bounds. | |
20883 | cat >conftest.$ac_ext <<_ACEOF | |
20884 | /* confdefs.h. */ | |
20885 | _ACEOF | |
20886 | cat confdefs.h >>conftest.$ac_ext | |
20887 | cat >>conftest.$ac_ext <<_ACEOF | |
20888 | /* end confdefs.h. */ | |
20889 | $ac_includes_default | |
d589327a | 20890 | typedef int ac__type_sizeof_; |
a848cd7e SC |
20891 | int |
20892 | main () | |
20893 | { | |
d589327a | 20894 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; |
a848cd7e SC |
20895 | test_array [0] = 0 |
20896 | ||
20897 | ; | |
20898 | return 0; | |
20899 | } | |
20900 | _ACEOF | |
20901 | rm -f conftest.$ac_objext | |
47964710 VS |
20902 | if { (ac_try="$ac_compile" |
20903 | case "(($ac_try" in | |
20904 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20905 | *) ac_try_echo=$ac_try;; | |
20906 | esac | |
d589327a | 20907 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 20908 | (eval "$ac_compile") 2>conftest.er1 |
a848cd7e | 20909 | ac_status=$? |
ac1cb8d3 VS |
20910 | grep -v '^ *+' conftest.er1 >conftest.err |
20911 | rm -f conftest.er1 | |
20912 | cat conftest.err >&5 | |
d589327a | 20913 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
20914 | (exit $ac_status); } && { |
20915 | test -z "$ac_c_werror_flag" || | |
20916 | test ! -s conftest.err | |
20917 | } && test -s conftest.$ac_objext; then | |
a848cd7e SC |
20918 | ac_lo=0 ac_mid=0 |
20919 | while :; do | |
20920 | cat >conftest.$ac_ext <<_ACEOF | |
20921 | /* confdefs.h. */ | |
20922 | _ACEOF | |
20923 | cat confdefs.h >>conftest.$ac_ext | |
20924 | cat >>conftest.$ac_ext <<_ACEOF | |
20925 | /* end confdefs.h. */ | |
20926 | $ac_includes_default | |
d589327a | 20927 | typedef int ac__type_sizeof_; |
a848cd7e SC |
20928 | int |
20929 | main () | |
20930 | { | |
d589327a | 20931 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
a848cd7e SC |
20932 | test_array [0] = 0 |
20933 | ||
20934 | ; | |
20935 | return 0; | |
20936 | } | |
20937 | _ACEOF | |
20938 | rm -f conftest.$ac_objext | |
47964710 VS |
20939 | if { (ac_try="$ac_compile" |
20940 | case "(($ac_try" in | |
20941 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20942 | *) ac_try_echo=$ac_try;; | |
20943 | esac | |
d589327a | 20944 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 20945 | (eval "$ac_compile") 2>conftest.er1 |
a848cd7e | 20946 | ac_status=$? |
ac1cb8d3 VS |
20947 | grep -v '^ *+' conftest.er1 >conftest.err |
20948 | rm -f conftest.er1 | |
20949 | cat conftest.err >&5 | |
d589327a | 20950 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
20951 | (exit $ac_status); } && { |
20952 | test -z "$ac_c_werror_flag" || | |
20953 | test ! -s conftest.err | |
20954 | } && test -s conftest.$ac_objext; then | |
a848cd7e SC |
20955 | ac_hi=$ac_mid; break |
20956 | else | |
d589327a | 20957 | echo "$as_me: failed program was:" >&5 |
a848cd7e SC |
20958 | sed 's/^/| /' conftest.$ac_ext >&5 |
20959 | ||
47964710 VS |
20960 | ac_lo=`expr $ac_mid + 1` |
20961 | if test $ac_lo -le $ac_mid; then | |
20962 | ac_lo= ac_hi= | |
20963 | break | |
20964 | fi | |
20965 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 20966 | fi |
47964710 VS |
20967 | |
20968 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
a848cd7e SC |
20969 | done |
20970 | else | |
d589327a | 20971 | echo "$as_me: failed program was:" >&5 |
a848cd7e SC |
20972 | sed 's/^/| /' conftest.$ac_ext >&5 |
20973 | ||
47964710 | 20974 | cat >conftest.$ac_ext <<_ACEOF |
a848cd7e SC |
20975 | /* confdefs.h. */ |
20976 | _ACEOF | |
20977 | cat confdefs.h >>conftest.$ac_ext | |
20978 | cat >>conftest.$ac_ext <<_ACEOF | |
20979 | /* end confdefs.h. */ | |
20980 | $ac_includes_default | |
d589327a | 20981 | typedef int ac__type_sizeof_; |
a848cd7e SC |
20982 | int |
20983 | main () | |
20984 | { | |
d589327a | 20985 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; |
a848cd7e SC |
20986 | test_array [0] = 0 |
20987 | ||
20988 | ; | |
20989 | return 0; | |
20990 | } | |
20991 | _ACEOF | |
20992 | rm -f conftest.$ac_objext | |
47964710 VS |
20993 | if { (ac_try="$ac_compile" |
20994 | case "(($ac_try" in | |
20995 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20996 | *) ac_try_echo=$ac_try;; | |
20997 | esac | |
d589327a | 20998 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 20999 | (eval "$ac_compile") 2>conftest.er1 |
a848cd7e | 21000 | ac_status=$? |
ac1cb8d3 VS |
21001 | grep -v '^ *+' conftest.er1 >conftest.err |
21002 | rm -f conftest.er1 | |
21003 | cat conftest.err >&5 | |
d589327a | 21004 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
21005 | (exit $ac_status); } && { |
21006 | test -z "$ac_c_werror_flag" || | |
21007 | test ! -s conftest.err | |
21008 | } && test -s conftest.$ac_objext; then | |
a848cd7e SC |
21009 | ac_hi=-1 ac_mid=-1 |
21010 | while :; do | |
21011 | cat >conftest.$ac_ext <<_ACEOF | |
21012 | /* confdefs.h. */ | |
21013 | _ACEOF | |
21014 | cat confdefs.h >>conftest.$ac_ext | |
21015 | cat >>conftest.$ac_ext <<_ACEOF | |
21016 | /* end confdefs.h. */ | |
21017 | $ac_includes_default | |
d589327a | 21018 | typedef int ac__type_sizeof_; |
a848cd7e SC |
21019 | int |
21020 | main () | |
21021 | { | |
d589327a | 21022 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; |
a848cd7e SC |
21023 | test_array [0] = 0 |
21024 | ||
21025 | ; | |
21026 | return 0; | |
21027 | } | |
21028 | _ACEOF | |
21029 | rm -f conftest.$ac_objext | |
47964710 VS |
21030 | if { (ac_try="$ac_compile" |
21031 | case "(($ac_try" in | |
21032 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21033 | *) ac_try_echo=$ac_try;; | |
21034 | esac | |
d589327a | 21035 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 21036 | (eval "$ac_compile") 2>conftest.er1 |
a848cd7e | 21037 | ac_status=$? |
ac1cb8d3 VS |
21038 | grep -v '^ *+' conftest.er1 >conftest.err |
21039 | rm -f conftest.er1 | |
21040 | cat conftest.err >&5 | |
d589327a | 21041 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
21042 | (exit $ac_status); } && { |
21043 | test -z "$ac_c_werror_flag" || | |
21044 | test ! -s conftest.err | |
21045 | } && test -s conftest.$ac_objext; then | |
a848cd7e SC |
21046 | ac_lo=$ac_mid; break |
21047 | else | |
d589327a | 21048 | echo "$as_me: failed program was:" >&5 |
a848cd7e SC |
21049 | sed 's/^/| /' conftest.$ac_ext >&5 |
21050 | ||
47964710 VS |
21051 | ac_hi=`expr '(' $ac_mid ')' - 1` |
21052 | if test $ac_mid -le $ac_hi; then | |
21053 | ac_lo= ac_hi= | |
21054 | break | |
21055 | fi | |
21056 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 21057 | fi |
47964710 VS |
21058 | |
21059 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
a848cd7e SC |
21060 | done |
21061 | else | |
d589327a | 21062 | echo "$as_me: failed program was:" >&5 |
a848cd7e SC |
21063 | sed 's/^/| /' conftest.$ac_ext >&5 |
21064 | ||
47964710 | 21065 | ac_lo= ac_hi= |
a848cd7e | 21066 | fi |
47964710 VS |
21067 | |
21068 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
a848cd7e | 21069 | fi |
47964710 VS |
21070 | |
21071 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
a848cd7e SC |
21072 | # Binary search between lo and hi bounds. |
21073 | while test "x$ac_lo" != "x$ac_hi"; do | |
21074 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
21075 | cat >conftest.$ac_ext <<_ACEOF | |
21076 | /* confdefs.h. */ | |
21077 | _ACEOF | |
21078 | cat confdefs.h >>conftest.$ac_ext | |
21079 | cat >>conftest.$ac_ext <<_ACEOF | |
21080 | /* end confdefs.h. */ | |
21081 | $ac_includes_default | |
d589327a | 21082 | typedef int ac__type_sizeof_; |
a848cd7e SC |
21083 | int |
21084 | main () | |
21085 | { | |
d589327a | 21086 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
a848cd7e SC |
21087 | test_array [0] = 0 |
21088 | ||
21089 | ; | |
21090 | return 0; | |
21091 | } | |
21092 | _ACEOF | |
21093 | rm -f conftest.$ac_objext | |
47964710 VS |
21094 | if { (ac_try="$ac_compile" |
21095 | case "(($ac_try" in | |
21096 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21097 | *) ac_try_echo=$ac_try;; | |
21098 | esac | |
d589327a | 21099 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 21100 | (eval "$ac_compile") 2>conftest.er1 |
a848cd7e | 21101 | ac_status=$? |
ac1cb8d3 VS |
21102 | grep -v '^ *+' conftest.er1 >conftest.err |
21103 | rm -f conftest.er1 | |
21104 | cat conftest.err >&5 | |
d589327a | 21105 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
21106 | (exit $ac_status); } && { |
21107 | test -z "$ac_c_werror_flag" || | |
21108 | test ! -s conftest.err | |
21109 | } && test -s conftest.$ac_objext; then | |
a848cd7e SC |
21110 | ac_hi=$ac_mid |
21111 | else | |
d589327a | 21112 | echo "$as_me: failed program was:" >&5 |
a848cd7e SC |
21113 | sed 's/^/| /' conftest.$ac_ext >&5 |
21114 | ||
47964710 | 21115 | ac_lo=`expr '(' $ac_mid ')' + 1` |
a848cd7e | 21116 | fi |
47964710 VS |
21117 | |
21118 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
a848cd7e SC |
21119 | done |
21120 | case $ac_lo in | |
21121 | ?*) ac_cv_sizeof_int=$ac_lo;; | |
47964710 | 21122 | '') if test "$ac_cv_type_int" = yes; then |
d589327a | 21123 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int) |
a848cd7e | 21124 | See \`config.log' for more details." >&5 |
d589327a | 21125 | echo "$as_me: error: cannot compute sizeof (int) |
a848cd7e | 21126 | See \`config.log' for more details." >&2;} |
d589327a | 21127 | { (exit 77); exit 77; }; } |
47964710 VS |
21128 | else |
21129 | ac_cv_sizeof_int=0 | |
21130 | fi ;; | |
a848cd7e | 21131 | esac |
a848cd7e SC |
21132 | else |
21133 | cat >conftest.$ac_ext <<_ACEOF | |
21134 | /* confdefs.h. */ | |
21135 | _ACEOF | |
21136 | cat confdefs.h >>conftest.$ac_ext | |
21137 | cat >>conftest.$ac_ext <<_ACEOF | |
21138 | /* end confdefs.h. */ | |
21139 | $ac_includes_default | |
d589327a VZ |
21140 | typedef int ac__type_sizeof_; |
21141 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } | |
21142 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } | |
a848cd7e SC |
21143 | #include <stdio.h> |
21144 | #include <stdlib.h> | |
21145 | int | |
21146 | main () | |
21147 | { | |
21148 | ||
21149 | FILE *f = fopen ("conftest.val", "w"); | |
21150 | if (! f) | |
47964710 | 21151 | return 1; |
d589327a | 21152 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
a848cd7e | 21153 | { |
47964710 | 21154 | long int i = longval (); |
d589327a | 21155 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
47964710 | 21156 | return 1; |
d589327a | 21157 | fprintf (f, "%ld\n", i); |
a848cd7e SC |
21158 | } |
21159 | else | |
21160 | { | |
47964710 | 21161 | unsigned long int i = ulongval (); |
d589327a | 21162 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
47964710 | 21163 | return 1; |
d589327a | 21164 | fprintf (f, "%lu\n", i); |
a848cd7e | 21165 | } |
47964710 | 21166 | return ferror (f) || fclose (f) != 0; |
a848cd7e SC |
21167 | |
21168 | ; | |
21169 | return 0; | |
21170 | } | |
21171 | _ACEOF | |
21172 | rm -f conftest$ac_exeext | |
47964710 VS |
21173 | if { (ac_try="$ac_link" |
21174 | case "(($ac_try" in | |
21175 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21176 | *) ac_try_echo=$ac_try;; | |
21177 | esac | |
d589327a | 21178 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 21179 | (eval "$ac_link") 2>&5 |
a848cd7e | 21180 | ac_status=$? |
d589327a | 21181 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
a848cd7e | 21182 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
47964710 VS |
21183 | { (case "(($ac_try" in |
21184 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21185 | *) ac_try_echo=$ac_try;; | |
21186 | esac | |
d589327a | 21187 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 21188 | (eval "$ac_try") 2>&5 |
a848cd7e | 21189 | ac_status=$? |
d589327a | 21190 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
a848cd7e SC |
21191 | (exit $ac_status); }; }; then |
21192 | ac_cv_sizeof_int=`cat conftest.val` | |
21193 | else | |
d589327a VZ |
21194 | echo "$as_me: program exited with status $ac_status" >&5 |
21195 | echo "$as_me: failed program was:" >&5 | |
a848cd7e SC |
21196 | sed 's/^/| /' conftest.$ac_ext >&5 |
21197 | ||
21198 | ( exit $ac_status ) | |
47964710 | 21199 | if test "$ac_cv_type_int" = yes; then |
d589327a | 21200 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int) |
a848cd7e | 21201 | See \`config.log' for more details." >&5 |
d589327a | 21202 | echo "$as_me: error: cannot compute sizeof (int) |
a848cd7e | 21203 | See \`config.log' for more details." >&2;} |
d589327a | 21204 | { (exit 77); exit 77; }; } |
47964710 VS |
21205 | else |
21206 | ac_cv_sizeof_int=0 | |
21207 | fi | |
a848cd7e | 21208 | fi |
47964710 | 21209 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
21210 | fi |
21211 | rm -f conftest.val | |
4db03d26 | 21212 | fi |
d589327a VZ |
21213 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 |
21214 | echo "${ECHO_T}$ac_cv_sizeof_int" >&6; } | |
47964710 VS |
21215 | |
21216 | ||
21217 | ||
a848cd7e SC |
21218 | cat >>confdefs.h <<_ACEOF |
21219 | #define SIZEOF_INT $ac_cv_sizeof_int | |
21220 | _ACEOF | |
21221 | ||
21222 | ||
d589327a VZ |
21223 | { echo "$as_me:$LINENO: checking for long" >&5 |
21224 | echo $ECHO_N "checking for long... $ECHO_C" >&6; } | |
21225 | if test "${ac_cv_type_long+set}" = set; then | |
21226 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21227 | else | |
21228 | cat >conftest.$ac_ext <<_ACEOF | |
21229 | /* confdefs.h. */ | |
21230 | _ACEOF | |
21231 | cat confdefs.h >>conftest.$ac_ext | |
21232 | cat >>conftest.$ac_ext <<_ACEOF | |
21233 | /* end confdefs.h. */ | |
21234 | $ac_includes_default | |
21235 | typedef long ac__type_new_; | |
21236 | int | |
21237 | main () | |
21238 | { | |
21239 | if ((ac__type_new_ *) 0) | |
21240 | return 0; | |
21241 | if (sizeof (ac__type_new_)) | |
21242 | return 0; | |
21243 | ; | |
21244 | return 0; | |
21245 | } | |
21246 | _ACEOF | |
21247 | rm -f conftest.$ac_objext | |
21248 | if { (ac_try="$ac_compile" | |
21249 | case "(($ac_try" in | |
21250 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21251 | *) ac_try_echo=$ac_try;; | |
21252 | esac | |
21253 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
21254 | (eval "$ac_compile") 2>conftest.er1 | |
21255 | ac_status=$? | |
21256 | grep -v '^ *+' conftest.er1 >conftest.err | |
21257 | rm -f conftest.er1 | |
21258 | cat conftest.err >&5 | |
21259 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21260 | (exit $ac_status); } && { | |
21261 | test -z "$ac_c_werror_flag" || | |
21262 | test ! -s conftest.err | |
21263 | } && test -s conftest.$ac_objext; then | |
21264 | ac_cv_type_long=yes | |
21265 | else | |
21266 | echo "$as_me: failed program was:" >&5 | |
21267 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21268 | ||
21269 | ac_cv_type_long=no | |
21270 | fi | |
21271 | ||
21272 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
21273 | fi | |
21274 | { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 | |
21275 | echo "${ECHO_T}$ac_cv_type_long" >&6; } | |
21276 | ||
47964710 VS |
21277 | # The cast to long int works around a bug in the HP C Compiler |
21278 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
21279 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
21280 | # This bug is HP SR number 8606223364. | |
d589327a VZ |
21281 | { echo "$as_me:$LINENO: checking size of long" >&5 |
21282 | echo $ECHO_N "checking size of long... $ECHO_C" >&6; } | |
a848cd7e | 21283 | if test "${ac_cv_sizeof_long+set}" = set; then |
d589327a | 21284 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a848cd7e | 21285 | else |
a848cd7e SC |
21286 | if test "$cross_compiling" = yes; then |
21287 | # Depending upon the size, compute the lo and hi bounds. | |
21288 | cat >conftest.$ac_ext <<_ACEOF | |
21289 | /* confdefs.h. */ | |
21290 | _ACEOF | |
21291 | cat confdefs.h >>conftest.$ac_ext | |
21292 | cat >>conftest.$ac_ext <<_ACEOF | |
21293 | /* end confdefs.h. */ | |
21294 | $ac_includes_default | |
d589327a | 21295 | typedef long ac__type_sizeof_; |
a848cd7e SC |
21296 | int |
21297 | main () | |
21298 | { | |
d589327a | 21299 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; |
a848cd7e SC |
21300 | test_array [0] = 0 |
21301 | ||
21302 | ; | |
21303 | return 0; | |
21304 | } | |
21305 | _ACEOF | |
21306 | rm -f conftest.$ac_objext | |
47964710 VS |
21307 | if { (ac_try="$ac_compile" |
21308 | case "(($ac_try" in | |
21309 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21310 | *) ac_try_echo=$ac_try;; | |
21311 | esac | |
d589327a | 21312 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 21313 | (eval "$ac_compile") 2>conftest.er1 |
a848cd7e | 21314 | ac_status=$? |
ac1cb8d3 VS |
21315 | grep -v '^ *+' conftest.er1 >conftest.err |
21316 | rm -f conftest.er1 | |
21317 | cat conftest.err >&5 | |
d589327a | 21318 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
21319 | (exit $ac_status); } && { |
21320 | test -z "$ac_c_werror_flag" || | |
21321 | test ! -s conftest.err | |
21322 | } && test -s conftest.$ac_objext; then | |
a848cd7e SC |
21323 | ac_lo=0 ac_mid=0 |
21324 | while :; do | |
21325 | cat >conftest.$ac_ext <<_ACEOF | |
21326 | /* confdefs.h. */ | |
21327 | _ACEOF | |
21328 | cat confdefs.h >>conftest.$ac_ext | |
21329 | cat >>conftest.$ac_ext <<_ACEOF | |
21330 | /* end confdefs.h. */ | |
21331 | $ac_includes_default | |
d589327a | 21332 | typedef long ac__type_sizeof_; |
a848cd7e SC |
21333 | int |
21334 | main () | |
21335 | { | |
d589327a | 21336 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
a848cd7e SC |
21337 | test_array [0] = 0 |
21338 | ||
21339 | ; | |
21340 | return 0; | |
21341 | } | |
21342 | _ACEOF | |
21343 | rm -f conftest.$ac_objext | |
47964710 VS |
21344 | if { (ac_try="$ac_compile" |
21345 | case "(($ac_try" in | |
21346 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21347 | *) ac_try_echo=$ac_try;; | |
21348 | esac | |
d589327a | 21349 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 21350 | (eval "$ac_compile") 2>conftest.er1 |
a848cd7e | 21351 | ac_status=$? |
ac1cb8d3 VS |
21352 | grep -v '^ *+' conftest.er1 >conftest.err |
21353 | rm -f conftest.er1 | |
21354 | cat conftest.err >&5 | |
d589327a | 21355 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
21356 | (exit $ac_status); } && { |
21357 | test -z "$ac_c_werror_flag" || | |
21358 | test ! -s conftest.err | |
21359 | } && test -s conftest.$ac_objext; then | |
a848cd7e SC |
21360 | ac_hi=$ac_mid; break |
21361 | else | |
d589327a | 21362 | echo "$as_me: failed program was:" >&5 |
a848cd7e SC |
21363 | sed 's/^/| /' conftest.$ac_ext >&5 |
21364 | ||
47964710 VS |
21365 | ac_lo=`expr $ac_mid + 1` |
21366 | if test $ac_lo -le $ac_mid; then | |
21367 | ac_lo= ac_hi= | |
21368 | break | |
21369 | fi | |
21370 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 21371 | fi |
47964710 VS |
21372 | |
21373 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
a848cd7e SC |
21374 | done |
21375 | else | |
d589327a | 21376 | echo "$as_me: failed program was:" >&5 |
a848cd7e SC |
21377 | sed 's/^/| /' conftest.$ac_ext >&5 |
21378 | ||
47964710 | 21379 | cat >conftest.$ac_ext <<_ACEOF |
a848cd7e SC |
21380 | /* confdefs.h. */ |
21381 | _ACEOF | |
21382 | cat confdefs.h >>conftest.$ac_ext | |
21383 | cat >>conftest.$ac_ext <<_ACEOF | |
21384 | /* end confdefs.h. */ | |
21385 | $ac_includes_default | |
d589327a | 21386 | typedef long ac__type_sizeof_; |
a848cd7e SC |
21387 | int |
21388 | main () | |
21389 | { | |
d589327a | 21390 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; |
a848cd7e SC |
21391 | test_array [0] = 0 |
21392 | ||
21393 | ; | |
21394 | return 0; | |
21395 | } | |
21396 | _ACEOF | |
21397 | rm -f conftest.$ac_objext | |
47964710 VS |
21398 | if { (ac_try="$ac_compile" |
21399 | case "(($ac_try" in | |
21400 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21401 | *) ac_try_echo=$ac_try;; | |
21402 | esac | |
d589327a | 21403 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 21404 | (eval "$ac_compile") 2>conftest.er1 |
a848cd7e | 21405 | ac_status=$? |
ac1cb8d3 VS |
21406 | grep -v '^ *+' conftest.er1 >conftest.err |
21407 | rm -f conftest.er1 | |
21408 | cat conftest.err >&5 | |
d589327a | 21409 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
21410 | (exit $ac_status); } && { |
21411 | test -z "$ac_c_werror_flag" || | |
21412 | test ! -s conftest.err | |
21413 | } && test -s conftest.$ac_objext; then | |
a848cd7e SC |
21414 | ac_hi=-1 ac_mid=-1 |
21415 | while :; do | |
21416 | cat >conftest.$ac_ext <<_ACEOF | |
21417 | /* confdefs.h. */ | |
21418 | _ACEOF | |
21419 | cat confdefs.h >>conftest.$ac_ext | |
21420 | cat >>conftest.$ac_ext <<_ACEOF | |
21421 | /* end confdefs.h. */ | |
21422 | $ac_includes_default | |
d589327a | 21423 | typedef long ac__type_sizeof_; |
a848cd7e SC |
21424 | int |
21425 | main () | |
21426 | { | |
d589327a | 21427 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; |
a848cd7e SC |
21428 | test_array [0] = 0 |
21429 | ||
21430 | ; | |
21431 | return 0; | |
21432 | } | |
21433 | _ACEOF | |
21434 | rm -f conftest.$ac_objext | |
47964710 VS |
21435 | if { (ac_try="$ac_compile" |
21436 | case "(($ac_try" in | |
21437 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21438 | *) ac_try_echo=$ac_try;; | |
21439 | esac | |
d589327a | 21440 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 21441 | (eval "$ac_compile") 2>conftest.er1 |
a848cd7e | 21442 | ac_status=$? |
ac1cb8d3 VS |
21443 | grep -v '^ *+' conftest.er1 >conftest.err |
21444 | rm -f conftest.er1 | |
21445 | cat conftest.err >&5 | |
d589327a | 21446 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
21447 | (exit $ac_status); } && { |
21448 | test -z "$ac_c_werror_flag" || | |
21449 | test ! -s conftest.err | |
21450 | } && test -s conftest.$ac_objext; then | |
a848cd7e SC |
21451 | ac_lo=$ac_mid; break |
21452 | else | |
d589327a | 21453 | echo "$as_me: failed program was:" >&5 |
a848cd7e SC |
21454 | sed 's/^/| /' conftest.$ac_ext >&5 |
21455 | ||
47964710 VS |
21456 | ac_hi=`expr '(' $ac_mid ')' - 1` |
21457 | if test $ac_mid -le $ac_hi; then | |
21458 | ac_lo= ac_hi= | |
21459 | break | |
21460 | fi | |
21461 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 21462 | fi |
47964710 VS |
21463 | |
21464 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
a848cd7e SC |
21465 | done |
21466 | else | |
d589327a | 21467 | echo "$as_me: failed program was:" >&5 |
a848cd7e SC |
21468 | sed 's/^/| /' conftest.$ac_ext >&5 |
21469 | ||
47964710 | 21470 | ac_lo= ac_hi= |
a848cd7e | 21471 | fi |
47964710 VS |
21472 | |
21473 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
a848cd7e | 21474 | fi |
47964710 VS |
21475 | |
21476 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
a848cd7e SC |
21477 | # Binary search between lo and hi bounds. |
21478 | while test "x$ac_lo" != "x$ac_hi"; do | |
21479 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
21480 | cat >conftest.$ac_ext <<_ACEOF | |
21481 | /* confdefs.h. */ | |
21482 | _ACEOF | |
21483 | cat confdefs.h >>conftest.$ac_ext | |
21484 | cat >>conftest.$ac_ext <<_ACEOF | |
21485 | /* end confdefs.h. */ | |
21486 | $ac_includes_default | |
d589327a | 21487 | typedef long ac__type_sizeof_; |
a848cd7e SC |
21488 | int |
21489 | main () | |
21490 | { | |
d589327a | 21491 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
a848cd7e SC |
21492 | test_array [0] = 0 |
21493 | ||
21494 | ; | |
21495 | return 0; | |
21496 | } | |
21497 | _ACEOF | |
21498 | rm -f conftest.$ac_objext | |
47964710 VS |
21499 | if { (ac_try="$ac_compile" |
21500 | case "(($ac_try" in | |
21501 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21502 | *) ac_try_echo=$ac_try;; | |
21503 | esac | |
d589327a | 21504 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 21505 | (eval "$ac_compile") 2>conftest.er1 |
a848cd7e | 21506 | ac_status=$? |
ac1cb8d3 VS |
21507 | grep -v '^ *+' conftest.er1 >conftest.err |
21508 | rm -f conftest.er1 | |
21509 | cat conftest.err >&5 | |
d589327a | 21510 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
21511 | (exit $ac_status); } && { |
21512 | test -z "$ac_c_werror_flag" || | |
21513 | test ! -s conftest.err | |
21514 | } && test -s conftest.$ac_objext; then | |
a848cd7e SC |
21515 | ac_hi=$ac_mid |
21516 | else | |
d589327a | 21517 | echo "$as_me: failed program was:" >&5 |
a848cd7e SC |
21518 | sed 's/^/| /' conftest.$ac_ext >&5 |
21519 | ||
47964710 | 21520 | ac_lo=`expr '(' $ac_mid ')' + 1` |
a848cd7e | 21521 | fi |
47964710 VS |
21522 | |
21523 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
a848cd7e SC |
21524 | done |
21525 | case $ac_lo in | |
21526 | ?*) ac_cv_sizeof_long=$ac_lo;; | |
47964710 | 21527 | '') if test "$ac_cv_type_long" = yes; then |
d589327a | 21528 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long) |
a848cd7e | 21529 | See \`config.log' for more details." >&5 |
d589327a | 21530 | echo "$as_me: error: cannot compute sizeof (long) |
a848cd7e | 21531 | See \`config.log' for more details." >&2;} |
d589327a | 21532 | { (exit 77); exit 77; }; } |
47964710 VS |
21533 | else |
21534 | ac_cv_sizeof_long=0 | |
21535 | fi ;; | |
a848cd7e | 21536 | esac |
a848cd7e SC |
21537 | else |
21538 | cat >conftest.$ac_ext <<_ACEOF | |
21539 | /* confdefs.h. */ | |
21540 | _ACEOF | |
21541 | cat confdefs.h >>conftest.$ac_ext | |
21542 | cat >>conftest.$ac_ext <<_ACEOF | |
21543 | /* end confdefs.h. */ | |
21544 | $ac_includes_default | |
d589327a VZ |
21545 | typedef long ac__type_sizeof_; |
21546 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } | |
21547 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } | |
a848cd7e SC |
21548 | #include <stdio.h> |
21549 | #include <stdlib.h> | |
21550 | int | |
21551 | main () | |
21552 | { | |
21553 | ||
21554 | FILE *f = fopen ("conftest.val", "w"); | |
21555 | if (! f) | |
47964710 | 21556 | return 1; |
d589327a | 21557 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
a848cd7e | 21558 | { |
47964710 | 21559 | long int i = longval (); |
d589327a | 21560 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
47964710 | 21561 | return 1; |
d589327a | 21562 | fprintf (f, "%ld\n", i); |
a848cd7e SC |
21563 | } |
21564 | else | |
21565 | { | |
47964710 | 21566 | unsigned long int i = ulongval (); |
d589327a | 21567 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
47964710 | 21568 | return 1; |
d589327a | 21569 | fprintf (f, "%lu\n", i); |
a848cd7e | 21570 | } |
47964710 | 21571 | return ferror (f) || fclose (f) != 0; |
a848cd7e SC |
21572 | |
21573 | ; | |
21574 | return 0; | |
21575 | } | |
21576 | _ACEOF | |
21577 | rm -f conftest$ac_exeext | |
47964710 VS |
21578 | if { (ac_try="$ac_link" |
21579 | case "(($ac_try" in | |
21580 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21581 | *) ac_try_echo=$ac_try;; | |
21582 | esac | |
d589327a | 21583 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 21584 | (eval "$ac_link") 2>&5 |
a848cd7e | 21585 | ac_status=$? |
d589327a | 21586 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
a848cd7e | 21587 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
47964710 VS |
21588 | { (case "(($ac_try" in |
21589 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21590 | *) ac_try_echo=$ac_try;; | |
21591 | esac | |
d589327a | 21592 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 21593 | (eval "$ac_try") 2>&5 |
a848cd7e | 21594 | ac_status=$? |
d589327a | 21595 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
a848cd7e SC |
21596 | (exit $ac_status); }; }; then |
21597 | ac_cv_sizeof_long=`cat conftest.val` | |
21598 | else | |
d589327a VZ |
21599 | echo "$as_me: program exited with status $ac_status" >&5 |
21600 | echo "$as_me: failed program was:" >&5 | |
a848cd7e SC |
21601 | sed 's/^/| /' conftest.$ac_ext >&5 |
21602 | ||
21603 | ( exit $ac_status ) | |
47964710 | 21604 | if test "$ac_cv_type_long" = yes; then |
d589327a | 21605 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long) |
a848cd7e | 21606 | See \`config.log' for more details." >&5 |
d589327a | 21607 | echo "$as_me: error: cannot compute sizeof (long) |
a848cd7e | 21608 | See \`config.log' for more details." >&2;} |
d589327a | 21609 | { (exit 77); exit 77; }; } |
47964710 VS |
21610 | else |
21611 | ac_cv_sizeof_long=0 | |
21612 | fi | |
a848cd7e | 21613 | fi |
47964710 | 21614 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
21615 | fi |
21616 | rm -f conftest.val | |
bd8a7646 | 21617 | fi |
d589327a VZ |
21618 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 |
21619 | echo "${ECHO_T}$ac_cv_sizeof_long" >&6; } | |
47964710 VS |
21620 | |
21621 | ||
21622 | ||
a848cd7e SC |
21623 | cat >>confdefs.h <<_ACEOF |
21624 | #define SIZEOF_LONG $ac_cv_sizeof_long | |
21625 | _ACEOF | |
21626 | ||
21627 | ||
d589327a VZ |
21628 | { echo "$as_me:$LINENO: checking for size_t" >&5 |
21629 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6; } | |
21630 | if test "${ac_cv_type_size_t+set}" = set; then | |
21631 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21632 | else | |
21633 | cat >conftest.$ac_ext <<_ACEOF | |
21634 | /* confdefs.h. */ | |
21635 | _ACEOF | |
21636 | cat confdefs.h >>conftest.$ac_ext | |
21637 | cat >>conftest.$ac_ext <<_ACEOF | |
21638 | /* end confdefs.h. */ | |
21639 | $ac_includes_default | |
21640 | typedef size_t ac__type_new_; | |
21641 | int | |
21642 | main () | |
21643 | { | |
21644 | if ((ac__type_new_ *) 0) | |
21645 | return 0; | |
21646 | if (sizeof (ac__type_new_)) | |
21647 | return 0; | |
21648 | ; | |
21649 | return 0; | |
21650 | } | |
21651 | _ACEOF | |
21652 | rm -f conftest.$ac_objext | |
21653 | if { (ac_try="$ac_compile" | |
21654 | case "(($ac_try" in | |
21655 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21656 | *) ac_try_echo=$ac_try;; | |
21657 | esac | |
21658 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
21659 | (eval "$ac_compile") 2>conftest.er1 | |
21660 | ac_status=$? | |
21661 | grep -v '^ *+' conftest.er1 >conftest.err | |
21662 | rm -f conftest.er1 | |
21663 | cat conftest.err >&5 | |
21664 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21665 | (exit $ac_status); } && { | |
21666 | test -z "$ac_c_werror_flag" || | |
21667 | test ! -s conftest.err | |
21668 | } && test -s conftest.$ac_objext; then | |
21669 | ac_cv_type_size_t=yes | |
21670 | else | |
21671 | echo "$as_me: failed program was:" >&5 | |
21672 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21673 | ||
21674 | ac_cv_type_size_t=no | |
21675 | fi | |
21676 | ||
21677 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
21678 | fi | |
21679 | { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 | |
21680 | echo "${ECHO_T}$ac_cv_type_size_t" >&6; } | |
21681 | ||
47964710 VS |
21682 | # The cast to long int works around a bug in the HP C Compiler |
21683 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
21684 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
21685 | # This bug is HP SR number 8606223364. | |
d589327a VZ |
21686 | { echo "$as_me:$LINENO: checking size of size_t" >&5 |
21687 | echo $ECHO_N "checking size of size_t... $ECHO_C" >&6; } | |
a848cd7e | 21688 | if test "${ac_cv_sizeof_size_t+set}" = set; then |
d589327a | 21689 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a848cd7e | 21690 | else |
a848cd7e SC |
21691 | if test "$cross_compiling" = yes; then |
21692 | # Depending upon the size, compute the lo and hi bounds. | |
21693 | cat >conftest.$ac_ext <<_ACEOF | |
21694 | /* confdefs.h. */ | |
21695 | _ACEOF | |
21696 | cat confdefs.h >>conftest.$ac_ext | |
21697 | cat >>conftest.$ac_ext <<_ACEOF | |
21698 | /* end confdefs.h. */ | |
21699 | $ac_includes_default | |
d589327a | 21700 | typedef size_t ac__type_sizeof_; |
a848cd7e SC |
21701 | int |
21702 | main () | |
21703 | { | |
d589327a | 21704 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; |
a848cd7e SC |
21705 | test_array [0] = 0 |
21706 | ||
21707 | ; | |
21708 | return 0; | |
21709 | } | |
21710 | _ACEOF | |
21711 | rm -f conftest.$ac_objext | |
47964710 VS |
21712 | if { (ac_try="$ac_compile" |
21713 | case "(($ac_try" in | |
21714 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21715 | *) ac_try_echo=$ac_try;; | |
21716 | esac | |
d589327a | 21717 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 21718 | (eval "$ac_compile") 2>conftest.er1 |
a848cd7e | 21719 | ac_status=$? |
ac1cb8d3 VS |
21720 | grep -v '^ *+' conftest.er1 >conftest.err |
21721 | rm -f conftest.er1 | |
21722 | cat conftest.err >&5 | |
d589327a | 21723 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
21724 | (exit $ac_status); } && { |
21725 | test -z "$ac_c_werror_flag" || | |
21726 | test ! -s conftest.err | |
21727 | } && test -s conftest.$ac_objext; then | |
a848cd7e SC |
21728 | ac_lo=0 ac_mid=0 |
21729 | while :; do | |
21730 | cat >conftest.$ac_ext <<_ACEOF | |
21731 | /* confdefs.h. */ | |
21732 | _ACEOF | |
21733 | cat confdefs.h >>conftest.$ac_ext | |
21734 | cat >>conftest.$ac_ext <<_ACEOF | |
21735 | /* end confdefs.h. */ | |
21736 | $ac_includes_default | |
d589327a | 21737 | typedef size_t ac__type_sizeof_; |
a848cd7e SC |
21738 | int |
21739 | main () | |
21740 | { | |
d589327a | 21741 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
a848cd7e SC |
21742 | test_array [0] = 0 |
21743 | ||
21744 | ; | |
21745 | return 0; | |
21746 | } | |
21747 | _ACEOF | |
21748 | rm -f conftest.$ac_objext | |
47964710 VS |
21749 | if { (ac_try="$ac_compile" |
21750 | case "(($ac_try" in | |
21751 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21752 | *) ac_try_echo=$ac_try;; | |
21753 | esac | |
d589327a | 21754 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 21755 | (eval "$ac_compile") 2>conftest.er1 |
a848cd7e | 21756 | ac_status=$? |
ac1cb8d3 VS |
21757 | grep -v '^ *+' conftest.er1 >conftest.err |
21758 | rm -f conftest.er1 | |
21759 | cat conftest.err >&5 | |
d589327a | 21760 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
21761 | (exit $ac_status); } && { |
21762 | test -z "$ac_c_werror_flag" || | |
21763 | test ! -s conftest.err | |
21764 | } && test -s conftest.$ac_objext; then | |
a848cd7e SC |
21765 | ac_hi=$ac_mid; break |
21766 | else | |
d589327a | 21767 | echo "$as_me: failed program was:" >&5 |
a848cd7e SC |
21768 | sed 's/^/| /' conftest.$ac_ext >&5 |
21769 | ||
47964710 VS |
21770 | ac_lo=`expr $ac_mid + 1` |
21771 | if test $ac_lo -le $ac_mid; then | |
21772 | ac_lo= ac_hi= | |
21773 | break | |
21774 | fi | |
21775 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 21776 | fi |
47964710 VS |
21777 | |
21778 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
a848cd7e SC |
21779 | done |
21780 | else | |
d589327a | 21781 | echo "$as_me: failed program was:" >&5 |
a848cd7e SC |
21782 | sed 's/^/| /' conftest.$ac_ext >&5 |
21783 | ||
47964710 | 21784 | cat >conftest.$ac_ext <<_ACEOF |
a848cd7e SC |
21785 | /* confdefs.h. */ |
21786 | _ACEOF | |
21787 | cat confdefs.h >>conftest.$ac_ext | |
21788 | cat >>conftest.$ac_ext <<_ACEOF | |
21789 | /* end confdefs.h. */ | |
21790 | $ac_includes_default | |
d589327a | 21791 | typedef size_t ac__type_sizeof_; |
a848cd7e SC |
21792 | int |
21793 | main () | |
21794 | { | |
d589327a | 21795 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; |
a848cd7e SC |
21796 | test_array [0] = 0 |
21797 | ||
21798 | ; | |
21799 | return 0; | |
21800 | } | |
21801 | _ACEOF | |
21802 | rm -f conftest.$ac_objext | |
47964710 VS |
21803 | if { (ac_try="$ac_compile" |
21804 | case "(($ac_try" in | |
21805 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21806 | *) ac_try_echo=$ac_try;; | |
21807 | esac | |
d589327a | 21808 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 21809 | (eval "$ac_compile") 2>conftest.er1 |
a848cd7e | 21810 | ac_status=$? |
ac1cb8d3 VS |
21811 | grep -v '^ *+' conftest.er1 >conftest.err |
21812 | rm -f conftest.er1 | |
21813 | cat conftest.err >&5 | |
d589327a | 21814 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
21815 | (exit $ac_status); } && { |
21816 | test -z "$ac_c_werror_flag" || | |
21817 | test ! -s conftest.err | |
21818 | } && test -s conftest.$ac_objext; then | |
a848cd7e SC |
21819 | ac_hi=-1 ac_mid=-1 |
21820 | while :; do | |
21821 | cat >conftest.$ac_ext <<_ACEOF | |
21822 | /* confdefs.h. */ | |
21823 | _ACEOF | |
21824 | cat confdefs.h >>conftest.$ac_ext | |
21825 | cat >>conftest.$ac_ext <<_ACEOF | |
21826 | /* end confdefs.h. */ | |
21827 | $ac_includes_default | |
d589327a | 21828 | typedef size_t ac__type_sizeof_; |
a848cd7e SC |
21829 | int |
21830 | main () | |
21831 | { | |
d589327a | 21832 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; |
a848cd7e SC |
21833 | test_array [0] = 0 |
21834 | ||
21835 | ; | |
21836 | return 0; | |
21837 | } | |
21838 | _ACEOF | |
21839 | rm -f conftest.$ac_objext | |
47964710 VS |
21840 | if { (ac_try="$ac_compile" |
21841 | case "(($ac_try" in | |
21842 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21843 | *) ac_try_echo=$ac_try;; | |
21844 | esac | |
d589327a | 21845 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 21846 | (eval "$ac_compile") 2>conftest.er1 |
a848cd7e | 21847 | ac_status=$? |
ac1cb8d3 VS |
21848 | grep -v '^ *+' conftest.er1 >conftest.err |
21849 | rm -f conftest.er1 | |
21850 | cat conftest.err >&5 | |
d589327a | 21851 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
21852 | (exit $ac_status); } && { |
21853 | test -z "$ac_c_werror_flag" || | |
21854 | test ! -s conftest.err | |
21855 | } && test -s conftest.$ac_objext; then | |
a848cd7e SC |
21856 | ac_lo=$ac_mid; break |
21857 | else | |
d589327a | 21858 | echo "$as_me: failed program was:" >&5 |
a848cd7e SC |
21859 | sed 's/^/| /' conftest.$ac_ext >&5 |
21860 | ||
47964710 VS |
21861 | ac_hi=`expr '(' $ac_mid ')' - 1` |
21862 | if test $ac_mid -le $ac_hi; then | |
21863 | ac_lo= ac_hi= | |
21864 | break | |
21865 | fi | |
21866 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 21867 | fi |
47964710 VS |
21868 | |
21869 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
a848cd7e SC |
21870 | done |
21871 | else | |
d589327a | 21872 | echo "$as_me: failed program was:" >&5 |
a848cd7e SC |
21873 | sed 's/^/| /' conftest.$ac_ext >&5 |
21874 | ||
47964710 | 21875 | ac_lo= ac_hi= |
a848cd7e | 21876 | fi |
47964710 VS |
21877 | |
21878 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
a848cd7e | 21879 | fi |
47964710 VS |
21880 | |
21881 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
a848cd7e SC |
21882 | # Binary search between lo and hi bounds. |
21883 | while test "x$ac_lo" != "x$ac_hi"; do | |
21884 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
21885 | cat >conftest.$ac_ext <<_ACEOF | |
21886 | /* confdefs.h. */ | |
21887 | _ACEOF | |
21888 | cat confdefs.h >>conftest.$ac_ext | |
21889 | cat >>conftest.$ac_ext <<_ACEOF | |
21890 | /* end confdefs.h. */ | |
21891 | $ac_includes_default | |
d589327a | 21892 | typedef size_t ac__type_sizeof_; |
a848cd7e SC |
21893 | int |
21894 | main () | |
21895 | { | |
d589327a | 21896 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
a848cd7e SC |
21897 | test_array [0] = 0 |
21898 | ||
21899 | ; | |
21900 | return 0; | |
21901 | } | |
21902 | _ACEOF | |
21903 | rm -f conftest.$ac_objext | |
47964710 VS |
21904 | if { (ac_try="$ac_compile" |
21905 | case "(($ac_try" in | |
21906 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21907 | *) ac_try_echo=$ac_try;; | |
21908 | esac | |
d589327a | 21909 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 21910 | (eval "$ac_compile") 2>conftest.er1 |
a848cd7e | 21911 | ac_status=$? |
ac1cb8d3 VS |
21912 | grep -v '^ *+' conftest.er1 >conftest.err |
21913 | rm -f conftest.er1 | |
21914 | cat conftest.err >&5 | |
d589327a | 21915 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
21916 | (exit $ac_status); } && { |
21917 | test -z "$ac_c_werror_flag" || | |
21918 | test ! -s conftest.err | |
21919 | } && test -s conftest.$ac_objext; then | |
a848cd7e SC |
21920 | ac_hi=$ac_mid |
21921 | else | |
d589327a | 21922 | echo "$as_me: failed program was:" >&5 |
a848cd7e SC |
21923 | sed 's/^/| /' conftest.$ac_ext >&5 |
21924 | ||
47964710 | 21925 | ac_lo=`expr '(' $ac_mid ')' + 1` |
a848cd7e | 21926 | fi |
47964710 VS |
21927 | |
21928 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
a848cd7e SC |
21929 | done |
21930 | case $ac_lo in | |
21931 | ?*) ac_cv_sizeof_size_t=$ac_lo;; | |
47964710 | 21932 | '') if test "$ac_cv_type_size_t" = yes; then |
d589327a | 21933 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t) |
a848cd7e | 21934 | See \`config.log' for more details." >&5 |
d589327a | 21935 | echo "$as_me: error: cannot compute sizeof (size_t) |
a848cd7e | 21936 | See \`config.log' for more details." >&2;} |
d589327a | 21937 | { (exit 77); exit 77; }; } |
47964710 VS |
21938 | else |
21939 | ac_cv_sizeof_size_t=0 | |
21940 | fi ;; | |
a848cd7e | 21941 | esac |
a848cd7e SC |
21942 | else |
21943 | cat >conftest.$ac_ext <<_ACEOF | |
21944 | /* confdefs.h. */ | |
21945 | _ACEOF | |
21946 | cat confdefs.h >>conftest.$ac_ext | |
21947 | cat >>conftest.$ac_ext <<_ACEOF | |
21948 | /* end confdefs.h. */ | |
21949 | $ac_includes_default | |
d589327a VZ |
21950 | typedef size_t ac__type_sizeof_; |
21951 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } | |
21952 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } | |
a848cd7e SC |
21953 | #include <stdio.h> |
21954 | #include <stdlib.h> | |
21955 | int | |
21956 | main () | |
21957 | { | |
21958 | ||
21959 | FILE *f = fopen ("conftest.val", "w"); | |
21960 | if (! f) | |
47964710 | 21961 | return 1; |
d589327a | 21962 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
a848cd7e | 21963 | { |
47964710 | 21964 | long int i = longval (); |
d589327a | 21965 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
47964710 | 21966 | return 1; |
d589327a | 21967 | fprintf (f, "%ld\n", i); |
a848cd7e SC |
21968 | } |
21969 | else | |
21970 | { | |
47964710 | 21971 | unsigned long int i = ulongval (); |
d589327a | 21972 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
47964710 | 21973 | return 1; |
d589327a | 21974 | fprintf (f, "%lu\n", i); |
a848cd7e | 21975 | } |
47964710 | 21976 | return ferror (f) || fclose (f) != 0; |
a848cd7e SC |
21977 | |
21978 | ; | |
21979 | return 0; | |
21980 | } | |
21981 | _ACEOF | |
21982 | rm -f conftest$ac_exeext | |
47964710 VS |
21983 | if { (ac_try="$ac_link" |
21984 | case "(($ac_try" in | |
21985 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21986 | *) ac_try_echo=$ac_try;; | |
21987 | esac | |
d589327a | 21988 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 21989 | (eval "$ac_link") 2>&5 |
a848cd7e | 21990 | ac_status=$? |
d589327a | 21991 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
a848cd7e | 21992 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
47964710 VS |
21993 | { (case "(($ac_try" in |
21994 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21995 | *) ac_try_echo=$ac_try;; | |
21996 | esac | |
d589327a | 21997 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 21998 | (eval "$ac_try") 2>&5 |
a848cd7e | 21999 | ac_status=$? |
d589327a | 22000 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
a848cd7e SC |
22001 | (exit $ac_status); }; }; then |
22002 | ac_cv_sizeof_size_t=`cat conftest.val` | |
22003 | else | |
d589327a VZ |
22004 | echo "$as_me: program exited with status $ac_status" >&5 |
22005 | echo "$as_me: failed program was:" >&5 | |
a848cd7e SC |
22006 | sed 's/^/| /' conftest.$ac_ext >&5 |
22007 | ||
22008 | ( exit $ac_status ) | |
47964710 | 22009 | if test "$ac_cv_type_size_t" = yes; then |
d589327a | 22010 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t) |
a848cd7e | 22011 | See \`config.log' for more details." >&5 |
d589327a | 22012 | echo "$as_me: error: cannot compute sizeof (size_t) |
a848cd7e | 22013 | See \`config.log' for more details." >&2;} |
d589327a | 22014 | { (exit 77); exit 77; }; } |
47964710 VS |
22015 | else |
22016 | ac_cv_sizeof_size_t=0 | |
22017 | fi | |
a848cd7e | 22018 | fi |
47964710 | 22019 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
22020 | fi |
22021 | rm -f conftest.val | |
4db03d26 | 22022 | fi |
d589327a VZ |
22023 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5 |
22024 | echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; } | |
47964710 VS |
22025 | |
22026 | ||
22027 | ||
a848cd7e SC |
22028 | cat >>confdefs.h <<_ACEOF |
22029 | #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t | |
22030 | _ACEOF | |
22031 | ||
22032 | ||
22033 | ||
22034 | case "${host}" in | |
22035 | arm-*-linux* ) | |
d589327a VZ |
22036 | { echo "$as_me:$LINENO: checking for long long" >&5 |
22037 | echo $ECHO_N "checking for long long... $ECHO_C" >&6; } | |
22038 | if test "${ac_cv_type_long_long+set}" = set; then | |
22039 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22040 | else | |
22041 | cat >conftest.$ac_ext <<_ACEOF | |
22042 | /* confdefs.h. */ | |
22043 | _ACEOF | |
22044 | cat confdefs.h >>conftest.$ac_ext | |
22045 | cat >>conftest.$ac_ext <<_ACEOF | |
22046 | /* end confdefs.h. */ | |
22047 | $ac_includes_default | |
22048 | typedef long long ac__type_new_; | |
22049 | int | |
22050 | main () | |
22051 | { | |
22052 | if ((ac__type_new_ *) 0) | |
22053 | return 0; | |
22054 | if (sizeof (ac__type_new_)) | |
22055 | return 0; | |
22056 | ; | |
22057 | return 0; | |
22058 | } | |
22059 | _ACEOF | |
22060 | rm -f conftest.$ac_objext | |
22061 | if { (ac_try="$ac_compile" | |
22062 | case "(($ac_try" in | |
22063 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22064 | *) ac_try_echo=$ac_try;; | |
22065 | esac | |
22066 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
22067 | (eval "$ac_compile") 2>conftest.er1 | |
22068 | ac_status=$? | |
22069 | grep -v '^ *+' conftest.er1 >conftest.err | |
22070 | rm -f conftest.er1 | |
22071 | cat conftest.err >&5 | |
22072 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22073 | (exit $ac_status); } && { | |
22074 | test -z "$ac_c_werror_flag" || | |
22075 | test ! -s conftest.err | |
22076 | } && test -s conftest.$ac_objext; then | |
22077 | ac_cv_type_long_long=yes | |
22078 | else | |
22079 | echo "$as_me: failed program was:" >&5 | |
22080 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22081 | ||
22082 | ac_cv_type_long_long=no | |
22083 | fi | |
22084 | ||
22085 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
22086 | fi | |
22087 | { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 | |
22088 | echo "${ECHO_T}$ac_cv_type_long_long" >&6; } | |
22089 | ||
22090 | # The cast to long int works around a bug in the HP C Compiler | |
47964710 VS |
22091 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
22092 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
22093 | # This bug is HP SR number 8606223364. | |
d589327a VZ |
22094 | { echo "$as_me:$LINENO: checking size of long long" >&5 |
22095 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6; } | |
a848cd7e | 22096 | if test "${ac_cv_sizeof_long_long+set}" = set; then |
d589327a | 22097 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a848cd7e | 22098 | else |
a848cd7e SC |
22099 | if test "$cross_compiling" = yes; then |
22100 | # Depending upon the size, compute the lo and hi bounds. | |
22101 | cat >conftest.$ac_ext <<_ACEOF | |
22102 | /* confdefs.h. */ | |
22103 | _ACEOF | |
22104 | cat confdefs.h >>conftest.$ac_ext | |
22105 | cat >>conftest.$ac_ext <<_ACEOF | |
22106 | /* end confdefs.h. */ | |
22107 | $ac_includes_default | |
d589327a | 22108 | typedef long long ac__type_sizeof_; |
a848cd7e SC |
22109 | int |
22110 | main () | |
22111 | { | |
d589327a | 22112 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; |
a848cd7e SC |
22113 | test_array [0] = 0 |
22114 | ||
22115 | ; | |
22116 | return 0; | |
22117 | } | |
22118 | _ACEOF | |
22119 | rm -f conftest.$ac_objext | |
47964710 VS |
22120 | if { (ac_try="$ac_compile" |
22121 | case "(($ac_try" in | |
22122 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22123 | *) ac_try_echo=$ac_try;; | |
22124 | esac | |
d589327a | 22125 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 22126 | (eval "$ac_compile") 2>conftest.er1 |
a848cd7e | 22127 | ac_status=$? |
ac1cb8d3 VS |
22128 | grep -v '^ *+' conftest.er1 >conftest.err |
22129 | rm -f conftest.er1 | |
22130 | cat conftest.err >&5 | |
d589327a | 22131 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
22132 | (exit $ac_status); } && { |
22133 | test -z "$ac_c_werror_flag" || | |
22134 | test ! -s conftest.err | |
22135 | } && test -s conftest.$ac_objext; then | |
a848cd7e SC |
22136 | ac_lo=0 ac_mid=0 |
22137 | while :; do | |
22138 | cat >conftest.$ac_ext <<_ACEOF | |
22139 | /* confdefs.h. */ | |
22140 | _ACEOF | |
22141 | cat confdefs.h >>conftest.$ac_ext | |
22142 | cat >>conftest.$ac_ext <<_ACEOF | |
22143 | /* end confdefs.h. */ | |
22144 | $ac_includes_default | |
d589327a | 22145 | typedef long long ac__type_sizeof_; |
a848cd7e SC |
22146 | int |
22147 | main () | |
22148 | { | |
d589327a | 22149 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
a848cd7e SC |
22150 | test_array [0] = 0 |
22151 | ||
22152 | ; | |
22153 | return 0; | |
22154 | } | |
22155 | _ACEOF | |
22156 | rm -f conftest.$ac_objext | |
47964710 VS |
22157 | if { (ac_try="$ac_compile" |
22158 | case "(($ac_try" in | |
22159 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22160 | *) ac_try_echo=$ac_try;; | |
22161 | esac | |
d589327a | 22162 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 22163 | (eval "$ac_compile") 2>conftest.er1 |
a848cd7e | 22164 | ac_status=$? |
ac1cb8d3 VS |
22165 | grep -v '^ *+' conftest.er1 >conftest.err |
22166 | rm -f conftest.er1 | |
22167 | cat conftest.err >&5 | |
d589327a | 22168 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
22169 | (exit $ac_status); } && { |
22170 | test -z "$ac_c_werror_flag" || | |
22171 | test ! -s conftest.err | |
22172 | } && test -s conftest.$ac_objext; then | |
a848cd7e SC |
22173 | ac_hi=$ac_mid; break |
22174 | else | |
d589327a | 22175 | echo "$as_me: failed program was:" >&5 |
a848cd7e SC |
22176 | sed 's/^/| /' conftest.$ac_ext >&5 |
22177 | ||
47964710 VS |
22178 | ac_lo=`expr $ac_mid + 1` |
22179 | if test $ac_lo -le $ac_mid; then | |
22180 | ac_lo= ac_hi= | |
22181 | break | |
22182 | fi | |
22183 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 22184 | fi |
47964710 VS |
22185 | |
22186 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
a848cd7e SC |
22187 | done |
22188 | else | |
d589327a | 22189 | echo "$as_me: failed program was:" >&5 |
a848cd7e SC |
22190 | sed 's/^/| /' conftest.$ac_ext >&5 |
22191 | ||
47964710 | 22192 | cat >conftest.$ac_ext <<_ACEOF |
a848cd7e SC |
22193 | /* confdefs.h. */ |
22194 | _ACEOF | |
22195 | cat confdefs.h >>conftest.$ac_ext | |
22196 | cat >>conftest.$ac_ext <<_ACEOF | |
22197 | /* end confdefs.h. */ | |
22198 | $ac_includes_default | |
d589327a | 22199 | typedef long long ac__type_sizeof_; |
a848cd7e SC |
22200 | int |
22201 | main () | |
22202 | { | |
d589327a | 22203 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; |
a848cd7e SC |
22204 | test_array [0] = 0 |
22205 | ||
22206 | ; | |
22207 | return 0; | |
22208 | } | |
22209 | _ACEOF | |
22210 | rm -f conftest.$ac_objext | |
47964710 VS |
22211 | if { (ac_try="$ac_compile" |
22212 | case "(($ac_try" in | |
22213 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22214 | *) ac_try_echo=$ac_try;; | |
22215 | esac | |
d589327a | 22216 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 22217 | (eval "$ac_compile") 2>conftest.er1 |
a848cd7e | 22218 | ac_status=$? |
ac1cb8d3 VS |
22219 | grep -v '^ *+' conftest.er1 >conftest.err |
22220 | rm -f conftest.er1 | |
22221 | cat conftest.err >&5 | |
d589327a | 22222 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
22223 | (exit $ac_status); } && { |
22224 | test -z "$ac_c_werror_flag" || | |
22225 | test ! -s conftest.err | |
22226 | } && test -s conftest.$ac_objext; then | |
a848cd7e SC |
22227 | ac_hi=-1 ac_mid=-1 |
22228 | while :; do | |
22229 | cat >conftest.$ac_ext <<_ACEOF | |
22230 | /* confdefs.h. */ | |
22231 | _ACEOF | |
22232 | cat confdefs.h >>conftest.$ac_ext | |
22233 | cat >>conftest.$ac_ext <<_ACEOF | |
22234 | /* end confdefs.h. */ | |
22235 | $ac_includes_default | |
d589327a | 22236 | typedef long long ac__type_sizeof_; |
a848cd7e SC |
22237 | int |
22238 | main () | |
22239 | { | |
d589327a | 22240 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; |
a848cd7e SC |
22241 | test_array [0] = 0 |
22242 | ||
22243 | ; | |
22244 | return 0; | |
22245 | } | |
22246 | _ACEOF | |
22247 | rm -f conftest.$ac_objext | |
47964710 VS |
22248 | if { (ac_try="$ac_compile" |
22249 | case "(($ac_try" in | |
22250 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22251 | *) ac_try_echo=$ac_try;; | |
22252 | esac | |
d589327a | 22253 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 22254 | (eval "$ac_compile") 2>conftest.er1 |
a848cd7e | 22255 | ac_status=$? |
ac1cb8d3 VS |
22256 | grep -v '^ *+' conftest.er1 >conftest.err |
22257 | rm -f conftest.er1 | |
22258 | cat conftest.err >&5 | |
d589327a | 22259 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
22260 | (exit $ac_status); } && { |
22261 | test -z "$ac_c_werror_flag" || | |
22262 | test ! -s conftest.err | |
22263 | } && test -s conftest.$ac_objext; then | |
a848cd7e SC |
22264 | ac_lo=$ac_mid; break |
22265 | else | |
d589327a | 22266 | echo "$as_me: failed program was:" >&5 |
a848cd7e SC |
22267 | sed 's/^/| /' conftest.$ac_ext >&5 |
22268 | ||
47964710 VS |
22269 | ac_hi=`expr '(' $ac_mid ')' - 1` |
22270 | if test $ac_mid -le $ac_hi; then | |
22271 | ac_lo= ac_hi= | |
22272 | break | |
22273 | fi | |
22274 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 22275 | fi |
47964710 VS |
22276 | |
22277 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
a848cd7e SC |
22278 | done |
22279 | else | |
d589327a | 22280 | echo "$as_me: failed program was:" >&5 |
a848cd7e SC |
22281 | sed 's/^/| /' conftest.$ac_ext >&5 |
22282 | ||
47964710 | 22283 | ac_lo= ac_hi= |
a848cd7e | 22284 | fi |
47964710 VS |
22285 | |
22286 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
a848cd7e | 22287 | fi |
47964710 VS |
22288 | |
22289 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
a848cd7e SC |
22290 | # Binary search between lo and hi bounds. |
22291 | while test "x$ac_lo" != "x$ac_hi"; do | |
22292 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
22293 | cat >conftest.$ac_ext <<_ACEOF | |
22294 | /* confdefs.h. */ | |
22295 | _ACEOF | |
22296 | cat confdefs.h >>conftest.$ac_ext | |
22297 | cat >>conftest.$ac_ext <<_ACEOF | |
22298 | /* end confdefs.h. */ | |
22299 | $ac_includes_default | |
d589327a | 22300 | typedef long long ac__type_sizeof_; |
a848cd7e SC |
22301 | int |
22302 | main () | |
22303 | { | |
d589327a | 22304 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
a848cd7e SC |
22305 | test_array [0] = 0 |
22306 | ||
22307 | ; | |
22308 | return 0; | |
22309 | } | |
22310 | _ACEOF | |
22311 | rm -f conftest.$ac_objext | |
47964710 VS |
22312 | if { (ac_try="$ac_compile" |
22313 | case "(($ac_try" in | |
22314 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22315 | *) ac_try_echo=$ac_try;; | |
22316 | esac | |
d589327a | 22317 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 22318 | (eval "$ac_compile") 2>conftest.er1 |
a848cd7e | 22319 | ac_status=$? |
ac1cb8d3 VS |
22320 | grep -v '^ *+' conftest.er1 >conftest.err |
22321 | rm -f conftest.er1 | |
22322 | cat conftest.err >&5 | |
d589327a | 22323 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
22324 | (exit $ac_status); } && { |
22325 | test -z "$ac_c_werror_flag" || | |
22326 | test ! -s conftest.err | |
22327 | } && test -s conftest.$ac_objext; then | |
a848cd7e SC |
22328 | ac_hi=$ac_mid |
22329 | else | |
d589327a | 22330 | echo "$as_me: failed program was:" >&5 |
a848cd7e SC |
22331 | sed 's/^/| /' conftest.$ac_ext >&5 |
22332 | ||
47964710 | 22333 | ac_lo=`expr '(' $ac_mid ')' + 1` |
a848cd7e | 22334 | fi |
47964710 VS |
22335 | |
22336 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
a848cd7e SC |
22337 | done |
22338 | case $ac_lo in | |
22339 | ?*) ac_cv_sizeof_long_long=$ac_lo;; | |
47964710 | 22340 | '') if test "$ac_cv_type_long_long" = yes; then |
d589327a | 22341 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long) |
a848cd7e | 22342 | See \`config.log' for more details." >&5 |
d589327a | 22343 | echo "$as_me: error: cannot compute sizeof (long long) |
a848cd7e | 22344 | See \`config.log' for more details." >&2;} |
d589327a | 22345 | { (exit 77); exit 77; }; } |
47964710 VS |
22346 | else |
22347 | ac_cv_sizeof_long_long=0 | |
22348 | fi ;; | |
a848cd7e | 22349 | esac |
a848cd7e SC |
22350 | else |
22351 | cat >conftest.$ac_ext <<_ACEOF | |
22352 | /* confdefs.h. */ | |
22353 | _ACEOF | |
22354 | cat confdefs.h >>conftest.$ac_ext | |
22355 | cat >>conftest.$ac_ext <<_ACEOF | |
22356 | /* end confdefs.h. */ | |
22357 | $ac_includes_default | |
d589327a VZ |
22358 | typedef long long ac__type_sizeof_; |
22359 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } | |
22360 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } | |
a848cd7e SC |
22361 | #include <stdio.h> |
22362 | #include <stdlib.h> | |
22363 | int | |
22364 | main () | |
22365 | { | |
22366 | ||
22367 | FILE *f = fopen ("conftest.val", "w"); | |
22368 | if (! f) | |
47964710 | 22369 | return 1; |
d589327a | 22370 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
a848cd7e | 22371 | { |
47964710 | 22372 | long int i = longval (); |
d589327a | 22373 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
47964710 | 22374 | return 1; |
d589327a | 22375 | fprintf (f, "%ld\n", i); |
a848cd7e SC |
22376 | } |
22377 | else | |
22378 | { | |
47964710 | 22379 | unsigned long int i = ulongval (); |
d589327a | 22380 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
47964710 | 22381 | return 1; |
d589327a | 22382 | fprintf (f, "%lu\n", i); |
a848cd7e | 22383 | } |
47964710 | 22384 | return ferror (f) || fclose (f) != 0; |
a848cd7e SC |
22385 | |
22386 | ; | |
22387 | return 0; | |
22388 | } | |
22389 | _ACEOF | |
22390 | rm -f conftest$ac_exeext | |
47964710 VS |
22391 | if { (ac_try="$ac_link" |
22392 | case "(($ac_try" in | |
22393 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22394 | *) ac_try_echo=$ac_try;; | |
22395 | esac | |
d589327a | 22396 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 22397 | (eval "$ac_link") 2>&5 |
a848cd7e | 22398 | ac_status=$? |
d589327a | 22399 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
a848cd7e | 22400 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
47964710 VS |
22401 | { (case "(($ac_try" in |
22402 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22403 | *) ac_try_echo=$ac_try;; | |
22404 | esac | |
d589327a | 22405 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 22406 | (eval "$ac_try") 2>&5 |
a848cd7e | 22407 | ac_status=$? |
d589327a | 22408 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
a848cd7e SC |
22409 | (exit $ac_status); }; }; then |
22410 | ac_cv_sizeof_long_long=`cat conftest.val` | |
22411 | else | |
d589327a VZ |
22412 | echo "$as_me: program exited with status $ac_status" >&5 |
22413 | echo "$as_me: failed program was:" >&5 | |
a848cd7e SC |
22414 | sed 's/^/| /' conftest.$ac_ext >&5 |
22415 | ||
22416 | ( exit $ac_status ) | |
47964710 | 22417 | if test "$ac_cv_type_long_long" = yes; then |
d589327a | 22418 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long) |
a848cd7e | 22419 | See \`config.log' for more details." >&5 |
d589327a | 22420 | echo "$as_me: error: cannot compute sizeof (long long) |
a848cd7e | 22421 | See \`config.log' for more details." >&2;} |
d589327a | 22422 | { (exit 77); exit 77; }; } |
47964710 VS |
22423 | else |
22424 | ac_cv_sizeof_long_long=0 | |
22425 | fi | |
a848cd7e | 22426 | fi |
47964710 | 22427 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
22428 | fi |
22429 | rm -f conftest.val | |
bd8a7646 | 22430 | fi |
d589327a VZ |
22431 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 |
22432 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; } | |
47964710 VS |
22433 | |
22434 | ||
22435 | ||
a848cd7e SC |
22436 | cat >>confdefs.h <<_ACEOF |
22437 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
22438 | _ACEOF | |
22439 | ||
22440 | ||
22441 | ;; | |
22442 | *-hp-hpux* ) | |
d589327a VZ |
22443 | { echo "$as_me:$LINENO: checking for long long" >&5 |
22444 | echo $ECHO_N "checking for long long... $ECHO_C" >&6; } | |
22445 | if test "${ac_cv_type_long_long+set}" = set; then | |
22446 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22447 | else | |
22448 | cat >conftest.$ac_ext <<_ACEOF | |
22449 | /* confdefs.h. */ | |
22450 | _ACEOF | |
22451 | cat confdefs.h >>conftest.$ac_ext | |
22452 | cat >>conftest.$ac_ext <<_ACEOF | |
22453 | /* end confdefs.h. */ | |
22454 | $ac_includes_default | |
22455 | typedef long long ac__type_new_; | |
22456 | int | |
22457 | main () | |
22458 | { | |
22459 | if ((ac__type_new_ *) 0) | |
22460 | return 0; | |
22461 | if (sizeof (ac__type_new_)) | |
22462 | return 0; | |
22463 | ; | |
22464 | return 0; | |
22465 | } | |
22466 | _ACEOF | |
22467 | rm -f conftest.$ac_objext | |
22468 | if { (ac_try="$ac_compile" | |
22469 | case "(($ac_try" in | |
22470 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22471 | *) ac_try_echo=$ac_try;; | |
22472 | esac | |
22473 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
22474 | (eval "$ac_compile") 2>conftest.er1 | |
22475 | ac_status=$? | |
22476 | grep -v '^ *+' conftest.er1 >conftest.err | |
22477 | rm -f conftest.er1 | |
22478 | cat conftest.err >&5 | |
22479 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22480 | (exit $ac_status); } && { | |
22481 | test -z "$ac_c_werror_flag" || | |
22482 | test ! -s conftest.err | |
22483 | } && test -s conftest.$ac_objext; then | |
22484 | ac_cv_type_long_long=yes | |
22485 | else | |
22486 | echo "$as_me: failed program was:" >&5 | |
22487 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22488 | ||
22489 | ac_cv_type_long_long=no | |
22490 | fi | |
22491 | ||
22492 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
22493 | fi | |
22494 | { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 | |
22495 | echo "${ECHO_T}$ac_cv_type_long_long" >&6; } | |
22496 | ||
22497 | # The cast to long int works around a bug in the HP C Compiler | |
47964710 VS |
22498 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
22499 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
22500 | # This bug is HP SR number 8606223364. | |
d589327a VZ |
22501 | { echo "$as_me:$LINENO: checking size of long long" >&5 |
22502 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6; } | |
a848cd7e | 22503 | if test "${ac_cv_sizeof_long_long+set}" = set; then |
d589327a | 22504 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a848cd7e | 22505 | else |
a848cd7e SC |
22506 | if test "$cross_compiling" = yes; then |
22507 | # Depending upon the size, compute the lo and hi bounds. | |
22508 | cat >conftest.$ac_ext <<_ACEOF | |
22509 | /* confdefs.h. */ | |
22510 | _ACEOF | |
22511 | cat confdefs.h >>conftest.$ac_ext | |
22512 | cat >>conftest.$ac_ext <<_ACEOF | |
22513 | /* end confdefs.h. */ | |
22514 | $ac_includes_default | |
d589327a | 22515 | typedef long long ac__type_sizeof_; |
a848cd7e SC |
22516 | int |
22517 | main () | |
22518 | { | |
d589327a | 22519 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; |
a848cd7e SC |
22520 | test_array [0] = 0 |
22521 | ||
22522 | ; | |
22523 | return 0; | |
22524 | } | |
22525 | _ACEOF | |
22526 | rm -f conftest.$ac_objext | |
47964710 VS |
22527 | if { (ac_try="$ac_compile" |
22528 | case "(($ac_try" in | |
22529 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22530 | *) ac_try_echo=$ac_try;; | |
22531 | esac | |
d589327a | 22532 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 22533 | (eval "$ac_compile") 2>conftest.er1 |
a848cd7e | 22534 | ac_status=$? |
ac1cb8d3 VS |
22535 | grep -v '^ *+' conftest.er1 >conftest.err |
22536 | rm -f conftest.er1 | |
22537 | cat conftest.err >&5 | |
d589327a | 22538 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
22539 | (exit $ac_status); } && { |
22540 | test -z "$ac_c_werror_flag" || | |
22541 | test ! -s conftest.err | |
22542 | } && test -s conftest.$ac_objext; then | |
a848cd7e SC |
22543 | ac_lo=0 ac_mid=0 |
22544 | while :; do | |
22545 | cat >conftest.$ac_ext <<_ACEOF | |
22546 | /* confdefs.h. */ | |
22547 | _ACEOF | |
22548 | cat confdefs.h >>conftest.$ac_ext | |
22549 | cat >>conftest.$ac_ext <<_ACEOF | |
22550 | /* end confdefs.h. */ | |
22551 | $ac_includes_default | |
d589327a | 22552 | typedef long long ac__type_sizeof_; |
a848cd7e SC |
22553 | int |
22554 | main () | |
22555 | { | |
d589327a | 22556 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
a848cd7e SC |
22557 | test_array [0] = 0 |
22558 | ||
22559 | ; | |
22560 | return 0; | |
22561 | } | |
22562 | _ACEOF | |
22563 | rm -f conftest.$ac_objext | |
47964710 VS |
22564 | if { (ac_try="$ac_compile" |
22565 | case "(($ac_try" in | |
22566 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22567 | *) ac_try_echo=$ac_try;; | |
22568 | esac | |
d589327a | 22569 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 22570 | (eval "$ac_compile") 2>conftest.er1 |
a848cd7e | 22571 | ac_status=$? |
ac1cb8d3 VS |
22572 | grep -v '^ *+' conftest.er1 >conftest.err |
22573 | rm -f conftest.er1 | |
22574 | cat conftest.err >&5 | |
d589327a | 22575 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
22576 | (exit $ac_status); } && { |
22577 | test -z "$ac_c_werror_flag" || | |
22578 | test ! -s conftest.err | |
22579 | } && test -s conftest.$ac_objext; then | |
a848cd7e SC |
22580 | ac_hi=$ac_mid; break |
22581 | else | |
d589327a | 22582 | echo "$as_me: failed program was:" >&5 |
a848cd7e SC |
22583 | sed 's/^/| /' conftest.$ac_ext >&5 |
22584 | ||
47964710 VS |
22585 | ac_lo=`expr $ac_mid + 1` |
22586 | if test $ac_lo -le $ac_mid; then | |
22587 | ac_lo= ac_hi= | |
22588 | break | |
22589 | fi | |
22590 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 22591 | fi |
47964710 VS |
22592 | |
22593 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
a848cd7e SC |
22594 | done |
22595 | else | |
d589327a | 22596 | echo "$as_me: failed program was:" >&5 |
a848cd7e SC |
22597 | sed 's/^/| /' conftest.$ac_ext >&5 |
22598 | ||
47964710 | 22599 | cat >conftest.$ac_ext <<_ACEOF |
a848cd7e SC |
22600 | /* confdefs.h. */ |
22601 | _ACEOF | |
22602 | cat confdefs.h >>conftest.$ac_ext | |
22603 | cat >>conftest.$ac_ext <<_ACEOF | |
22604 | /* end confdefs.h. */ | |
22605 | $ac_includes_default | |
d589327a | 22606 | typedef long long ac__type_sizeof_; |
a848cd7e SC |
22607 | int |
22608 | main () | |
22609 | { | |
d589327a | 22610 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; |
a848cd7e SC |
22611 | test_array [0] = 0 |
22612 | ||
22613 | ; | |
22614 | return 0; | |
22615 | } | |
22616 | _ACEOF | |
22617 | rm -f conftest.$ac_objext | |
47964710 VS |
22618 | if { (ac_try="$ac_compile" |
22619 | case "(($ac_try" in | |
22620 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22621 | *) ac_try_echo=$ac_try;; | |
22622 | esac | |
d589327a | 22623 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 22624 | (eval "$ac_compile") 2>conftest.er1 |
a848cd7e | 22625 | ac_status=$? |
ac1cb8d3 VS |
22626 | grep -v '^ *+' conftest.er1 >conftest.err |
22627 | rm -f conftest.er1 | |
22628 | cat conftest.err >&5 | |
d589327a | 22629 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
22630 | (exit $ac_status); } && { |
22631 | test -z "$ac_c_werror_flag" || | |
22632 | test ! -s conftest.err | |
22633 | } && test -s conftest.$ac_objext; then | |
a848cd7e SC |
22634 | ac_hi=-1 ac_mid=-1 |
22635 | while :; do | |
22636 | cat >conftest.$ac_ext <<_ACEOF | |
22637 | /* confdefs.h. */ | |
22638 | _ACEOF | |
22639 | cat confdefs.h >>conftest.$ac_ext | |
22640 | cat >>conftest.$ac_ext <<_ACEOF | |
22641 | /* end confdefs.h. */ | |
22642 | $ac_includes_default | |
d589327a | 22643 | typedef long long ac__type_sizeof_; |
a848cd7e SC |
22644 | int |
22645 | main () | |
22646 | { | |
d589327a | 22647 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; |
a848cd7e SC |
22648 | test_array [0] = 0 |
22649 | ||
22650 | ; | |
22651 | return 0; | |
22652 | } | |
22653 | _ACEOF | |
22654 | rm -f conftest.$ac_objext | |
47964710 VS |
22655 | if { (ac_try="$ac_compile" |
22656 | case "(($ac_try" in | |
22657 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22658 | *) ac_try_echo=$ac_try;; | |
22659 | esac | |
d589327a | 22660 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 22661 | (eval "$ac_compile") 2>conftest.er1 |
a848cd7e | 22662 | ac_status=$? |
ac1cb8d3 VS |
22663 | grep -v '^ *+' conftest.er1 >conftest.err |
22664 | rm -f conftest.er1 | |
22665 | cat conftest.err >&5 | |
d589327a | 22666 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
22667 | (exit $ac_status); } && { |
22668 | test -z "$ac_c_werror_flag" || | |
22669 | test ! -s conftest.err | |
22670 | } && test -s conftest.$ac_objext; then | |
a848cd7e SC |
22671 | ac_lo=$ac_mid; break |
22672 | else | |
d589327a | 22673 | echo "$as_me: failed program was:" >&5 |
a848cd7e SC |
22674 | sed 's/^/| /' conftest.$ac_ext >&5 |
22675 | ||
47964710 VS |
22676 | ac_hi=`expr '(' $ac_mid ')' - 1` |
22677 | if test $ac_mid -le $ac_hi; then | |
22678 | ac_lo= ac_hi= | |
22679 | break | |
22680 | fi | |
22681 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 22682 | fi |
47964710 VS |
22683 | |
22684 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
a848cd7e SC |
22685 | done |
22686 | else | |
d589327a | 22687 | echo "$as_me: failed program was:" >&5 |
a848cd7e SC |
22688 | sed 's/^/| /' conftest.$ac_ext >&5 |
22689 | ||
47964710 | 22690 | ac_lo= ac_hi= |
a848cd7e | 22691 | fi |
47964710 VS |
22692 | |
22693 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
a848cd7e | 22694 | fi |
47964710 VS |
22695 | |
22696 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
a848cd7e SC |
22697 | # Binary search between lo and hi bounds. |
22698 | while test "x$ac_lo" != "x$ac_hi"; do | |
22699 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
22700 | cat >conftest.$ac_ext <<_ACEOF | |
22701 | /* confdefs.h. */ | |
22702 | _ACEOF | |
22703 | cat confdefs.h >>conftest.$ac_ext | |
22704 | cat >>conftest.$ac_ext <<_ACEOF | |
22705 | /* end confdefs.h. */ | |
22706 | $ac_includes_default | |
d589327a | 22707 | typedef long long ac__type_sizeof_; |
a848cd7e SC |
22708 | int |
22709 | main () | |
22710 | { | |
d589327a | 22711 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
a848cd7e SC |
22712 | test_array [0] = 0 |
22713 | ||
22714 | ; | |
22715 | return 0; | |
22716 | } | |
22717 | _ACEOF | |
22718 | rm -f conftest.$ac_objext | |
47964710 VS |
22719 | if { (ac_try="$ac_compile" |
22720 | case "(($ac_try" in | |
22721 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22722 | *) ac_try_echo=$ac_try;; | |
22723 | esac | |
d589327a | 22724 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 22725 | (eval "$ac_compile") 2>conftest.er1 |
a848cd7e | 22726 | ac_status=$? |
ac1cb8d3 VS |
22727 | grep -v '^ *+' conftest.er1 >conftest.err |
22728 | rm -f conftest.er1 | |
22729 | cat conftest.err >&5 | |
d589327a | 22730 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
22731 | (exit $ac_status); } && { |
22732 | test -z "$ac_c_werror_flag" || | |
22733 | test ! -s conftest.err | |
22734 | } && test -s conftest.$ac_objext; then | |
a848cd7e SC |
22735 | ac_hi=$ac_mid |
22736 | else | |
d589327a | 22737 | echo "$as_me: failed program was:" >&5 |
a848cd7e SC |
22738 | sed 's/^/| /' conftest.$ac_ext >&5 |
22739 | ||
47964710 | 22740 | ac_lo=`expr '(' $ac_mid ')' + 1` |
a848cd7e | 22741 | fi |
47964710 VS |
22742 | |
22743 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
a848cd7e SC |
22744 | done |
22745 | case $ac_lo in | |
22746 | ?*) ac_cv_sizeof_long_long=$ac_lo;; | |
47964710 | 22747 | '') if test "$ac_cv_type_long_long" = yes; then |
d589327a | 22748 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long) |
a848cd7e | 22749 | See \`config.log' for more details." >&5 |
d589327a | 22750 | echo "$as_me: error: cannot compute sizeof (long long) |
a848cd7e | 22751 | See \`config.log' for more details." >&2;} |
d589327a | 22752 | { (exit 77); exit 77; }; } |
47964710 VS |
22753 | else |
22754 | ac_cv_sizeof_long_long=0 | |
22755 | fi ;; | |
a848cd7e | 22756 | esac |
a848cd7e SC |
22757 | else |
22758 | cat >conftest.$ac_ext <<_ACEOF | |
22759 | /* confdefs.h. */ | |
22760 | _ACEOF | |
22761 | cat confdefs.h >>conftest.$ac_ext | |
22762 | cat >>conftest.$ac_ext <<_ACEOF | |
22763 | /* end confdefs.h. */ | |
22764 | $ac_includes_default | |
d589327a VZ |
22765 | typedef long long ac__type_sizeof_; |
22766 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } | |
22767 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } | |
a848cd7e SC |
22768 | #include <stdio.h> |
22769 | #include <stdlib.h> | |
22770 | int | |
22771 | main () | |
22772 | { | |
22773 | ||
22774 | FILE *f = fopen ("conftest.val", "w"); | |
22775 | if (! f) | |
47964710 | 22776 | return 1; |
d589327a | 22777 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
a848cd7e | 22778 | { |
47964710 | 22779 | long int i = longval (); |
d589327a | 22780 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
47964710 | 22781 | return 1; |
d589327a | 22782 | fprintf (f, "%ld\n", i); |
a848cd7e SC |
22783 | } |
22784 | else | |
22785 | { | |
47964710 | 22786 | unsigned long int i = ulongval (); |
d589327a | 22787 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
47964710 | 22788 | return 1; |
d589327a | 22789 | fprintf (f, "%lu\n", i); |
a848cd7e | 22790 | } |
47964710 | 22791 | return ferror (f) || fclose (f) != 0; |
a848cd7e SC |
22792 | |
22793 | ; | |
22794 | return 0; | |
22795 | } | |
22796 | _ACEOF | |
22797 | rm -f conftest$ac_exeext | |
47964710 VS |
22798 | if { (ac_try="$ac_link" |
22799 | case "(($ac_try" in | |
22800 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22801 | *) ac_try_echo=$ac_try;; | |
22802 | esac | |
d589327a | 22803 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 22804 | (eval "$ac_link") 2>&5 |
a848cd7e | 22805 | ac_status=$? |
d589327a | 22806 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
a848cd7e | 22807 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
47964710 VS |
22808 | { (case "(($ac_try" in |
22809 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22810 | *) ac_try_echo=$ac_try;; | |
22811 | esac | |
d589327a | 22812 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 22813 | (eval "$ac_try") 2>&5 |
a848cd7e | 22814 | ac_status=$? |
d589327a | 22815 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
a848cd7e SC |
22816 | (exit $ac_status); }; }; then |
22817 | ac_cv_sizeof_long_long=`cat conftest.val` | |
22818 | else | |
d589327a VZ |
22819 | echo "$as_me: program exited with status $ac_status" >&5 |
22820 | echo "$as_me: failed program was:" >&5 | |
a848cd7e SC |
22821 | sed 's/^/| /' conftest.$ac_ext >&5 |
22822 | ||
22823 | ( exit $ac_status ) | |
47964710 | 22824 | if test "$ac_cv_type_long_long" = yes; then |
d589327a | 22825 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long) |
a848cd7e | 22826 | See \`config.log' for more details." >&5 |
d589327a | 22827 | echo "$as_me: error: cannot compute sizeof (long long) |
a848cd7e | 22828 | See \`config.log' for more details." >&2;} |
d589327a | 22829 | { (exit 77); exit 77; }; } |
47964710 VS |
22830 | else |
22831 | ac_cv_sizeof_long_long=0 | |
22832 | fi | |
a848cd7e | 22833 | fi |
47964710 | 22834 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
22835 | fi |
22836 | rm -f conftest.val | |
bd8a7646 | 22837 | fi |
d589327a VZ |
22838 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 |
22839 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; } | |
47964710 VS |
22840 | |
22841 | ||
22842 | ||
a848cd7e SC |
22843 | cat >>confdefs.h <<_ACEOF |
22844 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
22845 | _ACEOF | |
22846 | ||
22847 | ||
6517fa86 | 22848 | if test "$ac_cv_sizeof_long_long" != 0; then |
c92ad099 | 22849 | CPPFLAGS="-D_INCLUDE_LONGLONG $CPPFLAGS" |
a848cd7e SC |
22850 | fi |
22851 | ;; | |
22852 | * ) | |
d589327a VZ |
22853 | { echo "$as_me:$LINENO: checking for long long" >&5 |
22854 | echo $ECHO_N "checking for long long... $ECHO_C" >&6; } | |
22855 | if test "${ac_cv_type_long_long+set}" = set; then | |
22856 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22857 | else | |
22858 | cat >conftest.$ac_ext <<_ACEOF | |
22859 | /* confdefs.h. */ | |
22860 | _ACEOF | |
22861 | cat confdefs.h >>conftest.$ac_ext | |
22862 | cat >>conftest.$ac_ext <<_ACEOF | |
22863 | /* end confdefs.h. */ | |
22864 | $ac_includes_default | |
22865 | typedef long long ac__type_new_; | |
22866 | int | |
22867 | main () | |
22868 | { | |
22869 | if ((ac__type_new_ *) 0) | |
22870 | return 0; | |
22871 | if (sizeof (ac__type_new_)) | |
22872 | return 0; | |
22873 | ; | |
22874 | return 0; | |
22875 | } | |
22876 | _ACEOF | |
22877 | rm -f conftest.$ac_objext | |
22878 | if { (ac_try="$ac_compile" | |
22879 | case "(($ac_try" in | |
22880 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22881 | *) ac_try_echo=$ac_try;; | |
22882 | esac | |
22883 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
22884 | (eval "$ac_compile") 2>conftest.er1 | |
22885 | ac_status=$? | |
22886 | grep -v '^ *+' conftest.er1 >conftest.err | |
22887 | rm -f conftest.er1 | |
22888 | cat conftest.err >&5 | |
22889 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22890 | (exit $ac_status); } && { | |
22891 | test -z "$ac_c_werror_flag" || | |
22892 | test ! -s conftest.err | |
22893 | } && test -s conftest.$ac_objext; then | |
22894 | ac_cv_type_long_long=yes | |
22895 | else | |
22896 | echo "$as_me: failed program was:" >&5 | |
22897 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22898 | ||
22899 | ac_cv_type_long_long=no | |
22900 | fi | |
22901 | ||
22902 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
22903 | fi | |
22904 | { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 | |
22905 | echo "${ECHO_T}$ac_cv_type_long_long" >&6; } | |
22906 | ||
22907 | # The cast to long int works around a bug in the HP C Compiler | |
47964710 VS |
22908 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
22909 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
22910 | # This bug is HP SR number 8606223364. | |
d589327a VZ |
22911 | { echo "$as_me:$LINENO: checking size of long long" >&5 |
22912 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6; } | |
a848cd7e | 22913 | if test "${ac_cv_sizeof_long_long+set}" = set; then |
d589327a | 22914 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a848cd7e | 22915 | else |
a848cd7e SC |
22916 | if test "$cross_compiling" = yes; then |
22917 | # Depending upon the size, compute the lo and hi bounds. | |
22918 | cat >conftest.$ac_ext <<_ACEOF | |
22919 | /* confdefs.h. */ | |
22920 | _ACEOF | |
22921 | cat confdefs.h >>conftest.$ac_ext | |
22922 | cat >>conftest.$ac_ext <<_ACEOF | |
22923 | /* end confdefs.h. */ | |
22924 | $ac_includes_default | |
d589327a | 22925 | typedef long long ac__type_sizeof_; |
a848cd7e SC |
22926 | int |
22927 | main () | |
22928 | { | |
d589327a | 22929 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; |
a848cd7e SC |
22930 | test_array [0] = 0 |
22931 | ||
22932 | ; | |
22933 | return 0; | |
22934 | } | |
22935 | _ACEOF | |
22936 | rm -f conftest.$ac_objext | |
47964710 VS |
22937 | if { (ac_try="$ac_compile" |
22938 | case "(($ac_try" in | |
22939 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22940 | *) ac_try_echo=$ac_try;; | |
22941 | esac | |
d589327a | 22942 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 22943 | (eval "$ac_compile") 2>conftest.er1 |
a848cd7e | 22944 | ac_status=$? |
ac1cb8d3 VS |
22945 | grep -v '^ *+' conftest.er1 >conftest.err |
22946 | rm -f conftest.er1 | |
22947 | cat conftest.err >&5 | |
d589327a | 22948 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
22949 | (exit $ac_status); } && { |
22950 | test -z "$ac_c_werror_flag" || | |
22951 | test ! -s conftest.err | |
22952 | } && test -s conftest.$ac_objext; then | |
a848cd7e SC |
22953 | ac_lo=0 ac_mid=0 |
22954 | while :; do | |
22955 | cat >conftest.$ac_ext <<_ACEOF | |
22956 | /* confdefs.h. */ | |
22957 | _ACEOF | |
22958 | cat confdefs.h >>conftest.$ac_ext | |
22959 | cat >>conftest.$ac_ext <<_ACEOF | |
22960 | /* end confdefs.h. */ | |
22961 | $ac_includes_default | |
d589327a | 22962 | typedef long long ac__type_sizeof_; |
a848cd7e SC |
22963 | int |
22964 | main () | |
22965 | { | |
d589327a | 22966 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
a848cd7e SC |
22967 | test_array [0] = 0 |
22968 | ||
22969 | ; | |
22970 | return 0; | |
22971 | } | |
22972 | _ACEOF | |
22973 | rm -f conftest.$ac_objext | |
47964710 VS |
22974 | if { (ac_try="$ac_compile" |
22975 | case "(($ac_try" in | |
22976 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22977 | *) ac_try_echo=$ac_try;; | |
22978 | esac | |
d589327a | 22979 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 22980 | (eval "$ac_compile") 2>conftest.er1 |
a848cd7e | 22981 | ac_status=$? |
ac1cb8d3 VS |
22982 | grep -v '^ *+' conftest.er1 >conftest.err |
22983 | rm -f conftest.er1 | |
22984 | cat conftest.err >&5 | |
d589327a | 22985 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
22986 | (exit $ac_status); } && { |
22987 | test -z "$ac_c_werror_flag" || | |
22988 | test ! -s conftest.err | |
22989 | } && test -s conftest.$ac_objext; then | |
a848cd7e SC |
22990 | ac_hi=$ac_mid; break |
22991 | else | |
d589327a | 22992 | echo "$as_me: failed program was:" >&5 |
a848cd7e SC |
22993 | sed 's/^/| /' conftest.$ac_ext >&5 |
22994 | ||
47964710 VS |
22995 | ac_lo=`expr $ac_mid + 1` |
22996 | if test $ac_lo -le $ac_mid; then | |
22997 | ac_lo= ac_hi= | |
22998 | break | |
22999 | fi | |
23000 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 23001 | fi |
47964710 VS |
23002 | |
23003 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
a848cd7e SC |
23004 | done |
23005 | else | |
d589327a | 23006 | echo "$as_me: failed program was:" >&5 |
a848cd7e SC |
23007 | sed 's/^/| /' conftest.$ac_ext >&5 |
23008 | ||
47964710 | 23009 | cat >conftest.$ac_ext <<_ACEOF |
a848cd7e SC |
23010 | /* confdefs.h. */ |
23011 | _ACEOF | |
23012 | cat confdefs.h >>conftest.$ac_ext | |
23013 | cat >>conftest.$ac_ext <<_ACEOF | |
23014 | /* end confdefs.h. */ | |
23015 | $ac_includes_default | |
d589327a | 23016 | typedef long long ac__type_sizeof_; |
a848cd7e SC |
23017 | int |
23018 | main () | |
23019 | { | |
d589327a | 23020 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; |
a848cd7e SC |
23021 | test_array [0] = 0 |
23022 | ||
23023 | ; | |
23024 | return 0; | |
23025 | } | |
23026 | _ACEOF | |
23027 | rm -f conftest.$ac_objext | |
47964710 VS |
23028 | if { (ac_try="$ac_compile" |
23029 | case "(($ac_try" in | |
23030 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
23031 | *) ac_try_echo=$ac_try;; | |
23032 | esac | |
d589327a | 23033 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 23034 | (eval "$ac_compile") 2>conftest.er1 |
a848cd7e | 23035 | ac_status=$? |
ac1cb8d3 VS |
23036 | grep -v '^ *+' conftest.er1 >conftest.err |
23037 | rm -f conftest.er1 | |
23038 | cat conftest.err >&5 | |
d589327a | 23039 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
23040 | (exit $ac_status); } && { |
23041 | test -z "$ac_c_werror_flag" || | |
23042 | test ! -s conftest.err | |
23043 | } && test -s conftest.$ac_objext; then | |
a848cd7e SC |
23044 | ac_hi=-1 ac_mid=-1 |
23045 | while :; do | |
23046 | cat >conftest.$ac_ext <<_ACEOF | |
23047 | /* confdefs.h. */ | |
23048 | _ACEOF | |
23049 | cat confdefs.h >>conftest.$ac_ext | |
23050 | cat >>conftest.$ac_ext <<_ACEOF | |
23051 | /* end confdefs.h. */ | |
23052 | $ac_includes_default | |
d589327a | 23053 | typedef long long ac__type_sizeof_; |
a848cd7e SC |
23054 | int |
23055 | main () | |
23056 | { | |
d589327a | 23057 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; |
a848cd7e SC |
23058 | test_array [0] = 0 |
23059 | ||
23060 | ; | |
23061 | return 0; | |
23062 | } | |
23063 | _ACEOF | |
23064 | rm -f conftest.$ac_objext | |
47964710 VS |
23065 | if { (ac_try="$ac_compile" |
23066 | case "(($ac_try" in | |
23067 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
23068 | *) ac_try_echo=$ac_try;; | |
23069 | esac | |
d589327a | 23070 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 23071 | (eval "$ac_compile") 2>conftest.er1 |
a848cd7e | 23072 | ac_status=$? |
ac1cb8d3 VS |
23073 | grep -v '^ *+' conftest.er1 >conftest.err |
23074 | rm -f conftest.er1 | |
23075 | cat conftest.err >&5 | |
d589327a | 23076 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
23077 | (exit $ac_status); } && { |
23078 | test -z "$ac_c_werror_flag" || | |
23079 | test ! -s conftest.err | |
23080 | } && test -s conftest.$ac_objext; then | |
a848cd7e SC |
23081 | ac_lo=$ac_mid; break |
23082 | else | |
d589327a | 23083 | echo "$as_me: failed program was:" >&5 |
a848cd7e SC |
23084 | sed 's/^/| /' conftest.$ac_ext >&5 |
23085 | ||
47964710 VS |
23086 | ac_hi=`expr '(' $ac_mid ')' - 1` |
23087 | if test $ac_mid -le $ac_hi; then | |
23088 | ac_lo= ac_hi= | |
23089 | break | |
23090 | fi | |
23091 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 23092 | fi |
47964710 VS |
23093 | |
23094 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
a848cd7e SC |
23095 | done |
23096 | else | |
d589327a | 23097 | echo "$as_me: failed program was:" >&5 |
a848cd7e SC |
23098 | sed 's/^/| /' conftest.$ac_ext >&5 |
23099 | ||
47964710 | 23100 | ac_lo= ac_hi= |
a848cd7e | 23101 | fi |
47964710 VS |
23102 | |
23103 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
a848cd7e | 23104 | fi |
47964710 VS |
23105 | |
23106 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
a848cd7e SC |
23107 | # Binary search between lo and hi bounds. |
23108 | while test "x$ac_lo" != "x$ac_hi"; do | |
23109 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
23110 | cat >conftest.$ac_ext <<_ACEOF | |
23111 | /* confdefs.h. */ | |
23112 | _ACEOF | |
23113 | cat confdefs.h >>conftest.$ac_ext | |
23114 | cat >>conftest.$ac_ext <<_ACEOF | |
23115 | /* end confdefs.h. */ | |
23116 | $ac_includes_default | |
d589327a | 23117 | typedef long long ac__type_sizeof_; |
a848cd7e SC |
23118 | int |
23119 | main () | |
23120 | { | |
d589327a | 23121 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
a848cd7e SC |
23122 | test_array [0] = 0 |
23123 | ||
23124 | ; | |
23125 | return 0; | |
23126 | } | |
23127 | _ACEOF | |
23128 | rm -f conftest.$ac_objext | |
47964710 VS |
23129 | if { (ac_try="$ac_compile" |
23130 | case "(($ac_try" in | |
23131 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
23132 | *) ac_try_echo=$ac_try;; | |
23133 | esac | |
d589327a | 23134 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 23135 | (eval "$ac_compile") 2>conftest.er1 |
a848cd7e | 23136 | ac_status=$? |
ac1cb8d3 VS |
23137 | grep -v '^ *+' conftest.er1 >conftest.err |
23138 | rm -f conftest.er1 | |
23139 | cat conftest.err >&5 | |
d589327a | 23140 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
23141 | (exit $ac_status); } && { |
23142 | test -z "$ac_c_werror_flag" || | |
23143 | test ! -s conftest.err | |
23144 | } && test -s conftest.$ac_objext; then | |
a848cd7e SC |
23145 | ac_hi=$ac_mid |
23146 | else | |
d589327a | 23147 | echo "$as_me: failed program was:" >&5 |
a848cd7e SC |
23148 | sed 's/^/| /' conftest.$ac_ext >&5 |
23149 | ||
47964710 | 23150 | ac_lo=`expr '(' $ac_mid ')' + 1` |
a848cd7e | 23151 | fi |
47964710 VS |
23152 | |
23153 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
a848cd7e SC |
23154 | done |
23155 | case $ac_lo in | |
23156 | ?*) ac_cv_sizeof_long_long=$ac_lo;; | |
47964710 | 23157 | '') if test "$ac_cv_type_long_long" = yes; then |
d589327a | 23158 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long) |
a848cd7e | 23159 | See \`config.log' for more details." >&5 |
d589327a | 23160 | echo "$as_me: error: cannot compute sizeof (long long) |
a848cd7e | 23161 | See \`config.log' for more details." >&2;} |
d589327a | 23162 | { (exit 77); exit 77; }; } |
47964710 VS |
23163 | else |
23164 | ac_cv_sizeof_long_long=0 | |
23165 | fi ;; | |
a848cd7e | 23166 | esac |
a848cd7e SC |
23167 | else |
23168 | cat >conftest.$ac_ext <<_ACEOF | |
23169 | /* confdefs.h. */ | |
23170 | _ACEOF | |
23171 | cat confdefs.h >>conftest.$ac_ext | |
23172 | cat >>conftest.$ac_ext <<_ACEOF | |
23173 | /* end confdefs.h. */ | |
23174 | $ac_includes_default | |
d589327a VZ |
23175 | typedef long long ac__type_sizeof_; |
23176 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } | |
23177 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } | |
a848cd7e SC |
23178 | #include <stdio.h> |
23179 | #include <stdlib.h> | |
23180 | int | |
23181 | main () | |
23182 | { | |
23183 | ||
23184 | FILE *f = fopen ("conftest.val", "w"); | |
23185 | if (! f) | |
47964710 | 23186 | return 1; |
d589327a | 23187 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
a848cd7e | 23188 | { |
47964710 | 23189 | long int i = longval (); |
d589327a | 23190 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
47964710 | 23191 | return 1; |
d589327a | 23192 | fprintf (f, "%ld\n", i); |
a848cd7e SC |
23193 | } |
23194 | else | |
23195 | { | |
47964710 | 23196 | unsigned long int i = ulongval (); |
d589327a | 23197 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
47964710 | 23198 | return 1; |
d589327a | 23199 | fprintf (f, "%lu\n", i); |
a848cd7e | 23200 | } |
47964710 | 23201 | return ferror (f) || fclose (f) != 0; |
a848cd7e SC |
23202 | |
23203 | ; | |
23204 | return 0; | |
23205 | } | |
23206 | _ACEOF | |
23207 | rm -f conftest$ac_exeext | |
47964710 VS |
23208 | if { (ac_try="$ac_link" |
23209 | case "(($ac_try" in | |
23210 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
23211 | *) ac_try_echo=$ac_try;; | |
23212 | esac | |
d589327a | 23213 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 23214 | (eval "$ac_link") 2>&5 |
a848cd7e | 23215 | ac_status=$? |
d589327a | 23216 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
a848cd7e | 23217 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
47964710 VS |
23218 | { (case "(($ac_try" in |
23219 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
23220 | *) ac_try_echo=$ac_try;; | |
23221 | esac | |
d589327a | 23222 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 23223 | (eval "$ac_try") 2>&5 |
a848cd7e | 23224 | ac_status=$? |
d589327a | 23225 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
a848cd7e SC |
23226 | (exit $ac_status); }; }; then |
23227 | ac_cv_sizeof_long_long=`cat conftest.val` | |
23228 | else | |
d589327a VZ |
23229 | echo "$as_me: program exited with status $ac_status" >&5 |
23230 | echo "$as_me: failed program was:" >&5 | |
a848cd7e SC |
23231 | sed 's/^/| /' conftest.$ac_ext >&5 |
23232 | ||
23233 | ( exit $ac_status ) | |
47964710 | 23234 | if test "$ac_cv_type_long_long" = yes; then |
d589327a | 23235 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long) |
a848cd7e | 23236 | See \`config.log' for more details." >&5 |
d589327a | 23237 | echo "$as_me: error: cannot compute sizeof (long long) |
a848cd7e | 23238 | See \`config.log' for more details." >&2;} |
d589327a | 23239 | { (exit 77); exit 77; }; } |
47964710 VS |
23240 | else |
23241 | ac_cv_sizeof_long_long=0 | |
23242 | fi | |
a848cd7e | 23243 | fi |
47964710 | 23244 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
23245 | fi |
23246 | rm -f conftest.val | |
4db03d26 | 23247 | fi |
d589327a VZ |
23248 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 |
23249 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; } | |
47964710 VS |
23250 | |
23251 | ||
23252 | ||
a848cd7e SC |
23253 | cat >>confdefs.h <<_ACEOF |
23254 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
23255 | _ACEOF | |
23256 | ||
23257 | ||
23258 | esac | |
23259 | ||
d589327a VZ |
23260 | { echo "$as_me:$LINENO: checking for wchar_t" >&5 |
23261 | echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; } | |
23262 | if test "${ac_cv_type_wchar_t+set}" = set; then | |
23263 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23264 | else | |
23265 | cat >conftest.$ac_ext <<_ACEOF | |
23266 | /* confdefs.h. */ | |
23267 | _ACEOF | |
23268 | cat confdefs.h >>conftest.$ac_ext | |
23269 | cat >>conftest.$ac_ext <<_ACEOF | |
23270 | /* end confdefs.h. */ | |
23271 | ||
23272 | /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */ | |
23273 | #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 ) | |
23274 | # error "fake wchar_t" | |
23275 | #endif | |
23276 | #ifdef HAVE_WCHAR_H | |
23277 | # ifdef __CYGWIN__ | |
23278 | # include <stddef.h> | |
23279 | # endif | |
23280 | # include <wchar.h> | |
23281 | #endif | |
23282 | #ifdef HAVE_STDLIB_H | |
23283 | # include <stdlib.h> | |
23284 | #endif | |
23285 | #include <stdio.h> | |
23286 | ||
23287 | ||
23288 | ||
23289 | typedef wchar_t ac__type_new_; | |
23290 | int | |
23291 | main () | |
23292 | { | |
23293 | if ((ac__type_new_ *) 0) | |
23294 | return 0; | |
23295 | if (sizeof (ac__type_new_)) | |
23296 | return 0; | |
23297 | ; | |
23298 | return 0; | |
23299 | } | |
23300 | _ACEOF | |
23301 | rm -f conftest.$ac_objext | |
23302 | if { (ac_try="$ac_compile" | |
23303 | case "(($ac_try" in | |
23304 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
23305 | *) ac_try_echo=$ac_try;; | |
23306 | esac | |
23307 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
23308 | (eval "$ac_compile") 2>conftest.er1 | |
23309 | ac_status=$? | |
23310 | grep -v '^ *+' conftest.er1 >conftest.err | |
23311 | rm -f conftest.er1 | |
23312 | cat conftest.err >&5 | |
23313 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23314 | (exit $ac_status); } && { | |
23315 | test -z "$ac_c_werror_flag" || | |
23316 | test ! -s conftest.err | |
23317 | } && test -s conftest.$ac_objext; then | |
23318 | ac_cv_type_wchar_t=yes | |
23319 | else | |
23320 | echo "$as_me: failed program was:" >&5 | |
23321 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23322 | ||
23323 | ac_cv_type_wchar_t=no | |
23324 | fi | |
23325 | ||
23326 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
23327 | fi | |
23328 | { echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5 | |
23329 | echo "${ECHO_T}$ac_cv_type_wchar_t" >&6; } | |
23330 | ||
47964710 VS |
23331 | # The cast to long int works around a bug in the HP C Compiler |
23332 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
23333 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
23334 | # This bug is HP SR number 8606223364. | |
d589327a VZ |
23335 | { echo "$as_me:$LINENO: checking size of wchar_t" >&5 |
23336 | echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6; } | |
238ecede | 23337 | if test "${ac_cv_sizeof_wchar_t+set}" = set; then |
d589327a | 23338 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a848cd7e | 23339 | else |
238ecede MW |
23340 | if test "$cross_compiling" = yes; then |
23341 | # Depending upon the size, compute the lo and hi bounds. | |
23342 | cat >conftest.$ac_ext <<_ACEOF | |
23343 | /* confdefs.h. */ | |
23344 | _ACEOF | |
23345 | cat confdefs.h >>conftest.$ac_ext | |
23346 | cat >>conftest.$ac_ext <<_ACEOF | |
23347 | /* end confdefs.h. */ | |
23348 | ||
83d8eb47 MW |
23349 | /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */ |
23350 | #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 ) | |
238ecede MW |
23351 | # error "fake wchar_t" |
23352 | #endif | |
23353 | #ifdef HAVE_WCHAR_H | |
23354 | # ifdef __CYGWIN__ | |
23355 | # include <stddef.h> | |
23356 | # endif | |
23357 | # include <wchar.h> | |
23358 | #endif | |
23359 | #ifdef HAVE_STDLIB_H | |
23360 | # include <stdlib.h> | |
23361 | #endif | |
23362 | #include <stdio.h> | |
23363 | ||
23364 | ||
23365 | ||
d589327a | 23366 | typedef wchar_t ac__type_sizeof_; |
238ecede MW |
23367 | int |
23368 | main () | |
23369 | { | |
d589327a | 23370 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; |
238ecede MW |
23371 | test_array [0] = 0 |
23372 | ||
23373 | ; | |
23374 | return 0; | |
23375 | } | |
23376 | _ACEOF | |
23377 | rm -f conftest.$ac_objext | |
47964710 VS |
23378 | if { (ac_try="$ac_compile" |
23379 | case "(($ac_try" in | |
23380 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
23381 | *) ac_try_echo=$ac_try;; | |
23382 | esac | |
d589327a | 23383 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 23384 | (eval "$ac_compile") 2>conftest.er1 |
238ecede MW |
23385 | ac_status=$? |
23386 | grep -v '^ *+' conftest.er1 >conftest.err | |
23387 | rm -f conftest.er1 | |
23388 | cat conftest.err >&5 | |
d589327a | 23389 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
23390 | (exit $ac_status); } && { |
23391 | test -z "$ac_c_werror_flag" || | |
23392 | test ! -s conftest.err | |
23393 | } && test -s conftest.$ac_objext; then | |
238ecede MW |
23394 | ac_lo=0 ac_mid=0 |
23395 | while :; do | |
23396 | cat >conftest.$ac_ext <<_ACEOF | |
23397 | /* confdefs.h. */ | |
23398 | _ACEOF | |
23399 | cat confdefs.h >>conftest.$ac_ext | |
23400 | cat >>conftest.$ac_ext <<_ACEOF | |
23401 | /* end confdefs.h. */ | |
23402 | ||
83d8eb47 MW |
23403 | /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */ |
23404 | #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 ) | |
238ecede MW |
23405 | # error "fake wchar_t" |
23406 | #endif | |
23407 | #ifdef HAVE_WCHAR_H | |
23408 | # ifdef __CYGWIN__ | |
23409 | # include <stddef.h> | |
23410 | # endif | |
23411 | # include <wchar.h> | |
23412 | #endif | |
23413 | #ifdef HAVE_STDLIB_H | |
23414 | # include <stdlib.h> | |
23415 | #endif | |
23416 | #include <stdio.h> | |
23417 | ||
23418 | ||
23419 | ||
d589327a | 23420 | typedef wchar_t ac__type_sizeof_; |
238ecede MW |
23421 | int |
23422 | main () | |
23423 | { | |
d589327a | 23424 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
4db03d26 VZ |
23425 | test_array [0] = 0 |
23426 | ||
23427 | ; | |
23428 | return 0; | |
23429 | } | |
23430 | _ACEOF | |
23431 | rm -f conftest.$ac_objext | |
47964710 VS |
23432 | if { (ac_try="$ac_compile" |
23433 | case "(($ac_try" in | |
23434 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
23435 | *) ac_try_echo=$ac_try;; | |
23436 | esac | |
d589327a | 23437 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 23438 | (eval "$ac_compile") 2>conftest.er1 |
4db03d26 VZ |
23439 | ac_status=$? |
23440 | grep -v '^ *+' conftest.er1 >conftest.err | |
23441 | rm -f conftest.er1 | |
23442 | cat conftest.err >&5 | |
d589327a | 23443 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
23444 | (exit $ac_status); } && { |
23445 | test -z "$ac_c_werror_flag" || | |
23446 | test ! -s conftest.err | |
23447 | } && test -s conftest.$ac_objext; then | |
4db03d26 VZ |
23448 | ac_hi=$ac_mid; break |
23449 | else | |
d589327a | 23450 | echo "$as_me: failed program was:" >&5 |
4db03d26 VZ |
23451 | sed 's/^/| /' conftest.$ac_ext >&5 |
23452 | ||
47964710 VS |
23453 | ac_lo=`expr $ac_mid + 1` |
23454 | if test $ac_lo -le $ac_mid; then | |
23455 | ac_lo= ac_hi= | |
23456 | break | |
23457 | fi | |
23458 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
4db03d26 | 23459 | fi |
47964710 VS |
23460 | |
23461 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4db03d26 VZ |
23462 | done |
23463 | else | |
d589327a | 23464 | echo "$as_me: failed program was:" >&5 |
4db03d26 VZ |
23465 | sed 's/^/| /' conftest.$ac_ext >&5 |
23466 | ||
47964710 | 23467 | cat >conftest.$ac_ext <<_ACEOF |
4db03d26 VZ |
23468 | /* confdefs.h. */ |
23469 | _ACEOF | |
23470 | cat confdefs.h >>conftest.$ac_ext | |
23471 | cat >>conftest.$ac_ext <<_ACEOF | |
23472 | /* end confdefs.h. */ | |
23473 | ||
23474 | /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */ | |
23475 | #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 ) | |
23476 | # error "fake wchar_t" | |
23477 | #endif | |
23478 | #ifdef HAVE_WCHAR_H | |
23479 | # ifdef __CYGWIN__ | |
23480 | # include <stddef.h> | |
23481 | # endif | |
23482 | # include <wchar.h> | |
23483 | #endif | |
23484 | #ifdef HAVE_STDLIB_H | |
23485 | # include <stdlib.h> | |
23486 | #endif | |
23487 | #include <stdio.h> | |
23488 | ||
23489 | ||
23490 | ||
d589327a | 23491 | typedef wchar_t ac__type_sizeof_; |
4db03d26 VZ |
23492 | int |
23493 | main () | |
23494 | { | |
d589327a | 23495 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; |
238ecede MW |
23496 | test_array [0] = 0 |
23497 | ||
23498 | ; | |
23499 | return 0; | |
23500 | } | |
23501 | _ACEOF | |
23502 | rm -f conftest.$ac_objext | |
47964710 VS |
23503 | if { (ac_try="$ac_compile" |
23504 | case "(($ac_try" in | |
23505 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
23506 | *) ac_try_echo=$ac_try;; | |
23507 | esac | |
d589327a | 23508 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 23509 | (eval "$ac_compile") 2>conftest.er1 |
238ecede MW |
23510 | ac_status=$? |
23511 | grep -v '^ *+' conftest.er1 >conftest.err | |
23512 | rm -f conftest.er1 | |
23513 | cat conftest.err >&5 | |
d589327a | 23514 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
23515 | (exit $ac_status); } && { |
23516 | test -z "$ac_c_werror_flag" || | |
23517 | test ! -s conftest.err | |
23518 | } && test -s conftest.$ac_objext; then | |
39b61aa3 VZ |
23519 | ac_hi=-1 ac_mid=-1 |
23520 | while :; do | |
23521 | cat >conftest.$ac_ext <<_ACEOF | |
23522 | /* confdefs.h. */ | |
23523 | _ACEOF | |
23524 | cat confdefs.h >>conftest.$ac_ext | |
23525 | cat >>conftest.$ac_ext <<_ACEOF | |
23526 | /* end confdefs.h. */ | |
23527 | ||
23528 | /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */ | |
23529 | #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 ) | |
23530 | # error "fake wchar_t" | |
23531 | #endif | |
23532 | #ifdef HAVE_WCHAR_H | |
23533 | # ifdef __CYGWIN__ | |
23534 | # include <stddef.h> | |
23535 | # endif | |
23536 | # include <wchar.h> | |
23537 | #endif | |
23538 | #ifdef HAVE_STDLIB_H | |
23539 | # include <stdlib.h> | |
23540 | #endif | |
23541 | #include <stdio.h> | |
23542 | ||
23543 | ||
23544 | ||
d589327a | 23545 | typedef wchar_t ac__type_sizeof_; |
39b61aa3 VZ |
23546 | int |
23547 | main () | |
23548 | { | |
d589327a | 23549 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; |
39b61aa3 VZ |
23550 | test_array [0] = 0 |
23551 | ||
23552 | ; | |
23553 | return 0; | |
23554 | } | |
23555 | _ACEOF | |
23556 | rm -f conftest.$ac_objext | |
47964710 VS |
23557 | if { (ac_try="$ac_compile" |
23558 | case "(($ac_try" in | |
23559 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
23560 | *) ac_try_echo=$ac_try;; | |
23561 | esac | |
d589327a | 23562 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 23563 | (eval "$ac_compile") 2>conftest.er1 |
238ecede | 23564 | ac_status=$? |
39b61aa3 VZ |
23565 | grep -v '^ *+' conftest.er1 >conftest.err |
23566 | rm -f conftest.er1 | |
23567 | cat conftest.err >&5 | |
d589327a | 23568 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
23569 | (exit $ac_status); } && { |
23570 | test -z "$ac_c_werror_flag" || | |
23571 | test ! -s conftest.err | |
23572 | } && test -s conftest.$ac_objext; then | |
39b61aa3 VZ |
23573 | ac_lo=$ac_mid; break |
23574 | else | |
d589327a | 23575 | echo "$as_me: failed program was:" >&5 |
39b61aa3 VZ |
23576 | sed 's/^/| /' conftest.$ac_ext >&5 |
23577 | ||
47964710 VS |
23578 | ac_hi=`expr '(' $ac_mid ')' - 1` |
23579 | if test $ac_mid -le $ac_hi; then | |
23580 | ac_lo= ac_hi= | |
23581 | break | |
23582 | fi | |
23583 | ac_mid=`expr 2 '*' $ac_mid` | |
39b61aa3 | 23584 | fi |
47964710 VS |
23585 | |
23586 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
39b61aa3 VZ |
23587 | done |
23588 | else | |
d589327a | 23589 | echo "$as_me: failed program was:" >&5 |
39b61aa3 VZ |
23590 | sed 's/^/| /' conftest.$ac_ext >&5 |
23591 | ||
47964710 | 23592 | ac_lo= ac_hi= |
39b61aa3 | 23593 | fi |
47964710 VS |
23594 | |
23595 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
39b61aa3 | 23596 | fi |
47964710 VS |
23597 | |
23598 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
39b61aa3 VZ |
23599 | # Binary search between lo and hi bounds. |
23600 | while test "x$ac_lo" != "x$ac_hi"; do | |
23601 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
23602 | cat >conftest.$ac_ext <<_ACEOF | |
23603 | /* confdefs.h. */ | |
23604 | _ACEOF | |
23605 | cat confdefs.h >>conftest.$ac_ext | |
23606 | cat >>conftest.$ac_ext <<_ACEOF | |
23607 | /* end confdefs.h. */ | |
23608 | ||
23609 | /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */ | |
23610 | #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 ) | |
23611 | # error "fake wchar_t" | |
23612 | #endif | |
23613 | #ifdef HAVE_WCHAR_H | |
23614 | # ifdef __CYGWIN__ | |
23615 | # include <stddef.h> | |
23616 | # endif | |
23617 | # include <wchar.h> | |
23618 | #endif | |
23619 | #ifdef HAVE_STDLIB_H | |
23620 | # include <stdlib.h> | |
23621 | #endif | |
23622 | #include <stdio.h> | |
23623 | ||
23624 | ||
23625 | ||
d589327a | 23626 | typedef wchar_t ac__type_sizeof_; |
39b61aa3 VZ |
23627 | int |
23628 | main () | |
23629 | { | |
d589327a | 23630 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
39b61aa3 VZ |
23631 | test_array [0] = 0 |
23632 | ||
23633 | ; | |
23634 | return 0; | |
23635 | } | |
23636 | _ACEOF | |
23637 | rm -f conftest.$ac_objext | |
47964710 VS |
23638 | if { (ac_try="$ac_compile" |
23639 | case "(($ac_try" in | |
23640 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
23641 | *) ac_try_echo=$ac_try;; | |
23642 | esac | |
d589327a | 23643 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 23644 | (eval "$ac_compile") 2>conftest.er1 |
238ecede | 23645 | ac_status=$? |
39b61aa3 VZ |
23646 | grep -v '^ *+' conftest.er1 >conftest.err |
23647 | rm -f conftest.er1 | |
23648 | cat conftest.err >&5 | |
d589327a | 23649 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
23650 | (exit $ac_status); } && { |
23651 | test -z "$ac_c_werror_flag" || | |
23652 | test ! -s conftest.err | |
23653 | } && test -s conftest.$ac_objext; then | |
39b61aa3 VZ |
23654 | ac_hi=$ac_mid |
23655 | else | |
d589327a | 23656 | echo "$as_me: failed program was:" >&5 |
39b61aa3 VZ |
23657 | sed 's/^/| /' conftest.$ac_ext >&5 |
23658 | ||
47964710 | 23659 | ac_lo=`expr '(' $ac_mid ')' + 1` |
39b61aa3 | 23660 | fi |
47964710 VS |
23661 | |
23662 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
39b61aa3 VZ |
23663 | done |
23664 | case $ac_lo in | |
23665 | ?*) ac_cv_sizeof_wchar_t=$ac_lo;; | |
47964710 | 23666 | '') if test "$ac_cv_type_wchar_t" = yes; then |
d589327a | 23667 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t) |
39b61aa3 | 23668 | See \`config.log' for more details." >&5 |
d589327a | 23669 | echo "$as_me: error: cannot compute sizeof (wchar_t) |
39b61aa3 | 23670 | See \`config.log' for more details." >&2;} |
d589327a | 23671 | { (exit 77); exit 77; }; } |
47964710 VS |
23672 | else |
23673 | ac_cv_sizeof_wchar_t=0 | |
23674 | fi ;; | |
39b61aa3 VZ |
23675 | esac |
23676 | else | |
23677 | cat >conftest.$ac_ext <<_ACEOF | |
238ecede MW |
23678 | /* confdefs.h. */ |
23679 | _ACEOF | |
23680 | cat confdefs.h >>conftest.$ac_ext | |
23681 | cat >>conftest.$ac_ext <<_ACEOF | |
23682 | /* end confdefs.h. */ | |
23683 | ||
83d8eb47 MW |
23684 | /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */ |
23685 | #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 ) | |
238ecede MW |
23686 | # error "fake wchar_t" |
23687 | #endif | |
23688 | #ifdef HAVE_WCHAR_H | |
23689 | # ifdef __CYGWIN__ | |
23690 | # include <stddef.h> | |
23691 | # endif | |
23692 | # include <wchar.h> | |
23693 | #endif | |
23694 | #ifdef HAVE_STDLIB_H | |
23695 | # include <stdlib.h> | |
23696 | #endif | |
23697 | #include <stdio.h> | |
23698 | ||
23699 | ||
23700 | ||
d589327a VZ |
23701 | typedef wchar_t ac__type_sizeof_; |
23702 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } | |
23703 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } | |
238ecede MW |
23704 | #include <stdio.h> |
23705 | #include <stdlib.h> | |
23706 | int | |
23707 | main () | |
23708 | { | |
a848cd7e | 23709 | |
238ecede MW |
23710 | FILE *f = fopen ("conftest.val", "w"); |
23711 | if (! f) | |
47964710 | 23712 | return 1; |
d589327a | 23713 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
238ecede | 23714 | { |
47964710 | 23715 | long int i = longval (); |
d589327a | 23716 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
47964710 | 23717 | return 1; |
d589327a | 23718 | fprintf (f, "%ld\n", i); |
238ecede MW |
23719 | } |
23720 | else | |
23721 | { | |
47964710 | 23722 | unsigned long int i = ulongval (); |
d589327a | 23723 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
47964710 | 23724 | return 1; |
d589327a | 23725 | fprintf (f, "%lu\n", i); |
238ecede | 23726 | } |
47964710 | 23727 | return ferror (f) || fclose (f) != 0; |
238ecede MW |
23728 | |
23729 | ; | |
23730 | return 0; | |
23731 | } | |
a848cd7e SC |
23732 | _ACEOF |
23733 | rm -f conftest$ac_exeext | |
47964710 VS |
23734 | if { (ac_try="$ac_link" |
23735 | case "(($ac_try" in | |
23736 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
23737 | *) ac_try_echo=$ac_try;; | |
23738 | esac | |
d589327a | 23739 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 23740 | (eval "$ac_link") 2>&5 |
a848cd7e | 23741 | ac_status=$? |
d589327a | 23742 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
a848cd7e | 23743 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
47964710 VS |
23744 | { (case "(($ac_try" in |
23745 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
23746 | *) ac_try_echo=$ac_try;; | |
23747 | esac | |
d589327a | 23748 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 23749 | (eval "$ac_try") 2>&5 |
a848cd7e | 23750 | ac_status=$? |
d589327a | 23751 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
a848cd7e | 23752 | (exit $ac_status); }; }; then |
238ecede | 23753 | ac_cv_sizeof_wchar_t=`cat conftest.val` |
a848cd7e | 23754 | else |
d589327a VZ |
23755 | echo "$as_me: program exited with status $ac_status" >&5 |
23756 | echo "$as_me: failed program was:" >&5 | |
a848cd7e SC |
23757 | sed 's/^/| /' conftest.$ac_ext >&5 |
23758 | ||
23759 | ( exit $ac_status ) | |
47964710 | 23760 | if test "$ac_cv_type_wchar_t" = yes; then |
d589327a | 23761 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t) |
238ecede | 23762 | See \`config.log' for more details." >&5 |
d589327a | 23763 | echo "$as_me: error: cannot compute sizeof (wchar_t) |
238ecede | 23764 | See \`config.log' for more details." >&2;} |
d589327a | 23765 | { (exit 77); exit 77; }; } |
47964710 VS |
23766 | else |
23767 | ac_cv_sizeof_wchar_t=0 | |
23768 | fi | |
a848cd7e | 23769 | fi |
47964710 | 23770 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 23771 | fi |
238ecede | 23772 | rm -f conftest.val |
238ecede | 23773 | fi |
d589327a VZ |
23774 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5 |
23775 | echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6; } | |
47964710 VS |
23776 | |
23777 | ||
23778 | ||
a848cd7e | 23779 | cat >>confdefs.h <<_ACEOF |
238ecede | 23780 | #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t |
a848cd7e SC |
23781 | _ACEOF |
23782 | ||
23783 | ||
6517fa86 | 23784 | if test "$ac_cv_sizeof_wchar_t" != 0; then |
47a7e797 MW |
23785 | wxUSE_WCHAR_T=yes |
23786 | else | |
23787 | wxUSE_WCHAR_T=no | |
23788 | fi | |
238ecede | 23789 | |
d589327a VZ |
23790 | { echo "$as_me:$LINENO: checking for va_copy" >&5 |
23791 | echo $ECHO_N "checking for va_copy... $ECHO_C" >&6; } | |
ba3d13e1 | 23792 | if test "${wx_cv_func_va_copy+set}" = set; then |
d589327a | 23793 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba3d13e1 VZ |
23794 | else |
23795 | ||
47964710 | 23796 | ac_ext=cpp |
65c11337 VZ |
23797 | ac_cpp='$CXXCPP $CPPFLAGS' |
23798 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
23799 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
23800 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
23801 | ||
ba3d13e1 VZ |
23802 | cat >conftest.$ac_ext <<_ACEOF |
23803 | ||
23804 | #include <stdarg.h> | |
23805 | void foo(char *f, ...) | |
23806 | { | |
23807 | va_list ap1, ap2; | |
23808 | va_start(ap1, f); | |
23809 | va_copy(ap2, ap1); | |
23810 | va_end(ap2); | |
23811 | va_end(ap1); | |
23812 | } | |
5886b072 VZ |
23813 | int main() |
23814 | { | |
b902e639 VZ |
23815 | foo("hi", 17); |
23816 | return 0; | |
5886b072 | 23817 | } |
ba3d13e1 VZ |
23818 | _ACEOF |
23819 | rm -f conftest.$ac_objext conftest$ac_exeext | |
47964710 VS |
23820 | if { (ac_try="$ac_link" |
23821 | case "(($ac_try" in | |
23822 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
23823 | *) ac_try_echo=$ac_try;; | |
23824 | esac | |
d589327a | 23825 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 23826 | (eval "$ac_link") 2>conftest.er1 |
ba3d13e1 VZ |
23827 | ac_status=$? |
23828 | grep -v '^ *+' conftest.er1 >conftest.err | |
23829 | rm -f conftest.er1 | |
23830 | cat conftest.err >&5 | |
d589327a | 23831 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
23832 | (exit $ac_status); } && { |
23833 | test -z "$ac_cxx_werror_flag" || | |
23834 | test ! -s conftest.err | |
d589327a VZ |
23835 | } && test -s conftest$ac_exeext && |
23836 | $as_test_x conftest$ac_exeext; then | |
ba3d13e1 VZ |
23837 | wx_cv_func_va_copy=yes |
23838 | else | |
d589327a | 23839 | echo "$as_me: failed program was:" >&5 |
ba3d13e1 VZ |
23840 | sed 's/^/| /' conftest.$ac_ext >&5 |
23841 | ||
47964710 | 23842 | wx_cv_func_va_copy=no |
ba3d13e1 VZ |
23843 | |
23844 | fi | |
47964710 VS |
23845 | |
23846 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
ba3d13e1 | 23847 | conftest$ac_exeext conftest.$ac_ext |
65c11337 VZ |
23848 | ac_ext=c |
23849 | ac_cpp='$CPP $CPPFLAGS' | |
23850 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
23851 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
23852 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
23853 | ||
ba3d13e1 VZ |
23854 | |
23855 | ||
23856 | fi | |
d589327a VZ |
23857 | { echo "$as_me:$LINENO: result: $wx_cv_func_va_copy" >&5 |
23858 | echo "${ECHO_T}$wx_cv_func_va_copy" >&6; } | |
ba3d13e1 VZ |
23859 | |
23860 | if test $wx_cv_func_va_copy = "yes"; then | |
23861 | cat >>confdefs.h <<\_ACEOF | |
23862 | #define HAVE_VA_COPY 1 | |
23863 | _ACEOF | |
23864 | ||
23865 | else | |
d589327a VZ |
23866 | { echo "$as_me:$LINENO: checking if va_list can be copied by value" >&5 |
23867 | echo $ECHO_N "checking if va_list can be copied by value... $ECHO_C" >&6; } | |
ba3d13e1 | 23868 | if test "${wx_cv_type_va_list_lvalue+set}" = set; then |
d589327a | 23869 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba3d13e1 VZ |
23870 | else |
23871 | ||
23872 | if test "$cross_compiling" = yes; then | |
23873 | wx_cv_type_va_list_lvalue=yes | |
23874 | ||
23875 | else | |
23876 | cat >conftest.$ac_ext <<_ACEOF | |
23877 | ||
23878 | #include <stdarg.h> | |
23879 | int foo(char *f, ...) | |
23880 | { | |
23881 | va_list ap1, ap2; | |
23882 | va_start(ap1, f); | |
23883 | ap2 = ap1; | |
23884 | if ( va_arg(ap1, int) != 17 || va_arg(ap2, int) != 17 ) | |
23885 | return 1; | |
23886 | va_end(ap2); | |
23887 | va_end(ap1); | |
23888 | return 0; | |
23889 | } | |
23890 | int main() | |
23891 | { | |
23892 | return foo("hi", 17); | |
23893 | } | |
23894 | _ACEOF | |
23895 | rm -f conftest$ac_exeext | |
47964710 VS |
23896 | if { (ac_try="$ac_link" |
23897 | case "(($ac_try" in | |
23898 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
23899 | *) ac_try_echo=$ac_try;; | |
23900 | esac | |
d589327a | 23901 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 23902 | (eval "$ac_link") 2>&5 |
ba3d13e1 | 23903 | ac_status=$? |
d589327a | 23904 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ba3d13e1 | 23905 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
47964710 VS |
23906 | { (case "(($ac_try" in |
23907 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
23908 | *) ac_try_echo=$ac_try;; | |
23909 | esac | |
d589327a | 23910 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 23911 | (eval "$ac_try") 2>&5 |
ba3d13e1 | 23912 | ac_status=$? |
d589327a | 23913 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ba3d13e1 VZ |
23914 | (exit $ac_status); }; }; then |
23915 | wx_cv_type_va_list_lvalue=yes | |
23916 | else | |
d589327a VZ |
23917 | echo "$as_me: program exited with status $ac_status" >&5 |
23918 | echo "$as_me: failed program was:" >&5 | |
ba3d13e1 VZ |
23919 | sed 's/^/| /' conftest.$ac_ext >&5 |
23920 | ||
23921 | ( exit $ac_status ) | |
23922 | wx_cv_type_va_list_lvalue=no | |
23923 | fi | |
47964710 | 23924 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ba3d13e1 VZ |
23925 | fi |
23926 | ||
23927 | ||
47964710 VS |
23928 | |
23929 | ||
ba3d13e1 | 23930 | fi |
d589327a VZ |
23931 | { echo "$as_me:$LINENO: result: $wx_cv_type_va_list_lvalue" >&5 |
23932 | echo "${ECHO_T}$wx_cv_type_va_list_lvalue" >&6; } | |
ba3d13e1 VZ |
23933 | |
23934 | if test $wx_cv_type_va_list_lvalue != "yes"; then | |
23935 | cat >>confdefs.h <<\_ACEOF | |
23936 | #define VA_LIST_IS_ARRAY 1 | |
23937 | _ACEOF | |
23938 | ||
23939 | fi | |
23940 | fi | |
23941 | ||
70c536f3 VZ |
23942 | if test "$wxUSE_VARARG_MACROS" = "yes"; then |
23943 | ||
d589327a VZ |
23944 | { echo "$as_me:$LINENO: checking whether the compiler supports variadic macros" >&5 |
23945 | echo $ECHO_N "checking whether the compiler supports variadic macros... $ECHO_C" >&6; } | |
ca766534 | 23946 | if test "${wx_cv_have_variadic_macros+set}" = set; then |
d589327a | 23947 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ca766534 VS |
23948 | else |
23949 | ||
47964710 | 23950 | ac_ext=cpp |
38c6938f VZ |
23951 | ac_cpp='$CXXCPP $CPPFLAGS' |
23952 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
23953 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
23954 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
23955 | ||
ca766534 VS |
23956 | cat >conftest.$ac_ext <<_ACEOF |
23957 | /* confdefs.h. */ | |
23958 | _ACEOF | |
23959 | cat confdefs.h >>conftest.$ac_ext | |
23960 | cat >>conftest.$ac_ext <<_ACEOF | |
23961 | /* end confdefs.h. */ | |
23962 | ||
23963 | #include <stdio.h> | |
23964 | #define test(fmt, ...) printf(fmt, __VA_ARGS__) | |
23965 | ||
23966 | int | |
23967 | main () | |
23968 | { | |
23969 | ||
23970 | test("%s %d %p", "test", 1, 0); | |
23971 | ||
23972 | ||
23973 | ; | |
23974 | return 0; | |
23975 | } | |
23976 | _ACEOF | |
23977 | rm -f conftest.$ac_objext | |
47964710 VS |
23978 | if { (ac_try="$ac_compile" |
23979 | case "(($ac_try" in | |
23980 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
23981 | *) ac_try_echo=$ac_try;; | |
23982 | esac | |
d589327a | 23983 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 23984 | (eval "$ac_compile") 2>conftest.er1 |
ca766534 VS |
23985 | ac_status=$? |
23986 | grep -v '^ *+' conftest.er1 >conftest.err | |
23987 | rm -f conftest.er1 | |
23988 | cat conftest.err >&5 | |
d589327a | 23989 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
23990 | (exit $ac_status); } && { |
23991 | test -z "$ac_cxx_werror_flag" || | |
23992 | test ! -s conftest.err | |
23993 | } && test -s conftest.$ac_objext; then | |
ca766534 VS |
23994 | wx_cv_have_variadic_macros=yes |
23995 | else | |
d589327a | 23996 | echo "$as_me: failed program was:" >&5 |
ca766534 VS |
23997 | sed 's/^/| /' conftest.$ac_ext >&5 |
23998 | ||
47964710 | 23999 | wx_cv_have_variadic_macros=no |
ca766534 VS |
24000 | |
24001 | fi | |
47964710 VS |
24002 | |
24003 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
38c6938f VZ |
24004 | ac_ext=c |
24005 | ac_cpp='$CPP $CPPFLAGS' | |
24006 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
24007 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
24008 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
24009 | ||
ca766534 VS |
24010 | |
24011 | ||
24012 | fi | |
d589327a VZ |
24013 | { echo "$as_me:$LINENO: result: $wx_cv_have_variadic_macros" >&5 |
24014 | echo "${ECHO_T}$wx_cv_have_variadic_macros" >&6; } | |
ca766534 VS |
24015 | |
24016 | if test $wx_cv_have_variadic_macros = "yes"; then | |
24017 | cat >>confdefs.h <<\_ACEOF | |
24018 | #define HAVE_VARIADIC_MACROS 1 | |
24019 | _ACEOF | |
24020 | ||
24021 | fi | |
24022 | ||
70c536f3 | 24023 | fi |
41148443 VZ |
24024 | |
24025 | LARGEFILE_CPPFLAGS= | |
47964710 | 24026 | # Check whether --enable-largefile was given. |
a848cd7e | 24027 | if test "${enable_largefile+set}" = set; then |
47964710 VS |
24028 | enableval=$enable_largefile; |
24029 | fi | |
a848cd7e | 24030 | |
a848cd7e SC |
24031 | if test "$enable_largefile" != no; then |
24032 | wx_largefile=no | |
24033 | ||
d589327a VZ |
24034 | { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5 |
24035 | echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; } | |
a848cd7e | 24036 | if test "${ac_cv_sys_file_offset_bits+set}" = set; then |
d589327a | 24037 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a848cd7e SC |
24038 | else |
24039 | ||
24040 | cat >conftest.$ac_ext <<_ACEOF | |
24041 | /* confdefs.h. */ | |
24042 | _ACEOF | |
24043 | cat confdefs.h >>conftest.$ac_ext | |
24044 | cat >>conftest.$ac_ext <<_ACEOF | |
24045 | /* end confdefs.h. */ | |
24046 | #define _FILE_OFFSET_BITS 64 | |
24047 | #include <sys/types.h> | |
24048 | int | |
24049 | main () | |
24050 | { | |
24051 | typedef struct { | |
24052 | unsigned int field: sizeof(off_t) == 8; | |
24053 | } wxlf; | |
24054 | ||
24055 | ; | |
24056 | return 0; | |
24057 | } | |
24058 | _ACEOF | |
24059 | rm -f conftest.$ac_objext | |
47964710 VS |
24060 | if { (ac_try="$ac_compile" |
24061 | case "(($ac_try" in | |
24062 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
24063 | *) ac_try_echo=$ac_try;; | |
24064 | esac | |
d589327a | 24065 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 24066 | (eval "$ac_compile") 2>conftest.er1 |
a848cd7e | 24067 | ac_status=$? |
ac1cb8d3 VS |
24068 | grep -v '^ *+' conftest.er1 >conftest.err |
24069 | rm -f conftest.er1 | |
24070 | cat conftest.err >&5 | |
d589327a | 24071 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
24072 | (exit $ac_status); } && { |
24073 | test -z "$ac_c_werror_flag" || | |
24074 | test ! -s conftest.err | |
24075 | } && test -s conftest.$ac_objext; then | |
a848cd7e SC |
24076 | ac_cv_sys_file_offset_bits=64 |
24077 | else | |
d589327a | 24078 | echo "$as_me: failed program was:" >&5 |
a848cd7e SC |
24079 | sed 's/^/| /' conftest.$ac_ext >&5 |
24080 | ||
47964710 | 24081 | ac_cv_sys_file_offset_bits=no |
a848cd7e | 24082 | fi |
47964710 VS |
24083 | |
24084 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
a848cd7e SC |
24085 | |
24086 | ||
24087 | fi | |
d589327a VZ |
24088 | { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5 |
24089 | echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; } | |
a848cd7e SC |
24090 | |
24091 | if test "$ac_cv_sys_file_offset_bits" != no; then | |
24092 | wx_largefile=yes | |
24093 | cat >>confdefs.h <<_ACEOF | |
24094 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits | |
24095 | _ACEOF | |
24096 | ||
24097 | fi | |
24098 | ||
24099 | if test "x$wx_largefile" != "xyes"; then | |
24100 | ||
d589327a VZ |
24101 | { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5 |
24102 | echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; } | |
a848cd7e | 24103 | if test "${ac_cv_sys_large_files+set}" = set; then |
d589327a | 24104 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a848cd7e SC |
24105 | else |
24106 | ||
24107 | cat >conftest.$ac_ext <<_ACEOF | |
24108 | /* confdefs.h. */ | |
24109 | _ACEOF | |
24110 | cat confdefs.h >>conftest.$ac_ext | |
24111 | cat >>conftest.$ac_ext <<_ACEOF | |
24112 | /* end confdefs.h. */ | |
24113 | #define _LARGE_FILES 1 | |
24114 | #include <sys/types.h> | |
24115 | int | |
24116 | main () | |
24117 | { | |
24118 | typedef struct { | |
24119 | unsigned int field: sizeof(off_t) == 8; | |
24120 | } wxlf; | |
24121 | ||
24122 | ; | |
24123 | return 0; | |
24124 | } | |
24125 | _ACEOF | |
24126 | rm -f conftest.$ac_objext | |
47964710 VS |
24127 | if { (ac_try="$ac_compile" |
24128 | case "(($ac_try" in | |
24129 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
24130 | *) ac_try_echo=$ac_try;; | |
24131 | esac | |
d589327a | 24132 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 24133 | (eval "$ac_compile") 2>conftest.er1 |
a848cd7e | 24134 | ac_status=$? |
ac1cb8d3 VS |
24135 | grep -v '^ *+' conftest.er1 >conftest.err |
24136 | rm -f conftest.er1 | |
24137 | cat conftest.err >&5 | |
d589327a | 24138 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
24139 | (exit $ac_status); } && { |
24140 | test -z "$ac_c_werror_flag" || | |
24141 | test ! -s conftest.err | |
24142 | } && test -s conftest.$ac_objext; then | |
a848cd7e SC |
24143 | ac_cv_sys_large_files=1 |
24144 | else | |
d589327a | 24145 | echo "$as_me: failed program was:" >&5 |
a848cd7e SC |
24146 | sed 's/^/| /' conftest.$ac_ext >&5 |
24147 | ||
47964710 | 24148 | ac_cv_sys_large_files=no |
a848cd7e | 24149 | fi |
47964710 VS |
24150 | |
24151 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
a848cd7e SC |
24152 | |
24153 | ||
24154 | fi | |
d589327a VZ |
24155 | { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5 |
24156 | echo "${ECHO_T}$ac_cv_sys_large_files" >&6; } | |
a848cd7e SC |
24157 | |
24158 | if test "$ac_cv_sys_large_files" != no; then | |
24159 | wx_largefile=yes | |
24160 | cat >>confdefs.h <<_ACEOF | |
24161 | #define _LARGE_FILES $ac_cv_sys_large_files | |
24162 | _ACEOF | |
24163 | ||
24164 | fi | |
24165 | ||
24166 | fi | |
24167 | ||
d589327a VZ |
24168 | { echo "$as_me:$LINENO: checking if large file support is available" >&5 |
24169 | echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6; } | |
a848cd7e SC |
24170 | if test "x$wx_largefile" = "xyes"; then |
24171 | cat >>confdefs.h <<\_ACEOF | |
24172 | #define HAVE_LARGEFILE_SUPPORT 1 | |
24173 | _ACEOF | |
24174 | ||
24175 | fi | |
d589327a VZ |
24176 | { echo "$as_me:$LINENO: result: $wx_largefile" >&5 |
24177 | echo "${ECHO_T}$wx_largefile" >&6; } | |
a848cd7e SC |
24178 | fi |
24179 | ||
41148443 VZ |
24180 | if test "$ac_cv_sys_file_offset_bits" = "64"; then |
24181 | LARGEFILE_CPPFLAGS="-D_FILE_OFFSET_BITS=64" | |
24182 | elif test "$ac_cv_sys_large_files" = 1; then | |
24183 | LARGEFILE_CPPFLAGS="-D_LARGE_FILES" | |
24184 | fi | |
5b674b9d | 24185 | |
41148443 VZ |
24186 | if test -n "$LARGEFILE_CPPFLAGS"; then |
24187 | WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS $LARGEFILE_CPPFLAGS" | |
00421666 | 24188 | |
41148443 | 24189 | if test "$USE_HPUX" = 1 -a "$GXX" = "yes"; then |
d589327a VZ |
24190 | { echo "$as_me:$LINENO: checking if -D__STDC_EXT__ is required" >&5 |
24191 | echo $ECHO_N "checking if -D__STDC_EXT__ is required... $ECHO_C" >&6; } | |
00421666 | 24192 | if test "${wx_cv_STDC_EXT_required+set}" = set; then |
d589327a | 24193 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
00421666 MW |
24194 | else |
24195 | ||
41148443 | 24196 | ac_ext=cpp |
9b8888f9 VZ |
24197 | ac_cpp='$CXXCPP $CPPFLAGS' |
24198 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
24199 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
24200 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
24201 | ||
41148443 | 24202 | cat >conftest.$ac_ext <<_ACEOF |
00421666 MW |
24203 | /* confdefs.h. */ |
24204 | _ACEOF | |
24205 | cat confdefs.h >>conftest.$ac_ext | |
24206 | cat >>conftest.$ac_ext <<_ACEOF | |
24207 | /* end confdefs.h. */ | |
24208 | ||
24209 | int | |
24210 | main () | |
24211 | { | |
24212 | ||
41148443 VZ |
24213 | #ifndef __STDC_EXT__ |
24214 | choke me | |
24215 | #endif | |
00421666 MW |
24216 | |
24217 | ; | |
24218 | return 0; | |
24219 | } | |
24220 | _ACEOF | |
24221 | rm -f conftest.$ac_objext | |
47964710 VS |
24222 | if { (ac_try="$ac_compile" |
24223 | case "(($ac_try" in | |
24224 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
24225 | *) ac_try_echo=$ac_try;; | |
24226 | esac | |
d589327a | 24227 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 24228 | (eval "$ac_compile") 2>conftest.er1 |
00421666 MW |
24229 | ac_status=$? |
24230 | grep -v '^ *+' conftest.er1 >conftest.err | |
24231 | rm -f conftest.er1 | |
24232 | cat conftest.err >&5 | |
d589327a | 24233 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
24234 | (exit $ac_status); } && { |
24235 | test -z "$ac_cxx_werror_flag" || | |
24236 | test ! -s conftest.err | |
24237 | } && test -s conftest.$ac_objext; then | |
00421666 MW |
24238 | wx_cv_STDC_EXT_required=no |
24239 | else | |
d589327a | 24240 | echo "$as_me: failed program was:" >&5 |
00421666 MW |
24241 | sed 's/^/| /' conftest.$ac_ext >&5 |
24242 | ||
47964710 | 24243 | wx_cv_STDC_EXT_required=yes |
00421666 MW |
24244 | |
24245 | fi | |
47964710 VS |
24246 | |
24247 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
41148443 | 24248 | ac_ext=c |
9b8888f9 VZ |
24249 | ac_cpp='$CPP $CPPFLAGS' |
24250 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
24251 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
24252 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
24253 | ||
00421666 MW |
24254 | |
24255 | ||
24256 | fi | |
d589327a VZ |
24257 | { echo "$as_me:$LINENO: result: $wx_cv_STDC_EXT_required" >&5 |
24258 | echo "${ECHO_T}$wx_cv_STDC_EXT_required" >&6; } | |
41148443 VZ |
24259 | if test "x$wx_cv_STDC_EXT_required" = "xyes"; then |
24260 | WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -D__STDC_EXT__" | |
00421666 | 24261 | fi |
5b674b9d | 24262 | fi |
41148443 VZ |
24263 | fi |
24264 | ||
24265 | ac_ext=cpp | |
24266 | ac_cpp='$CXXCPP $CPPFLAGS' | |
24267 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
24268 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
24269 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
24270 | ||
24271 | old_CPPFLAGS="$CPPFLAGS" | |
24272 | CPPFLAGS="$CPPFLAGS $LARGEFILE_CPPFLAGS" | |
d589327a VZ |
24273 | { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5 |
24274 | echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; } | |
5294a27e | 24275 | if test "${ac_cv_sys_largefile_source+set}" = set; then |
d589327a | 24276 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5294a27e VZ |
24277 | else |
24278 | while :; do | |
5294a27e VZ |
24279 | cat >conftest.$ac_ext <<_ACEOF |
24280 | /* confdefs.h. */ | |
24281 | _ACEOF | |
24282 | cat confdefs.h >>conftest.$ac_ext | |
24283 | cat >>conftest.$ac_ext <<_ACEOF | |
24284 | /* end confdefs.h. */ | |
47964710 VS |
24285 | #include <sys/types.h> /* for off_t */ |
24286 | #include <stdio.h> | |
5294a27e VZ |
24287 | int |
24288 | main () | |
24289 | { | |
47964710 VS |
24290 | int (*fp) (FILE *, off_t, int) = fseeko; |
24291 | return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); | |
5294a27e VZ |
24292 | ; |
24293 | return 0; | |
24294 | } | |
24295 | _ACEOF | |
47964710 VS |
24296 | rm -f conftest.$ac_objext conftest$ac_exeext |
24297 | if { (ac_try="$ac_link" | |
24298 | case "(($ac_try" in | |
24299 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
24300 | *) ac_try_echo=$ac_try;; | |
24301 | esac | |
d589327a | 24302 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 24303 | (eval "$ac_link") 2>conftest.er1 |
5294a27e VZ |
24304 | ac_status=$? |
24305 | grep -v '^ *+' conftest.er1 >conftest.err | |
24306 | rm -f conftest.er1 | |
24307 | cat conftest.err >&5 | |
d589327a | 24308 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 | 24309 | (exit $ac_status); } && { |
41148443 | 24310 | test -z "$ac_cxx_werror_flag" || |
47964710 | 24311 | test ! -s conftest.err |
d589327a VZ |
24312 | } && test -s conftest$ac_exeext && |
24313 | $as_test_x conftest$ac_exeext; then | |
47964710 | 24314 | ac_cv_sys_largefile_source=no; break |
5294a27e | 24315 | else |
d589327a | 24316 | echo "$as_me: failed program was:" >&5 |
5294a27e VZ |
24317 | sed 's/^/| /' conftest.$ac_ext >&5 |
24318 | ||
47964710 | 24319 | |
5294a27e | 24320 | fi |
47964710 VS |
24321 | |
24322 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
24323 | conftest$ac_exeext conftest.$ac_ext | |
5294a27e VZ |
24324 | cat >conftest.$ac_ext <<_ACEOF |
24325 | /* confdefs.h. */ | |
24326 | _ACEOF | |
24327 | cat confdefs.h >>conftest.$ac_ext | |
24328 | cat >>conftest.$ac_ext <<_ACEOF | |
24329 | /* end confdefs.h. */ | |
24330 | #define _LARGEFILE_SOURCE 1 | |
47964710 VS |
24331 | #include <sys/types.h> /* for off_t */ |
24332 | #include <stdio.h> | |
5294a27e VZ |
24333 | int |
24334 | main () | |
24335 | { | |
47964710 VS |
24336 | int (*fp) (FILE *, off_t, int) = fseeko; |
24337 | return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); | |
5294a27e VZ |
24338 | ; |
24339 | return 0; | |
24340 | } | |
24341 | _ACEOF | |
47964710 VS |
24342 | rm -f conftest.$ac_objext conftest$ac_exeext |
24343 | if { (ac_try="$ac_link" | |
24344 | case "(($ac_try" in | |
24345 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
24346 | *) ac_try_echo=$ac_try;; | |
24347 | esac | |
d589327a | 24348 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 24349 | (eval "$ac_link") 2>conftest.er1 |
5294a27e VZ |
24350 | ac_status=$? |
24351 | grep -v '^ *+' conftest.er1 >conftest.err | |
24352 | rm -f conftest.er1 | |
24353 | cat conftest.err >&5 | |
d589327a | 24354 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 | 24355 | (exit $ac_status); } && { |
41148443 | 24356 | test -z "$ac_cxx_werror_flag" || |
47964710 | 24357 | test ! -s conftest.err |
d589327a VZ |
24358 | } && test -s conftest$ac_exeext && |
24359 | $as_test_x conftest$ac_exeext; then | |
5294a27e VZ |
24360 | ac_cv_sys_largefile_source=1; break |
24361 | else | |
d589327a | 24362 | echo "$as_me: failed program was:" >&5 |
5294a27e VZ |
24363 | sed 's/^/| /' conftest.$ac_ext >&5 |
24364 | ||
47964710 | 24365 | |
5294a27e | 24366 | fi |
47964710 VS |
24367 | |
24368 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
24369 | conftest$ac_exeext conftest.$ac_ext | |
24370 | ac_cv_sys_largefile_source=unknown | |
5294a27e VZ |
24371 | break |
24372 | done | |
24373 | fi | |
d589327a VZ |
24374 | { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5 |
24375 | echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; } | |
47964710 VS |
24376 | case $ac_cv_sys_largefile_source in #( |
24377 | no | unknown) ;; | |
24378 | *) | |
5294a27e VZ |
24379 | cat >>confdefs.h <<_ACEOF |
24380 | #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source | |
24381 | _ACEOF | |
47964710 VS |
24382 | ;; |
24383 | esac | |
d9bd1a73 | 24384 | rm -f conftest* |
5294a27e VZ |
24385 | |
24386 | # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug | |
24387 | # in glibc 2.1.3, but that breaks too many other things. | |
24388 | # If you want fseeko and ftello with glibc, upgrade to a fixed glibc. | |
47964710 | 24389 | if test $ac_cv_sys_largefile_source != unknown; then |
5294a27e VZ |
24390 | |
24391 | cat >>confdefs.h <<\_ACEOF | |
24392 | #define HAVE_FSEEKO 1 | |
24393 | _ACEOF | |
24394 | ||
24395 | fi | |
24396 | ||
41148443 VZ |
24397 | CPPFLAGS="$old_CPPFLAGS" |
24398 | ac_ext=c | |
24399 | ac_cpp='$CPP $CPPFLAGS' | |
24400 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
24401 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
24402 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
24403 | ||
24404 | if test "$ac_cv_sys_largefile_source" != no; then | |
24405 | WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_LARGEFILE_SOURCE=$ac_cv_sys_largefile_source" | |
a848cd7e SC |
24406 | fi |
24407 | ||
d589327a VZ |
24408 | { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 |
24409 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; } | |
a848cd7e | 24410 | if test "${ac_cv_c_bigendian+set}" = set; then |
d589327a | 24411 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a848cd7e SC |
24412 | else |
24413 | ac_cv_c_bigendian=unknown | |
24414 | # See if sys/param.h defines the BYTE_ORDER macro. | |
24415 | cat >conftest.$ac_ext <<_ACEOF | |
24416 | /* confdefs.h. */ | |
24417 | _ACEOF | |
24418 | cat confdefs.h >>conftest.$ac_ext | |
24419 | cat >>conftest.$ac_ext <<_ACEOF | |
24420 | /* end confdefs.h. */ | |
24421 | #include <sys/types.h> | |
24422 | #include <sys/param.h> | |
24423 | int | |
24424 | main () | |
24425 | { | |
24426 | ||
24427 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN | |
24428 | bogus endian macros | |
24429 | #endif | |
24430 | ; | |
24431 | return 0; | |
24432 | } | |
24433 | _ACEOF | |
24434 | rm -f conftest.$ac_objext | |
47964710 VS |
24435 | if { (ac_try="$ac_compile" |
24436 | case "(($ac_try" in | |
24437 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
24438 | *) ac_try_echo=$ac_try;; | |
24439 | esac | |
d589327a | 24440 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 24441 | (eval "$ac_compile") 2>conftest.er1 |
a848cd7e | 24442 | ac_status=$? |
ac1cb8d3 VS |
24443 | grep -v '^ *+' conftest.er1 >conftest.err |
24444 | rm -f conftest.er1 | |
24445 | cat conftest.err >&5 | |
d589327a | 24446 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
24447 | (exit $ac_status); } && { |
24448 | test -z "$ac_c_werror_flag" || | |
24449 | test ! -s conftest.err | |
24450 | } && test -s conftest.$ac_objext; then | |
a848cd7e SC |
24451 | # It does; now see whether it defined to BIG_ENDIAN or not. |
24452 | cat >conftest.$ac_ext <<_ACEOF | |
24453 | /* confdefs.h. */ | |
24454 | _ACEOF | |
24455 | cat confdefs.h >>conftest.$ac_ext | |
24456 | cat >>conftest.$ac_ext <<_ACEOF | |
24457 | /* end confdefs.h. */ | |
24458 | #include <sys/types.h> | |
24459 | #include <sys/param.h> | |
24460 | int | |
24461 | main () | |
24462 | { | |
24463 | ||
24464 | #if BYTE_ORDER != BIG_ENDIAN | |
24465 | not big endian | |
24466 | #endif | |
24467 | ; | |
24468 | return 0; | |
24469 | } | |
24470 | _ACEOF | |
24471 | rm -f conftest.$ac_objext | |
47964710 VS |
24472 | if { (ac_try="$ac_compile" |
24473 | case "(($ac_try" in | |
24474 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
24475 | *) ac_try_echo=$ac_try;; | |
24476 | esac | |
d589327a | 24477 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 24478 | (eval "$ac_compile") 2>conftest.er1 |
a848cd7e | 24479 | ac_status=$? |
ac1cb8d3 VS |
24480 | grep -v '^ *+' conftest.er1 >conftest.err |
24481 | rm -f conftest.er1 | |
24482 | cat conftest.err >&5 | |
d589327a | 24483 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
24484 | (exit $ac_status); } && { |
24485 | test -z "$ac_c_werror_flag" || | |
24486 | test ! -s conftest.err | |
24487 | } && test -s conftest.$ac_objext; then | |
a848cd7e SC |
24488 | ac_cv_c_bigendian=yes |
24489 | else | |
d589327a | 24490 | echo "$as_me: failed program was:" >&5 |
a848cd7e SC |
24491 | sed 's/^/| /' conftest.$ac_ext >&5 |
24492 | ||
47964710 | 24493 | ac_cv_c_bigendian=no |
a848cd7e | 24494 | fi |
47964710 VS |
24495 | |
24496 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
a848cd7e | 24497 | else |
d589327a | 24498 | echo "$as_me: failed program was:" >&5 |
a848cd7e SC |
24499 | sed 's/^/| /' conftest.$ac_ext >&5 |
24500 | ||
47964710 | 24501 | |
a848cd7e | 24502 | fi |
47964710 VS |
24503 | |
24504 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
a848cd7e SC |
24505 | if test $ac_cv_c_bigendian = unknown; then |
24506 | if test "$cross_compiling" = yes; then | |
24507 | ac_cv_c_bigendian=unknown | |
24508 | else | |
24509 | cat >conftest.$ac_ext <<_ACEOF | |
24510 | /* confdefs.h. */ | |
24511 | _ACEOF | |
24512 | cat confdefs.h >>conftest.$ac_ext | |
24513 | cat >>conftest.$ac_ext <<_ACEOF | |
24514 | /* end confdefs.h. */ | |
24515 | main () { | |
24516 | /* Are we little or big endian? From Harbison&Steele. */ | |
24517 | union | |
24518 | { | |
24519 | long l; | |
24520 | char c[sizeof (long)]; | |
24521 | } u; | |
24522 | u.l = 1; | |
24523 | exit (u.c[sizeof (long) - 1] == 1); | |
24524 | } | |
24525 | _ACEOF | |
24526 | rm -f conftest$ac_exeext | |
47964710 VS |
24527 | if { (ac_try="$ac_link" |
24528 | case "(($ac_try" in | |
24529 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
24530 | *) ac_try_echo=$ac_try;; | |
24531 | esac | |
d589327a | 24532 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 24533 | (eval "$ac_link") 2>&5 |
a848cd7e | 24534 | ac_status=$? |
d589327a | 24535 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
a848cd7e | 24536 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
47964710 VS |
24537 | { (case "(($ac_try" in |
24538 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
24539 | *) ac_try_echo=$ac_try;; | |
24540 | esac | |
d589327a | 24541 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 24542 | (eval "$ac_try") 2>&5 |
a848cd7e | 24543 | ac_status=$? |
d589327a | 24544 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
a848cd7e SC |
24545 | (exit $ac_status); }; }; then |
24546 | ac_cv_c_bigendian=no | |
24547 | else | |
d589327a VZ |
24548 | echo "$as_me: program exited with status $ac_status" >&5 |
24549 | echo "$as_me: failed program was:" >&5 | |
a848cd7e SC |
24550 | sed 's/^/| /' conftest.$ac_ext >&5 |
24551 | ||
24552 | ( exit $ac_status ) | |
24553 | ac_cv_c_bigendian=yes | |
24554 | fi | |
47964710 | 24555 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 24556 | fi |
47964710 VS |
24557 | |
24558 | ||
a848cd7e SC |
24559 | fi |
24560 | fi | |
d589327a VZ |
24561 | { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 |
24562 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6; } | |
a848cd7e | 24563 | if test $ac_cv_c_bigendian = unknown; then |
d589327a VZ |
24564 | { echo "$as_me:$LINENO: WARNING: Assuming little-endian target machine - this may be overriden by adding the line \"ac_cv_c_bigendian=${ac_cv_c_bigendian='yes'}\" to config.cache file" >&5 |
24565 | echo "$as_me: WARNING: Assuming little-endian target machine - this may be overriden by adding the line \"ac_cv_c_bigendian=${ac_cv_c_bigendian='yes'}\" to config.cache file" >&2;} | |
a848cd7e SC |
24566 | fi |
24567 | if test $ac_cv_c_bigendian = yes; then | |
24568 | cat >>confdefs.h <<\_ACEOF | |
24569 | #define WORDS_BIGENDIAN 1 | |
24570 | _ACEOF | |
24571 | ||
24572 | fi | |
24573 | ||
24574 | ||
a848cd7e SC |
24575 | |
24576 | ||
47964710 | 24577 | ac_ext=cpp |
a848cd7e SC |
24578 | ac_cpp='$CXXCPP $CPPFLAGS' |
24579 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
24580 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
24581 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
24582 | ||
24583 | ||
1f7e12cc DE |
24584 | |
24585 | for ac_header in iostream | |
24586 | do | |
d589327a VZ |
24587 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
24588 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
24589 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
47964710 | 24590 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
d589327a | 24591 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
fd5199d6 | 24592 | else |
6e7b8bcb | 24593 | cat >conftest.$ac_ext <<_ACEOF |
a848cd7e SC |
24594 | /* confdefs.h. */ |
24595 | _ACEOF | |
24596 | cat confdefs.h >>conftest.$ac_ext | |
24597 | cat >>conftest.$ac_ext <<_ACEOF | |
24598 | /* end confdefs.h. */ | |
6e7b8bcb PC |
24599 | |
24600 | ||
1f7e12cc | 24601 | #include <$ac_header> |
a848cd7e SC |
24602 | _ACEOF |
24603 | rm -f conftest.$ac_objext | |
47964710 VS |
24604 | if { (ac_try="$ac_compile" |
24605 | case "(($ac_try" in | |
24606 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
24607 | *) ac_try_echo=$ac_try;; | |
24608 | esac | |
d589327a | 24609 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 24610 | (eval "$ac_compile") 2>conftest.er1 |
a848cd7e | 24611 | ac_status=$? |
ac1cb8d3 VS |
24612 | grep -v '^ *+' conftest.er1 >conftest.err |
24613 | rm -f conftest.er1 | |
24614 | cat conftest.err >&5 | |
d589327a | 24615 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
24616 | (exit $ac_status); } && { |
24617 | test -z "$ac_cxx_werror_flag" || | |
24618 | test ! -s conftest.err | |
24619 | } && test -s conftest.$ac_objext; then | |
1f7e12cc | 24620 | eval "$as_ac_Header=yes" |
fd5199d6 | 24621 | else |
d589327a | 24622 | echo "$as_me: failed program was:" >&5 |
fd5199d6 | 24623 | sed 's/^/| /' conftest.$ac_ext >&5 |
a848cd7e | 24624 | |
47964710 | 24625 | eval "$as_ac_Header=no" |
fd5199d6 | 24626 | fi |
47964710 VS |
24627 | |
24628 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
fd5199d6 | 24629 | fi |
d589327a VZ |
24630 | ac_res=`eval echo '${'$as_ac_Header'}'` |
24631 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
24632 | echo "${ECHO_T}$ac_res" >&6; } | |
24633 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
1f7e12cc | 24634 | cat >>confdefs.h <<_ACEOF |
d589327a | 24635 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
1f7e12cc | 24636 | _ACEOF |
7fd3acaf | 24637 | |
1f7e12cc DE |
24638 | fi |
24639 | ||
24640 | done | |
fd5199d6 VZ |
24641 | |
24642 | ||
24643 | if test "$ac_cv_header_iostream" = "yes" ; then | |
24644 | : | |
24645 | else | |
24646 | cat >>confdefs.h <<\_ACEOF | |
24647 | #define wxUSE_IOSTREAMH 1 | |
24648 | _ACEOF | |
24649 | ||
24650 | fi | |
24651 | ||
24652 | ac_ext=c | |
24653 | ac_cpp='$CPP $CPPFLAGS' | |
24654 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
24655 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
24656 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
24657 | ||
24658 | ||
24659 | ||
24660 | ||
d589327a VZ |
24661 | { echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5 |
24662 | echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6; } | |
a848cd7e | 24663 | if test "${wx_cv_explicit+set}" = set; then |
d589327a | 24664 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a848cd7e SC |
24665 | else |
24666 | ||
24667 | ||
47964710 | 24668 | ac_ext=cpp |
a848cd7e SC |
24669 | ac_cpp='$CXXCPP $CPPFLAGS' |
24670 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
24671 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
24672 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
24673 | ||
24674 | ||
24675 | cat >conftest.$ac_ext <<_ACEOF | |
24676 | /* confdefs.h. */ | |
24677 | _ACEOF | |
24678 | cat confdefs.h >>conftest.$ac_ext | |
24679 | cat >>conftest.$ac_ext <<_ACEOF | |
24680 | /* end confdefs.h. */ | |
24681 | ||
24682 | class Foo { public: explicit Foo(int) {} }; | |
24683 | ||
24684 | int | |
24685 | main () | |
24686 | { | |
24687 | ||
24688 | return 0; | |
24689 | ||
24690 | ; | |
24691 | return 0; | |
24692 | } | |
24693 | _ACEOF | |
24694 | rm -f conftest.$ac_objext | |
47964710 VS |
24695 | if { (ac_try="$ac_compile" |
24696 | case "(($ac_try" in | |
24697 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
24698 | *) ac_try_echo=$ac_try;; | |
24699 | esac | |
d589327a | 24700 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 24701 | (eval "$ac_compile") 2>conftest.er1 |
a848cd7e | 24702 | ac_status=$? |
ac1cb8d3 VS |
24703 | grep -v '^ *+' conftest.er1 >conftest.err |
24704 | rm -f conftest.er1 | |
24705 | cat conftest.err >&5 | |
d589327a | 24706 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
24707 | (exit $ac_status); } && { |
24708 | test -z "$ac_cxx_werror_flag" || | |
24709 | test ! -s conftest.err | |
24710 | } && test -s conftest.$ac_objext; then | |
a848cd7e SC |
24711 | |
24712 | cat >conftest.$ac_ext <<_ACEOF | |
24713 | /* confdefs.h. */ | |
24714 | _ACEOF | |
24715 | cat confdefs.h >>conftest.$ac_ext | |
24716 | cat >>conftest.$ac_ext <<_ACEOF | |
24717 | /* end confdefs.h. */ | |
24718 | ||
24719 | class Foo { public: explicit Foo(int) {} }; | |
24720 | static void TakeFoo(const Foo& foo) { } | |
24721 | ||
24722 | int | |
24723 | main () | |
24724 | { | |
24725 | ||
24726 | TakeFoo(17); | |
24727 | return 0; | |
24728 | ||
24729 | ; | |
24730 | return 0; | |
24731 | } | |
24732 | _ACEOF | |
24733 | rm -f conftest.$ac_objext | |
47964710 VS |
24734 | if { (ac_try="$ac_compile" |
24735 | case "(($ac_try" in | |
24736 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
24737 | *) ac_try_echo=$ac_try;; | |
24738 | esac | |
d589327a | 24739 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 24740 | (eval "$ac_compile") 2>conftest.er1 |
a848cd7e | 24741 | ac_status=$? |
ac1cb8d3 VS |
24742 | grep -v '^ *+' conftest.er1 >conftest.err |
24743 | rm -f conftest.er1 | |
24744 | cat conftest.err >&5 | |
d589327a | 24745 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
24746 | (exit $ac_status); } && { |
24747 | test -z "$ac_cxx_werror_flag" || | |
24748 | test ! -s conftest.err | |
24749 | } && test -s conftest.$ac_objext; then | |
a848cd7e SC |
24750 | wx_cv_explicit=no |
24751 | else | |
d589327a | 24752 | echo "$as_me: failed program was:" >&5 |
a848cd7e SC |
24753 | sed 's/^/| /' conftest.$ac_ext >&5 |
24754 | ||
47964710 | 24755 | wx_cv_explicit=yes |
a848cd7e SC |
24756 | |
24757 | fi | |
47964710 VS |
24758 | |
24759 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
a848cd7e SC |
24760 | |
24761 | else | |
d589327a | 24762 | echo "$as_me: failed program was:" >&5 |
a848cd7e SC |
24763 | sed 's/^/| /' conftest.$ac_ext >&5 |
24764 | ||
47964710 | 24765 | wx_cv_explicit=no |
a848cd7e SC |
24766 | |
24767 | fi | |
47964710 VS |
24768 | |
24769 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
a848cd7e | 24770 | |
fd5199d6 VZ |
24771 | ac_ext=c |
24772 | ac_cpp='$CPP $CPPFLAGS' | |
24773 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
24774 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
24775 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
a848cd7e SC |
24776 | |
24777 | ||
24778 | fi | |
d589327a VZ |
24779 | { echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5 |
24780 | echo "${ECHO_T}$wx_cv_explicit" >&6; } | |
a848cd7e SC |
24781 | |
24782 | if test "$wx_cv_explicit" = "yes"; then | |
24783 | cat >>confdefs.h <<\_ACEOF | |
24784 | #define HAVE_EXPLICIT 1 | |
24785 | _ACEOF | |
24786 | ||
24787 | fi | |
24788 | ||
24789 | ||
3c28b7cb | 24790 | if test "x$SUNCXX" = xyes; then |
c92ad099 | 24791 | CXXFLAGS="-features=tmplife $CXXFLAGS" |
3c28b7cb MW |
24792 | fi |
24793 | ||
9122d155 | 24794 | if test "x$SUNCC" = xyes; then |
c92ad099 | 24795 | CFLAGS="-erroff=E_NO_EXPLICIT_TYPE_GIVEN $CFLAGS" |
9122d155 VZ |
24796 | fi |
24797 | ||
0ad5d837 | 24798 | if test "x$SGICC" = "xyes"; then |
321f760b VZ |
24799 | { echo "$as_me:$LINENO: checking if cc version is 7.4.4 or greater" >&5 |
24800 | echo $ECHO_N "checking if cc version is 7.4.4 or greater... $ECHO_C" >&6; } | |
24801 | if test "${wx_cv_prog_sgicc744+set}" = set; then | |
24802 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24803 | else | |
24804 | ||
24805 | cat >conftest.$ac_ext <<_ACEOF | |
24806 | /* confdefs.h. */ | |
24807 | _ACEOF | |
24808 | cat confdefs.h >>conftest.$ac_ext | |
24809 | cat >>conftest.$ac_ext <<_ACEOF | |
24810 | /* end confdefs.h. */ | |
24811 | ||
24812 | int | |
24813 | main () | |
24814 | { | |
24815 | ||
24816 | #if _SGI_COMPILER_VERSION >= 744 | |
24817 | chock me: mipsPro is 7.4.4 or later | |
24818 | #endif | |
24819 | ||
24820 | ; | |
24821 | return 0; | |
24822 | } | |
24823 | _ACEOF | |
24824 | rm -f conftest.$ac_objext | |
24825 | if { (ac_try="$ac_compile" | |
24826 | case "(($ac_try" in | |
24827 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
24828 | *) ac_try_echo=$ac_try;; | |
24829 | esac | |
24830 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
24831 | (eval "$ac_compile") 2>conftest.er1 | |
24832 | ac_status=$? | |
24833 | grep -v '^ *+' conftest.er1 >conftest.err | |
24834 | rm -f conftest.er1 | |
24835 | cat conftest.err >&5 | |
24836 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24837 | (exit $ac_status); } && { | |
24838 | test -z "$ac_c_werror_flag" || | |
24839 | test ! -s conftest.err | |
24840 | } && test -s conftest.$ac_objext; then | |
24841 | wx_cv_prog_sgicc744=no | |
24842 | else | |
24843 | echo "$as_me: failed program was:" >&5 | |
24844 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24845 | ||
24846 | wx_cv_prog_sgicc744=yes | |
24847 | ||
24848 | fi | |
24849 | ||
24850 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
24851 | ||
24852 | ||
24853 | fi | |
24854 | { echo "$as_me:$LINENO: result: $wx_cv_prog_sgicc744" >&5 | |
24855 | echo "${ECHO_T}$wx_cv_prog_sgicc744" >&6; } | |
24856 | ||
24857 | if test "x$wx_cv_prog_sgicc744" = "xyes"; then | |
24858 | CFLAGS="-woff 3970 $CFLAGS" | |
24859 | fi | |
0ad5d837 VZ |
24860 | fi |
24861 | if test "x$SGICXX" = "xyes"; then | |
321f760b VZ |
24862 | { echo "$as_me:$LINENO: checking if CC version is 7.4.4 or greater" >&5 |
24863 | echo $ECHO_N "checking if CC version is 7.4.4 or greater... $ECHO_C" >&6; } | |
24864 | if test "${wx_cv_prog_sgicxx744+set}" = set; then | |
24865 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24866 | else | |
24867 | ||
24868 | ac_ext=cpp | |
24869 | ac_cpp='$CXXCPP $CPPFLAGS' | |
24870 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
24871 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
24872 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
24873 | ||
24874 | cat >conftest.$ac_ext <<_ACEOF | |
24875 | /* confdefs.h. */ | |
24876 | _ACEOF | |
24877 | cat confdefs.h >>conftest.$ac_ext | |
24878 | cat >>conftest.$ac_ext <<_ACEOF | |
24879 | /* end confdefs.h. */ | |
24880 | ||
24881 | int | |
24882 | main () | |
24883 | { | |
24884 | ||
24885 | #if _SGI_COMPILER_VERSION >= 744 | |
24886 | chock me: mipsPro is 7.4.4 or later | |
24887 | #endif | |
24888 | ||
24889 | ; | |
24890 | return 0; | |
24891 | } | |
24892 | _ACEOF | |
24893 | rm -f conftest.$ac_objext | |
24894 | if { (ac_try="$ac_compile" | |
24895 | case "(($ac_try" in | |
24896 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
24897 | *) ac_try_echo=$ac_try;; | |
24898 | esac | |
24899 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
24900 | (eval "$ac_compile") 2>conftest.er1 | |
24901 | ac_status=$? | |
24902 | grep -v '^ *+' conftest.er1 >conftest.err | |
24903 | rm -f conftest.er1 | |
24904 | cat conftest.err >&5 | |
24905 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24906 | (exit $ac_status); } && { | |
24907 | test -z "$ac_cxx_werror_flag" || | |
24908 | test ! -s conftest.err | |
24909 | } && test -s conftest.$ac_objext; then | |
24910 | wx_cv_prog_sgicxx744=no | |
24911 | else | |
24912 | echo "$as_me: failed program was:" >&5 | |
24913 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24914 | ||
24915 | wx_cv_prog_sgicxx744=yes | |
24916 | ||
24917 | fi | |
24918 | ||
24919 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
24920 | ac_ext=c | |
24921 | ac_cpp='$CPP $CPPFLAGS' | |
24922 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
24923 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
24924 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
24925 | ||
24926 | ||
24927 | ||
24928 | fi | |
24929 | { echo "$as_me:$LINENO: result: $wx_cv_prog_sgicxx744" >&5 | |
24930 | echo "${ECHO_T}$wx_cv_prog_sgicxx744" >&6; } | |
24931 | ||
24932 | if test "x$wx_cv_prog_sgicxx744" = "xyes"; then | |
24933 | CXXFLAGS="-woff 3970 $CXXFLAGS" | |
24934 | fi | |
0ad5d837 VZ |
24935 | fi |
24936 | ||
2eef8513 | 24937 | if test "x$HPCC" = "xyes"; then |
c92ad099 | 24938 | CFLAGS="+W 2011,2450 $CFLAGS" |
2eef8513 VZ |
24939 | fi |
24940 | if test "x$HPCXX" = "xyes"; then | |
e4513a5e | 24941 | CXXFLAGS="+W 2340,4232 $CXXFLAGS" |
2eef8513 VZ |
24942 | fi |
24943 | ||
24944 | if test "x$COMPAQCXX" = "xyes"; then | |
24945 | CXXFLAGS="-w0 -msg_disable basclsnondto,unrimpret,intconlosbit" | |
24946 | fi | |
24947 | ||
47964710 | 24948 | ac_ext=cpp |
9b8888f9 VZ |
24949 | ac_cpp='$CXXCPP $CPPFLAGS' |
24950 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
24951 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
24952 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
24953 | ||
24954 | ||
f56c22b4 | 24955 | if test "$wxUSE_STD_STRING" = "yes" -o "$wxUSE_STL" = "yes"; then |
f56c22b4 MW |
24956 | if test "$wxUSE_UNICODE" = "yes"; then |
24957 | std_string="std::wstring" | |
24958 | char_type="wchar_t" | |
24959 | else | |
24960 | std_string="std::string" | |
24961 | char_type="char" | |
24962 | fi | |
24963 | ||
d589327a VZ |
24964 | { echo "$as_me:$LINENO: checking for $std_string in <string>" >&5 |
24965 | echo $ECHO_N "checking for $std_string in <string>... $ECHO_C" >&6; } | |
9b8888f9 | 24966 | if test "${wx_cv_class_stdstring+set}" = set; then |
d589327a | 24967 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9b8888f9 VZ |
24968 | else |
24969 | ||
24970 | cat >conftest.$ac_ext <<_ACEOF | |
a848cd7e SC |
24971 | /* confdefs.h. */ |
24972 | _ACEOF | |
24973 | cat confdefs.h >>conftest.$ac_ext | |
24974 | cat >>conftest.$ac_ext <<_ACEOF | |
24975 | /* end confdefs.h. */ | |
24976 | #include <string> | |
a848cd7e SC |
24977 | int |
24978 | main () | |
24979 | { | |
f56c22b4 | 24980 | $std_string foo; |
a848cd7e SC |
24981 | ; |
24982 | return 0; | |
24983 | } | |
24984 | _ACEOF | |
24985 | rm -f conftest.$ac_objext | |
47964710 VS |
24986 | if { (ac_try="$ac_compile" |
24987 | case "(($ac_try" in | |
24988 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
24989 | *) ac_try_echo=$ac_try;; | |
24990 | esac | |
d589327a | 24991 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 24992 | (eval "$ac_compile") 2>conftest.er1 |
a848cd7e | 24993 | ac_status=$? |
ac1cb8d3 VS |
24994 | grep -v '^ *+' conftest.er1 >conftest.err |
24995 | rm -f conftest.er1 | |
24996 | cat conftest.err >&5 | |
d589327a | 24997 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
24998 | (exit $ac_status); } && { |
24999 | test -z "$ac_cxx_werror_flag" || | |
25000 | test ! -s conftest.err | |
25001 | } && test -s conftest.$ac_objext; then | |
9b8888f9 | 25002 | wx_cv_class_stdstring=yes |
a848cd7e | 25003 | else |
d589327a | 25004 | echo "$as_me: failed program was:" >&5 |
a848cd7e SC |
25005 | sed 's/^/| /' conftest.$ac_ext >&5 |
25006 | ||
47964710 | 25007 | wx_cv_class_stdstring=no |
9b8888f9 VZ |
25008 | |
25009 | fi | |
47964710 VS |
25010 | |
25011 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
9b8888f9 VZ |
25012 | |
25013 | ||
25014 | fi | |
d589327a VZ |
25015 | { echo "$as_me:$LINENO: result: $wx_cv_class_stdstring" >&5 |
25016 | echo "${ECHO_T}$wx_cv_class_stdstring" >&6; } | |
9b8888f9 VZ |
25017 | |
25018 | if test "$wx_cv_class_stdstring" = yes; then | |
25019 | if test "$wxUSE_UNICODE" = "yes"; then | |
25020 | cat >>confdefs.h <<\_ACEOF | |
25021 | #define HAVE_STD_WSTRING 1 | |
25022 | _ACEOF | |
25023 | ||
25024 | fi | |
25025 | else | |
d589327a VZ |
25026 | { echo "$as_me:$LINENO: checking if std::basic_string<$char_type> works" >&5 |
25027 | echo $ECHO_N "checking if std::basic_string<$char_type> works... $ECHO_C" >&6; } | |
9b8888f9 | 25028 | if test "${wx_cv_class_stdbasicstring+set}" = set; then |
d589327a | 25029 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9b8888f9 VZ |
25030 | else |
25031 | ||
25032 | cat >conftest.$ac_ext <<_ACEOF | |
0a08f02a MB |
25033 | /* confdefs.h. */ |
25034 | _ACEOF | |
25035 | cat confdefs.h >>conftest.$ac_ext | |
25036 | cat >>conftest.$ac_ext <<_ACEOF | |
25037 | /* end confdefs.h. */ | |
25038 | ||
9b8888f9 VZ |
25039 | #ifdef HAVE_WCHAR_H |
25040 | # ifdef __CYGWIN__ | |
25041 | # include <stddef.h> | |
25042 | # endif | |
25043 | # include <wchar.h> | |
25044 | #endif | |
25045 | #ifdef HAVE_STDLIB_H | |
25046 | # include <stdlib.h> | |
25047 | #endif | |
25048 | #include <stdio.h> | |
25049 | #include <string> | |
0a08f02a MB |
25050 | |
25051 | int | |
25052 | main () | |
25053 | { | |
f56c22b4 | 25054 | std::basic_string<$char_type> foo; |
9b8888f9 | 25055 | const $char_type* dummy = foo.c_str(); |
0a08f02a MB |
25056 | ; |
25057 | return 0; | |
25058 | } | |
25059 | _ACEOF | |
25060 | rm -f conftest.$ac_objext | |
47964710 VS |
25061 | if { (ac_try="$ac_compile" |
25062 | case "(($ac_try" in | |
25063 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
25064 | *) ac_try_echo=$ac_try;; | |
25065 | esac | |
d589327a | 25066 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 25067 | (eval "$ac_compile") 2>conftest.er1 |
0a08f02a MB |
25068 | ac_status=$? |
25069 | grep -v '^ *+' conftest.er1 >conftest.err | |
25070 | rm -f conftest.er1 | |
25071 | cat conftest.err >&5 | |
d589327a | 25072 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
25073 | (exit $ac_status); } && { |
25074 | test -z "$ac_cxx_werror_flag" || | |
25075 | test ! -s conftest.err | |
25076 | } && test -s conftest.$ac_objext; then | |
9b8888f9 | 25077 | wx_cv_class_stdbasicstring=yes |
0a08f02a | 25078 | else |
d589327a | 25079 | echo "$as_me: failed program was:" >&5 |
0a08f02a MB |
25080 | sed 's/^/| /' conftest.$ac_ext >&5 |
25081 | ||
47964710 | 25082 | wx_cv_class_stdbasicstring=no |
0a08f02a | 25083 | |
a848cd7e | 25084 | fi |
47964710 VS |
25085 | |
25086 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
a848cd7e | 25087 | |
9b8888f9 | 25088 | |
0a08f02a | 25089 | fi |
d589327a VZ |
25090 | { echo "$as_me:$LINENO: result: $wx_cv_class_stdbasicstring" >&5 |
25091 | echo "${ECHO_T}$wx_cv_class_stdbasicstring" >&6; } | |
9b8888f9 VZ |
25092 | |
25093 | if test "$wx_cv_class_stdbasicstring" != yes; then | |
25094 | if test "$wxUSE_STL" = "yes"; then | |
d589327a VZ |
25095 | { { echo "$as_me:$LINENO: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&5 |
25096 | echo "$as_me: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&2;} | |
9b8888f9 | 25097 | { (exit 1); exit 1; }; } |
105a81f3 | 25098 | elif test "$wxUSE_STD_STRING" = "yes"; then |
d589327a VZ |
25099 | { { echo "$as_me:$LINENO: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&5 |
25100 | echo "$as_me: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&2;} | |
9b8888f9 VZ |
25101 | { (exit 1); exit 1; }; } |
25102 | else | |
d589327a VZ |
25103 | { echo "$as_me:$LINENO: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&5 |
25104 | echo "$as_me: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&2;} | |
9b8888f9 VZ |
25105 | wxUSE_STD_STRING=no |
25106 | fi | |
25107 | fi | |
25108 | fi | |
f56c22b4 MW |
25109 | fi |
25110 | ||
25111 | if test "$wxUSE_STD_IOSTREAM" = "yes"; then | |
d589327a VZ |
25112 | { echo "$as_me:$LINENO: checking for std::istream" >&5 |
25113 | echo $ECHO_N "checking for std::istream... $ECHO_C" >&6; } | |
f56c22b4 | 25114 | if test "${ac_cv_type_std__istream+set}" = set; then |
d589327a | 25115 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
f56c22b4 | 25116 | else |
aa113d87 FM |
25117 | cat >conftest.$ac_ext <<_ACEOF |
25118 | /* confdefs.h. */ | |
25119 | _ACEOF | |
25120 | cat confdefs.h >>conftest.$ac_ext | |
25121 | cat >>conftest.$ac_ext <<_ACEOF | |
25122 | /* end confdefs.h. */ | |
25123 | #include <iostream> | |
25124 | ||
d589327a | 25125 | typedef std::istream ac__type_new_; |
aa113d87 FM |
25126 | int |
25127 | main () | |
25128 | { | |
d589327a VZ |
25129 | if ((ac__type_new_ *) 0) |
25130 | return 0; | |
25131 | if (sizeof (ac__type_new_)) | |
25132 | return 0; | |
f56c22b4 MW |
25133 | ; |
25134 | return 0; | |
25135 | } | |
25136 | _ACEOF | |
25137 | rm -f conftest.$ac_objext | |
47964710 VS |
25138 | if { (ac_try="$ac_compile" |
25139 | case "(($ac_try" in | |
25140 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
25141 | *) ac_try_echo=$ac_try;; | |
25142 | esac | |
d589327a | 25143 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 25144 | (eval "$ac_compile") 2>conftest.er1 |
f56c22b4 MW |
25145 | ac_status=$? |
25146 | grep -v '^ *+' conftest.er1 >conftest.err | |
25147 | rm -f conftest.er1 | |
25148 | cat conftest.err >&5 | |
d589327a | 25149 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
25150 | (exit $ac_status); } && { |
25151 | test -z "$ac_cxx_werror_flag" || | |
25152 | test ! -s conftest.err | |
25153 | } && test -s conftest.$ac_objext; then | |
d589327a | 25154 | ac_cv_type_std__istream=yes |
f56c22b4 | 25155 | else |
d589327a | 25156 | echo "$as_me: failed program was:" >&5 |
f56c22b4 MW |
25157 | sed 's/^/| /' conftest.$ac_ext >&5 |
25158 | ||
d589327a | 25159 | ac_cv_type_std__istream=no |
f56c22b4 | 25160 | fi |
47964710 VS |
25161 | |
25162 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
f56c22b4 | 25163 | fi |
d589327a VZ |
25164 | { echo "$as_me:$LINENO: result: $ac_cv_type_std__istream" >&5 |
25165 | echo "${ECHO_T}$ac_cv_type_std__istream" >&6; } | |
25166 | if test $ac_cv_type_std__istream = yes; then | |
f56c22b4 MW |
25167 | |
25168 | cat >>confdefs.h <<_ACEOF | |
25169 | #define HAVE_STD__ISTREAM 1 | |
25170 | _ACEOF | |
25171 | ||
25172 | ||
25173 | else | |
25174 | wxUSE_STD_IOSTREAM=no | |
25175 | fi | |
d589327a VZ |
25176 | { echo "$as_me:$LINENO: checking for std::ostream" >&5 |
25177 | echo $ECHO_N "checking for std::ostream... $ECHO_C" >&6; } | |
f56c22b4 | 25178 | if test "${ac_cv_type_std__ostream+set}" = set; then |
d589327a | 25179 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
f56c22b4 | 25180 | else |
aa113d87 FM |
25181 | cat >conftest.$ac_ext <<_ACEOF |
25182 | /* confdefs.h. */ | |
25183 | _ACEOF | |
25184 | cat confdefs.h >>conftest.$ac_ext | |
25185 | cat >>conftest.$ac_ext <<_ACEOF | |
25186 | /* end confdefs.h. */ | |
25187 | #include <iostream> | |
25188 | ||
d589327a | 25189 | typedef std::ostream ac__type_new_; |
aa113d87 FM |
25190 | int |
25191 | main () | |
25192 | { | |
d589327a VZ |
25193 | if ((ac__type_new_ *) 0) |
25194 | return 0; | |
25195 | if (sizeof (ac__type_new_)) | |
25196 | return 0; | |
f56c22b4 MW |
25197 | ; |
25198 | return 0; | |
25199 | } | |
25200 | _ACEOF | |
25201 | rm -f conftest.$ac_objext | |
47964710 VS |
25202 | if { (ac_try="$ac_compile" |
25203 | case "(($ac_try" in | |
25204 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
25205 | *) ac_try_echo=$ac_try;; | |
25206 | esac | |
d589327a | 25207 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 25208 | (eval "$ac_compile") 2>conftest.er1 |
f56c22b4 MW |
25209 | ac_status=$? |
25210 | grep -v '^ *+' conftest.er1 >conftest.err | |
25211 | rm -f conftest.er1 | |
25212 | cat conftest.err >&5 | |
d589327a | 25213 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
25214 | (exit $ac_status); } && { |
25215 | test -z "$ac_cxx_werror_flag" || | |
25216 | test ! -s conftest.err | |
25217 | } && test -s conftest.$ac_objext; then | |
d589327a | 25218 | ac_cv_type_std__ostream=yes |
f56c22b4 | 25219 | else |
d589327a | 25220 | echo "$as_me: failed program was:" >&5 |
f56c22b4 MW |
25221 | sed 's/^/| /' conftest.$ac_ext >&5 |
25222 | ||
d589327a | 25223 | ac_cv_type_std__ostream=no |
f56c22b4 | 25224 | fi |
47964710 VS |
25225 | |
25226 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
f56c22b4 | 25227 | fi |
d589327a VZ |
25228 | { echo "$as_me:$LINENO: result: $ac_cv_type_std__ostream" >&5 |
25229 | echo "${ECHO_T}$ac_cv_type_std__ostream" >&6; } | |
25230 | if test $ac_cv_type_std__ostream = yes; then | |
f56c22b4 MW |
25231 | |
25232 | cat >>confdefs.h <<_ACEOF | |
25233 | #define HAVE_STD__OSTREAM 1 | |
25234 | _ACEOF | |
25235 | ||
25236 | ||
25237 | else | |
25238 | wxUSE_STD_IOSTREAM=no | |
25239 | fi | |
25240 | ||
25241 | ||
25242 | if test "$wxUSE_STD_IOSTREAM" != "yes"; then | |
105a81f3 | 25243 | if test "$wxUSE_STD_IOSTREAM" = "yes"; then |
d589327a VZ |
25244 | { { echo "$as_me:$LINENO: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&5 |
25245 | echo "$as_me: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&2;} | |
4b9918c5 MW |
25246 | { (exit 1); exit 1; }; } |
25247 | else | |
d589327a VZ |
25248 | { echo "$as_me:$LINENO: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&5 |
25249 | echo "$as_me: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&2;} | |
4b9918c5 | 25250 | fi |
f56c22b4 | 25251 | fi |
0a08f02a MB |
25252 | fi |
25253 | ||
25254 | if test "$wxUSE_STL" = "yes"; then | |
d589327a VZ |
25255 | { echo "$as_me:$LINENO: checking for basic STL functionality" >&5 |
25256 | echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6; } | |
9b8888f9 | 25257 | if test "${wx_cv_lib_stl+set}" = set; then |
d589327a | 25258 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9b8888f9 VZ |
25259 | else |
25260 | cat >conftest.$ac_ext <<_ACEOF | |
a848cd7e SC |
25261 | /* confdefs.h. */ |
25262 | _ACEOF | |
25263 | cat confdefs.h >>conftest.$ac_ext | |
25264 | cat >>conftest.$ac_ext <<_ACEOF | |
25265 | /* end confdefs.h. */ | |
25266 | #include <string> | |
9b8888f9 VZ |
25267 | #include <functional> |
25268 | #include <algorithm> | |
25269 | #include <vector> | |
25270 | #include <list> | |
a848cd7e SC |
25271 | int |
25272 | main () | |
25273 | { | |
0a08f02a | 25274 | std::vector<int> moo; |
9b8888f9 VZ |
25275 | std::list<int> foo; |
25276 | std::vector<int>::iterator it = | |
25277 | std::find_if(moo.begin(), moo.end(), | |
25278 | std::bind2nd(std::less<int>(), 3)); | |
a848cd7e SC |
25279 | ; |
25280 | return 0; | |
25281 | } | |
25282 | _ACEOF | |
25283 | rm -f conftest.$ac_objext | |
47964710 VS |
25284 | if { (ac_try="$ac_compile" |
25285 | case "(($ac_try" in | |
25286 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
25287 | *) ac_try_echo=$ac_try;; | |
25288 | esac | |
d589327a | 25289 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 25290 | (eval "$ac_compile") 2>conftest.er1 |
a848cd7e | 25291 | ac_status=$? |
ac1cb8d3 VS |
25292 | grep -v '^ *+' conftest.er1 >conftest.err |
25293 | rm -f conftest.er1 | |
25294 | cat conftest.err >&5 | |
d589327a | 25295 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
25296 | (exit $ac_status); } && { |
25297 | test -z "$ac_cxx_werror_flag" || | |
25298 | test ! -s conftest.err | |
25299 | } && test -s conftest.$ac_objext; then | |
9b8888f9 | 25300 | wx_cv_lib_stl=yes |
a848cd7e | 25301 | else |
d589327a | 25302 | echo "$as_me: failed program was:" >&5 |
a848cd7e SC |
25303 | sed 's/^/| /' conftest.$ac_ext >&5 |
25304 | ||
47964710 | 25305 | wx_cv_lib_stl=no |
9b8888f9 | 25306 | |
a848cd7e | 25307 | fi |
47964710 VS |
25308 | |
25309 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
a848cd7e | 25310 | |
9b8888f9 | 25311 | fi |
d589327a VZ |
25312 | { echo "$as_me:$LINENO: result: $wx_cv_lib_stl" >&5 |
25313 | echo "${ECHO_T}$wx_cv_lib_stl" >&6; } | |
9b8888f9 VZ |
25314 | |
25315 | if test "$wx_cv_lib_stl" != yes; then | |
d589327a VZ |
25316 | { { echo "$as_me:$LINENO: error: Can't use --enable-stl as basic STL functionality is missing" >&5 |
25317 | echo "$as_me: error: Can't use --enable-stl as basic STL functionality is missing" >&2;} | |
9b8888f9 VZ |
25318 | { (exit 1); exit 1; }; } |
25319 | fi | |
25320 | ||
d589327a VZ |
25321 | { echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5 |
25322 | echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6; } | |
9b8888f9 | 25323 | if test "${wx_cv_func_stdstring_compare+set}" = set; then |
d589327a | 25324 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9b8888f9 VZ |
25325 | else |
25326 | cat >conftest.$ac_ext <<_ACEOF | |
a848cd7e SC |
25327 | /* confdefs.h. */ |
25328 | _ACEOF | |
25329 | cat confdefs.h >>conftest.$ac_ext | |
25330 | cat >>conftest.$ac_ext <<_ACEOF | |
25331 | /* end confdefs.h. */ | |
25332 | #include <string> | |
25333 | int | |
25334 | main () | |
25335 | { | |
25336 | std::string foo, bar; | |
9b8888f9 VZ |
25337 | foo.compare(bar); |
25338 | foo.compare(1, 1, bar); | |
25339 | foo.compare(1, 1, bar, 1, 1); | |
25340 | foo.compare(""); | |
25341 | foo.compare(1, 1, ""); | |
25342 | foo.compare(1, 1, "", 2); | |
a848cd7e SC |
25343 | ; |
25344 | return 0; | |
25345 | } | |
25346 | _ACEOF | |
25347 | rm -f conftest.$ac_objext | |
47964710 VS |
25348 | if { (ac_try="$ac_compile" |
25349 | case "(($ac_try" in | |
25350 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
25351 | *) ac_try_echo=$ac_try;; | |
25352 | esac | |
d589327a | 25353 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 25354 | (eval "$ac_compile") 2>conftest.er1 |
a848cd7e | 25355 | ac_status=$? |
ac1cb8d3 VS |
25356 | grep -v '^ *+' conftest.er1 >conftest.err |
25357 | rm -f conftest.er1 | |
25358 | cat conftest.err >&5 | |
d589327a | 25359 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
25360 | (exit $ac_status); } && { |
25361 | test -z "$ac_cxx_werror_flag" || | |
25362 | test ! -s conftest.err | |
25363 | } && test -s conftest.$ac_objext; then | |
9b8888f9 | 25364 | wx_cv_func_stdstring_compare=yes |
a848cd7e | 25365 | else |
d589327a | 25366 | echo "$as_me: failed program was:" >&5 |
a848cd7e SC |
25367 | sed 's/^/| /' conftest.$ac_ext >&5 |
25368 | ||
47964710 | 25369 | wx_cv_func_stdstring_compare=no |
9b8888f9 | 25370 | |
a848cd7e | 25371 | fi |
47964710 VS |
25372 | |
25373 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
bdcade0a | 25374 | |
9b8888f9 | 25375 | fi |
d589327a VZ |
25376 | { echo "$as_me:$LINENO: result: $wx_cv_func_stdstring_compare" >&5 |
25377 | echo "${ECHO_T}$wx_cv_func_stdstring_compare" >&6; } | |
9b8888f9 VZ |
25378 | |
25379 | if test "$wx_cv_func_stdstring_compare" = yes; then | |
25380 | cat >>confdefs.h <<\_ACEOF | |
25381 | #define HAVE_STD_STRING_COMPARE 1 | |
25382 | _ACEOF | |
25383 | ||
25384 | fi | |
25385 | ||
01684023 VZ |
25386 | if test "$wx_cv_class_gnuhashmapset" = yes; then |
25387 | cat >>confdefs.h <<\_ACEOF | |
25388 | #define HAVE_EXT_HASH_MAP 1 | |
25389 | _ACEOF | |
25390 | ||
25391 | cat >>confdefs.h <<\_ACEOF | |
25392 | #define HAVE_GNU_CXX_HASH_MAP 1 | |
25393 | _ACEOF | |
25394 | ||
25395 | fi | |
25396 | ||
d589327a VZ |
25397 | { echo "$as_me:$LINENO: checking for unordered_map" >&5 |
25398 | echo $ECHO_N "checking for unordered_map... $ECHO_C" >&6; } | |
01684023 | 25399 | if test "${ac_cv_header_unordered_map+set}" = set; then |
d589327a | 25400 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
bdcade0a | 25401 | else |
6e7b8bcb | 25402 | cat >conftest.$ac_ext <<_ACEOF |
bdcade0a MB |
25403 | /* confdefs.h. */ |
25404 | _ACEOF | |
25405 | cat confdefs.h >>conftest.$ac_ext | |
25406 | cat >>conftest.$ac_ext <<_ACEOF | |
25407 | /* end confdefs.h. */ | |
6e7b8bcb PC |
25408 | |
25409 | ||
25410 | ||
01684023 | 25411 | #include <unordered_map> |
bdcade0a MB |
25412 | _ACEOF |
25413 | rm -f conftest.$ac_objext | |
47964710 VS |
25414 | if { (ac_try="$ac_compile" |
25415 | case "(($ac_try" in | |
25416 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
25417 | *) ac_try_echo=$ac_try;; | |
25418 | esac | |
d589327a | 25419 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 25420 | (eval "$ac_compile") 2>conftest.er1 |
bdcade0a | 25421 | ac_status=$? |
ac1cb8d3 VS |
25422 | grep -v '^ *+' conftest.er1 >conftest.err |
25423 | rm -f conftest.er1 | |
25424 | cat conftest.err >&5 | |
d589327a | 25425 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
25426 | (exit $ac_status); } && { |
25427 | test -z "$ac_cxx_werror_flag" || | |
25428 | test ! -s conftest.err | |
25429 | } && test -s conftest.$ac_objext; then | |
01684023 | 25430 | ac_cv_header_unordered_map=yes |
bdcade0a | 25431 | else |
d589327a | 25432 | echo "$as_me: failed program was:" >&5 |
bdcade0a MB |
25433 | sed 's/^/| /' conftest.$ac_ext >&5 |
25434 | ||
01684023 | 25435 | ac_cv_header_unordered_map=no |
bdcade0a | 25436 | fi |
47964710 VS |
25437 | |
25438 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
bdcade0a | 25439 | fi |
d589327a VZ |
25440 | { echo "$as_me:$LINENO: result: $ac_cv_header_unordered_map" >&5 |
25441 | echo "${ECHO_T}$ac_cv_header_unordered_map" >&6; } | |
25442 | if test $ac_cv_header_unordered_map = yes; then | |
25443 | { echo "$as_me:$LINENO: checking for unordered_map and unordered_set in std" >&5 | |
25444 | echo $ECHO_N "checking for unordered_map and unordered_set in std... $ECHO_C" >&6; } | |
01684023 | 25445 | if test "${wx_cv_class_stdunorderedmapset+set}" = set; then |
d589327a | 25446 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9b8888f9 VZ |
25447 | else |
25448 | cat >conftest.$ac_ext <<_ACEOF | |
bdcade0a MB |
25449 | /* confdefs.h. */ |
25450 | _ACEOF | |
25451 | cat confdefs.h >>conftest.$ac_ext | |
25452 | cat >>conftest.$ac_ext <<_ACEOF | |
25453 | /* end confdefs.h. */ | |
01684023 VZ |
25454 | #include <unordered_map> |
25455 | #include <unordered_set> | |
bdcade0a MB |
25456 | int |
25457 | main () | |
25458 | { | |
01684023 VZ |
25459 | std::unordered_map<double*, char*> test1; |
25460 | std::unordered_set<char*> test2; | |
bdcade0a MB |
25461 | ; |
25462 | return 0; | |
25463 | } | |
25464 | _ACEOF | |
25465 | rm -f conftest.$ac_objext | |
47964710 VS |
25466 | if { (ac_try="$ac_compile" |
25467 | case "(($ac_try" in | |
25468 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
25469 | *) ac_try_echo=$ac_try;; | |
25470 | esac | |
d589327a | 25471 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 25472 | (eval "$ac_compile") 2>conftest.er1 |
bdcade0a | 25473 | ac_status=$? |
ac1cb8d3 VS |
25474 | grep -v '^ *+' conftest.er1 >conftest.err |
25475 | rm -f conftest.er1 | |
25476 | cat conftest.err >&5 | |
d589327a | 25477 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
25478 | (exit $ac_status); } && { |
25479 | test -z "$ac_cxx_werror_flag" || | |
25480 | test ! -s conftest.err | |
25481 | } && test -s conftest.$ac_objext; then | |
01684023 | 25482 | wx_cv_class_stdunorderedmapset=yes |
bdcade0a | 25483 | else |
d589327a | 25484 | echo "$as_me: failed program was:" >&5 |
bdcade0a MB |
25485 | sed 's/^/| /' conftest.$ac_ext >&5 |
25486 | ||
01684023 | 25487 | wx_cv_class_stdunorderedmapset=no |
bdcade0a | 25488 | fi |
47964710 VS |
25489 | |
25490 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
bdcade0a | 25491 | |
9b8888f9 VZ |
25492 | |
25493 | fi | |
d589327a VZ |
25494 | { echo "$as_me:$LINENO: result: $wx_cv_class_stdunorderedmapset" >&5 |
25495 | echo "${ECHO_T}$wx_cv_class_stdunorderedmapset" >&6; } | |
bdcade0a MB |
25496 | fi |
25497 | ||
25498 | ||
25499 | ||
01684023 VZ |
25500 | if test "$wx_cv_class_stdunorderedmapset" = yes; then |
25501 | cat >>confdefs.h <<\_ACEOF | |
25502 | #define HAVE_STD_UNORDERED_MAP 1 | |
9b8888f9 VZ |
25503 | _ACEOF |
25504 | ||
01684023 VZ |
25505 | cat >>confdefs.h <<\_ACEOF |
25506 | #define HAVE_STD_UNORDERED_SET 1 | |
9b8888f9 VZ |
25507 | _ACEOF |
25508 | ||
01684023 | 25509 | else |
d589327a VZ |
25510 | { echo "$as_me:$LINENO: checking for tr1/unordered_map" >&5 |
25511 | echo $ECHO_N "checking for tr1/unordered_map... $ECHO_C" >&6; } | |
01684023 | 25512 | if test "${ac_cv_header_tr1_unordered_map+set}" = set; then |
d589327a | 25513 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
bdcade0a | 25514 | else |
6e7b8bcb | 25515 | cat >conftest.$ac_ext <<_ACEOF |
bdcade0a MB |
25516 | /* confdefs.h. */ |
25517 | _ACEOF | |
25518 | cat confdefs.h >>conftest.$ac_ext | |
25519 | cat >>conftest.$ac_ext <<_ACEOF | |
25520 | /* end confdefs.h. */ | |
6e7b8bcb PC |
25521 | |
25522 | ||
25523 | ||
01684023 | 25524 | #include <tr1/unordered_map> |
bdcade0a MB |
25525 | _ACEOF |
25526 | rm -f conftest.$ac_objext | |
47964710 VS |
25527 | if { (ac_try="$ac_compile" |
25528 | case "(($ac_try" in | |
25529 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
25530 | *) ac_try_echo=$ac_try;; | |
25531 | esac | |
d589327a | 25532 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 25533 | (eval "$ac_compile") 2>conftest.er1 |
bdcade0a | 25534 | ac_status=$? |
ac1cb8d3 VS |
25535 | grep -v '^ *+' conftest.er1 >conftest.err |
25536 | rm -f conftest.er1 | |
25537 | cat conftest.err >&5 | |
d589327a | 25538 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
25539 | (exit $ac_status); } && { |
25540 | test -z "$ac_cxx_werror_flag" || | |
25541 | test ! -s conftest.err | |
25542 | } && test -s conftest.$ac_objext; then | |
01684023 | 25543 | ac_cv_header_tr1_unordered_map=yes |
bdcade0a | 25544 | else |
d589327a | 25545 | echo "$as_me: failed program was:" >&5 |
bdcade0a MB |
25546 | sed 's/^/| /' conftest.$ac_ext >&5 |
25547 | ||
01684023 | 25548 | ac_cv_header_tr1_unordered_map=no |
bdcade0a | 25549 | fi |
47964710 VS |
25550 | |
25551 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
bdcade0a | 25552 | fi |
d589327a VZ |
25553 | { echo "$as_me:$LINENO: result: $ac_cv_header_tr1_unordered_map" >&5 |
25554 | echo "${ECHO_T}$ac_cv_header_tr1_unordered_map" >&6; } | |
25555 | if test $ac_cv_header_tr1_unordered_map = yes; then | |
25556 | { echo "$as_me:$LINENO: checking for unordered_map and unordered_set in std::tr1" >&5 | |
25557 | echo $ECHO_N "checking for unordered_map and unordered_set in std::tr1... $ECHO_C" >&6; } | |
01684023 | 25558 | if test "${wx_cv_class_tr1unorderedmapset+set}" = set; then |
d589327a | 25559 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9b8888f9 VZ |
25560 | else |
25561 | cat >conftest.$ac_ext <<_ACEOF | |
bdcade0a MB |
25562 | /* confdefs.h. */ |
25563 | _ACEOF | |
25564 | cat confdefs.h >>conftest.$ac_ext | |
25565 | cat >>conftest.$ac_ext <<_ACEOF | |
25566 | /* end confdefs.h. */ | |
01684023 VZ |
25567 | #include <tr1/unordered_map> |
25568 | #include <tr1/unordered_set> | |
bdcade0a MB |
25569 | int |
25570 | main () | |
25571 | { | |
01684023 VZ |
25572 | std::tr1::unordered_map<double*, char*> test1; |
25573 | std::tr1::unordered_set<char*> test2; | |
25574 | #if defined(__GNUC__) && (__GNUC__==4) && (__GNUC_MINOR__<2) | |
25575 | #error can't use unordered_{map,set} with gcc-4.[01]: http://gcc.gnu.org/PR24389 | |
25576 | #endif | |
bdcade0a MB |
25577 | ; |
25578 | return 0; | |
25579 | } | |
25580 | _ACEOF | |
25581 | rm -f conftest.$ac_objext | |
47964710 VS |
25582 | if { (ac_try="$ac_compile" |
25583 | case "(($ac_try" in | |
25584 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
25585 | *) ac_try_echo=$ac_try;; | |
25586 | esac | |
d589327a | 25587 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 25588 | (eval "$ac_compile") 2>conftest.er1 |
bdcade0a | 25589 | ac_status=$? |
ac1cb8d3 VS |
25590 | grep -v '^ *+' conftest.er1 >conftest.err |
25591 | rm -f conftest.er1 | |
25592 | cat conftest.err >&5 | |
d589327a | 25593 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
25594 | (exit $ac_status); } && { |
25595 | test -z "$ac_cxx_werror_flag" || | |
25596 | test ! -s conftest.err | |
25597 | } && test -s conftest.$ac_objext; then | |
01684023 | 25598 | wx_cv_class_tr1unorderedmapset=yes |
bdcade0a | 25599 | else |
d589327a | 25600 | echo "$as_me: failed program was:" >&5 |
bdcade0a MB |
25601 | sed 's/^/| /' conftest.$ac_ext >&5 |
25602 | ||
01684023 | 25603 | wx_cv_class_tr1unorderedmapset=no |
bdcade0a | 25604 | fi |
47964710 VS |
25605 | |
25606 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
bdcade0a | 25607 | |
9b8888f9 | 25608 | |
bdcade0a | 25609 | fi |
d589327a VZ |
25610 | { echo "$as_me:$LINENO: result: $wx_cv_class_tr1unorderedmapset" >&5 |
25611 | echo "${ECHO_T}$wx_cv_class_tr1unorderedmapset" >&6; } | |
9b8888f9 VZ |
25612 | fi |
25613 | ||
bdcade0a MB |
25614 | |
25615 | ||
01684023 VZ |
25616 | if test "$wx_cv_class_tr1unorderedmapset" = yes; then |
25617 | cat >>confdefs.h <<\_ACEOF | |
25618 | #define HAVE_TR1_UNORDERED_MAP 1 | |
9b8888f9 VZ |
25619 | _ACEOF |
25620 | ||
01684023 VZ |
25621 | cat >>confdefs.h <<\_ACEOF |
25622 | #define HAVE_TR1_UNORDERED_SET 1 | |
9b8888f9 VZ |
25623 | _ACEOF |
25624 | ||
01684023 | 25625 | else |
d589327a VZ |
25626 | { echo "$as_me:$LINENO: checking for hash_map" >&5 |
25627 | echo $ECHO_N "checking for hash_map... $ECHO_C" >&6; } | |
01684023 | 25628 | if test "${ac_cv_header_hash_map+set}" = set; then |
d589327a | 25629 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
f380544a VZ |
25630 | else |
25631 | cat >conftest.$ac_ext <<_ACEOF | |
25632 | /* confdefs.h. */ | |
25633 | _ACEOF | |
25634 | cat confdefs.h >>conftest.$ac_ext | |
25635 | cat >>conftest.$ac_ext <<_ACEOF | |
25636 | /* end confdefs.h. */ | |
25637 | ||
25638 | ||
25639 | ||
01684023 | 25640 | #include <hash_map> |
f380544a VZ |
25641 | _ACEOF |
25642 | rm -f conftest.$ac_objext | |
25643 | if { (ac_try="$ac_compile" | |
25644 | case "(($ac_try" in | |
25645 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
25646 | *) ac_try_echo=$ac_try;; | |
25647 | esac | |
d589327a | 25648 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
f380544a VZ |
25649 | (eval "$ac_compile") 2>conftest.er1 |
25650 | ac_status=$? | |
25651 | grep -v '^ *+' conftest.er1 >conftest.err | |
25652 | rm -f conftest.er1 | |
25653 | cat conftest.err >&5 | |
d589327a | 25654 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f380544a VZ |
25655 | (exit $ac_status); } && { |
25656 | test -z "$ac_cxx_werror_flag" || | |
25657 | test ! -s conftest.err | |
25658 | } && test -s conftest.$ac_objext; then | |
01684023 | 25659 | ac_cv_header_hash_map=yes |
f380544a | 25660 | else |
d589327a | 25661 | echo "$as_me: failed program was:" >&5 |
f380544a VZ |
25662 | sed 's/^/| /' conftest.$ac_ext >&5 |
25663 | ||
01684023 | 25664 | ac_cv_header_hash_map=no |
f380544a VZ |
25665 | fi |
25666 | ||
25667 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
25668 | fi | |
d589327a VZ |
25669 | { echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5 |
25670 | echo "${ECHO_T}$ac_cv_header_hash_map" >&6; } | |
25671 | if test $ac_cv_header_hash_map = yes; then | |
25672 | { echo "$as_me:$LINENO: checking for std::hash_map and hash_set" >&5 | |
25673 | echo $ECHO_N "checking for std::hash_map and hash_set... $ECHO_C" >&6; } | |
01684023 | 25674 | if test "${wx_cv_class_stdhashmapset+set}" = set; then |
d589327a | 25675 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
f380544a VZ |
25676 | else |
25677 | cat >conftest.$ac_ext <<_ACEOF | |
25678 | /* confdefs.h. */ | |
25679 | _ACEOF | |
25680 | cat confdefs.h >>conftest.$ac_ext | |
25681 | cat >>conftest.$ac_ext <<_ACEOF | |
25682 | /* end confdefs.h. */ | |
01684023 VZ |
25683 | #include <hash_map> |
25684 | #include <hash_set> | |
f380544a VZ |
25685 | int |
25686 | main () | |
25687 | { | |
01684023 VZ |
25688 | std::hash_map<double*, char*, std::hash<double*>, std::equal_to<double*> > test1; |
25689 | std::hash_set<char*, std::hash<char*>, std::equal_to<char*> > test2; | |
f380544a VZ |
25690 | ; |
25691 | return 0; | |
25692 | } | |
25693 | _ACEOF | |
25694 | rm -f conftest.$ac_objext | |
25695 | if { (ac_try="$ac_compile" | |
25696 | case "(($ac_try" in | |
25697 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
25698 | *) ac_try_echo=$ac_try;; | |
25699 | esac | |
d589327a | 25700 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
f380544a VZ |
25701 | (eval "$ac_compile") 2>conftest.er1 |
25702 | ac_status=$? | |
25703 | grep -v '^ *+' conftest.er1 >conftest.err | |
25704 | rm -f conftest.er1 | |
25705 | cat conftest.err >&5 | |
d589327a | 25706 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f380544a VZ |
25707 | (exit $ac_status); } && { |
25708 | test -z "$ac_cxx_werror_flag" || | |
25709 | test ! -s conftest.err | |
25710 | } && test -s conftest.$ac_objext; then | |
01684023 | 25711 | wx_cv_class_stdhashmapset=yes |
f380544a | 25712 | else |
d589327a | 25713 | echo "$as_me: failed program was:" >&5 |
f380544a VZ |
25714 | sed 's/^/| /' conftest.$ac_ext >&5 |
25715 | ||
01684023 | 25716 | wx_cv_class_stdhashmapset=no |
f380544a VZ |
25717 | fi |
25718 | ||
25719 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
25720 | ||
25721 | ||
25722 | fi | |
d589327a VZ |
25723 | { echo "$as_me:$LINENO: result: $wx_cv_class_stdhashmapset" >&5 |
25724 | echo "${ECHO_T}$wx_cv_class_stdhashmapset" >&6; } | |
f380544a VZ |
25725 | fi |
25726 | ||
25727 | ||
25728 | ||
01684023 VZ |
25729 | if test "$wx_cv_class_stdhashmapset" = yes; then |
25730 | cat >>confdefs.h <<\_ACEOF | |
25731 | #define HAVE_HASH_MAP 1 | |
f380544a VZ |
25732 | _ACEOF |
25733 | ||
01684023 VZ |
25734 | cat >>confdefs.h <<\_ACEOF |
25735 | #define HAVE_STD_HASH_MAP 1 | |
f380544a VZ |
25736 | _ACEOF |
25737 | ||
01684023 VZ |
25738 | fi |
25739 | ||
d589327a VZ |
25740 | { echo "$as_me:$LINENO: checking for ext/hash_map" >&5 |
25741 | echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6; } | |
01684023 | 25742 | if test "${ac_cv_header_ext_hash_map+set}" = set; then |
d589327a | 25743 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
f380544a VZ |
25744 | else |
25745 | cat >conftest.$ac_ext <<_ACEOF | |
25746 | /* confdefs.h. */ | |
25747 | _ACEOF | |
25748 | cat confdefs.h >>conftest.$ac_ext | |
25749 | cat >>conftest.$ac_ext <<_ACEOF | |
25750 | /* end confdefs.h. */ | |
25751 | ||
25752 | ||
25753 | ||
01684023 | 25754 | #include <ext/hash_map> |
f380544a VZ |
25755 | _ACEOF |
25756 | rm -f conftest.$ac_objext | |
25757 | if { (ac_try="$ac_compile" | |
25758 | case "(($ac_try" in | |
25759 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
25760 | *) ac_try_echo=$ac_try;; | |
25761 | esac | |
d589327a | 25762 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
f380544a VZ |
25763 | (eval "$ac_compile") 2>conftest.er1 |
25764 | ac_status=$? | |
25765 | grep -v '^ *+' conftest.er1 >conftest.err | |
25766 | rm -f conftest.er1 | |
25767 | cat conftest.err >&5 | |
d589327a | 25768 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f380544a VZ |
25769 | (exit $ac_status); } && { |
25770 | test -z "$ac_cxx_werror_flag" || | |
25771 | test ! -s conftest.err | |
25772 | } && test -s conftest.$ac_objext; then | |
01684023 | 25773 | ac_cv_header_ext_hash_map=yes |
f380544a | 25774 | else |
d589327a | 25775 | echo "$as_me: failed program was:" >&5 |
f380544a VZ |
25776 | sed 's/^/| /' conftest.$ac_ext >&5 |
25777 | ||
01684023 | 25778 | ac_cv_header_ext_hash_map=no |
f380544a VZ |
25779 | fi |
25780 | ||
25781 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
25782 | fi | |
d589327a VZ |
25783 | { echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5 |
25784 | echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6; } | |
25785 | if test $ac_cv_header_ext_hash_map = yes; then | |
25786 | { echo "$as_me:$LINENO: checking for GNU hash_map and hash_set" >&5 | |
25787 | echo $ECHO_N "checking for GNU hash_map and hash_set... $ECHO_C" >&6; } | |
01684023 | 25788 | if test "${wx_cv_class_gnuhashmapset+set}" = set; then |
d589327a | 25789 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
f380544a VZ |
25790 | else |
25791 | cat >conftest.$ac_ext <<_ACEOF | |
25792 | /* confdefs.h. */ | |
25793 | _ACEOF | |
25794 | cat confdefs.h >>conftest.$ac_ext | |
25795 | cat >>conftest.$ac_ext <<_ACEOF | |
25796 | /* end confdefs.h. */ | |
01684023 VZ |
25797 | #include <ext/hash_map> |
25798 | #include <ext/hash_set> | |
f380544a VZ |
25799 | int |
25800 | main () | |
25801 | { | |
01684023 VZ |
25802 | __gnu_cxx::hash_map<double*, char*, __gnu_cxx::hash<double*>, std::equal_to<double*> > test1; |
25803 | __gnu_cxx::hash_set<char*, __gnu_cxx::hash<char*>, std::equal_to<char*> > test2; | |
f380544a VZ |
25804 | ; |
25805 | return 0; | |
25806 | } | |
25807 | _ACEOF | |
25808 | rm -f conftest.$ac_objext | |
25809 | if { (ac_try="$ac_compile" | |
25810 | case "(($ac_try" in | |
25811 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
25812 | *) ac_try_echo=$ac_try;; | |
25813 | esac | |
d589327a | 25814 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
f380544a VZ |
25815 | (eval "$ac_compile") 2>conftest.er1 |
25816 | ac_status=$? | |
25817 | grep -v '^ *+' conftest.er1 >conftest.err | |
25818 | rm -f conftest.er1 | |
25819 | cat conftest.err >&5 | |
d589327a | 25820 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f380544a VZ |
25821 | (exit $ac_status); } && { |
25822 | test -z "$ac_cxx_werror_flag" || | |
25823 | test ! -s conftest.err | |
25824 | } && test -s conftest.$ac_objext; then | |
01684023 | 25825 | wx_cv_class_gnuhashmapset=yes |
f380544a | 25826 | else |
d589327a | 25827 | echo "$as_me: failed program was:" >&5 |
f380544a VZ |
25828 | sed 's/^/| /' conftest.$ac_ext >&5 |
25829 | ||
01684023 | 25830 | wx_cv_class_gnuhashmapset=no |
f380544a VZ |
25831 | fi |
25832 | ||
25833 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
25834 | ||
25835 | ||
25836 | fi | |
d589327a VZ |
25837 | { echo "$as_me:$LINENO: result: $wx_cv_class_gnuhashmapset" >&5 |
25838 | echo "${ECHO_T}$wx_cv_class_gnuhashmapset" >&6; } | |
f380544a VZ |
25839 | fi |
25840 | ||
25841 | ||
25842 | ||
f380544a VZ |
25843 | fi |
25844 | fi | |
a848cd7e SC |
25845 | fi |
25846 | ||
47964710 VS |
25847 | |
25848 | ||
25849 | if test -n "$GCC"; then | |
d589327a VZ |
25850 | { echo "$as_me:$LINENO: checking for __sync_fetch_and_add and __sync_sub_and_fetch builtins" >&5 |
25851 | echo $ECHO_N "checking for __sync_fetch_and_add and __sync_sub_and_fetch builtins... $ECHO_C" >&6; } | |
47964710 | 25852 | if test "${wx_cv_cc_gcc_atomic_builtins+set}" = set; then |
d589327a | 25853 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
47964710 VS |
25854 | else |
25855 | ||
25856 | cat >conftest.$ac_ext <<_ACEOF | |
25857 | /* confdefs.h. */ | |
25858 | _ACEOF | |
25859 | cat confdefs.h >>conftest.$ac_ext | |
25860 | cat >>conftest.$ac_ext <<_ACEOF | |
25861 | /* end confdefs.h. */ | |
25862 | ||
25863 | int | |
25864 | main () | |
25865 | { | |
25866 | ||
9dcff96b | 25867 | unsigned int value=0; |
9d5507f7 VS |
25868 | /* wxAtomicInc doesn't use return value here */ |
25869 | __sync_fetch_and_add(&value, 2); | |
47964710 | 25870 | __sync_sub_and_fetch(&value, 1); |
9d5507f7 VS |
25871 | /* but wxAtomicDec does, so mimic that: */ |
25872 | unsigned int r2 = __sync_sub_and_fetch(&value, 1); | |
47964710 VS |
25873 | |
25874 | ; | |
25875 | return 0; | |
25876 | } | |
25877 | _ACEOF | |
9dcff96b VS |
25878 | rm -f conftest.$ac_objext conftest$ac_exeext |
25879 | if { (ac_try="$ac_link" | |
47964710 VS |
25880 | case "(($ac_try" in |
25881 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
25882 | *) ac_try_echo=$ac_try;; | |
25883 | esac | |
d589327a | 25884 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
9dcff96b | 25885 | (eval "$ac_link") 2>conftest.er1 |
47964710 VS |
25886 | ac_status=$? |
25887 | grep -v '^ *+' conftest.er1 >conftest.err | |
25888 | rm -f conftest.er1 | |
25889 | cat conftest.err >&5 | |
d589327a | 25890 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
25891 | (exit $ac_status); } && { |
25892 | test -z "$ac_cxx_werror_flag" || | |
25893 | test ! -s conftest.err | |
d589327a VZ |
25894 | } && test -s conftest$ac_exeext && |
25895 | $as_test_x conftest$ac_exeext; then | |
47964710 VS |
25896 | wx_cv_cc_gcc_atomic_builtins=yes |
25897 | else | |
d589327a | 25898 | echo "$as_me: failed program was:" >&5 |
47964710 VS |
25899 | sed 's/^/| /' conftest.$ac_ext >&5 |
25900 | ||
25901 | wx_cv_cc_gcc_atomic_builtins=no | |
25902 | fi | |
25903 | ||
9dcff96b VS |
25904 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
25905 | conftest$ac_exeext conftest.$ac_ext | |
47964710 VS |
25906 | |
25907 | fi | |
25908 | ||
d589327a VZ |
25909 | { echo "$as_me:$LINENO: result: $wx_cv_cc_gcc_atomic_builtins" >&5 |
25910 | echo "${ECHO_T}$wx_cv_cc_gcc_atomic_builtins" >&6; } | |
47964710 VS |
25911 | if test $wx_cv_cc_gcc_atomic_builtins = yes; then |
25912 | cat >>confdefs.h <<\_ACEOF | |
25913 | #define HAVE_GCC_ATOMIC_BUILTINS 1 | |
25914 | _ACEOF | |
25915 | ||
25916 | fi | |
25917 | fi | |
25918 | ||
25919 | ||
9b8888f9 VZ |
25920 | ac_ext=c |
25921 | ac_cpp='$CPP $CPPFLAGS' | |
25922 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
25923 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
25924 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
25925 | ||
25926 | ||
a848cd7e SC |
25927 | |
25928 | SEARCH_INCLUDE="\ | |
25929 | /usr/local/include \ | |
235cdc6d VZ |
25930 | /usr/local/X11/include \ |
25931 | /usr/local/include/X11 \ | |
256cddd7 | 25932 | /usr/local/X11R7/include \ |
235cdc6d | 25933 | /usr/local/X11R6/include \ |
256cddd7 | 25934 | /usr/local/include/X11R7 \ |
235cdc6d | 25935 | /usr/local/include/X11R6 \ |
a848cd7e SC |
25936 | \ |
25937 | /usr/Motif-2.1/include \ | |
25938 | /usr/Motif-1.2/include \ | |
25939 | /usr/include/Motif1.2 \ | |
a848cd7e SC |
25940 | \ |
25941 | /usr/dt/include \ | |
25942 | /usr/openwin/include \ | |
25943 | \ | |
25944 | /usr/include/Xm \ | |
25945 | \ | |
256cddd7 | 25946 | /usr/X11R7/include \ |
a848cd7e SC |
25947 | /usr/X11R6/include \ |
25948 | /usr/X11R6.4/include \ | |
a848cd7e | 25949 | \ |
256cddd7 | 25950 | /usr/include/X11R7 \ |
a848cd7e | 25951 | /usr/include/X11R6 \ |
a848cd7e SC |
25952 | \ |
25953 | /usr/X11/include \ | |
25954 | /usr/include/X11 \ | |
a848cd7e | 25955 | \ |
a848cd7e | 25956 | /usr/XFree86/include/X11 \ |
e051b34e MW |
25957 | /usr/pkg/include \ |
25958 | \ | |
235cdc6d VZ |
25959 | /usr/local/X1R5/include \ |
25960 | /usr/local/include/X11R5 \ | |
25961 | /usr/X11R5/include \ | |
25962 | /usr/include/X11R5 \ | |
25963 | \ | |
25964 | /usr/local/X11R4/include \ | |
25965 | /usr/local/include/X11R4 \ | |
25966 | /usr/X11R4/include \ | |
25967 | /usr/include/X11R4 \ | |
25968 | \ | |
a848cd7e SC |
25969 | /usr/openwin/share/include" |
25970 | ||
d589327a VZ |
25971 | { echo "$as_me:$LINENO: checking for libraries directory" >&5 |
25972 | echo $ECHO_N "checking for libraries directory... $ECHO_C" >&6; } | |
6f9cf1e6 MW |
25973 | |
25974 | case "${host}" in | |
25975 | *-*-irix6* ) | |
25976 | if test "${wx_cv_std_libpath+set}" = set; then | |
d589327a | 25977 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
0ad5d837 VZ |
25978 | else |
25979 | ||
c687b303 VZ |
25980 | for d in /usr/lib /usr/lib32 /usr/lib/64 /usr/lib64; do |
25981 | for e in a so sl dylib dll.a; do | |
25982 | libc="$d/libc.$e" | |
25983 | if test -f $libc; then | |
25984 | save_LIBS="$LIBS" | |
25985 | LIBS="$libc" | |
25986 | cat >conftest.$ac_ext <<_ACEOF | |
0ad5d837 VZ |
25987 | int main() { return 0; } |
25988 | _ACEOF | |
25989 | rm -f conftest.$ac_objext conftest$ac_exeext | |
47964710 VS |
25990 | if { (ac_try="$ac_link" |
25991 | case "(($ac_try" in | |
25992 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
25993 | *) ac_try_echo=$ac_try;; | |
25994 | esac | |
d589327a | 25995 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 25996 | (eval "$ac_link") 2>conftest.er1 |
0ad5d837 VZ |
25997 | ac_status=$? |
25998 | grep -v '^ *+' conftest.er1 >conftest.err | |
25999 | rm -f conftest.er1 | |
26000 | cat conftest.err >&5 | |
d589327a | 26001 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
26002 | (exit $ac_status); } && { |
26003 | test -z "$ac_c_werror_flag" || | |
26004 | test ! -s conftest.err | |
d589327a VZ |
26005 | } && test -s conftest$ac_exeext && |
26006 | $as_test_x conftest$ac_exeext; then | |
0ad5d837 VZ |
26007 | wx_cv_std_libpath=`echo $d | sed s@/usr/@@` |
26008 | else | |
d589327a | 26009 | echo "$as_me: failed program was:" >&5 |
0ad5d837 VZ |
26010 | sed 's/^/| /' conftest.$ac_ext >&5 |
26011 | ||
47964710 | 26012 | |
0ad5d837 | 26013 | fi |
47964710 VS |
26014 | |
26015 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
0ad5d837 | 26016 | conftest$ac_exeext conftest.$ac_ext |
c687b303 VZ |
26017 | LIBS="$save_LIBS" |
26018 | if test "x$wx_cv_std_libpath" != "x"; then | |
26019 | break 2 | |
26020 | fi | |
26021 | fi | |
26022 | done | |
26023 | done | |
26024 | if test "x$wx_cv_std_libpath" = "x"; then | |
26025 | wx_cv_std_libpath="lib" | |
0ad5d837 | 26026 | fi |
0ad5d837 VZ |
26027 | |
26028 | ||
26029 | fi | |
6f9cf1e6 MW |
26030 | |
26031 | ;; | |
26032 | ||
26033 | *-*-solaris2* ) | |
26034 | if test "$ac_cv_sizeof_void_p" = 8 -a -d "/usr/lib/64"; then | |
26035 | wx_cv_std_libpath="lib/64" | |
26036 | else | |
26037 | wx_cv_std_libpath="lib" | |
26038 | fi | |
26039 | ;; | |
26040 | ||
26041 | *-*-linux* ) | |
26042 | if test "$ac_cv_sizeof_void_p" = 8 -a \ | |
26043 | -d "/usr/lib64" -a ! -h "/usr/lib64"; then | |
26044 | wx_cv_std_libpath="lib64" | |
26045 | else | |
26046 | wx_cv_std_libpath="lib" | |
26047 | fi | |
c687b303 VZ |
26048 | ;; |
26049 | ||
26050 | *) | |
26051 | wx_cv_std_libpath="lib"; | |
26052 | ;; | |
26053 | esac | |
0ad5d837 | 26054 | |
d589327a VZ |
26055 | { echo "$as_me:$LINENO: result: $wx_cv_std_libpath" >&5 |
26056 | echo "${ECHO_T}$wx_cv_std_libpath" >&6; } | |
6f9cf1e6 MW |
26057 | |
26058 | SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s@include@$wx_cv_std_libpath@g` /usr/$wx_cv_std_libpath" | |
a848cd7e | 26059 | |
3eca31dc MW |
26060 | if test "$build" != "$host" -a "$GCC" = yes; then |
26061 | if cross_root=`$CC -print-prog-name=ld 2>/dev/null`; then | |
26062 | cross_root=`dirname $cross_root` | |
26063 | cross_root=`dirname $cross_root` | |
26064 | ||
26065 | SEARCH_LIB=`for x in $SEARCH_LIB; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"` | |
26066 | SEARCH_INCLUDE=`for x in $SEARCH_INCLUDE; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"` | |
5c60e845 | 26067 | SEARCH_INCLUDE="$SEARCH_INCLUDE $cross_root/include" |
3eca31dc MW |
26068 | |
26069 | if test -z "$PKG_CONFIG_PATH"; then | |
26070 | PKG_CONFIG_PATH="$cross_root/local/lib/pkgconfig:$cross_root/lib/pkgconfig" | |
26071 | export PKG_CONFIG_PATH | |
26072 | fi | |
26073 | ||
26074 | if test -z "$x_includes" -o "$x_includes" = NONE; then | |
26075 | ||
26076 | ac_find_includes= | |
26077 | for ac_dir in $SEARCH_INCLUDE /usr/include; | |
26078 | do | |
26079 | if test -f "$ac_dir/X11/Intrinsic.h"; then | |
26080 | ac_find_includes=$ac_dir | |
26081 | break | |
26082 | fi | |
26083 | done | |
26084 | ||
26085 | x_includes=$ac_find_includes | |
26086 | fi | |
26087 | if test -z "$x_libraries" -o "$x_libraries" = NONE; then | |
26088 | ||
0ad5d837 VZ |
26089 | ac_find_libraries= |
26090 | for ac_dir in $SEARCH_LIB; | |
3eca31dc MW |
26091 | do |
26092 | for ac_extension in a so sl dylib dll.a; do | |
26093 | if test -f "$ac_dir/libXt.$ac_extension"; then | |
26094 | ac_find_libraries=$ac_dir | |
26095 | break 2 | |
26096 | fi | |
26097 | done | |
26098 | done | |
26099 | ||
26100 | x_libraries=$ac_find_libraries | |
26101 | fi | |
26102 | fi | |
26103 | fi | |
26104 | ||
a848cd7e SC |
26105 | |
26106 | cat >confcache <<\_ACEOF | |
26107 | # This file is a shell script that caches the results of configure | |
26108 | # tests run on this system so they can be shared between configure | |
26109 | # scripts and configure runs, see configure's option --config-cache. | |
26110 | # It is not useful on other systems. If it contains results you don't | |
26111 | # want to keep, you may remove or edit it. | |
26112 | # | |
26113 | # config.status only pays attention to the cache file if you give it | |
26114 | # the --recheck option to rerun configure. | |
26115 | # | |
26116 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
26117 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
26118 | # following values. | |
26119 | ||
26120 | _ACEOF | |
26121 | ||
26122 | # The following way of writing the cache mishandles newlines in values, | |
26123 | # but we know of no workaround that is simple, portable, and efficient. | |
47964710 | 26124 | # So, we kill variables containing newlines. |
a848cd7e SC |
26125 | # Ultrix sh set writes to stderr and can't be redirected directly, |
26126 | # and sets the high bit in the cache file unless we assign to the vars. | |
47964710 VS |
26127 | ( |
26128 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
26129 | eval ac_val=\$$ac_var | |
26130 | case $ac_val in #( | |
26131 | *${as_nl}*) | |
26132 | case $ac_var in #( | |
d589327a VZ |
26133 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
26134 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; | |
47964710 VS |
26135 | esac |
26136 | case $ac_var in #( | |
26137 | _ | IFS | as_nl) ;; #( | |
26138 | *) $as_unset $ac_var ;; | |
26139 | esac ;; | |
26140 | esac | |
26141 | done | |
26142 | ||
a848cd7e | 26143 | (set) 2>&1 | |
47964710 VS |
26144 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
26145 | *${as_nl}ac_space=\ *) | |
a848cd7e SC |
26146 | # `set' does not quote correctly, so add quotes (double-quote |
26147 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
26148 | sed -n \ | |
ac1cb8d3 VS |
26149 | "s/'/'\\\\''/g; |
26150 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
47964710 | 26151 | ;; #( |
a848cd7e SC |
26152 | *) |
26153 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
47964710 | 26154 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
a848cd7e | 26155 | ;; |
47964710 VS |
26156 | esac | |
26157 | sort | |
26158 | ) | | |
a848cd7e | 26159 | sed ' |
47964710 | 26160 | /^ac_cv_env_/b end |
a848cd7e | 26161 | t clear |
47964710 | 26162 | :clear |
a848cd7e SC |
26163 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
26164 | t end | |
47964710 VS |
26165 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
26166 | :end' >>confcache | |
26167 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
26168 | if test -w "$cache_file"; then | |
26169 | test "x$cache_file" != "x/dev/null" && | |
d589327a VZ |
26170 | { echo "$as_me:$LINENO: updating cache $cache_file" >&5 |
26171 | echo "$as_me: updating cache $cache_file" >&6;} | |
a848cd7e SC |
26172 | cat confcache >$cache_file |
26173 | else | |
d589327a VZ |
26174 | { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 |
26175 | echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
a848cd7e SC |
26176 | fi |
26177 | fi | |
26178 | rm -f confcache | |
26179 | ||
26180 | if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then | |
d589327a VZ |
26181 | { echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5 |
26182 | echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6; } | |
a848cd7e | 26183 | if test "${wx_cv_lib_glibc21+set}" = set; then |
d589327a | 26184 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a848cd7e SC |
26185 | else |
26186 | ||
26187 | cat >conftest.$ac_ext <<_ACEOF | |
26188 | /* confdefs.h. */ | |
26189 | _ACEOF | |
26190 | cat confdefs.h >>conftest.$ac_ext | |
26191 | cat >>conftest.$ac_ext <<_ACEOF | |
26192 | /* end confdefs.h. */ | |
26193 | #include <features.h> | |
26194 | int | |
26195 | main () | |
26196 | { | |
26197 | ||
26198 | #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1) | |
04e525a0 | 26199 | not glibc 2.1 |
a848cd7e SC |
26200 | #endif |
26201 | ||
26202 | ; | |
26203 | return 0; | |
26204 | } | |
26205 | _ACEOF | |
26206 | rm -f conftest.$ac_objext | |
47964710 VS |
26207 | if { (ac_try="$ac_compile" |
26208 | case "(($ac_try" in | |
26209 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
26210 | *) ac_try_echo=$ac_try;; | |
26211 | esac | |
d589327a | 26212 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 26213 | (eval "$ac_compile") 2>conftest.er1 |
a848cd7e | 26214 | ac_status=$? |
ac1cb8d3 VS |
26215 | grep -v '^ *+' conftest.er1 >conftest.err |
26216 | rm -f conftest.er1 | |
26217 | cat conftest.err >&5 | |
d589327a | 26218 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
26219 | (exit $ac_status); } && { |
26220 | test -z "$ac_c_werror_flag" || | |
26221 | test ! -s conftest.err | |
26222 | } && test -s conftest.$ac_objext; then | |
a848cd7e SC |
26223 | |
26224 | wx_cv_lib_glibc21=yes | |
26225 | ||
26226 | else | |
d589327a | 26227 | echo "$as_me: failed program was:" >&5 |
a848cd7e SC |
26228 | sed 's/^/| /' conftest.$ac_ext >&5 |
26229 | ||
26230 | ||
26231 | wx_cv_lib_glibc21=no | |
26232 | ||
26233 | ||
26234 | fi | |
47964710 VS |
26235 | |
26236 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
a848cd7e SC |
26237 | |
26238 | fi | |
d589327a VZ |
26239 | { echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5 |
26240 | echo "${ECHO_T}$wx_cv_lib_glibc21" >&6; } | |
a848cd7e SC |
26241 | if test "$wx_cv_lib_glibc21" = "yes"; then |
26242 | cat >>confdefs.h <<\_ACEOF | |
26243 | #define wxHAVE_GLIBC2 1 | |
26244 | _ACEOF | |
26245 | ||
26246 | fi | |
26247 | fi | |
26248 | ||
26249 | if test "x$wx_cv_lib_glibc21" = "xyes"; then | |
26250 | if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then | |
26251 | cat >>confdefs.h <<\_ACEOF | |
26252 | #define _GNU_SOURCE 1 | |
26253 | _ACEOF | |
26254 | ||
26255 | fi | |
26256 | fi | |
26257 | ||
5d7b7554 VZ |
26258 | have_cos=0 |
26259 | have_floor=0 | |
a848cd7e | 26260 | |
5d7b7554 VZ |
26261 | for ac_func in cos |
26262 | do | |
d589327a VZ |
26263 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
26264 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
26265 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
47964710 | 26266 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
d589327a | 26267 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5d7b7554 VZ |
26268 | else |
26269 | cat >conftest.$ac_ext <<_ACEOF | |
26270 | /* confdefs.h. */ | |
26271 | _ACEOF | |
26272 | cat confdefs.h >>conftest.$ac_ext | |
26273 | cat >>conftest.$ac_ext <<_ACEOF | |
26274 | /* end confdefs.h. */ | |
26275 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
26276 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
26277 | #define $ac_func innocuous_$ac_func | |
26278 | ||
26279 | /* System header to define __stub macros and hopefully few prototypes, | |
26280 | which can conflict with char $ac_func (); below. | |
26281 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
26282 | <limits.h> exists even on freestanding compilers. */ | |
26283 | ||
26284 | #ifdef __STDC__ | |
26285 | # include <limits.h> | |
26286 | #else | |
26287 | # include <assert.h> | |
26288 | #endif | |
26289 | ||
26290 | #undef $ac_func | |
26291 | ||
47964710 VS |
26292 | /* Override any GCC internal prototype to avoid an error. |
26293 | Use char because int might match the return type of a GCC | |
26294 | builtin and then its argument prototype would still apply. */ | |
5d7b7554 VZ |
26295 | #ifdef __cplusplus |
26296 | extern "C" | |
7fd3acaf RD |
26297 | #endif |
26298 | char $ac_func (); | |
26299 | /* The GNU C library defines this for functions which it implements | |
26300 | to always fail with ENOSYS. Some functions are actually named | |
26301 | something starting with __ and the normal name is an alias. */ | |
47964710 | 26302 | #if defined __stub_$ac_func || defined __stub___$ac_func |
7fd3acaf RD |
26303 | choke me |
26304 | #endif | |
26305 | ||
26306 | int | |
26307 | main () | |
f321ab7f | 26308 | { |
47964710 | 26309 | return $ac_func (); |
7fd3acaf RD |
26310 | ; |
26311 | return 0; | |
26312 | } | |
26313 | _ACEOF | |
26314 | rm -f conftest.$ac_objext conftest$ac_exeext | |
47964710 VS |
26315 | if { (ac_try="$ac_link" |
26316 | case "(($ac_try" in | |
26317 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
26318 | *) ac_try_echo=$ac_try;; | |
26319 | esac | |
d589327a | 26320 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 26321 | (eval "$ac_link") 2>conftest.er1 |
7fd3acaf RD |
26322 | ac_status=$? |
26323 | grep -v '^ *+' conftest.er1 >conftest.err | |
26324 | rm -f conftest.er1 | |
26325 | cat conftest.err >&5 | |
d589327a | 26326 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
26327 | (exit $ac_status); } && { |
26328 | test -z "$ac_c_werror_flag" || | |
26329 | test ! -s conftest.err | |
d589327a VZ |
26330 | } && test -s conftest$ac_exeext && |
26331 | $as_test_x conftest$ac_exeext; then | |
7fd3acaf RD |
26332 | eval "$as_ac_var=yes" |
26333 | else | |
d589327a | 26334 | echo "$as_me: failed program was:" >&5 |
7fd3acaf RD |
26335 | sed 's/^/| /' conftest.$ac_ext >&5 |
26336 | ||
47964710 | 26337 | eval "$as_ac_var=no" |
7fd3acaf | 26338 | fi |
47964710 VS |
26339 | |
26340 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
7fd3acaf RD |
26341 | conftest$ac_exeext conftest.$ac_ext |
26342 | fi | |
d589327a VZ |
26343 | ac_res=`eval echo '${'$as_ac_var'}'` |
26344 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
26345 | echo "${ECHO_T}$ac_res" >&6; } | |
26346 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
7fd3acaf | 26347 | cat >>confdefs.h <<_ACEOF |
d589327a | 26348 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
7fd3acaf RD |
26349 | _ACEOF |
26350 | have_cos=1 | |
26351 | fi | |
26352 | done | |
26353 | ||
26354 | ||
26355 | for ac_func in floor | |
26356 | do | |
d589327a VZ |
26357 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
26358 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
26359 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
47964710 | 26360 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
d589327a | 26361 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7fd3acaf RD |
26362 | else |
26363 | cat >conftest.$ac_ext <<_ACEOF | |
26364 | /* confdefs.h. */ | |
26365 | _ACEOF | |
26366 | cat confdefs.h >>conftest.$ac_ext | |
26367 | cat >>conftest.$ac_ext <<_ACEOF | |
26368 | /* end confdefs.h. */ | |
26369 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
26370 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
26371 | #define $ac_func innocuous_$ac_func | |
26372 | ||
26373 | /* System header to define __stub macros and hopefully few prototypes, | |
26374 | which can conflict with char $ac_func (); below. | |
26375 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
26376 | <limits.h> exists even on freestanding compilers. */ | |
26377 | ||
26378 | #ifdef __STDC__ | |
26379 | # include <limits.h> | |
26380 | #else | |
26381 | # include <assert.h> | |
5d7b7554 | 26382 | #endif |
7fd3acaf RD |
26383 | |
26384 | #undef $ac_func | |
26385 | ||
47964710 VS |
26386 | /* Override any GCC internal prototype to avoid an error. |
26387 | Use char because int might match the return type of a GCC | |
26388 | builtin and then its argument prototype would still apply. */ | |
7fd3acaf RD |
26389 | #ifdef __cplusplus |
26390 | extern "C" | |
26391 | #endif | |
5d7b7554 VZ |
26392 | char $ac_func (); |
26393 | /* The GNU C library defines this for functions which it implements | |
26394 | to always fail with ENOSYS. Some functions are actually named | |
26395 | something starting with __ and the normal name is an alias. */ | |
47964710 | 26396 | #if defined __stub_$ac_func || defined __stub___$ac_func |
5d7b7554 | 26397 | choke me |
7fd3acaf RD |
26398 | #endif |
26399 | ||
26400 | int | |
26401 | main () | |
26402 | { | |
47964710 | 26403 | return $ac_func (); |
7fd3acaf RD |
26404 | ; |
26405 | return 0; | |
26406 | } | |
26407 | _ACEOF | |
26408 | rm -f conftest.$ac_objext conftest$ac_exeext | |
47964710 VS |
26409 | if { (ac_try="$ac_link" |
26410 | case "(($ac_try" in | |
26411 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
26412 | *) ac_try_echo=$ac_try;; | |
26413 | esac | |
d589327a | 26414 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 26415 | (eval "$ac_link") 2>conftest.er1 |
7fd3acaf RD |
26416 | ac_status=$? |
26417 | grep -v '^ *+' conftest.er1 >conftest.err | |
26418 | rm -f conftest.er1 | |
26419 | cat conftest.err >&5 | |
d589327a | 26420 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
26421 | (exit $ac_status); } && { |
26422 | test -z "$ac_c_werror_flag" || | |
26423 | test ! -s conftest.err | |
d589327a VZ |
26424 | } && test -s conftest$ac_exeext && |
26425 | $as_test_x conftest$ac_exeext; then | |
7fd3acaf RD |
26426 | eval "$as_ac_var=yes" |
26427 | else | |
d589327a | 26428 | echo "$as_me: failed program was:" >&5 |
7fd3acaf RD |
26429 | sed 's/^/| /' conftest.$ac_ext >&5 |
26430 | ||
47964710 | 26431 | eval "$as_ac_var=no" |
7fd3acaf | 26432 | fi |
47964710 VS |
26433 | |
26434 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
7fd3acaf RD |
26435 | conftest$ac_exeext conftest.$ac_ext |
26436 | fi | |
d589327a VZ |
26437 | ac_res=`eval echo '${'$as_ac_var'}'` |
26438 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
26439 | echo "${ECHO_T}$ac_res" >&6; } | |
26440 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
7fd3acaf | 26441 | cat >>confdefs.h <<_ACEOF |
d589327a | 26442 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
7fd3acaf RD |
26443 | _ACEOF |
26444 | have_floor=1 | |
26445 | fi | |
26446 | done | |
26447 | ||
d589327a VZ |
26448 | { echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5 |
26449 | echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6; } | |
7fd3acaf | 26450 | if test "$have_cos" = 1 -a "$have_floor" = 1; then |
d589327a VZ |
26451 | { echo "$as_me:$LINENO: result: yes" >&5 |
26452 | echo "${ECHO_T}yes" >&6; } | |
7fd3acaf | 26453 | else |
d589327a VZ |
26454 | { echo "$as_me:$LINENO: result: no" >&5 |
26455 | echo "${ECHO_T}no" >&6; } | |
7fd3acaf RD |
26456 | LIBS="$LIBS -lm" |
26457 | # use different functions to avoid configure caching | |
26458 | have_sin=0 | |
26459 | have_ceil=0 | |
26460 | ||
26461 | for ac_func in sin | |
26462 | do | |
d589327a VZ |
26463 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
26464 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
26465 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
47964710 | 26466 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
d589327a | 26467 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7fd3acaf RD |
26468 | else |
26469 | cat >conftest.$ac_ext <<_ACEOF | |
26470 | /* confdefs.h. */ | |
26471 | _ACEOF | |
26472 | cat confdefs.h >>conftest.$ac_ext | |
26473 | cat >>conftest.$ac_ext <<_ACEOF | |
26474 | /* end confdefs.h. */ | |
26475 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
26476 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
26477 | #define $ac_func innocuous_$ac_func | |
26478 | ||
26479 | /* System header to define __stub macros and hopefully few prototypes, | |
26480 | which can conflict with char $ac_func (); below. | |
26481 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
26482 | <limits.h> exists even on freestanding compilers. */ | |
26483 | ||
26484 | #ifdef __STDC__ | |
26485 | # include <limits.h> | |
f321ab7f | 26486 | #else |
7fd3acaf | 26487 | # include <assert.h> |
f321ab7f | 26488 | #endif |
7fd3acaf RD |
26489 | |
26490 | #undef $ac_func | |
26491 | ||
47964710 VS |
26492 | /* Override any GCC internal prototype to avoid an error. |
26493 | Use char because int might match the return type of a GCC | |
26494 | builtin and then its argument prototype would still apply. */ | |
f321ab7f | 26495 | #ifdef __cplusplus |
7fd3acaf RD |
26496 | extern "C" |
26497 | #endif | |
26498 | char $ac_func (); | |
26499 | /* The GNU C library defines this for functions which it implements | |
26500 | to always fail with ENOSYS. Some functions are actually named | |
26501 | something starting with __ and the normal name is an alias. */ | |
47964710 | 26502 | #if defined __stub_$ac_func || defined __stub___$ac_func |
7fd3acaf | 26503 | choke me |
5d7b7554 VZ |
26504 | #endif |
26505 | ||
26506 | int | |
26507 | main () | |
26508 | { | |
47964710 | 26509 | return $ac_func (); |
5d7b7554 VZ |
26510 | ; |
26511 | return 0; | |
26512 | } | |
26513 | _ACEOF | |
26514 | rm -f conftest.$ac_objext conftest$ac_exeext | |
47964710 VS |
26515 | if { (ac_try="$ac_link" |
26516 | case "(($ac_try" in | |
26517 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
26518 | *) ac_try_echo=$ac_try;; | |
26519 | esac | |
d589327a | 26520 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 26521 | (eval "$ac_link") 2>conftest.er1 |
5d7b7554 VZ |
26522 | ac_status=$? |
26523 | grep -v '^ *+' conftest.er1 >conftest.err | |
26524 | rm -f conftest.er1 | |
26525 | cat conftest.err >&5 | |
d589327a | 26526 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
26527 | (exit $ac_status); } && { |
26528 | test -z "$ac_c_werror_flag" || | |
26529 | test ! -s conftest.err | |
d589327a VZ |
26530 | } && test -s conftest$ac_exeext && |
26531 | $as_test_x conftest$ac_exeext; then | |
5d7b7554 VZ |
26532 | eval "$as_ac_var=yes" |
26533 | else | |
d589327a | 26534 | echo "$as_me: failed program was:" >&5 |
5d7b7554 VZ |
26535 | sed 's/^/| /' conftest.$ac_ext >&5 |
26536 | ||
47964710 | 26537 | eval "$as_ac_var=no" |
5d7b7554 | 26538 | fi |
47964710 VS |
26539 | |
26540 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
5d7b7554 VZ |
26541 | conftest$ac_exeext conftest.$ac_ext |
26542 | fi | |
d589327a VZ |
26543 | ac_res=`eval echo '${'$as_ac_var'}'` |
26544 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
26545 | echo "${ECHO_T}$ac_res" >&6; } | |
26546 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
5d7b7554 | 26547 | cat >>confdefs.h <<_ACEOF |
d589327a | 26548 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
5d7b7554 VZ |
26549 | _ACEOF |
26550 | have_sin=1 | |
26551 | fi | |
26552 | done | |
26553 | ||
26554 | ||
26555 | for ac_func in ceil | |
26556 | do | |
d589327a VZ |
26557 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
26558 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
26559 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
47964710 | 26560 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
d589327a | 26561 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5d7b7554 VZ |
26562 | else |
26563 | cat >conftest.$ac_ext <<_ACEOF | |
26564 | /* confdefs.h. */ | |
26565 | _ACEOF | |
26566 | cat confdefs.h >>conftest.$ac_ext | |
26567 | cat >>conftest.$ac_ext <<_ACEOF | |
26568 | /* end confdefs.h. */ | |
26569 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
26570 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
26571 | #define $ac_func innocuous_$ac_func | |
26572 | ||
26573 | /* System header to define __stub macros and hopefully few prototypes, | |
26574 | which can conflict with char $ac_func (); below. | |
26575 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
26576 | <limits.h> exists even on freestanding compilers. */ | |
26577 | ||
26578 | #ifdef __STDC__ | |
26579 | # include <limits.h> | |
26580 | #else | |
26581 | # include <assert.h> | |
26582 | #endif | |
26583 | ||
26584 | #undef $ac_func | |
26585 | ||
47964710 VS |
26586 | /* Override any GCC internal prototype to avoid an error. |
26587 | Use char because int might match the return type of a GCC | |
26588 | builtin and then its argument prototype would still apply. */ | |
5d7b7554 VZ |
26589 | #ifdef __cplusplus |
26590 | extern "C" | |
5d7b7554 | 26591 | #endif |
5d7b7554 VZ |
26592 | char $ac_func (); |
26593 | /* The GNU C library defines this for functions which it implements | |
26594 | to always fail with ENOSYS. Some functions are actually named | |
26595 | something starting with __ and the normal name is an alias. */ | |
47964710 | 26596 | #if defined __stub_$ac_func || defined __stub___$ac_func |
5d7b7554 | 26597 | choke me |
5d7b7554 VZ |
26598 | #endif |
26599 | ||
26600 | int | |
26601 | main () | |
26602 | { | |
47964710 | 26603 | return $ac_func (); |
5d7b7554 VZ |
26604 | ; |
26605 | return 0; | |
26606 | } | |
26607 | _ACEOF | |
26608 | rm -f conftest.$ac_objext conftest$ac_exeext | |
47964710 VS |
26609 | if { (ac_try="$ac_link" |
26610 | case "(($ac_try" in | |
26611 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
26612 | *) ac_try_echo=$ac_try;; | |
26613 | esac | |
d589327a | 26614 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 26615 | (eval "$ac_link") 2>conftest.er1 |
5d7b7554 VZ |
26616 | ac_status=$? |
26617 | grep -v '^ *+' conftest.er1 >conftest.err | |
26618 | rm -f conftest.er1 | |
26619 | cat conftest.err >&5 | |
d589327a | 26620 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
26621 | (exit $ac_status); } && { |
26622 | test -z "$ac_c_werror_flag" || | |
26623 | test ! -s conftest.err | |
d589327a VZ |
26624 | } && test -s conftest$ac_exeext && |
26625 | $as_test_x conftest$ac_exeext; then | |
5d7b7554 VZ |
26626 | eval "$as_ac_var=yes" |
26627 | else | |
d589327a | 26628 | echo "$as_me: failed program was:" >&5 |
5d7b7554 VZ |
26629 | sed 's/^/| /' conftest.$ac_ext >&5 |
26630 | ||
47964710 | 26631 | eval "$as_ac_var=no" |
5d7b7554 | 26632 | fi |
47964710 VS |
26633 | |
26634 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
5d7b7554 VZ |
26635 | conftest$ac_exeext conftest.$ac_ext |
26636 | fi | |
d589327a VZ |
26637 | ac_res=`eval echo '${'$as_ac_var'}'` |
26638 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
26639 | echo "${ECHO_T}$ac_res" >&6; } | |
26640 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
5d7b7554 | 26641 | cat >>confdefs.h <<_ACEOF |
d589327a | 26642 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
5d7b7554 VZ |
26643 | _ACEOF |
26644 | have_ceil=1 | |
26645 | fi | |
26646 | done | |
26647 | ||
d589327a VZ |
26648 | { echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5 |
26649 | echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6; } | |
5d7b7554 | 26650 | if test "$have_sin" = 1 -a "$have_ceil" = 1; then |
d589327a VZ |
26651 | { echo "$as_me:$LINENO: result: yes" >&5 |
26652 | echo "${ECHO_T}yes" >&6; } | |
5d7b7554 | 26653 | else |
d589327a VZ |
26654 | { echo "$as_me:$LINENO: result: no" >&5 |
26655 | echo "${ECHO_T}no" >&6; } | |
5d7b7554 VZ |
26656 | # not sure we should warn the user, crash, etc. |
26657 | fi | |
26658 | fi | |
26659 | ||
47964710 | 26660 | ac_ext=cpp |
7fd3acaf RD |
26661 | ac_cpp='$CXXCPP $CPPFLAGS' |
26662 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
26663 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
26664 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
26665 | ||
ec3edcc9 VZ |
26666 | if test "wxUSE_UNICODE" = "yes"; then |
26667 | ||
fd5199d6 VZ |
26668 | for wx_func in wcstoull |
26669 | do | |
d589327a VZ |
26670 | { echo "$as_me:$LINENO: checking for $wx_func" >&5 |
26671 | echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; } | |
47964710 | 26672 | if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then |
d589327a | 26673 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ec3edcc9 | 26674 | else |
fd5199d6 VZ |
26675 | |
26676 | cat >conftest.$ac_ext <<_ACEOF | |
26677 | ||
26678 | /* confdefs.h. */ | |
ec3edcc9 VZ |
26679 | _ACEOF |
26680 | cat confdefs.h >>conftest.$ac_ext | |
26681 | cat >>conftest.$ac_ext <<_ACEOF | |
26682 | /* end confdefs.h. */ | |
ec3edcc9 | 26683 | |
ec3edcc9 | 26684 | |
fd5199d6 | 26685 | $ac_includes_default |
ec3edcc9 VZ |
26686 | |
26687 | int | |
26688 | main () | |
26689 | { | |
fd5199d6 VZ |
26690 | |
26691 | #ifndef $wx_func | |
26692 | &$wx_func; | |
26693 | #endif | |
26694 | ||
26695 | ||
ec3edcc9 VZ |
26696 | ; |
26697 | return 0; | |
26698 | } | |
fd5199d6 | 26699 | |
ec3edcc9 VZ |
26700 | _ACEOF |
26701 | rm -f conftest.$ac_objext conftest$ac_exeext | |
47964710 VS |
26702 | if { (ac_try="$ac_link" |
26703 | case "(($ac_try" in | |
26704 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
26705 | *) ac_try_echo=$ac_try;; | |
26706 | esac | |
d589327a | 26707 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 26708 | (eval "$ac_link") 2>conftest.er1 |
ec3edcc9 VZ |
26709 | ac_status=$? |
26710 | grep -v '^ *+' conftest.er1 >conftest.err | |
26711 | rm -f conftest.er1 | |
26712 | cat conftest.err >&5 | |
d589327a | 26713 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
26714 | (exit $ac_status); } && { |
26715 | test -z "$ac_cxx_werror_flag" || | |
26716 | test ! -s conftest.err | |
d589327a VZ |
26717 | } && test -s conftest$ac_exeext && |
26718 | $as_test_x conftest$ac_exeext; then | |
fd5199d6 | 26719 | eval wx_cv_func_$wx_func=yes |
ec3edcc9 | 26720 | else |
d589327a | 26721 | echo "$as_me: failed program was:" >&5 |
ec3edcc9 VZ |
26722 | sed 's/^/| /' conftest.$ac_ext >&5 |
26723 | ||
47964710 | 26724 | eval wx_cv_func_$wx_func=no |
ec3edcc9 | 26725 | fi |
47964710 VS |
26726 | |
26727 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
54429bb3 RD |
26728 | conftest$ac_exeext conftest.$ac_ext |
26729 | ||
26730 | fi | |
d589327a VZ |
26731 | ac_res=`eval echo '${'wx_cv_func_$wx_func'}'` |
26732 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
26733 | echo "${ECHO_T}$ac_res" >&6; } | |
54429bb3 RD |
26734 | |
26735 | if eval test \$wx_cv_func_$wx_func = yes | |
26736 | then | |
26737 | cat >>confdefs.h <<_ACEOF | |
d589327a | 26738 | #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1 |
54429bb3 RD |
26739 | _ACEOF |
26740 | ||
26741 | ||
26742 | else | |
26743 | : | |
26744 | ||
26745 | fi | |
26746 | done | |
26747 | ||
26748 | else | |
26749 | ||
26750 | for wx_func in strtoull | |
26751 | do | |
d589327a VZ |
26752 | { echo "$as_me:$LINENO: checking for $wx_func" >&5 |
26753 | echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; } | |
47964710 | 26754 | if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then |
d589327a | 26755 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
54429bb3 RD |
26756 | else |
26757 | ||
26758 | cat >conftest.$ac_ext <<_ACEOF | |
26759 | ||
26760 | /* confdefs.h. */ | |
26761 | _ACEOF | |
26762 | cat confdefs.h >>conftest.$ac_ext | |
26763 | cat >>conftest.$ac_ext <<_ACEOF | |
26764 | /* end confdefs.h. */ | |
26765 | ||
26766 | ||
26767 | $ac_includes_default | |
26768 | ||
26769 | int | |
26770 | main () | |
26771 | { | |
26772 | ||
26773 | #ifndef $wx_func | |
26774 | &$wx_func; | |
26775 | #endif | |
26776 | ||
26777 | ||
26778 | ; | |
26779 | return 0; | |
26780 | } | |
26781 | ||
26782 | _ACEOF | |
26783 | rm -f conftest.$ac_objext conftest$ac_exeext | |
47964710 VS |
26784 | if { (ac_try="$ac_link" |
26785 | case "(($ac_try" in | |
26786 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
26787 | *) ac_try_echo=$ac_try;; | |
26788 | esac | |
d589327a | 26789 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 26790 | (eval "$ac_link") 2>conftest.er1 |
54429bb3 RD |
26791 | ac_status=$? |
26792 | grep -v '^ *+' conftest.er1 >conftest.err | |
26793 | rm -f conftest.er1 | |
26794 | cat conftest.err >&5 | |
d589327a | 26795 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
26796 | (exit $ac_status); } && { |
26797 | test -z "$ac_cxx_werror_flag" || | |
26798 | test ! -s conftest.err | |
d589327a VZ |
26799 | } && test -s conftest$ac_exeext && |
26800 | $as_test_x conftest$ac_exeext; then | |
54429bb3 RD |
26801 | eval wx_cv_func_$wx_func=yes |
26802 | else | |
d589327a | 26803 | echo "$as_me: failed program was:" >&5 |
54429bb3 RD |
26804 | sed 's/^/| /' conftest.$ac_ext >&5 |
26805 | ||
47964710 | 26806 | eval wx_cv_func_$wx_func=no |
54429bb3 | 26807 | fi |
47964710 VS |
26808 | |
26809 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
ec3edcc9 | 26810 | conftest$ac_exeext conftest.$ac_ext |
fd5199d6 | 26811 | |
ec3edcc9 | 26812 | fi |
d589327a VZ |
26813 | ac_res=`eval echo '${'wx_cv_func_$wx_func'}'` |
26814 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
26815 | echo "${ECHO_T}$ac_res" >&6; } | |
fd5199d6 VZ |
26816 | |
26817 | if eval test \$wx_cv_func_$wx_func = yes | |
26818 | then | |
26819 | cat >>confdefs.h <<_ACEOF | |
d589327a | 26820 | #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1 |
ec3edcc9 VZ |
26821 | _ACEOF |
26822 | ||
fd5199d6 VZ |
26823 | |
26824 | else | |
26825 | : | |
26826 | ||
26827 | fi | |
26828 | done | |
ec3edcc9 VZ |
26829 | |
26830 | fi | |
7fd3acaf RD |
26831 | ac_ext=c |
26832 | ac_cpp='$CPP $CPPFLAGS' | |
26833 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
26834 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
26835 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
26836 | ||
ec3edcc9 | 26837 | |
5d7b7554 VZ |
26838 | |
26839 | ||
26840 | if test "$wxUSE_REGEX" != "no"; then | |
26841 | cat >>confdefs.h <<\_ACEOF | |
26842 | #define wxUSE_REGEX 1 | |
26843 | _ACEOF | |
26844 | ||
26845 | ||
26846 | if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then | |
d589327a VZ |
26847 | { echo "$as_me:$LINENO: WARNING: Defaulting to the builtin regex library for Unicode build." >&5 |
26848 | echo "$as_me: WARNING: Defaulting to the builtin regex library for Unicode build." >&2;} | |
5d7b7554 VZ |
26849 | wxUSE_REGEX=builtin |
26850 | fi | |
26851 | ||
26852 | if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then | |
d589327a VZ |
26853 | { echo "$as_me:$LINENO: checking for regex.h" >&5 |
26854 | echo $ECHO_N "checking for regex.h... $ECHO_C" >&6; } | |
5d7b7554 | 26855 | if test "${ac_cv_header_regex_h+set}" = set; then |
d589327a | 26856 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5d7b7554 | 26857 | else |
6e7b8bcb | 26858 | cat >conftest.$ac_ext <<_ACEOF |
5d7b7554 VZ |
26859 | /* confdefs.h. */ |
26860 | _ACEOF | |
26861 | cat confdefs.h >>conftest.$ac_ext | |
26862 | cat >>conftest.$ac_ext <<_ACEOF | |
26863 | /* end confdefs.h. */ | |
6e7b8bcb PC |
26864 | |
26865 | ||
5d7b7554 VZ |
26866 | #include <regex.h> |
26867 | _ACEOF | |
26868 | rm -f conftest.$ac_objext | |
47964710 VS |
26869 | if { (ac_try="$ac_compile" |
26870 | case "(($ac_try" in | |
26871 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
26872 | *) ac_try_echo=$ac_try;; | |
26873 | esac | |
d589327a | 26874 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 26875 | (eval "$ac_compile") 2>conftest.er1 |
5d7b7554 VZ |
26876 | ac_status=$? |
26877 | grep -v '^ *+' conftest.er1 >conftest.err | |
26878 | rm -f conftest.er1 | |
26879 | cat conftest.err >&5 | |
d589327a | 26880 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
26881 | (exit $ac_status); } && { |
26882 | test -z "$ac_c_werror_flag" || | |
26883 | test ! -s conftest.err | |
26884 | } && test -s conftest.$ac_objext; then | |
6e7b8bcb | 26885 | ac_cv_header_regex_h=yes |
5d7b7554 | 26886 | else |
d589327a | 26887 | echo "$as_me: failed program was:" >&5 |
5d7b7554 VZ |
26888 | sed 's/^/| /' conftest.$ac_ext >&5 |
26889 | ||
47964710 | 26890 | ac_cv_header_regex_h=no |
5d7b7554 | 26891 | fi |
47964710 VS |
26892 | |
26893 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5d7b7554 | 26894 | fi |
d589327a VZ |
26895 | { echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5 |
26896 | echo "${ECHO_T}$ac_cv_header_regex_h" >&6; } | |
26897 | if test $ac_cv_header_regex_h = yes; then | |
5d7b7554 VZ |
26898 | |
26899 | ||
26900 | for ac_func in regcomp re_search | |
26901 | do | |
d589327a VZ |
26902 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
26903 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
26904 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
47964710 | 26905 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
d589327a | 26906 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5d7b7554 VZ |
26907 | else |
26908 | cat >conftest.$ac_ext <<_ACEOF | |
26909 | /* confdefs.h. */ | |
26910 | _ACEOF | |
26911 | cat confdefs.h >>conftest.$ac_ext | |
26912 | cat >>conftest.$ac_ext <<_ACEOF | |
26913 | /* end confdefs.h. */ | |
26914 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
26915 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
26916 | #define $ac_func innocuous_$ac_func | |
26917 | ||
26918 | /* System header to define __stub macros and hopefully few prototypes, | |
26919 | which can conflict with char $ac_func (); below. | |
26920 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
26921 | <limits.h> exists even on freestanding compilers. */ | |
26922 | ||
26923 | #ifdef __STDC__ | |
26924 | # include <limits.h> | |
26925 | #else | |
26926 | # include <assert.h> | |
26927 | #endif | |
26928 | ||
26929 | #undef $ac_func | |
26930 | ||
47964710 VS |
26931 | /* Override any GCC internal prototype to avoid an error. |
26932 | Use char because int might match the return type of a GCC | |
26933 | builtin and then its argument prototype would still apply. */ | |
5d7b7554 VZ |
26934 | #ifdef __cplusplus |
26935 | extern "C" | |
5d7b7554 | 26936 | #endif |
5d7b7554 VZ |
26937 | char $ac_func (); |
26938 | /* The GNU C library defines this for functions which it implements | |
26939 | to always fail with ENOSYS. Some functions are actually named | |
26940 | something starting with __ and the normal name is an alias. */ | |
47964710 | 26941 | #if defined __stub_$ac_func || defined __stub___$ac_func |
5d7b7554 | 26942 | choke me |
5d7b7554 VZ |
26943 | #endif |
26944 | ||
26945 | int | |
26946 | main () | |
26947 | { | |
47964710 | 26948 | return $ac_func (); |
5d7b7554 VZ |
26949 | ; |
26950 | return 0; | |
26951 | } | |
26952 | _ACEOF | |
26953 | rm -f conftest.$ac_objext conftest$ac_exeext | |
47964710 VS |
26954 | if { (ac_try="$ac_link" |
26955 | case "(($ac_try" in | |
26956 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
26957 | *) ac_try_echo=$ac_try;; | |
26958 | esac | |
d589327a | 26959 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 26960 | (eval "$ac_link") 2>conftest.er1 |
5d7b7554 VZ |
26961 | ac_status=$? |
26962 | grep -v '^ *+' conftest.er1 >conftest.err | |
26963 | rm -f conftest.er1 | |
26964 | cat conftest.err >&5 | |
d589327a | 26965 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
26966 | (exit $ac_status); } && { |
26967 | test -z "$ac_c_werror_flag" || | |
26968 | test ! -s conftest.err | |
d589327a VZ |
26969 | } && test -s conftest$ac_exeext && |
26970 | $as_test_x conftest$ac_exeext; then | |
a848cd7e SC |
26971 | eval "$as_ac_var=yes" |
26972 | else | |
d589327a | 26973 | echo "$as_me: failed program was:" >&5 |
a848cd7e SC |
26974 | sed 's/^/| /' conftest.$ac_ext >&5 |
26975 | ||
47964710 | 26976 | eval "$as_ac_var=no" |
a848cd7e | 26977 | fi |
47964710 VS |
26978 | |
26979 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
ac1cb8d3 | 26980 | conftest$ac_exeext conftest.$ac_ext |
a848cd7e | 26981 | fi |
d589327a VZ |
26982 | ac_res=`eval echo '${'$as_ac_var'}'` |
26983 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
26984 | echo "${ECHO_T}$ac_res" >&6; } | |
26985 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
a848cd7e | 26986 | cat >>confdefs.h <<_ACEOF |
d589327a | 26987 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
a848cd7e SC |
26988 | _ACEOF |
26989 | ||
26990 | fi | |
26991 | done | |
26992 | ||
26993 | fi | |
26994 | ||
26995 | ||
26996 | ||
26997 | if test "x$ac_cv_func_regcomp" != "xyes"; then | |
26998 | if test "$wxUSE_REGEX" = "sys" ; then | |
d589327a VZ |
26999 | { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5 |
27000 | echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;} | |
a848cd7e SC |
27001 | { (exit 1); exit 1; }; } |
27002 | else | |
d589327a VZ |
27003 | { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5 |
27004 | echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;} | |
a848cd7e SC |
27005 | wxUSE_REGEX=builtin |
27006 | fi | |
27007 | else | |
27008 | wxUSE_REGEX=sys | |
27009 | cat >>confdefs.h <<\_ACEOF | |
27010 | #define WX_NO_REGEX_ADVANCED 1 | |
27011 | _ACEOF | |
27012 | ||
27013 | fi | |
27014 | fi | |
27015 | fi | |
27016 | ||
27017 | ||
27018 | ZLIB_LINK= | |
27019 | if test "$wxUSE_ZLIB" != "no" ; then | |
27020 | cat >>confdefs.h <<\_ACEOF | |
27021 | #define wxUSE_ZLIB 1 | |
27022 | _ACEOF | |
27023 | ||
27024 | ||
27025 | if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then | |
27026 | if test "$USE_DARWIN" = 1; then | |
27027 | system_zlib_h_ok="yes" | |
27028 | else | |
d589327a VZ |
27029 | { echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5 |
27030 | echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6; } | |
a848cd7e | 27031 | if test "${ac_cv_header_zlib_h+set}" = set; then |
d589327a | 27032 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a848cd7e SC |
27033 | else |
27034 | if test "$cross_compiling" = yes; then | |
27035 | unset ac_cv_header_zlib_h | |
27036 | ||
27037 | else | |
27038 | cat >conftest.$ac_ext <<_ACEOF | |
27039 | /* confdefs.h. */ | |
27040 | _ACEOF | |
27041 | cat confdefs.h >>conftest.$ac_ext | |
27042 | cat >>conftest.$ac_ext <<_ACEOF | |
27043 | /* end confdefs.h. */ | |
27044 | ||
27045 | #include <zlib.h> | |
27046 | #include <stdio.h> | |
27047 | ||
27048 | int main() | |
27049 | { | |
27050 | FILE *f=fopen("conftestval", "w"); | |
27051 | if (!f) exit(1); | |
27052 | fprintf(f, "%s", | |
27053 | ZLIB_VERSION[0] == '1' && | |
27054 | (ZLIB_VERSION[2] > '1' || | |
27055 | (ZLIB_VERSION[2] == '1' && | |
27056 | ZLIB_VERSION[4] >= '4')) ? "yes" : "no"); | |
27057 | exit(0); | |
27058 | } | |
27059 | ||
27060 | _ACEOF | |
27061 | rm -f conftest$ac_exeext | |
47964710 VS |
27062 | if { (ac_try="$ac_link" |
27063 | case "(($ac_try" in | |
27064 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
27065 | *) ac_try_echo=$ac_try;; | |
27066 | esac | |
d589327a | 27067 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 27068 | (eval "$ac_link") 2>&5 |
a848cd7e | 27069 | ac_status=$? |
d589327a | 27070 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
a848cd7e | 27071 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
47964710 VS |
27072 | { (case "(($ac_try" in |
27073 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
27074 | *) ac_try_echo=$ac_try;; | |
27075 | esac | |
d589327a | 27076 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 27077 | (eval "$ac_try") 2>&5 |
a848cd7e | 27078 | ac_status=$? |
d589327a | 27079 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
a848cd7e SC |
27080 | (exit $ac_status); }; }; then |
27081 | ac_cv_header_zlib_h=`cat conftestval` | |
27082 | else | |
d589327a VZ |
27083 | echo "$as_me: program exited with status $ac_status" >&5 |
27084 | echo "$as_me: failed program was:" >&5 | |
a848cd7e SC |
27085 | sed 's/^/| /' conftest.$ac_ext >&5 |
27086 | ||
27087 | ( exit $ac_status ) | |
27088 | ac_cv_header_zlib_h=no | |
27089 | fi | |
47964710 | 27090 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
27091 | fi |
27092 | ||
47964710 VS |
27093 | |
27094 | ||
a848cd7e | 27095 | fi |
d589327a VZ |
27096 | { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 |
27097 | echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; } | |
27098 | { echo "$as_me:$LINENO: checking for zlib.h" >&5 | |
27099 | echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; } | |
a848cd7e | 27100 | if test "${ac_cv_header_zlib_h+set}" = set; then |
d589327a | 27101 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a848cd7e | 27102 | else |
6e7b8bcb | 27103 | cat >conftest.$ac_ext <<_ACEOF |
a848cd7e SC |
27104 | /* confdefs.h. */ |
27105 | _ACEOF | |
27106 | cat confdefs.h >>conftest.$ac_ext | |
27107 | cat >>conftest.$ac_ext <<_ACEOF | |
27108 | /* end confdefs.h. */ | |
6e7b8bcb PC |
27109 | |
27110 | ||
a848cd7e SC |
27111 | #include <zlib.h> |
27112 | _ACEOF | |
27113 | rm -f conftest.$ac_objext | |
47964710 VS |
27114 | if { (ac_try="$ac_compile" |
27115 | case "(($ac_try" in | |
27116 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
27117 | *) ac_try_echo=$ac_try;; | |
27118 | esac | |
d589327a | 27119 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 27120 | (eval "$ac_compile") 2>conftest.er1 |
a848cd7e | 27121 | ac_status=$? |
ac1cb8d3 VS |
27122 | grep -v '^ *+' conftest.er1 >conftest.err |
27123 | rm -f conftest.er1 | |
27124 | cat conftest.err >&5 | |
d589327a | 27125 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
27126 | (exit $ac_status); } && { |
27127 | test -z "$ac_c_werror_flag" || | |
27128 | test ! -s conftest.err | |
27129 | } && test -s conftest.$ac_objext; then | |
6e7b8bcb | 27130 | ac_cv_header_zlib_h=yes |
a848cd7e | 27131 | else |
d589327a | 27132 | echo "$as_me: failed program was:" >&5 |
a848cd7e SC |
27133 | sed 's/^/| /' conftest.$ac_ext >&5 |
27134 | ||
47964710 | 27135 | ac_cv_header_zlib_h=no |
a848cd7e | 27136 | fi |
47964710 VS |
27137 | |
27138 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
a848cd7e | 27139 | fi |
d589327a VZ |
27140 | { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 |
27141 | echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; } | |
a848cd7e | 27142 | |
a848cd7e SC |
27143 | |
27144 | ||
27145 | system_zlib_h_ok=$ac_cv_header_zlib_h | |
27146 | fi | |
27147 | ||
27148 | if test "$system_zlib_h_ok" = "yes"; then | |
d589327a VZ |
27149 | { echo "$as_me:$LINENO: checking for deflate in -lz" >&5 |
27150 | echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6; } | |
a848cd7e | 27151 | if test "${ac_cv_lib_z_deflate+set}" = set; then |
d589327a | 27152 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a848cd7e SC |
27153 | else |
27154 | ac_check_lib_save_LIBS=$LIBS | |
27155 | LIBS="-lz $LIBS" | |
27156 | cat >conftest.$ac_ext <<_ACEOF | |
27157 | /* confdefs.h. */ | |
27158 | _ACEOF | |
27159 | cat confdefs.h >>conftest.$ac_ext | |
27160 | cat >>conftest.$ac_ext <<_ACEOF | |
27161 | /* end confdefs.h. */ | |
27162 | ||
47964710 VS |
27163 | /* Override any GCC internal prototype to avoid an error. |
27164 | Use char because int might match the return type of a GCC | |
27165 | builtin and then its argument prototype would still apply. */ | |
a848cd7e SC |
27166 | #ifdef __cplusplus |
27167 | extern "C" | |
27168 | #endif | |
a848cd7e SC |
27169 | char deflate (); |
27170 | int | |
27171 | main () | |
27172 | { | |
47964710 | 27173 | return deflate (); |
a848cd7e SC |
27174 | ; |
27175 | return 0; | |
27176 | } | |
27177 | _ACEOF | |
27178 | rm -f conftest.$ac_objext conftest$ac_exeext | |
47964710 VS |
27179 | if { (ac_try="$ac_link" |
27180 | case "(($ac_try" in | |
27181 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
27182 | *) ac_try_echo=$ac_try;; | |
27183 | esac | |
d589327a | 27184 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 27185 | (eval "$ac_link") 2>conftest.er1 |
a848cd7e | 27186 | ac_status=$? |
ac1cb8d3 VS |
27187 | grep -v '^ *+' conftest.er1 >conftest.err |
27188 | rm -f conftest.er1 | |
27189 | cat conftest.err >&5 | |
d589327a | 27190 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
27191 | (exit $ac_status); } && { |
27192 | test -z "$ac_c_werror_flag" || | |
27193 | test ! -s conftest.err | |
d589327a VZ |
27194 | } && test -s conftest$ac_exeext && |
27195 | $as_test_x conftest$ac_exeext; then | |
a848cd7e SC |
27196 | ac_cv_lib_z_deflate=yes |
27197 | else | |
d589327a | 27198 | echo "$as_me: failed program was:" >&5 |
a848cd7e SC |
27199 | sed 's/^/| /' conftest.$ac_ext >&5 |
27200 | ||
47964710 | 27201 | ac_cv_lib_z_deflate=no |
a848cd7e | 27202 | fi |
47964710 VS |
27203 | |
27204 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
ac1cb8d3 | 27205 | conftest$ac_exeext conftest.$ac_ext |
a848cd7e SC |
27206 | LIBS=$ac_check_lib_save_LIBS |
27207 | fi | |
d589327a VZ |
27208 | { echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5 |
27209 | echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6; } | |
27210 | if test $ac_cv_lib_z_deflate = yes; then | |
a848cd7e SC |
27211 | ZLIB_LINK=" -lz" |
27212 | fi | |
27213 | ||
27214 | fi | |
27215 | ||
27216 | if test "x$ZLIB_LINK" = "x" ; then | |
27217 | if test "$wxUSE_ZLIB" = "sys" ; then | |
d589327a VZ |
27218 | { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5 |
27219 | echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;} | |
a848cd7e SC |
27220 | { (exit 1); exit 1; }; } |
27221 | else | |
d589327a VZ |
27222 | { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5 |
27223 | echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;} | |
a848cd7e SC |
27224 | wxUSE_ZLIB=builtin |
27225 | fi | |
27226 | else | |
27227 | wxUSE_ZLIB=sys | |
27228 | fi | |
27229 | fi | |
27230 | fi | |
27231 | ||
27232 | ||
27233 | PNG_LINK= | |
27234 | if test "$wxUSE_LIBPNG" != "no" ; then | |
27235 | cat >>confdefs.h <<\_ACEOF | |
27236 | #define wxUSE_LIBPNG 1 | |
27237 | _ACEOF | |
27238 | ||
27239 | ||
27240 | if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then | |
d589327a VZ |
27241 | { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5 |
27242 | echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;} | |
a848cd7e SC |
27243 | wxUSE_LIBPNG=sys |
27244 | fi | |
27245 | ||
27246 | if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then | |
d589327a VZ |
27247 | { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5 |
27248 | echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;} | |
a848cd7e SC |
27249 | wxUSE_LIBPNG=builtin |
27250 | fi | |
27251 | ||
27252 | if test "$wxUSE_MGL" != 1 ; then | |
27253 | if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then | |
d589327a VZ |
27254 | { echo "$as_me:$LINENO: checking for png.h > 0.90" >&5 |
27255 | echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6; } | |
a848cd7e | 27256 | if test "${ac_cv_header_png_h+set}" = set; then |
d589327a | 27257 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a848cd7e SC |
27258 | else |
27259 | if test "$cross_compiling" = yes; then | |
27260 | unset ac_cv_header_png_h | |
27261 | ||
27262 | else | |
27263 | cat >conftest.$ac_ext <<_ACEOF | |
27264 | /* confdefs.h. */ | |
27265 | _ACEOF | |
27266 | cat confdefs.h >>conftest.$ac_ext | |
27267 | cat >>conftest.$ac_ext <<_ACEOF | |
27268 | /* end confdefs.h. */ | |
27269 | ||
27270 | #include <png.h> | |
27271 | #include <stdio.h> | |
27272 | ||
27273 | int main() | |
27274 | { | |
27275 | FILE *f=fopen("conftestval", "w"); | |
27276 | if (!f) exit(1); | |
27277 | fprintf(f, "%s", | |
27278 | PNG_LIBPNG_VER > 90 ? "yes" : "no"); | |
27279 | exit(0); | |
27280 | } | |
27281 | ||
27282 | _ACEOF | |
27283 | rm -f conftest$ac_exeext | |
47964710 VS |
27284 | if { (ac_try="$ac_link" |
27285 | case "(($ac_try" in | |
27286 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
27287 | *) ac_try_echo=$ac_try;; | |
27288 | esac | |
d589327a | 27289 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 27290 | (eval "$ac_link") 2>&5 |
a848cd7e | 27291 | ac_status=$? |
d589327a | 27292 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
a848cd7e | 27293 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
47964710 VS |
27294 | { (case "(($ac_try" in |
27295 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
27296 | *) ac_try_echo=$ac_try;; | |
27297 | esac | |
d589327a | 27298 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 27299 | (eval "$ac_try") 2>&5 |
a848cd7e | 27300 | ac_status=$? |
d589327a | 27301 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
a848cd7e SC |
27302 | (exit $ac_status); }; }; then |
27303 | ac_cv_header_png_h=`cat conftestval` | |
27304 | else | |
d589327a VZ |
27305 | echo "$as_me: program exited with status $ac_status" >&5 |
27306 | echo "$as_me: failed program was:" >&5 | |
a848cd7e SC |
27307 | sed 's/^/| /' conftest.$ac_ext >&5 |
27308 | ||
27309 | ( exit $ac_status ) | |
27310 | ac_cv_header_png_h=no | |
27311 | fi | |
47964710 | 27312 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
27313 | fi |
27314 | ||
47964710 VS |
27315 | |
27316 | ||
a848cd7e | 27317 | fi |
d589327a VZ |
27318 | { echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5 |
27319 | echo "${ECHO_T}$ac_cv_header_png_h" >&6; } | |
27320 | { echo "$as_me:$LINENO: checking for png.h" >&5 | |
27321 | echo $ECHO_N "checking for png.h... $ECHO_C" >&6; } | |
a848cd7e | 27322 | if test "${ac_cv_header_png_h+set}" = set; then |
d589327a | 27323 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a848cd7e | 27324 | else |
6e7b8bcb | 27325 | cat >conftest.$ac_ext <<_ACEOF |
a848cd7e SC |
27326 | /* confdefs.h. */ |
27327 | _ACEOF | |
27328 | cat confdefs.h >>conftest.$ac_ext | |
27329 | cat >>conftest.$ac_ext <<_ACEOF | |
27330 | /* end confdefs.h. */ | |
6e7b8bcb PC |
27331 | |
27332 | ||
a848cd7e SC |
27333 | #include <png.h> |
27334 | _ACEOF | |
27335 | rm -f conftest.$ac_objext | |
47964710 VS |
27336 | if { (ac_try="$ac_compile" |
27337 | case "(($ac_try" in | |
27338 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
27339 | *) ac_try_echo=$ac_try;; | |
27340 | esac | |
d589327a | 27341 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 27342 | (eval "$ac_compile") 2>conftest.er1 |
a848cd7e | 27343 | ac_status=$? |
ac1cb8d3 VS |
27344 | grep -v '^ *+' conftest.er1 >conftest.err |
27345 | rm -f conftest.er1 | |
27346 | cat conftest.err >&5 | |
d589327a | 27347 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
27348 | (exit $ac_status); } && { |
27349 | test -z "$ac_c_werror_flag" || | |
27350 | test ! -s conftest.err | |
27351 | } && test -s conftest.$ac_objext; then | |
6e7b8bcb | 27352 | ac_cv_header_png_h=yes |
a848cd7e | 27353 | else |
d589327a | 27354 | echo "$as_me: failed program was:" >&5 |
a848cd7e SC |
27355 | sed 's/^/| /' conftest.$ac_ext >&5 |
27356 | ||
47964710 | 27357 | ac_cv_header_png_h=no |
a848cd7e | 27358 | fi |
47964710 VS |
27359 | |
27360 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
a848cd7e | 27361 | fi |
d589327a VZ |
27362 | { echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5 |
27363 | echo "${ECHO_T}$ac_cv_header_png_h" >&6; } | |
a848cd7e | 27364 | |
a848cd7e SC |
27365 | |
27366 | ||
27367 | if test "$ac_cv_header_png_h" = "yes"; then | |
4cdbd8f3 VZ |
27368 | { echo "$as_me:$LINENO: checking for png_sig_cmp in -lpng" >&5 |
27369 | echo $ECHO_N "checking for png_sig_cmp in -lpng... $ECHO_C" >&6; } | |
27370 | if test "${ac_cv_lib_png_png_sig_cmp+set}" = set; then | |
d589327a | 27371 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a848cd7e SC |
27372 | else |
27373 | ac_check_lib_save_LIBS=$LIBS | |
27374 | LIBS="-lpng -lz -lm $LIBS" | |
27375 | cat >conftest.$ac_ext <<_ACEOF | |
27376 | /* confdefs.h. */ | |
27377 | _ACEOF | |
27378 | cat confdefs.h >>conftest.$ac_ext | |
27379 | cat >>conftest.$ac_ext <<_ACEOF | |
27380 | /* end confdefs.h. */ | |
27381 | ||
47964710 VS |
27382 | /* Override any GCC internal prototype to avoid an error. |
27383 | Use char because int might match the return type of a GCC | |
27384 | builtin and then its argument prototype would still apply. */ | |
a848cd7e SC |
27385 | #ifdef __cplusplus |
27386 | extern "C" | |
27387 | #endif | |
4cdbd8f3 | 27388 | char png_sig_cmp (); |
a848cd7e SC |
27389 | int |
27390 | main () | |
27391 | { | |
4cdbd8f3 | 27392 | return png_sig_cmp (); |
a848cd7e SC |
27393 | ; |
27394 | return 0; | |
27395 | } | |
27396 | _ACEOF | |
27397 | rm -f conftest.$ac_objext conftest$ac_exeext | |
47964710 VS |
27398 | if { (ac_try="$ac_link" |
27399 | case "(($ac_try" in | |
27400 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
27401 | *) ac_try_echo=$ac_try;; | |
27402 | esac | |
d589327a | 27403 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 27404 | (eval "$ac_link") 2>conftest.er1 |
a848cd7e | 27405 | ac_status=$? |
ac1cb8d3 VS |
27406 | grep -v '^ *+' conftest.er1 >conftest.err |
27407 | rm -f conftest.er1 | |
27408 | cat conftest.err >&5 | |
d589327a | 27409 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
27410 | (exit $ac_status); } && { |
27411 | test -z "$ac_c_werror_flag" || | |
27412 | test ! -s conftest.err | |
d589327a VZ |
27413 | } && test -s conftest$ac_exeext && |
27414 | $as_test_x conftest$ac_exeext; then | |
4cdbd8f3 | 27415 | ac_cv_lib_png_png_sig_cmp=yes |
a848cd7e | 27416 | else |
d589327a | 27417 | echo "$as_me: failed program was:" >&5 |
a848cd7e SC |
27418 | sed 's/^/| /' conftest.$ac_ext >&5 |
27419 | ||
4cdbd8f3 | 27420 | ac_cv_lib_png_png_sig_cmp=no |
a848cd7e | 27421 | fi |
47964710 VS |
27422 | |
27423 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
ac1cb8d3 | 27424 | conftest$ac_exeext conftest.$ac_ext |
a848cd7e SC |
27425 | LIBS=$ac_check_lib_save_LIBS |
27426 | fi | |
4cdbd8f3 VZ |
27427 | { echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_sig_cmp" >&5 |
27428 | echo "${ECHO_T}$ac_cv_lib_png_png_sig_cmp" >&6; } | |
27429 | if test $ac_cv_lib_png_png_sig_cmp = yes; then | |
a848cd7e SC |
27430 | PNG_LINK=" -lpng -lz" |
27431 | fi | |
27432 | ||
27433 | fi | |
27434 | ||
27435 | if test "x$PNG_LINK" = "x" ; then | |
27436 | if test "$wxUSE_LIBPNG" = "sys" ; then | |
d589327a VZ |
27437 | { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5 |
27438 | echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;} | |
a848cd7e SC |
27439 | { (exit 1); exit 1; }; } |
27440 | else | |
d589327a VZ |
27441 | { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5 |
27442 | echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;} | |
a848cd7e SC |
27443 | wxUSE_LIBPNG=builtin |
27444 | fi | |
27445 | else | |
27446 | wxUSE_LIBPNG=sys | |
27447 | fi | |
27448 | fi | |
27449 | fi | |
a848cd7e SC |
27450 | fi |
27451 | ||
27452 | ||
27453 | JPEG_LINK= | |
27454 | if test "$wxUSE_LIBJPEG" != "no" ; then | |
27455 | cat >>confdefs.h <<\_ACEOF | |
27456 | #define wxUSE_LIBJPEG 1 | |
27457 | _ACEOF | |
27458 | ||
27459 | ||
27460 | if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then | |
d589327a VZ |
27461 | { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5 |
27462 | echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;} | |
a848cd7e SC |
27463 | wxUSE_LIBJPEG=sys |
27464 | fi | |
27465 | ||
27466 | if test "$wxUSE_MGL" != 1 ; then | |
27467 | if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then | |
d589327a VZ |
27468 | { echo "$as_me:$LINENO: checking for jpeglib.h" >&5 |
27469 | echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6; } | |
a848cd7e | 27470 | if test "${ac_cv_header_jpeglib_h+set}" = set; then |
d589327a | 27471 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a848cd7e SC |
27472 | else |
27473 | cat >conftest.$ac_ext <<_ACEOF | |
27474 | /* confdefs.h. */ | |
27475 | _ACEOF | |
27476 | cat confdefs.h >>conftest.$ac_ext | |
27477 | cat >>conftest.$ac_ext <<_ACEOF | |
27478 | /* end confdefs.h. */ | |
27479 | ||
27480 | #undef HAVE_STDLIB_H | |
27481 | #include <stdio.h> | |
27482 | #include <jpeglib.h> | |
27483 | ||
27484 | int | |
27485 | main () | |
27486 | { | |
27487 | ||
27488 | ||
27489 | ; | |
27490 | return 0; | |
27491 | } | |
27492 | _ACEOF | |
27493 | rm -f conftest.$ac_objext | |
47964710 VS |
27494 | if { (ac_try="$ac_compile" |
27495 | case "(($ac_try" in | |
27496 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
27497 | *) ac_try_echo=$ac_try;; | |
27498 | esac | |
d589327a | 27499 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 27500 | (eval "$ac_compile") 2>conftest.er1 |
a848cd7e | 27501 | ac_status=$? |
ac1cb8d3 VS |
27502 | grep -v '^ *+' conftest.er1 >conftest.err |
27503 | rm -f conftest.er1 | |
27504 | cat conftest.err >&5 | |
d589327a | 27505 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
27506 | (exit $ac_status); } && { |
27507 | test -z "$ac_c_werror_flag" || | |
27508 | test ! -s conftest.err | |
27509 | } && test -s conftest.$ac_objext; then | |
a848cd7e SC |
27510 | ac_cv_header_jpeglib_h=yes |
27511 | else | |
d589327a | 27512 | echo "$as_me: failed program was:" >&5 |
a848cd7e SC |
27513 | sed 's/^/| /' conftest.$ac_ext >&5 |
27514 | ||
47964710 | 27515 | ac_cv_header_jpeglib_h=no |
a848cd7e SC |
27516 | |
27517 | fi | |
47964710 VS |
27518 | |
27519 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
a848cd7e SC |
27520 | |
27521 | fi | |
27522 | ||
d589327a VZ |
27523 | { echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5 |
27524 | echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6; } | |
a848cd7e SC |
27525 | |
27526 | if test "$ac_cv_header_jpeglib_h" = "yes"; then | |
d589327a VZ |
27527 | { echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5 |
27528 | echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6; } | |
a848cd7e | 27529 | if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then |
d589327a | 27530 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a848cd7e SC |
27531 | else |
27532 | ac_check_lib_save_LIBS=$LIBS | |
27533 | LIBS="-ljpeg $LIBS" | |
27534 | cat >conftest.$ac_ext <<_ACEOF | |
27535 | /* confdefs.h. */ | |
27536 | _ACEOF | |
27537 | cat confdefs.h >>conftest.$ac_ext | |
27538 | cat >>conftest.$ac_ext <<_ACEOF | |
27539 | /* end confdefs.h. */ | |
27540 | ||
47964710 VS |
27541 | /* Override any GCC internal prototype to avoid an error. |
27542 | Use char because int might match the return type of a GCC | |
27543 | builtin and then its argument prototype would still apply. */ | |
a848cd7e SC |
27544 | #ifdef __cplusplus |
27545 | extern "C" | |
27546 | #endif | |
a848cd7e SC |
27547 | char jpeg_read_header (); |
27548 | int | |
27549 | main () | |
27550 | { | |
47964710 | 27551 | return jpeg_read_header (); |
a848cd7e SC |
27552 | ; |
27553 | return 0; | |
27554 | } | |
27555 | _ACEOF | |
27556 | rm -f conftest.$ac_objext conftest$ac_exeext | |
47964710 VS |
27557 | if { (ac_try="$ac_link" |
27558 | case "(($ac_try" in | |
27559 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
27560 | *) ac_try_echo=$ac_try;; | |
27561 | esac | |
d589327a | 27562 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 27563 | (eval "$ac_link") 2>conftest.er1 |
a848cd7e | 27564 | ac_status=$? |
ac1cb8d3 VS |
27565 | grep -v '^ *+' conftest.er1 >conftest.err |
27566 | rm -f conftest.er1 | |
27567 | cat conftest.err >&5 | |
d589327a | 27568 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
27569 | (exit $ac_status); } && { |
27570 | test -z "$ac_c_werror_flag" || | |
27571 | test ! -s conftest.err | |
d589327a VZ |
27572 | } && test -s conftest$ac_exeext && |
27573 | $as_test_x conftest$ac_exeext; then | |
a848cd7e SC |
27574 | ac_cv_lib_jpeg_jpeg_read_header=yes |
27575 | else | |
d589327a | 27576 | echo "$as_me: failed program was:" >&5 |
a848cd7e SC |
27577 | sed 's/^/| /' conftest.$ac_ext >&5 |
27578 | ||
47964710 | 27579 | ac_cv_lib_jpeg_jpeg_read_header=no |
a848cd7e | 27580 | fi |
47964710 VS |
27581 | |
27582 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
ac1cb8d3 | 27583 | conftest$ac_exeext conftest.$ac_ext |
a848cd7e SC |
27584 | LIBS=$ac_check_lib_save_LIBS |
27585 | fi | |
d589327a VZ |
27586 | { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5 |
27587 | echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6; } | |
27588 | if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then | |
a848cd7e SC |
27589 | JPEG_LINK=" -ljpeg" |
27590 | fi | |
27591 | ||
27592 | fi | |
27593 | ||
27594 | if test "x$JPEG_LINK" = "x" ; then | |
27595 | if test "$wxUSE_LIBJPEG" = "sys" ; then | |
d589327a VZ |
27596 | { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5 |
27597 | echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;} | |
a848cd7e SC |
27598 | { (exit 1); exit 1; }; } |
27599 | else | |
d589327a VZ |
27600 | { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5 |
27601 | echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;} | |
a848cd7e SC |
27602 | wxUSE_LIBJPEG=builtin |
27603 | fi | |
27604 | else | |
27605 | wxUSE_LIBJPEG=sys | |
90eaf433 MW |
27606 | |
27607 | if test "$wxUSE_MSW" = 1; then | |
d589327a VZ |
27608 | { echo "$as_me:$LINENO: checking for boolean" >&5 |
27609 | echo $ECHO_N "checking for boolean... $ECHO_C" >&6; } | |
90eaf433 | 27610 | if test "${ac_cv_type_boolean+set}" = set; then |
d589327a | 27611 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
90eaf433 | 27612 | else |
d589327a | 27613 | cat >conftest.$ac_ext <<_ACEOF |
90eaf433 MW |
27614 | /* confdefs.h. */ |
27615 | _ACEOF | |
27616 | cat confdefs.h >>conftest.$ac_ext | |
27617 | cat >>conftest.$ac_ext <<_ACEOF | |
27618 | /* end confdefs.h. */ | |
27619 | #include <windows.h> | |
27620 | ||
d589327a | 27621 | typedef boolean ac__type_new_; |
90eaf433 MW |
27622 | int |
27623 | main () | |
27624 | { | |
d589327a VZ |
27625 | if ((ac__type_new_ *) 0) |
27626 | return 0; | |
27627 | if (sizeof (ac__type_new_)) | |
27628 | return 0; | |
90eaf433 MW |
27629 | ; |
27630 | return 0; | |
27631 | } | |
27632 | _ACEOF | |
27633 | rm -f conftest.$ac_objext | |
47964710 VS |
27634 | if { (ac_try="$ac_compile" |
27635 | case "(($ac_try" in | |
27636 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
27637 | *) ac_try_echo=$ac_try;; | |
27638 | esac | |
d589327a | 27639 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 27640 | (eval "$ac_compile") 2>conftest.er1 |
90eaf433 MW |
27641 | ac_status=$? |
27642 | grep -v '^ *+' conftest.er1 >conftest.err | |
27643 | rm -f conftest.er1 | |
27644 | cat conftest.err >&5 | |
d589327a | 27645 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
27646 | (exit $ac_status); } && { |
27647 | test -z "$ac_c_werror_flag" || | |
27648 | test ! -s conftest.err | |
27649 | } && test -s conftest.$ac_objext; then | |
d589327a VZ |
27650 | ac_cv_type_boolean=yes |
27651 | else | |
27652 | echo "$as_me: failed program was:" >&5 | |
27653 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27654 | ||
27655 | ac_cv_type_boolean=no | |
27656 | fi | |
27657 | ||
27658 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
27659 | fi | |
27660 | { echo "$as_me:$LINENO: result: $ac_cv_type_boolean" >&5 | |
27661 | echo "${ECHO_T}$ac_cv_type_boolean" >&6; } | |
27662 | if test $ac_cv_type_boolean = yes; then | |
27663 | ||
27664 | cat >>confdefs.h <<_ACEOF | |
27665 | #define HAVE_BOOLEAN 1 | |
27666 | _ACEOF | |
27667 | ||
27668 | ||
27669 | { echo "$as_me:$LINENO: checking for boolean" >&5 | |
27670 | echo $ECHO_N "checking for boolean... $ECHO_C" >&6; } | |
27671 | if test "${ac_cv_type_boolean+set}" = set; then | |
27672 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27673 | else | |
90eaf433 MW |
27674 | cat >conftest.$ac_ext <<_ACEOF |
27675 | /* confdefs.h. */ | |
27676 | _ACEOF | |
27677 | cat confdefs.h >>conftest.$ac_ext | |
27678 | cat >>conftest.$ac_ext <<_ACEOF | |
27679 | /* end confdefs.h. */ | |
27680 | ||
d589327a VZ |
27681 | #undef HAVE_BOOLEAN |
27682 | #include <stdio.h> | |
27683 | #include <jpeglib.h> | |
27684 | ||
27685 | ||
27686 | typedef boolean ac__type_new_; | |
90eaf433 MW |
27687 | int |
27688 | main () | |
27689 | { | |
d589327a VZ |
27690 | if ((ac__type_new_ *) 0) |
27691 | return 0; | |
27692 | if (sizeof (ac__type_new_)) | |
27693 | return 0; | |
90eaf433 MW |
27694 | ; |
27695 | return 0; | |
27696 | } | |
27697 | _ACEOF | |
27698 | rm -f conftest.$ac_objext | |
47964710 VS |
27699 | if { (ac_try="$ac_compile" |
27700 | case "(($ac_try" in | |
27701 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
27702 | *) ac_try_echo=$ac_try;; | |
27703 | esac | |
d589327a | 27704 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 27705 | (eval "$ac_compile") 2>conftest.er1 |
90eaf433 MW |
27706 | ac_status=$? |
27707 | grep -v '^ *+' conftest.er1 >conftest.err | |
27708 | rm -f conftest.er1 | |
27709 | cat conftest.err >&5 | |
d589327a | 27710 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
27711 | (exit $ac_status); } && { |
27712 | test -z "$ac_c_werror_flag" || | |
27713 | test ! -s conftest.err | |
27714 | } && test -s conftest.$ac_objext; then | |
d589327a | 27715 | ac_cv_type_boolean=yes |
aa113d87 | 27716 | else |
d589327a | 27717 | echo "$as_me: failed program was:" >&5 |
aa113d87 FM |
27718 | sed 's/^/| /' conftest.$ac_ext >&5 |
27719 | ||
d589327a | 27720 | ac_cv_type_boolean=no |
90eaf433 | 27721 | fi |
90eaf433 | 27722 | |
aa113d87 FM |
27723 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
27724 | fi | |
d589327a VZ |
27725 | { echo "$as_me:$LINENO: result: $ac_cv_type_boolean" >&5 |
27726 | echo "${ECHO_T}$ac_cv_type_boolean" >&6; } | |
aa113d87 | 27727 | |
d589327a | 27728 | # The cast to long int works around a bug in the HP C Compiler |
47964710 VS |
27729 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
27730 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
27731 | # This bug is HP SR number 8606223364. | |
d589327a VZ |
27732 | { echo "$as_me:$LINENO: checking size of boolean" >&5 |
27733 | echo $ECHO_N "checking size of boolean... $ECHO_C" >&6; } | |
90eaf433 | 27734 | if test "${ac_cv_sizeof_boolean+set}" = set; then |
d589327a | 27735 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
90eaf433 | 27736 | else |
90eaf433 MW |
27737 | if test "$cross_compiling" = yes; then |
27738 | # Depending upon the size, compute the lo and hi bounds. | |
27739 | cat >conftest.$ac_ext <<_ACEOF | |
27740 | /* confdefs.h. */ | |
27741 | _ACEOF | |
27742 | cat confdefs.h >>conftest.$ac_ext | |
27743 | cat >>conftest.$ac_ext <<_ACEOF | |
27744 | /* end confdefs.h. */ | |
27745 | ||
27746 | #undef HAVE_BOOLEAN | |
27747 | #include <stdio.h> | |
27748 | #include <jpeglib.h> | |
27749 | ||
27750 | ||
d589327a | 27751 | typedef boolean ac__type_sizeof_; |
90eaf433 MW |
27752 | int |
27753 | main () | |
27754 | { | |
d589327a | 27755 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; |
90eaf433 MW |
27756 | test_array [0] = 0 |
27757 | ||
27758 | ; | |
27759 | return 0; | |
27760 | } | |
27761 | _ACEOF | |
27762 | rm -f conftest.$ac_objext | |
47964710 VS |
27763 | if { (ac_try="$ac_compile" |
27764 | case "(($ac_try" in | |
27765 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
27766 | *) ac_try_echo=$ac_try;; | |
27767 | esac | |
d589327a | 27768 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 27769 | (eval "$ac_compile") 2>conftest.er1 |
90eaf433 MW |
27770 | ac_status=$? |
27771 | grep -v '^ *+' conftest.er1 >conftest.err | |
27772 | rm -f conftest.er1 | |
27773 | cat conftest.err >&5 | |
d589327a | 27774 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
27775 | (exit $ac_status); } && { |
27776 | test -z "$ac_c_werror_flag" || | |
27777 | test ! -s conftest.err | |
27778 | } && test -s conftest.$ac_objext; then | |
90eaf433 MW |
27779 | ac_lo=0 ac_mid=0 |
27780 | while :; do | |
27781 | cat >conftest.$ac_ext <<_ACEOF | |
27782 | /* confdefs.h. */ | |
27783 | _ACEOF | |
27784 | cat confdefs.h >>conftest.$ac_ext | |
27785 | cat >>conftest.$ac_ext <<_ACEOF | |
27786 | /* end confdefs.h. */ | |
27787 | ||
27788 | #undef HAVE_BOOLEAN | |
27789 | #include <stdio.h> | |
27790 | #include <jpeglib.h> | |
27791 | ||
27792 | ||
d589327a | 27793 | typedef boolean ac__type_sizeof_; |
90eaf433 MW |
27794 | int |
27795 | main () | |
27796 | { | |
d589327a | 27797 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
90eaf433 MW |
27798 | test_array [0] = 0 |
27799 | ||
27800 | ; | |
27801 | return 0; | |
27802 | } | |
27803 | _ACEOF | |
27804 | rm -f conftest.$ac_objext | |
47964710 VS |
27805 | if { (ac_try="$ac_compile" |
27806 | case "(($ac_try" in | |
27807 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
27808 | *) ac_try_echo=$ac_try;; | |
27809 | esac | |
d589327a | 27810 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 27811 | (eval "$ac_compile") 2>conftest.er1 |
90eaf433 MW |
27812 | ac_status=$? |
27813 | grep -v '^ *+' conftest.er1 >conftest.err | |
27814 | rm -f conftest.er1 | |
27815 | cat conftest.err >&5 | |
d589327a | 27816 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
27817 | (exit $ac_status); } && { |
27818 | test -z "$ac_c_werror_flag" || | |
27819 | test ! -s conftest.err | |
27820 | } && test -s conftest.$ac_objext; then | |
90eaf433 MW |
27821 | ac_hi=$ac_mid; break |
27822 | else | |
d589327a | 27823 | echo "$as_me: failed program was:" >&5 |
90eaf433 MW |
27824 | sed 's/^/| /' conftest.$ac_ext >&5 |
27825 | ||
47964710 VS |
27826 | ac_lo=`expr $ac_mid + 1` |
27827 | if test $ac_lo -le $ac_mid; then | |
27828 | ac_lo= ac_hi= | |
27829 | break | |
27830 | fi | |
27831 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
90eaf433 | 27832 | fi |
47964710 VS |
27833 | |
27834 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
90eaf433 MW |
27835 | done |
27836 | else | |
d589327a | 27837 | echo "$as_me: failed program was:" >&5 |
90eaf433 MW |
27838 | sed 's/^/| /' conftest.$ac_ext >&5 |
27839 | ||
47964710 | 27840 | cat >conftest.$ac_ext <<_ACEOF |
90eaf433 MW |
27841 | /* confdefs.h. */ |
27842 | _ACEOF | |
27843 | cat confdefs.h >>conftest.$ac_ext | |
27844 | cat >>conftest.$ac_ext <<_ACEOF | |
27845 | /* end confdefs.h. */ | |
27846 | ||
27847 | #undef HAVE_BOOLEAN | |
27848 | #include <stdio.h> | |
27849 | #include <jpeglib.h> | |
27850 | ||
27851 | ||
d589327a | 27852 | typedef boolean ac__type_sizeof_; |
90eaf433 MW |
27853 | int |
27854 | main () | |
27855 | { | |
d589327a | 27856 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; |
90eaf433 MW |
27857 | test_array [0] = 0 |
27858 | ||
27859 | ; | |
27860 | return 0; | |
27861 | } | |
27862 | _ACEOF | |
27863 | rm -f conftest.$ac_objext | |
47964710 VS |
27864 | if { (ac_try="$ac_compile" |
27865 | case "(($ac_try" in | |
27866 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
27867 | *) ac_try_echo=$ac_try;; | |
27868 | esac | |
d589327a | 27869 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 27870 | (eval "$ac_compile") 2>conftest.er1 |
90eaf433 MW |
27871 | ac_status=$? |
27872 | grep -v '^ *+' conftest.er1 >conftest.err | |
27873 | rm -f conftest.er1 | |
27874 | cat conftest.err >&5 | |
d589327a | 27875 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
27876 | (exit $ac_status); } && { |
27877 | test -z "$ac_c_werror_flag" || | |
27878 | test ! -s conftest.err | |
27879 | } && test -s conftest.$ac_objext; then | |
90eaf433 MW |
27880 | ac_hi=-1 ac_mid=-1 |
27881 | while :; do | |
27882 | cat >conftest.$ac_ext <<_ACEOF | |
27883 | /* confdefs.h. */ | |
27884 | _ACEOF | |
27885 | cat confdefs.h >>conftest.$ac_ext | |
27886 | cat >>conftest.$ac_ext <<_ACEOF | |
27887 | /* end confdefs.h. */ | |
27888 | ||
27889 | #undef HAVE_BOOLEAN | |
27890 | #include <stdio.h> | |
27891 | #include <jpeglib.h> | |
27892 | ||
27893 | ||
d589327a | 27894 | typedef boolean ac__type_sizeof_; |
90eaf433 MW |
27895 | int |
27896 | main () | |
27897 | { | |
d589327a | 27898 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; |
90eaf433 MW |
27899 | test_array [0] = 0 |
27900 | ||
27901 | ; | |
27902 | return 0; | |
27903 | } | |
27904 | _ACEOF | |
27905 | rm -f conftest.$ac_objext | |
47964710 VS |
27906 | if { (ac_try="$ac_compile" |
27907 | case "(($ac_try" in | |
27908 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
27909 | *) ac_try_echo=$ac_try;; | |
27910 | esac | |
d589327a | 27911 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 27912 | (eval "$ac_compile") 2>conftest.er1 |
90eaf433 MW |
27913 | ac_status=$? |
27914 | grep -v '^ *+' conftest.er1 >conftest.err | |
27915 | rm -f conftest.er1 | |
27916 | cat conftest.err >&5 | |
d589327a | 27917 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
27918 | (exit $ac_status); } && { |
27919 | test -z "$ac_c_werror_flag" || | |
27920 | test ! -s conftest.err | |
27921 | } && test -s conftest.$ac_objext; then | |
90eaf433 MW |
27922 | ac_lo=$ac_mid; break |
27923 | else | |
d589327a | 27924 | echo "$as_me: failed program was:" >&5 |
90eaf433 MW |
27925 | sed 's/^/| /' conftest.$ac_ext >&5 |
27926 | ||
47964710 VS |
27927 | ac_hi=`expr '(' $ac_mid ')' - 1` |
27928 | if test $ac_mid -le $ac_hi; then | |
27929 | ac_lo= ac_hi= | |
27930 | break | |
27931 | fi | |
27932 | ac_mid=`expr 2 '*' $ac_mid` | |
90eaf433 | 27933 | fi |
47964710 VS |
27934 | |
27935 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
90eaf433 MW |
27936 | done |
27937 | else | |
d589327a | 27938 | echo "$as_me: failed program was:" >&5 |
90eaf433 MW |
27939 | sed 's/^/| /' conftest.$ac_ext >&5 |
27940 | ||
47964710 | 27941 | ac_lo= ac_hi= |
90eaf433 | 27942 | fi |
47964710 VS |
27943 | |
27944 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
90eaf433 | 27945 | fi |
47964710 VS |
27946 | |
27947 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
90eaf433 MW |
27948 | # Binary search between lo and hi bounds. |
27949 | while test "x$ac_lo" != "x$ac_hi"; do | |
27950 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
27951 | cat >conftest.$ac_ext <<_ACEOF | |
27952 | /* confdefs.h. */ | |
27953 | _ACEOF | |
27954 | cat confdefs.h >>conftest.$ac_ext | |
27955 | cat >>conftest.$ac_ext <<_ACEOF | |
27956 | /* end confdefs.h. */ | |
27957 | ||
27958 | #undef HAVE_BOOLEAN | |
27959 | #include <stdio.h> | |
27960 | #include <jpeglib.h> | |
27961 | ||
27962 | ||
d589327a | 27963 | typedef boolean ac__type_sizeof_; |
90eaf433 MW |
27964 | int |
27965 | main () | |
27966 | { | |
d589327a | 27967 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
90eaf433 MW |
27968 | test_array [0] = 0 |
27969 | ||
27970 | ; | |
27971 | return 0; | |
27972 | } | |
27973 | _ACEOF | |
27974 | rm -f conftest.$ac_objext | |
47964710 VS |
27975 | if { (ac_try="$ac_compile" |
27976 | case "(($ac_try" in | |
27977 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
27978 | *) ac_try_echo=$ac_try;; | |
27979 | esac | |
d589327a | 27980 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 27981 | (eval "$ac_compile") 2>conftest.er1 |
90eaf433 MW |
27982 | ac_status=$? |
27983 | grep -v '^ *+' conftest.er1 >conftest.err | |
27984 | rm -f conftest.er1 | |
27985 | cat conftest.err >&5 | |
d589327a | 27986 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
27987 | (exit $ac_status); } && { |
27988 | test -z "$ac_c_werror_flag" || | |
27989 | test ! -s conftest.err | |
27990 | } && test -s conftest.$ac_objext; then | |
90eaf433 MW |
27991 | ac_hi=$ac_mid |
27992 | else | |
d589327a | 27993 | echo "$as_me: failed program was:" >&5 |
90eaf433 MW |
27994 | sed 's/^/| /' conftest.$ac_ext >&5 |
27995 | ||
47964710 | 27996 | ac_lo=`expr '(' $ac_mid ')' + 1` |
90eaf433 | 27997 | fi |
47964710 VS |
27998 | |
27999 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
90eaf433 MW |
28000 | done |
28001 | case $ac_lo in | |
28002 | ?*) ac_cv_sizeof_boolean=$ac_lo;; | |
47964710 | 28003 | '') if test "$ac_cv_type_boolean" = yes; then |
d589327a | 28004 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (boolean) |
90eaf433 | 28005 | See \`config.log' for more details." >&5 |
d589327a | 28006 | echo "$as_me: error: cannot compute sizeof (boolean) |
90eaf433 | 28007 | See \`config.log' for more details." >&2;} |
d589327a | 28008 | { (exit 77); exit 77; }; } |
47964710 VS |
28009 | else |
28010 | ac_cv_sizeof_boolean=0 | |
28011 | fi ;; | |
90eaf433 | 28012 | esac |
90eaf433 MW |
28013 | else |
28014 | cat >conftest.$ac_ext <<_ACEOF | |
28015 | /* confdefs.h. */ | |
28016 | _ACEOF | |
28017 | cat confdefs.h >>conftest.$ac_ext | |
28018 | cat >>conftest.$ac_ext <<_ACEOF | |
28019 | /* end confdefs.h. */ | |
28020 | ||
28021 | #undef HAVE_BOOLEAN | |
28022 | #include <stdio.h> | |
28023 | #include <jpeglib.h> | |
28024 | ||
28025 | ||
d589327a VZ |
28026 | typedef boolean ac__type_sizeof_; |
28027 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } | |
28028 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } | |
90eaf433 MW |
28029 | #include <stdio.h> |
28030 | #include <stdlib.h> | |
28031 | int | |
28032 | main () | |
28033 | { | |
28034 | ||
28035 | FILE *f = fopen ("conftest.val", "w"); | |
28036 | if (! f) | |
47964710 | 28037 | return 1; |
d589327a | 28038 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
90eaf433 | 28039 | { |
47964710 | 28040 | long int i = longval (); |
d589327a | 28041 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
47964710 | 28042 | return 1; |
d589327a | 28043 | fprintf (f, "%ld\n", i); |
90eaf433 MW |
28044 | } |
28045 | else | |
28046 | { | |
47964710 | 28047 | unsigned long int i = ulongval (); |
d589327a | 28048 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
47964710 | 28049 | return 1; |
d589327a | 28050 | fprintf (f, "%lu\n", i); |
90eaf433 | 28051 | } |
47964710 | 28052 | return ferror (f) || fclose (f) != 0; |
90eaf433 MW |
28053 | |
28054 | ; | |
28055 | return 0; | |
28056 | } | |
28057 | _ACEOF | |
28058 | rm -f conftest$ac_exeext | |
47964710 VS |
28059 | if { (ac_try="$ac_link" |
28060 | case "(($ac_try" in | |
28061 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
28062 | *) ac_try_echo=$ac_try;; | |
28063 | esac | |
d589327a | 28064 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 28065 | (eval "$ac_link") 2>&5 |
90eaf433 | 28066 | ac_status=$? |
d589327a | 28067 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
90eaf433 | 28068 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
47964710 VS |
28069 | { (case "(($ac_try" in |
28070 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
28071 | *) ac_try_echo=$ac_try;; | |
28072 | esac | |
d589327a | 28073 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 28074 | (eval "$ac_try") 2>&5 |
90eaf433 | 28075 | ac_status=$? |
d589327a | 28076 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
90eaf433 MW |
28077 | (exit $ac_status); }; }; then |
28078 | ac_cv_sizeof_boolean=`cat conftest.val` | |
28079 | else | |
d589327a VZ |
28080 | echo "$as_me: program exited with status $ac_status" >&5 |
28081 | echo "$as_me: failed program was:" >&5 | |
90eaf433 MW |
28082 | sed 's/^/| /' conftest.$ac_ext >&5 |
28083 | ||
28084 | ( exit $ac_status ) | |
47964710 | 28085 | if test "$ac_cv_type_boolean" = yes; then |
d589327a | 28086 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (boolean) |
90eaf433 | 28087 | See \`config.log' for more details." >&5 |
d589327a | 28088 | echo "$as_me: error: cannot compute sizeof (boolean) |
90eaf433 | 28089 | See \`config.log' for more details." >&2;} |
d589327a | 28090 | { (exit 77); exit 77; }; } |
47964710 VS |
28091 | else |
28092 | ac_cv_sizeof_boolean=0 | |
28093 | fi | |
90eaf433 | 28094 | fi |
47964710 | 28095 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
90eaf433 MW |
28096 | fi |
28097 | rm -f conftest.val | |
90eaf433 | 28098 | fi |
d589327a VZ |
28099 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_boolean" >&5 |
28100 | echo "${ECHO_T}$ac_cv_sizeof_boolean" >&6; } | |
47964710 VS |
28101 | |
28102 | ||
28103 | ||
90eaf433 MW |
28104 | cat >>confdefs.h <<_ACEOF |
28105 | #define SIZEOF_BOOLEAN $ac_cv_sizeof_boolean | |
28106 | _ACEOF | |
28107 | ||
28108 | ||
28109 | cat >>confdefs.h <<_ACEOF | |
28110 | #define wxHACK_BOOLEAN wxInt`expr 8 \* $ac_cv_sizeof_boolean` | |
28111 | _ACEOF | |
28112 | ||
28113 | ||
28114 | fi | |
28115 | ||
28116 | fi | |
a848cd7e SC |
28117 | fi |
28118 | fi | |
28119 | fi | |
2956d9e1 VZ |
28120 | fi |
28121 | ||
28122 | ||
28123 | TIFF_LINK= | |
28124 | TIFF_PREREQ_LINKS=-lm | |
28125 | if test "$wxUSE_LIBTIFF" != "no" ; then | |
28126 | cat >>confdefs.h <<\_ACEOF | |
28127 | #define wxUSE_LIBTIFF 1 | |
28128 | _ACEOF | |
28129 | ||
28130 | ||
28131 | if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then | |
28132 | if test "$wxUSE_LIBJPEG" = "sys"; then | |
28133 | TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK" | |
28134 | fi | |
28135 | if test "$wxUSE_ZLIB" = "sys"; then | |
28136 | TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK" | |
28137 | fi | |
d589327a VZ |
28138 | { echo "$as_me:$LINENO: checking for tiffio.h" >&5 |
28139 | echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; } | |
2956d9e1 | 28140 | if test "${ac_cv_header_tiffio_h+set}" = set; then |
d589327a | 28141 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2956d9e1 VZ |
28142 | else |
28143 | cat >conftest.$ac_ext <<_ACEOF | |
28144 | /* confdefs.h. */ | |
28145 | _ACEOF | |
28146 | cat confdefs.h >>conftest.$ac_ext | |
28147 | cat >>conftest.$ac_ext <<_ACEOF | |
28148 | /* end confdefs.h. */ | |
28149 | ||
28150 | ||
28151 | ||
28152 | #include <tiffio.h> | |
28153 | _ACEOF | |
28154 | rm -f conftest.$ac_objext | |
28155 | if { (ac_try="$ac_compile" | |
28156 | case "(($ac_try" in | |
28157 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
28158 | *) ac_try_echo=$ac_try;; | |
28159 | esac | |
d589327a | 28160 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
2956d9e1 VZ |
28161 | (eval "$ac_compile") 2>conftest.er1 |
28162 | ac_status=$? | |
28163 | grep -v '^ *+' conftest.er1 >conftest.err | |
28164 | rm -f conftest.er1 | |
28165 | cat conftest.err >&5 | |
d589327a | 28166 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2956d9e1 VZ |
28167 | (exit $ac_status); } && { |
28168 | test -z "$ac_c_werror_flag" || | |
28169 | test ! -s conftest.err | |
28170 | } && test -s conftest.$ac_objext; then | |
28171 | ac_cv_header_tiffio_h=yes | |
28172 | else | |
d589327a | 28173 | echo "$as_me: failed program was:" >&5 |
2956d9e1 VZ |
28174 | sed 's/^/| /' conftest.$ac_ext >&5 |
28175 | ||
28176 | ac_cv_header_tiffio_h=no | |
28177 | fi | |
28178 | ||
28179 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
28180 | fi | |
d589327a VZ |
28181 | { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5 |
28182 | echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; } | |
28183 | if test $ac_cv_header_tiffio_h = yes; then | |
2956d9e1 | 28184 | |
d589327a VZ |
28185 | { echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5 |
28186 | echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6; } | |
2956d9e1 | 28187 | if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then |
d589327a | 28188 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2956d9e1 VZ |
28189 | else |
28190 | ac_check_lib_save_LIBS=$LIBS | |
28191 | LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS" | |
28192 | cat >conftest.$ac_ext <<_ACEOF | |
28193 | /* confdefs.h. */ | |
28194 | _ACEOF | |
28195 | cat confdefs.h >>conftest.$ac_ext | |
28196 | cat >>conftest.$ac_ext <<_ACEOF | |
28197 | /* end confdefs.h. */ | |
28198 | ||
28199 | /* Override any GCC internal prototype to avoid an error. | |
28200 | Use char because int might match the return type of a GCC | |
28201 | builtin and then its argument prototype would still apply. */ | |
28202 | #ifdef __cplusplus | |
28203 | extern "C" | |
28204 | #endif | |
28205 | char TIFFError (); | |
28206 | int | |
28207 | main () | |
28208 | { | |
28209 | return TIFFError (); | |
28210 | ; | |
28211 | return 0; | |
28212 | } | |
28213 | _ACEOF | |
28214 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28215 | if { (ac_try="$ac_link" | |
28216 | case "(($ac_try" in | |
28217 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
28218 | *) ac_try_echo=$ac_try;; | |
28219 | esac | |
d589327a | 28220 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
2956d9e1 VZ |
28221 | (eval "$ac_link") 2>conftest.er1 |
28222 | ac_status=$? | |
28223 | grep -v '^ *+' conftest.er1 >conftest.err | |
28224 | rm -f conftest.er1 | |
28225 | cat conftest.err >&5 | |
d589327a | 28226 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2956d9e1 VZ |
28227 | (exit $ac_status); } && { |
28228 | test -z "$ac_c_werror_flag" || | |
28229 | test ! -s conftest.err | |
d589327a VZ |
28230 | } && test -s conftest$ac_exeext && |
28231 | $as_test_x conftest$ac_exeext; then | |
2956d9e1 | 28232 | ac_cv_lib_tiff_TIFFError=yes |
bef5e9e5 | 28233 | else |
d589327a | 28234 | echo "$as_me: failed program was:" >&5 |
2956d9e1 VZ |
28235 | sed 's/^/| /' conftest.$ac_ext >&5 |
28236 | ||
28237 | ac_cv_lib_tiff_TIFFError=no | |
28238 | fi | |
28239 | ||
28240 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
28241 | conftest$ac_exeext conftest.$ac_ext | |
28242 | LIBS=$ac_check_lib_save_LIBS | |
28243 | fi | |
d589327a VZ |
28244 | { echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5 |
28245 | echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6; } | |
28246 | if test $ac_cv_lib_tiff_TIFFError = yes; then | |
2956d9e1 VZ |
28247 | TIFF_LINK=" -ltiff" |
28248 | fi | |
28249 | ||
28250 | ||
28251 | fi | |
28252 | ||
28253 | ||
28254 | ||
28255 | if test "x$TIFF_LINK" = "x" ; then | |
28256 | if test "$wxUSE_LIBTIFF" = "sys" ; then | |
d589327a VZ |
28257 | { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5 |
28258 | echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;} | |
2956d9e1 VZ |
28259 | { (exit 1); exit 1; }; } |
28260 | else | |
d589327a VZ |
28261 | { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5 |
28262 | echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;} | |
2956d9e1 VZ |
28263 | wxUSE_LIBTIFF=builtin |
28264 | fi | |
28265 | else | |
28266 | wxUSE_LIBTIFF=sys | |
28267 | fi | |
28268 | fi | |
28269 | if test "$wxUSE_LIBTIFF" = "builtin" ; then | |
28270 | if test "$wxUSE_LIBJPEG" = "no"; then | |
28271 | ac_configure_args="$ac_configure_args --disable-jpeg" | |
28272 | fi | |
d589327a | 28273 | subdirs="$subdirs src/tiff" |
2956d9e1 | 28274 | |
a848cd7e SC |
28275 | fi |
28276 | fi | |
28277 | ||
28278 | ||
47a7e797 MW |
28279 | if test "$wxUSE_WCHAR_T" != "yes"; then |
28280 | if test "$wxUSE_EXPAT" != "no"; then | |
d589327a VZ |
28281 | { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&5 |
28282 | echo "$as_me: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&2;} | |
47a7e797 MW |
28283 | wxUSE_EXPAT=no |
28284 | fi | |
28285 | if test "$wxUSE_XML" != "no"; then | |
d589327a VZ |
28286 | { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&5 |
28287 | echo "$as_me: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&2;} | |
47a7e797 MW |
28288 | wxUSE_XML=no |
28289 | fi | |
28290 | fi | |
28291 | ||
a848cd7e SC |
28292 | if test "$wxUSE_EXPAT" != "no"; then |
28293 | wxUSE_XML=yes | |
28294 | cat >>confdefs.h <<\_ACEOF | |
28295 | #define wxUSE_EXPAT 1 | |
28296 | _ACEOF | |
28297 | ||
28298 | cat >>confdefs.h <<\_ACEOF | |
28299 | #define wxUSE_XML 1 | |
28300 | _ACEOF | |
28301 | ||
28302 | ||
28303 | if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then | |
d589327a VZ |
28304 | { echo "$as_me:$LINENO: checking for expat.h" >&5 |
28305 | echo $ECHO_N "checking for expat.h... $ECHO_C" >&6; } | |
a848cd7e | 28306 | if test "${ac_cv_header_expat_h+set}" = set; then |
d589327a | 28307 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a848cd7e | 28308 | else |
6e7b8bcb | 28309 | cat >conftest.$ac_ext <<_ACEOF |
a848cd7e SC |
28310 | /* confdefs.h. */ |
28311 | _ACEOF | |
28312 | cat confdefs.h >>conftest.$ac_ext | |
28313 | cat >>conftest.$ac_ext <<_ACEOF | |
28314 | /* end confdefs.h. */ | |
6e7b8bcb PC |
28315 | |
28316 | ||
a848cd7e SC |
28317 | #include <expat.h> |
28318 | _ACEOF | |
28319 | rm -f conftest.$ac_objext | |
47964710 VS |
28320 | if { (ac_try="$ac_compile" |
28321 | case "(($ac_try" in | |
28322 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
28323 | *) ac_try_echo=$ac_try;; | |
28324 | esac | |
d589327a | 28325 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 28326 | (eval "$ac_compile") 2>conftest.er1 |
a848cd7e | 28327 | ac_status=$? |
ac1cb8d3 VS |
28328 | grep -v '^ *+' conftest.er1 >conftest.err |
28329 | rm -f conftest.er1 | |
28330 | cat conftest.err >&5 | |
d589327a | 28331 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
28332 | (exit $ac_status); } && { |
28333 | test -z "$ac_c_werror_flag" || | |
28334 | test ! -s conftest.err | |
28335 | } && test -s conftest.$ac_objext; then | |
6e7b8bcb | 28336 | ac_cv_header_expat_h=yes |
a848cd7e | 28337 | else |
d589327a | 28338 | echo "$as_me: failed program was:" >&5 |
a848cd7e SC |
28339 | sed 's/^/| /' conftest.$ac_ext >&5 |
28340 | ||
47964710 | 28341 | ac_cv_header_expat_h=no |
a848cd7e | 28342 | fi |
47964710 VS |
28343 | |
28344 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
a848cd7e | 28345 | fi |
d589327a VZ |
28346 | { echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5 |
28347 | echo "${ECHO_T}$ac_cv_header_expat_h" >&6; } | |
28348 | if test $ac_cv_header_expat_h = yes; then | |
a848cd7e SC |
28349 | found_expat_h=1 |
28350 | fi | |
28351 | ||
28352 | ||
28353 | if test "x$found_expat_h" = "x1"; then | |
d589327a VZ |
28354 | { echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5 |
28355 | echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6; } | |
a848cd7e | 28356 | if test "${wx_cv_expat_is_not_broken+set}" = set; then |
d589327a | 28357 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a848cd7e SC |
28358 | else |
28359 | ||
47964710 | 28360 | ac_ext=cpp |
9b8888f9 VZ |
28361 | ac_cpp='$CXXCPP $CPPFLAGS' |
28362 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
28363 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
28364 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
28365 | ||
a848cd7e SC |
28366 | cat >conftest.$ac_ext <<_ACEOF |
28367 | /* confdefs.h. */ | |
28368 | _ACEOF | |
28369 | cat confdefs.h >>conftest.$ac_ext | |
28370 | cat >>conftest.$ac_ext <<_ACEOF | |
28371 | /* end confdefs.h. */ | |
28372 | #include <expat.h> | |
28373 | int | |
28374 | main () | |
28375 | { | |
28376 | ||
28377 | ; | |
28378 | return 0; | |
28379 | } | |
28380 | _ACEOF | |
28381 | rm -f conftest.$ac_objext | |
47964710 VS |
28382 | if { (ac_try="$ac_compile" |
28383 | case "(($ac_try" in | |
28384 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
28385 | *) ac_try_echo=$ac_try;; | |
28386 | esac | |
d589327a | 28387 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 28388 | (eval "$ac_compile") 2>conftest.er1 |
a848cd7e | 28389 | ac_status=$? |
ac1cb8d3 VS |
28390 | grep -v '^ *+' conftest.er1 >conftest.err |
28391 | rm -f conftest.er1 | |
28392 | cat conftest.err >&5 | |
d589327a | 28393 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
28394 | (exit $ac_status); } && { |
28395 | test -z "$ac_cxx_werror_flag" || | |
28396 | test ! -s conftest.err | |
28397 | } && test -s conftest.$ac_objext; then | |
a848cd7e SC |
28398 | wx_cv_expat_is_not_broken=yes |
28399 | else | |
d589327a | 28400 | echo "$as_me: failed program was:" >&5 |
a848cd7e SC |
28401 | sed 's/^/| /' conftest.$ac_ext >&5 |
28402 | ||
47964710 | 28403 | wx_cv_expat_is_not_broken=no |
a848cd7e SC |
28404 | |
28405 | fi | |
47964710 VS |
28406 | |
28407 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
9b8888f9 VZ |
28408 | ac_ext=c |
28409 | ac_cpp='$CPP $CPPFLAGS' | |
28410 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
28411 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
28412 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
28413 | ||
a848cd7e SC |
28414 | |
28415 | ||
28416 | fi | |
d589327a VZ |
28417 | { echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5 |
28418 | echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6; } | |
a848cd7e | 28419 | if test "$wx_cv_expat_is_not_broken" = "yes" ; then |
d589327a VZ |
28420 | { echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5 |
28421 | echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6; } | |
a848cd7e | 28422 | if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then |
d589327a | 28423 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a848cd7e SC |
28424 | else |
28425 | ac_check_lib_save_LIBS=$LIBS | |
28426 | LIBS="-lexpat $LIBS" | |
28427 | cat >conftest.$ac_ext <<_ACEOF | |
28428 | /* confdefs.h. */ | |
28429 | _ACEOF | |
28430 | cat confdefs.h >>conftest.$ac_ext | |
28431 | cat >>conftest.$ac_ext <<_ACEOF | |
28432 | /* end confdefs.h. */ | |
28433 | ||
47964710 VS |
28434 | /* Override any GCC internal prototype to avoid an error. |
28435 | Use char because int might match the return type of a GCC | |
28436 | builtin and then its argument prototype would still apply. */ | |
a848cd7e SC |
28437 | #ifdef __cplusplus |
28438 | extern "C" | |
28439 | #endif | |
a848cd7e SC |
28440 | char XML_ParserCreate (); |
28441 | int | |
28442 | main () | |
28443 | { | |
47964710 | 28444 | return XML_ParserCreate (); |
a848cd7e SC |
28445 | ; |
28446 | return 0; | |
28447 | } | |
28448 | _ACEOF | |
28449 | rm -f conftest.$ac_objext conftest$ac_exeext | |
47964710 VS |
28450 | if { (ac_try="$ac_link" |
28451 | case "(($ac_try" in | |
28452 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
28453 | *) ac_try_echo=$ac_try;; | |
28454 | esac | |
d589327a | 28455 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 28456 | (eval "$ac_link") 2>conftest.er1 |
a848cd7e | 28457 | ac_status=$? |
ac1cb8d3 VS |
28458 | grep -v '^ *+' conftest.er1 >conftest.err |
28459 | rm -f conftest.er1 | |
28460 | cat conftest.err >&5 | |
d589327a | 28461 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
28462 | (exit $ac_status); } && { |
28463 | test -z "$ac_c_werror_flag" || | |
28464 | test ! -s conftest.err | |
d589327a VZ |
28465 | } && test -s conftest$ac_exeext && |
28466 | $as_test_x conftest$ac_exeext; then | |
a848cd7e SC |
28467 | ac_cv_lib_expat_XML_ParserCreate=yes |
28468 | else | |
d589327a | 28469 | echo "$as_me: failed program was:" >&5 |
a848cd7e SC |
28470 | sed 's/^/| /' conftest.$ac_ext >&5 |
28471 | ||
47964710 | 28472 | ac_cv_lib_expat_XML_ParserCreate=no |
a848cd7e | 28473 | fi |
47964710 VS |
28474 | |
28475 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
ac1cb8d3 | 28476 | conftest$ac_exeext conftest.$ac_ext |
a848cd7e SC |
28477 | LIBS=$ac_check_lib_save_LIBS |
28478 | fi | |
d589327a VZ |
28479 | { echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5 |
28480 | echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6; } | |
28481 | if test $ac_cv_lib_expat_XML_ParserCreate = yes; then | |
a848cd7e SC |
28482 | EXPAT_LINK=" -lexpat" |
28483 | fi | |
28484 | ||
28485 | fi | |
28486 | fi | |
28487 | if test "x$EXPAT_LINK" = "x" ; then | |
28488 | if test "$wxUSE_EXPAT" = "sys" ; then | |
d589327a VZ |
28489 | { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5 |
28490 | echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;} | |
a848cd7e SC |
28491 | { (exit 1); exit 1; }; } |
28492 | else | |
d589327a VZ |
28493 | { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5 |
28494 | echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;} | |
a848cd7e SC |
28495 | wxUSE_EXPAT=builtin |
28496 | fi | |
28497 | else | |
28498 | wxUSE_EXPAT=sys | |
28499 | fi | |
28500 | fi | |
28501 | if test "$wxUSE_EXPAT" = "builtin" ; then | |
47964710 | 28502 | subdirs="$subdirs src/expat" |
a848cd7e SC |
28503 | |
28504 | fi | |
28505 | fi | |
28506 | ||
28507 | ||
28508 | ||
28509 | if test "$wxUSE_LIBMSPACK" != "no"; then | |
d589327a VZ |
28510 | { echo "$as_me:$LINENO: checking for mspack.h" >&5 |
28511 | echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6; } | |
a848cd7e | 28512 | if test "${ac_cv_header_mspack_h+set}" = set; then |
d589327a | 28513 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a848cd7e | 28514 | else |
6e7b8bcb | 28515 | cat >conftest.$ac_ext <<_ACEOF |
a848cd7e SC |
28516 | /* confdefs.h. */ |
28517 | _ACEOF | |
28518 | cat confdefs.h >>conftest.$ac_ext | |
28519 | cat >>conftest.$ac_ext <<_ACEOF | |
28520 | /* end confdefs.h. */ | |
6e7b8bcb PC |
28521 | |
28522 | ||
a848cd7e SC |
28523 | #include <mspack.h> |
28524 | _ACEOF | |
28525 | rm -f conftest.$ac_objext | |
47964710 VS |
28526 | if { (ac_try="$ac_compile" |
28527 | case "(($ac_try" in | |
28528 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
28529 | *) ac_try_echo=$ac_try;; | |
28530 | esac | |
d589327a | 28531 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 28532 | (eval "$ac_compile") 2>conftest.er1 |
a848cd7e | 28533 | ac_status=$? |
ac1cb8d3 VS |
28534 | grep -v '^ *+' conftest.er1 >conftest.err |
28535 | rm -f conftest.er1 | |
28536 | cat conftest.err >&5 | |
d589327a | 28537 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
28538 | (exit $ac_status); } && { |
28539 | test -z "$ac_c_werror_flag" || | |
28540 | test ! -s conftest.err | |
28541 | } && test -s conftest.$ac_objext; then | |
6e7b8bcb | 28542 | ac_cv_header_mspack_h=yes |
a848cd7e | 28543 | else |
d589327a | 28544 | echo "$as_me: failed program was:" >&5 |
a848cd7e SC |
28545 | sed 's/^/| /' conftest.$ac_ext >&5 |
28546 | ||
47964710 | 28547 | ac_cv_header_mspack_h=no |
a848cd7e | 28548 | fi |
47964710 VS |
28549 | |
28550 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
a848cd7e | 28551 | fi |
d589327a VZ |
28552 | { echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5 |
28553 | echo "${ECHO_T}$ac_cv_header_mspack_h" >&6; } | |
28554 | if test $ac_cv_header_mspack_h = yes; then | |
a848cd7e SC |
28555 | found_mspack_h=1 |
28556 | fi | |
28557 | ||
28558 | ||
28559 | if test "x$found_mspack_h" = "x1"; then | |
d589327a VZ |
28560 | { echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5 |
28561 | echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6; } | |
a848cd7e | 28562 | if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then |
d589327a | 28563 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a848cd7e SC |
28564 | else |
28565 | ac_check_lib_save_LIBS=$LIBS | |
28566 | LIBS="-lmspack $LIBS" | |
28567 | cat >conftest.$ac_ext <<_ACEOF | |
28568 | /* confdefs.h. */ | |
28569 | _ACEOF | |
28570 | cat confdefs.h >>conftest.$ac_ext | |
28571 | cat >>conftest.$ac_ext <<_ACEOF | |
28572 | /* end confdefs.h. */ | |
28573 | ||
47964710 VS |
28574 | /* Override any GCC internal prototype to avoid an error. |
28575 | Use char because int might match the return type of a GCC | |
28576 | builtin and then its argument prototype would still apply. */ | |
a848cd7e SC |
28577 | #ifdef __cplusplus |
28578 | extern "C" | |
28579 | #endif | |
a848cd7e SC |
28580 | char mspack_create_chm_decompressor (); |
28581 | int | |
28582 | main () | |
28583 | { | |
47964710 | 28584 | return mspack_create_chm_decompressor (); |
a848cd7e SC |
28585 | ; |
28586 | return 0; | |
28587 | } | |
28588 | _ACEOF | |
28589 | rm -f conftest.$ac_objext conftest$ac_exeext | |
47964710 VS |
28590 | if { (ac_try="$ac_link" |
28591 | case "(($ac_try" in | |
28592 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
28593 | *) ac_try_echo=$ac_try;; | |
28594 | esac | |
d589327a | 28595 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 28596 | (eval "$ac_link") 2>conftest.er1 |
a848cd7e | 28597 | ac_status=$? |
ac1cb8d3 VS |
28598 | grep -v '^ *+' conftest.er1 >conftest.err |
28599 | rm -f conftest.er1 | |
28600 | cat conftest.err >&5 | |
d589327a | 28601 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
28602 | (exit $ac_status); } && { |
28603 | test -z "$ac_c_werror_flag" || | |
28604 | test ! -s conftest.err | |
d589327a VZ |
28605 | } && test -s conftest$ac_exeext && |
28606 | $as_test_x conftest$ac_exeext; then | |
a848cd7e SC |
28607 | ac_cv_lib_mspack_mspack_create_chm_decompressor=yes |
28608 | else | |
d589327a | 28609 | echo "$as_me: failed program was:" >&5 |
a848cd7e SC |
28610 | sed 's/^/| /' conftest.$ac_ext >&5 |
28611 | ||
47964710 | 28612 | ac_cv_lib_mspack_mspack_create_chm_decompressor=no |
a848cd7e | 28613 | fi |
47964710 VS |
28614 | |
28615 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
ac1cb8d3 | 28616 | conftest$ac_exeext conftest.$ac_ext |
a848cd7e SC |
28617 | LIBS=$ac_check_lib_save_LIBS |
28618 | fi | |
d589327a VZ |
28619 | { echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5 |
28620 | echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6; } | |
28621 | if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then | |
a848cd7e SC |
28622 | MSPACK_LINK=" -lmspack" |
28623 | fi | |
28624 | ||
28625 | fi | |
28626 | if test "x$MSPACK_LINK" = "x" ; then | |
28627 | wxUSE_LIBMSPACK=no | |
dd3a2d96 VZ |
28628 | fi |
28629 | fi | |
28630 | ||
28631 | if test "$wxUSE_LIBMSPACK" != "no"; then | |
28632 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
28633 | #define wxUSE_LIBMSPACK 1 |
28634 | _ACEOF | |
28635 | ||
a848cd7e SC |
28636 | fi |
28637 | ||
28638 | ||
28639 | ||
28640 | AFMINSTALL= | |
28641 | WIN32INSTALL= | |
28642 | ||
28643 | TOOLKIT= | |
28644 | TOOLKIT_INCLUDE= | |
28645 | WIDGET_SET= | |
28646 | ||
28647 | if test "$USE_WIN32" = 1 ; then | |
be2ad872 PC |
28648 | |
28649 | for ac_header in w32api.h | |
28650 | do | |
d589327a VZ |
28651 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
28652 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
28653 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
47964710 | 28654 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
d589327a | 28655 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a848cd7e | 28656 | else |
6e7b8bcb | 28657 | cat >conftest.$ac_ext <<_ACEOF |
a848cd7e SC |
28658 | /* confdefs.h. */ |
28659 | _ACEOF | |
28660 | cat confdefs.h >>conftest.$ac_ext | |
28661 | cat >>conftest.$ac_ext <<_ACEOF | |
28662 | /* end confdefs.h. */ | |
6e7b8bcb PC |
28663 | |
28664 | ||
be2ad872 | 28665 | #include <$ac_header> |
a848cd7e SC |
28666 | _ACEOF |
28667 | rm -f conftest.$ac_objext | |
47964710 VS |
28668 | if { (ac_try="$ac_compile" |
28669 | case "(($ac_try" in | |
28670 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
28671 | *) ac_try_echo=$ac_try;; | |
28672 | esac | |
d589327a | 28673 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 28674 | (eval "$ac_compile") 2>conftest.er1 |
a848cd7e | 28675 | ac_status=$? |
ac1cb8d3 VS |
28676 | grep -v '^ *+' conftest.er1 >conftest.err |
28677 | rm -f conftest.er1 | |
28678 | cat conftest.err >&5 | |
d589327a | 28679 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
28680 | (exit $ac_status); } && { |
28681 | test -z "$ac_c_werror_flag" || | |
28682 | test ! -s conftest.err | |
28683 | } && test -s conftest.$ac_objext; then | |
be2ad872 | 28684 | eval "$as_ac_Header=yes" |
a848cd7e | 28685 | else |
d589327a | 28686 | echo "$as_me: failed program was:" >&5 |
a848cd7e SC |
28687 | sed 's/^/| /' conftest.$ac_ext >&5 |
28688 | ||
47964710 | 28689 | eval "$as_ac_Header=no" |
a848cd7e | 28690 | fi |
47964710 VS |
28691 | |
28692 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
a848cd7e | 28693 | fi |
d589327a VZ |
28694 | ac_res=`eval echo '${'$as_ac_Header'}'` |
28695 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
28696 | echo "${ECHO_T}$ac_res" >&6; } | |
28697 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
be2ad872 | 28698 | cat >>confdefs.h <<_ACEOF |
d589327a | 28699 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
be2ad872 PC |
28700 | _ACEOF |
28701 | ||
28702 | fi | |
7fd3acaf | 28703 | |
be2ad872 | 28704 | done |
f321ab7f | 28705 | |
d589327a VZ |
28706 | { echo "$as_me:$LINENO: checking for windows.h" >&5 |
28707 | echo $ECHO_N "checking for windows.h... $ECHO_C" >&6; } | |
f321ab7f | 28708 | if test "${ac_cv_header_windows_h+set}" = set; then |
d589327a | 28709 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
f321ab7f | 28710 | else |
6e7b8bcb | 28711 | cat >conftest.$ac_ext <<_ACEOF |
f321ab7f VS |
28712 | /* confdefs.h. */ |
28713 | _ACEOF | |
28714 | cat confdefs.h >>conftest.$ac_ext | |
28715 | cat >>conftest.$ac_ext <<_ACEOF | |
28716 | /* end confdefs.h. */ | |
6e7b8bcb PC |
28717 | |
28718 | ||
f321ab7f VS |
28719 | #include <windows.h> |
28720 | _ACEOF | |
28721 | rm -f conftest.$ac_objext | |
47964710 VS |
28722 | if { (ac_try="$ac_compile" |
28723 | case "(($ac_try" in | |
28724 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
28725 | *) ac_try_echo=$ac_try;; | |
28726 | esac | |
d589327a | 28727 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 28728 | (eval "$ac_compile") 2>conftest.er1 |
f321ab7f VS |
28729 | ac_status=$? |
28730 | grep -v '^ *+' conftest.er1 >conftest.err | |
28731 | rm -f conftest.er1 | |
28732 | cat conftest.err >&5 | |
d589327a | 28733 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
28734 | (exit $ac_status); } && { |
28735 | test -z "$ac_c_werror_flag" || | |
28736 | test ! -s conftest.err | |
28737 | } && test -s conftest.$ac_objext; then | |
6e7b8bcb | 28738 | ac_cv_header_windows_h=yes |
f321ab7f | 28739 | else |
d589327a | 28740 | echo "$as_me: failed program was:" >&5 |
f321ab7f VS |
28741 | sed 's/^/| /' conftest.$ac_ext >&5 |
28742 | ||
47964710 | 28743 | ac_cv_header_windows_h=no |
f321ab7f | 28744 | fi |
47964710 VS |
28745 | |
28746 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
a848cd7e | 28747 | fi |
d589327a VZ |
28748 | { echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5 |
28749 | echo "${ECHO_T}$ac_cv_header_windows_h" >&6; } | |
28750 | if test $ac_cv_header_windows_h = yes; then | |
a848cd7e SC |
28751 | : |
28752 | else | |
28753 | ||
d589327a VZ |
28754 | { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5 |
28755 | echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;} | |
a848cd7e SC |
28756 | { (exit 1); exit 1; }; } |
28757 | ||
28758 | fi | |
28759 | ||
28760 | ||
28761 | ||
f380544a | 28762 | case "${host}" in |
03773e40 | 28763 | x86_64-*-mingw32* ) |
f380544a | 28764 | LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lwctl3d32 -ladvapi32 -lwsock32 -lgdi32" |
da16724e VZ |
28765 | |
28766 | WINDRES_CPU_DEFINE="--define WX_CPU_AMD64" | |
f380544a VZ |
28767 | ;; |
28768 | * ) | |
a848cd7e | 28769 | LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32" |
f380544a VZ |
28770 | ;; |
28771 | esac | |
a848cd7e SC |
28772 | if test "$wxUSE_ACCESSIBILITY" = "yes" ; then |
28773 | LIBS="$LIBS -loleacc" | |
28774 | fi | |
28775 | ||
28776 | case "${host}" in | |
28777 | *-*-cygwin* ) | |
28778 | LIBS="$LIBS -lkernel32 -luser32" | |
a848cd7e SC |
28779 | esac |
28780 | ||
370d2fd7 | 28781 | RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__" |
a848cd7e SC |
28782 | RESPROGRAMOBJ="\$(PROGRAM)_resources.o" |
28783 | ||
004ee6da | 28784 | WXCONFIG_RESFLAGS="--define __WIN32__ --define __WIN95__ --define __GNUWIN32__" |
370d2fd7 | 28785 | |
a848cd7e | 28786 | WIN32INSTALL=win32install |
5f41d1bf | 28787 | |
d589327a VZ |
28788 | { echo "$as_me:$LINENO: checking for pbt.h" >&5 |
28789 | echo $ECHO_N "checking for pbt.h... $ECHO_C" >&6; } | |
6e7b8bcb | 28790 | if test "${ac_cv_header_pbt_h+set}" = set; then |
d589327a | 28791 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
dcfd4ac4 | 28792 | else |
6e7b8bcb | 28793 | cat >conftest.$ac_ext <<_ACEOF |
dcfd4ac4 MW |
28794 | /* confdefs.h. */ |
28795 | _ACEOF | |
28796 | cat confdefs.h >>conftest.$ac_ext | |
28797 | cat >>conftest.$ac_ext <<_ACEOF | |
28798 | /* end confdefs.h. */ | |
6e7b8bcb PC |
28799 | |
28800 | ||
28801 | #include <pbt.h> | |
dcfd4ac4 MW |
28802 | _ACEOF |
28803 | rm -f conftest.$ac_objext | |
47964710 VS |
28804 | if { (ac_try="$ac_compile" |
28805 | case "(($ac_try" in | |
28806 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
28807 | *) ac_try_echo=$ac_try;; | |
28808 | esac | |
d589327a | 28809 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 28810 | (eval "$ac_compile") 2>conftest.er1 |
dcfd4ac4 MW |
28811 | ac_status=$? |
28812 | grep -v '^ *+' conftest.er1 >conftest.err | |
28813 | rm -f conftest.er1 | |
28814 | cat conftest.err >&5 | |
d589327a | 28815 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
28816 | (exit $ac_status); } && { |
28817 | test -z "$ac_c_werror_flag" || | |
28818 | test ! -s conftest.err | |
28819 | } && test -s conftest.$ac_objext; then | |
6e7b8bcb | 28820 | ac_cv_header_pbt_h=yes |
dcfd4ac4 | 28821 | else |
d589327a | 28822 | echo "$as_me: failed program was:" >&5 |
dcfd4ac4 MW |
28823 | sed 's/^/| /' conftest.$ac_ext >&5 |
28824 | ||
47964710 | 28825 | ac_cv_header_pbt_h=no |
dcfd4ac4 | 28826 | fi |
47964710 VS |
28827 | |
28828 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
dcfd4ac4 | 28829 | fi |
d589327a VZ |
28830 | { echo "$as_me:$LINENO: result: $ac_cv_header_pbt_h" >&5 |
28831 | echo "${ECHO_T}$ac_cv_header_pbt_h" >&6; } | |
28832 | if test $ac_cv_header_pbt_h = yes; then | |
6e7b8bcb | 28833 | : |
dcfd4ac4 MW |
28834 | else |
28835 | cat >>confdefs.h <<\_ACEOF | |
28836 | #define NEED_PBT_H 1 | |
28837 | _ACEOF | |
28838 | ||
28839 | fi | |
28840 | ||
dcfd4ac4 | 28841 | |
a848cd7e SC |
28842 | fi |
28843 | ||
28844 | if test "$wxUSE_GUI" = "yes"; then | |
28845 | USE_GUI=1 | |
28846 | ||
28847 | GUI_TK_LIBRARY= | |
28848 | ||
28849 | WXGTK12= | |
28850 | WXGTK127= | |
88262190 | 28851 | WXGTK2= |
a848cd7e SC |
28852 | WXGPE= |
28853 | ||
f10f4c87 | 28854 | if test "$wxUSE_OLD_COCOA" = 1 ; then |
207bc66c | 28855 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes"; then |
d589327a VZ |
28856 | { echo "$as_me:$LINENO: WARNING: Printing not supported under wxCocoa yet, disabled" >&5 |
28857 | echo "$as_me: WARNING: Printing not supported under wxCocoa yet, disabled" >&2;} | |
207bc66c RN |
28858 | wxUSE_PRINTING_ARCHITECTURE=no |
28859 | fi | |
28860 | if test "$wxUSE_DRAG_AND_DROP" = "yes"; then | |
d589327a VZ |
28861 | { echo "$as_me:$LINENO: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&5 |
28862 | echo "$as_me: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&2;} | |
207bc66c RN |
28863 | wxUSE_DRAG_AND_DROP=no |
28864 | fi | |
28865 | if test "$wxUSE_DRAGIMAGE" = "yes"; then | |
d589327a VZ |
28866 | { echo "$as_me:$LINENO: WARNING: wxDragImage not supported under wxCocoa yet, disabled" >&5 |
28867 | echo "$as_me: WARNING: wxDragImage not supported under wxCocoa yet, disabled" >&2;} | |
207bc66c RN |
28868 | wxUSE_DRAGIMAGE=no |
28869 | fi | |
28870 | fi | |
28871 | ||
a848cd7e SC |
28872 | if test "$wxUSE_MSW" = 1 ; then |
28873 | TOOLKIT=MSW | |
28874 | GUIDIST=MSW_DIST | |
28875 | ||
ceec2216 | 28876 | case "${host}" in |
a848cd7e SC |
28877 | *-*-mingw32* ) |
28878 | WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows" | |
28879 | esac | |
28880 | fi | |
28881 | ||
28882 | if test "$wxUSE_GTK" = 1; then | |
d589327a VZ |
28883 | { echo "$as_me:$LINENO: checking for GTK+ version" >&5 |
28884 | echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6; } | |
a848cd7e SC |
28885 | |
28886 | gtk_version_cached=1 | |
28887 | if test "${wx_cv_lib_gtk+set}" = set; then | |
d589327a | 28888 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a848cd7e SC |
28889 | else |
28890 | ||
28891 | gtk_version_cached=0 | |
d589327a VZ |
28892 | { echo "$as_me:$LINENO: result: " >&5 |
28893 | echo "${ECHO_T}" >&6; } | |
a848cd7e SC |
28894 | |
28895 | GTK_MODULES= | |
28896 | if test "$wxUSE_THREADS" = "yes"; then | |
28897 | GTK_MODULES=gthread | |
28898 | fi | |
28899 | ||
f597b41c | 28900 | wx_cv_lib_gtk= |
5001df0d MW |
28901 | if test "x$wxGTK_VERSION" != "x1" |
28902 | then | |
28903 | case "${host}" in | |
28904 | *-*-solaris2* ) | |
28905 | if test "$wxUSE_THREADS" = "yes" -a "$GCC" = yes; then | |
43a7c679 | 28906 | enable_gtktest=no |
5001df0d MW |
28907 | fi |
28908 | esac | |
28909 | ||
47964710 | 28910 | # Check whether --enable-gtktest was given. |
a848cd7e | 28911 | if test "${enable_gtktest+set}" = set; then |
47964710 | 28912 | enableval=$enable_gtktest; |
a848cd7e SC |
28913 | else |
28914 | enable_gtktest=yes | |
47964710 VS |
28915 | fi |
28916 | ||
a848cd7e SC |
28917 | |
28918 | pkg_config_args=gtk+-2.0 | |
28919 | for module in . $GTK_MODULES | |
28920 | do | |
28921 | case "$module" in | |
28922 | gthread) | |
28923 | pkg_config_args="$pkg_config_args gthread-2.0" | |
28924 | ;; | |
28925 | esac | |
28926 | done | |
28927 | ||
28928 | no_gtk="" | |
28929 | ||
28930 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
28931 | set dummy pkg-config; ac_word=$2 | |
d589327a VZ |
28932 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
28933 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
a848cd7e | 28934 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then |
d589327a | 28935 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a848cd7e SC |
28936 | else |
28937 | case $PKG_CONFIG in | |
28938 | [\\/]* | ?:[\\/]*) | |
28939 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
28940 | ;; | |
28941 | *) | |
28942 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
28943 | for as_dir in $PATH | |
28944 | do | |
28945 | IFS=$as_save_IFS | |
28946 | test -z "$as_dir" && as_dir=. | |
28947 | for ac_exec_ext in '' $ac_executable_extensions; do | |
47964710 | 28948 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
a848cd7e | 28949 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
d589327a | 28950 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
a848cd7e SC |
28951 | break 2 |
28952 | fi | |
28953 | done | |
28954 | done | |
47964710 | 28955 | IFS=$as_save_IFS |
a848cd7e SC |
28956 | |
28957 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
28958 | ;; | |
28959 | esac | |
28960 | fi | |
28961 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
a848cd7e | 28962 | if test -n "$PKG_CONFIG"; then |
d589327a VZ |
28963 | { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 |
28964 | echo "${ECHO_T}$PKG_CONFIG" >&6; } | |
a848cd7e | 28965 | else |
d589327a VZ |
28966 | { echo "$as_me:$LINENO: result: no" >&5 |
28967 | echo "${ECHO_T}no" >&6; } | |
a848cd7e SC |
28968 | fi |
28969 | ||
28970 | ||
47964710 | 28971 | |
a848cd7e SC |
28972 | if test x$PKG_CONFIG != xno ; then |
28973 | if pkg-config --atleast-pkgconfig-version 0.7 ; then | |
28974 | : | |
28975 | else | |
c2218763 | 28976 | echo "*** pkg-config too old; version 0.7 or better required." |
a848cd7e SC |
28977 | no_gtk=yes |
28978 | PKG_CONFIG=no | |
28979 | fi | |
28980 | else | |
28981 | no_gtk=yes | |
28982 | fi | |
28983 | ||
88262190 | 28984 | min_gtk_version=2.4.0 |
d589327a VZ |
28985 | { echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5 |
28986 | echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6; } | |
a848cd7e SC |
28987 | |
28988 | if test x$PKG_CONFIG != xno ; then | |
28989 | ## don't try to run the test against uninstalled libtool libs | |
28990 | if $PKG_CONFIG --uninstalled $pkg_config_args; then | |
28991 | echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH" | |
28992 | enable_gtktest=no | |
28993 | fi | |
28994 | ||
28995 | if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then | |
28996 | : | |
28997 | else | |
28998 | no_gtk=yes | |
28999 | fi | |
29000 | fi | |
29001 | ||
29002 | if test x"$no_gtk" = x ; then | |
29003 | GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags` | |
29004 | GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs` | |
29005 | gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
29006 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
29007 | gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
29008 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
29009 | gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
29010 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
29011 | if test "x$enable_gtktest" = "xyes" ; then | |
29012 | ac_save_CFLAGS="$CFLAGS" | |
29013 | ac_save_LIBS="$LIBS" | |
29014 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
29015 | LIBS="$GTK_LIBS $LIBS" | |
29016 | rm -f conf.gtktest | |
29017 | if test "$cross_compiling" = yes; then | |
29018 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
29019 | else | |
29020 | cat >conftest.$ac_ext <<_ACEOF | |
29021 | /* confdefs.h. */ | |
29022 | _ACEOF | |
29023 | cat confdefs.h >>conftest.$ac_ext | |
29024 | cat >>conftest.$ac_ext <<_ACEOF | |
29025 | /* end confdefs.h. */ | |
29026 | ||
29027 | #include <gtk/gtk.h> | |
29028 | #include <stdio.h> | |
29029 | #include <stdlib.h> | |
29030 | ||
29031 | int | |
29032 | main () | |
29033 | { | |
29034 | int major, minor, micro; | |
29035 | char *tmp_version; | |
29036 | ||
29037 | system ("touch conf.gtktest"); | |
29038 | ||
29039 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
29040 | tmp_version = g_strdup("$min_gtk_version"); | |
29041 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
29042 | printf("%s, bad version string\n", "$min_gtk_version"); | |
29043 | exit(1); | |
29044 | } | |
29045 | ||
29046 | if ((gtk_major_version != $gtk_config_major_version) || | |
29047 | (gtk_minor_version != $gtk_config_minor_version) || | |
29048 | (gtk_micro_version != $gtk_config_micro_version)) | |
29049 | { | |
29050 | printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", | |
29051 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, | |
29052 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
29053 | printf ("*** was found! If pkg-config was correct, then it is best\n"); | |
29054 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
29055 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
29056 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
29057 | printf("*** required on your system.\n"); | |
29058 | printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n"); | |
29059 | printf("*** to point to the correct configuration files\n"); | |
29060 | } | |
29061 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
29062 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
29063 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
29064 | { | |
29065 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
29066 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
29067 | printf("*** library (version %d.%d.%d)\n", | |
29068 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
29069 | } | |
29070 | else | |
29071 | { | |
29072 | if ((gtk_major_version > major) || | |
29073 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
29074 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
29075 | { | |
29076 | return 0; | |
29077 | } | |
29078 | else | |
29079 | { | |
29080 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
29081 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
29082 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
29083 | major, minor, micro); | |
29084 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
29085 | printf("***\n"); | |
29086 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
29087 | printf("*** probably means that the wrong copy of the pkg-config shell script is\n"); | |
29088 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
29089 | printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n"); | |
29090 | printf("*** correct copy of pkg-config. (In this case, you will have to\n"); | |
29091 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
29092 | printf("*** so that the correct libraries are found at run-time))\n"); | |
29093 | } | |
29094 | } | |
29095 | return 1; | |
29096 | } | |
29097 | ||
29098 | _ACEOF | |
29099 | rm -f conftest$ac_exeext | |
47964710 VS |
29100 | if { (ac_try="$ac_link" |
29101 | case "(($ac_try" in | |
29102 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
29103 | *) ac_try_echo=$ac_try;; | |
29104 | esac | |
d589327a | 29105 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 29106 | (eval "$ac_link") 2>&5 |
a848cd7e | 29107 | ac_status=$? |
d589327a | 29108 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
a848cd7e | 29109 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
47964710 VS |
29110 | { (case "(($ac_try" in |
29111 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
29112 | *) ac_try_echo=$ac_try;; | |
29113 | esac | |
d589327a | 29114 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 29115 | (eval "$ac_try") 2>&5 |
a848cd7e | 29116 | ac_status=$? |
d589327a | 29117 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
a848cd7e SC |
29118 | (exit $ac_status); }; }; then |
29119 | : | |
29120 | else | |
d589327a VZ |
29121 | echo "$as_me: program exited with status $ac_status" >&5 |
29122 | echo "$as_me: failed program was:" >&5 | |
a848cd7e SC |
29123 | sed 's/^/| /' conftest.$ac_ext >&5 |
29124 | ||
29125 | ( exit $ac_status ) | |
29126 | no_gtk=yes | |
29127 | fi | |
47964710 | 29128 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 29129 | fi |
47964710 VS |
29130 | |
29131 | ||
a848cd7e SC |
29132 | CFLAGS="$ac_save_CFLAGS" |
29133 | LIBS="$ac_save_LIBS" | |
29134 | fi | |
29135 | fi | |
29136 | if test "x$no_gtk" = x ; then | |
d589327a VZ |
29137 | { echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5 |
29138 | echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6; } | |
a848cd7e SC |
29139 | wx_cv_lib_gtk=2.0 |
29140 | else | |
d589327a VZ |
29141 | { echo "$as_me:$LINENO: result: no" >&5 |
29142 | echo "${ECHO_T}no" >&6; } | |
a848cd7e SC |
29143 | if test "$PKG_CONFIG" = "no" ; then |
29144 | echo "*** A new enough version of pkg-config was not found." | |
29145 | echo "*** See http://pkgconfig.sourceforge.net" | |
29146 | else | |
29147 | if test -f conf.gtktest ; then | |
29148 | : | |
29149 | else | |
29150 | echo "*** Could not run GTK+ test program, checking why..." | |
29151 | ac_save_CFLAGS="$CFLAGS" | |
29152 | ac_save_LIBS="$LIBS" | |
29153 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
29154 | LIBS="$LIBS $GTK_LIBS" | |
29155 | cat >conftest.$ac_ext <<_ACEOF | |
29156 | /* confdefs.h. */ | |
29157 | _ACEOF | |
29158 | cat confdefs.h >>conftest.$ac_ext | |
29159 | cat >>conftest.$ac_ext <<_ACEOF | |
29160 | /* end confdefs.h. */ | |
29161 | ||
29162 | #include <gtk/gtk.h> | |
29163 | #include <stdio.h> | |
29164 | ||
29165 | int | |
29166 | main () | |
29167 | { | |
29168 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
29169 | ; | |
29170 | return 0; | |
29171 | } | |
29172 | _ACEOF | |
29173 | rm -f conftest.$ac_objext conftest$ac_exeext | |
47964710 VS |
29174 | if { (ac_try="$ac_link" |
29175 | case "(($ac_try" in | |
29176 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
29177 | *) ac_try_echo=$ac_try;; | |
29178 | esac | |
d589327a | 29179 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 29180 | (eval "$ac_link") 2>conftest.er1 |
a848cd7e | 29181 | ac_status=$? |
ac1cb8d3 VS |
29182 | grep -v '^ *+' conftest.er1 >conftest.err |
29183 | rm -f conftest.er1 | |
29184 | cat conftest.err >&5 | |
d589327a | 29185 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
29186 | (exit $ac_status); } && { |
29187 | test -z "$ac_c_werror_flag" || | |
29188 | test ! -s conftest.err | |
d589327a VZ |
29189 | } && test -s conftest$ac_exeext && |
29190 | $as_test_x conftest$ac_exeext; then | |
a848cd7e SC |
29191 | echo "*** The test program compiled, but did not run. This usually means" |
29192 | echo "*** that the run-time linker is not finding GTK+ or finding the wrong" | |
29193 | echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your" | |
29194 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
29195 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
29196 | echo "*** is required on your system" | |
29197 | echo "***" | |
29198 | echo "*** If you have an old version installed, it is best to remove it, although" | |
29199 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
29200 | else | |
d589327a | 29201 | echo "$as_me: failed program was:" >&5 |
a848cd7e SC |
29202 | sed 's/^/| /' conftest.$ac_ext >&5 |
29203 | ||
47964710 | 29204 | echo "*** The test program failed to compile or link. See the file config.log for the" |
a848cd7e SC |
29205 | echo "*** exact error that occured. This usually means GTK+ is incorrectly installed." |
29206 | fi | |
47964710 VS |
29207 | |
29208 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
ac1cb8d3 | 29209 | conftest$ac_exeext conftest.$ac_ext |
a848cd7e SC |
29210 | CFLAGS="$ac_save_CFLAGS" |
29211 | LIBS="$ac_save_LIBS" | |
29212 | fi | |
29213 | fi | |
29214 | GTK_CFLAGS="" | |
29215 | GTK_LIBS="" | |
29216 | : | |
29217 | fi | |
29218 | ||
29219 | ||
29220 | rm -f conf.gtktest | |
29221 | ||
5001df0d MW |
29222 | |
29223 | case "${host}" in | |
29224 | *-*-solaris2* ) | |
43a7c679 | 29225 | if test "$wxUSE_SHARED" != "yes"; then |
5001df0d MW |
29226 | GTK_LIBS="$GTK_LIBS -lX11" |
29227 | fi | |
29228 | esac | |
f597b41c MW |
29229 | fi |
29230 | ||
f34ca037 MW |
29231 | if test -z "$wx_cv_lib_gtk"; then |
29232 | if test "x$wxGTK_VERSION" = "x1" -o "x$wxGTK_VERSION" = "xany" ; then | |
a848cd7e | 29233 | |
47964710 | 29234 | # Check whether --with-gtk-prefix was given. |
a848cd7e | 29235 | if test "${with_gtk_prefix+set}" = set; then |
47964710 | 29236 | withval=$with_gtk_prefix; gtk_config_prefix="$withval" |
a848cd7e SC |
29237 | else |
29238 | gtk_config_prefix="" | |
47964710 | 29239 | fi |
84ebfcbd | 29240 | |
47964710 VS |
29241 | |
29242 | # Check whether --with-gtk-exec-prefix was given. | |
a848cd7e | 29243 | if test "${with_gtk_exec_prefix+set}" = set; then |
47964710 | 29244 | withval=$with_gtk_exec_prefix; gtk_config_exec_prefix="$withval" |
a848cd7e SC |
29245 | else |
29246 | gtk_config_exec_prefix="" | |
47964710 | 29247 | fi |
bd8a7646 | 29248 | |
47964710 VS |
29249 | # Check whether --enable-gtktest was given. |
29250 | if test "${enable_gtktest+set}" = set; then | |
29251 | enableval=$enable_gtktest; | |
a848cd7e SC |
29252 | else |
29253 | enable_gtktest=yes | |
47964710 VS |
29254 | fi |
29255 | ||
a848cd7e SC |
29256 | |
29257 | for module in . $GTK_MODULES | |
29258 | do | |
29259 | case "$module" in | |
29260 | gthread) | |
29261 | gtk_config_args="$gtk_config_args gthread" | |
29262 | ;; | |
29263 | esac | |
29264 | done | |
29265 | ||
29266 | if test x$gtk_config_exec_prefix != x ; then | |
29267 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
29268 | if test x${GTK_CONFIG+set} != xset ; then | |
29269 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
29270 | fi | |
29271 | fi | |
29272 | if test x$gtk_config_prefix != x ; then | |
29273 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
29274 | if test x${GTK_CONFIG+set} != xset ; then | |
29275 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
29276 | fi | |
29277 | fi | |
29278 | ||
29279 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
29280 | set dummy gtk-config; ac_word=$2 | |
d589327a VZ |
29281 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
29282 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
a848cd7e | 29283 | if test "${ac_cv_path_GTK_CONFIG+set}" = set; then |
d589327a | 29284 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a848cd7e SC |
29285 | else |
29286 | case $GTK_CONFIG in | |
29287 | [\\/]* | ?:[\\/]*) | |
29288 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. | |
29289 | ;; | |
29290 | *) | |
29291 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
29292 | for as_dir in $PATH | |
29293 | do | |
29294 | IFS=$as_save_IFS | |
29295 | test -z "$as_dir" && as_dir=. | |
29296 | for ac_exec_ext in '' $ac_executable_extensions; do | |
47964710 | 29297 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
a848cd7e | 29298 | ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
d589327a | 29299 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
a848cd7e SC |
29300 | break 2 |
29301 | fi | |
29302 | done | |
29303 | done | |
47964710 | 29304 | IFS=$as_save_IFS |
a848cd7e SC |
29305 | |
29306 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" | |
29307 | ;; | |
29308 | esac | |
29309 | fi | |
29310 | GTK_CONFIG=$ac_cv_path_GTK_CONFIG | |
a848cd7e | 29311 | if test -n "$GTK_CONFIG"; then |
d589327a VZ |
29312 | { echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5 |
29313 | echo "${ECHO_T}$GTK_CONFIG" >&6; } | |
a848cd7e | 29314 | else |
d589327a VZ |
29315 | { echo "$as_me:$LINENO: result: no" >&5 |
29316 | echo "${ECHO_T}no" >&6; } | |
a848cd7e SC |
29317 | fi |
29318 | ||
47964710 | 29319 | |
a848cd7e | 29320 | min_gtk_version=1.2.7 |
d589327a VZ |
29321 | { echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5 |
29322 | echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6; } | |
a848cd7e SC |
29323 | no_gtk="" |
29324 | if test "$GTK_CONFIG" = "no" ; then | |
29325 | no_gtk=yes | |
29326 | else | |
29327 | GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` | |
29328 | GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` | |
29329 | gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
29330 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
29331 | gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
29332 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
29333 | gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
29334 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
29335 | if test "x$enable_gtktest" = "xyes" ; then | |
29336 | ac_save_CFLAGS="$CFLAGS" | |
29337 | ac_save_LIBS="$LIBS" | |
29338 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
29339 | LIBS="$GTK_LIBS $LIBS" | |
29340 | rm -f conf.gtktest | |
29341 | if test "$cross_compiling" = yes; then | |
29342 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
29343 | else | |
29344 | cat >conftest.$ac_ext <<_ACEOF | |
29345 | /* confdefs.h. */ | |
29346 | _ACEOF | |
29347 | cat confdefs.h >>conftest.$ac_ext | |
29348 | cat >>conftest.$ac_ext <<_ACEOF | |
29349 | /* end confdefs.h. */ | |
29350 | ||
29351 | #include <gtk/gtk.h> | |
29352 | #include <stdio.h> | |
29353 | #include <stdlib.h> | |
29354 | ||
29355 | int | |
29356 | main () | |
29357 | { | |
29358 | int major, minor, micro; | |
29359 | char *tmp_version; | |
29360 | ||
29361 | system ("touch conf.gtktest"); | |
29362 | ||
29363 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
29364 | tmp_version = g_strdup("$min_gtk_version"); | |
29365 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
29366 | printf("%s, bad version string\n", "$min_gtk_version"); | |
29367 | exit(1); | |
29368 | } | |
29369 | ||
29370 | if ((gtk_major_version != $gtk_config_major_version) || | |
29371 | (gtk_minor_version != $gtk_config_minor_version) || | |
29372 | (gtk_micro_version != $gtk_config_micro_version)) | |
29373 | { | |
29374 | printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", | |
29375 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, | |
29376 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
29377 | printf ("*** was found! If gtk-config was correct, then it is best\n"); | |
29378 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
29379 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
29380 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
29381 | printf("*** required on your system.\n"); | |
29382 | printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n"); | |
29383 | printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n"); | |
29384 | printf("*** before re-running configure\n"); | |
29385 | } | |
29386 | #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) | |
29387 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
29388 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
29389 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
29390 | { | |
29391 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
29392 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
29393 | printf("*** library (version %d.%d.%d)\n", | |
29394 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
29395 | } | |
29396 | #endif /* defined (GTK_MAJOR_VERSION) ... */ | |
29397 | else | |
29398 | { | |
29399 | if ((gtk_major_version > major) || | |
29400 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
29401 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
29402 | { | |
29403 | return 0; | |
29404 | } | |
29405 | else | |
29406 | { | |
29407 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
29408 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
29409 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
29410 | major, minor, micro); | |
29411 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
29412 | printf("***\n"); | |
29413 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
29414 | printf("*** probably means that the wrong copy of the gtk-config shell script is\n"); | |
29415 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
29416 | printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n"); | |
29417 | printf("*** correct copy of gtk-config. (In this case, you will have to\n"); | |
29418 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
29419 | printf("*** so that the correct libraries are found at run-time))\n"); | |
29420 | } | |
29421 | } | |
29422 | return 1; | |
29423 | } | |
29424 | ||
29425 | _ACEOF | |
29426 | rm -f conftest$ac_exeext | |
47964710 VS |
29427 | if { (ac_try="$ac_link" |
29428 | case "(($ac_try" in | |
29429 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
29430 | *) ac_try_echo=$ac_try;; | |
29431 | esac | |
d589327a | 29432 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 29433 | (eval "$ac_link") 2>&5 |
a848cd7e | 29434 | ac_status=$? |
d589327a | 29435 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
a848cd7e | 29436 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
47964710 VS |
29437 | { (case "(($ac_try" in |
29438 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
29439 | *) ac_try_echo=$ac_try;; | |
29440 | esac | |
d589327a | 29441 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 29442 | (eval "$ac_try") 2>&5 |
a848cd7e | 29443 | ac_status=$? |
d589327a | 29444 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
a848cd7e SC |
29445 | (exit $ac_status); }; }; then |
29446 | : | |
29447 | else | |
d589327a VZ |
29448 | echo "$as_me: program exited with status $ac_status" >&5 |
29449 | echo "$as_me: failed program was:" >&5 | |
a848cd7e SC |
29450 | sed 's/^/| /' conftest.$ac_ext >&5 |
29451 | ||
29452 | ( exit $ac_status ) | |
29453 | no_gtk=yes | |
29454 | fi | |
47964710 | 29455 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 29456 | fi |
47964710 VS |
29457 | |
29458 | ||
a848cd7e SC |
29459 | CFLAGS="$ac_save_CFLAGS" |
29460 | LIBS="$ac_save_LIBS" | |
29461 | fi | |
29462 | fi | |
29463 | if test "x$no_gtk" = x ; then | |
d589327a VZ |
29464 | { echo "$as_me:$LINENO: result: yes" >&5 |
29465 | echo "${ECHO_T}yes" >&6; } | |
a848cd7e SC |
29466 | wx_cv_lib_gtk=1.2.7 |
29467 | else | |
d589327a VZ |
29468 | { echo "$as_me:$LINENO: result: no" >&5 |
29469 | echo "${ECHO_T}no" >&6; } | |
a848cd7e SC |
29470 | if test "$GTK_CONFIG" = "no" ; then |
29471 | echo "*** The gtk-config script installed by GTK could not be found" | |
29472 | echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" | |
29473 | echo "*** your path, or set the GTK_CONFIG environment variable to the" | |
29474 | echo "*** full path to gtk-config." | |
29475 | else | |
29476 | if test -f conf.gtktest ; then | |
29477 | : | |
29478 | else | |
29479 | echo "*** Could not run GTK test program, checking why..." | |
29480 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
29481 | LIBS="$LIBS $GTK_LIBS" | |
29482 | cat >conftest.$ac_ext <<_ACEOF | |
29483 | /* confdefs.h. */ | |
29484 | _ACEOF | |
29485 | cat confdefs.h >>conftest.$ac_ext | |
29486 | cat >>conftest.$ac_ext <<_ACEOF | |
29487 | /* end confdefs.h. */ | |
29488 | ||
29489 | #include <gtk/gtk.h> | |
29490 | #include <stdio.h> | |
29491 | ||
29492 | int | |
29493 | main () | |
29494 | { | |
29495 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
29496 | ; | |
29497 | return 0; | |
29498 | } | |
29499 | _ACEOF | |
29500 | rm -f conftest.$ac_objext conftest$ac_exeext | |
47964710 VS |
29501 | if { (ac_try="$ac_link" |
29502 | case "(($ac_try" in | |
29503 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
29504 | *) ac_try_echo=$ac_try;; | |
29505 | esac | |
d589327a | 29506 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 29507 | (eval "$ac_link") 2>conftest.er1 |
a848cd7e | 29508 | ac_status=$? |
ac1cb8d3 VS |
29509 | grep -v '^ *+' conftest.er1 >conftest.err |
29510 | rm -f conftest.er1 | |
29511 | cat conftest.err >&5 | |
d589327a | 29512 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
29513 | (exit $ac_status); } && { |
29514 | test -z "$ac_c_werror_flag" || | |
29515 | test ! -s conftest.err | |
d589327a VZ |
29516 | } && test -s conftest$ac_exeext && |
29517 | $as_test_x conftest$ac_exeext; then | |
a848cd7e SC |
29518 | echo "*** The test program compiled, but did not run. This usually means" |
29519 | echo "*** that the run-time linker is not finding GTK or finding the wrong" | |
29520 | echo "*** version of GTK. If it is not finding GTK, you'll need to set your" | |
29521 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
29522 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
29523 | echo "*** is required on your system" | |
29524 | echo "***" | |
29525 | echo "*** If you have an old version installed, it is best to remove it, although" | |
29526 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
29527 | echo "***" | |
29528 | echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" | |
29529 | echo "*** came with the system with the command" | |
29530 | echo "***" | |
29531 | echo "*** rpm --erase --nodeps gtk gtk-devel" | |
29532 | else | |
d589327a | 29533 | echo "$as_me: failed program was:" >&5 |
a848cd7e SC |
29534 | sed 's/^/| /' conftest.$ac_ext >&5 |
29535 | ||
47964710 | 29536 | echo "*** The test program failed to compile or link. See the file config.log for the" |
a848cd7e SC |
29537 | echo "*** exact error that occured. This usually means GTK was incorrectly installed" |
29538 | echo "*** or that you have moved GTK since it was installed. In the latter case, you" | |
29539 | echo "*** may want to edit the gtk-config script: $GTK_CONFIG" | |
29540 | fi | |
47964710 VS |
29541 | |
29542 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
ac1cb8d3 | 29543 | conftest$ac_exeext conftest.$ac_ext |
a848cd7e SC |
29544 | CFLAGS="$ac_save_CFLAGS" |
29545 | LIBS="$ac_save_LIBS" | |
29546 | fi | |
29547 | fi | |
29548 | GTK_CFLAGS="" | |
29549 | GTK_LIBS="" | |
29550 | : | |
29551 | fi | |
29552 | ||
29553 | ||
29554 | rm -f conf.gtktest | |
29555 | ||
29556 | ||
f34ca037 | 29557 | if test -z "$wx_cv_lib_gtk"; then |
a848cd7e | 29558 | |
47964710 | 29559 | # Check whether --with-gtk-prefix was given. |
a848cd7e | 29560 | if test "${with_gtk_prefix+set}" = set; then |
47964710 | 29561 | withval=$with_gtk_prefix; gtk_config_prefix="$withval" |
a848cd7e SC |
29562 | else |
29563 | gtk_config_prefix="" | |
47964710 VS |
29564 | fi |
29565 | ||
84ebfcbd | 29566 | |
47964710 | 29567 | # Check whether --with-gtk-exec-prefix was given. |
a848cd7e | 29568 | if test "${with_gtk_exec_prefix+set}" = set; then |
47964710 | 29569 | withval=$with_gtk_exec_prefix; gtk_config_exec_prefix="$withval" |
a848cd7e SC |
29570 | else |
29571 | gtk_config_exec_prefix="" | |
47964710 | 29572 | fi |
bd8a7646 | 29573 | |
47964710 VS |
29574 | # Check whether --enable-gtktest was given. |
29575 | if test "${enable_gtktest+set}" = set; then | |
29576 | enableval=$enable_gtktest; | |
a848cd7e SC |
29577 | else |
29578 | enable_gtktest=yes | |
47964710 VS |
29579 | fi |
29580 | ||
a848cd7e SC |
29581 | |
29582 | for module in . $GTK_MODULES | |
29583 | do | |
29584 | case "$module" in | |
29585 | gthread) | |
29586 | gtk_config_args="$gtk_config_args gthread" | |
29587 | ;; | |
29588 | esac | |
29589 | done | |
29590 | ||
29591 | if test x$gtk_config_exec_prefix != x ; then | |
29592 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
29593 | if test x${GTK_CONFIG+set} != xset ; then | |
29594 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
29595 | fi | |
29596 | fi | |
29597 | if test x$gtk_config_prefix != x ; then | |
29598 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
29599 | if test x${GTK_CONFIG+set} != xset ; then | |
29600 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
29601 | fi | |
29602 | fi | |
29603 | ||
29604 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
29605 | set dummy gtk-config; ac_word=$2 | |
d589327a VZ |
29606 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
29607 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
a848cd7e | 29608 | if test "${ac_cv_path_GTK_CONFIG+set}" = set; then |
d589327a | 29609 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a848cd7e SC |
29610 | else |
29611 | case $GTK_CONFIG in | |
29612 | [\\/]* | ?:[\\/]*) | |
29613 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. | |
29614 | ;; | |
29615 | *) | |
29616 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
29617 | for as_dir in $PATH | |
29618 | do | |
29619 | IFS=$as_save_IFS | |
29620 | test -z "$as_dir" && as_dir=. | |
29621 | for ac_exec_ext in '' $ac_executable_extensions; do | |
47964710 | 29622 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
a848cd7e | 29623 | ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
d589327a | 29624 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
a848cd7e SC |
29625 | break 2 |
29626 | fi | |
29627 | done | |
29628 | done | |
47964710 | 29629 | IFS=$as_save_IFS |
a848cd7e SC |
29630 | |
29631 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" | |
29632 | ;; | |
29633 | esac | |
29634 | fi | |
29635 | GTK_CONFIG=$ac_cv_path_GTK_CONFIG | |
a848cd7e | 29636 | if test -n "$GTK_CONFIG"; then |
d589327a VZ |
29637 | { echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5 |
29638 | echo "${ECHO_T}$GTK_CONFIG" >&6; } | |
a848cd7e | 29639 | else |
d589327a VZ |
29640 | { echo "$as_me:$LINENO: result: no" >&5 |
29641 | echo "${ECHO_T}no" >&6; } | |
a848cd7e SC |
29642 | fi |
29643 | ||
47964710 | 29644 | |
a848cd7e | 29645 | min_gtk_version=1.2.3 |
d589327a VZ |
29646 | { echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5 |
29647 | echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6; } | |
a848cd7e SC |
29648 | no_gtk="" |
29649 | if test "$GTK_CONFIG" = "no" ; then | |
29650 | no_gtk=yes | |
29651 | else | |
29652 | GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` | |
29653 | GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` | |
29654 | gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
29655 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
29656 | gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
29657 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
29658 | gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
29659 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
29660 | if test "x$enable_gtktest" = "xyes" ; then | |
29661 | ac_save_CFLAGS="$CFLAGS" | |
29662 | ac_save_LIBS="$LIBS" | |
29663 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
29664 | LIBS="$GTK_LIBS $LIBS" | |
29665 | rm -f conf.gtktest | |
29666 | if test "$cross_compiling" = yes; then | |
29667 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
29668 | else | |
29669 | cat >conftest.$ac_ext <<_ACEOF | |
29670 | /* confdefs.h. */ | |
29671 | _ACEOF | |
29672 | cat confdefs.h >>conftest.$ac_ext | |
29673 | cat >>conftest.$ac_ext <<_ACEOF | |
29674 | /* end confdefs.h. */ | |
29675 | ||
29676 | #include <gtk/gtk.h> | |
29677 | #include <stdio.h> | |
29678 | #include <stdlib.h> | |
29679 | ||
29680 | int | |
29681 | main () | |
29682 | { | |
29683 | int major, minor, micro; | |
29684 | char *tmp_version; | |
29685 | ||
29686 | system ("touch conf.gtktest"); | |
29687 | ||
29688 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
29689 | tmp_version = g_strdup("$min_gtk_version"); | |
29690 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
29691 | printf("%s, bad version string\n", "$min_gtk_version"); | |
29692 | exit(1); | |
29693 | } | |
29694 | ||
29695 | if ((gtk_major_version != $gtk_config_major_version) || | |
29696 | (gtk_minor_version != $gtk_config_minor_version) || | |
29697 | (gtk_micro_version != $gtk_config_micro_version)) | |
29698 | { | |
29699 | printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", | |
29700 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, | |
29701 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
29702 | printf ("*** was found! If gtk-config was correct, then it is best\n"); | |
29703 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
29704 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
29705 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
29706 | printf("*** required on your system.\n"); | |
29707 | printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n"); | |
29708 | printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n"); | |
29709 | printf("*** before re-running configure\n"); | |
29710 | } | |
29711 | #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) | |
29712 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
29713 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
29714 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
29715 | { | |
29716 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
29717 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
29718 | printf("*** library (version %d.%d.%d)\n", | |
29719 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
29720 | } | |
29721 | #endif /* defined (GTK_MAJOR_VERSION) ... */ | |
29722 | else | |
29723 | { | |
29724 | if ((gtk_major_version > major) || | |
29725 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
29726 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
29727 | { | |
29728 | return 0; | |
29729 | } | |
29730 | else | |
29731 | { | |
29732 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
29733 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
29734 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
29735 | major, minor, micro); | |
29736 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
29737 | printf("***\n"); | |
29738 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
29739 | printf("*** probably means that the wrong copy of the gtk-config shell script is\n"); | |
29740 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
29741 | printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n"); | |
29742 | printf("*** correct copy of gtk-config. (In this case, you will have to\n"); | |
29743 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
29744 | printf("*** so that the correct libraries are found at run-time))\n"); | |
29745 | } | |
29746 | } | |
29747 | return 1; | |
29748 | } | |
29749 | ||
29750 | _ACEOF | |
29751 | rm -f conftest$ac_exeext | |
47964710 VS |
29752 | if { (ac_try="$ac_link" |
29753 | case "(($ac_try" in | |
29754 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
29755 | *) ac_try_echo=$ac_try;; | |
29756 | esac | |
d589327a | 29757 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 29758 | (eval "$ac_link") 2>&5 |
a848cd7e | 29759 | ac_status=$? |
d589327a | 29760 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
a848cd7e | 29761 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
47964710 VS |
29762 | { (case "(($ac_try" in |
29763 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
29764 | *) ac_try_echo=$ac_try;; | |
29765 | esac | |
d589327a | 29766 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 29767 | (eval "$ac_try") 2>&5 |
a848cd7e | 29768 | ac_status=$? |
d589327a | 29769 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
a848cd7e SC |
29770 | (exit $ac_status); }; }; then |
29771 | : | |
29772 | else | |
d589327a VZ |
29773 | echo "$as_me: program exited with status $ac_status" >&5 |
29774 | echo "$as_me: failed program was:" >&5 | |
a848cd7e SC |
29775 | sed 's/^/| /' conftest.$ac_ext >&5 |
29776 | ||
29777 | ( exit $ac_status ) | |
29778 | no_gtk=yes | |
29779 | fi | |
47964710 | 29780 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 29781 | fi |
47964710 VS |
29782 | |
29783 | ||
a848cd7e SC |
29784 | CFLAGS="$ac_save_CFLAGS" |
29785 | LIBS="$ac_save_LIBS" | |
29786 | fi | |
29787 | fi | |
29788 | if test "x$no_gtk" = x ; then | |
d589327a VZ |
29789 | { echo "$as_me:$LINENO: result: yes" >&5 |
29790 | echo "${ECHO_T}yes" >&6; } | |
a848cd7e SC |
29791 | wx_cv_lib_gtk=1.2.3 |
29792 | else | |
d589327a VZ |
29793 | { echo "$as_me:$LINENO: result: no" >&5 |
29794 | echo "${ECHO_T}no" >&6; } | |
a848cd7e SC |
29795 | if test "$GTK_CONFIG" = "no" ; then |
29796 | echo "*** The gtk-config script installed by GTK could not be found" | |
29797 | echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" | |
29798 | echo "*** your path, or set the GTK_CONFIG environment variable to the" | |
29799 | echo "*** full path to gtk-config." | |
29800 | else | |
29801 | if test -f conf.gtktest ; then | |
29802 | : | |
29803 | else | |
29804 | echo "*** Could not run GTK test program, checking why..." | |
29805 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
29806 | LIBS="$LIBS $GTK_LIBS" | |
29807 | cat >conftest.$ac_ext <<_ACEOF | |
29808 | /* confdefs.h. */ | |
29809 | _ACEOF | |
29810 | cat confdefs.h >>conftest.$ac_ext | |
29811 | cat >>conftest.$ac_ext <<_ACEOF | |
29812 | /* end confdefs.h. */ | |
29813 | ||
29814 | #include <gtk/gtk.h> | |
29815 | #include <stdio.h> | |
29816 | ||
29817 | int | |
29818 | main () | |
29819 | { | |
29820 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
29821 | ; | |
29822 | return 0; | |
29823 | } | |
29824 | _ACEOF | |
29825 | rm -f conftest.$ac_objext conftest$ac_exeext | |
47964710 VS |
29826 | if { (ac_try="$ac_link" |
29827 | case "(($ac_try" in | |
29828 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
29829 | *) ac_try_echo=$ac_try;; | |
29830 | esac | |
d589327a | 29831 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 29832 | (eval "$ac_link") 2>conftest.er1 |
a848cd7e | 29833 | ac_status=$? |
ac1cb8d3 VS |
29834 | grep -v '^ *+' conftest.er1 >conftest.err |
29835 | rm -f conftest.er1 | |
29836 | cat conftest.err >&5 | |
d589327a | 29837 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
29838 | (exit $ac_status); } && { |
29839 | test -z "$ac_c_werror_flag" || | |
29840 | test ! -s conftest.err | |
d589327a VZ |
29841 | } && test -s conftest$ac_exeext && |
29842 | $as_test_x conftest$ac_exeext; then | |
a848cd7e SC |
29843 | echo "*** The test program compiled, but did not run. This usually means" |
29844 | echo "*** that the run-time linker is not finding GTK or finding the wrong" | |
29845 | echo "*** version of GTK. If it is not finding GTK, you'll need to set your" | |
29846 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
29847 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
29848 | echo "*** is required on your system" | |
29849 | echo "***" | |
29850 | echo "*** If you have an old version installed, it is best to remove it, although" | |
29851 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
29852 | echo "***" | |
29853 | echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" | |
29854 | echo "*** came with the system with the command" | |
29855 | echo "***" | |
29856 | echo "*** rpm --erase --nodeps gtk gtk-devel" | |
29857 | else | |
d589327a | 29858 | echo "$as_me: failed program was:" >&5 |
a848cd7e SC |
29859 | sed 's/^/| /' conftest.$ac_ext >&5 |
29860 | ||
47964710 | 29861 | echo "*** The test program failed to compile or link. See the file config.log for the" |
a848cd7e SC |
29862 | echo "*** exact error that occured. This usually means GTK was incorrectly installed" |
29863 | echo "*** or that you have moved GTK since it was installed. In the latter case, you" | |
29864 | echo "*** may want to edit the gtk-config script: $GTK_CONFIG" | |
29865 | fi | |
47964710 VS |
29866 | |
29867 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
ac1cb8d3 | 29868 | conftest$ac_exeext conftest.$ac_ext |
a848cd7e SC |
29869 | CFLAGS="$ac_save_CFLAGS" |
29870 | LIBS="$ac_save_LIBS" | |
29871 | fi | |
29872 | fi | |
29873 | GTK_CFLAGS="" | |
29874 | GTK_LIBS="" | |
29875 | : | |
29876 | fi | |
29877 | ||
29878 | ||
29879 | rm -f conf.gtktest | |
29880 | ||
f34ca037 | 29881 | fi |
a848cd7e SC |
29882 | fi |
29883 | fi | |
29884 | ||
29885 | if test -z "$wx_cv_lib_gtk"; then | |
29886 | wx_cv_lib_gtk=none | |
29887 | else | |
29888 | wx_cv_cflags_gtk=$GTK_CFLAGS | |
d2822091 | 29889 | wx_cv_libs_gtk=`echo $GTK_LIBS | sed -e 's/ -l[^ ]*cairo[^ ]*//g'` |
a848cd7e SC |
29890 | fi |
29891 | ||
29892 | ||
29893 | fi | |
29894 | ||
29895 | ||
29896 | if test "$gtk_version_cached" = 1; then | |
d589327a VZ |
29897 | { echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5 |
29898 | echo "${ECHO_T}$wx_cv_lib_gtk" >&6; } | |
a848cd7e SC |
29899 | fi |
29900 | ||
29901 | case "$wx_cv_lib_gtk" in | |
88262190 | 29902 | 2.0) WXGTK2=1 |
a848cd7e SC |
29903 | TOOLKIT_VERSION=2 |
29904 | ;; | |
29905 | 1.2.7) WXGTK127=1 | |
29906 | WXGTK12=1 | |
29907 | ;; | |
29908 | 1.2.3) WXGTK12=1 | |
29909 | ;; | |
d589327a | 29910 | *) { { echo "$as_me:$LINENO: error: |
f597b41c MW |
29911 | The development files for GTK+ were not found. For GTK+ 2, please |
29912 | ensure that pkg-config is in the path and that gtk+-2.0.pc is | |
29913 | installed. For GTK+ 1.2 please check that gtk-config is in the path, | |
29914 | and that the version is 1.2.3 or above. Also check that the | |
29915 | libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config | |
29916 | --libs' are in the LD_LIBRARY_PATH or equivalent. | |
a848cd7e | 29917 | " >&5 |
d589327a | 29918 | echo "$as_me: error: |
f597b41c MW |
29919 | The development files for GTK+ were not found. For GTK+ 2, please |
29920 | ensure that pkg-config is in the path and that gtk+-2.0.pc is | |
29921 | installed. For GTK+ 1.2 please check that gtk-config is in the path, | |
29922 | and that the version is 1.2.3 or above. Also check that the | |
29923 | libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config | |
29924 | --libs' are in the LD_LIBRARY_PATH or equivalent. | |
a848cd7e SC |
29925 | " >&2;} |
29926 | { (exit 1); exit 1; }; } | |
29927 | ;; | |
29928 | esac | |
29929 | ||
88262190 | 29930 | if test "$WXGTK2" = 1; then |
6954625c | 29931 | save_CFLAGS="$CFLAGS" |
304205f1 | 29932 | save_LIBS="$LIBS" |
6954625c | 29933 | CFLAGS="$wx_cv_cflags_gtk $CFLAGS" |
abc736fd | 29934 | LIBS="$LIBS $wx_cv_libs_gtk" |
304205f1 | 29935 | |
d85aece1 VZ |
29936 | { echo "$as_me:$LINENO: checking if GTK+ is version >= 2.18" >&5 |
29937 | echo $ECHO_N "checking if GTK+ is version >= 2.18... $ECHO_C" >&6; } | |
e9263684 VZ |
29938 | cat >conftest.$ac_ext <<_ACEOF |
29939 | /* confdefs.h. */ | |
29940 | _ACEOF | |
29941 | cat confdefs.h >>conftest.$ac_ext | |
29942 | cat >>conftest.$ac_ext <<_ACEOF | |
29943 | /* end confdefs.h. */ | |
29944 | ||
29945 | #include <gtk/gtk.h> | |
29946 | ||
29947 | int | |
29948 | main () | |
29949 | { | |
29950 | ||
d85aece1 VZ |
29951 | #if !GTK_CHECK_VERSION(2,18,0) |
29952 | Not GTK+ 2.18 | |
e9263684 VZ |
29953 | #endif |
29954 | ||
29955 | ; | |
29956 | return 0; | |
29957 | } | |
29958 | _ACEOF | |
29959 | rm -f conftest.$ac_objext | |
47964710 VS |
29960 | if { (ac_try="$ac_compile" |
29961 | case "(($ac_try" in | |
29962 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
29963 | *) ac_try_echo=$ac_try;; | |
29964 | esac | |
d589327a | 29965 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 29966 | (eval "$ac_compile") 2>conftest.er1 |
e9263684 VZ |
29967 | ac_status=$? |
29968 | grep -v '^ *+' conftest.er1 >conftest.err | |
29969 | rm -f conftest.er1 | |
29970 | cat conftest.err >&5 | |
d589327a | 29971 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
29972 | (exit $ac_status); } && { |
29973 | test -z "$ac_c_werror_flag" || | |
29974 | test ! -s conftest.err | |
29975 | } && test -s conftest.$ac_objext; then | |
e9263684 | 29976 | |
d85aece1 VZ |
29977 | cat >>confdefs.h <<\_ACEOF |
29978 | #define __WXGTK218__ 1 | |
29979 | _ACEOF | |
29980 | ||
a48b6595 VZ |
29981 | cat >>confdefs.h <<\_ACEOF |
29982 | #define __WXGTK210__ 1 | |
29983 | _ACEOF | |
29984 | ||
e9263684 VZ |
29985 | cat >>confdefs.h <<\_ACEOF |
29986 | #define __WXGTK26__ 1 | |
e9263684 VZ |
29987 | _ACEOF |
29988 | ||
d589327a VZ |
29989 | { echo "$as_me:$LINENO: result: yes" >&5 |
29990 | echo "${ECHO_T}yes" >&6; } | |
d85aece1 | 29991 | ac_wxgtk218=1 |
e9263684 VZ |
29992 | |
29993 | else | |
d589327a | 29994 | echo "$as_me: failed program was:" >&5 |
e9263684 VZ |
29995 | sed 's/^/| /' conftest.$ac_ext >&5 |
29996 | ||
29997 | ||
d589327a VZ |
29998 | { echo "$as_me:$LINENO: result: no" >&5 |
29999 | echo "${ECHO_T}no" >&6; } | |
d85aece1 | 30000 | ac_wxgtk218=0 |
a48b6595 VZ |
30001 | |
30002 | fi | |
47964710 VS |
30003 | |
30004 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
a48b6595 | 30005 | |
d85aece1 VZ |
30006 | if test "$ac_wxgtk218" = 0; then |
30007 | { echo "$as_me:$LINENO: checking if GTK+ is version >= 2.10" >&5 | |
30008 | echo $ECHO_N "checking if GTK+ is version >= 2.10... $ECHO_C" >&6; } | |
a48b6595 VZ |
30009 | cat >conftest.$ac_ext <<_ACEOF |
30010 | /* confdefs.h. */ | |
30011 | _ACEOF | |
30012 | cat confdefs.h >>conftest.$ac_ext | |
30013 | cat >>conftest.$ac_ext <<_ACEOF | |
30014 | /* end confdefs.h. */ | |
30015 | ||
30016 | #include <gtk/gtk.h> | |
30017 | ||
30018 | int | |
30019 | main () | |
30020 | { | |
30021 | ||
d85aece1 VZ |
30022 | #if !GTK_CHECK_VERSION(2,10,0) |
30023 | Not GTK+ 2.10 | |
a48b6595 VZ |
30024 | #endif |
30025 | ||
30026 | ; | |
30027 | return 0; | |
30028 | } | |
30029 | _ACEOF | |
30030 | rm -f conftest.$ac_objext | |
47964710 VS |
30031 | if { (ac_try="$ac_compile" |
30032 | case "(($ac_try" in | |
30033 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
30034 | *) ac_try_echo=$ac_try;; | |
30035 | esac | |
d589327a | 30036 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 30037 | (eval "$ac_compile") 2>conftest.er1 |
a48b6595 VZ |
30038 | ac_status=$? |
30039 | grep -v '^ *+' conftest.er1 >conftest.err | |
30040 | rm -f conftest.er1 | |
30041 | cat conftest.err >&5 | |
d589327a | 30042 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
30043 | (exit $ac_status); } && { |
30044 | test -z "$ac_c_werror_flag" || | |
30045 | test ! -s conftest.err | |
30046 | } && test -s conftest.$ac_objext; then | |
a48b6595 | 30047 | |
d85aece1 VZ |
30048 | cat >>confdefs.h <<\_ACEOF |
30049 | #define __WXGTK210__ 1 | |
30050 | _ACEOF | |
30051 | ||
a48b6595 VZ |
30052 | cat >>confdefs.h <<\_ACEOF |
30053 | #define __WXGTK26__ 1 | |
a48b6595 VZ |
30054 | _ACEOF |
30055 | ||
d589327a VZ |
30056 | { echo "$as_me:$LINENO: result: yes" >&5 |
30057 | echo "${ECHO_T}yes" >&6; } | |
d85aece1 | 30058 | ac_wxgtk210=1 |
a48b6595 VZ |
30059 | |
30060 | else | |
d589327a | 30061 | echo "$as_me: failed program was:" >&5 |
a48b6595 VZ |
30062 | sed 's/^/| /' conftest.$ac_ext >&5 |
30063 | ||
30064 | ||
d589327a VZ |
30065 | { echo "$as_me:$LINENO: result: no" >&5 |
30066 | echo "${ECHO_T}no" >&6; } | |
d85aece1 VZ |
30067 | ac_wxgtk210=0 |
30068 | ||
30069 | fi | |
30070 | ||
30071 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
30072 | ||
30073 | if test "$ac_wxgtk210" = 0; then | |
30074 | { echo "$as_me:$LINENO: checking if GTK+ is version >= 2.6" >&5 | |
30075 | echo $ECHO_N "checking if GTK+ is version >= 2.6... $ECHO_C" >&6; } | |
30076 | cat >conftest.$ac_ext <<_ACEOF | |
30077 | /* confdefs.h. */ | |
30078 | _ACEOF | |
30079 | cat confdefs.h >>conftest.$ac_ext | |
30080 | cat >>conftest.$ac_ext <<_ACEOF | |
30081 | /* end confdefs.h. */ | |
30082 | ||
30083 | #include <gtk/gtk.h> | |
30084 | ||
30085 | int | |
30086 | main () | |
30087 | { | |
30088 | ||
30089 | #if !GTK_CHECK_VERSION(2,6,0) | |
30090 | Not GTK+ 2.6 | |
30091 | #endif | |
30092 | ||
30093 | ; | |
30094 | return 0; | |
30095 | } | |
30096 | _ACEOF | |
30097 | rm -f conftest.$ac_objext | |
30098 | if { (ac_try="$ac_compile" | |
30099 | case "(($ac_try" in | |
30100 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
30101 | *) ac_try_echo=$ac_try;; | |
30102 | esac | |
30103 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
30104 | (eval "$ac_compile") 2>conftest.er1 | |
30105 | ac_status=$? | |
30106 | grep -v '^ *+' conftest.er1 >conftest.err | |
30107 | rm -f conftest.er1 | |
30108 | cat conftest.err >&5 | |
30109 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30110 | (exit $ac_status); } && { | |
30111 | test -z "$ac_c_werror_flag" || | |
30112 | test ! -s conftest.err | |
30113 | } && test -s conftest.$ac_objext; then | |
30114 | ||
30115 | cat >>confdefs.h <<\_ACEOF | |
30116 | #define __WXGTK26__ 1 | |
30117 | _ACEOF | |
30118 | ||
30119 | { echo "$as_me:$LINENO: result: yes" >&5 | |
30120 | echo "${ECHO_T}yes" >&6; } | |
30121 | ac_wxgtk26=1 | |
30122 | ||
30123 | else | |
30124 | echo "$as_me: failed program was:" >&5 | |
30125 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30126 | ||
30127 | ||
30128 | { echo "$as_me:$LINENO: result: no" >&5 | |
30129 | echo "${ECHO_T}no" >&6; } | |
30130 | ac_wxgtk26=0 | |
e9263684 VZ |
30131 | |
30132 | fi | |
47964710 | 30133 | |
47964710 | 30134 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d85aece1 | 30135 | fi |
e9263684 | 30136 | fi |
9755e73b | 30137 | |
6954625c | 30138 | CFLAGS="$save_CFLAGS" |
304205f1 | 30139 | LIBS="$save_LIBS" |
a848cd7e SC |
30140 | else |
30141 | if test "$wxUSE_UNICODE" = "yes"; then | |
d589327a VZ |
30142 | { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5 |
30143 | echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;} | |
a848cd7e SC |
30144 | wxUSE_UNICODE=no |
30145 | fi | |
64b75e64 | 30146 | |
d589327a VZ |
30147 | { echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5 |
30148 | echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6; } | |
64b75e64 | 30149 | if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then |
d589327a | 30150 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
64b75e64 RD |
30151 | else |
30152 | ac_check_lib_save_LIBS=$LIBS | |
30153 | LIBS="-lgdk $LIBS" | |
30154 | cat >conftest.$ac_ext <<_ACEOF | |
30155 | /* confdefs.h. */ | |
30156 | _ACEOF | |
30157 | cat confdefs.h >>conftest.$ac_ext | |
30158 | cat >>conftest.$ac_ext <<_ACEOF | |
30159 | /* end confdefs.h. */ | |
30160 | ||
47964710 VS |
30161 | /* Override any GCC internal prototype to avoid an error. |
30162 | Use char because int might match the return type of a GCC | |
30163 | builtin and then its argument prototype would still apply. */ | |
64b75e64 RD |
30164 | #ifdef __cplusplus |
30165 | extern "C" | |
30166 | #endif | |
64b75e64 RD |
30167 | char gdk_im_open (); |
30168 | int | |
30169 | main () | |
30170 | { | |
47964710 | 30171 | return gdk_im_open (); |
64b75e64 RD |
30172 | ; |
30173 | return 0; | |
30174 | } | |
30175 | _ACEOF | |
30176 | rm -f conftest.$ac_objext conftest$ac_exeext | |
47964710 VS |
30177 | if { (ac_try="$ac_link" |
30178 | case "(($ac_try" in | |
30179 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
30180 | *) ac_try_echo=$ac_try;; | |
30181 | esac | |
d589327a | 30182 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 30183 | (eval "$ac_link") 2>conftest.er1 |
64b75e64 RD |
30184 | ac_status=$? |
30185 | grep -v '^ *+' conftest.er1 >conftest.err | |
30186 | rm -f conftest.er1 | |
30187 | cat conftest.err >&5 | |
d589327a | 30188 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
30189 | (exit $ac_status); } && { |
30190 | test -z "$ac_c_werror_flag" || | |
30191 | test ! -s conftest.err | |
d589327a VZ |
30192 | } && test -s conftest$ac_exeext && |
30193 | $as_test_x conftest$ac_exeext; then | |
64b75e64 RD |
30194 | ac_cv_lib_gdk_gdk_im_open=yes |
30195 | else | |
d589327a | 30196 | echo "$as_me: failed program was:" >&5 |
64b75e64 RD |
30197 | sed 's/^/| /' conftest.$ac_ext >&5 |
30198 | ||
47964710 | 30199 | ac_cv_lib_gdk_gdk_im_open=no |
64b75e64 | 30200 | fi |
47964710 VS |
30201 | |
30202 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
64b75e64 RD |
30203 | conftest$ac_exeext conftest.$ac_ext |
30204 | LIBS=$ac_check_lib_save_LIBS | |
30205 | fi | |
d589327a VZ |
30206 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5 |
30207 | echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6; } | |
30208 | if test $ac_cv_lib_gdk_gdk_im_open = yes; then | |
64b75e64 RD |
30209 | cat >>confdefs.h <<\_ACEOF |
30210 | #define HAVE_XIM 1 | |
30211 | _ACEOF | |
30212 | ||
30213 | fi | |
30214 | ||
a848cd7e | 30215 | |
7fd3acaf | 30216 | if test "$USE_DARWIN" != 1; then |
a848cd7e SC |
30217 | |
30218 | for ac_func in poll | |
30219 | do | |
d589327a VZ |
30220 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
30221 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
30222 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
47964710 | 30223 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
d589327a | 30224 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a848cd7e SC |
30225 | else |
30226 | cat >conftest.$ac_ext <<_ACEOF | |
30227 | /* confdefs.h. */ | |
30228 | _ACEOF | |
30229 | cat confdefs.h >>conftest.$ac_ext | |
30230 | cat >>conftest.$ac_ext <<_ACEOF | |
30231 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
30232 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
30233 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
30234 | #define $ac_func innocuous_$ac_func | |
30235 | ||
a848cd7e SC |
30236 | /* System header to define __stub macros and hopefully few prototypes, |
30237 | which can conflict with char $ac_func (); below. | |
30238 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
30239 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 30240 | |
a848cd7e SC |
30241 | #ifdef __STDC__ |
30242 | # include <limits.h> | |
30243 | #else | |
30244 | # include <assert.h> | |
30245 | #endif | |
ac1cb8d3 VS |
30246 | |
30247 | #undef $ac_func | |
30248 | ||
47964710 VS |
30249 | /* Override any GCC internal prototype to avoid an error. |
30250 | Use char because int might match the return type of a GCC | |
30251 | builtin and then its argument prototype would still apply. */ | |
a848cd7e SC |
30252 | #ifdef __cplusplus |
30253 | extern "C" | |
a848cd7e | 30254 | #endif |
a848cd7e SC |
30255 | char $ac_func (); |
30256 | /* The GNU C library defines this for functions which it implements | |
30257 | to always fail with ENOSYS. Some functions are actually named | |
30258 | something starting with __ and the normal name is an alias. */ | |
47964710 | 30259 | #if defined __stub_$ac_func || defined __stub___$ac_func |
a848cd7e | 30260 | choke me |
a848cd7e SC |
30261 | #endif |
30262 | ||
30263 | int | |
30264 | main () | |
30265 | { | |
47964710 | 30266 | return $ac_func (); |
a848cd7e SC |
30267 | ; |
30268 | return 0; | |
30269 | } | |
30270 | _ACEOF | |
30271 | rm -f conftest.$ac_objext conftest$ac_exeext | |
47964710 VS |
30272 | if { (ac_try="$ac_link" |
30273 | case "(($ac_try" in | |
30274 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
30275 | *) ac_try_echo=$ac_try;; | |
30276 | esac | |
d589327a | 30277 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 30278 | (eval "$ac_link") 2>conftest.er1 |
a848cd7e | 30279 | ac_status=$? |
ac1cb8d3 VS |
30280 | grep -v '^ *+' conftest.er1 >conftest.err |
30281 | rm -f conftest.er1 | |
30282 | cat conftest.err >&5 | |
d589327a | 30283 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
30284 | (exit $ac_status); } && { |
30285 | test -z "$ac_c_werror_flag" || | |
30286 | test ! -s conftest.err | |
d589327a VZ |
30287 | } && test -s conftest$ac_exeext && |
30288 | $as_test_x conftest$ac_exeext; then | |
a848cd7e SC |
30289 | eval "$as_ac_var=yes" |
30290 | else | |
d589327a | 30291 | echo "$as_me: failed program was:" >&5 |
a848cd7e SC |
30292 | sed 's/^/| /' conftest.$ac_ext >&5 |
30293 | ||
47964710 | 30294 | eval "$as_ac_var=no" |
a848cd7e | 30295 | fi |
47964710 VS |
30296 | |
30297 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
ac1cb8d3 | 30298 | conftest$ac_exeext conftest.$ac_ext |
a848cd7e | 30299 | fi |
d589327a VZ |
30300 | ac_res=`eval echo '${'$as_ac_var'}'` |
30301 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
30302 | echo "${ECHO_T}$ac_res" >&6; } | |
30303 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
a848cd7e | 30304 | cat >>confdefs.h <<_ACEOF |
d589327a | 30305 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
a848cd7e SC |
30306 | _ACEOF |
30307 | ||
30308 | fi | |
30309 | done | |
30310 | ||
7fd3acaf | 30311 | fi |
a848cd7e SC |
30312 | fi |
30313 | ||
30314 | TOOLKIT_INCLUDE="$wx_cv_cflags_gtk" | |
30315 | GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY" | |
30316 | ||
a12bd55b VZ |
30317 | TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE -DG_DISABLE_CAST_CHECKS" |
30318 | ||
a848cd7e SC |
30319 | AFMINSTALL=afminstall |
30320 | TOOLKIT=GTK | |
30321 | GUIDIST=GTK_DIST | |
30322 | ||
a848cd7e | 30323 | if test "$wxUSE_GPE" = "yes"; then |
d589327a VZ |
30324 | { echo "$as_me:$LINENO: checking for gpewidget library" >&5 |
30325 | echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6; } | |
a848cd7e | 30326 | |
0ad5d837 VZ |
30327 | ac_find_libraries= |
30328 | for ac_dir in $SEARCH_LIB; | |
a848cd7e | 30329 | do |
3eca31dc | 30330 | for ac_extension in a so sl dylib dll.a; do |
a848cd7e SC |
30331 | if test -f "$ac_dir/libgpewidget.$ac_extension"; then |
30332 | ac_find_libraries=$ac_dir | |
30333 | break 2 | |
30334 | fi | |
30335 | done | |
30336 | done | |
30337 | ||
30338 | if test "$ac_find_libraries" != "" ; then | |
30339 | ||
0ad5d837 | 30340 | if test "$ac_find_libraries" = "default location"; then |
a848cd7e SC |
30341 | ac_path_to_link="" |
30342 | else | |
0ad5d837 VZ |
30343 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null |
30344 | result=$? | |
30345 | if test $result = 0; then | |
30346 | ac_path_to_link="" | |
30347 | else | |
30348 | ac_path_to_link=" -L$ac_find_libraries" | |
30349 | fi | |
a848cd7e SC |
30350 | fi |
30351 | ||
30352 | GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY" | |
30353 | WXGPE=1 | |
d589327a VZ |
30354 | { echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5 |
30355 | echo "${ECHO_T}found in $ac_find_libraries" >&6; } | |
a848cd7e | 30356 | else |
d589327a VZ |
30357 | { echo "$as_me:$LINENO: result: not found" >&5 |
30358 | echo "${ECHO_T}not found" >&6; } | |
a848cd7e SC |
30359 | fi |
30360 | ||
30361 | fi | |
30362 | fi | |
30363 | ||
30364 | if test "$wxUSE_MGL" = 1; then | |
d589327a VZ |
30365 | { echo "$as_me:$LINENO: checking for SciTech MGL library" >&5 |
30366 | echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6; } | |
a848cd7e | 30367 | if test "x$MGL_ROOT" = x ; then |
d589327a VZ |
30368 | { echo "$as_me:$LINENO: result: not found" >&5 |
30369 | echo "${ECHO_T}not found" >&6; } | |
30370 | { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5 | |
30371 | echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;} | |
a848cd7e SC |
30372 | { (exit 1); exit 1; }; } |
30373 | else | |
d589327a VZ |
30374 | { echo "$as_me:$LINENO: result: $MGL_ROOT" >&5 |
30375 | echo "${ECHO_T}$MGL_ROOT" >&6; } | |
a848cd7e SC |
30376 | fi |
30377 | ||
d589327a VZ |
30378 | { echo "$as_me:$LINENO: checking for libmgl location" >&5 |
30379 | echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6; } | |
a848cd7e SC |
30380 | case "${host}" in |
30381 | *-*-linux* ) | |
30382 | if test "x$wxUSE_SHARED" = xyes ; then | |
30383 | mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc" | |
30384 | else | |
30385 | mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so" | |
30386 | fi | |
30387 | ;; | |
30388 | *-pc-msdosdjgpp ) | |
30389 | mgl_os_candidates="dos32/dj2" | |
30390 | ;; | |
30391 | *) | |
d589327a VZ |
30392 | { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5 |
30393 | echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;} | |
a848cd7e SC |
30394 | { (exit 1); exit 1; }; } |
30395 | esac | |
30396 | ||
30397 | mgl_lib_type="" | |
30398 | mgl_os="" | |
30399 | ||
30400 | for mgl_os_i in $mgl_os_candidates ; do | |
30401 | if test "x$mgl_os" = x ; then | |
30402 | if test "$wxUSE_DEBUG_FLAG" = yes ; then | |
30403 | if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \ | |
30404 | -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then | |
30405 | mgl_lib_type=debug | |
30406 | mgl_os=$mgl_os_i | |
30407 | fi | |
30408 | fi | |
30409 | if test "x$mgl_lib_type" = x ; then | |
30410 | if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \ | |
30411 | -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then | |
30412 | mgl_lib_type=release | |
30413 | mgl_os=$mgl_os_i | |
30414 | fi | |
30415 | fi | |
30416 | fi | |
30417 | done | |
30418 | ||
30419 | if test "x$mgl_os" = x ; then | |
d589327a VZ |
30420 | { echo "$as_me:$LINENO: result: not found" >&5 |
30421 | echo "${ECHO_T}not found" >&6; } | |
30422 | { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5 | |
30423 | echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;} | |
a848cd7e SC |
30424 | { (exit 1); exit 1; }; } |
30425 | fi | |
d589327a VZ |
30426 | { echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5 |
30427 | echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6; } | |
a848cd7e SC |
30428 | |
30429 | wxUSE_UNIVERSAL="yes" | |
30430 | ||
30431 | TOOLKIT_INCLUDE="-I$MGL_ROOT/include" | |
30432 | GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm" | |
30433 | ||
30434 | AFMINSTALL=afminstall | |
30435 | TOOLKIT=MGL | |
30436 | GUIDIST=MGL_DIST | |
30437 | fi | |
30438 | ||
b3c86150 VS |
30439 | if test "$wxUSE_DFB" = 1; then |
30440 | ||
30441 | ||
30442 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then | |
30443 | if test -n "$ac_tool_prefix"; then | |
30444 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. | |
30445 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 | |
d589327a VZ |
30446 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
30447 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
b3c86150 | 30448 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then |
d589327a | 30449 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
b3c86150 VS |
30450 | else |
30451 | case $PKG_CONFIG in | |
30452 | [\\/]* | ?:[\\/]*) | |
30453 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
30454 | ;; | |
30455 | *) | |
30456 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
30457 | for as_dir in $PATH | |
30458 | do | |
30459 | IFS=$as_save_IFS | |
30460 | test -z "$as_dir" && as_dir=. | |
30461 | for ac_exec_ext in '' $ac_executable_extensions; do | |
47964710 | 30462 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
b3c86150 | 30463 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
d589327a | 30464 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b3c86150 VS |
30465 | break 2 |
30466 | fi | |
30467 | done | |
30468 | done | |
47964710 | 30469 | IFS=$as_save_IFS |
b3c86150 VS |
30470 | |
30471 | ;; | |
30472 | esac | |
30473 | fi | |
30474 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
b3c86150 | 30475 | if test -n "$PKG_CONFIG"; then |
d589327a VZ |
30476 | { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 |
30477 | echo "${ECHO_T}$PKG_CONFIG" >&6; } | |
b3c86150 | 30478 | else |
d589327a VZ |
30479 | { echo "$as_me:$LINENO: result: no" >&5 |
30480 | echo "${ECHO_T}no" >&6; } | |
b3c86150 VS |
30481 | fi |
30482 | ||
47964710 | 30483 | |
b3c86150 VS |
30484 | fi |
30485 | if test -z "$ac_cv_path_PKG_CONFIG"; then | |
30486 | ac_pt_PKG_CONFIG=$PKG_CONFIG | |
30487 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
30488 | set dummy pkg-config; ac_word=$2 | |
d589327a VZ |
30489 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
30490 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
b3c86150 | 30491 | if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then |
d589327a | 30492 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
b3c86150 VS |
30493 | else |
30494 | case $ac_pt_PKG_CONFIG in | |
30495 | [\\/]* | ?:[\\/]*) | |
30496 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. | |
30497 | ;; | |
30498 | *) | |
30499 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
30500 | for as_dir in $PATH | |
30501 | do | |
30502 | IFS=$as_save_IFS | |
30503 | test -z "$as_dir" && as_dir=. | |
30504 | for ac_exec_ext in '' $ac_executable_extensions; do | |
47964710 | 30505 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
b3c86150 | 30506 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
d589327a | 30507 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b3c86150 VS |
30508 | break 2 |
30509 | fi | |
30510 | done | |
30511 | done | |
47964710 | 30512 | IFS=$as_save_IFS |
b3c86150 VS |
30513 | |
30514 | ;; | |
30515 | esac | |
30516 | fi | |
30517 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG | |
b3c86150 | 30518 | if test -n "$ac_pt_PKG_CONFIG"; then |
d589327a VZ |
30519 | { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5 |
30520 | echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; } | |
b3c86150 | 30521 | else |
d589327a VZ |
30522 | { echo "$as_me:$LINENO: result: no" >&5 |
30523 | echo "${ECHO_T}no" >&6; } | |
b3c86150 VS |
30524 | fi |
30525 | ||
47964710 VS |
30526 | if test "x$ac_pt_PKG_CONFIG" = x; then |
30527 | PKG_CONFIG="" | |
30528 | else | |
30529 | case $cross_compiling:$ac_tool_warned in | |
30530 | yes:) | |
d589327a VZ |
30531 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
30532 | whose name does not start with the host triplet. If you think this | |
30533 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
30534 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | |
30535 | whose name does not start with the host triplet. If you think this | |
30536 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
47964710 VS |
30537 | ac_tool_warned=yes ;; |
30538 | esac | |
30539 | PKG_CONFIG=$ac_pt_PKG_CONFIG | |
30540 | fi | |
b3c86150 VS |
30541 | else |
30542 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" | |
30543 | fi | |
30544 | ||
30545 | fi | |
30546 | if test -n "$PKG_CONFIG"; then | |
30547 | _pkg_min_version=0.9.0 | |
d589327a VZ |
30548 | { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5 |
30549 | echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; } | |
b3c86150 | 30550 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then |
d589327a VZ |
30551 | { echo "$as_me:$LINENO: result: yes" >&5 |
30552 | echo "${ECHO_T}yes" >&6; } | |
b3c86150 | 30553 | else |
d589327a VZ |
30554 | { echo "$as_me:$LINENO: result: no" >&5 |
30555 | echo "${ECHO_T}no" >&6; } | |
b3c86150 VS |
30556 | PKG_CONFIG="" |
30557 | fi | |
30558 | ||
30559 | fi | |
30560 | ||
479c790c | 30561 | |
b3c86150 | 30562 | pkg_failed=no |
d589327a VZ |
30563 | { echo "$as_me:$LINENO: checking for DIRECTFB" >&5 |
30564 | echo $ECHO_N "checking for DIRECTFB... $ECHO_C" >&6; } | |
b3c86150 VS |
30565 | |
30566 | if test -n "$PKG_CONFIG"; then | |
30567 | if test -n "$DIRECTFB_CFLAGS"; then | |
30568 | pkg_cv_DIRECTFB_CFLAGS="$DIRECTFB_CFLAGS" | |
30569 | else | |
30570 | if test -n "$PKG_CONFIG" && \ | |
d589327a | 30571 | { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"directfb >= 0.9.23\"") >&5 |
d7ae4a62 | 30572 | ($PKG_CONFIG --exists --print-errors "directfb >= 0.9.23") 2>&5 |
b3c86150 | 30573 | ac_status=$? |
d589327a | 30574 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
b3c86150 | 30575 | (exit $ac_status); }; then |
d7ae4a62 | 30576 | pkg_cv_DIRECTFB_CFLAGS=`$PKG_CONFIG --cflags "directfb >= 0.9.23" 2>/dev/null` |
b3c86150 VS |
30577 | else |
30578 | pkg_failed=yes | |
30579 | fi | |
30580 | fi | |
30581 | else | |
30582 | pkg_failed=untried | |
30583 | fi | |
30584 | if test -n "$PKG_CONFIG"; then | |
30585 | if test -n "$DIRECTFB_LIBS"; then | |
30586 | pkg_cv_DIRECTFB_LIBS="$DIRECTFB_LIBS" | |
30587 | else | |
30588 | if test -n "$PKG_CONFIG" && \ | |
d589327a | 30589 | { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"directfb >= 0.9.23\"") >&5 |
d7ae4a62 | 30590 | ($PKG_CONFIG --exists --print-errors "directfb >= 0.9.23") 2>&5 |
b3c86150 | 30591 | ac_status=$? |
d589327a | 30592 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
b3c86150 | 30593 | (exit $ac_status); }; then |
d7ae4a62 | 30594 | pkg_cv_DIRECTFB_LIBS=`$PKG_CONFIG --libs "directfb >= 0.9.23" 2>/dev/null` |
b3c86150 VS |
30595 | else |
30596 | pkg_failed=yes | |
30597 | fi | |
30598 | fi | |
30599 | else | |
30600 | pkg_failed=untried | |
30601 | fi | |
30602 | ||
30603 | ||
30604 | ||
30605 | if test $pkg_failed = yes; then | |
30606 | ||
30607 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
30608 | _pkg_short_errors_supported=yes | |
30609 | else | |
30610 | _pkg_short_errors_supported=no | |
30611 | fi | |
30612 | if test $_pkg_short_errors_supported = yes; then | |
d7ae4a62 | 30613 | DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "directfb >= 0.9.23"` |
b3c86150 | 30614 | else |
d7ae4a62 | 30615 | DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "directfb >= 0.9.23"` |
b3c86150 VS |
30616 | fi |
30617 | # Put the nasty error message in config.log where it belongs | |
30618 | echo "$DIRECTFB_PKG_ERRORS" >&5 | |
30619 | ||
30620 | ||
d589327a VZ |
30621 | { { echo "$as_me:$LINENO: error: DirectFB not found." >&5 |
30622 | echo "$as_me: error: DirectFB not found." >&2;} | |
b3c86150 VS |
30623 | { (exit 1); exit 1; }; } |
30624 | ||
30625 | ||
30626 | elif test $pkg_failed = untried; then | |
30627 | ||
d589327a VZ |
30628 | { { echo "$as_me:$LINENO: error: DirectFB not found." >&5 |
30629 | echo "$as_me: error: DirectFB not found." >&2;} | |
b3c86150 VS |
30630 | { (exit 1); exit 1; }; } |
30631 | ||
30632 | ||
30633 | else | |
30634 | DIRECTFB_CFLAGS=$pkg_cv_DIRECTFB_CFLAGS | |
30635 | DIRECTFB_LIBS=$pkg_cv_DIRECTFB_LIBS | |
d589327a VZ |
30636 | { echo "$as_me:$LINENO: result: yes" >&5 |
30637 | echo "${ECHO_T}yes" >&6; } | |
b3c86150 VS |
30638 | |
30639 | wxUSE_UNIVERSAL="yes" | |
30640 | TOOLKIT_INCLUDE="$DIRECTFB_CFLAGS" | |
30641 | GUI_TK_LIBRARY="$DIRECTFB_LIBS" | |
30642 | TOOLKIT=DFB | |
30643 | GUIDIST=DFB_DIST | |
30644 | ||
30645 | fi | |
30646 | fi | |
30647 | ||
a848cd7e | 30648 | if test "$wxUSE_MICROWIN" = 1; then |
d589327a VZ |
30649 | { echo "$as_me:$LINENO: checking for MicroWindows" >&5 |
30650 | echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6; } | |
a848cd7e | 30651 | if test "x$MICROWINDOWS" = x ; then |
d589327a VZ |
30652 | { echo "$as_me:$LINENO: result: not found" >&5 |
30653 | echo "${ECHO_T}not found" >&6; } | |
30654 | { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5 | |
30655 | echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;} | |
a848cd7e SC |
30656 | { (exit 1); exit 1; }; } |
30657 | else | |
d589327a VZ |
30658 | { echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5 |
30659 | echo "${ECHO_T}$MICROWINDOWS" >&6; } | |
a848cd7e SC |
30660 | fi |
30661 | ||
30662 | if test -f $MICROWINDOWS/lib/libmwin.a; then | |
d589327a VZ |
30663 | { echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5 |
30664 | echo "${ECHO_T}MicroWindows' libraries found." >&6; } | |
a848cd7e | 30665 | else |
d589327a VZ |
30666 | { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5 |
30667 | echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;} | |
a848cd7e SC |
30668 | { (exit 1); exit 1; }; } |
30669 | fi | |
30670 | ||
30671 | TOOLKIT_INCLUDE="-I$MICROWINDOWS/include" | |
30672 | GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib" | |
30673 | ||
30674 | wxUSE_UNIVERSAL="yes" | |
30675 | ||
30676 | AFMINSTALL=afminstall | |
30677 | TOOLKIT=MICROWIN | |
30678 | GUIDIST=MICROWIN_DIST | |
30679 | ||
30680 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1" | |
30681 | fi | |
30682 | ||
74b84332 | 30683 | if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then |
d589327a VZ |
30684 | { echo "$as_me:$LINENO: checking for X" >&5 |
30685 | echo $ECHO_N "checking for X... $ECHO_C" >&6; } | |
bb9e79c0 | 30686 | |
f321ab7f | 30687 | |
47964710 | 30688 | # Check whether --with-x was given. |
a848cd7e | 30689 | if test "${with_x+set}" = set; then |
47964710 VS |
30690 | withval=$with_x; |
30691 | fi | |
a848cd7e | 30692 | |
a848cd7e SC |
30693 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. |
30694 | if test "x$with_x" = xno; then | |
30695 | # The user explicitly disabled X. | |
30696 | have_x=disabled | |
30697 | else | |
47964710 | 30698 | case $x_includes,$x_libraries in #( |
d589327a VZ |
30699 | *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5 |
30700 | echo "$as_me: error: Cannot use X directory names containing '" >&2;} | |
47964710 VS |
30701 | { (exit 1); exit 1; }; };; #( |
30702 | *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then | |
d589327a | 30703 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a848cd7e SC |
30704 | else |
30705 | # One or both of the vars are not set, and there is no cached value. | |
30706 | ac_x_includes=no ac_x_libraries=no | |
47964710 | 30707 | rm -f -r conftest.dir |
a848cd7e SC |
30708 | if mkdir conftest.dir; then |
30709 | cd conftest.dir | |
a848cd7e | 30710 | cat >Imakefile <<'_ACEOF' |
47964710 VS |
30711 | incroot: |
30712 | @echo incroot='${INCROOT}' | |
30713 | usrlibdir: | |
30714 | @echo usrlibdir='${USRLIBDIR}' | |
30715 | libdir: | |
30716 | @echo libdir='${LIBDIR}' | |
30717 | _ACEOF | |
30718 | if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then | |
a848cd7e | 30719 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
47964710 VS |
30720 | for ac_var in incroot usrlibdir libdir; do |
30721 | eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" | |
30722 | done | |
a848cd7e | 30723 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. |
d589327a | 30724 | for ac_extension in a so sl; do |
47964710 VS |
30725 | if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && |
30726 | test -f "$ac_im_libdir/libX11.$ac_extension"; then | |
ac1cb8d3 | 30727 | ac_im_usrlibdir=$ac_im_libdir; break |
a848cd7e SC |
30728 | fi |
30729 | done | |
30730 | # Screen out bogus values from the imake configuration. They are | |
30731 | # bogus both because they are the default anyway, and because | |
30732 | # using them would break gcc on systems where it needs fixed includes. | |
30733 | case $ac_im_incroot in | |
47964710 | 30734 | /usr/include) ac_x_includes= ;; |
a848cd7e SC |
30735 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; |
30736 | esac | |
30737 | case $ac_im_usrlibdir in | |
d589327a | 30738 | /usr/lib | /lib) ;; |
a848cd7e SC |
30739 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; |
30740 | esac | |
30741 | fi | |
30742 | cd .. | |
47964710 | 30743 | rm -f -r conftest.dir |
a848cd7e SC |
30744 | fi |
30745 | ||
30746 | # Standard set of common directories for X headers. | |
30747 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
30748 | ac_x_header_dirs=' | |
30749 | /usr/X11/include | |
30750 | /usr/X11R6/include | |
30751 | /usr/X11R5/include | |
30752 | /usr/X11R4/include | |
30753 | ||
30754 | /usr/include/X11 | |
30755 | /usr/include/X11R6 | |
30756 | /usr/include/X11R5 | |
30757 | /usr/include/X11R4 | |
30758 | ||
30759 | /usr/local/X11/include | |
30760 | /usr/local/X11R6/include | |
30761 | /usr/local/X11R5/include | |
30762 | /usr/local/X11R4/include | |
30763 | ||
30764 | /usr/local/include/X11 | |
30765 | /usr/local/include/X11R6 | |
30766 | /usr/local/include/X11R5 | |
30767 | /usr/local/include/X11R4 | |
30768 | ||
30769 | /usr/X386/include | |
30770 | /usr/x386/include | |
30771 | /usr/XFree86/include/X11 | |
30772 | ||
30773 | /usr/include | |
30774 | /usr/local/include | |
30775 | /usr/unsupported/include | |
30776 | /usr/athena/include | |
30777 | /usr/local/x11r5/include | |
30778 | /usr/lpp/Xamples/include | |
30779 | ||
30780 | /usr/openwin/include | |
30781 | /usr/openwin/share/include' | |
30782 | ||
30783 | if test "$ac_x_includes" = no; then | |
47964710 | 30784 | # Guess where to find include files, by looking for Xlib.h. |
a848cd7e SC |
30785 | # First, try using that file with no special directory specified. |
30786 | cat >conftest.$ac_ext <<_ACEOF | |
30787 | /* confdefs.h. */ | |
30788 | _ACEOF | |
30789 | cat confdefs.h >>conftest.$ac_ext | |
30790 | cat >>conftest.$ac_ext <<_ACEOF | |
30791 | /* end confdefs.h. */ | |
47964710 | 30792 | #include <X11/Xlib.h> |
a848cd7e | 30793 | _ACEOF |
47964710 VS |
30794 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
30795 | case "(($ac_try" in | |
30796 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
30797 | *) ac_try_echo=$ac_try;; | |
30798 | esac | |
d589327a | 30799 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 30800 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
a848cd7e SC |
30801 | ac_status=$? |
30802 | grep -v '^ *+' conftest.er1 >conftest.err | |
30803 | rm -f conftest.er1 | |
30804 | cat conftest.err >&5 | |
d589327a | 30805 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
30806 | (exit $ac_status); } >/dev/null && { |
30807 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
30808 | test ! -s conftest.err | |
30809 | }; then | |
a848cd7e SC |
30810 | # We can compile using X headers with no special include directory. |
30811 | ac_x_includes= | |
30812 | else | |
d589327a | 30813 | echo "$as_me: failed program was:" >&5 |
a848cd7e SC |
30814 | sed 's/^/| /' conftest.$ac_ext >&5 |
30815 | ||
30816 | for ac_dir in $ac_x_header_dirs; do | |
47964710 | 30817 | if test -r "$ac_dir/X11/Xlib.h"; then |
a848cd7e SC |
30818 | ac_x_includes=$ac_dir |
30819 | break | |
30820 | fi | |
30821 | done | |
30822 | fi | |
47964710 | 30823 | |
a848cd7e SC |
30824 | rm -f conftest.err conftest.$ac_ext |
30825 | fi # $ac_x_includes = no | |
30826 | ||
30827 | if test "$ac_x_libraries" = no; then | |
30828 | # Check for the libraries. | |
30829 | # See if we find them without any special options. | |
30830 | # Don't add to $LIBS permanently. | |
30831 | ac_save_LIBS=$LIBS | |
47964710 | 30832 | LIBS="-lX11 $LIBS" |
a848cd7e SC |
30833 | cat >conftest.$ac_ext <<_ACEOF |
30834 | /* confdefs.h. */ | |
30835 | _ACEOF | |
30836 | cat confdefs.h >>conftest.$ac_ext | |
30837 | cat >>conftest.$ac_ext <<_ACEOF | |
30838 | /* end confdefs.h. */ | |
47964710 | 30839 | #include <X11/Xlib.h> |
a848cd7e SC |
30840 | int |
30841 | main () | |
30842 | { | |
47964710 | 30843 | XrmInitialize () |
a848cd7e SC |
30844 | ; |
30845 | return 0; | |
30846 | } | |
30847 | _ACEOF | |
30848 | rm -f conftest.$ac_objext conftest$ac_exeext | |
47964710 VS |
30849 | if { (ac_try="$ac_link" |
30850 | case "(($ac_try" in | |
30851 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
30852 | *) ac_try_echo=$ac_try;; | |
30853 | esac | |
d589327a | 30854 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 30855 | (eval "$ac_link") 2>conftest.er1 |
a848cd7e | 30856 | ac_status=$? |
ac1cb8d3 VS |
30857 | grep -v '^ *+' conftest.er1 >conftest.err |
30858 | rm -f conftest.er1 | |
30859 | cat conftest.err >&5 | |
d589327a | 30860 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
30861 | (exit $ac_status); } && { |
30862 | test -z "$ac_c_werror_flag" || | |
30863 | test ! -s conftest.err | |
d589327a VZ |
30864 | } && test -s conftest$ac_exeext && |
30865 | $as_test_x conftest$ac_exeext; then | |
a848cd7e SC |
30866 | LIBS=$ac_save_LIBS |
30867 | # We can link X programs with no special library path. | |
30868 | ac_x_libraries= | |
30869 | else | |
d589327a | 30870 | echo "$as_me: failed program was:" >&5 |
a848cd7e SC |
30871 | sed 's/^/| /' conftest.$ac_ext >&5 |
30872 | ||
47964710 | 30873 | LIBS=$ac_save_LIBS |
d589327a | 30874 | for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` |
a848cd7e SC |
30875 | do |
30876 | # Don't even attempt the hair of trying to link an X program! | |
d589327a | 30877 | for ac_extension in a so sl; do |
47964710 | 30878 | if test -r "$ac_dir/libX11.$ac_extension"; then |
a848cd7e SC |
30879 | ac_x_libraries=$ac_dir |
30880 | break 2 | |
30881 | fi | |
30882 | done | |
30883 | done | |
30884 | fi | |
47964710 VS |
30885 | |
30886 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
ac1cb8d3 | 30887 | conftest$ac_exeext conftest.$ac_ext |
a848cd7e SC |
30888 | fi # $ac_x_libraries = no |
30889 | ||
47964710 VS |
30890 | case $ac_x_includes,$ac_x_libraries in #( |
30891 | no,* | *,no | *\'*) | |
30892 | # Didn't find X, or a directory has "'" in its name. | |
30893 | ac_cv_have_x="have_x=no";; #( | |
30894 | *) | |
30895 | # Record where we found X for the cache. | |
30896 | ac_cv_have_x="have_x=yes\ | |
30897 | ac_x_includes='$ac_x_includes'\ | |
30898 | ac_x_libraries='$ac_x_libraries'" | |
30899 | esac | |
bd8a7646 | 30900 | fi |
47964710 VS |
30901 | ;; #( |
30902 | *) have_x=yes;; | |
30903 | esac | |
a848cd7e SC |
30904 | eval "$ac_cv_have_x" |
30905 | fi # $with_x != no | |
30906 | ||
30907 | if test "$have_x" != yes; then | |
d589327a VZ |
30908 | { echo "$as_me:$LINENO: result: $have_x" >&5 |
30909 | echo "${ECHO_T}$have_x" >&6; } | |
a848cd7e SC |
30910 | no_x=yes |
30911 | else | |
30912 | # If each of the values was on the command line, it overrides each guess. | |
30913 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes | |
30914 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries | |
30915 | # Update the cache value to reflect the command line values. | |
47964710 VS |
30916 | ac_cv_have_x="have_x=yes\ |
30917 | ac_x_includes='$x_includes'\ | |
30918 | ac_x_libraries='$x_libraries'" | |
d589327a VZ |
30919 | { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5 |
30920 | echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; } | |
a848cd7e SC |
30921 | fi |
30922 | ||
30923 | if test "$no_x" = yes; then | |
30924 | # Not all programs may use this symbol, but it does not hurt to define it. | |
30925 | ||
30926 | cat >>confdefs.h <<\_ACEOF | |
30927 | #define X_DISPLAY_MISSING 1 | |
30928 | _ACEOF | |
30929 | ||
30930 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= | |
30931 | else | |
30932 | if test -n "$x_includes"; then | |
30933 | X_CFLAGS="$X_CFLAGS -I$x_includes" | |
30934 | fi | |
30935 | ||
30936 | # It would also be nice to do this for all -L options, not just this one. | |
30937 | if test -n "$x_libraries"; then | |
30938 | X_LIBS="$X_LIBS -L$x_libraries" | |
30939 | # For Solaris; some versions of Sun CC require a space after -R and | |
30940 | # others require no space. Words are not sufficient . . . . | |
d589327a VZ |
30941 | { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5 |
30942 | echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; } | |
47964710 VS |
30943 | ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" |
30944 | ac_xsave_c_werror_flag=$ac_c_werror_flag | |
30945 | ac_c_werror_flag=yes | |
30946 | cat >conftest.$ac_ext <<_ACEOF | |
a848cd7e SC |
30947 | /* confdefs.h. */ |
30948 | _ACEOF | |
30949 | cat confdefs.h >>conftest.$ac_ext | |
30950 | cat >>conftest.$ac_ext <<_ACEOF | |
30951 | /* end confdefs.h. */ | |
30952 | ||
30953 | int | |
30954 | main () | |
30955 | { | |
30956 | ||
30957 | ; | |
30958 | return 0; | |
30959 | } | |
30960 | _ACEOF | |
30961 | rm -f conftest.$ac_objext conftest$ac_exeext | |
47964710 VS |
30962 | if { (ac_try="$ac_link" |
30963 | case "(($ac_try" in | |
30964 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
30965 | *) ac_try_echo=$ac_try;; | |
30966 | esac | |
d589327a | 30967 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 30968 | (eval "$ac_link") 2>conftest.er1 |
a848cd7e | 30969 | ac_status=$? |
ac1cb8d3 VS |
30970 | grep -v '^ *+' conftest.er1 >conftest.err |
30971 | rm -f conftest.er1 | |
30972 | cat conftest.err >&5 | |
d589327a | 30973 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
30974 | (exit $ac_status); } && { |
30975 | test -z "$ac_c_werror_flag" || | |
30976 | test ! -s conftest.err | |
d589327a VZ |
30977 | } && test -s conftest$ac_exeext && |
30978 | $as_test_x conftest$ac_exeext; then | |
30979 | { echo "$as_me:$LINENO: result: no" >&5 | |
30980 | echo "${ECHO_T}no" >&6; } | |
47964710 | 30981 | X_LIBS="$X_LIBS -R$x_libraries" |
a848cd7e | 30982 | else |
d589327a | 30983 | echo "$as_me: failed program was:" >&5 |
a848cd7e SC |
30984 | sed 's/^/| /' conftest.$ac_ext >&5 |
30985 | ||
a848cd7e | 30986 | LIBS="$ac_xsave_LIBS -R $x_libraries" |
47964710 | 30987 | cat >conftest.$ac_ext <<_ACEOF |
a848cd7e SC |
30988 | /* confdefs.h. */ |
30989 | _ACEOF | |
30990 | cat confdefs.h >>conftest.$ac_ext | |
30991 | cat >>conftest.$ac_ext <<_ACEOF | |
30992 | /* end confdefs.h. */ | |
30993 | ||
30994 | int | |
30995 | main () | |
30996 | { | |
30997 | ||
30998 | ; | |
30999 | return 0; | |
31000 | } | |
31001 | _ACEOF | |
31002 | rm -f conftest.$ac_objext conftest$ac_exeext | |
47964710 VS |
31003 | if { (ac_try="$ac_link" |
31004 | case "(($ac_try" in | |
31005 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
31006 | *) ac_try_echo=$ac_try;; | |
31007 | esac | |
d589327a | 31008 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 31009 | (eval "$ac_link") 2>conftest.er1 |
a848cd7e | 31010 | ac_status=$? |
ac1cb8d3 VS |
31011 | grep -v '^ *+' conftest.er1 >conftest.err |
31012 | rm -f conftest.er1 | |
31013 | cat conftest.err >&5 | |
d589327a | 31014 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
31015 | (exit $ac_status); } && { |
31016 | test -z "$ac_c_werror_flag" || | |
31017 | test ! -s conftest.err | |
d589327a VZ |
31018 | } && test -s conftest$ac_exeext && |
31019 | $as_test_x conftest$ac_exeext; then | |
31020 | { echo "$as_me:$LINENO: result: yes" >&5 | |
31021 | echo "${ECHO_T}yes" >&6; } | |
47964710 | 31022 | X_LIBS="$X_LIBS -R $x_libraries" |
a848cd7e | 31023 | else |
d589327a | 31024 | echo "$as_me: failed program was:" >&5 |
a848cd7e SC |
31025 | sed 's/^/| /' conftest.$ac_ext >&5 |
31026 | ||
d589327a VZ |
31027 | { echo "$as_me:$LINENO: result: neither works" >&5 |
31028 | echo "${ECHO_T}neither works" >&6; } | |
faa5c14f | 31029 | fi |
47964710 VS |
31030 | |
31031 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
faa5c14f | 31032 | conftest$ac_exeext conftest.$ac_ext |
47964710 VS |
31033 | fi |
31034 | ||
31035 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
31036 | conftest$ac_exeext conftest.$ac_ext | |
31037 | ac_c_werror_flag=$ac_xsave_c_werror_flag | |
31038 | LIBS=$ac_xsave_LIBS | |
a848cd7e SC |
31039 | fi |
31040 | ||
31041 | # Check for system-dependent libraries X programs must link with. | |
31042 | # Do this before checking for the system-independent R6 libraries | |
31043 | # (-lICE), since we may need -lsocket or whatever for X linking. | |
31044 | ||
31045 | if test "$ISC" = yes; then | |
31046 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" | |
31047 | else | |
31048 | # Martyn Johnson says this is needed for Ultrix, if the X | |
31049 | # libraries were built with DECnet support. And Karl Berry says | |
31050 | # the Alpha needs dnet_stub (dnet does not exist). | |
31051 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" | |
31052 | cat >conftest.$ac_ext <<_ACEOF | |
31053 | /* confdefs.h. */ | |
31054 | _ACEOF | |
31055 | cat confdefs.h >>conftest.$ac_ext | |
31056 | cat >>conftest.$ac_ext <<_ACEOF | |
31057 | /* end confdefs.h. */ | |
31058 | ||
47964710 VS |
31059 | /* Override any GCC internal prototype to avoid an error. |
31060 | Use char because int might match the return type of a GCC | |
31061 | builtin and then its argument prototype would still apply. */ | |
a848cd7e SC |
31062 | #ifdef __cplusplus |
31063 | extern "C" | |
31064 | #endif | |
a848cd7e SC |
31065 | char XOpenDisplay (); |
31066 | int | |
31067 | main () | |
31068 | { | |
47964710 | 31069 | return XOpenDisplay (); |
a848cd7e SC |
31070 | ; |
31071 | return 0; | |
31072 | } | |
31073 | _ACEOF | |
31074 | rm -f conftest.$ac_objext conftest$ac_exeext | |
47964710 VS |
31075 | if { (ac_try="$ac_link" |
31076 | case "(($ac_try" in | |
31077 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
31078 | *) ac_try_echo=$ac_try;; | |
31079 | esac | |
d589327a | 31080 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 31081 | (eval "$ac_link") 2>conftest.er1 |
a848cd7e | 31082 | ac_status=$? |
ac1cb8d3 VS |
31083 | grep -v '^ *+' conftest.er1 >conftest.err |
31084 | rm -f conftest.er1 | |
31085 | cat conftest.err >&5 | |
d589327a | 31086 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
31087 | (exit $ac_status); } && { |
31088 | test -z "$ac_c_werror_flag" || | |
31089 | test ! -s conftest.err | |
d589327a VZ |
31090 | } && test -s conftest$ac_exeext && |
31091 | $as_test_x conftest$ac_exeext; then | |
a848cd7e SC |
31092 | : |
31093 | else | |
d589327a | 31094 | echo "$as_me: failed program was:" >&5 |
a848cd7e SC |
31095 | sed 's/^/| /' conftest.$ac_ext >&5 |
31096 | ||
d589327a VZ |
31097 | { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5 |
31098 | echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; } | |
a848cd7e | 31099 | if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then |
d589327a | 31100 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a848cd7e SC |
31101 | else |
31102 | ac_check_lib_save_LIBS=$LIBS | |
31103 | LIBS="-ldnet $LIBS" | |
31104 | cat >conftest.$ac_ext <<_ACEOF | |
31105 | /* confdefs.h. */ | |
31106 | _ACEOF | |
31107 | cat confdefs.h >>conftest.$ac_ext | |
31108 | cat >>conftest.$ac_ext <<_ACEOF | |
31109 | /* end confdefs.h. */ | |
31110 | ||
47964710 VS |
31111 | /* Override any GCC internal prototype to avoid an error. |
31112 | Use char because int might match the return type of a GCC | |
31113 | builtin and then its argument prototype would still apply. */ | |
a848cd7e SC |
31114 | #ifdef __cplusplus |
31115 | extern "C" | |
31116 | #endif | |
a848cd7e SC |
31117 | char dnet_ntoa (); |
31118 | int | |
31119 | main () | |
31120 | { | |
47964710 | 31121 | return dnet_ntoa (); |
a848cd7e SC |
31122 | ; |
31123 | return 0; | |
31124 | } | |
31125 | _ACEOF | |
31126 | rm -f conftest.$ac_objext conftest$ac_exeext | |
47964710 VS |
31127 | if { (ac_try="$ac_link" |
31128 | case "(($ac_try" in | |
31129 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
31130 | *) ac_try_echo=$ac_try;; | |
31131 | esac | |
d589327a | 31132 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 31133 | (eval "$ac_link") 2>conftest.er1 |
a848cd7e | 31134 | ac_status=$? |
ac1cb8d3 VS |
31135 | grep -v '^ *+' conftest.er1 >conftest.err |
31136 | rm -f conftest.er1 | |
31137 | cat conftest.err >&5 | |
d589327a | 31138 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
31139 | (exit $ac_status); } && { |
31140 | test -z "$ac_c_werror_flag" || | |
31141 | test ! -s conftest.err | |
d589327a VZ |
31142 | } && test -s conftest$ac_exeext && |
31143 | $as_test_x conftest$ac_exeext; then | |
a848cd7e SC |
31144 | ac_cv_lib_dnet_dnet_ntoa=yes |
31145 | else | |
d589327a | 31146 | echo "$as_me: failed program was:" >&5 |
a848cd7e SC |
31147 | sed 's/^/| /' conftest.$ac_ext >&5 |
31148 | ||
47964710 | 31149 | ac_cv_lib_dnet_dnet_ntoa=no |
a848cd7e | 31150 | fi |
47964710 VS |
31151 | |
31152 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
ac1cb8d3 | 31153 | conftest$ac_exeext conftest.$ac_ext |
a848cd7e SC |
31154 | LIBS=$ac_check_lib_save_LIBS |
31155 | fi | |
d589327a VZ |
31156 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 |
31157 | echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; } | |
31158 | if test $ac_cv_lib_dnet_dnet_ntoa = yes; then | |
a848cd7e SC |
31159 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" |
31160 | fi | |
31161 | ||
31162 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then | |
d589327a VZ |
31163 | { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5 |
31164 | echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; } | |
a848cd7e | 31165 | if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then |
d589327a | 31166 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a848cd7e SC |
31167 | else |
31168 | ac_check_lib_save_LIBS=$LIBS | |
31169 | LIBS="-ldnet_stub $LIBS" | |
31170 | cat >conftest.$ac_ext <<_ACEOF | |
31171 | /* confdefs.h. */ | |
31172 | _ACEOF | |
31173 | cat confdefs.h >>conftest.$ac_ext | |
31174 | cat >>conftest.$ac_ext <<_ACEOF | |
31175 | /* end confdefs.h. */ | |
31176 | ||
47964710 VS |
31177 | /* Override any GCC internal prototype to avoid an error. |
31178 | Use char because int might match the return type of a GCC | |
31179 | builtin and then its argument prototype would still apply. */ | |
a848cd7e SC |
31180 | #ifdef __cplusplus |
31181 | extern "C" | |
31182 | #endif | |
a848cd7e SC |
31183 | char dnet_ntoa (); |
31184 | int | |
31185 | main () | |
31186 | { | |
47964710 | 31187 | return dnet_ntoa (); |
a848cd7e SC |
31188 | ; |
31189 | return 0; | |
31190 | } | |
31191 | _ACEOF | |
31192 | rm -f conftest.$ac_objext conftest$ac_exeext | |
47964710 VS |
31193 | if { (ac_try="$ac_link" |
31194 | case "(($ac_try" in | |
31195 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
31196 | *) ac_try_echo=$ac_try;; | |
31197 | esac | |
d589327a | 31198 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 31199 | (eval "$ac_link") 2>conftest.er1 |
a848cd7e | 31200 | ac_status=$? |
ac1cb8d3 VS |
31201 | grep -v '^ *+' conftest.er1 >conftest.err |
31202 | rm -f conftest.er1 | |
31203 | cat conftest.err >&5 | |
d589327a | 31204 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
31205 | (exit $ac_status); } && { |
31206 | test -z "$ac_c_werror_flag" || | |
31207 | test ! -s conftest.err | |
d589327a VZ |
31208 | } && test -s conftest$ac_exeext && |
31209 | $as_test_x conftest$ac_exeext; then | |
a848cd7e SC |
31210 | ac_cv_lib_dnet_stub_dnet_ntoa=yes |
31211 | else | |
d589327a | 31212 | echo "$as_me: failed program was:" >&5 |
a848cd7e SC |
31213 | sed 's/^/| /' conftest.$ac_ext >&5 |
31214 | ||
47964710 | 31215 | ac_cv_lib_dnet_stub_dnet_ntoa=no |
a848cd7e | 31216 | fi |
47964710 VS |
31217 | |
31218 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
ac1cb8d3 | 31219 | conftest$ac_exeext conftest.$ac_ext |
a848cd7e SC |
31220 | LIBS=$ac_check_lib_save_LIBS |
31221 | fi | |
d589327a VZ |
31222 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 |
31223 | echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; } | |
31224 | if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then | |
a848cd7e SC |
31225 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" |
31226 | fi | |
31227 | ||
31228 | fi | |
31229 | fi | |
47964710 VS |
31230 | |
31231 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
ac1cb8d3 | 31232 | conftest$ac_exeext conftest.$ac_ext |
a848cd7e SC |
31233 | LIBS="$ac_xsave_LIBS" |
31234 | ||
31235 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, | |
31236 | # to get the SysV transport functions. | |
31237 | # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) | |
31238 | # needs -lnsl. | |
31239 | # The nsl library prevents programs from opening the X display | |
31240 | # on Irix 5.2, according to T.E. Dickey. | |
31241 | # The functions gethostbyname, getservbyname, and inet_addr are | |
31242 | # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. | |
d589327a VZ |
31243 | { echo "$as_me:$LINENO: checking for gethostbyname" >&5 |
31244 | echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; } | |
a848cd7e | 31245 | if test "${ac_cv_func_gethostbyname+set}" = set; then |
d589327a | 31246 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a848cd7e SC |
31247 | else |
31248 | cat >conftest.$ac_ext <<_ACEOF | |
31249 | /* confdefs.h. */ | |
31250 | _ACEOF | |
31251 | cat confdefs.h >>conftest.$ac_ext | |
31252 | cat >>conftest.$ac_ext <<_ACEOF | |
31253 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
31254 | /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname. |
31255 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
31256 | #define gethostbyname innocuous_gethostbyname | |
31257 | ||
a848cd7e SC |
31258 | /* System header to define __stub macros and hopefully few prototypes, |
31259 | which can conflict with char gethostbyname (); below. | |
31260 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
31261 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 31262 | |
a848cd7e SC |
31263 | #ifdef __STDC__ |
31264 | # include <limits.h> | |
31265 | #else | |
31266 | # include <assert.h> | |
31267 | #endif | |
ac1cb8d3 VS |
31268 | |
31269 | #undef gethostbyname | |
31270 | ||
47964710 VS |
31271 | /* Override any GCC internal prototype to avoid an error. |
31272 | Use char because int might match the return type of a GCC | |
31273 | builtin and then its argument prototype would still apply. */ | |
a848cd7e SC |
31274 | #ifdef __cplusplus |
31275 | extern "C" | |
a848cd7e | 31276 | #endif |
a848cd7e SC |
31277 | char gethostbyname (); |
31278 | /* The GNU C library defines this for functions which it implements | |
31279 | to always fail with ENOSYS. Some functions are actually named | |
31280 | something starting with __ and the normal name is an alias. */ | |
47964710 | 31281 | #if defined __stub_gethostbyname || defined __stub___gethostbyname |
a848cd7e | 31282 | choke me |
a848cd7e SC |
31283 | #endif |
31284 | ||
31285 | int | |
31286 | main () | |
31287 | { | |
47964710 | 31288 | return gethostbyname (); |
a848cd7e SC |
31289 | ; |
31290 | return 0; | |
31291 | } | |
31292 | _ACEOF | |
31293 | rm -f conftest.$ac_objext conftest$ac_exeext | |
47964710 VS |
31294 | if { (ac_try="$ac_link" |
31295 | case "(($ac_try" in | |
31296 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
31297 | *) ac_try_echo=$ac_try;; | |
31298 | esac | |
d589327a | 31299 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 31300 | (eval "$ac_link") 2>conftest.er1 |
a848cd7e | 31301 | ac_status=$? |
ac1cb8d3 VS |
31302 | grep -v '^ *+' conftest.er1 >conftest.err |
31303 | rm -f conftest.er1 | |
31304 | cat conftest.err >&5 | |
d589327a | 31305 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
31306 | (exit $ac_status); } && { |
31307 | test -z "$ac_c_werror_flag" || | |
31308 | test ! -s conftest.err | |
d589327a VZ |
31309 | } && test -s conftest$ac_exeext && |
31310 | $as_test_x conftest$ac_exeext; then | |
a848cd7e SC |
31311 | ac_cv_func_gethostbyname=yes |
31312 | else | |
d589327a | 31313 | echo "$as_me: failed program was:" >&5 |
a848cd7e SC |
31314 | sed 's/^/| /' conftest.$ac_ext >&5 |
31315 | ||
47964710 | 31316 | ac_cv_func_gethostbyname=no |
a848cd7e | 31317 | fi |
47964710 VS |
31318 | |
31319 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
ac1cb8d3 | 31320 | conftest$ac_exeext conftest.$ac_ext |
a848cd7e | 31321 | fi |
d589327a VZ |
31322 | { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5 |
31323 | echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; } | |
a848cd7e SC |
31324 | |
31325 | if test $ac_cv_func_gethostbyname = no; then | |
d589327a VZ |
31326 | { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 |
31327 | echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; } | |
a848cd7e | 31328 | if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then |
d589327a | 31329 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a848cd7e SC |
31330 | else |
31331 | ac_check_lib_save_LIBS=$LIBS | |
31332 | LIBS="-lnsl $LIBS" | |
31333 | cat >conftest.$ac_ext <<_ACEOF | |
31334 | /* confdefs.h. */ | |
31335 | _ACEOF | |
31336 | cat confdefs.h >>conftest.$ac_ext | |
31337 | cat >>conftest.$ac_ext <<_ACEOF | |
31338 | /* end confdefs.h. */ | |
31339 | ||
47964710 VS |
31340 | /* Override any GCC internal prototype to avoid an error. |
31341 | Use char because int might match the return type of a GCC | |
31342 | builtin and then its argument prototype would still apply. */ | |
a848cd7e SC |
31343 | #ifdef __cplusplus |
31344 | extern "C" | |
31345 | #endif | |
a848cd7e SC |
31346 | char gethostbyname (); |
31347 | int | |
31348 | main () | |
31349 | { | |
47964710 | 31350 | return gethostbyname (); |
a848cd7e SC |
31351 | ; |
31352 | return 0; | |
31353 | } | |
31354 | _ACEOF | |
31355 | rm -f conftest.$ac_objext conftest$ac_exeext | |
47964710 VS |
31356 | if { (ac_try="$ac_link" |
31357 | case "(($ac_try" in | |
31358 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
31359 | *) ac_try_echo=$ac_try;; | |
31360 | esac | |
d589327a | 31361 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 31362 | (eval "$ac_link") 2>conftest.er1 |
ac1cb8d3 VS |
31363 | ac_status=$? |
31364 | grep -v '^ *+' conftest.er1 >conftest.err | |
31365 | rm -f conftest.er1 | |
31366 | cat conftest.err >&5 | |
d589327a | 31367 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
31368 | (exit $ac_status); } && { |
31369 | test -z "$ac_c_werror_flag" || | |
31370 | test ! -s conftest.err | |
d589327a VZ |
31371 | } && test -s conftest$ac_exeext && |
31372 | $as_test_x conftest$ac_exeext; then | |
ac1cb8d3 VS |
31373 | ac_cv_lib_nsl_gethostbyname=yes |
31374 | else | |
d589327a | 31375 | echo "$as_me: failed program was:" >&5 |
ac1cb8d3 VS |
31376 | sed 's/^/| /' conftest.$ac_ext >&5 |
31377 | ||
47964710 | 31378 | ac_cv_lib_nsl_gethostbyname=no |
ac1cb8d3 | 31379 | fi |
47964710 VS |
31380 | |
31381 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
ac1cb8d3 VS |
31382 | conftest$ac_exeext conftest.$ac_ext |
31383 | LIBS=$ac_check_lib_save_LIBS | |
31384 | fi | |
d589327a VZ |
31385 | { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 |
31386 | echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; } | |
31387 | if test $ac_cv_lib_nsl_gethostbyname = yes; then | |
ac1cb8d3 VS |
31388 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" |
31389 | fi | |
31390 | ||
31391 | if test $ac_cv_lib_nsl_gethostbyname = no; then | |
d589327a VZ |
31392 | { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5 |
31393 | echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; } | |
ac1cb8d3 | 31394 | if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then |
d589327a | 31395 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ac1cb8d3 VS |
31396 | else |
31397 | ac_check_lib_save_LIBS=$LIBS | |
31398 | LIBS="-lbsd $LIBS" | |
31399 | cat >conftest.$ac_ext <<_ACEOF | |
31400 | /* confdefs.h. */ | |
31401 | _ACEOF | |
31402 | cat confdefs.h >>conftest.$ac_ext | |
31403 | cat >>conftest.$ac_ext <<_ACEOF | |
31404 | /* end confdefs.h. */ | |
31405 | ||
47964710 VS |
31406 | /* Override any GCC internal prototype to avoid an error. |
31407 | Use char because int might match the return type of a GCC | |
31408 | builtin and then its argument prototype would still apply. */ | |
ac1cb8d3 VS |
31409 | #ifdef __cplusplus |
31410 | extern "C" | |
31411 | #endif | |
ac1cb8d3 VS |
31412 | char gethostbyname (); |
31413 | int | |
31414 | main () | |
31415 | { | |
47964710 | 31416 | return gethostbyname (); |
ac1cb8d3 VS |
31417 | ; |
31418 | return 0; | |
31419 | } | |
31420 | _ACEOF | |
31421 | rm -f conftest.$ac_objext conftest$ac_exeext | |
47964710 VS |
31422 | if { (ac_try="$ac_link" |
31423 | case "(($ac_try" in | |
31424 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
31425 | *) ac_try_echo=$ac_try;; | |
31426 | esac | |
d589327a | 31427 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 31428 | (eval "$ac_link") 2>conftest.er1 |
a848cd7e | 31429 | ac_status=$? |
ac1cb8d3 VS |
31430 | grep -v '^ *+' conftest.er1 >conftest.err |
31431 | rm -f conftest.er1 | |
31432 | cat conftest.err >&5 | |
d589327a | 31433 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
31434 | (exit $ac_status); } && { |
31435 | test -z "$ac_c_werror_flag" || | |
31436 | test ! -s conftest.err | |
d589327a VZ |
31437 | } && test -s conftest$ac_exeext && |
31438 | $as_test_x conftest$ac_exeext; then | |
a848cd7e SC |
31439 | ac_cv_lib_bsd_gethostbyname=yes |
31440 | else | |
d589327a | 31441 | echo "$as_me: failed program was:" >&5 |
a848cd7e SC |
31442 | sed 's/^/| /' conftest.$ac_ext >&5 |
31443 | ||
47964710 | 31444 | ac_cv_lib_bsd_gethostbyname=no |
a848cd7e | 31445 | fi |
47964710 VS |
31446 | |
31447 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
ac1cb8d3 | 31448 | conftest$ac_exeext conftest.$ac_ext |
a848cd7e SC |
31449 | LIBS=$ac_check_lib_save_LIBS |
31450 | fi | |
d589327a VZ |
31451 | { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5 |
31452 | echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; } | |
31453 | if test $ac_cv_lib_bsd_gethostbyname = yes; then | |
a848cd7e SC |
31454 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" |
31455 | fi | |
31456 | ||
31457 | fi | |
31458 | fi | |
31459 | ||
31460 | # lieder@skyler.mavd.honeywell.com says without -lsocket, | |
31461 | # socket/setsockopt and other routines are undefined under SCO ODT | |
31462 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary | |
31463 | # on later versions), says Simon Leinen: it contains gethostby* | |
31464 | # variants that don't use the name server (or something). -lsocket | |
31465 | # must be given before -lnsl if both are needed. We assume that | |
31466 | # if connect needs -lnsl, so does gethostbyname. | |
d589327a VZ |
31467 | { echo "$as_me:$LINENO: checking for connect" >&5 |
31468 | echo $ECHO_N "checking for connect... $ECHO_C" >&6; } | |
a848cd7e | 31469 | if test "${ac_cv_func_connect+set}" = set; then |
d589327a | 31470 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a848cd7e SC |
31471 | else |
31472 | cat >conftest.$ac_ext <<_ACEOF | |
31473 | /* confdefs.h. */ | |
31474 | _ACEOF | |
31475 | cat confdefs.h >>conftest.$ac_ext | |
31476 | cat >>conftest.$ac_ext <<_ACEOF | |
31477 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
31478 | /* Define connect to an innocuous variant, in case <limits.h> declares connect. |
31479 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
31480 | #define connect innocuous_connect | |
31481 | ||
a848cd7e SC |
31482 | /* System header to define __stub macros and hopefully few prototypes, |
31483 | which can conflict with char connect (); below. | |
31484 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
31485 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 31486 | |
a848cd7e SC |
31487 | #ifdef __STDC__ |
31488 | # include <limits.h> | |
31489 | #else | |
31490 | # include <assert.h> | |
31491 | #endif | |
ac1cb8d3 VS |
31492 | |
31493 | #undef connect | |
31494 | ||
47964710 VS |
31495 | /* Override any GCC internal prototype to avoid an error. |
31496 | Use char because int might match the return type of a GCC | |
31497 | builtin and then its argument prototype would still apply. */ | |
a848cd7e SC |
31498 | #ifdef __cplusplus |
31499 | extern "C" | |
a848cd7e | 31500 | #endif |
a848cd7e SC |
31501 | char connect (); |
31502 | /* The GNU C library defines this for functions which it implements | |
31503 | to always fail with ENOSYS. Some functions are actually named | |
31504 | something starting with __ and the normal name is an alias. */ | |
47964710 | 31505 | #if defined __stub_connect || defined __stub___connect |
a848cd7e | 31506 | choke me |
a848cd7e SC |
31507 | #endif |
31508 | ||
31509 | int | |
31510 | main () | |
31511 | { | |
47964710 | 31512 | return connect (); |
a848cd7e SC |
31513 | ; |
31514 | return 0; | |
31515 | } | |
31516 | _ACEOF | |
31517 | rm -f conftest.$ac_objext conftest$ac_exeext | |
47964710 VS |
31518 | if { (ac_try="$ac_link" |
31519 | case "(($ac_try" in | |
31520 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
31521 | *) ac_try_echo=$ac_try;; | |
31522 | esac | |
d589327a | 31523 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 31524 | (eval "$ac_link") 2>conftest.er1 |
a848cd7e | 31525 | ac_status=$? |
ac1cb8d3 VS |
31526 | grep -v '^ *+' conftest.er1 >conftest.err |
31527 | rm -f conftest.er1 | |
31528 | cat conftest.err >&5 | |
d589327a | 31529 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
31530 | (exit $ac_status); } && { |
31531 | test -z "$ac_c_werror_flag" || | |
31532 | test ! -s conftest.err | |
d589327a VZ |
31533 | } && test -s conftest$ac_exeext && |
31534 | $as_test_x conftest$ac_exeext; then | |
a848cd7e SC |
31535 | ac_cv_func_connect=yes |
31536 | else | |
d589327a | 31537 | echo "$as_me: failed program was:" >&5 |
a848cd7e SC |
31538 | sed 's/^/| /' conftest.$ac_ext >&5 |
31539 | ||
47964710 | 31540 | ac_cv_func_connect=no |
a848cd7e | 31541 | fi |
47964710 VS |
31542 | |
31543 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
ac1cb8d3 | 31544 | conftest$ac_exeext conftest.$ac_ext |
a848cd7e | 31545 | fi |
d589327a VZ |
31546 | { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5 |
31547 | echo "${ECHO_T}$ac_cv_func_connect" >&6; } | |
a848cd7e SC |
31548 | |
31549 | if test $ac_cv_func_connect = no; then | |
d589327a VZ |
31550 | { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5 |
31551 | echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; } | |
a848cd7e | 31552 | if test "${ac_cv_lib_socket_connect+set}" = set; then |
d589327a | 31553 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a848cd7e SC |
31554 | else |
31555 | ac_check_lib_save_LIBS=$LIBS | |
31556 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" | |
31557 | cat >conftest.$ac_ext <<_ACEOF | |
31558 | /* confdefs.h. */ | |
31559 | _ACEOF | |
31560 | cat confdefs.h >>conftest.$ac_ext | |
31561 | cat >>conftest.$ac_ext <<_ACEOF | |
31562 | /* end confdefs.h. */ | |
31563 | ||
47964710 VS |
31564 | /* Override any GCC internal prototype to avoid an error. |
31565 | Use char because int might match the return type of a GCC | |
31566 | builtin and then its argument prototype would still apply. */ | |
a848cd7e SC |
31567 | #ifdef __cplusplus |
31568 | extern "C" | |
31569 | #endif | |
a848cd7e SC |
31570 | char connect (); |
31571 | int | |
31572 | main () | |
31573 | { | |
47964710 | 31574 | return connect (); |
a848cd7e SC |
31575 | ; |
31576 | return 0; | |
31577 | } | |
31578 | _ACEOF | |
31579 | rm -f conftest.$ac_objext conftest$ac_exeext | |
47964710 VS |
31580 | if { (ac_try="$ac_link" |
31581 | case "(($ac_try" in | |
31582 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
31583 | *) ac_try_echo=$ac_try;; | |
31584 | esac | |
d589327a | 31585 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 31586 | (eval "$ac_link") 2>conftest.er1 |
a848cd7e | 31587 | ac_status=$? |
ac1cb8d3 VS |
31588 | grep -v '^ *+' conftest.er1 >conftest.err |
31589 | rm -f conftest.er1 | |
31590 | cat conftest.err >&5 | |
d589327a | 31591 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
31592 | (exit $ac_status); } && { |
31593 | test -z "$ac_c_werror_flag" || | |
31594 | test ! -s conftest.err | |
d589327a VZ |
31595 | } && test -s conftest$ac_exeext && |
31596 | $as_test_x conftest$ac_exeext; then | |
a848cd7e SC |
31597 | ac_cv_lib_socket_connect=yes |
31598 | else | |
d589327a | 31599 | echo "$as_me: failed program was:" >&5 |
a848cd7e SC |
31600 | sed 's/^/| /' conftest.$ac_ext >&5 |
31601 | ||
47964710 | 31602 | ac_cv_lib_socket_connect=no |
a848cd7e | 31603 | fi |
47964710 VS |
31604 | |
31605 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
ac1cb8d3 | 31606 | conftest$ac_exeext conftest.$ac_ext |
a848cd7e SC |
31607 | LIBS=$ac_check_lib_save_LIBS |
31608 | fi | |
d589327a VZ |
31609 | { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5 |
31610 | echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; } | |
31611 | if test $ac_cv_lib_socket_connect = yes; then | |
a848cd7e SC |
31612 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" |
31613 | fi | |
31614 | ||
31615 | fi | |
31616 | ||
31617 | # Guillermo Gomez says -lposix is necessary on A/UX. | |
d589327a VZ |
31618 | { echo "$as_me:$LINENO: checking for remove" >&5 |
31619 | echo $ECHO_N "checking for remove... $ECHO_C" >&6; } | |
a848cd7e | 31620 | if test "${ac_cv_func_remove+set}" = set; then |
d589327a | 31621 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a848cd7e SC |
31622 | else |
31623 | cat >conftest.$ac_ext <<_ACEOF | |
31624 | /* confdefs.h. */ | |
31625 | _ACEOF | |
31626 | cat confdefs.h >>conftest.$ac_ext | |
31627 | cat >>conftest.$ac_ext <<_ACEOF | |
31628 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
31629 | /* Define remove to an innocuous variant, in case <limits.h> declares remove. |
31630 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
31631 | #define remove innocuous_remove | |
31632 | ||
a848cd7e SC |
31633 | /* System header to define __stub macros and hopefully few prototypes, |
31634 | which can conflict with char remove (); below. | |
31635 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
31636 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 31637 | |
a848cd7e SC |
31638 | #ifdef __STDC__ |
31639 | # include <limits.h> | |
31640 | #else | |
31641 | # include <assert.h> | |
31642 | #endif | |
ac1cb8d3 VS |
31643 | |
31644 | #undef remove | |
31645 | ||
47964710 VS |
31646 | /* Override any GCC internal prototype to avoid an error. |
31647 | Use char because int might match the return type of a GCC | |
31648 | builtin and then its argument prototype would still apply. */ | |
a848cd7e SC |
31649 | #ifdef __cplusplus |
31650 | extern "C" | |
a848cd7e | 31651 | #endif |
a848cd7e SC |
31652 | char remove (); |
31653 | /* The GNU C library defines this for functions which it implements | |
31654 | to always fail with ENOSYS. Some functions are actually named | |
31655 | something starting with __ and the normal name is an alias. */ | |
47964710 | 31656 | #if defined __stub_remove || defined __stub___remove |
a848cd7e | 31657 | choke me |
a848cd7e SC |
31658 | #endif |
31659 | ||
31660 | int | |
31661 | main () | |
31662 | { | |
47964710 | 31663 | return remove (); |
a848cd7e SC |
31664 | ; |
31665 | return 0; | |
31666 | } | |
31667 | _ACEOF | |
31668 | rm -f conftest.$ac_objext conftest$ac_exeext | |
47964710 VS |
31669 | if { (ac_try="$ac_link" |
31670 | case "(($ac_try" in | |
31671 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
31672 | *) ac_try_echo=$ac_try;; | |
31673 | esac | |
d589327a | 31674 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 31675 | (eval "$ac_link") 2>conftest.er1 |
a848cd7e | 31676 | ac_status=$? |
ac1cb8d3 VS |
31677 | grep -v '^ *+' conftest.er1 >conftest.err |
31678 | rm -f conftest.er1 | |
31679 | cat conftest.err >&5 | |
d589327a | 31680 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
31681 | (exit $ac_status); } && { |
31682 | test -z "$ac_c_werror_flag" || | |
31683 | test ! -s conftest.err | |
d589327a VZ |
31684 | } && test -s conftest$ac_exeext && |
31685 | $as_test_x conftest$ac_exeext; then | |
a848cd7e SC |
31686 | ac_cv_func_remove=yes |
31687 | else | |
d589327a | 31688 | echo "$as_me: failed program was:" >&5 |
a848cd7e SC |
31689 | sed 's/^/| /' conftest.$ac_ext >&5 |
31690 | ||
47964710 | 31691 | ac_cv_func_remove=no |
a848cd7e | 31692 | fi |
47964710 VS |
31693 | |
31694 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
ac1cb8d3 | 31695 | conftest$ac_exeext conftest.$ac_ext |
a848cd7e | 31696 | fi |
d589327a VZ |
31697 | { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5 |
31698 | echo "${ECHO_T}$ac_cv_func_remove" >&6; } | |
a848cd7e SC |
31699 | |
31700 | if test $ac_cv_func_remove = no; then | |
d589327a VZ |
31701 | { echo "$as_me:$LINENO: checking for remove in -lposix" >&5 |
31702 | echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; } | |
a848cd7e | 31703 | if test "${ac_cv_lib_posix_remove+set}" = set; then |
d589327a | 31704 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a848cd7e SC |
31705 | else |
31706 | ac_check_lib_save_LIBS=$LIBS | |
31707 | LIBS="-lposix $LIBS" | |
31708 | cat >conftest.$ac_ext <<_ACEOF | |
31709 | /* confdefs.h. */ | |
31710 | _ACEOF | |
31711 | cat confdefs.h >>conftest.$ac_ext | |
31712 | cat >>conftest.$ac_ext <<_ACEOF | |
31713 | /* end confdefs.h. */ | |
31714 | ||
47964710 VS |
31715 | /* Override any GCC internal prototype to avoid an error. |
31716 | Use char because int might match the return type of a GCC | |
31717 | builtin and then its argument prototype would still apply. */ | |
a848cd7e SC |
31718 | #ifdef __cplusplus |
31719 | extern "C" | |
31720 | #endif | |
a848cd7e SC |
31721 | char remove (); |
31722 | int | |
31723 | main () | |
31724 | { | |
47964710 | 31725 | return remove (); |
a848cd7e SC |
31726 | ; |
31727 | return 0; | |
31728 | } | |
31729 | _ACEOF | |
31730 | rm -f conftest.$ac_objext conftest$ac_exeext | |
47964710 VS |
31731 | if { (ac_try="$ac_link" |
31732 | case "(($ac_try" in | |
31733 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
31734 | *) ac_try_echo=$ac_try;; | |
31735 | esac | |
d589327a | 31736 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 31737 | (eval "$ac_link") 2>conftest.er1 |
a848cd7e | 31738 | ac_status=$? |
ac1cb8d3 VS |
31739 | grep -v '^ *+' conftest.er1 >conftest.err |
31740 | rm -f conftest.er1 | |
31741 | cat conftest.err >&5 | |
d589327a | 31742 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
31743 | (exit $ac_status); } && { |
31744 | test -z "$ac_c_werror_flag" || | |
31745 | test ! -s conftest.err | |
d589327a VZ |
31746 | } && test -s conftest$ac_exeext && |
31747 | $as_test_x conftest$ac_exeext; then | |
a848cd7e SC |
31748 | ac_cv_lib_posix_remove=yes |
31749 | else | |
d589327a | 31750 | echo "$as_me: failed program was:" >&5 |
a848cd7e SC |
31751 | sed 's/^/| /' conftest.$ac_ext >&5 |
31752 | ||
47964710 | 31753 | ac_cv_lib_posix_remove=no |
a848cd7e | 31754 | fi |
47964710 VS |
31755 | |
31756 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
ac1cb8d3 | 31757 | conftest$ac_exeext conftest.$ac_ext |
a848cd7e SC |
31758 | LIBS=$ac_check_lib_save_LIBS |
31759 | fi | |
d589327a VZ |
31760 | { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5 |
31761 | echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; } | |
31762 | if test $ac_cv_lib_posix_remove = yes; then | |
a848cd7e SC |
31763 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" |
31764 | fi | |
31765 | ||
31766 | fi | |
31767 | ||
31768 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. | |
d589327a VZ |
31769 | { echo "$as_me:$LINENO: checking for shmat" >&5 |
31770 | echo $ECHO_N "checking for shmat... $ECHO_C" >&6; } | |
a848cd7e | 31771 | if test "${ac_cv_func_shmat+set}" = set; then |
d589327a | 31772 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a848cd7e SC |
31773 | else |
31774 | cat >conftest.$ac_ext <<_ACEOF | |
31775 | /* confdefs.h. */ | |
31776 | _ACEOF | |
31777 | cat confdefs.h >>conftest.$ac_ext | |
31778 | cat >>conftest.$ac_ext <<_ACEOF | |
31779 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
31780 | /* Define shmat to an innocuous variant, in case <limits.h> declares shmat. |
31781 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
31782 | #define shmat innocuous_shmat | |
31783 | ||
a848cd7e SC |
31784 | /* System header to define __stub macros and hopefully few prototypes, |
31785 | which can conflict with char shmat (); below. | |
31786 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
31787 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 31788 | |
a848cd7e SC |
31789 | #ifdef __STDC__ |
31790 | # include <limits.h> | |
31791 | #else | |
31792 | # include <assert.h> | |
31793 | #endif | |
ac1cb8d3 VS |
31794 | |
31795 | #undef shmat | |
31796 | ||
47964710 VS |
31797 | /* Override any GCC internal prototype to avoid an error. |
31798 | Use char because int might match the return type of a GCC | |
31799 | builtin and then its argument prototype would still apply. */ | |
a848cd7e SC |
31800 | #ifdef __cplusplus |
31801 | extern "C" | |
a848cd7e | 31802 | #endif |
a848cd7e SC |
31803 | char shmat (); |
31804 | /* The GNU C library defines this for functions which it implements | |
31805 | to always fail with ENOSYS. Some functions are actually named | |
31806 | something starting with __ and the normal name is an alias. */ | |
47964710 | 31807 | #if defined __stub_shmat || defined __stub___shmat |
a848cd7e | 31808 | choke me |
a848cd7e SC |
31809 | #endif |
31810 | ||
31811 | int | |
31812 | main () | |
31813 | { | |
47964710 | 31814 | return shmat (); |
a848cd7e SC |
31815 | ; |
31816 | return 0; | |
31817 | } | |
31818 | _ACEOF | |
31819 | rm -f conftest.$ac_objext conftest$ac_exeext | |
47964710 VS |
31820 | if { (ac_try="$ac_link" |
31821 | case "(($ac_try" in | |
31822 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
31823 | *) ac_try_echo=$ac_try;; | |
31824 | esac | |
d589327a | 31825 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 31826 | (eval "$ac_link") 2>conftest.er1 |
a848cd7e | 31827 | ac_status=$? |
ac1cb8d3 VS |
31828 | grep -v '^ *+' conftest.er1 >conftest.err |
31829 | rm -f conftest.er1 | |
31830 | cat conftest.err >&5 | |
d589327a | 31831 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
31832 | (exit $ac_status); } && { |
31833 | test -z "$ac_c_werror_flag" || | |
31834 | test ! -s conftest.err | |
d589327a VZ |
31835 | } && test -s conftest$ac_exeext && |
31836 | $as_test_x conftest$ac_exeext; then | |
a848cd7e SC |
31837 | ac_cv_func_shmat=yes |
31838 | else | |
d589327a | 31839 | echo "$as_me: failed program was:" >&5 |
a848cd7e SC |
31840 | sed 's/^/| /' conftest.$ac_ext >&5 |
31841 | ||
47964710 | 31842 | ac_cv_func_shmat=no |
a848cd7e | 31843 | fi |
47964710 VS |
31844 | |
31845 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
ac1cb8d3 | 31846 | conftest$ac_exeext conftest.$ac_ext |
a848cd7e | 31847 | fi |
d589327a VZ |
31848 | { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5 |
31849 | echo "${ECHO_T}$ac_cv_func_shmat" >&6; } | |
a848cd7e SC |
31850 | |
31851 | if test $ac_cv_func_shmat = no; then | |
d589327a VZ |
31852 | { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5 |
31853 | echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; } | |
a848cd7e | 31854 | if test "${ac_cv_lib_ipc_shmat+set}" = set; then |
d589327a | 31855 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a848cd7e SC |
31856 | else |
31857 | ac_check_lib_save_LIBS=$LIBS | |
31858 | LIBS="-lipc $LIBS" | |
31859 | cat >conftest.$ac_ext <<_ACEOF | |
31860 | /* confdefs.h. */ | |
31861 | _ACEOF | |
31862 | cat confdefs.h >>conftest.$ac_ext | |
31863 | cat >>conftest.$ac_ext <<_ACEOF | |
31864 | /* end confdefs.h. */ | |
31865 | ||
47964710 VS |
31866 | /* Override any GCC internal prototype to avoid an error. |
31867 | Use char because int might match the return type of a GCC | |
31868 | builtin and then its argument prototype would still apply. */ | |
a848cd7e SC |
31869 | #ifdef __cplusplus |
31870 | extern "C" | |
31871 | #endif | |
a848cd7e SC |
31872 | char shmat (); |
31873 | int | |
31874 | main () | |
31875 | { | |
47964710 | 31876 | return shmat (); |
a848cd7e SC |
31877 | ; |
31878 | return 0; | |
31879 | } | |
31880 | _ACEOF | |
31881 | rm -f conftest.$ac_objext conftest$ac_exeext | |
47964710 VS |
31882 | if { (ac_try="$ac_link" |
31883 | case "(($ac_try" in | |
31884 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
31885 | *) ac_try_echo=$ac_try;; | |
31886 | esac | |
d589327a | 31887 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 31888 | (eval "$ac_link") 2>conftest.er1 |
a848cd7e | 31889 | ac_status=$? |
ac1cb8d3 VS |
31890 | grep -v '^ *+' conftest.er1 >conftest.err |
31891 | rm -f conftest.er1 | |
31892 | cat conftest.err >&5 | |
d589327a | 31893 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
31894 | (exit $ac_status); } && { |
31895 | test -z "$ac_c_werror_flag" || | |
31896 | test ! -s conftest.err | |
d589327a VZ |
31897 | } && test -s conftest$ac_exeext && |
31898 | $as_test_x conftest$ac_exeext; then | |
a848cd7e SC |
31899 | ac_cv_lib_ipc_shmat=yes |
31900 | else | |
d589327a | 31901 | echo "$as_me: failed program was:" >&5 |
a848cd7e SC |
31902 | sed 's/^/| /' conftest.$ac_ext >&5 |
31903 | ||
47964710 | 31904 | ac_cv_lib_ipc_shmat=no |
a848cd7e | 31905 | fi |
47964710 VS |
31906 | |
31907 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
ac1cb8d3 | 31908 | conftest$ac_exeext conftest.$ac_ext |
a848cd7e SC |
31909 | LIBS=$ac_check_lib_save_LIBS |
31910 | fi | |
d589327a VZ |
31911 | { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5 |
31912 | echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; } | |
31913 | if test $ac_cv_lib_ipc_shmat = yes; then | |
a848cd7e SC |
31914 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" |
31915 | fi | |
31916 | ||
31917 | fi | |
31918 | fi | |
31919 | ||
31920 | # Check for libraries that X11R6 Xt/Xaw programs need. | |
31921 | ac_save_LDFLAGS=$LDFLAGS | |
31922 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" | |
31923 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to | |
31924 | # check for ICE first), but we must link in the order -lSM -lICE or | |
31925 | # we get undefined symbols. So assume we have SM if we have ICE. | |
31926 | # These have to be linked with before -lX11, unlike the other | |
31927 | # libraries we check for below, so use a different variable. | |
31928 | # John Interrante, Karl Berry | |
d589327a VZ |
31929 | { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5 |
31930 | echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; } | |
a848cd7e | 31931 | if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then |
d589327a | 31932 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a848cd7e SC |
31933 | else |
31934 | ac_check_lib_save_LIBS=$LIBS | |
31935 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" | |
31936 | cat >conftest.$ac_ext <<_ACEOF | |
31937 | /* confdefs.h. */ | |
31938 | _ACEOF | |
31939 | cat confdefs.h >>conftest.$ac_ext | |
31940 | cat >>conftest.$ac_ext <<_ACEOF | |
31941 | /* end confdefs.h. */ | |
31942 | ||
47964710 VS |
31943 | /* Override any GCC internal prototype to avoid an error. |
31944 | Use char because int might match the return type of a GCC | |
31945 | builtin and then its argument prototype would still apply. */ | |
a848cd7e SC |
31946 | #ifdef __cplusplus |
31947 | extern "C" | |
31948 | #endif | |
a848cd7e SC |
31949 | char IceConnectionNumber (); |
31950 | int | |
31951 | main () | |
31952 | { | |
47964710 | 31953 | return IceConnectionNumber (); |
a848cd7e SC |
31954 | ; |
31955 | return 0; | |
31956 | } | |
31957 | _ACEOF | |
31958 | rm -f conftest.$ac_objext conftest$ac_exeext | |
47964710 VS |
31959 | if { (ac_try="$ac_link" |
31960 | case "(($ac_try" in | |
31961 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
31962 | *) ac_try_echo=$ac_try;; | |
31963 | esac | |
d589327a | 31964 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 31965 | (eval "$ac_link") 2>conftest.er1 |
a848cd7e | 31966 | ac_status=$? |
ac1cb8d3 VS |
31967 | grep -v '^ *+' conftest.er1 >conftest.err |
31968 | rm -f conftest.er1 | |
31969 | cat conftest.err >&5 | |
d589327a | 31970 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
31971 | (exit $ac_status); } && { |
31972 | test -z "$ac_c_werror_flag" || | |
31973 | test ! -s conftest.err | |
d589327a VZ |
31974 | } && test -s conftest$ac_exeext && |
31975 | $as_test_x conftest$ac_exeext; then | |
a848cd7e SC |
31976 | ac_cv_lib_ICE_IceConnectionNumber=yes |
31977 | else | |
d589327a | 31978 | echo "$as_me: failed program was:" >&5 |
a848cd7e SC |
31979 | sed 's/^/| /' conftest.$ac_ext >&5 |
31980 | ||
47964710 | 31981 | ac_cv_lib_ICE_IceConnectionNumber=no |
a848cd7e | 31982 | fi |
47964710 VS |
31983 | |
31984 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
ac1cb8d3 | 31985 | conftest$ac_exeext conftest.$ac_ext |
a848cd7e SC |
31986 | LIBS=$ac_check_lib_save_LIBS |
31987 | fi | |
d589327a VZ |
31988 | { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 |
31989 | echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; } | |
31990 | if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then | |
a848cd7e SC |
31991 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" |
31992 | fi | |
31993 | ||
31994 | LDFLAGS=$ac_save_LDFLAGS | |
31995 | ||
31996 | fi | |
31997 | ||
31998 | ||
31999 | if test "$no_x" = "yes"; then | |
d589327a VZ |
32000 | { { echo "$as_me:$LINENO: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&5 |
32001 | echo "$as_me: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&2;} | |
89d90d6d | 32002 | { (exit 1); exit 1; }; } |
a848cd7e SC |
32003 | fi |
32004 | ||
74b84332 VS |
32005 | GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//' | sed 's/ -RNONE//'` |
32006 | TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'` | |
a848cd7e SC |
32007 | AFMINSTALL=afminstall |
32008 | COMPILED_X_PROGRAM=0 | |
32009 | ||
74b84332 VS |
32010 | fi |
32011 | ||
32012 | if test "$wxUSE_X11" = 1; then | |
a848cd7e | 32013 | if test "$wxUSE_NANOX" = "yes"; then |
d589327a VZ |
32014 | { echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5 |
32015 | echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6; } | |
a848cd7e | 32016 | if test "x$MICROWIN" = x ; then |
d589327a VZ |
32017 | { echo "$as_me:$LINENO: result: not found" >&5 |
32018 | echo "${ECHO_T}not found" >&6; } | |
32019 | { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5 | |
32020 | echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;} | |
a848cd7e SC |
32021 | { (exit 1); exit 1; }; } |
32022 | else | |
d589327a VZ |
32023 | { echo "$as_me:$LINENO: result: $MICROWIN" >&5 |
32024 | echo "${ECHO_T}$MICROWIN" >&6; } | |
a848cd7e SC |
32025 | cat >>confdefs.h <<\_ACEOF |
32026 | #define wxUSE_NANOX 1 | |
32027 | _ACEOF | |
32028 | ||
32029 | fi | |
32030 | fi | |
32031 | ||
32032 | if test "$wxUSE_UNICODE" = "yes"; then | |
32033 | ||
479c790c VZ |
32034 | |
32035 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then | |
32036 | if test -n "$ac_tool_prefix"; then | |
32037 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. | |
32038 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 | |
d589327a VZ |
32039 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
32040 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
479c790c | 32041 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then |
d589327a | 32042 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
479c790c VZ |
32043 | else |
32044 | case $PKG_CONFIG in | |
32045 | [\\/]* | ?:[\\/]*) | |
32046 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
32047 | ;; | |
32048 | *) | |
32049 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
32050 | for as_dir in $PATH | |
32051 | do | |
32052 | IFS=$as_save_IFS | |
32053 | test -z "$as_dir" && as_dir=. | |
32054 | for ac_exec_ext in '' $ac_executable_extensions; do | |
47964710 | 32055 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
479c790c | 32056 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
d589327a | 32057 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
479c790c VZ |
32058 | break 2 |
32059 | fi | |
32060 | done | |
32061 | done | |
47964710 | 32062 | IFS=$as_save_IFS |
479c790c VZ |
32063 | |
32064 | ;; | |
32065 | esac | |
32066 | fi | |
32067 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
479c790c | 32068 | if test -n "$PKG_CONFIG"; then |
d589327a VZ |
32069 | { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 |
32070 | echo "${ECHO_T}$PKG_CONFIG" >&6; } | |
479c790c | 32071 | else |
d589327a VZ |
32072 | { echo "$as_me:$LINENO: result: no" >&5 |
32073 | echo "${ECHO_T}no" >&6; } | |
479c790c VZ |
32074 | fi |
32075 | ||
47964710 | 32076 | |
479c790c VZ |
32077 | fi |
32078 | if test -z "$ac_cv_path_PKG_CONFIG"; then | |
32079 | ac_pt_PKG_CONFIG=$PKG_CONFIG | |
32080 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
32081 | set dummy pkg-config; ac_word=$2 | |
d589327a VZ |
32082 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
32083 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
479c790c | 32084 | if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then |
d589327a | 32085 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
479c790c VZ |
32086 | else |
32087 | case $ac_pt_PKG_CONFIG in | |
32088 | [\\/]* | ?:[\\/]*) | |
32089 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. | |
32090 | ;; | |
32091 | *) | |
32092 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
32093 | for as_dir in $PATH | |
32094 | do | |
32095 | IFS=$as_save_IFS | |
32096 | test -z "$as_dir" && as_dir=. | |
32097 | for ac_exec_ext in '' $ac_executable_extensions; do | |
47964710 | 32098 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
479c790c | 32099 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
d589327a | 32100 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
479c790c VZ |
32101 | break 2 |
32102 | fi | |
32103 | done | |
32104 | done | |
47964710 | 32105 | IFS=$as_save_IFS |
479c790c VZ |
32106 | |
32107 | ;; | |
32108 | esac | |
32109 | fi | |
32110 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG | |
479c790c | 32111 | if test -n "$ac_pt_PKG_CONFIG"; then |
d589327a VZ |
32112 | { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5 |
32113 | echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; } | |
479c790c | 32114 | else |
d589327a VZ |
32115 | { echo "$as_me:$LINENO: result: no" >&5 |
32116 | echo "${ECHO_T}no" >&6; } | |
479c790c VZ |
32117 | fi |
32118 | ||
47964710 VS |
32119 | if test "x$ac_pt_PKG_CONFIG" = x; then |
32120 | PKG_CONFIG="" | |
32121 | else | |
32122 | case $cross_compiling:$ac_tool_warned in | |
32123 | yes:) | |
d589327a VZ |
32124 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
32125 | whose name does not start with the host triplet. If you think this | |
32126 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
32127 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | |
32128 | whose name does not start with the host triplet. If you think this | |
32129 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
47964710 VS |
32130 | ac_tool_warned=yes ;; |
32131 | esac | |
32132 | PKG_CONFIG=$ac_pt_PKG_CONFIG | |
32133 | fi | |
479c790c VZ |
32134 | else |
32135 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" | |
32136 | fi | |
32137 | ||
32138 | fi | |
32139 | if test -n "$PKG_CONFIG"; then | |
32140 | _pkg_min_version=0.9.0 | |
d589327a VZ |
32141 | { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5 |
32142 | echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; } | |
479c790c | 32143 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then |
d589327a VZ |
32144 | { echo "$as_me:$LINENO: result: yes" >&5 |
32145 | echo "${ECHO_T}yes" >&6; } | |
479c790c | 32146 | else |
d589327a VZ |
32147 | { echo "$as_me:$LINENO: result: no" >&5 |
32148 | echo "${ECHO_T}no" >&6; } | |
479c790c VZ |
32149 | PKG_CONFIG="" |
32150 | fi | |
32151 | ||
32152 | fi | |
32153 | ||
32154 | ||
3ecd9f92 | 32155 | pkg_failed=no |
d589327a VZ |
32156 | { echo "$as_me:$LINENO: checking for PANGOX" >&5 |
32157 | echo $ECHO_N "checking for PANGOX... $ECHO_C" >&6; } | |
a848cd7e | 32158 | |
3ecd9f92 MW |
32159 | if test -n "$PKG_CONFIG"; then |
32160 | if test -n "$PANGOX_CFLAGS"; then | |
32161 | pkg_cv_PANGOX_CFLAGS="$PANGOX_CFLAGS" | |
32162 | else | |
32163 | if test -n "$PKG_CONFIG" && \ | |
d589327a | 32164 | { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangox\"") >&5 |
3ecd9f92 MW |
32165 | ($PKG_CONFIG --exists --print-errors "pangox") 2>&5 |
32166 | ac_status=$? | |
d589327a | 32167 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3ecd9f92 MW |
32168 | (exit $ac_status); }; then |
32169 | pkg_cv_PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox" 2>/dev/null` | |
32170 | else | |
32171 | pkg_failed=yes | |
32172 | fi | |
32173 | fi | |
32174 | else | |
32175 | pkg_failed=untried | |
32176 | fi | |
32177 | if test -n "$PKG_CONFIG"; then | |
32178 | if test -n "$PANGOX_LIBS"; then | |
32179 | pkg_cv_PANGOX_LIBS="$PANGOX_LIBS" | |
32180 | else | |
32181 | if test -n "$PKG_CONFIG" && \ | |
d589327a | 32182 | { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangox\"") >&5 |
3ecd9f92 MW |
32183 | ($PKG_CONFIG --exists --print-errors "pangox") 2>&5 |
32184 | ac_status=$? | |
d589327a | 32185 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3ecd9f92 MW |
32186 | (exit $ac_status); }; then |
32187 | pkg_cv_PANGOX_LIBS=`$PKG_CONFIG --libs "pangox" 2>/dev/null` | |
32188 | else | |
32189 | pkg_failed=yes | |
32190 | fi | |
32191 | fi | |
32192 | else | |
32193 | pkg_failed=untried | |
32194 | fi | |
32195 | ||
32196 | ||
32197 | ||
32198 | if test $pkg_failed = yes; then | |
32199 | ||
32200 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
32201 | _pkg_short_errors_supported=yes | |
32202 | else | |
32203 | _pkg_short_errors_supported=no | |
32204 | fi | |
32205 | if test $_pkg_short_errors_supported = yes; then | |
32206 | PANGOX_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangox"` | |
32207 | else | |
32208 | PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"` | |
a848cd7e | 32209 | fi |
3ecd9f92 MW |
32210 | # Put the nasty error message in config.log where it belongs |
32211 | echo "$PANGOX_PKG_ERRORS" >&5 | |
a848cd7e SC |
32212 | |
32213 | ||
d589327a VZ |
32214 | { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5 |
32215 | echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;} | |
3ecd9f92 | 32216 | { (exit 1); exit 1; }; } |
a848cd7e | 32217 | |
a848cd7e | 32218 | |
3ecd9f92 | 32219 | elif test $pkg_failed = untried; then |
a848cd7e | 32220 | |
d589327a VZ |
32221 | { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5 |
32222 | echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;} | |
3ecd9f92 MW |
32223 | { (exit 1); exit 1; }; } |
32224 | ||
32225 | ||
32226 | else | |
32227 | PANGOX_CFLAGS=$pkg_cv_PANGOX_CFLAGS | |
32228 | PANGOX_LIBS=$pkg_cv_PANGOX_LIBS | |
d589327a VZ |
32229 | { echo "$as_me:$LINENO: result: yes" >&5 |
32230 | echo "${ECHO_T}yes" >&6; } | |
3ecd9f92 | 32231 | |
9b8888f9 | 32232 | CFLAGS="$PANGOX_CFLAGS $CFLAGS" |
479c790c VZ |
32233 | CXXFLAGS="$PANGOX_CFLAGS $CXXFLAGS" |
32234 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS" | |
3ecd9f92 MW |
32235 | |
32236 | fi | |
32237 | ||
32238 | pkg_failed=no | |
d589327a VZ |
32239 | { echo "$as_me:$LINENO: checking for PANGOFT2" >&5 |
32240 | echo $ECHO_N "checking for PANGOFT2... $ECHO_C" >&6; } | |
3ecd9f92 MW |
32241 | |
32242 | if test -n "$PKG_CONFIG"; then | |
32243 | if test -n "$PANGOFT2_CFLAGS"; then | |
32244 | pkg_cv_PANGOFT2_CFLAGS="$PANGOFT2_CFLAGS" | |
32245 | else | |
32246 | if test -n "$PKG_CONFIG" && \ | |
d589327a | 32247 | { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoft2\"") >&5 |
3ecd9f92 MW |
32248 | ($PKG_CONFIG --exists --print-errors "pangoft2") 2>&5 |
32249 | ac_status=$? | |
d589327a | 32250 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3ecd9f92 MW |
32251 | (exit $ac_status); }; then |
32252 | pkg_cv_PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2" 2>/dev/null` | |
32253 | else | |
32254 | pkg_failed=yes | |
32255 | fi | |
32256 | fi | |
32257 | else | |
32258 | pkg_failed=untried | |
32259 | fi | |
32260 | if test -n "$PKG_CONFIG"; then | |
32261 | if test -n "$PANGOFT2_LIBS"; then | |
32262 | pkg_cv_PANGOFT2_LIBS="$PANGOFT2_LIBS" | |
32263 | else | |
32264 | if test -n "$PKG_CONFIG" && \ | |
d589327a | 32265 | { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoft2\"") >&5 |
3ecd9f92 MW |
32266 | ($PKG_CONFIG --exists --print-errors "pangoft2") 2>&5 |
32267 | ac_status=$? | |
d589327a | 32268 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3ecd9f92 MW |
32269 | (exit $ac_status); }; then |
32270 | pkg_cv_PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2" 2>/dev/null` | |
32271 | else | |
32272 | pkg_failed=yes | |
32273 | fi | |
32274 | fi | |
32275 | else | |
32276 | pkg_failed=untried | |
32277 | fi | |
32278 | ||
32279 | ||
32280 | ||
32281 | if test $pkg_failed = yes; then | |
32282 | ||
32283 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
32284 | _pkg_short_errors_supported=yes | |
32285 | else | |
32286 | _pkg_short_errors_supported=no | |
32287 | fi | |
32288 | if test $_pkg_short_errors_supported = yes; then | |
32289 | PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangoft2"` | |
32290 | else | |
32291 | PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"` | |
32292 | fi | |
32293 | # Put the nasty error message in config.log where it belongs | |
32294 | echo "$PANGOFT2_PKG_ERRORS" >&5 | |
a848cd7e | 32295 | |
a848cd7e | 32296 | |
d589327a VZ |
32297 | { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5 |
32298 | echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;} | |
479c790c | 32299 | wxUSE_PRINTING_ARCHITECTURE="no" |
a848cd7e SC |
32300 | |
32301 | ||
3ecd9f92 | 32302 | elif test $pkg_failed = untried; then |
a848cd7e | 32303 | |
d589327a VZ |
32304 | { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5 |
32305 | echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;} | |
479c790c | 32306 | wxUSE_PRINTING_ARCHITECTURE="no" |
a848cd7e | 32307 | |
a848cd7e | 32308 | |
a848cd7e | 32309 | else |
3ecd9f92 MW |
32310 | PANGOFT2_CFLAGS=$pkg_cv_PANGOFT2_CFLAGS |
32311 | PANGOFT2_LIBS=$pkg_cv_PANGOFT2_LIBS | |
d589327a VZ |
32312 | { echo "$as_me:$LINENO: result: yes" >&5 |
32313 | echo "${ECHO_T}yes" >&6; } | |
3ecd9f92 | 32314 | |
9b8888f9 | 32315 | CFLAGS="$PANGOFT2_CFLAGS $CFLAGS" |
479c790c VZ |
32316 | CXXFLAGS="$PANGOFT2_CFLAGS $CXXFLAGS" |
32317 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS" | |
a848cd7e | 32318 | |
a848cd7e | 32319 | fi |
3ecd9f92 MW |
32320 | |
32321 | pkg_failed=no | |
d589327a VZ |
32322 | { echo "$as_me:$LINENO: checking for PANGOXFT" >&5 |
32323 | echo $ECHO_N "checking for PANGOXFT... $ECHO_C" >&6; } | |
a848cd7e SC |
32324 | |
32325 | if test -n "$PKG_CONFIG"; then | |
3ecd9f92 MW |
32326 | if test -n "$PANGOXFT_CFLAGS"; then |
32327 | pkg_cv_PANGOXFT_CFLAGS="$PANGOXFT_CFLAGS" | |
32328 | else | |
32329 | if test -n "$PKG_CONFIG" && \ | |
d589327a | 32330 | { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoxft\"") >&5 |
3ecd9f92 MW |
32331 | ($PKG_CONFIG --exists --print-errors "pangoxft") 2>&5 |
32332 | ac_status=$? | |
d589327a | 32333 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3ecd9f92 MW |
32334 | (exit $ac_status); }; then |
32335 | pkg_cv_PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft" 2>/dev/null` | |
a848cd7e | 32336 | else |
3ecd9f92 MW |
32337 | pkg_failed=yes |
32338 | fi | |
32339 | fi | |
32340 | else | |
32341 | pkg_failed=untried | |
32342 | fi | |
32343 | if test -n "$PKG_CONFIG"; then | |
32344 | if test -n "$PANGOXFT_LIBS"; then | |
32345 | pkg_cv_PANGOXFT_LIBS="$PANGOXFT_LIBS" | |
32346 | else | |
32347 | if test -n "$PKG_CONFIG" && \ | |
d589327a | 32348 | { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoxft\"") >&5 |
3ecd9f92 MW |
32349 | ($PKG_CONFIG --exists --print-errors "pangoxft") 2>&5 |
32350 | ac_status=$? | |
d589327a | 32351 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3ecd9f92 MW |
32352 | (exit $ac_status); }; then |
32353 | pkg_cv_PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft" 2>/dev/null` | |
32354 | else | |
32355 | pkg_failed=yes | |
32356 | fi | |
32357 | fi | |
32358 | else | |
32359 | pkg_failed=untried | |
a848cd7e SC |
32360 | fi |
32361 | ||
a848cd7e | 32362 | |
a848cd7e | 32363 | |
3ecd9f92 | 32364 | if test $pkg_failed = yes; then |
a848cd7e | 32365 | |
3ecd9f92 MW |
32366 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
32367 | _pkg_short_errors_supported=yes | |
32368 | else | |
32369 | _pkg_short_errors_supported=no | |
32370 | fi | |
32371 | if test $_pkg_short_errors_supported = yes; then | |
32372 | PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangoxft"` | |
32373 | else | |
32374 | PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"` | |
a848cd7e | 32375 | fi |
3ecd9f92 MW |
32376 | # Put the nasty error message in config.log where it belongs |
32377 | echo "$PANGOXFT_PKG_ERRORS" >&5 | |
a848cd7e SC |
32378 | |
32379 | ||
d589327a VZ |
32380 | { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5 |
32381 | echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;} | |
3ecd9f92 | 32382 | |
a848cd7e | 32383 | |
3ecd9f92 | 32384 | elif test $pkg_failed = untried; then |
a848cd7e | 32385 | |
d589327a VZ |
32386 | { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5 |
32387 | echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;} | |
3ecd9f92 MW |
32388 | |
32389 | ||
32390 | else | |
32391 | PANGOXFT_CFLAGS=$pkg_cv_PANGOXFT_CFLAGS | |
32392 | PANGOXFT_LIBS=$pkg_cv_PANGOXFT_LIBS | |
d589327a VZ |
32393 | { echo "$as_me:$LINENO: result: yes" >&5 |
32394 | echo "${ECHO_T}yes" >&6; } | |
a848cd7e | 32395 | |
479c790c | 32396 | cat >>confdefs.h <<\_ACEOF |
4ae1af05 MB |
32397 | #define HAVE_PANGO_XFT 1 |
32398 | _ACEOF | |
32399 | ||
9b8888f9 | 32400 | CFLAGS="$PANGOXFT_CFLAGS $CFLAGS" |
479c790c VZ |
32401 | CXXFLAGS="$PANGOXFT_CFLAGS $CXXFLAGS" |
32402 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS" | |
a848cd7e | 32403 | |
3ecd9f92 | 32404 | fi |
479c790c | 32405 | save_LIBS="$LIBS" |
479c790c | 32406 | LIBS="$LIBS $PANGOX_LIBS" |
304205f1 VS |
32407 | |
32408 | for ac_func in pango_font_family_is_monospace | |
32409 | do | |
d589327a VZ |
32410 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
32411 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
32412 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
47964710 | 32413 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
d589327a | 32414 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
304205f1 VS |
32415 | else |
32416 | cat >conftest.$ac_ext <<_ACEOF | |
32417 | /* confdefs.h. */ | |
32418 | _ACEOF | |
32419 | cat confdefs.h >>conftest.$ac_ext | |
32420 | cat >>conftest.$ac_ext <<_ACEOF | |
32421 | /* end confdefs.h. */ | |
32422 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
32423 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
32424 | #define $ac_func innocuous_$ac_func | |
32425 | ||
32426 | /* System header to define __stub macros and hopefully few prototypes, | |
32427 | which can conflict with char $ac_func (); below. | |
32428 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
32429 | <limits.h> exists even on freestanding compilers. */ | |
32430 | ||
32431 | #ifdef __STDC__ | |
32432 | # include <limits.h> | |
32433 | #else | |
32434 | # include <assert.h> | |
32435 | #endif | |
32436 | ||
32437 | #undef $ac_func | |
32438 | ||
47964710 VS |
32439 | /* Override any GCC internal prototype to avoid an error. |
32440 | Use char because int might match the return type of a GCC | |
32441 | builtin and then its argument prototype would still apply. */ | |
304205f1 VS |
32442 | #ifdef __cplusplus |
32443 | extern "C" | |
304205f1 | 32444 | #endif |
304205f1 VS |
32445 | char $ac_func (); |
32446 | /* The GNU C library defines this for functions which it implements | |
32447 | to always fail with ENOSYS. Some functions are actually named | |
32448 | something starting with __ and the normal name is an alias. */ | |
47964710 | 32449 | #if defined __stub_$ac_func || defined __stub___$ac_func |
304205f1 | 32450 | choke me |
304205f1 VS |
32451 | #endif |
32452 | ||
32453 | int | |
32454 | main () | |
32455 | { | |
47964710 | 32456 | return $ac_func (); |
304205f1 VS |
32457 | ; |
32458 | return 0; | |
32459 | } | |
32460 | _ACEOF | |
32461 | rm -f conftest.$ac_objext conftest$ac_exeext | |
47964710 VS |
32462 | if { (ac_try="$ac_link" |
32463 | case "(($ac_try" in | |
32464 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
32465 | *) ac_try_echo=$ac_try;; | |
32466 | esac | |
d589327a | 32467 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 32468 | (eval "$ac_link") 2>conftest.er1 |
304205f1 VS |
32469 | ac_status=$? |
32470 | grep -v '^ *+' conftest.er1 >conftest.err | |
32471 | rm -f conftest.er1 | |
32472 | cat conftest.err >&5 | |
d589327a | 32473 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
32474 | (exit $ac_status); } && { |
32475 | test -z "$ac_c_werror_flag" || | |
32476 | test ! -s conftest.err | |
d589327a VZ |
32477 | } && test -s conftest$ac_exeext && |
32478 | $as_test_x conftest$ac_exeext; then | |
304205f1 VS |
32479 | eval "$as_ac_var=yes" |
32480 | else | |
d589327a | 32481 | echo "$as_me: failed program was:" >&5 |
304205f1 VS |
32482 | sed 's/^/| /' conftest.$ac_ext >&5 |
32483 | ||
47964710 | 32484 | eval "$as_ac_var=no" |
304205f1 | 32485 | fi |
47964710 VS |
32486 | |
32487 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
304205f1 VS |
32488 | conftest$ac_exeext conftest.$ac_ext |
32489 | fi | |
d589327a VZ |
32490 | ac_res=`eval echo '${'$as_ac_var'}'` |
32491 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
32492 | echo "${ECHO_T}$ac_res" >&6; } | |
32493 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
304205f1 | 32494 | cat >>confdefs.h <<_ACEOF |
d589327a | 32495 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
304205f1 VS |
32496 | _ACEOF |
32497 | ||
32498 | fi | |
32499 | done | |
32500 | ||
479c790c | 32501 | LIBS="$save_LIBS" |
a848cd7e SC |
32502 | fi |
32503 | ||
32504 | wxUSE_UNIVERSAL="yes" | |
32505 | ||
32506 | if test "$wxUSE_NANOX" = "yes"; then | |
32507 | TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE" | |
32508 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__NANOX__ -DMWPIXEL_FORMAT=MWPF_TRUECOLOR0888 -DHAVE_FILEIO -DHAVE_BMP_SUPPORT=1 -DHAVE_GIF_SUPPORT=1 -DHAVE_PNM_SUPPORT=1 -DHAVE_XPM_SUPPORT=1 -DUNIX=1 -DUSE_EXPOSURE -DSCREEN_HEIGHT=480 -DSCREEN_WIDTH=640 -DSCREEN_DEPTH=4 -DX11=1" | |
32509 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a" | |
32510 | else | |
32511 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11" | |
32512 | fi | |
32513 | ||
a848cd7e SC |
32514 | TOOLKIT=X11 |
32515 | GUIDIST=X11_DIST | |
32516 | fi | |
32517 | ||
32518 | if test "$wxUSE_MOTIF" = 1; then | |
d589327a VZ |
32519 | { echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5 |
32520 | echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6; } | |
a848cd7e | 32521 | |
74b84332 VS |
32522 | ac_find_includes= |
32523 | for ac_dir in $SEARCH_INCLUDE /usr/include; | |
32524 | do | |
32525 | if test -f "$ac_dir/Xm/Xm.h"; then | |
32526 | ac_find_includes=$ac_dir | |
32527 | break | |
32528 | fi | |
32529 | done | |
a848cd7e | 32530 | |
74b84332 | 32531 | if test "$ac_find_includes" != "" ; then |
d589327a VZ |
32532 | { echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5 |
32533 | echo "${ECHO_T}found in $ac_find_includes" >&6; } | |
74b84332 VS |
32534 | |
32535 | if test "x$ac_find_includes" = "x/usr/include"; then | |
32536 | ac_path_to_include="" | |
32537 | else | |
32538 | echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null | |
32539 | result=$? | |
32540 | if test $result = 0; then | |
32541 | ac_path_to_include="" | |
32542 | else | |
32543 | ac_path_to_include=" -I$ac_find_includes" | |
32544 | fi | |
a848cd7e SC |
32545 | fi |
32546 | ||
74b84332 VS |
32547 | TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include" |
32548 | else | |
9b8888f9 VZ |
32549 | save_CFLAGS=$CFLAGS |
32550 | CFLAGS="$TOOLKIT_INCLUDE $CFLAGS" | |
e051b34e | 32551 | |
74b84332 | 32552 | cat >conftest.$ac_ext <<_ACEOF |
a848cd7e SC |
32553 | /* confdefs.h. */ |
32554 | _ACEOF | |
32555 | cat confdefs.h >>conftest.$ac_ext | |
32556 | cat >>conftest.$ac_ext <<_ACEOF | |
32557 | /* end confdefs.h. */ | |
32558 | ||
74b84332 VS |
32559 | #include <Xm/Xm.h> |
32560 | ||
a848cd7e SC |
32561 | int |
32562 | main () | |
32563 | { | |
32564 | ||
74b84332 VS |
32565 | int version; |
32566 | version = xmUseVersion; | |
32567 | ||
a848cd7e SC |
32568 | ; |
32569 | return 0; | |
32570 | } | |
32571 | _ACEOF | |
74b84332 | 32572 | rm -f conftest.$ac_objext |
47964710 VS |
32573 | if { (ac_try="$ac_compile" |
32574 | case "(($ac_try" in | |
32575 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
32576 | *) ac_try_echo=$ac_try;; | |
32577 | esac | |
d589327a | 32578 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 32579 | (eval "$ac_compile") 2>conftest.er1 |
a848cd7e | 32580 | ac_status=$? |
ac1cb8d3 VS |
32581 | grep -v '^ *+' conftest.er1 >conftest.err |
32582 | rm -f conftest.er1 | |
32583 | cat conftest.err >&5 | |
d589327a | 32584 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
32585 | (exit $ac_status); } && { |
32586 | test -z "$ac_c_werror_flag" || | |
32587 | test ! -s conftest.err | |
32588 | } && test -s conftest.$ac_objext; then | |
74b84332 | 32589 | |
d589327a VZ |
32590 | { echo "$as_me:$LINENO: result: found in default search path" >&5 |
32591 | echo "${ECHO_T}found in default search path" >&6; } | |
74b84332 VS |
32592 | COMPILED_X_PROGRAM=1 |
32593 | ||
a848cd7e | 32594 | else |
d589327a | 32595 | echo "$as_me: failed program was:" >&5 |
a848cd7e SC |
32596 | sed 's/^/| /' conftest.$ac_ext >&5 |
32597 | ||
a848cd7e | 32598 | |
d589327a VZ |
32599 | { echo "$as_me:$LINENO: result: no" >&5 |
32600 | echo "${ECHO_T}no" >&6; } | |
32601 | { { echo "$as_me:$LINENO: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&5 | |
32602 | echo "$as_me: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&2;} | |
74b84332 | 32603 | { (exit 1); exit 1; }; } |
a848cd7e | 32604 | |
a848cd7e | 32605 | |
a848cd7e | 32606 | fi |
47964710 VS |
32607 | |
32608 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
e051b34e | 32609 | |
9b8888f9 | 32610 | CFLAGS=$save_CFLAGS |
74b84332 VS |
32611 | fi |
32612 | ||
0ad5d837 | 32613 | |
d589327a VZ |
32614 | { echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5 |
32615 | echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6; } | |
74b84332 | 32616 | |
0ad5d837 VZ |
32617 | ac_find_libraries= |
32618 | for ac_dir in $SEARCH_LIB; | |
74b84332 | 32619 | do |
3eca31dc | 32620 | for ac_extension in a so sl dylib dll.a; do |
74b84332 VS |
32621 | if test -f "$ac_dir/libXm.$ac_extension"; then |
32622 | ac_find_libraries=$ac_dir | |
32623 | break 2 | |
a848cd7e | 32624 | fi |
74b84332 VS |
32625 | done |
32626 | done | |
a848cd7e | 32627 | |
0ad5d837 VZ |
32628 | |
32629 | if test "x$ac_find_libraries" != "x" ; then | |
d589327a VZ |
32630 | { echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5 |
32631 | echo "${ECHO_T}found in $ac_find_libraries" >&6; } | |
a848cd7e | 32632 | |
74b84332 | 32633 | |
0ad5d837 | 32634 | if test "$ac_find_libraries" = "default location"; then |
74b84332 | 32635 | ac_path_to_link="" |
a848cd7e | 32636 | else |
0ad5d837 VZ |
32637 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null |
32638 | result=$? | |
32639 | if test $result = 0; then | |
32640 | ac_path_to_link="" | |
32641 | else | |
32642 | ac_path_to_link=" -L$ac_find_libraries" | |
32643 | fi | |
74b84332 VS |
32644 | fi |
32645 | ||
0ad5d837 VZ |
32646 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link" |
32647 | else | |
9b8888f9 VZ |
32648 | save_CFLAGS=$CFLAGS |
32649 | CFLAGS="$TOOLKIT_INCLUDE $CFLAGS" | |
6f9cf1e6 MW |
32650 | save_LIBS="$LIBS" |
32651 | LIBS="$GUI_TK_LIBRARY -lXm -lXmu -lXext -lX11" | |
74b84332 | 32652 | |
0ad5d837 | 32653 | cat >conftest.$ac_ext <<_ACEOF |
a848cd7e SC |
32654 | /* confdefs.h. */ |
32655 | _ACEOF | |
32656 | cat confdefs.h >>conftest.$ac_ext | |
32657 | cat >>conftest.$ac_ext <<_ACEOF | |
32658 | /* end confdefs.h. */ | |
32659 | ||
0ad5d837 | 32660 | #include <Xm/Xm.h> |
74b84332 | 32661 | |
a848cd7e SC |
32662 | int |
32663 | main () | |
32664 | { | |
74b84332 | 32665 | |
0ad5d837 VZ |
32666 | int version; |
32667 | version = xmUseVersion; | |
74b84332 | 32668 | |
a848cd7e SC |
32669 | ; |
32670 | return 0; | |
32671 | } | |
32672 | _ACEOF | |
0ad5d837 | 32673 | rm -f conftest.$ac_objext conftest$ac_exeext |
47964710 VS |
32674 | if { (ac_try="$ac_link" |
32675 | case "(($ac_try" in | |
32676 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
32677 | *) ac_try_echo=$ac_try;; | |
32678 | esac | |
d589327a | 32679 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 32680 | (eval "$ac_link") 2>conftest.er1 |
a848cd7e | 32681 | ac_status=$? |
ac1cb8d3 VS |
32682 | grep -v '^ *+' conftest.er1 >conftest.err |
32683 | rm -f conftest.er1 | |
32684 | cat conftest.err >&5 | |
d589327a | 32685 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
32686 | (exit $ac_status); } && { |
32687 | test -z "$ac_c_werror_flag" || | |
32688 | test ! -s conftest.err | |
d589327a VZ |
32689 | } && test -s conftest$ac_exeext && |
32690 | $as_test_x conftest$ac_exeext; then | |
74b84332 | 32691 | |
d589327a VZ |
32692 | { echo "$as_me:$LINENO: result: found in default search path" >&5 |
32693 | echo "${ECHO_T}found in default search path" >&6; } | |
0ad5d837 | 32694 | COMPILED_X_PROGRAM=1 |
74b84332 | 32695 | |
a848cd7e | 32696 | else |
d589327a | 32697 | echo "$as_me: failed program was:" >&5 |
a848cd7e SC |
32698 | sed 's/^/| /' conftest.$ac_ext >&5 |
32699 | ||
74b84332 | 32700 | |
d589327a VZ |
32701 | { echo "$as_me:$LINENO: result: no" >&5 |
32702 | echo "${ECHO_T}no" >&6; } | |
32703 | { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5 | |
32704 | echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;} | |
74b84332 VS |
32705 | { (exit 1); exit 1; }; } |
32706 | ||
32707 | ||
32708 | fi | |
47964710 VS |
32709 | |
32710 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
0ad5d837 | 32711 | conftest$ac_exeext conftest.$ac_ext |
74b84332 | 32712 | |
9b8888f9 | 32713 | CFLAGS=$save_CFLAGS |
6f9cf1e6 | 32714 | LIBS="$save_LIBS" |
74b84332 VS |
32715 | fi |
32716 | ||
d589327a VZ |
32717 | { echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5 |
32718 | echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6; } | |
74b84332 VS |
32719 | libp_link="" |
32720 | libsm_ice_link="" | |
32721 | libs_found=0 | |
32722 | for libp in "" " -lXp"; do | |
6517fa86 | 32723 | if test "$libs_found" = 0; then |
74b84332 | 32724 | for libsm_ice in "" " -lSM -lICE"; do |
6517fa86 | 32725 | if test "$libs_found" = 0; then |
74b84332 VS |
32726 | save_LIBS="$LIBS" |
32727 | LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11" | |
9b8888f9 VZ |
32728 | save_CFLAGS=$CFLAGS |
32729 | CFLAGS="$TOOLKIT_INCLUDE $CFLAGS" | |
74b84332 VS |
32730 | |
32731 | cat >conftest.$ac_ext <<_ACEOF | |
a848cd7e SC |
32732 | /* confdefs.h. */ |
32733 | _ACEOF | |
32734 | cat confdefs.h >>conftest.$ac_ext | |
32735 | cat >>conftest.$ac_ext <<_ACEOF | |
32736 | /* end confdefs.h. */ | |
32737 | ||
74b84332 VS |
32738 | #include <Xm/Xm.h> |
32739 | #include <Xm/List.h> | |
32740 | ||
a848cd7e SC |
32741 | int |
32742 | main () | |
32743 | { | |
74b84332 VS |
32744 | |
32745 | XmString string = NULL; | |
32746 | Widget w = NULL; | |
32747 | int position = 0; | |
32748 | XmListAddItem(w, string, position); | |
32749 | ||
a848cd7e SC |
32750 | ; |
32751 | return 0; | |
32752 | } | |
32753 | _ACEOF | |
32754 | rm -f conftest.$ac_objext conftest$ac_exeext | |
47964710 VS |
32755 | if { (ac_try="$ac_link" |
32756 | case "(($ac_try" in | |
32757 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
32758 | *) ac_try_echo=$ac_try;; | |
32759 | esac | |
d589327a | 32760 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 32761 | (eval "$ac_link") 2>conftest.er1 |
a848cd7e | 32762 | ac_status=$? |
ac1cb8d3 VS |
32763 | grep -v '^ *+' conftest.er1 >conftest.err |
32764 | rm -f conftest.er1 | |
32765 | cat conftest.err >&5 | |
d589327a | 32766 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
32767 | (exit $ac_status); } && { |
32768 | test -z "$ac_c_werror_flag" || | |
32769 | test ! -s conftest.err | |
d589327a VZ |
32770 | } && test -s conftest$ac_exeext && |
32771 | $as_test_x conftest$ac_exeext; then | |
a848cd7e SC |
32772 | |
32773 | libp_link="$libp" | |
32774 | libsm_ice_link="$libsm_ice" | |
d589327a VZ |
32775 | { echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5 |
32776 | echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6; } | |
a848cd7e SC |
32777 | libs_found=1 |
32778 | ||
32779 | else | |
d589327a | 32780 | echo "$as_me: failed program was:" >&5 |
a848cd7e SC |
32781 | sed 's/^/| /' conftest.$ac_ext >&5 |
32782 | ||
32783 | ||
32784 | ||
32785 | fi | |
47964710 VS |
32786 | |
32787 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
ac1cb8d3 | 32788 | conftest$ac_exeext conftest.$ac_ext |
a848cd7e SC |
32789 | |
32790 | LIBS="$save_LIBS" | |
9b8888f9 | 32791 | CFLAGS=$save_CFLAGS |
a848cd7e SC |
32792 | fi |
32793 | done | |
32794 | fi | |
32795 | done | |
32796 | ||
6517fa86 | 32797 | if test "$libs_found" = 0; then |
d589327a VZ |
32798 | { echo "$as_me:$LINENO: result: can't find the right libraries" >&5 |
32799 | echo "${ECHO_T}can't find the right libraries" >&6; } | |
32800 | { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5 | |
32801 | echo "$as_me: error: can't link a simple motif program" >&2;} | |
a848cd7e SC |
32802 | { (exit 1); exit 1; }; } |
32803 | fi | |
32804 | ||
d589327a VZ |
32805 | { echo "$as_me:$LINENO: checking for SgCreateList in -lSgm" >&5 |
32806 | echo $ECHO_N "checking for SgCreateList in -lSgm... $ECHO_C" >&6; } | |
62fa8b3a | 32807 | if test "${ac_cv_lib_Sgm_SgCreateList+set}" = set; then |
d589327a | 32808 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
62fa8b3a MW |
32809 | else |
32810 | ac_check_lib_save_LIBS=$LIBS | |
32811 | LIBS="-lSgm $LIBS" | |
32812 | cat >conftest.$ac_ext <<_ACEOF | |
32813 | /* confdefs.h. */ | |
32814 | _ACEOF | |
32815 | cat confdefs.h >>conftest.$ac_ext | |
32816 | cat >>conftest.$ac_ext <<_ACEOF | |
32817 | /* end confdefs.h. */ | |
32818 | ||
47964710 VS |
32819 | /* Override any GCC internal prototype to avoid an error. |
32820 | Use char because int might match the return type of a GCC | |
32821 | builtin and then its argument prototype would still apply. */ | |
62fa8b3a MW |
32822 | #ifdef __cplusplus |
32823 | extern "C" | |
32824 | #endif | |
62fa8b3a MW |
32825 | char SgCreateList (); |
32826 | int | |
32827 | main () | |
32828 | { | |
47964710 | 32829 | return SgCreateList (); |
62fa8b3a MW |
32830 | ; |
32831 | return 0; | |
32832 | } | |
32833 | _ACEOF | |
32834 | rm -f conftest.$ac_objext conftest$ac_exeext | |
47964710 VS |
32835 | if { (ac_try="$ac_link" |
32836 | case "(($ac_try" in | |
32837 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
32838 | *) ac_try_echo=$ac_try;; | |
32839 | esac | |
d589327a | 32840 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 32841 | (eval "$ac_link") 2>conftest.er1 |
62fa8b3a MW |
32842 | ac_status=$? |
32843 | grep -v '^ *+' conftest.er1 >conftest.err | |
32844 | rm -f conftest.er1 | |
32845 | cat conftest.err >&5 | |
d589327a | 32846 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
32847 | (exit $ac_status); } && { |
32848 | test -z "$ac_c_werror_flag" || | |
32849 | test ! -s conftest.err | |
d589327a VZ |
32850 | } && test -s conftest$ac_exeext && |
32851 | $as_test_x conftest$ac_exeext; then | |
62fa8b3a MW |
32852 | ac_cv_lib_Sgm_SgCreateList=yes |
32853 | else | |
d589327a | 32854 | echo "$as_me: failed program was:" >&5 |
62fa8b3a MW |
32855 | sed 's/^/| /' conftest.$ac_ext >&5 |
32856 | ||
47964710 | 32857 | ac_cv_lib_Sgm_SgCreateList=no |
62fa8b3a | 32858 | fi |
47964710 VS |
32859 | |
32860 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
62fa8b3a MW |
32861 | conftest$ac_exeext conftest.$ac_ext |
32862 | LIBS=$ac_check_lib_save_LIBS | |
32863 | fi | |
d589327a VZ |
32864 | { echo "$as_me:$LINENO: result: $ac_cv_lib_Sgm_SgCreateList" >&5 |
32865 | echo "${ECHO_T}$ac_cv_lib_Sgm_SgCreateList" >&6; } | |
32866 | if test $ac_cv_lib_Sgm_SgCreateList = yes; then | |
62fa8b3a MW |
32867 | libsgm_link=" -lSgm" |
32868 | fi | |
32869 | ||
32870 | ||
9b8888f9 VZ |
32871 | save_CFLAGS=$CFLAGS |
32872 | CFLAGS="$TOOLKIT_INCLUDE $CFLAGS" | |
0ad5d837 | 32873 | |
d589327a VZ |
32874 | { echo "$as_me:$LINENO: checking for Motif 2" >&5 |
32875 | echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6; } | |
0ad5d837 | 32876 | if test "${wx_cv_lib_motif2+set}" = set; then |
d589327a | 32877 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
0ad5d837 VZ |
32878 | else |
32879 | cat >conftest.$ac_ext <<_ACEOF | |
a848cd7e SC |
32880 | /* confdefs.h. */ |
32881 | _ACEOF | |
32882 | cat confdefs.h >>conftest.$ac_ext | |
32883 | cat >>conftest.$ac_ext <<_ACEOF | |
32884 | /* end confdefs.h. */ | |
32885 | ||
0ad5d837 | 32886 | #include <Xm/Xm.h> |
a848cd7e SC |
32887 | |
32888 | int | |
32889 | main () | |
32890 | { | |
32891 | ||
0ad5d837 VZ |
32892 | #if XmVersion < 2000 |
32893 | Not Motif 2 | |
32894 | #endif | |
a848cd7e SC |
32895 | |
32896 | ; | |
32897 | return 0; | |
32898 | } | |
32899 | _ACEOF | |
32900 | rm -f conftest.$ac_objext | |
47964710 VS |
32901 | if { (ac_try="$ac_compile" |
32902 | case "(($ac_try" in | |
32903 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
32904 | *) ac_try_echo=$ac_try;; | |
32905 | esac | |
d589327a | 32906 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 32907 | (eval "$ac_compile") 2>conftest.er1 |
a848cd7e | 32908 | ac_status=$? |
ac1cb8d3 VS |
32909 | grep -v '^ *+' conftest.er1 >conftest.err |
32910 | rm -f conftest.er1 | |
32911 | cat conftest.err >&5 | |
d589327a | 32912 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
32913 | (exit $ac_status); } && { |
32914 | test -z "$ac_c_werror_flag" || | |
32915 | test ! -s conftest.err | |
32916 | } && test -s conftest.$ac_objext; then | |
0ad5d837 | 32917 | wx_cv_lib_motif2="yes" |
a848cd7e | 32918 | else |
d589327a | 32919 | echo "$as_me: failed program was:" >&5 |
a848cd7e SC |
32920 | sed 's/^/| /' conftest.$ac_ext >&5 |
32921 | ||
47964710 | 32922 | wx_cv_lib_motif2="no" |
0ad5d837 | 32923 | fi |
47964710 VS |
32924 | |
32925 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
0ad5d837 | 32926 | fi |
d589327a VZ |
32927 | { echo "$as_me:$LINENO: result: $wx_cv_lib_motif2" >&5 |
32928 | echo "${ECHO_T}$wx_cv_lib_motif2" >&6; } | |
0ad5d837 VZ |
32929 | if test "$wx_cv_lib_motif2" = "yes"; then |
32930 | cat >>confdefs.h <<\_ACEOF | |
32931 | #define __WXMOTIF20__ 1 | |
32932 | _ACEOF | |
a848cd7e | 32933 | |
0ad5d837 VZ |
32934 | else |
32935 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
32936 | #define __WXMOTIF20__ 0 |
32937 | _ACEOF | |
32938 | ||
0ad5d837 | 32939 | fi |
2113bc77 | 32940 | |
d589327a VZ |
32941 | { echo "$as_me:$LINENO: checking whether Motif is Lesstif" >&5 |
32942 | echo $ECHO_N "checking whether Motif is Lesstif... $ECHO_C" >&6; } | |
0ad5d837 | 32943 | if test "${wx_cv_lib_lesstif+set}" = set; then |
d589327a | 32944 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
0ad5d837 VZ |
32945 | else |
32946 | cat >conftest.$ac_ext <<_ACEOF | |
2113bc77 MW |
32947 | /* confdefs.h. */ |
32948 | _ACEOF | |
32949 | cat confdefs.h >>conftest.$ac_ext | |
32950 | cat >>conftest.$ac_ext <<_ACEOF | |
32951 | /* end confdefs.h. */ | |
32952 | ||
0ad5d837 | 32953 | #include <Xm/Xm.h> |
2113bc77 MW |
32954 | |
32955 | int | |
32956 | main () | |
32957 | { | |
32958 | ||
0ad5d837 VZ |
32959 | #if !defined(LesstifVersion) || LesstifVersion <= 0 |
32960 | Not Lesstif | |
32961 | #endif | |
2113bc77 MW |
32962 | |
32963 | ; | |
32964 | return 0; | |
32965 | } | |
32966 | _ACEOF | |
32967 | rm -f conftest.$ac_objext | |
47964710 VS |
32968 | if { (ac_try="$ac_compile" |
32969 | case "(($ac_try" in | |
32970 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
32971 | *) ac_try_echo=$ac_try;; | |
32972 | esac | |
d589327a | 32973 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 32974 | (eval "$ac_compile") 2>conftest.er1 |
2113bc77 MW |
32975 | ac_status=$? |
32976 | grep -v '^ *+' conftest.er1 >conftest.err | |
32977 | rm -f conftest.er1 | |
32978 | cat conftest.err >&5 | |
d589327a | 32979 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
32980 | (exit $ac_status); } && { |
32981 | test -z "$ac_c_werror_flag" || | |
32982 | test ! -s conftest.err | |
32983 | } && test -s conftest.$ac_objext; then | |
0ad5d837 | 32984 | wx_cv_lib_lesstif="yes" |
2113bc77 | 32985 | else |
d589327a | 32986 | echo "$as_me: failed program was:" >&5 |
2113bc77 MW |
32987 | sed 's/^/| /' conftest.$ac_ext >&5 |
32988 | ||
47964710 | 32989 | wx_cv_lib_lesstif="no" |
0ad5d837 | 32990 | fi |
47964710 VS |
32991 | |
32992 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2113bc77 | 32993 | |
0ad5d837 | 32994 | fi |
d589327a VZ |
32995 | { echo "$as_me:$LINENO: result: $wx_cv_lib_lesstif" >&5 |
32996 | echo "${ECHO_T}$wx_cv_lib_lesstif" >&6; } | |
0ad5d837 VZ |
32997 | if test "$wx_cv_lib_lesstif" = "yes"; then |
32998 | cat >>confdefs.h <<\_ACEOF | |
32999 | #define __WXLESSTIF__ 1 | |
33000 | _ACEOF | |
33001 | ||
33002 | else | |
33003 | cat >>confdefs.h <<\_ACEOF | |
2113bc77 MW |
33004 | #define __WXLESSTIF__ 0 |
33005 | _ACEOF | |
33006 | ||
0ad5d837 | 33007 | fi |
2113bc77 | 33008 | |
9b8888f9 | 33009 | CFLAGS=$save_CFLAGS |
a848cd7e | 33010 | |
62fa8b3a | 33011 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY${libsgm_link} -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11" |
a848cd7e SC |
33012 | TOOLKIT=MOTIF |
33013 | GUIDIST=MOTIF_DIST | |
33014 | fi | |
33015 | ||
74b84332 | 33016 | if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then |
a848cd7e | 33017 | if test "$wxUSE_LIBXPM" = "sys"; then |
d589327a VZ |
33018 | { echo "$as_me:$LINENO: checking for Xpm library" >&5 |
33019 | echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6; } | |
a848cd7e | 33020 | |
0ad5d837 VZ |
33021 | ac_find_libraries= |
33022 | for ac_dir in $SEARCH_LIB; | |
a848cd7e | 33023 | do |
3eca31dc | 33024 | for ac_extension in a so sl dylib dll.a; do |
a848cd7e SC |
33025 | if test -f "$ac_dir/libXpm.$ac_extension"; then |
33026 | ac_find_libraries=$ac_dir | |
33027 | break 2 | |
33028 | fi | |
33029 | done | |
33030 | done | |
33031 | ||
33032 | if test "$ac_find_libraries" != "" ; then | |
33033 | ||
0ad5d837 | 33034 | if test "$ac_find_libraries" = "default location"; then |
a848cd7e SC |
33035 | ac_path_to_link="" |
33036 | else | |
0ad5d837 VZ |
33037 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null |
33038 | result=$? | |
33039 | if test $result = 0; then | |
33040 | ac_path_to_link="" | |
33041 | else | |
33042 | ac_path_to_link=" -L$ac_find_libraries" | |
33043 | fi | |
a848cd7e SC |
33044 | fi |
33045 | ||
33046 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link" | |
d589327a VZ |
33047 | { echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5 |
33048 | echo "${ECHO_T}found in $ac_find_libraries" >&6; } | |
a848cd7e | 33049 | |
d589327a VZ |
33050 | { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5 |
33051 | echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; } | |
a848cd7e | 33052 | if test "${wx_cv_x11_xpm_h+set}" = set; then |
d589327a | 33053 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a848cd7e SC |
33054 | else |
33055 | ||
9b8888f9 VZ |
33056 | save_CFLAGS=$CFLAGS |
33057 | CFLAGS="$TOOLKIT_INCLUDE $CFLAGS" | |
a848cd7e SC |
33058 | |
33059 | cat >conftest.$ac_ext <<_ACEOF | |
33060 | /* confdefs.h. */ | |
33061 | _ACEOF | |
33062 | cat confdefs.h >>conftest.$ac_ext | |
33063 | cat >>conftest.$ac_ext <<_ACEOF | |
33064 | /* end confdefs.h. */ | |
33065 | ||
33066 | #include <X11/xpm.h> | |
33067 | ||
33068 | int | |
33069 | main () | |
33070 | { | |
33071 | ||
33072 | int version; | |
33073 | version = XpmLibraryVersion(); | |
33074 | ||
33075 | ; | |
33076 | return 0; | |
33077 | } | |
33078 | _ACEOF | |
33079 | rm -f conftest.$ac_objext | |
47964710 VS |
33080 | if { (ac_try="$ac_compile" |
33081 | case "(($ac_try" in | |
33082 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
33083 | *) ac_try_echo=$ac_try;; | |
33084 | esac | |
d589327a | 33085 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 33086 | (eval "$ac_compile") 2>conftest.er1 |
a848cd7e | 33087 | ac_status=$? |
ac1cb8d3 VS |
33088 | grep -v '^ *+' conftest.er1 >conftest.err |
33089 | rm -f conftest.er1 | |
33090 | cat conftest.err >&5 | |
d589327a | 33091 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
33092 | (exit $ac_status); } && { |
33093 | test -z "$ac_c_werror_flag" || | |
33094 | test ! -s conftest.err | |
33095 | } && test -s conftest.$ac_objext; then | |
a848cd7e SC |
33096 | wx_cv_x11_xpm_h=yes |
33097 | else | |
d589327a | 33098 | echo "$as_me: failed program was:" >&5 |
a848cd7e SC |
33099 | sed 's/^/| /' conftest.$ac_ext >&5 |
33100 | ||
47964710 | 33101 | wx_cv_x11_xpm_h=no |
a848cd7e SC |
33102 | |
33103 | fi | |
47964710 VS |
33104 | |
33105 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
a848cd7e | 33106 | |
9b8888f9 | 33107 | CFLAGS=$save_CFLAGS |
a848cd7e SC |
33108 | |
33109 | ||
33110 | fi | |
d589327a VZ |
33111 | { echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5 |
33112 | echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6; } | |
a848cd7e SC |
33113 | |
33114 | if test $wx_cv_x11_xpm_h = "yes"; then | |
33115 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm" | |
33116 | cat >>confdefs.h <<\_ACEOF | |
33117 | #define wxHAVE_LIB_XPM 1 | |
33118 | _ACEOF | |
33119 | ||
33120 | else | |
d589327a VZ |
33121 | { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5 |
33122 | echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;} | |
a848cd7e SC |
33123 | fi |
33124 | fi | |
33125 | ||
33126 | fi | |
33127 | ||
d589327a VZ |
33128 | { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5 |
33129 | echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; } | |
a848cd7e | 33130 | if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then |
d589327a | 33131 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a848cd7e SC |
33132 | else |
33133 | ac_check_lib_save_LIBS=$LIBS | |
33134 | LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS" | |
33135 | cat >conftest.$ac_ext <<_ACEOF | |
33136 | /* confdefs.h. */ | |
33137 | _ACEOF | |
33138 | cat confdefs.h >>conftest.$ac_ext | |
33139 | cat >>conftest.$ac_ext <<_ACEOF | |
33140 | /* end confdefs.h. */ | |
33141 | ||
47964710 VS |
33142 | /* Override any GCC internal prototype to avoid an error. |
33143 | Use char because int might match the return type of a GCC | |
33144 | builtin and then its argument prototype would still apply. */ | |
a848cd7e SC |
33145 | #ifdef __cplusplus |
33146 | extern "C" | |
33147 | #endif | |
a848cd7e SC |
33148 | char XShapeQueryExtension (); |
33149 | int | |
33150 | main () | |
33151 | { | |
47964710 | 33152 | return XShapeQueryExtension (); |
a848cd7e SC |
33153 | ; |
33154 | return 0; | |
33155 | } | |
33156 | _ACEOF | |
33157 | rm -f conftest.$ac_objext conftest$ac_exeext | |
47964710 VS |
33158 | if { (ac_try="$ac_link" |
33159 | case "(($ac_try" in | |
33160 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
33161 | *) ac_try_echo=$ac_try;; | |
33162 | esac | |
d589327a | 33163 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 33164 | (eval "$ac_link") 2>conftest.er1 |
a848cd7e | 33165 | ac_status=$? |
ac1cb8d3 VS |
33166 | grep -v '^ *+' conftest.er1 >conftest.err |
33167 | rm -f conftest.er1 | |
33168 | cat conftest.err >&5 | |
d589327a | 33169 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
33170 | (exit $ac_status); } && { |
33171 | test -z "$ac_c_werror_flag" || | |
33172 | test ! -s conftest.err | |
d589327a VZ |
33173 | } && test -s conftest$ac_exeext && |
33174 | $as_test_x conftest$ac_exeext; then | |
a848cd7e SC |
33175 | ac_cv_lib_Xext_XShapeQueryExtension=yes |
33176 | else | |
d589327a | 33177 | echo "$as_me: failed program was:" >&5 |
a848cd7e SC |
33178 | sed 's/^/| /' conftest.$ac_ext >&5 |
33179 | ||
47964710 | 33180 | ac_cv_lib_Xext_XShapeQueryExtension=no |
a848cd7e | 33181 | fi |
47964710 VS |
33182 | |
33183 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
ac1cb8d3 | 33184 | conftest$ac_exeext conftest.$ac_ext |
a848cd7e SC |
33185 | LIBS=$ac_check_lib_save_LIBS |
33186 | fi | |
d589327a VZ |
33187 | { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5 |
33188 | echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; } | |
33189 | if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then | |
a848cd7e SC |
33190 | |
33191 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext" | |
33192 | wxHAVE_XEXT_LIB=1 | |
33193 | ||
33194 | fi | |
33195 | ||
33196 | ||
33197 | if test "$wxHAVE_XEXT_LIB" = 1; then | |
9b8888f9 VZ |
33198 | save_CFLAGS="$CFLAGS" |
33199 | CFLAGS="$TOOLKIT_INCLUDE $CFLAGS" | |
a848cd7e | 33200 | |
d589327a VZ |
33201 | { echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5 |
33202 | echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6; } | |
a848cd7e SC |
33203 | cat >conftest.$ac_ext <<_ACEOF |
33204 | /* confdefs.h. */ | |
33205 | _ACEOF | |
33206 | cat confdefs.h >>conftest.$ac_ext | |
33207 | cat >>conftest.$ac_ext <<_ACEOF | |
33208 | /* end confdefs.h. */ | |
33209 | ||
33210 | #include <X11/Xlib.h> | |
33211 | #include <X11/extensions/shape.h> | |
33212 | ||
33213 | int | |
33214 | main () | |
33215 | { | |
33216 | ||
33217 | int dummy1, dummy2; | |
33218 | XShapeQueryExtension((Display*)NULL, | |
33219 | (int*)NULL, (int*)NULL); | |
33220 | ||
33221 | ; | |
33222 | return 0; | |
33223 | } | |
33224 | _ACEOF | |
33225 | rm -f conftest.$ac_objext | |
47964710 VS |
33226 | if { (ac_try="$ac_compile" |
33227 | case "(($ac_try" in | |
33228 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
33229 | *) ac_try_echo=$ac_try;; | |
33230 | esac | |
d589327a | 33231 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 33232 | (eval "$ac_compile") 2>conftest.er1 |
a848cd7e | 33233 | ac_status=$? |
ac1cb8d3 VS |
33234 | grep -v '^ *+' conftest.er1 >conftest.err |
33235 | rm -f conftest.er1 | |
33236 | cat conftest.err >&5 | |
d589327a | 33237 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
33238 | (exit $ac_status); } && { |
33239 | test -z "$ac_c_werror_flag" || | |
33240 | test ! -s conftest.err | |
33241 | } && test -s conftest.$ac_objext; then | |
a848cd7e SC |
33242 | |
33243 | cat >>confdefs.h <<\_ACEOF | |
33244 | #define HAVE_XSHAPE 1 | |
33245 | _ACEOF | |
33246 | ||
d589327a VZ |
33247 | { echo "$as_me:$LINENO: result: found" >&5 |
33248 | echo "${ECHO_T}found" >&6; } | |
a848cd7e SC |
33249 | |
33250 | else | |
d589327a | 33251 | echo "$as_me: failed program was:" >&5 |
a848cd7e SC |
33252 | sed 's/^/| /' conftest.$ac_ext >&5 |
33253 | ||
33254 | ||
d589327a VZ |
33255 | { echo "$as_me:$LINENO: result: not found" >&5 |
33256 | echo "${ECHO_T}not found" >&6; } | |
a848cd7e SC |
33257 | |
33258 | fi | |
47964710 VS |
33259 | |
33260 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
9b8888f9 | 33261 | CFLAGS="$save_CFLAGS" |
a848cd7e SC |
33262 | |
33263 | fi | |
33264 | fi | |
33265 | ||
2ea057f9 | 33266 | if test "$wxUSE_OSX_CARBON" = 1; then |
d589327a VZ |
33267 | { echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5 |
33268 | echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6; } | |
a848cd7e | 33269 | if test "$GCC" = yes; then |
d589327a VZ |
33270 | { echo "$as_me:$LINENO: result: gcc" >&5 |
33271 | echo "${ECHO_T}gcc" >&6; } | |
a848cd7e SC |
33272 | CPPFLAGS_PASCAL="-fpascal-strings" |
33273 | elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then | |
d589327a VZ |
33274 | { echo "$as_me:$LINENO: result: xlc" >&5 |
33275 | echo "${ECHO_T}xlc" >&6; } | |
a848cd7e SC |
33276 | CPPFLAGS_PASCAL="-qmacpstr" |
33277 | else | |
d589327a VZ |
33278 | { echo "$as_me:$LINENO: result: none" >&5 |
33279 | echo "${ECHO_T}none" >&6; } | |
a848cd7e SC |
33280 | fi |
33281 | ||
1e9e8aba | 33282 | if test "x$wxUSE_UNIX" = "xyes"; then |
9ed154da | 33283 | CPPFLAGS="$CPPFLAGS_PASCAL -I/Developer/Headers/FlatCarbon $CPPFLAGS" |
1e9e8aba | 33284 | else |
9ed154da | 33285 | CPPFLAGS="$CPPFLAGS_PASCAL -DTARGET_CARBON $CPPFLAGS" |
1e9e8aba | 33286 | fi |
a848cd7e | 33287 | |
2ea057f9 SC |
33288 | TOOLKIT=OSX_CARBON |
33289 | GUIDIST=OSX_CARBON_DIST | |
dd21ced8 | 33290 | WXBASEPORT="_carbon" |
17005cd7 VZ |
33291 | |
33292 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMAC__ -D__WXOSX__" | |
a848cd7e SC |
33293 | fi |
33294 | ||
2ea057f9 SC |
33295 | if test "$wxUSE_OSX_COCOA" = 1; then |
33296 | TOOLKIT=OSX_COCOA | |
33297 | GUIDIST=OSX_COCOA_DIST | |
17005cd7 VZ |
33298 | |
33299 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMAC__ -D__WXOSX__" | |
2ea057f9 SC |
33300 | fi |
33301 | ||
80aa2a2f VZ |
33302 | if test "$wxUSE_OSX_IPHONE" = 1; then |
33303 | TOOLKIT=OSX_IPHONE | |
33304 | fi | |
33305 | ||
f10f4c87 | 33306 | if test "$wxUSE_OLD_COCOA" = 1; then |
a848cd7e SC |
33307 | TOOLKIT=COCOA |
33308 | GUIDIST=COCOA_DIST | |
33309 | fi | |
33310 | ||
33311 | if test "$wxUSE_PM" = 1; then | |
33312 | TOOLKIT=PM | |
de59c161 | 33313 | GUIDIST=PM_DIST |
d589327a VZ |
33314 | { echo "$as_me:$LINENO: checking for type SPBCDATA" >&5 |
33315 | echo $ECHO_N "checking for type SPBCDATA... $ECHO_C" >&6; } | |
de59c161 | 33316 | if test "${wx_cv_spbcdata+set}" = set; then |
d589327a | 33317 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
de59c161 RD |
33318 | else |
33319 | ||
33320 | cat >conftest.$ac_ext <<_ACEOF | |
de59c161 RD |
33321 | /* confdefs.h. */ |
33322 | _ACEOF | |
33323 | cat confdefs.h >>conftest.$ac_ext | |
33324 | cat >>conftest.$ac_ext <<_ACEOF | |
33325 | /* end confdefs.h. */ | |
33326 | ||
33327 | #define INCL_PM | |
33328 | #include <os2.h> | |
33329 | ||
33330 | int | |
33331 | main () | |
33332 | { | |
33333 | ||
33334 | SPBCDATA test; | |
33335 | ||
33336 | ; | |
33337 | return 0; | |
33338 | } | |
33339 | _ACEOF | |
33340 | rm -f conftest.$ac_objext | |
47964710 VS |
33341 | if { (ac_try="$ac_compile" |
33342 | case "(($ac_try" in | |
33343 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
33344 | *) ac_try_echo=$ac_try;; | |
33345 | esac | |
d589327a | 33346 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 33347 | (eval "$ac_compile") 2>conftest.er1 |
de59c161 | 33348 | ac_status=$? |
ac1cb8d3 VS |
33349 | grep -v '^ *+' conftest.er1 >conftest.err |
33350 | rm -f conftest.er1 | |
33351 | cat conftest.err >&5 | |
d589327a | 33352 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
33353 | (exit $ac_status); } && { |
33354 | test -z "$ac_c_werror_flag" || | |
33355 | test ! -s conftest.err | |
33356 | } && test -s conftest.$ac_objext; then | |
de59c161 RD |
33357 | wx_cv_spbcdata=yes |
33358 | else | |
d589327a | 33359 | echo "$as_me: failed program was:" >&5 |
de59c161 RD |
33360 | sed 's/^/| /' conftest.$ac_ext >&5 |
33361 | ||
47964710 | 33362 | wx_cv_spbcdata=no |
de59c161 RD |
33363 | |
33364 | fi | |
47964710 VS |
33365 | |
33366 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
de59c161 RD |
33367 | |
33368 | ||
33369 | fi | |
d589327a VZ |
33370 | { echo "$as_me:$LINENO: result: $wx_cv_spbcdata" >&5 |
33371 | echo "${ECHO_T}$wx_cv_spbcdata" >&6; } | |
de59c161 RD |
33372 | |
33373 | if test $wx_cv_spbcdata = "yes"; then | |
33374 | cat >>confdefs.h <<\_ACEOF | |
33375 | #define HAVE_SPBCDATA 1 | |
33376 | _ACEOF | |
33377 | ||
33378 | fi | |
a848cd7e SC |
33379 | fi |
33380 | ||
33381 | if test "$TOOLKIT" = "PM" ; then | |
33382 | TOOLKIT_DIR="os2" | |
33383 | else | |
435a5ad0 | 33384 | TOOLKIT_DIR=`echo ${TOOLKIT} | tr '[A-Z]' '[a-z]'` |
a848cd7e SC |
33385 | fi |
33386 | ||
a848cd7e | 33387 | if test "$wxUSE_UNIVERSAL" = "yes"; then |
a848cd7e SC |
33388 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__" |
33389 | WIDGET_SET=univ | |
a848cd7e SC |
33390 | fi |
33391 | ||
33392 | GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST" | |
33393 | DISTDIR="wx\$(TOOLKIT)" | |
33394 | else | |
33395 | USE_GUI=0 | |
33396 | ||
33397 | TOOLKIT_DIR="base" | |
33398 | ||
33399 | if test "$USE_WIN32" = 1 ; then | |
a848cd7e | 33400 | TOOLKIT="MSW" |
a848cd7e SC |
33401 | fi |
33402 | ||
a848cd7e SC |
33403 | GUIDIST="BASE_DIST" |
33404 | DISTDIR="wxBase" | |
33405 | fi | |
33406 | ||
33407 | ||
ca4c9b7e VS |
33408 | |
33409 | if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_UTF8" = "auto" ; then | |
6517fa86 | 33410 | if test "$USE_UNIX" = 1 -a "$wxUSE_DARWIN" != 1 ; then |
ca4c9b7e | 33411 | wxUSE_UNICODE_UTF8=yes |
6517fa86 | 33412 | elif test "$USE_OS2" = 1 ; then |
63a09523 | 33413 | wxUSE_UNICODE_UTF8=yes |
ca4c9b7e VS |
33414 | else |
33415 | wxUSE_UNICODE_UTF8=no | |
33416 | fi | |
33417 | fi | |
33418 | ||
33419 | ||
d12aef51 VZ |
33420 | if test "$wxUSE_GUI" = "yes"; then |
33421 | if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then | |
1f7e12cc DE |
33422 | |
33423 | for ac_header in X11/Xlib.h | |
33424 | do | |
d589327a VZ |
33425 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
33426 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
33427 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
47964710 | 33428 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
d589327a | 33429 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
d12aef51 | 33430 | else |
6e7b8bcb | 33431 | cat >conftest.$ac_ext <<_ACEOF |
d12aef51 VZ |
33432 | /* confdefs.h. */ |
33433 | _ACEOF | |
33434 | cat confdefs.h >>conftest.$ac_ext | |
33435 | cat >>conftest.$ac_ext <<_ACEOF | |
33436 | /* end confdefs.h. */ | |
6e7b8bcb PC |
33437 | |
33438 | ||
1f7e12cc | 33439 | #include <$ac_header> |
d12aef51 VZ |
33440 | _ACEOF |
33441 | rm -f conftest.$ac_objext | |
47964710 VS |
33442 | if { (ac_try="$ac_compile" |
33443 | case "(($ac_try" in | |
33444 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
33445 | *) ac_try_echo=$ac_try;; | |
33446 | esac | |
d589327a | 33447 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 33448 | (eval "$ac_compile") 2>conftest.er1 |
d12aef51 VZ |
33449 | ac_status=$? |
33450 | grep -v '^ *+' conftest.er1 >conftest.err | |
33451 | rm -f conftest.er1 | |
33452 | cat conftest.err >&5 | |
d589327a | 33453 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
33454 | (exit $ac_status); } && { |
33455 | test -z "$ac_c_werror_flag" || | |
33456 | test ! -s conftest.err | |
33457 | } && test -s conftest.$ac_objext; then | |
1f7e12cc | 33458 | eval "$as_ac_Header=yes" |
d12aef51 | 33459 | else |
d589327a | 33460 | echo "$as_me: failed program was:" >&5 |
d12aef51 VZ |
33461 | sed 's/^/| /' conftest.$ac_ext >&5 |
33462 | ||
47964710 | 33463 | eval "$as_ac_Header=no" |
d12aef51 | 33464 | fi |
47964710 VS |
33465 | |
33466 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
d12aef51 | 33467 | fi |
d589327a VZ |
33468 | ac_res=`eval echo '${'$as_ac_Header'}'` |
33469 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
33470 | echo "${ECHO_T}$ac_res" >&6; } | |
33471 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
1f7e12cc | 33472 | cat >>confdefs.h <<_ACEOF |
d589327a | 33473 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
1f7e12cc DE |
33474 | _ACEOF |
33475 | ||
33476 | fi | |
7fd3acaf | 33477 | |
1f7e12cc | 33478 | done |
d12aef51 | 33479 | |
1f7e12cc DE |
33480 | |
33481 | for ac_header in X11/XKBlib.h | |
33482 | do | |
d589327a VZ |
33483 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
33484 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
33485 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
47964710 | 33486 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
d589327a | 33487 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
d12aef51 VZ |
33488 | else |
33489 | cat >conftest.$ac_ext <<_ACEOF | |
33490 | /* confdefs.h. */ | |
33491 | _ACEOF | |
33492 | cat confdefs.h >>conftest.$ac_ext | |
33493 | cat >>conftest.$ac_ext <<_ACEOF | |
33494 | /* end confdefs.h. */ | |
33495 | ||
33496 | #if HAVE_X11_XLIB_H | |
33497 | #include <X11/Xlib.h> | |
33498 | #endif | |
33499 | ||
33500 | ||
1f7e12cc | 33501 | #include <$ac_header> |
d12aef51 VZ |
33502 | _ACEOF |
33503 | rm -f conftest.$ac_objext | |
47964710 VS |
33504 | if { (ac_try="$ac_compile" |
33505 | case "(($ac_try" in | |
33506 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
33507 | *) ac_try_echo=$ac_try;; | |
33508 | esac | |
d589327a | 33509 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 33510 | (eval "$ac_compile") 2>conftest.er1 |
d12aef51 VZ |
33511 | ac_status=$? |
33512 | grep -v '^ *+' conftest.er1 >conftest.err | |
33513 | rm -f conftest.er1 | |
33514 | cat conftest.err >&5 | |
d589327a | 33515 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
33516 | (exit $ac_status); } && { |
33517 | test -z "$ac_c_werror_flag" || | |
33518 | test ! -s conftest.err | |
33519 | } && test -s conftest.$ac_objext; then | |
1f7e12cc | 33520 | eval "$as_ac_Header=yes" |
d12aef51 | 33521 | else |
d589327a | 33522 | echo "$as_me: failed program was:" >&5 |
d12aef51 VZ |
33523 | sed 's/^/| /' conftest.$ac_ext >&5 |
33524 | ||
47964710 | 33525 | eval "$as_ac_Header=no" |
d12aef51 | 33526 | fi |
47964710 VS |
33527 | |
33528 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
d12aef51 | 33529 | fi |
d589327a VZ |
33530 | ac_res=`eval echo '${'$as_ac_Header'}'` |
33531 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
33532 | echo "${ECHO_T}$ac_res" >&6; } | |
33533 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
1f7e12cc | 33534 | cat >>confdefs.h <<_ACEOF |
d589327a | 33535 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
1f7e12cc DE |
33536 | _ACEOF |
33537 | ||
33538 | fi | |
d12aef51 | 33539 | |
1f7e12cc | 33540 | done |
d12aef51 VZ |
33541 | |
33542 | fi | |
33543 | fi | |
33544 | ||
a848cd7e SC |
33545 | |
33546 | ||
bfd62c8c | 33547 | USE_XINERAMA=0 |
a848cd7e | 33548 | if test "$wxUSE_DISPLAY" = "yes"; then |
bfd62c8c | 33549 | if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_X11" = 1 -o "$wxUSE_GTK1" = 1; then |
d589327a VZ |
33550 | { echo "$as_me:$LINENO: checking for Xinerama" >&5 |
33551 | echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6; } | |
a848cd7e | 33552 | |
0ad5d837 VZ |
33553 | ac_find_libraries= |
33554 | for ac_dir in $SEARCH_LIB; | |
33555 | do | |
33556 | for ac_extension in a so sl dylib dll.a; do | |
33557 | if test -f "$ac_dir/libXinerama.$ac_extension"; then | |
33558 | ac_find_libraries=$ac_dir | |
33559 | break 2 | |
33560 | fi | |
33561 | done | |
33562 | done | |
33563 | ||
a848cd7e SC |
33564 | if test "$ac_find_libraries" != "" ; then |
33565 | ||
0ad5d837 | 33566 | if test "$ac_find_libraries" = "default location"; then |
a848cd7e SC |
33567 | ac_path_to_link="" |
33568 | else | |
0ad5d837 VZ |
33569 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null |
33570 | result=$? | |
33571 | if test $result = 0; then | |
33572 | ac_path_to_link="" | |
33573 | else | |
33574 | ac_path_to_link=" -L$ac_find_libraries" | |
33575 | fi | |
a848cd7e SC |
33576 | fi |
33577 | ||
33578 | if test "$ac_path_to_link" != " -L/usr/lib" ; then | |
33579 | LDFLAGS="$LDFLAGS $ac_path_to_link" | |
33580 | fi | |
bfd62c8c | 33581 | USE_XINERAMA=1 |
a848cd7e | 33582 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama" |
d589327a VZ |
33583 | { echo "$as_me:$LINENO: result: yes" >&5 |
33584 | echo "${ECHO_T}yes" >&6; } | |
bfd62c8c VZ |
33585 | else |
33586 | { echo "$as_me:$LINENO: result: no" >&5 | |
33587 | echo "${ECHO_T}no" >&6; } | |
33588 | { echo "$as_me:$LINENO: WARNING: Xinerama not found; disabling wxDisplay" >&5 | |
33589 | echo "$as_me: WARNING: Xinerama not found; disabling wxDisplay" >&2;} | |
33590 | wxUSE_DISPLAY="no" | |
33591 | fi | |
33592 | elif test "$wxUSE_MSW" = 1; then | |
33593 | { echo "$as_me:$LINENO: checking for ddraw.h" >&5 | |
33594 | echo $ECHO_N "checking for ddraw.h... $ECHO_C" >&6; } | |
33595 | if test "${ac_cv_header_ddraw_h+set}" = set; then | |
33596 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33597 | else | |
33598 | cat >conftest.$ac_ext <<_ACEOF | |
33599 | /* confdefs.h. */ | |
33600 | _ACEOF | |
33601 | cat confdefs.h >>conftest.$ac_ext | |
33602 | cat >>conftest.$ac_ext <<_ACEOF | |
33603 | /* end confdefs.h. */ | |
33604 | #include <windows.h> | |
a848cd7e | 33605 | |
bfd62c8c VZ |
33606 | #include <ddraw.h> |
33607 | _ACEOF | |
33608 | rm -f conftest.$ac_objext | |
33609 | if { (ac_try="$ac_compile" | |
33610 | case "(($ac_try" in | |
33611 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
33612 | *) ac_try_echo=$ac_try;; | |
33613 | esac | |
33614 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
33615 | (eval "$ac_compile") 2>conftest.er1 | |
33616 | ac_status=$? | |
33617 | grep -v '^ *+' conftest.er1 >conftest.err | |
33618 | rm -f conftest.er1 | |
33619 | cat conftest.err >&5 | |
33620 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33621 | (exit $ac_status); } && { | |
33622 | test -z "$ac_c_werror_flag" || | |
33623 | test ! -s conftest.err | |
33624 | } && test -s conftest.$ac_objext; then | |
33625 | ac_cv_header_ddraw_h=yes | |
33626 | else | |
33627 | echo "$as_me: failed program was:" >&5 | |
33628 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33629 | ||
33630 | ac_cv_header_ddraw_h=no | |
33631 | fi | |
33632 | ||
33633 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
33634 | fi | |
33635 | { echo "$as_me:$LINENO: result: $ac_cv_header_ddraw_h" >&5 | |
33636 | echo "${ECHO_T}$ac_cv_header_ddraw_h" >&6; } | |
33637 | ||
33638 | ||
33639 | fi | |
33640 | fi | |
33641 | ||
33642 | if test "$wxUSE_DISPLAY" = "yes"; then | |
33643 | if test "$USE_XINERAMA" = 1 -o "$wxUSE_GTK" = 1; then | |
33644 | { echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5 | |
d589327a | 33645 | echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6; } |
a848cd7e | 33646 | |
0ad5d837 VZ |
33647 | ac_find_libraries= |
33648 | for ac_dir in $SEARCH_LIB; | |
a848cd7e | 33649 | do |
3eca31dc | 33650 | for ac_extension in a so sl dylib dll.a; do |
a848cd7e SC |
33651 | if test -f "$ac_dir/libXxf86vm.$ac_extension"; then |
33652 | ac_find_libraries=$ac_dir | |
33653 | break 2 | |
33654 | fi | |
33655 | done | |
33656 | done | |
33657 | ||
bfd62c8c VZ |
33658 | if test "$ac_find_libraries" != "" ; then |
33659 | { echo "$as_me:$LINENO: result: yes" >&5 | |
d589327a | 33660 | echo "${ECHO_T}yes" >&6; } |
1f7e12cc DE |
33661 | |
33662 | for ac_header in X11/extensions/xf86vmode.h | |
33663 | do | |
d589327a VZ |
33664 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
33665 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
33666 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
47964710 | 33667 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
d589327a | 33668 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a848cd7e SC |
33669 | else |
33670 | cat >conftest.$ac_ext <<_ACEOF | |
33671 | /* confdefs.h. */ | |
33672 | _ACEOF | |
33673 | cat confdefs.h >>conftest.$ac_ext | |
33674 | cat >>conftest.$ac_ext <<_ACEOF | |
33675 | /* end confdefs.h. */ | |
33676 | ||
bfd62c8c VZ |
33677 | #if HAVE_X11_XLIB_H |
33678 | #include <X11/Xlib.h> | |
33679 | #endif | |
a848cd7e SC |
33680 | |
33681 | ||
1f7e12cc | 33682 | #include <$ac_header> |
a848cd7e SC |
33683 | _ACEOF |
33684 | rm -f conftest.$ac_objext | |
47964710 VS |
33685 | if { (ac_try="$ac_compile" |
33686 | case "(($ac_try" in | |
33687 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
33688 | *) ac_try_echo=$ac_try;; | |
33689 | esac | |
d589327a | 33690 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 33691 | (eval "$ac_compile") 2>conftest.er1 |
a848cd7e | 33692 | ac_status=$? |
ac1cb8d3 VS |
33693 | grep -v '^ *+' conftest.er1 >conftest.err |
33694 | rm -f conftest.er1 | |
33695 | cat conftest.err >&5 | |
d589327a | 33696 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
33697 | (exit $ac_status); } && { |
33698 | test -z "$ac_c_werror_flag" || | |
33699 | test ! -s conftest.err | |
33700 | } && test -s conftest.$ac_objext; then | |
1f7e12cc | 33701 | eval "$as_ac_Header=yes" |
a848cd7e | 33702 | else |
d589327a | 33703 | echo "$as_me: failed program was:" >&5 |
a848cd7e SC |
33704 | sed 's/^/| /' conftest.$ac_ext >&5 |
33705 | ||
47964710 | 33706 | eval "$as_ac_Header=no" |
a848cd7e | 33707 | fi |
47964710 VS |
33708 | |
33709 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
a848cd7e | 33710 | fi |
d589327a VZ |
33711 | ac_res=`eval echo '${'$as_ac_Header'}'` |
33712 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
33713 | echo "${ECHO_T}$ac_res" >&6; } | |
33714 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
1f7e12cc | 33715 | cat >>confdefs.h <<_ACEOF |
d589327a | 33716 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
1f7e12cc | 33717 | _ACEOF |
a848cd7e | 33718 | |
bfd62c8c | 33719 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm" |
a848cd7e SC |
33720 | |
33721 | fi | |
33722 | ||
1f7e12cc | 33723 | done |
a848cd7e | 33724 | |
a848cd7e | 33725 | else |
d589327a VZ |
33726 | { echo "$as_me:$LINENO: result: no" >&5 |
33727 | echo "${ECHO_T}no" >&6; } | |
a848cd7e SC |
33728 | fi |
33729 | fi | |
33730 | fi | |
33731 | ||
88bbc332 | 33732 | if test "$wxUSE_DETECT_SM" = "yes"; then |
f10f4c87 | 33733 | if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_OLD_COCOA" != 1; then |
d589327a VZ |
33734 | { echo "$as_me:$LINENO: checking for -lSM - X11 session management" >&5 |
33735 | echo $ECHO_N "checking for -lSM - X11 session management... $ECHO_C" >&6; } | |
88bbc332 RR |
33736 | |
33737 | ac_find_libraries= | |
33738 | for ac_dir in $SEARCH_LIB; | |
33739 | do | |
33740 | for ac_extension in a so sl dylib dll.a; do | |
33741 | if test -f "$ac_dir/libSM.$ac_extension"; then | |
33742 | ac_find_libraries=$ac_dir | |
33743 | break 2 | |
33744 | fi | |
33745 | done | |
33746 | done | |
33747 | ||
33748 | if test "$ac_find_libraries" != "" ; then | |
33749 | ||
33750 | if test "$ac_find_libraries" = "default location"; then | |
33751 | ac_path_to_link="" | |
33752 | else | |
33753 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null | |
33754 | result=$? | |
33755 | if test $result = 0; then | |
33756 | ac_path_to_link="" | |
33757 | else | |
33758 | ac_path_to_link=" -L$ac_find_libraries" | |
33759 | fi | |
33760 | fi | |
33761 | ||
33762 | if test "$ac_path_to_link" != " -L/usr/lib" ; then | |
33763 | LDFLAGS="$LDFLAGS $ac_path_to_link" | |
33764 | fi | |
33765 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lSM" | |
d589327a VZ |
33766 | { echo "$as_me:$LINENO: result: yes" >&5 |
33767 | echo "${ECHO_T}yes" >&6; } | |
88bbc332 | 33768 | else |
d589327a VZ |
33769 | { echo "$as_me:$LINENO: result: no" >&5 |
33770 | echo "${ECHO_T}no" >&6; } | |
33771 | { echo "$as_me:$LINENO: WARNING: libSM not found; disabling session management detection" >&5 | |
33772 | echo "$as_me: WARNING: libSM not found; disabling session management detection" >&2;} | |
88bbc332 RR |
33773 | wxUSE_DETECT_SM="no" |
33774 | fi | |
33775 | else | |
33776 | wxUSE_DETECT_SM="no" | |
33777 | fi | |
33778 | fi | |
33779 | ||
33780 | ||
a848cd7e SC |
33781 | |
33782 | USE_OPENGL=0 | |
f03637a2 | 33783 | if test "$wxUSE_OPENGL" = "yes" -o "$wxUSE_OPENGL" = "auto"; then |
0dd9646e FM |
33784 | |
33785 | ||
f10f4c87 | 33786 | if test "$wxUSE_OSX_CARBON" = 1 -o "$wxUSE_OSX_COCOA" = 1 -o "$wxUSE_OLD_COCOA" = 1; then |
a848cd7e SC |
33787 | OPENGL_LIBS="-framework OpenGL -framework AGL" |
33788 | elif test "$wxUSE_MSW" = 1; then | |
33789 | OPENGL_LIBS="-lopengl32 -lglu32" | |
0dd9646e FM |
33790 | elif test "$wxUSE_MOTIF" = 1 -o "$wxUSE_X11" = 1 -o "$wxUSE_GTK2" = 1 -o "$wxUSE_GTK" = 1; then |
33791 | ||
d589327a VZ |
33792 | { echo "$as_me:$LINENO: checking for OpenGL headers" >&5 |
33793 | echo $ECHO_N "checking for OpenGL headers... $ECHO_C" >&6; } | |
a848cd7e | 33794 | |
a848cd7e | 33795 | ac_find_includes= |
02b05020 | 33796 | for ac_dir in $SEARCH_INCLUDE /opt/graphics/OpenGL/include /usr/include; |
a848cd7e SC |
33797 | do |
33798 | if test -f "$ac_dir/GL/gl.h"; then | |
33799 | ac_find_includes=$ac_dir | |
33800 | break | |
33801 | fi | |
33802 | done | |
33803 | ||
33804 | if test "$ac_find_includes" != "" ; then | |
d589327a VZ |
33805 | { echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5 |
33806 | echo "${ECHO_T}found in $ac_find_includes" >&6; } | |
a848cd7e SC |
33807 | |
33808 | if test "x$ac_find_includes" = "x/usr/include"; then | |
33809 | ac_path_to_include="" | |
33810 | else | |
33811 | echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null | |
33812 | result=$? | |
33813 | if test $result = 0; then | |
33814 | ac_path_to_include="" | |
33815 | else | |
33816 | ac_path_to_include=" -I$ac_find_includes" | |
33817 | fi | |
33818 | fi | |
33819 | ||
c92ad099 | 33820 | CPPFLAGS="$ac_path_to_include $CPPFLAGS" |
e541dae0 | 33821 | else |
d589327a VZ |
33822 | { echo "$as_me:$LINENO: result: not found" >&5 |
33823 | echo "${ECHO_T}not found" >&6; } | |
a848cd7e SC |
33824 | fi |
33825 | ||
d589327a VZ |
33826 | { echo "$as_me:$LINENO: checking for GL/gl.h" >&5 |
33827 | echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6; } | |
a848cd7e | 33828 | if test "${ac_cv_header_GL_gl_h+set}" = set; then |
d589327a | 33829 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a848cd7e | 33830 | else |
6e7b8bcb | 33831 | cat >conftest.$ac_ext <<_ACEOF |
a848cd7e SC |
33832 | /* confdefs.h. */ |
33833 | _ACEOF | |
33834 | cat confdefs.h >>conftest.$ac_ext | |
33835 | cat >>conftest.$ac_ext <<_ACEOF | |
33836 | /* end confdefs.h. */ | |
6e7b8bcb PC |
33837 | |
33838 | ||
a848cd7e SC |
33839 | #include <GL/gl.h> |
33840 | _ACEOF | |
33841 | rm -f conftest.$ac_objext | |
47964710 VS |
33842 | if { (ac_try="$ac_compile" |
33843 | case "(($ac_try" in | |
33844 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
33845 | *) ac_try_echo=$ac_try;; | |
33846 | esac | |
d589327a | 33847 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 33848 | (eval "$ac_compile") 2>conftest.er1 |
a848cd7e | 33849 | ac_status=$? |
ac1cb8d3 VS |
33850 | grep -v '^ *+' conftest.er1 >conftest.err |
33851 | rm -f conftest.er1 | |
33852 | cat conftest.err >&5 | |
d589327a | 33853 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
33854 | (exit $ac_status); } && { |
33855 | test -z "$ac_c_werror_flag" || | |
33856 | test ! -s conftest.err | |
33857 | } && test -s conftest.$ac_objext; then | |
6e7b8bcb | 33858 | ac_cv_header_GL_gl_h=yes |
a848cd7e | 33859 | else |
d589327a | 33860 | echo "$as_me: failed program was:" >&5 |
a848cd7e SC |
33861 | sed 's/^/| /' conftest.$ac_ext >&5 |
33862 | ||
47964710 | 33863 | ac_cv_header_GL_gl_h=no |
a848cd7e | 33864 | fi |
47964710 VS |
33865 | |
33866 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
a848cd7e | 33867 | fi |
d589327a VZ |
33868 | { echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5 |
33869 | echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6; } | |
33870 | if test $ac_cv_header_GL_gl_h = yes; then | |
a848cd7e | 33871 | |
d589327a VZ |
33872 | { echo "$as_me:$LINENO: checking for GL/glu.h" >&5 |
33873 | echo $ECHO_N "checking for GL/glu.h... $ECHO_C" >&6; } | |
5dfc7e56 | 33874 | if test "${ac_cv_header_GL_glu_h+set}" = set; then |
d589327a | 33875 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5dfc7e56 | 33876 | else |
b55e1842 | 33877 | cat >conftest.$ac_ext <<_ACEOF |
5dfc7e56 VZ |
33878 | /* confdefs.h. */ |
33879 | _ACEOF | |
33880 | cat confdefs.h >>conftest.$ac_ext | |
33881 | cat >>conftest.$ac_ext <<_ACEOF | |
33882 | /* end confdefs.h. */ | |
b55e1842 VZ |
33883 | |
33884 | ||
5dfc7e56 VZ |
33885 | #include <GL/glu.h> |
33886 | _ACEOF | |
33887 | rm -f conftest.$ac_objext | |
47964710 VS |
33888 | if { (ac_try="$ac_compile" |
33889 | case "(($ac_try" in | |
33890 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
33891 | *) ac_try_echo=$ac_try;; | |
33892 | esac | |
d589327a | 33893 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 33894 | (eval "$ac_compile") 2>conftest.er1 |
5dfc7e56 VZ |
33895 | ac_status=$? |
33896 | grep -v '^ *+' conftest.er1 >conftest.err | |
33897 | rm -f conftest.er1 | |
33898 | cat conftest.err >&5 | |
d589327a | 33899 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
33900 | (exit $ac_status); } && { |
33901 | test -z "$ac_c_werror_flag" || | |
33902 | test ! -s conftest.err | |
33903 | } && test -s conftest.$ac_objext; then | |
b55e1842 | 33904 | ac_cv_header_GL_glu_h=yes |
5dfc7e56 | 33905 | else |
d589327a | 33906 | echo "$as_me: failed program was:" >&5 |
5dfc7e56 VZ |
33907 | sed 's/^/| /' conftest.$ac_ext >&5 |
33908 | ||
47964710 | 33909 | ac_cv_header_GL_glu_h=no |
5dfc7e56 | 33910 | fi |
47964710 VS |
33911 | |
33912 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5dfc7e56 | 33913 | fi |
d589327a VZ |
33914 | { echo "$as_me:$LINENO: result: $ac_cv_header_GL_glu_h" >&5 |
33915 | echo "${ECHO_T}$ac_cv_header_GL_glu_h" >&6; } | |
33916 | if test $ac_cv_header_GL_glu_h = yes; then | |
5dfc7e56 | 33917 | |
a848cd7e SC |
33918 | found_gl=0 |
33919 | ||
d589327a VZ |
33920 | { echo "$as_me:$LINENO: checking for -lGL" >&5 |
33921 | echo $ECHO_N "checking for -lGL... $ECHO_C" >&6; } | |
a848cd7e | 33922 | |
0ad5d837 | 33923 | ac_find_libraries= |
02b05020 | 33924 | for ac_dir in $SEARCH_LIB /opt/graphics/OpenGL/lib; |
a848cd7e | 33925 | do |
3eca31dc | 33926 | for ac_extension in a so sl dylib dll.a; do |
a848cd7e SC |
33927 | if test -f "$ac_dir/libGL.$ac_extension"; then |
33928 | ac_find_libraries=$ac_dir | |
33929 | break 2 | |
33930 | fi | |
33931 | done | |
33932 | done | |
33933 | ||
33934 | if test "$ac_find_libraries" != "" ; then | |
d589327a VZ |
33935 | { echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5 |
33936 | echo "${ECHO_T}found in $ac_find_libraries" >&6; } | |
69120ee4 | 33937 | |
a848cd7e | 33938 | |
0ad5d837 | 33939 | if test "$ac_find_libraries" = "default location"; then |
a848cd7e SC |
33940 | ac_path_to_link="" |
33941 | else | |
0ad5d837 VZ |
33942 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null |
33943 | result=$? | |
33944 | if test $result = 0; then | |
33945 | ac_path_to_link="" | |
33946 | else | |
33947 | ac_path_to_link=" -L$ac_find_libraries" | |
33948 | fi | |
a848cd7e SC |
33949 | fi |
33950 | ||
33951 | if test "$ac_path_to_link" != " -L/usr/lib" ; then | |
33952 | LDFLAGS_GL="$ac_path_to_link" | |
33953 | fi | |
33954 | ||
d589327a VZ |
33955 | { echo "$as_me:$LINENO: checking for -lGLU" >&5 |
33956 | echo $ECHO_N "checking for -lGLU... $ECHO_C" >&6; } | |
a848cd7e | 33957 | |
0ad5d837 VZ |
33958 | ac_find_libraries= |
33959 | for ac_dir in $SEARCH_LIB; | |
33960 | do | |
33961 | for ac_extension in a so sl dylib dll.a; do | |
33962 | if test -f "$ac_dir/libGLU.$ac_extension"; then | |
33963 | ac_find_libraries=$ac_dir | |
33964 | break 2 | |
33965 | fi | |
33966 | done | |
33967 | done | |
33968 | ||
a848cd7e SC |
33969 | if test "$ac_find_libraries" != "" ; then |
33970 | ||
0ad5d837 | 33971 | if test "$ac_find_libraries" = "default location"; then |
a848cd7e SC |
33972 | ac_path_to_link="" |
33973 | else | |
0ad5d837 VZ |
33974 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null |
33975 | result=$? | |
33976 | if test $result = 0; then | |
33977 | ac_path_to_link="" | |
33978 | else | |
33979 | ac_path_to_link=" -L$ac_find_libraries" | |
33980 | fi | |
a848cd7e SC |
33981 | fi |
33982 | ||
33983 | if test "$ac_path_to_link" != " -L/usr/lib" -a \ | |
33984 | "$ac_path_to_link" != "$LDFLAGS_GL"; then | |
33985 | LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link" | |
33986 | fi | |
33987 | ||
33988 | found_gl=1 | |
33989 | OPENGL_LIBS="-lGL -lGLU" | |
d589327a VZ |
33990 | { echo "$as_me:$LINENO: result: yes" >&5 |
33991 | echo "${ECHO_T}yes" >&6; } | |
69120ee4 | 33992 | else |
d589327a VZ |
33993 | { echo "$as_me:$LINENO: result: no" >&5 |
33994 | echo "${ECHO_T}no" >&6; } | |
a848cd7e | 33995 | fi |
69120ee4 | 33996 | else |
d589327a VZ |
33997 | { echo "$as_me:$LINENO: result: no" >&5 |
33998 | echo "${ECHO_T}no" >&6; } | |
a848cd7e SC |
33999 | fi |
34000 | ||
34001 | if test "$found_gl" != 1; then | |
d589327a VZ |
34002 | { echo "$as_me:$LINENO: checking for -lMesaGL" >&5 |
34003 | echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6; } | |
a848cd7e | 34004 | |
0ad5d837 VZ |
34005 | ac_find_libraries= |
34006 | for ac_dir in $SEARCH_LIB; | |
a848cd7e | 34007 | do |
3eca31dc | 34008 | for ac_extension in a so sl dylib dll.a; do |
a848cd7e SC |
34009 | if test -f "$ac_dir/libMesaGL.$ac_extension"; then |
34010 | ac_find_libraries=$ac_dir | |
34011 | break 2 | |
34012 | fi | |
34013 | done | |
34014 | done | |
34015 | ||
34016 | if test "$ac_find_libraries" != "" ; then | |
34017 | ||
0ad5d837 | 34018 | if test "$ac_find_libraries" = "default location"; then |
a848cd7e SC |
34019 | ac_path_to_link="" |
34020 | else | |
0ad5d837 VZ |
34021 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null |
34022 | result=$? | |
34023 | if test $result = 0; then | |
34024 | ac_path_to_link="" | |
34025 | else | |
34026 | ac_path_to_link=" -L$ac_find_libraries" | |
34027 | fi | |
a848cd7e SC |
34028 | fi |
34029 | ||
34030 | LDFLAGS_GL="$LDFLAGS$ac_path_to_link" | |
34031 | OPENGL_LIBS="-lMesaGL -lMesaGLU" | |
d589327a VZ |
34032 | { echo "$as_me:$LINENO: result: yes" >&5 |
34033 | echo "${ECHO_T}yes" >&6; } | |
a848cd7e | 34034 | else |
d589327a VZ |
34035 | { echo "$as_me:$LINENO: result: no" >&5 |
34036 | echo "${ECHO_T}no" >&6; } | |
a848cd7e SC |
34037 | fi |
34038 | fi | |
34039 | ||
34040 | fi | |
34041 | ||
34042 | ||
34043 | ||
5dfc7e56 VZ |
34044 | fi |
34045 | ||
34046 | ||
34047 | ||
a848cd7e | 34048 | if test "x$OPENGL_LIBS" = "x"; then |
f03637a2 | 34049 | if test "$wxUSE_OPENGL" = "yes"; then |
d589327a VZ |
34050 | { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5 |
34051 | echo "$as_me: error: OpenGL libraries not available" >&2;} | |
f03637a2 FM |
34052 | { (exit 1); exit 1; }; } |
34053 | else | |
d589327a VZ |
34054 | { echo "$as_me:$LINENO: WARNING: OpenGL libraries not available, disabling support for OpenGL" >&5 |
34055 | echo "$as_me: WARNING: OpenGL libraries not available, disabling support for OpenGL" >&2;} | |
f03637a2 FM |
34056 | wxUSE_OPENGL=no |
34057 | USE_OPENGL=0 | |
34058 | fi | |
a848cd7e | 34059 | fi |
0dd9646e | 34060 | else |
d589327a VZ |
34061 | { echo "$as_me:$LINENO: WARNING: wxGLCanvas not implemented for this port, library will be compiled without it." >&5 |
34062 | echo "$as_me: WARNING: wxGLCanvas not implemented for this port, library will be compiled without it." >&2;} | |
0dd9646e | 34063 | wxUSE_OPENGL="no" |
a848cd7e SC |
34064 | fi |
34065 | ||
3dd63e02 VZ |
34066 | if test "$wxUSE_OPENGL" = "auto"; then |
34067 | wxUSE_OPENGL=yes | |
34068 | fi | |
34069 | ||
a848cd7e SC |
34070 | if test "$wxUSE_OPENGL" = "yes"; then |
34071 | USE_OPENGL=1 | |
34072 | cat >>confdefs.h <<\_ACEOF | |
34073 | #define wxUSE_OPENGL 1 | |
34074 | _ACEOF | |
34075 | ||
34076 | cat >>confdefs.h <<\_ACEOF | |
34077 | #define wxUSE_GLCANVAS 1 | |
34078 | _ACEOF | |
34079 | ||
34080 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf" | |
34081 | fi | |
34082 | fi | |
34083 | ||
a848cd7e SC |
34084 | |
34085 | if test -n "$TOOLKIT" ; then | |
34086 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__" | |
34087 | fi | |
34088 | ||
a848cd7e SC |
34089 | |
34090 | ||
34091 | if test "$wxUSE_SHARED" = "yes"; then | |
34092 | case "${host}" in | |
34093 | *-pc-msdosdjgpp ) | |
34094 | wxUSE_SHARED=no | |
d589327a VZ |
34095 | { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5 |
34096 | echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;} | |
a848cd7e SC |
34097 | ;; |
34098 | esac | |
34099 | fi | |
34100 | ||
a848cd7e | 34101 | if test "$wxUSE_SHARED" = "yes"; then |
a848cd7e SC |
34102 | |
34103 | ||
077c7880 VZ |
34104 | case "${host}" in |
34105 | *-*-cygwin* | *-*-mingw* ) | |
2dbd07cb | 34106 | wx_cv_version_script=no |
077c7880 | 34107 | ;; |
a848cd7e | 34108 | |
077c7880 | 34109 | *) |
d589327a VZ |
34110 | { echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5 |
34111 | echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6; } | |
a848cd7e | 34112 | if test "${wx_cv_version_script+set}" = set; then |
d589327a | 34113 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a848cd7e SC |
34114 | else |
34115 | ||
077c7880 VZ |
34116 | echo "VER_1 { *; };" >conftest.sym |
34117 | echo "int main() { return 0; }" >conftest.cpp | |
a848cd7e | 34118 | |
077c7880 VZ |
34119 | if { ac_try=' |
34120 | $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp | |
34121 | -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr' | |
a848cd7e SC |
34122 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34123 | (eval $ac_try) 2>&5 | |
34124 | ac_status=$? | |
d589327a | 34125 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
a848cd7e | 34126 | (exit $ac_status); }; } ; then |
077c7880 VZ |
34127 | if test -s conftest.stderr ; then |
34128 | wx_cv_version_script=no | |
34129 | else | |
34130 | wx_cv_version_script=yes | |
34131 | fi | |
34132 | else | |
34133 | wx_cv_version_script=no | |
34134 | fi | |
e5d4b470 | 34135 | |
077c7880 VZ |
34136 | if test $wx_cv_version_script = yes |
34137 | then | |
34138 | echo "struct B { virtual ~B() { } }; \ | |
34139 | struct D : public B { }; \ | |
34140 | void F() { D d; }" > conftest.cpp | |
e5d4b470 | 34141 | |
077c7880 VZ |
34142 | if { ac_try=' |
34143 | $CXX -shared -fPIC -o conftest1.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp | |
34144 | -Wl,--version-script,conftest.sym >/dev/null 2>/dev/null' | |
e5d4b470 MW |
34145 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34146 | (eval $ac_try) 2>&5 | |
34147 | ac_status=$? | |
d589327a | 34148 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
e5d4b470 | 34149 | (exit $ac_status); }; } && |
077c7880 VZ |
34150 | { ac_try=' |
34151 | $CXX -shared -fPIC -o conftest2.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp | |
34152 | -Wl,--version-script,conftest.sym conftest1.output >/dev/null 2>/dev/null' | |
e5d4b470 MW |
34153 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34154 | (eval $ac_try) 2>&5 | |
34155 | ac_status=$? | |
d589327a | 34156 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
e5d4b470 | 34157 | (exit $ac_status); }; } |
077c7880 VZ |
34158 | then |
34159 | if { ac_try=' | |
34160 | $CXX -shared -fPIC -o conftest3.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp | |
34161 | -Wl,--version-script,conftest.sym conftest2.output conftest1.output >/dev/null 2>/dev/null' | |
e5d4b470 MW |
34162 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34163 | (eval $ac_try) 2>&5 | |
34164 | ac_status=$? | |
d589327a | 34165 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
e5d4b470 | 34166 | (exit $ac_status); }; } |
077c7880 VZ |
34167 | then |
34168 | wx_cv_version_script=yes | |
34169 | else | |
34170 | wx_cv_version_script=no | |
34171 | fi | |
34172 | fi | |
34173 | fi | |
e5d4b470 | 34174 | |
077c7880 VZ |
34175 | rm -f conftest.output conftest.stderr conftest.sym conftest.cpp |
34176 | rm -f conftest1.output conftest2.output conftest3.output | |
a848cd7e SC |
34177 | |
34178 | fi | |
d589327a VZ |
34179 | { echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5 |
34180 | echo "${ECHO_T}$wx_cv_version_script" >&6; } | |
077c7880 VZ |
34181 | |
34182 | if test $wx_cv_version_script = yes ; then | |
34183 | LDFLAGS_VERSIONING="-Wl,--version-script,\$(wx_top_builddir)/version-script" | |
34184 | fi | |
34185 | ;; | |
34186 | esac | |
a848cd7e SC |
34187 | |
34188 | ||
a2bd84a5 | 34189 | if test "$wxUSE_VISIBILITY" != "no"; then |
0ff20b9f VS |
34190 | |
34191 | ||
34192 | if test -n "$GCC"; then | |
34193 | CFLAGS_VISIBILITY="-fvisibility=hidden" | |
34194 | CXXFLAGS_VISIBILITY="-fvisibility=hidden -fvisibility-inlines-hidden" | |
d589327a VZ |
34195 | { echo "$as_me:$LINENO: checking for symbols visibility support" >&5 |
34196 | echo $ECHO_N "checking for symbols visibility support... $ECHO_C" >&6; } | |
0ff20b9f | 34197 | if test "${wx_cv_cc_visibility+set}" = set; then |
d589327a | 34198 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
0ff20b9f VS |
34199 | else |
34200 | ||
34201 | wx_save_CXXFLAGS="$CXXFLAGS" | |
34202 | CXXFLAGS="$CXXFLAGS $CXXFLAGS_VISIBILITY" | |
47964710 | 34203 | ac_ext=cpp |
0ff20b9f VS |
34204 | ac_cpp='$CXXCPP $CPPFLAGS' |
34205 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
34206 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
34207 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
34208 | ||
34209 | cat >conftest.$ac_ext <<_ACEOF | |
34210 | /* confdefs.h. */ | |
34211 | _ACEOF | |
34212 | cat confdefs.h >>conftest.$ac_ext | |
34213 | cat >>conftest.$ac_ext <<_ACEOF | |
34214 | /* end confdefs.h. */ | |
34215 | ||
34216 | /* we need gcc >= 4.0, older versions with visibility support | |
34217 | didn't have class visibility: */ | |
34218 | #if defined(__GNUC__) && __GNUC__ < 4 | |
34219 | error this gcc is too old; | |
34220 | #endif | |
34221 | ||
b9d4eff6 VS |
34222 | /* visibility only makes sense for ELF shared libs: */ |
34223 | #if !defined(__ELF__) && !defined(__APPLE__) | |
34224 | error this platform has no visibility; | |
34225 | #endif | |
34226 | ||
0ff20b9f VS |
34227 | extern __attribute__((__visibility__("hidden"))) int hiddenvar; |
34228 | extern __attribute__((__visibility__("default"))) int exportedvar; | |
34229 | extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void); | |
34230 | extern __attribute__((__visibility__("default"))) int exportedfunc (void); | |
34231 | class __attribute__((__visibility__("default"))) Foo { | |
34232 | Foo() {} | |
34233 | }; | |
34234 | ||
34235 | int | |
34236 | main () | |
34237 | { | |
34238 | ||
34239 | ; | |
34240 | return 0; | |
34241 | } | |
34242 | _ACEOF | |
34243 | rm -f conftest.$ac_objext | |
47964710 VS |
34244 | if { (ac_try="$ac_compile" |
34245 | case "(($ac_try" in | |
34246 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
34247 | *) ac_try_echo=$ac_try;; | |
34248 | esac | |
d589327a | 34249 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 34250 | (eval "$ac_compile") 2>conftest.er1 |
0ff20b9f VS |
34251 | ac_status=$? |
34252 | grep -v '^ *+' conftest.er1 >conftest.err | |
34253 | rm -f conftest.er1 | |
34254 | cat conftest.err >&5 | |
d589327a | 34255 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
34256 | (exit $ac_status); } && { |
34257 | test -z "$ac_cxx_werror_flag" || | |
34258 | test ! -s conftest.err | |
34259 | } && test -s conftest.$ac_objext; then | |
0ff20b9f VS |
34260 | wx_cv_cc_visibility=yes |
34261 | else | |
d589327a | 34262 | echo "$as_me: failed program was:" >&5 |
0ff20b9f VS |
34263 | sed 's/^/| /' conftest.$ac_ext >&5 |
34264 | ||
47964710 | 34265 | wx_cv_cc_visibility=no |
0ff20b9f | 34266 | fi |
47964710 VS |
34267 | |
34268 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
0ff20b9f VS |
34269 | ac_ext=c |
34270 | ac_cpp='$CPP $CPPFLAGS' | |
34271 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
34272 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
34273 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
34274 | ||
34275 | CXXFLAGS="$wx_save_CXXFLAGS" | |
34276 | fi | |
34277 | ||
d589327a VZ |
34278 | { echo "$as_me:$LINENO: result: $wx_cv_cc_visibility" >&5 |
34279 | echo "${ECHO_T}$wx_cv_cc_visibility" >&6; } | |
0ff20b9f | 34280 | if test $wx_cv_cc_visibility = yes; then |
d589327a VZ |
34281 | { echo "$as_me:$LINENO: checking for broken libstdc++ visibility" >&5 |
34282 | echo $ECHO_N "checking for broken libstdc++ visibility... $ECHO_C" >&6; } | |
d6f513f8 | 34283 | if test "${wx_cv_cc_broken_libstdcxx_visibility+set}" = set; then |
d589327a | 34284 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
d6f513f8 VS |
34285 | else |
34286 | ||
34287 | wx_save_CXXFLAGS="$CXXFLAGS" | |
34b340a0 | 34288 | wx_save_LDFLAGS="$LDFLAGS" |
d6f513f8 | 34289 | CXXFLAGS="$CXXFLAGS $CXXFLAGS_VISIBILITY" |
34b340a0 | 34290 | LDFLAGS="$LDFLAGS -shared -fPIC" |
47964710 | 34291 | ac_ext=cpp |
d6f513f8 VS |
34292 | ac_cpp='$CXXCPP $CPPFLAGS' |
34293 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
34294 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
34295 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
34296 | ||
34297 | cat >conftest.$ac_ext <<_ACEOF | |
34298 | /* confdefs.h. */ | |
34299 | _ACEOF | |
34300 | cat confdefs.h >>conftest.$ac_ext | |
34301 | cat >>conftest.$ac_ext <<_ACEOF | |
34302 | /* end confdefs.h. */ | |
34303 | ||
34304 | #include <string> | |
34305 | ||
34306 | int | |
34307 | main () | |
34308 | { | |
34309 | ||
34b340a0 VS |
34310 | std::string s("hello"); |
34311 | return s.length(); | |
d6f513f8 VS |
34312 | |
34313 | ; | |
34314 | return 0; | |
34315 | } | |
34316 | _ACEOF | |
34317 | rm -f conftest.$ac_objext conftest$ac_exeext | |
47964710 VS |
34318 | if { (ac_try="$ac_link" |
34319 | case "(($ac_try" in | |
34320 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
34321 | *) ac_try_echo=$ac_try;; | |
34322 | esac | |
d589327a | 34323 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 34324 | (eval "$ac_link") 2>conftest.er1 |
d6f513f8 VS |
34325 | ac_status=$? |
34326 | grep -v '^ *+' conftest.er1 >conftest.err | |
34327 | rm -f conftest.er1 | |
34328 | cat conftest.err >&5 | |
d589327a | 34329 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
34330 | (exit $ac_status); } && { |
34331 | test -z "$ac_cxx_werror_flag" || | |
34332 | test ! -s conftest.err | |
d589327a VZ |
34333 | } && test -s conftest$ac_exeext && |
34334 | $as_test_x conftest$ac_exeext; then | |
d6f513f8 VS |
34335 | wx_cv_cc_broken_libstdcxx_visibility=no |
34336 | else | |
d589327a | 34337 | echo "$as_me: failed program was:" >&5 |
d6f513f8 VS |
34338 | sed 's/^/| /' conftest.$ac_ext >&5 |
34339 | ||
47964710 | 34340 | wx_cv_cc_broken_libstdcxx_visibility=yes |
d6f513f8 | 34341 | fi |
47964710 VS |
34342 | |
34343 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
d6f513f8 VS |
34344 | conftest$ac_exeext conftest.$ac_ext |
34345 | ac_ext=c | |
34346 | ac_cpp='$CPP $CPPFLAGS' | |
34347 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
34348 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
34349 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
34350 | ||
34351 | CXXFLAGS="$wx_save_CXXFLAGS" | |
34b340a0 | 34352 | LDFLAGS="$wx_save_LDFLAGS" |
d6f513f8 VS |
34353 | fi |
34354 | ||
d589327a VZ |
34355 | { echo "$as_me:$LINENO: result: $wx_cv_cc_broken_libstdcxx_visibility" >&5 |
34356 | echo "${ECHO_T}$wx_cv_cc_broken_libstdcxx_visibility" >&6; } | |
c9bd045b VZ |
34357 | |
34358 | if test $wx_cv_cc_broken_libstdcxx_visibility = yes; then | |
d589327a VZ |
34359 | { echo "$as_me:$LINENO: checking whether we can work around it" >&5 |
34360 | echo $ECHO_N "checking whether we can work around it... $ECHO_C" >&6; } | |
c9bd045b | 34361 | if test "${wx_cv_cc_visibility_workaround+set}" = set; then |
d589327a | 34362 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
c9bd045b VZ |
34363 | else |
34364 | ||
34365 | ac_ext=cpp | |
34366 | ac_cpp='$CXXCPP $CPPFLAGS' | |
34367 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
34368 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
34369 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
34370 | ||
34371 | cat >conftest.$ac_ext <<_ACEOF | |
34372 | /* confdefs.h. */ | |
34373 | _ACEOF | |
34374 | cat confdefs.h >>conftest.$ac_ext | |
34375 | cat >>conftest.$ac_ext <<_ACEOF | |
34376 | /* end confdefs.h. */ | |
34377 | ||
34378 | #pragma GCC visibility push(default) | |
34379 | #include <string> | |
34380 | #pragma GCC visibility pop | |
34381 | ||
34382 | int | |
34383 | main () | |
34384 | { | |
34385 | ||
34386 | std::string s("hello"); | |
34387 | return s.length(); | |
34388 | ||
34389 | ; | |
34390 | return 0; | |
34391 | } | |
34392 | _ACEOF | |
34393 | rm -f conftest.$ac_objext conftest$ac_exeext | |
34394 | if { (ac_try="$ac_link" | |
34395 | case "(($ac_try" in | |
34396 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
34397 | *) ac_try_echo=$ac_try;; | |
34398 | esac | |
d589327a | 34399 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
c9bd045b VZ |
34400 | (eval "$ac_link") 2>conftest.er1 |
34401 | ac_status=$? | |
34402 | grep -v '^ *+' conftest.er1 >conftest.err | |
34403 | rm -f conftest.er1 | |
34404 | cat conftest.err >&5 | |
d589327a | 34405 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
c9bd045b VZ |
34406 | (exit $ac_status); } && { |
34407 | test -z "$ac_cxx_werror_flag" || | |
34408 | test ! -s conftest.err | |
d589327a VZ |
34409 | } && test -s conftest$ac_exeext && |
34410 | $as_test_x conftest$ac_exeext; then | |
c9bd045b VZ |
34411 | wx_cv_cc_visibility_workaround=no |
34412 | else | |
d589327a | 34413 | echo "$as_me: failed program was:" >&5 |
c9bd045b VZ |
34414 | sed 's/^/| /' conftest.$ac_ext >&5 |
34415 | ||
34416 | wx_cv_cc_visibility_workaround=yes | |
34417 | fi | |
34418 | ||
34419 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
34420 | conftest$ac_exeext conftest.$ac_ext | |
34421 | ac_ext=c | |
34422 | ac_cpp='$CPP $CPPFLAGS' | |
34423 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
34424 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
34425 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
34426 | ||
34427 | ||
34428 | fi | |
34429 | ||
d589327a VZ |
34430 | { echo "$as_me:$LINENO: result: $wx_cv_cc_visibility_workaround" >&5 |
34431 | echo "${ECHO_T}$wx_cv_cc_visibility_workaround" >&6; } | |
c9bd045b VZ |
34432 | |
34433 | if test $wx_cv_cc_visibility_workaround = no; then | |
34434 | wx_cv_cc_visibility=no | |
34435 | fi | |
34436 | fi | |
34437 | fi | |
34438 | ||
34439 | if test $wx_cv_cc_visibility = yes; then | |
34440 | cat >>confdefs.h <<\_ACEOF | |
34441 | #define HAVE_VISIBILITY 1 | |
34442 | _ACEOF | |
34443 | ||
d6f513f8 VS |
34444 | if test $wx_cv_cc_broken_libstdcxx_visibility = yes; then |
34445 | cat >>confdefs.h <<\_ACEOF | |
34446 | #define HAVE_BROKEN_LIBSTDCXX_VISIBILITY 1 | |
34447 | _ACEOF | |
34448 | ||
34449 | fi | |
0ff20b9f VS |
34450 | else |
34451 | CFLAGS_VISIBILITY="" | |
34452 | CXXFLAGS_VISIBILITY="" | |
34453 | fi | |
34454 | ||
34455 | ||
34456 | fi | |
34457 | ||
a2bd84a5 | 34458 | fi |
0ff20b9f | 34459 | |
43a7c679 VZ |
34460 | if test "x$SUNCXX" = xyes; then |
34461 | SAMPLES_RPATH_FLAG="-R\$(wx_top_builddir)/lib" | |
34462 | WXCONFIG_RPATH="-R\$libdir" | |
34463 | else | |
a848cd7e SC |
34464 | case "${host}" in |
34465 | *-*-linux* | *-*-gnu* ) | |
02b05020 | 34466 | SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(wx_top_builddir)/lib" |
ffa0583f | 34467 | WXCONFIG_RPATH="-Wl,-rpath,\$libdir" |
6ebeb4c7 | 34468 | ;; |
a848cd7e SC |
34469 | |
34470 | *-*-solaris2* ) | |
a848cd7e | 34471 | |
43a7c679 VZ |
34472 | CPPFLAGS="-isystem /usr/openwin/include $CPPFLAGS" |
34473 | ||
34474 | saveLdflags="$LDFLAGS" | |
34475 | LDFLAGS="$saveLdflags -Wl,-rpath,/" | |
d589327a VZ |
34476 | { echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5 |
34477 | echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6; } | |
43a7c679 | 34478 | cat >conftest.$ac_ext <<_ACEOF |
a848cd7e SC |
34479 | /* confdefs.h. */ |
34480 | _ACEOF | |
34481 | cat confdefs.h >>conftest.$ac_ext | |
34482 | cat >>conftest.$ac_ext <<_ACEOF | |
34483 | /* end confdefs.h. */ | |
34484 | ||
34485 | int | |
34486 | main () | |
34487 | { | |
34488 | ||
34489 | ; | |
34490 | return 0; | |
34491 | } | |
34492 | _ACEOF | |
34493 | rm -f conftest.$ac_objext conftest$ac_exeext | |
47964710 VS |
34494 | if { (ac_try="$ac_link" |
34495 | case "(($ac_try" in | |
34496 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
34497 | *) ac_try_echo=$ac_try;; | |
34498 | esac | |
d589327a | 34499 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 34500 | (eval "$ac_link") 2>conftest.er1 |
a848cd7e | 34501 | ac_status=$? |
ac1cb8d3 VS |
34502 | grep -v '^ *+' conftest.er1 >conftest.err |
34503 | rm -f conftest.er1 | |
34504 | cat conftest.err >&5 | |
d589327a | 34505 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
34506 | (exit $ac_status); } && { |
34507 | test -z "$ac_c_werror_flag" || | |
34508 | test ! -s conftest.err | |
d589327a VZ |
34509 | } && test -s conftest$ac_exeext && |
34510 | $as_test_x conftest$ac_exeext; then | |
a848cd7e | 34511 | |
d589327a VZ |
34512 | { echo "$as_me:$LINENO: result: yes" >&5 |
34513 | echo "${ECHO_T}yes" >&6; } | |
43a7c679 VZ |
34514 | SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(wx_top_builddir)/lib" |
34515 | WXCONFIG_RPATH="-Wl,-rpath,\$libdir" | |
a848cd7e SC |
34516 | |
34517 | else | |
d589327a | 34518 | echo "$as_me: failed program was:" >&5 |
a848cd7e SC |
34519 | sed 's/^/| /' conftest.$ac_ext >&5 |
34520 | ||
34521 | ||
d589327a VZ |
34522 | { echo "$as_me:$LINENO: result: no" >&5 |
34523 | echo "${ECHO_T}no" >&6; } | |
34524 | { echo "$as_me:$LINENO: checking if the linker accepts -R" >&5 | |
34525 | echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6; } | |
43a7c679 VZ |
34526 | LDFLAGS="$saveLdflags -Wl,-R,/" |
34527 | cat >conftest.$ac_ext <<_ACEOF | |
a848cd7e SC |
34528 | /* confdefs.h. */ |
34529 | _ACEOF | |
34530 | cat confdefs.h >>conftest.$ac_ext | |
34531 | cat >>conftest.$ac_ext <<_ACEOF | |
34532 | /* end confdefs.h. */ | |
34533 | ||
34534 | int | |
34535 | main () | |
34536 | { | |
34537 | ||
34538 | ; | |
34539 | return 0; | |
34540 | } | |
34541 | _ACEOF | |
34542 | rm -f conftest.$ac_objext conftest$ac_exeext | |
47964710 VS |
34543 | if { (ac_try="$ac_link" |
34544 | case "(($ac_try" in | |
34545 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
34546 | *) ac_try_echo=$ac_try;; | |
34547 | esac | |
d589327a | 34548 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 34549 | (eval "$ac_link") 2>conftest.er1 |
a848cd7e | 34550 | ac_status=$? |
ac1cb8d3 VS |
34551 | grep -v '^ *+' conftest.er1 >conftest.err |
34552 | rm -f conftest.er1 | |
34553 | cat conftest.err >&5 | |
d589327a | 34554 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
34555 | (exit $ac_status); } && { |
34556 | test -z "$ac_c_werror_flag" || | |
34557 | test ! -s conftest.err | |
d589327a VZ |
34558 | } && test -s conftest$ac_exeext && |
34559 | $as_test_x conftest$ac_exeext; then | |
a848cd7e | 34560 | |
d589327a VZ |
34561 | { echo "$as_me:$LINENO: result: yes" >&5 |
34562 | echo "${ECHO_T}yes" >&6; } | |
43a7c679 VZ |
34563 | SAMPLES_RPATH_FLAG="-Wl,-R,\$(wx_top_builddir)/lib" |
34564 | WXCONFIG_RPATH="-Wl,-R,\$libdir" | |
ffa0583f | 34565 | |
a848cd7e | 34566 | else |
d589327a | 34567 | echo "$as_me: failed program was:" >&5 |
a848cd7e SC |
34568 | sed 's/^/| /' conftest.$ac_ext >&5 |
34569 | ||
34570 | ||
d589327a VZ |
34571 | { echo "$as_me:$LINENO: result: no" >&5 |
34572 | echo "${ECHO_T}no" >&6; } | |
a848cd7e SC |
34573 | |
34574 | fi | |
47964710 VS |
34575 | |
34576 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
ac1cb8d3 | 34577 | conftest$ac_exeext conftest.$ac_ext |
a848cd7e SC |
34578 | |
34579 | fi | |
47964710 VS |
34580 | |
34581 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
ac1cb8d3 | 34582 | conftest$ac_exeext conftest.$ac_ext |
43a7c679 | 34583 | LDFLAGS="$saveLdflags" |
a848cd7e SC |
34584 | ;; |
34585 | ||
cfda0ea8 | 34586 | *-*-darwin* ) |
ddd121d7 | 34587 | install_name_tool=`which ${HOST_PREFIX}install_name_tool` |
0caebc27 | 34588 | if test "$install_name_tool" -a -x "$install_name_tool"; then |
2fd71613 | 34589 | DYLIB_RPATH_POSTLINK="${HOST_PREFIX}install_name_tool -id \$@ \$@" |
0caebc27 | 34590 | cat <<EOF >change-install-names |
a848cd7e SC |
34591 | #!/bin/sh |
34592 | libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\` | |
a848cd7e | 34593 | for i in \${libnames} ; do |
2fd71613 KO |
34594 | ${HOST_PREFIX}install_name_tool -id \${1}/\${i} \${1}/\${i} |
34595 | for dep in \${libnames} ; do | |
34596 | ${HOST_PREFIX}install_name_tool -change \${2}/\${dep} \${1}/\${dep} \${1}/\${i} | |
34597 | done | |
a848cd7e | 34598 | done |
a848cd7e | 34599 | EOF |
0caebc27 | 34600 | chmod +x change-install-names |
2fd71613 | 34601 | DYLIB_RPATH_INSTALL="\$(wx_top_builddir)/change-install-names \${libdir} \$(wx_top_builddir)/lib" |
0caebc27 | 34602 | fi |
516cf181 FM |
34603 | |
34604 | HEADER_PAD_OPTION="-headerpad_max_install_names" | |
a848cd7e SC |
34605 | ;; |
34606 | ||
34607 | *-*-cygwin* | *-*-mingw32* ) | |
5ff751d6 | 34608 | ;; |
a848cd7e | 34609 | |
81f90336 | 34610 | *-*-hpux* ) |
02b05020 | 34611 | SAMPLES_RPATH_FLAG="-Wl,+b,\$(wx_top_builddir)/lib" |
81f90336 | 34612 | WXCONFIG_RPATH="-Wl,+b,\$libdir" |
5ff751d6 | 34613 | ;; |
81f90336 | 34614 | |
a848cd7e | 34615 | esac |
43a7c679 | 34616 | fi |
ceec2216 | 34617 | |
d3b8fe10 VZ |
34618 | WXCONFIG_ONLY_CPPFLAGS="$WXCONFIG_ONLY_CPPFLAGS -DWXUSINGDLL" |
34619 | ||
ffa0583f RL |
34620 | if test $wxUSE_RPATH = "no"; then |
34621 | SAMPLES_RPATH_FLAG='' | |
2fd71613 | 34622 | DYLIB_PATH_POSTLINK='' |
ffa0583f RL |
34623 | WXCONFIG_RPATH='' |
34624 | fi | |
34625 | ||
34626 | SHARED=1 | |
34627 | ||
34628 | else | |
34629 | ||
ceec2216 RL |
34630 | config_linkage_component="-static" |
34631 | SHARED=0 | |
ffa0583f | 34632 | |
ceec2216 | 34633 | fi |
a848cd7e | 34634 | |
a848cd7e | 34635 | |
ceec2216 RL |
34636 | UNICODE=0 |
34637 | lib_unicode_suffix= | |
34638 | WX_CHARTYPE="ansi" | |
34639 | if test "$wxUSE_UNICODE" = "yes"; then | |
34640 | lib_unicode_suffix=u | |
34641 | WX_CHARTYPE="unicode" | |
34642 | UNICODE=1 | |
a848cd7e SC |
34643 | fi |
34644 | ||
ceec2216 RL |
34645 | WX_FLAVOUR=${WX_FLAVOUR:+-$WX_FLAVOUR} |
34646 | WX_LIB_FLAVOUR=`echo $WX_FLAVOUR | tr '-' '_'` | |
a848cd7e | 34647 | |
ceec2216 RL |
34648 | DEBUG_INFO=0 |
34649 | if test "$wxUSE_DEBUG_INFO" = "yes"; then | |
34650 | DEBUG_INFO=1 | |
34651 | fi | |
a848cd7e | 34652 | |
89b1afb4 | 34653 | WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${WX_LIB_FLAVOUR}_${WX_RELEASE} | tr '[a-z]' '[A-Z]'` |
a848cd7e | 34654 | |
89b1afb4 | 34655 | TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX}" |
a848cd7e | 34656 | |
89b1afb4 | 34657 | TOOLCHAIN_FULLNAME="${HOST_PREFIX}${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}-${WX_CHARTYPE}${config_linkage_component}-${WX_RELEASE}${WX_FLAVOUR}" |
a848cd7e | 34658 | |
f0bb342f | 34659 | |
f10f4c87 | 34660 | if test "$wxUSE_OSX_CARBON" = 1 -o "$wxUSE_OSX_COCOA" = 1 -o "$wxUSE_OLD_COCOA" = 1; then |
89b1afb4 | 34661 | WX_LIBRARY_BASENAME_NOGUI="wx_base${lib_unicode_suffix}${WX_LIB_FLAVOUR}" |
f0bb342f | 34662 | else |
89b1afb4 | 34663 | WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${WX_LIB_FLAVOUR}" |
f0bb342f | 34664 | fi |
abc736fd | 34665 | if test "${TOOLKIT_DIR}" = "os2"; then |
89b1afb4 | 34666 | WX_LIBRARY_BASENAME_GUI="wx_pm${WIDGET_SET}${lib_unicode_suffix}${WX_LIB_FLAVOUR}" |
abc736fd | 34667 | else |
89b1afb4 | 34668 | WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${WX_LIB_FLAVOUR}" |
abc736fd | 34669 | fi |
ceec2216 RL |
34670 | |
34671 | ||
34672 | ||
f10f4c87 | 34673 | if test "$wxUSE_OLD_COCOA" = 1; then |
1d1af5ea | 34674 | |
1d1af5ea DE |
34675 | ac_ext=c |
34676 | ac_cpp='$CPP $CPPFLAGS' | |
34677 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
34678 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
34679 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
34680 | ||
34681 | ac_ext=m | |
34682 | ||
d589327a VZ |
34683 | { echo "$as_me:$LINENO: checking if AppKit/NSEvent.h conflicts with CoreFoundation" >&5 |
34684 | echo $ECHO_N "checking if AppKit/NSEvent.h conflicts with CoreFoundation... $ECHO_C" >&6; } | |
1d1af5ea DE |
34685 | cat >conftest.$ac_ext <<_ACEOF |
34686 | /* confdefs.h. */ | |
34687 | _ACEOF | |
34688 | cat confdefs.h >>conftest.$ac_ext | |
34689 | cat >>conftest.$ac_ext <<_ACEOF | |
34690 | /* end confdefs.h. */ | |
34691 | #include <AppKit/NSEvent.h> | |
34692 | #include <CoreFoundation/CoreFoundation.h> | |
34693 | ||
34694 | int | |
34695 | main () | |
34696 | { | |
34697 | ||
34698 | ; | |
34699 | return 0; | |
34700 | } | |
34701 | _ACEOF | |
34702 | rm -f conftest.$ac_objext | |
47964710 VS |
34703 | if { (ac_try="$ac_compile" |
34704 | case "(($ac_try" in | |
34705 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
34706 | *) ac_try_echo=$ac_try;; | |
34707 | esac | |
d589327a | 34708 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 34709 | (eval "$ac_compile") 2>conftest.er1 |
1d1af5ea DE |
34710 | ac_status=$? |
34711 | grep -v '^ *+' conftest.er1 >conftest.err | |
34712 | rm -f conftest.er1 | |
34713 | cat conftest.err >&5 | |
d589327a | 34714 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
34715 | (exit $ac_status); } && { |
34716 | test -z "$ac_c_werror_flag" || | |
34717 | test ! -s conftest.err | |
34718 | } && test -s conftest.$ac_objext; then | |
d589327a VZ |
34719 | { echo "$as_me:$LINENO: result: no" >&5 |
34720 | echo "${ECHO_T}no" >&6; } | |
1d1af5ea | 34721 | else |
d589327a | 34722 | echo "$as_me: failed program was:" >&5 |
1d1af5ea DE |
34723 | sed 's/^/| /' conftest.$ac_ext >&5 |
34724 | ||
d589327a VZ |
34725 | { echo "$as_me:$LINENO: result: yes" >&5 |
34726 | echo "${ECHO_T}yes" >&6; } | |
34727 | { echo "$as_me:$LINENO: checking if defining __Point__ will fix it" >&5 | |
34728 | echo $ECHO_N "checking if defining __Point__ will fix it... $ECHO_C" >&6; } | |
1d1af5ea DE |
34729 | cat >conftest.$ac_ext <<_ACEOF |
34730 | /* confdefs.h. */ | |
34731 | _ACEOF | |
34732 | cat confdefs.h >>conftest.$ac_ext | |
34733 | cat >>conftest.$ac_ext <<_ACEOF | |
34734 | /* end confdefs.h. */ | |
34735 | #define __Point__ 1 | |
34736 | #include <AppKit/NSEvent.h> | |
34737 | #include <CoreFoundation/CoreFoundation.h> | |
34738 | ||
34739 | int | |
34740 | main () | |
34741 | { | |
34742 | ||
34743 | ; | |
34744 | return 0; | |
34745 | } | |
34746 | _ACEOF | |
34747 | rm -f conftest.$ac_objext | |
47964710 VS |
34748 | if { (ac_try="$ac_compile" |
34749 | case "(($ac_try" in | |
34750 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
34751 | *) ac_try_echo=$ac_try;; | |
34752 | esac | |
d589327a | 34753 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 34754 | (eval "$ac_compile") 2>conftest.er1 |
1d1af5ea DE |
34755 | ac_status=$? |
34756 | grep -v '^ *+' conftest.er1 >conftest.err | |
34757 | rm -f conftest.er1 | |
34758 | cat conftest.err >&5 | |
d589327a | 34759 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
34760 | (exit $ac_status); } && { |
34761 | test -z "$ac_c_werror_flag" || | |
34762 | test ! -s conftest.err | |
34763 | } && test -s conftest.$ac_objext; then | |
d589327a VZ |
34764 | { echo "$as_me:$LINENO: result: yes" >&5 |
34765 | echo "${ECHO_T}yes" >&6; } | |
1d1af5ea DE |
34766 | cat >>confdefs.h <<\_ACEOF |
34767 | #define __Point__ 1 | |
34768 | _ACEOF | |
34769 | ||
34770 | ||
34771 | else | |
d589327a | 34772 | echo "$as_me: failed program was:" >&5 |
1d1af5ea DE |
34773 | sed 's/^/| /' conftest.$ac_ext >&5 |
34774 | ||
d589327a | 34775 | { { echo "$as_me:$LINENO: error: no |
1d1af5ea | 34776 | See \`config.log' for more details." >&5 |
d589327a | 34777 | echo "$as_me: error: no |
1d1af5ea | 34778 | See \`config.log' for more details." >&2;} |
d589327a | 34779 | { (exit 1); exit 1; }; } |
1d1af5ea DE |
34780 | |
34781 | fi | |
47964710 VS |
34782 | |
34783 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1d1af5ea DE |
34784 | |
34785 | fi | |
47964710 VS |
34786 | |
34787 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
fd5199d6 VZ |
34788 | ac_ext=c |
34789 | ac_cpp='$CPP $CPPFLAGS' | |
34790 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
34791 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
34792 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1d1af5ea DE |
34793 | |
34794 | fi | |
34795 | ||
a848cd7e | 34796 | |
d589327a VZ |
34797 | { echo "$as_me:$LINENO: checking for mode_t" >&5 |
34798 | echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; } | |
a848cd7e | 34799 | if test "${ac_cv_type_mode_t+set}" = set; then |
d589327a | 34800 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a848cd7e | 34801 | else |
aa113d87 FM |
34802 | cat >conftest.$ac_ext <<_ACEOF |
34803 | /* confdefs.h. */ | |
34804 | _ACEOF | |
34805 | cat confdefs.h >>conftest.$ac_ext | |
34806 | cat >>conftest.$ac_ext <<_ACEOF | |
34807 | /* end confdefs.h. */ | |
34808 | $ac_includes_default | |
d589327a | 34809 | typedef mode_t ac__type_new_; |
aa113d87 FM |
34810 | int |
34811 | main () | |
34812 | { | |
d589327a VZ |
34813 | if ((ac__type_new_ *) 0) |
34814 | return 0; | |
34815 | if (sizeof (ac__type_new_)) | |
34816 | return 0; | |
a848cd7e SC |
34817 | ; |
34818 | return 0; | |
34819 | } | |
34820 | _ACEOF | |
34821 | rm -f conftest.$ac_objext | |
47964710 VS |
34822 | if { (ac_try="$ac_compile" |
34823 | case "(($ac_try" in | |
34824 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
34825 | *) ac_try_echo=$ac_try;; | |
34826 | esac | |
d589327a | 34827 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 34828 | (eval "$ac_compile") 2>conftest.er1 |
a848cd7e | 34829 | ac_status=$? |
ac1cb8d3 VS |
34830 | grep -v '^ *+' conftest.er1 >conftest.err |
34831 | rm -f conftest.er1 | |
34832 | cat conftest.err >&5 | |
d589327a | 34833 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
34834 | (exit $ac_status); } && { |
34835 | test -z "$ac_c_werror_flag" || | |
34836 | test ! -s conftest.err | |
34837 | } && test -s conftest.$ac_objext; then | |
d589327a | 34838 | ac_cv_type_mode_t=yes |
a848cd7e | 34839 | else |
d589327a | 34840 | echo "$as_me: failed program was:" >&5 |
a848cd7e SC |
34841 | sed 's/^/| /' conftest.$ac_ext >&5 |
34842 | ||
d589327a | 34843 | ac_cv_type_mode_t=no |
a848cd7e | 34844 | fi |
47964710 VS |
34845 | |
34846 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
a848cd7e | 34847 | fi |
d589327a VZ |
34848 | { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5 |
34849 | echo "${ECHO_T}$ac_cv_type_mode_t" >&6; } | |
34850 | if test $ac_cv_type_mode_t = yes; then | |
a848cd7e SC |
34851 | : |
34852 | else | |
34853 | ||
34854 | cat >>confdefs.h <<_ACEOF | |
34855 | #define mode_t int | |
34856 | _ACEOF | |
34857 | ||
34858 | fi | |
34859 | ||
d589327a VZ |
34860 | { echo "$as_me:$LINENO: checking for off_t" >&5 |
34861 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6; } | |
a848cd7e | 34862 | if test "${ac_cv_type_off_t+set}" = set; then |
d589327a | 34863 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a848cd7e | 34864 | else |
aa113d87 FM |
34865 | cat >conftest.$ac_ext <<_ACEOF |
34866 | /* confdefs.h. */ | |
34867 | _ACEOF | |
34868 | cat confdefs.h >>conftest.$ac_ext | |
34869 | cat >>conftest.$ac_ext <<_ACEOF | |
34870 | /* end confdefs.h. */ | |
34871 | $ac_includes_default | |
d589327a | 34872 | typedef off_t ac__type_new_; |
aa113d87 FM |
34873 | int |
34874 | main () | |
34875 | { | |
d589327a VZ |
34876 | if ((ac__type_new_ *) 0) |
34877 | return 0; | |
34878 | if (sizeof (ac__type_new_)) | |
34879 | return 0; | |
a848cd7e SC |
34880 | ; |
34881 | return 0; | |
34882 | } | |
34883 | _ACEOF | |
34884 | rm -f conftest.$ac_objext | |
47964710 VS |
34885 | if { (ac_try="$ac_compile" |
34886 | case "(($ac_try" in | |
34887 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
34888 | *) ac_try_echo=$ac_try;; | |
34889 | esac | |
d589327a | 34890 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 34891 | (eval "$ac_compile") 2>conftest.er1 |
a848cd7e | 34892 | ac_status=$? |
ac1cb8d3 VS |
34893 | grep -v '^ *+' conftest.er1 >conftest.err |
34894 | rm -f conftest.er1 | |
34895 | cat conftest.err >&5 | |
d589327a | 34896 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
34897 | (exit $ac_status); } && { |
34898 | test -z "$ac_c_werror_flag" || | |
34899 | test ! -s conftest.err | |
34900 | } && test -s conftest.$ac_objext; then | |
d589327a | 34901 | ac_cv_type_off_t=yes |
a848cd7e | 34902 | else |
d589327a | 34903 | echo "$as_me: failed program was:" >&5 |
a848cd7e SC |
34904 | sed 's/^/| /' conftest.$ac_ext >&5 |
34905 | ||
d589327a | 34906 | ac_cv_type_off_t=no |
a848cd7e | 34907 | fi |
47964710 VS |
34908 | |
34909 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
a848cd7e | 34910 | fi |
d589327a VZ |
34911 | { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 |
34912 | echo "${ECHO_T}$ac_cv_type_off_t" >&6; } | |
34913 | if test $ac_cv_type_off_t = yes; then | |
a848cd7e SC |
34914 | : |
34915 | else | |
34916 | ||
34917 | cat >>confdefs.h <<_ACEOF | |
47964710 | 34918 | #define off_t long int |
a848cd7e SC |
34919 | _ACEOF |
34920 | ||
34921 | fi | |
34922 | ||
d589327a VZ |
34923 | { echo "$as_me:$LINENO: checking for pid_t" >&5 |
34924 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; } | |
a848cd7e | 34925 | if test "${ac_cv_type_pid_t+set}" = set; then |
d589327a | 34926 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a848cd7e | 34927 | else |
aa113d87 FM |
34928 | cat >conftest.$ac_ext <<_ACEOF |
34929 | /* confdefs.h. */ | |
34930 | _ACEOF | |
34931 | cat confdefs.h >>conftest.$ac_ext | |
34932 | cat >>conftest.$ac_ext <<_ACEOF | |
34933 | /* end confdefs.h. */ | |
34934 | $ac_includes_default | |
d589327a | 34935 | typedef pid_t ac__type_new_; |
aa113d87 FM |
34936 | int |
34937 | main () | |
34938 | { | |
d589327a VZ |
34939 | if ((ac__type_new_ *) 0) |
34940 | return 0; | |
34941 | if (sizeof (ac__type_new_)) | |
34942 | return 0; | |
a848cd7e SC |
34943 | ; |
34944 | return 0; | |
34945 | } | |
34946 | _ACEOF | |
34947 | rm -f conftest.$ac_objext | |
47964710 VS |
34948 | if { (ac_try="$ac_compile" |
34949 | case "(($ac_try" in | |
34950 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
34951 | *) ac_try_echo=$ac_try;; | |
34952 | esac | |
d589327a | 34953 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 34954 | (eval "$ac_compile") 2>conftest.er1 |
a848cd7e | 34955 | ac_status=$? |
ac1cb8d3 VS |
34956 | grep -v '^ *+' conftest.er1 >conftest.err |
34957 | rm -f conftest.er1 | |
34958 | cat conftest.err >&5 | |
d589327a | 34959 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
34960 | (exit $ac_status); } && { |
34961 | test -z "$ac_c_werror_flag" || | |
34962 | test ! -s conftest.err | |
34963 | } && test -s conftest.$ac_objext; then | |
d589327a | 34964 | ac_cv_type_pid_t=yes |
a848cd7e | 34965 | else |
d589327a | 34966 | echo "$as_me: failed program was:" >&5 |
a848cd7e SC |
34967 | sed 's/^/| /' conftest.$ac_ext >&5 |
34968 | ||
d589327a | 34969 | ac_cv_type_pid_t=no |
a848cd7e | 34970 | fi |
47964710 VS |
34971 | |
34972 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
a848cd7e | 34973 | fi |
d589327a VZ |
34974 | { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
34975 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6; } | |
34976 | if test $ac_cv_type_pid_t = yes; then | |
a848cd7e SC |
34977 | : |
34978 | else | |
34979 | ||
34980 | cat >>confdefs.h <<_ACEOF | |
34981 | #define pid_t int | |
34982 | _ACEOF | |
34983 | ||
34984 | fi | |
34985 | ||
d589327a VZ |
34986 | { echo "$as_me:$LINENO: checking for size_t" >&5 |
34987 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6; } | |
a848cd7e | 34988 | if test "${ac_cv_type_size_t+set}" = set; then |
d589327a | 34989 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a848cd7e | 34990 | else |
aa113d87 FM |
34991 | cat >conftest.$ac_ext <<_ACEOF |
34992 | /* confdefs.h. */ | |
34993 | _ACEOF | |
34994 | cat confdefs.h >>conftest.$ac_ext | |
34995 | cat >>conftest.$ac_ext <<_ACEOF | |
34996 | /* end confdefs.h. */ | |
34997 | $ac_includes_default | |
d589327a | 34998 | typedef size_t ac__type_new_; |
aa113d87 FM |
34999 | int |
35000 | main () | |
35001 | { | |
d589327a VZ |
35002 | if ((ac__type_new_ *) 0) |
35003 | return 0; | |
35004 | if (sizeof (ac__type_new_)) | |
35005 | return 0; | |
a848cd7e SC |
35006 | ; |
35007 | return 0; | |
35008 | } | |
35009 | _ACEOF | |
35010 | rm -f conftest.$ac_objext | |
47964710 VS |
35011 | if { (ac_try="$ac_compile" |
35012 | case "(($ac_try" in | |
35013 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
35014 | *) ac_try_echo=$ac_try;; | |
35015 | esac | |
d589327a | 35016 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 35017 | (eval "$ac_compile") 2>conftest.er1 |
a848cd7e | 35018 | ac_status=$? |
ac1cb8d3 VS |
35019 | grep -v '^ *+' conftest.er1 >conftest.err |
35020 | rm -f conftest.er1 | |
35021 | cat conftest.err >&5 | |
d589327a | 35022 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
35023 | (exit $ac_status); } && { |
35024 | test -z "$ac_c_werror_flag" || | |
35025 | test ! -s conftest.err | |
35026 | } && test -s conftest.$ac_objext; then | |
d589327a | 35027 | ac_cv_type_size_t=yes |
a848cd7e | 35028 | else |
d589327a | 35029 | echo "$as_me: failed program was:" >&5 |
a848cd7e SC |
35030 | sed 's/^/| /' conftest.$ac_ext >&5 |
35031 | ||
d589327a | 35032 | ac_cv_type_size_t=no |
a848cd7e | 35033 | fi |
47964710 VS |
35034 | |
35035 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
a848cd7e | 35036 | fi |
d589327a VZ |
35037 | { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
35038 | echo "${ECHO_T}$ac_cv_type_size_t" >&6; } | |
35039 | if test $ac_cv_type_size_t = yes; then | |
a848cd7e SC |
35040 | : |
35041 | else | |
35042 | ||
35043 | cat >>confdefs.h <<_ACEOF | |
47964710 | 35044 | #define size_t unsigned int |
a848cd7e SC |
35045 | _ACEOF |
35046 | ||
35047 | fi | |
35048 | ||
a848cd7e | 35049 | |
d589327a VZ |
35050 | { echo "$as_me:$LINENO: checking for ssize_t" >&5 |
35051 | echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; } | |
d51253e8 | 35052 | if test "${ac_cv_type_ssize_t+set}" = set; then |
d589327a | 35053 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
d51253e8 | 35054 | else |
aa113d87 FM |
35055 | cat >conftest.$ac_ext <<_ACEOF |
35056 | /* confdefs.h. */ | |
35057 | _ACEOF | |
35058 | cat confdefs.h >>conftest.$ac_ext | |
35059 | cat >>conftest.$ac_ext <<_ACEOF | |
35060 | /* end confdefs.h. */ | |
35061 | $ac_includes_default | |
d589327a | 35062 | typedef ssize_t ac__type_new_; |
aa113d87 FM |
35063 | int |
35064 | main () | |
35065 | { | |
d589327a VZ |
35066 | if ((ac__type_new_ *) 0) |
35067 | return 0; | |
35068 | if (sizeof (ac__type_new_)) | |
35069 | return 0; | |
d51253e8 RL |
35070 | ; |
35071 | return 0; | |
35072 | } | |
35073 | _ACEOF | |
35074 | rm -f conftest.$ac_objext | |
47964710 VS |
35075 | if { (ac_try="$ac_compile" |
35076 | case "(($ac_try" in | |
35077 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
35078 | *) ac_try_echo=$ac_try;; | |
35079 | esac | |
d589327a | 35080 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 35081 | (eval "$ac_compile") 2>conftest.er1 |
d51253e8 RL |
35082 | ac_status=$? |
35083 | grep -v '^ *+' conftest.er1 >conftest.err | |
35084 | rm -f conftest.er1 | |
35085 | cat conftest.err >&5 | |
d589327a | 35086 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
35087 | (exit $ac_status); } && { |
35088 | test -z "$ac_c_werror_flag" || | |
35089 | test ! -s conftest.err | |
35090 | } && test -s conftest.$ac_objext; then | |
d589327a | 35091 | ac_cv_type_ssize_t=yes |
d51253e8 | 35092 | else |
d589327a | 35093 | echo "$as_me: failed program was:" >&5 |
d51253e8 RL |
35094 | sed 's/^/| /' conftest.$ac_ext >&5 |
35095 | ||
d589327a | 35096 | ac_cv_type_ssize_t=no |
d51253e8 | 35097 | fi |
47964710 VS |
35098 | |
35099 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
d51253e8 | 35100 | fi |
d589327a VZ |
35101 | { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5 |
35102 | echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; } | |
35103 | if test $ac_cv_type_ssize_t = yes; then | |
d51253e8 RL |
35104 | |
35105 | cat >>confdefs.h <<_ACEOF | |
35106 | #define HAVE_SSIZE_T 1 | |
35107 | _ACEOF | |
35108 | ||
35109 | ||
35110 | fi | |
35111 | ||
35112 | ||
47964710 | 35113 | ac_ext=cpp |
9b8888f9 VZ |
35114 | ac_cpp='$CXXCPP $CPPFLAGS' |
35115 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
35116 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
35117 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
d589327a VZ |
35118 | { echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5 |
35119 | echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6; } | |
a848cd7e | 35120 | if test "${wx_cv_size_t_is_uint+set}" = set; then |
d589327a | 35121 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a848cd7e SC |
35122 | else |
35123 | ||
35124 | cat >conftest.$ac_ext <<_ACEOF | |
35125 | /* confdefs.h. */ | |
35126 | _ACEOF | |
35127 | cat confdefs.h >>conftest.$ac_ext | |
35128 | cat >>conftest.$ac_ext <<_ACEOF | |
35129 | /* end confdefs.h. */ | |
35130 | #include <stddef.h> | |
35131 | int | |
35132 | main () | |
35133 | { | |
35134 | ||
35135 | return 0; } | |
35136 | ||
35137 | struct Foo { void foo(size_t); void foo(unsigned int); }; | |
35138 | ||
35139 | int bar() { | |
35140 | ||
35141 | ; | |
35142 | return 0; | |
35143 | } | |
35144 | _ACEOF | |
35145 | rm -f conftest.$ac_objext | |
47964710 VS |
35146 | if { (ac_try="$ac_compile" |
35147 | case "(($ac_try" in | |
35148 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
35149 | *) ac_try_echo=$ac_try;; | |
35150 | esac | |
d589327a | 35151 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 35152 | (eval "$ac_compile") 2>conftest.er1 |
a848cd7e | 35153 | ac_status=$? |
ac1cb8d3 VS |
35154 | grep -v '^ *+' conftest.er1 >conftest.err |
35155 | rm -f conftest.er1 | |
35156 | cat conftest.err >&5 | |
d589327a | 35157 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
35158 | (exit $ac_status); } && { |
35159 | test -z "$ac_cxx_werror_flag" || | |
35160 | test ! -s conftest.err | |
35161 | } && test -s conftest.$ac_objext; then | |
a848cd7e SC |
35162 | wx_cv_size_t_is_uint=no |
35163 | else | |
d589327a | 35164 | echo "$as_me: failed program was:" >&5 |
a848cd7e SC |
35165 | sed 's/^/| /' conftest.$ac_ext >&5 |
35166 | ||
47964710 | 35167 | wx_cv_size_t_is_uint=yes |
a848cd7e SC |
35168 | |
35169 | fi | |
47964710 VS |
35170 | |
35171 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
a848cd7e SC |
35172 | |
35173 | ||
35174 | fi | |
d589327a VZ |
35175 | { echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5 |
35176 | echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6; } | |
a848cd7e SC |
35177 | |
35178 | if test "$wx_cv_size_t_is_uint" = "yes"; then | |
35179 | cat >>confdefs.h <<\_ACEOF | |
35180 | #define wxSIZE_T_IS_UINT 1 | |
35181 | _ACEOF | |
35182 | ||
35183 | else | |
d589327a VZ |
35184 | { echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5 |
35185 | echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6; } | |
a848cd7e | 35186 | if test "${wx_cv_size_t_is_ulong+set}" = set; then |
d589327a | 35187 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a848cd7e SC |
35188 | else |
35189 | cat >conftest.$ac_ext <<_ACEOF | |
35190 | /* confdefs.h. */ | |
35191 | _ACEOF | |
35192 | cat confdefs.h >>conftest.$ac_ext | |
35193 | cat >>conftest.$ac_ext <<_ACEOF | |
35194 | /* end confdefs.h. */ | |
35195 | #include <stddef.h> | |
35196 | int | |
35197 | main () | |
35198 | { | |
35199 | ||
35200 | return 0; } | |
35201 | ||
35202 | struct Foo { void foo(size_t); void foo(unsigned long); }; | |
35203 | ||
35204 | int bar() { | |
35205 | ||
35206 | ; | |
35207 | return 0; | |
35208 | } | |
35209 | _ACEOF | |
35210 | rm -f conftest.$ac_objext | |
47964710 VS |
35211 | if { (ac_try="$ac_compile" |
35212 | case "(($ac_try" in | |
35213 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
35214 | *) ac_try_echo=$ac_try;; | |
35215 | esac | |
d589327a | 35216 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 35217 | (eval "$ac_compile") 2>conftest.er1 |
a848cd7e | 35218 | ac_status=$? |
ac1cb8d3 VS |
35219 | grep -v '^ *+' conftest.er1 >conftest.err |
35220 | rm -f conftest.er1 | |
35221 | cat conftest.err >&5 | |
d589327a | 35222 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
35223 | (exit $ac_status); } && { |
35224 | test -z "$ac_cxx_werror_flag" || | |
35225 | test ! -s conftest.err | |
35226 | } && test -s conftest.$ac_objext; then | |
a848cd7e SC |
35227 | wx_cv_size_t_is_ulong=no |
35228 | else | |
d589327a | 35229 | echo "$as_me: failed program was:" >&5 |
a848cd7e SC |
35230 | sed 's/^/| /' conftest.$ac_ext >&5 |
35231 | ||
47964710 | 35232 | wx_cv_size_t_is_ulong=yes |
a848cd7e SC |
35233 | |
35234 | fi | |
47964710 VS |
35235 | |
35236 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
a848cd7e SC |
35237 | |
35238 | fi | |
d589327a VZ |
35239 | { echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5 |
35240 | echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6; } | |
a848cd7e SC |
35241 | |
35242 | if test "$wx_cv_size_t_is_ulong" = "yes"; then | |
35243 | cat >>confdefs.h <<\_ACEOF | |
35244 | #define wxSIZE_T_IS_ULONG 1 | |
35245 | _ACEOF | |
35246 | ||
35247 | fi | |
35248 | fi | |
35249 | ||
d589327a VZ |
35250 | { echo "$as_me:$LINENO: checking if wchar_t is separate type" >&5 |
35251 | echo $ECHO_N "checking if wchar_t is separate type... $ECHO_C" >&6; } | |
21f0762a | 35252 | if test "${wx_cv_wchar_t_is_separate_type+set}" = set; then |
d589327a | 35253 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
21f0762a VS |
35254 | else |
35255 | cat >conftest.$ac_ext <<_ACEOF | |
35256 | /* confdefs.h. */ | |
35257 | _ACEOF | |
35258 | cat confdefs.h >>conftest.$ac_ext | |
35259 | cat >>conftest.$ac_ext <<_ACEOF | |
35260 | /* end confdefs.h. */ | |
35261 | #include <wchar.h> | |
35262 | int | |
35263 | main () | |
35264 | { | |
35265 | ||
35266 | return 0; } | |
35267 | ||
35268 | struct Foo { void foo(wchar_t); | |
35269 | void foo(unsigned short); | |
35270 | void foo(unsigned int); | |
35271 | void foo(unsigned long); }; | |
35272 | ||
35273 | int bar() { | |
35274 | ||
35275 | ; | |
35276 | return 0; | |
35277 | } | |
35278 | _ACEOF | |
35279 | rm -f conftest.$ac_objext | |
47964710 VS |
35280 | if { (ac_try="$ac_compile" |
35281 | case "(($ac_try" in | |
35282 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
35283 | *) ac_try_echo=$ac_try;; | |
35284 | esac | |
d589327a | 35285 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 35286 | (eval "$ac_compile") 2>conftest.er1 |
21f0762a VS |
35287 | ac_status=$? |
35288 | grep -v '^ *+' conftest.er1 >conftest.err | |
35289 | rm -f conftest.er1 | |
35290 | cat conftest.err >&5 | |
d589327a | 35291 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
35292 | (exit $ac_status); } && { |
35293 | test -z "$ac_cxx_werror_flag" || | |
35294 | test ! -s conftest.err | |
35295 | } && test -s conftest.$ac_objext; then | |
21f0762a VS |
35296 | wx_cv_wchar_t_is_separate_type=yes |
35297 | else | |
d589327a | 35298 | echo "$as_me: failed program was:" >&5 |
21f0762a VS |
35299 | sed 's/^/| /' conftest.$ac_ext >&5 |
35300 | ||
47964710 | 35301 | wx_cv_wchar_t_is_separate_type=no |
21f0762a VS |
35302 | |
35303 | fi | |
47964710 VS |
35304 | |
35305 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
21f0762a VS |
35306 | |
35307 | fi | |
d589327a VZ |
35308 | { echo "$as_me:$LINENO: result: $wx_cv_wchar_t_is_separate_type" >&5 |
35309 | echo "${ECHO_T}$wx_cv_wchar_t_is_separate_type" >&6; } | |
21f0762a VS |
35310 | |
35311 | if test "$wx_cv_wchar_t_is_separate_type" = "yes"; then | |
35312 | cat >>confdefs.h <<\_ACEOF | |
c5cf8663 | 35313 | #define wxWCHAR_T_IS_REAL_TYPE 1 |
21f0762a VS |
35314 | _ACEOF |
35315 | ||
4d62edfb VS |
35316 | else |
35317 | cat >>confdefs.h <<\_ACEOF | |
c5cf8663 | 35318 | #define wxWCHAR_T_IS_REAL_TYPE 0 |
4d62edfb VS |
35319 | _ACEOF |
35320 | ||
21f0762a VS |
35321 | fi |
35322 | ||
9b8888f9 VZ |
35323 | ac_ext=c |
35324 | ac_cpp='$CPP $CPPFLAGS' | |
35325 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
35326 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
35327 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
35328 | ||
a848cd7e | 35329 | |
d589327a VZ |
35330 | { echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5 |
35331 | echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6; } | |
a848cd7e | 35332 | if test "${wx_cv_struct_pw_gecos+set}" = set; then |
d589327a | 35333 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a848cd7e SC |
35334 | else |
35335 | ||
35336 | cat >conftest.$ac_ext <<_ACEOF | |
35337 | /* confdefs.h. */ | |
35338 | _ACEOF | |
35339 | cat confdefs.h >>conftest.$ac_ext | |
35340 | cat >>conftest.$ac_ext <<_ACEOF | |
35341 | /* end confdefs.h. */ | |
35342 | #include <pwd.h> | |
35343 | int | |
35344 | main () | |
35345 | { | |
35346 | ||
35347 | char *p; | |
35348 | struct passwd *pw; | |
35349 | p = pw->pw_gecos; | |
35350 | ||
35351 | ; | |
35352 | return 0; | |
35353 | } | |
35354 | _ACEOF | |
35355 | rm -f conftest.$ac_objext | |
47964710 VS |
35356 | if { (ac_try="$ac_compile" |
35357 | case "(($ac_try" in | |
35358 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
35359 | *) ac_try_echo=$ac_try;; | |
35360 | esac | |
d589327a | 35361 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 35362 | (eval "$ac_compile") 2>conftest.er1 |
a848cd7e | 35363 | ac_status=$? |
ac1cb8d3 VS |
35364 | grep -v '^ *+' conftest.er1 >conftest.err |
35365 | rm -f conftest.er1 | |
35366 | cat conftest.err >&5 | |
d589327a | 35367 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
35368 | (exit $ac_status); } && { |
35369 | test -z "$ac_c_werror_flag" || | |
35370 | test ! -s conftest.err | |
35371 | } && test -s conftest.$ac_objext; then | |
a848cd7e SC |
35372 | |
35373 | wx_cv_struct_pw_gecos=yes | |
35374 | ||
35375 | else | |
d589327a | 35376 | echo "$as_me: failed program was:" >&5 |
a848cd7e SC |
35377 | sed 's/^/| /' conftest.$ac_ext >&5 |
35378 | ||
35379 | ||
35380 | wx_cv_struct_pw_gecos=no | |
35381 | ||
35382 | ||
35383 | fi | |
47964710 VS |
35384 | |
35385 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
a848cd7e SC |
35386 | |
35387 | ||
35388 | fi | |
d589327a VZ |
35389 | { echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5 |
35390 | echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6; } | |
a848cd7e SC |
35391 | |
35392 | if test "$wx_cv_struct_pw_gecos" = "yes"; then | |
35393 | cat >>confdefs.h <<\_ACEOF | |
35394 | #define HAVE_PW_GECOS 1 | |
35395 | _ACEOF | |
35396 | ||
35397 | fi | |
35398 | ||
35399 | ||
47a7e797 | 35400 | if test "$wxUSE_WCHAR_T" = "yes"; then |
a848cd7e SC |
35401 | cat >>confdefs.h <<\_ACEOF |
35402 | #define wxUSE_WCHAR_T 1 | |
35403 | _ACEOF | |
35404 | ||
35405 | ||
35406 | WCSLEN_FOUND=0 | |
35407 | WCHAR_LINK= | |
35408 | ||
35409 | for ac_func in wcslen | |
35410 | do | |
d589327a VZ |
35411 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
35412 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
35413 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
47964710 | 35414 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
d589327a | 35415 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a848cd7e SC |
35416 | else |
35417 | cat >conftest.$ac_ext <<_ACEOF | |
35418 | /* confdefs.h. */ | |
35419 | _ACEOF | |
35420 | cat confdefs.h >>conftest.$ac_ext | |
35421 | cat >>conftest.$ac_ext <<_ACEOF | |
35422 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
35423 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
35424 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
35425 | #define $ac_func innocuous_$ac_func | |
35426 | ||
a848cd7e SC |
35427 | /* System header to define __stub macros and hopefully few prototypes, |
35428 | which can conflict with char $ac_func (); below. | |
35429 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
35430 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 35431 | |
a848cd7e SC |
35432 | #ifdef __STDC__ |
35433 | # include <limits.h> | |
35434 | #else | |
35435 | # include <assert.h> | |
35436 | #endif | |
ac1cb8d3 VS |
35437 | |
35438 | #undef $ac_func | |
35439 | ||
47964710 VS |
35440 | /* Override any GCC internal prototype to avoid an error. |
35441 | Use char because int might match the return type of a GCC | |
35442 | builtin and then its argument prototype would still apply. */ | |
a848cd7e SC |
35443 | #ifdef __cplusplus |
35444 | extern "C" | |
a848cd7e | 35445 | #endif |
a848cd7e SC |
35446 | char $ac_func (); |
35447 | /* The GNU C library defines this for functions which it implements | |
35448 | to always fail with ENOSYS. Some functions are actually named | |
35449 | something starting with __ and the normal name is an alias. */ | |
47964710 | 35450 | #if defined __stub_$ac_func || defined __stub___$ac_func |
a848cd7e | 35451 | choke me |
a848cd7e SC |
35452 | #endif |
35453 | ||
35454 | int | |
35455 | main () | |
35456 | { | |
47964710 | 35457 | return $ac_func (); |
a848cd7e SC |
35458 | ; |
35459 | return 0; | |
35460 | } | |
35461 | _ACEOF | |
35462 | rm -f conftest.$ac_objext conftest$ac_exeext | |
47964710 VS |
35463 | if { (ac_try="$ac_link" |
35464 | case "(($ac_try" in | |
35465 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
35466 | *) ac_try_echo=$ac_try;; | |
35467 | esac | |
d589327a | 35468 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 35469 | (eval "$ac_link") 2>conftest.er1 |
a848cd7e | 35470 | ac_status=$? |
ac1cb8d3 VS |
35471 | grep -v '^ *+' conftest.er1 >conftest.err |
35472 | rm -f conftest.er1 | |
35473 | cat conftest.err >&5 | |
d589327a | 35474 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
35475 | (exit $ac_status); } && { |
35476 | test -z "$ac_c_werror_flag" || | |
35477 | test ! -s conftest.err | |
d589327a VZ |
35478 | } && test -s conftest$ac_exeext && |
35479 | $as_test_x conftest$ac_exeext; then | |
a848cd7e SC |
35480 | eval "$as_ac_var=yes" |
35481 | else | |
d589327a | 35482 | echo "$as_me: failed program was:" >&5 |
a848cd7e SC |
35483 | sed 's/^/| /' conftest.$ac_ext >&5 |
35484 | ||
47964710 | 35485 | eval "$as_ac_var=no" |
a848cd7e | 35486 | fi |
47964710 VS |
35487 | |
35488 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
ac1cb8d3 | 35489 | conftest$ac_exeext conftest.$ac_ext |
a848cd7e | 35490 | fi |
d589327a VZ |
35491 | ac_res=`eval echo '${'$as_ac_var'}'` |
35492 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
35493 | echo "${ECHO_T}$ac_res" >&6; } | |
35494 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
a848cd7e | 35495 | cat >>confdefs.h <<_ACEOF |
d589327a | 35496 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
a848cd7e SC |
35497 | _ACEOF |
35498 | WCSLEN_FOUND=1 | |
35499 | fi | |
35500 | done | |
35501 | ||
35502 | ||
35503 | if test "$WCSLEN_FOUND" = 0; then | |
35504 | if test "$TOOLKIT" = "MSW"; then | |
d589327a VZ |
35505 | { echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5 |
35506 | echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6; } | |
a848cd7e | 35507 | if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then |
d589327a | 35508 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a848cd7e SC |
35509 | else |
35510 | ac_check_lib_save_LIBS=$LIBS | |
35511 | LIBS="-lmsvcrt $LIBS" | |
35512 | cat >conftest.$ac_ext <<_ACEOF | |
35513 | /* confdefs.h. */ | |
35514 | _ACEOF | |
35515 | cat confdefs.h >>conftest.$ac_ext | |
35516 | cat >>conftest.$ac_ext <<_ACEOF | |
35517 | /* end confdefs.h. */ | |
35518 | ||
47964710 VS |
35519 | /* Override any GCC internal prototype to avoid an error. |
35520 | Use char because int might match the return type of a GCC | |
35521 | builtin and then its argument prototype would still apply. */ | |
a848cd7e SC |
35522 | #ifdef __cplusplus |
35523 | extern "C" | |
35524 | #endif | |
a848cd7e SC |
35525 | char wcslen (); |
35526 | int | |
35527 | main () | |
35528 | { | |
47964710 | 35529 | return wcslen (); |
a848cd7e SC |
35530 | ; |
35531 | return 0; | |
35532 | } | |
35533 | _ACEOF | |
35534 | rm -f conftest.$ac_objext conftest$ac_exeext | |
47964710 VS |
35535 | if { (ac_try="$ac_link" |
35536 | case "(($ac_try" in | |
35537 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
35538 | *) ac_try_echo=$ac_try;; | |
35539 | esac | |
d589327a | 35540 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 35541 | (eval "$ac_link") 2>conftest.er1 |
a848cd7e | 35542 | ac_status=$? |
ac1cb8d3 VS |
35543 | grep -v '^ *+' conftest.er1 >conftest.err |
35544 | rm -f conftest.er1 | |
35545 | cat conftest.err >&5 | |
d589327a | 35546 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
35547 | (exit $ac_status); } && { |
35548 | test -z "$ac_c_werror_flag" || | |
35549 | test ! -s conftest.err | |
d589327a VZ |
35550 | } && test -s conftest$ac_exeext && |
35551 | $as_test_x conftest$ac_exeext; then | |
39b61aa3 VZ |
35552 | ac_cv_lib_msvcrt_wcslen=yes |
35553 | else | |
d589327a | 35554 | echo "$as_me: failed program was:" >&5 |
39b61aa3 VZ |
35555 | sed 's/^/| /' conftest.$ac_ext >&5 |
35556 | ||
47964710 | 35557 | ac_cv_lib_msvcrt_wcslen=no |
39b61aa3 | 35558 | fi |
47964710 VS |
35559 | |
35560 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
39b61aa3 VZ |
35561 | conftest$ac_exeext conftest.$ac_ext |
35562 | LIBS=$ac_check_lib_save_LIBS | |
35563 | fi | |
d589327a VZ |
35564 | { echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5 |
35565 | echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6; } | |
35566 | if test $ac_cv_lib_msvcrt_wcslen = yes; then | |
39b61aa3 VZ |
35567 | WCHAR_OK=1 |
35568 | fi | |
35569 | ||
35570 | else | |
d589327a VZ |
35571 | { echo "$as_me:$LINENO: checking for wcslen in -lw" >&5 |
35572 | echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6; } | |
39b61aa3 | 35573 | if test "${ac_cv_lib_w_wcslen+set}" = set; then |
d589327a | 35574 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
39b61aa3 VZ |
35575 | else |
35576 | ac_check_lib_save_LIBS=$LIBS | |
35577 | LIBS="-lw $LIBS" | |
35578 | cat >conftest.$ac_ext <<_ACEOF | |
35579 | /* confdefs.h. */ | |
35580 | _ACEOF | |
35581 | cat confdefs.h >>conftest.$ac_ext | |
35582 | cat >>conftest.$ac_ext <<_ACEOF | |
35583 | /* end confdefs.h. */ | |
35584 | ||
47964710 VS |
35585 | /* Override any GCC internal prototype to avoid an error. |
35586 | Use char because int might match the return type of a GCC | |
35587 | builtin and then its argument prototype would still apply. */ | |
39b61aa3 VZ |
35588 | #ifdef __cplusplus |
35589 | extern "C" | |
35590 | #endif | |
35591 | char wcslen (); | |
35592 | int | |
35593 | main () | |
35594 | { | |
47964710 | 35595 | return wcslen (); |
39b61aa3 VZ |
35596 | ; |
35597 | return 0; | |
35598 | } | |
35599 | _ACEOF | |
35600 | rm -f conftest.$ac_objext conftest$ac_exeext | |
47964710 VS |
35601 | if { (ac_try="$ac_link" |
35602 | case "(($ac_try" in | |
35603 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
35604 | *) ac_try_echo=$ac_try;; | |
35605 | esac | |
d589327a | 35606 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 35607 | (eval "$ac_link") 2>conftest.er1 |
a848cd7e | 35608 | ac_status=$? |
39b61aa3 VZ |
35609 | grep -v '^ *+' conftest.er1 >conftest.err |
35610 | rm -f conftest.er1 | |
35611 | cat conftest.err >&5 | |
d589327a | 35612 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
35613 | (exit $ac_status); } && { |
35614 | test -z "$ac_c_werror_flag" || | |
35615 | test ! -s conftest.err | |
d589327a VZ |
35616 | } && test -s conftest$ac_exeext && |
35617 | $as_test_x conftest$ac_exeext; then | |
a848cd7e SC |
35618 | ac_cv_lib_w_wcslen=yes |
35619 | else | |
d589327a | 35620 | echo "$as_me: failed program was:" >&5 |
a848cd7e SC |
35621 | sed 's/^/| /' conftest.$ac_ext >&5 |
35622 | ||
47964710 | 35623 | ac_cv_lib_w_wcslen=no |
a848cd7e | 35624 | fi |
47964710 VS |
35625 | |
35626 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
ac1cb8d3 | 35627 | conftest$ac_exeext conftest.$ac_ext |
a848cd7e SC |
35628 | LIBS=$ac_check_lib_save_LIBS |
35629 | fi | |
d589327a VZ |
35630 | { echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5 |
35631 | echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6; } | |
35632 | if test $ac_cv_lib_w_wcslen = yes; then | |
a848cd7e SC |
35633 | |
35634 | WCHAR_LINK=" -lw" | |
35635 | WCSLEN_FOUND=1 | |
35636 | ||
35637 | fi | |
35638 | ||
35639 | fi | |
35640 | fi | |
35641 | ||
35642 | if test "$WCSLEN_FOUND" = 1; then | |
35643 | cat >>confdefs.h <<\_ACEOF | |
35644 | #define HAVE_WCSLEN 1 | |
35645 | _ACEOF | |
35646 | ||
35647 | fi | |
35648 | ||
8a02058a | 35649 | |
f1b63efe FM |
35650 | |
35651 | ||
6689960c VZ |
35652 | |
35653 | ||
35654 | for ac_func in wcsdup strnlen wcsnlen wcscasecmp wcsncasecmp | |
f1b63efe | 35655 | do |
d589327a VZ |
35656 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
35657 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
35658 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
47964710 | 35659 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
d589327a | 35660 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8a02058a VS |
35661 | else |
35662 | cat >conftest.$ac_ext <<_ACEOF | |
35663 | /* confdefs.h. */ | |
35664 | _ACEOF | |
35665 | cat confdefs.h >>conftest.$ac_ext | |
35666 | cat >>conftest.$ac_ext <<_ACEOF | |
35667 | /* end confdefs.h. */ | |
35668 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
35669 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
35670 | #define $ac_func innocuous_$ac_func | |
35671 | ||
35672 | /* System header to define __stub macros and hopefully few prototypes, | |
35673 | which can conflict with char $ac_func (); below. | |
35674 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
35675 | <limits.h> exists even on freestanding compilers. */ | |
35676 | ||
35677 | #ifdef __STDC__ | |
35678 | # include <limits.h> | |
35679 | #else | |
35680 | # include <assert.h> | |
35681 | #endif | |
35682 | ||
35683 | #undef $ac_func | |
35684 | ||
47964710 VS |
35685 | /* Override any GCC internal prototype to avoid an error. |
35686 | Use char because int might match the return type of a GCC | |
35687 | builtin and then its argument prototype would still apply. */ | |
8a02058a VS |
35688 | #ifdef __cplusplus |
35689 | extern "C" | |
35690 | #endif | |
35691 | char $ac_func (); | |
35692 | /* The GNU C library defines this for functions which it implements | |
35693 | to always fail with ENOSYS. Some functions are actually named | |
35694 | something starting with __ and the normal name is an alias. */ | |
47964710 | 35695 | #if defined __stub_$ac_func || defined __stub___$ac_func |
8a02058a VS |
35696 | choke me |
35697 | #endif | |
35698 | ||
35699 | int | |
35700 | main () | |
35701 | { | |
47964710 | 35702 | return $ac_func (); |
8a02058a VS |
35703 | ; |
35704 | return 0; | |
35705 | } | |
35706 | _ACEOF | |
35707 | rm -f conftest.$ac_objext conftest$ac_exeext | |
47964710 VS |
35708 | if { (ac_try="$ac_link" |
35709 | case "(($ac_try" in | |
35710 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
35711 | *) ac_try_echo=$ac_try;; | |
35712 | esac | |
d589327a | 35713 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 35714 | (eval "$ac_link") 2>conftest.er1 |
8a02058a VS |
35715 | ac_status=$? |
35716 | grep -v '^ *+' conftest.er1 >conftest.err | |
35717 | rm -f conftest.er1 | |
35718 | cat conftest.err >&5 | |
d589327a | 35719 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
35720 | (exit $ac_status); } && { |
35721 | test -z "$ac_c_werror_flag" || | |
35722 | test ! -s conftest.err | |
d589327a VZ |
35723 | } && test -s conftest$ac_exeext && |
35724 | $as_test_x conftest$ac_exeext; then | |
8a02058a VS |
35725 | eval "$as_ac_var=yes" |
35726 | else | |
d589327a | 35727 | echo "$as_me: failed program was:" >&5 |
8a02058a VS |
35728 | sed 's/^/| /' conftest.$ac_ext >&5 |
35729 | ||
47964710 | 35730 | eval "$as_ac_var=no" |
8a02058a | 35731 | fi |
47964710 VS |
35732 | |
35733 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
8a02058a VS |
35734 | conftest$ac_exeext conftest.$ac_ext |
35735 | fi | |
d589327a VZ |
35736 | ac_res=`eval echo '${'$as_ac_var'}'` |
35737 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
35738 | echo "${ECHO_T}$ac_res" >&6; } | |
35739 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
8a02058a | 35740 | cat >>confdefs.h <<_ACEOF |
d589327a | 35741 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
8a02058a VS |
35742 | _ACEOF |
35743 | ||
35744 | fi | |
35745 | done | |
35746 | ||
35747 | ||
efdf6afe | 35748 | if test "$USE_HPUX" = 1 -a "$GCC" != "yes"; then |
c92ad099 | 35749 | CPPFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CPPFLAGS" |
473276a9 VS |
35750 | fi |
35751 | ||
d589327a VZ |
35752 | { echo "$as_me:$LINENO: checking for mbstate_t" >&5 |
35753 | echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6; } | |
efdf6afe | 35754 | if test "${ac_cv_type_mbstate_t+set}" = set; then |
d589327a | 35755 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
efdf6afe | 35756 | else |
aa113d87 FM |
35757 | cat >conftest.$ac_ext <<_ACEOF |
35758 | /* confdefs.h. */ | |
35759 | _ACEOF | |
35760 | cat confdefs.h >>conftest.$ac_ext | |
35761 | cat >>conftest.$ac_ext <<_ACEOF | |
35762 | /* end confdefs.h. */ | |
35763 | #include <wchar.h> | |
35764 | ||
d589327a | 35765 | typedef mbstate_t ac__type_new_; |
aa113d87 FM |
35766 | int |
35767 | main () | |
35768 | { | |
d589327a VZ |
35769 | if ((ac__type_new_ *) 0) |
35770 | return 0; | |
35771 | if (sizeof (ac__type_new_)) | |
35772 | return 0; | |
efdf6afe VZ |
35773 | ; |
35774 | return 0; | |
35775 | } | |
35776 | _ACEOF | |
35777 | rm -f conftest.$ac_objext | |
47964710 VS |
35778 | if { (ac_try="$ac_compile" |
35779 | case "(($ac_try" in | |
35780 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
35781 | *) ac_try_echo=$ac_try;; | |
35782 | esac | |
d589327a | 35783 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 35784 | (eval "$ac_compile") 2>conftest.er1 |
efdf6afe VZ |
35785 | ac_status=$? |
35786 | grep -v '^ *+' conftest.er1 >conftest.err | |
35787 | rm -f conftest.er1 | |
35788 | cat conftest.err >&5 | |
d589327a | 35789 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
35790 | (exit $ac_status); } && { |
35791 | test -z "$ac_c_werror_flag" || | |
35792 | test ! -s conftest.err | |
35793 | } && test -s conftest.$ac_objext; then | |
d589327a | 35794 | ac_cv_type_mbstate_t=yes |
efdf6afe | 35795 | else |
d589327a | 35796 | echo "$as_me: failed program was:" >&5 |
efdf6afe VZ |
35797 | sed 's/^/| /' conftest.$ac_ext >&5 |
35798 | ||
d589327a | 35799 | ac_cv_type_mbstate_t=no |
efdf6afe | 35800 | fi |
47964710 VS |
35801 | |
35802 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
efdf6afe | 35803 | fi |
d589327a VZ |
35804 | { echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5 |
35805 | echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; } | |
35806 | if test $ac_cv_type_mbstate_t = yes; then | |
efdf6afe VZ |
35807 | |
35808 | cat >>confdefs.h <<_ACEOF | |
35809 | #define HAVE_MBSTATE_T 1 | |
35810 | _ACEOF | |
35811 | ||
a848cd7e SC |
35812 | |
35813 | for ac_func in wcsrtombs | |
35814 | do | |
d589327a VZ |
35815 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
35816 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
35817 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
47964710 | 35818 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
d589327a | 35819 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a848cd7e SC |
35820 | else |
35821 | cat >conftest.$ac_ext <<_ACEOF | |
35822 | /* confdefs.h. */ | |
35823 | _ACEOF | |
35824 | cat confdefs.h >>conftest.$ac_ext | |
35825 | cat >>conftest.$ac_ext <<_ACEOF | |
35826 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
35827 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
35828 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
35829 | #define $ac_func innocuous_$ac_func | |
35830 | ||
a848cd7e SC |
35831 | /* System header to define __stub macros and hopefully few prototypes, |
35832 | which can conflict with char $ac_func (); below. | |
35833 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
35834 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 35835 | |
a848cd7e SC |
35836 | #ifdef __STDC__ |
35837 | # include <limits.h> | |
35838 | #else | |
35839 | # include <assert.h> | |
35840 | #endif | |
ac1cb8d3 VS |
35841 | |
35842 | #undef $ac_func | |
35843 | ||
47964710 VS |
35844 | /* Override any GCC internal prototype to avoid an error. |
35845 | Use char because int might match the return type of a GCC | |
35846 | builtin and then its argument prototype would still apply. */ | |
a848cd7e SC |
35847 | #ifdef __cplusplus |
35848 | extern "C" | |
a848cd7e | 35849 | #endif |
a848cd7e SC |
35850 | char $ac_func (); |
35851 | /* The GNU C library defines this for functions which it implements | |
35852 | to always fail with ENOSYS. Some functions are actually named | |
35853 | something starting with __ and the normal name is an alias. */ | |
47964710 | 35854 | #if defined __stub_$ac_func || defined __stub___$ac_func |
a848cd7e | 35855 | choke me |
a848cd7e SC |
35856 | #endif |
35857 | ||
35858 | int | |
35859 | main () | |
35860 | { | |
47964710 | 35861 | return $ac_func (); |
a848cd7e SC |
35862 | ; |
35863 | return 0; | |
35864 | } | |
35865 | _ACEOF | |
35866 | rm -f conftest.$ac_objext conftest$ac_exeext | |
47964710 VS |
35867 | if { (ac_try="$ac_link" |
35868 | case "(($ac_try" in | |
35869 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
35870 | *) ac_try_echo=$ac_try;; | |
35871 | esac | |
d589327a | 35872 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 35873 | (eval "$ac_link") 2>conftest.er1 |
a848cd7e | 35874 | ac_status=$? |
ac1cb8d3 VS |
35875 | grep -v '^ *+' conftest.er1 >conftest.err |
35876 | rm -f conftest.er1 | |
35877 | cat conftest.err >&5 | |
d589327a | 35878 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
35879 | (exit $ac_status); } && { |
35880 | test -z "$ac_c_werror_flag" || | |
35881 | test ! -s conftest.err | |
d589327a VZ |
35882 | } && test -s conftest$ac_exeext && |
35883 | $as_test_x conftest$ac_exeext; then | |
a848cd7e SC |
35884 | eval "$as_ac_var=yes" |
35885 | else | |
d589327a | 35886 | echo "$as_me: failed program was:" >&5 |
a848cd7e SC |
35887 | sed 's/^/| /' conftest.$ac_ext >&5 |
35888 | ||
47964710 | 35889 | eval "$as_ac_var=no" |
a848cd7e | 35890 | fi |
47964710 VS |
35891 | |
35892 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
ac1cb8d3 | 35893 | conftest$ac_exeext conftest.$ac_ext |
a848cd7e | 35894 | fi |
d589327a VZ |
35895 | ac_res=`eval echo '${'$as_ac_var'}'` |
35896 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
35897 | echo "${ECHO_T}$ac_res" >&6; } | |
35898 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
a848cd7e | 35899 | cat >>confdefs.h <<_ACEOF |
d589327a | 35900 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
a848cd7e SC |
35901 | _ACEOF |
35902 | ||
35903 | fi | |
35904 | done | |
35905 | ||
efdf6afe VZ |
35906 | fi |
35907 | ||
a848cd7e | 35908 | else |
d589327a VZ |
35909 | { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5 |
35910 | echo "$as_me: WARNING: Wide character support is unavailable" >&2;} | |
a848cd7e SC |
35911 | fi |
35912 | ||
a848cd7e | 35913 | |
4a767dd5 | 35914 | |
d7bf6c20 VZ |
35915 | |
35916 | for ac_func in snprintf vsnprintf vsscanf | |
a848cd7e | 35917 | do |
d589327a VZ |
35918 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
35919 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
35920 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
47964710 | 35921 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
d589327a | 35922 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a848cd7e SC |
35923 | else |
35924 | cat >conftest.$ac_ext <<_ACEOF | |
35925 | /* confdefs.h. */ | |
35926 | _ACEOF | |
35927 | cat confdefs.h >>conftest.$ac_ext | |
35928 | cat >>conftest.$ac_ext <<_ACEOF | |
35929 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
35930 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
35931 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
35932 | #define $ac_func innocuous_$ac_func | |
35933 | ||
a848cd7e SC |
35934 | /* System header to define __stub macros and hopefully few prototypes, |
35935 | which can conflict with char $ac_func (); below. | |
35936 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
35937 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 35938 | |
a848cd7e SC |
35939 | #ifdef __STDC__ |
35940 | # include <limits.h> | |
35941 | #else | |
35942 | # include <assert.h> | |
35943 | #endif | |
ac1cb8d3 VS |
35944 | |
35945 | #undef $ac_func | |
35946 | ||
47964710 VS |
35947 | /* Override any GCC internal prototype to avoid an error. |
35948 | Use char because int might match the return type of a GCC | |
35949 | builtin and then its argument prototype would still apply. */ | |
a848cd7e SC |
35950 | #ifdef __cplusplus |
35951 | extern "C" | |
a848cd7e | 35952 | #endif |
a848cd7e SC |
35953 | char $ac_func (); |
35954 | /* The GNU C library defines this for functions which it implements | |
35955 | to always fail with ENOSYS. Some functions are actually named | |
35956 | something starting with __ and the normal name is an alias. */ | |
47964710 | 35957 | #if defined __stub_$ac_func || defined __stub___$ac_func |
a848cd7e | 35958 | choke me |
a848cd7e SC |
35959 | #endif |
35960 | ||
35961 | int | |
35962 | main () | |
35963 | { | |
47964710 | 35964 | return $ac_func (); |
a848cd7e SC |
35965 | ; |
35966 | return 0; | |
35967 | } | |
35968 | _ACEOF | |
35969 | rm -f conftest.$ac_objext conftest$ac_exeext | |
47964710 VS |
35970 | if { (ac_try="$ac_link" |
35971 | case "(($ac_try" in | |
35972 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
35973 | *) ac_try_echo=$ac_try;; | |
35974 | esac | |
d589327a | 35975 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 35976 | (eval "$ac_link") 2>conftest.er1 |
a848cd7e | 35977 | ac_status=$? |
ac1cb8d3 VS |
35978 | grep -v '^ *+' conftest.er1 >conftest.err |
35979 | rm -f conftest.er1 | |
35980 | cat conftest.err >&5 | |
d589327a | 35981 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
35982 | (exit $ac_status); } && { |
35983 | test -z "$ac_c_werror_flag" || | |
35984 | test ! -s conftest.err | |
d589327a VZ |
35985 | } && test -s conftest$ac_exeext && |
35986 | $as_test_x conftest$ac_exeext; then | |
a848cd7e SC |
35987 | eval "$as_ac_var=yes" |
35988 | else | |
d589327a | 35989 | echo "$as_me: failed program was:" >&5 |
a848cd7e SC |
35990 | sed 's/^/| /' conftest.$ac_ext >&5 |
35991 | ||
47964710 | 35992 | eval "$as_ac_var=no" |
a848cd7e | 35993 | fi |
47964710 VS |
35994 | |
35995 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
ac1cb8d3 | 35996 | conftest$ac_exeext conftest.$ac_ext |
a848cd7e | 35997 | fi |
d589327a VZ |
35998 | ac_res=`eval echo '${'$as_ac_var'}'` |
35999 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
36000 | echo "${ECHO_T}$ac_res" >&6; } | |
36001 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
a848cd7e | 36002 | cat >>confdefs.h <<_ACEOF |
d589327a | 36003 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
a848cd7e SC |
36004 | _ACEOF |
36005 | ||
36006 | fi | |
36007 | done | |
36008 | ||
36009 | ||
5cfbef2a | 36010 | ac_ext=cpp |
e203535f SN |
36011 | ac_cpp='$CXXCPP $CPPFLAGS' |
36012 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
36013 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
36014 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
36015 | ||
a848cd7e | 36016 | if test "$ac_cv_func_vsnprintf" = "yes"; then |
d589327a VZ |
36017 | { echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5 |
36018 | echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6; } | |
a848cd7e | 36019 | if test "${wx_cv_func_vsnprintf_decl+set}" = set; then |
d589327a | 36020 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a848cd7e SC |
36021 | else |
36022 | ||
efdf6afe | 36023 | cat >conftest.$ac_ext <<_ACEOF |
a848cd7e SC |
36024 | /* confdefs.h. */ |
36025 | _ACEOF | |
36026 | cat confdefs.h >>conftest.$ac_ext | |
36027 | cat >>conftest.$ac_ext <<_ACEOF | |
36028 | /* end confdefs.h. */ | |
36029 | ||
36030 | #include <stdio.h> | |
36031 | #include <stdarg.h> | |
efdf6afe VZ |
36032 | #ifdef __MSL__ |
36033 | #if __MSL__ >= 0x6000 | |
36034 | namespace std {} | |
36035 | using namespace std; | |
36036 | #endif | |
36037 | #endif | |
a848cd7e SC |
36038 | |
36039 | int | |
36040 | main () | |
36041 | { | |
36042 | ||
36043 | char *buf; | |
36044 | va_list ap; | |
62fa8b3a | 36045 | vsnprintf(buf, 10u, "%s", ap); |
c122b164 DE |
36046 | |
36047 | ; | |
36048 | return 0; | |
36049 | } | |
36050 | _ACEOF | |
36051 | rm -f conftest.$ac_objext | |
47964710 VS |
36052 | if { (ac_try="$ac_compile" |
36053 | case "(($ac_try" in | |
36054 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
36055 | *) ac_try_echo=$ac_try;; | |
36056 | esac | |
d589327a | 36057 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 36058 | (eval "$ac_compile") 2>conftest.er1 |
c122b164 DE |
36059 | ac_status=$? |
36060 | grep -v '^ *+' conftest.er1 >conftest.err | |
36061 | rm -f conftest.er1 | |
36062 | cat conftest.err >&5 | |
d589327a | 36063 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 | 36064 | (exit $ac_status); } && { |
5cfbef2a | 36065 | test -z "$ac_cxx_werror_flag" || |
47964710 VS |
36066 | test ! -s conftest.err |
36067 | } && test -s conftest.$ac_objext; then | |
c122b164 DE |
36068 | wx_cv_func_vsnprintf_decl=yes |
36069 | else | |
d589327a | 36070 | echo "$as_me: failed program was:" >&5 |
c122b164 DE |
36071 | sed 's/^/| /' conftest.$ac_ext >&5 |
36072 | ||
47964710 | 36073 | wx_cv_func_vsnprintf_decl=no |
a848cd7e SC |
36074 | |
36075 | fi | |
47964710 VS |
36076 | |
36077 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
a848cd7e SC |
36078 | |
36079 | ||
36080 | fi | |
d589327a VZ |
36081 | { echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5 |
36082 | echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6; } | |
a848cd7e SC |
36083 | |
36084 | if test "$wx_cv_func_vsnprintf_decl" = "yes"; then | |
36085 | cat >>confdefs.h <<\_ACEOF | |
36086 | #define HAVE_VSNPRINTF_DECL 1 | |
36087 | _ACEOF | |
36088 | ||
62fa8b3a | 36089 | |
d589327a VZ |
36090 | { echo "$as_me:$LINENO: checking if vsnprintf declaration is broken" >&5 |
36091 | echo $ECHO_N "checking if vsnprintf declaration is broken... $ECHO_C" >&6; } | |
62fa8b3a | 36092 | if test "${wx_cv_func_broken_vsnprintf_decl+set}" = set; then |
d589327a | 36093 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
62fa8b3a MW |
36094 | else |
36095 | ||
36096 | cat >conftest.$ac_ext <<_ACEOF | |
36097 | /* confdefs.h. */ | |
36098 | _ACEOF | |
36099 | cat confdefs.h >>conftest.$ac_ext | |
36100 | cat >>conftest.$ac_ext <<_ACEOF | |
36101 | /* end confdefs.h. */ | |
36102 | ||
36103 | #include <stdio.h> | |
36104 | #include <stdarg.h> | |
36105 | #ifdef __MSL__ | |
36106 | #if __MSL__ >= 0x6000 | |
36107 | namespace std {} | |
36108 | using namespace std; | |
36109 | #endif | |
36110 | #endif | |
36111 | ||
36112 | int | |
36113 | main () | |
36114 | { | |
36115 | ||
36116 | char *buf; | |
36117 | va_list ap; | |
36118 | const char *fmt = "%s"; | |
36119 | vsnprintf(buf, 10u, fmt, ap); | |
36120 | ||
36121 | ; | |
36122 | return 0; | |
36123 | } | |
36124 | _ACEOF | |
36125 | rm -f conftest.$ac_objext | |
47964710 VS |
36126 | if { (ac_try="$ac_compile" |
36127 | case "(($ac_try" in | |
36128 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
36129 | *) ac_try_echo=$ac_try;; | |
36130 | esac | |
d589327a | 36131 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 36132 | (eval "$ac_compile") 2>conftest.er1 |
62fa8b3a MW |
36133 | ac_status=$? |
36134 | grep -v '^ *+' conftest.er1 >conftest.err | |
36135 | rm -f conftest.er1 | |
36136 | cat conftest.err >&5 | |
d589327a | 36137 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 | 36138 | (exit $ac_status); } && { |
5cfbef2a | 36139 | test -z "$ac_cxx_werror_flag" || |
47964710 VS |
36140 | test ! -s conftest.err |
36141 | } && test -s conftest.$ac_objext; then | |
62fa8b3a MW |
36142 | wx_cv_func_broken_vsnprintf_decl=no |
36143 | else | |
d589327a | 36144 | echo "$as_me: failed program was:" >&5 |
62fa8b3a MW |
36145 | sed 's/^/| /' conftest.$ac_ext >&5 |
36146 | ||
47964710 | 36147 | wx_cv_func_broken_vsnprintf_decl=yes |
62fa8b3a MW |
36148 | |
36149 | fi | |
47964710 VS |
36150 | |
36151 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
62fa8b3a MW |
36152 | |
36153 | ||
36154 | fi | |
d589327a VZ |
36155 | { echo "$as_me:$LINENO: result: $wx_cv_func_broken_vsnprintf_decl" >&5 |
36156 | echo "${ECHO_T}$wx_cv_func_broken_vsnprintf_decl" >&6; } | |
62fa8b3a MW |
36157 | |
36158 | if test "$wx_cv_func_broken_vsnprintf_decl" = "yes"; then | |
36159 | cat >>confdefs.h <<\_ACEOF | |
36160 | #define HAVE_BROKEN_VSNPRINTF_DECL 1 | |
36161 | _ACEOF | |
36162 | ||
36163 | fi | |
a848cd7e SC |
36164 | fi |
36165 | fi | |
36166 | ||
4a767dd5 | 36167 | if test "$ac_cv_func_snprintf" = "yes"; then |
d589327a VZ |
36168 | { echo "$as_me:$LINENO: checking for snprintf declaration" >&5 |
36169 | echo $ECHO_N "checking for snprintf declaration... $ECHO_C" >&6; } | |
4a767dd5 | 36170 | if test "${wx_cv_func_snprintf_decl+set}" = set; then |
d589327a | 36171 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4a767dd5 VZ |
36172 | else |
36173 | ||
36174 | cat >conftest.$ac_ext <<_ACEOF | |
36175 | /* confdefs.h. */ | |
36176 | _ACEOF | |
36177 | cat confdefs.h >>conftest.$ac_ext | |
36178 | cat >>conftest.$ac_ext <<_ACEOF | |
36179 | /* end confdefs.h. */ | |
36180 | ||
36181 | #include <stdio.h> | |
36182 | #include <stdarg.h> | |
36183 | #ifdef __MSL__ | |
36184 | #if __MSL__ >= 0x6000 | |
36185 | namespace std {} | |
36186 | using namespace std; | |
36187 | #endif | |
36188 | #endif | |
36189 | ||
36190 | int | |
36191 | main () | |
36192 | { | |
36193 | ||
36194 | char *buf; | |
62fa8b3a | 36195 | snprintf(buf, 10u, "%s", "wx"); |
4a767dd5 VZ |
36196 | |
36197 | ; | |
36198 | return 0; | |
36199 | } | |
36200 | _ACEOF | |
36201 | rm -f conftest.$ac_objext | |
47964710 VS |
36202 | if { (ac_try="$ac_compile" |
36203 | case "(($ac_try" in | |
36204 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
36205 | *) ac_try_echo=$ac_try;; | |
36206 | esac | |
d589327a | 36207 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 36208 | (eval "$ac_compile") 2>conftest.er1 |
4a767dd5 VZ |
36209 | ac_status=$? |
36210 | grep -v '^ *+' conftest.er1 >conftest.err | |
36211 | rm -f conftest.er1 | |
36212 | cat conftest.err >&5 | |
d589327a | 36213 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 | 36214 | (exit $ac_status); } && { |
5cfbef2a | 36215 | test -z "$ac_cxx_werror_flag" || |
47964710 VS |
36216 | test ! -s conftest.err |
36217 | } && test -s conftest.$ac_objext; then | |
4a767dd5 VZ |
36218 | wx_cv_func_snprintf_decl=yes |
36219 | else | |
d589327a | 36220 | echo "$as_me: failed program was:" >&5 |
4a767dd5 VZ |
36221 | sed 's/^/| /' conftest.$ac_ext >&5 |
36222 | ||
47964710 | 36223 | wx_cv_func_snprintf_decl=no |
4a767dd5 VZ |
36224 | |
36225 | fi | |
47964710 VS |
36226 | |
36227 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4a767dd5 VZ |
36228 | |
36229 | ||
36230 | fi | |
d589327a VZ |
36231 | { echo "$as_me:$LINENO: result: $wx_cv_func_snprintf_decl" >&5 |
36232 | echo "${ECHO_T}$wx_cv_func_snprintf_decl" >&6; } | |
4a767dd5 VZ |
36233 | |
36234 | if test "$wx_cv_func_snprintf_decl" = "yes"; then | |
36235 | cat >>confdefs.h <<\_ACEOF | |
36236 | #define HAVE_SNPRINTF_DECL 1 | |
36237 | _ACEOF | |
36238 | ||
8b6682b9 JS |
36239 | fi |
36240 | ||
36241 | if test "$wxUSE_PRINTF_POS_PARAMS" = "yes"; then | |
36242 | ||
d589327a VZ |
36243 | { echo "$as_me:$LINENO: checking if snprintf supports positional arguments" >&5 |
36244 | echo $ECHO_N "checking if snprintf supports positional arguments... $ECHO_C" >&6; } | |
8b6682b9 | 36245 | if test "${wx_cv_func_snprintf_pos_params+set}" = set; then |
d589327a | 36246 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8b6682b9 JS |
36247 | else |
36248 | ||
36249 | if test "$cross_compiling" = yes; then | |
5039a2df | 36250 | |
d589327a | 36251 | { echo "$as_me:$LINENO: WARNING: Assuming Unix98 printf() is not available, |
5039a2df | 36252 | define HAVE_UNIX98_PRINTF as 1 in setup.h if it is available." >&5 |
d589327a | 36253 | echo "$as_me: WARNING: Assuming Unix98 printf() is not available, |
5039a2df VZ |
36254 | define HAVE_UNIX98_PRINTF as 1 in setup.h if it is available." >&2;} |
36255 | wx_cv_func_snprintf_pos_params=no | |
36256 | ||
36257 | ||
8b6682b9 JS |
36258 | else |
36259 | cat >conftest.$ac_ext <<_ACEOF | |
36260 | /* confdefs.h. */ | |
36261 | _ACEOF | |
36262 | cat confdefs.h >>conftest.$ac_ext | |
36263 | cat >>conftest.$ac_ext <<_ACEOF | |
36264 | /* end confdefs.h. */ | |
36265 | ||
36266 | #include <stdio.h> | |
36267 | ||
36268 | int main (void) | |
36269 | { | |
36270 | char buffer[128]; | |
f321ab7f | 36271 | snprintf (buffer, 128, "%2$d %3$d %1$d", 1, 2, 3); |
8b6682b9 JS |
36272 | if (strcmp ("2 3 1", buffer) == 0) |
36273 | exit (0); | |
36274 | exit (1); | |
36275 | } | |
36276 | ||
36277 | _ACEOF | |
36278 | rm -f conftest$ac_exeext | |
47964710 VS |
36279 | if { (ac_try="$ac_link" |
36280 | case "(($ac_try" in | |
36281 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
36282 | *) ac_try_echo=$ac_try;; | |
36283 | esac | |
d589327a | 36284 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 36285 | (eval "$ac_link") 2>&5 |
8b6682b9 | 36286 | ac_status=$? |
d589327a | 36287 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8b6682b9 | 36288 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
47964710 VS |
36289 | { (case "(($ac_try" in |
36290 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
36291 | *) ac_try_echo=$ac_try;; | |
36292 | esac | |
d589327a | 36293 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 36294 | (eval "$ac_try") 2>&5 |
8b6682b9 | 36295 | ac_status=$? |
d589327a | 36296 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8b6682b9 JS |
36297 | (exit $ac_status); }; }; then |
36298 | wx_cv_func_snprintf_pos_params=no | |
36299 | else | |
d589327a VZ |
36300 | echo "$as_me: program exited with status $ac_status" >&5 |
36301 | echo "$as_me: failed program was:" >&5 | |
8b6682b9 JS |
36302 | sed 's/^/| /' conftest.$ac_ext >&5 |
36303 | ||
36304 | ( exit $ac_status ) | |
36305 | wx_cv_func_snprintf_pos_params=yes | |
8b6682b9 | 36306 | fi |
47964710 | 36307 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
8b6682b9 JS |
36308 | fi |
36309 | ||
36310 | ||
47964710 VS |
36311 | |
36312 | ||
8b6682b9 | 36313 | fi |
d589327a VZ |
36314 | { echo "$as_me:$LINENO: result: $wx_cv_func_snprintf_pos_params" >&5 |
36315 | echo "${ECHO_T}$wx_cv_func_snprintf_pos_params" >&6; } | |
8b6682b9 JS |
36316 | |
36317 | if test "$wx_cv_func_snprintf_pos_params" = "yes"; then | |
36318 | cat >>confdefs.h <<\_ACEOF | |
36319 | #define HAVE_UNIX98_PRINTF 1 | |
62fa8b3a MW |
36320 | _ACEOF |
36321 | ||
36322 | fi | |
4a767dd5 VZ |
36323 | fi |
36324 | fi | |
36325 | ||
d7bf6c20 | 36326 | if test "$ac_cv_func_vsscanf" = "yes"; then |
d589327a VZ |
36327 | { echo "$as_me:$LINENO: checking for vsscanf declaration" >&5 |
36328 | echo $ECHO_N "checking for vsscanf declaration... $ECHO_C" >&6; } | |
d7bf6c20 | 36329 | if test "${wx_cv_func_vsscanf_decl+set}" = set; then |
d589327a | 36330 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
d7bf6c20 VZ |
36331 | else |
36332 | ||
36333 | cat >conftest.$ac_ext <<_ACEOF | |
36334 | /* confdefs.h. */ | |
36335 | _ACEOF | |
36336 | cat confdefs.h >>conftest.$ac_ext | |
36337 | cat >>conftest.$ac_ext <<_ACEOF | |
36338 | /* end confdefs.h. */ | |
36339 | ||
36340 | #include <stdio.h> | |
36341 | #include <stdarg.h> | |
36342 | #ifdef __MSL__ | |
36343 | #if __MSL__ >= 0x6000 | |
36344 | namespace std {} | |
36345 | using namespace std; | |
36346 | #endif | |
36347 | #endif | |
36348 | ||
36349 | int | |
36350 | main () | |
36351 | { | |
36352 | ||
efce184b VZ |
36353 | char *buf; |
36354 | va_list args; | |
36355 | vsscanf(buf, "%s", args); | |
d7bf6c20 VZ |
36356 | |
36357 | ; | |
36358 | return 0; | |
36359 | } | |
36360 | _ACEOF | |
36361 | rm -f conftest.$ac_objext | |
36362 | if { (ac_try="$ac_compile" | |
36363 | case "(($ac_try" in | |
36364 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
36365 | *) ac_try_echo=$ac_try;; | |
36366 | esac | |
d589327a | 36367 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
d7bf6c20 VZ |
36368 | (eval "$ac_compile") 2>conftest.er1 |
36369 | ac_status=$? | |
36370 | grep -v '^ *+' conftest.er1 >conftest.err | |
36371 | rm -f conftest.er1 | |
36372 | cat conftest.err >&5 | |
d589327a | 36373 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d7bf6c20 | 36374 | (exit $ac_status); } && { |
5cfbef2a | 36375 | test -z "$ac_cxx_werror_flag" || |
d7bf6c20 VZ |
36376 | test ! -s conftest.err |
36377 | } && test -s conftest.$ac_objext; then | |
36378 | wx_cv_func_vsscanf_decl=yes | |
36379 | else | |
d589327a | 36380 | echo "$as_me: failed program was:" >&5 |
d7bf6c20 VZ |
36381 | sed 's/^/| /' conftest.$ac_ext >&5 |
36382 | ||
36383 | wx_cv_func_vsscanf_decl=no | |
36384 | ||
36385 | fi | |
36386 | ||
36387 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
36388 | ||
36389 | ||
36390 | fi | |
d589327a VZ |
36391 | { echo "$as_me:$LINENO: result: $wx_cv_func_vsscanf_decl" >&5 |
36392 | echo "${ECHO_T}$wx_cv_func_vsscanf_decl" >&6; } | |
d7bf6c20 VZ |
36393 | |
36394 | if test "$wx_cv_func_vsscanf_decl" = "yes"; then | |
36395 | cat >>confdefs.h <<\_ACEOF | |
36396 | #define HAVE_VSSCANF_DECL 1 | |
36397 | _ACEOF | |
36398 | ||
36399 | fi | |
36400 | fi | |
5cfbef2a | 36401 | ac_ext=c |
e203535f SN |
36402 | ac_cpp='$CPP $CPPFLAGS' |
36403 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
36404 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
36405 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
36406 | ||
d7bf6c20 | 36407 | |
a848cd7e SC |
36408 | if test "$wxUSE_UNICODE" = yes; then |
36409 | ||
a49ffb32 VZ |
36410 | wchar_headers="#include <stdio.h> |
36411 | #include <wchar.h>" | |
36412 | case "${host}" in | |
36413 | *-*-solaris2* ) | |
be2ad872 PC |
36414 | |
36415 | for ac_header in widec.h | |
36416 | do | |
d589327a VZ |
36417 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
36418 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
36419 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
47964710 | 36420 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
d589327a | 36421 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a49ffb32 | 36422 | else |
6e7b8bcb | 36423 | cat >conftest.$ac_ext <<_ACEOF |
a49ffb32 VZ |
36424 | /* confdefs.h. */ |
36425 | _ACEOF | |
36426 | cat confdefs.h >>conftest.$ac_ext | |
36427 | cat >>conftest.$ac_ext <<_ACEOF | |
36428 | /* end confdefs.h. */ | |
36429 | $ac_includes_default | |
6e7b8bcb | 36430 | |
be2ad872 | 36431 | #include <$ac_header> |
a49ffb32 VZ |
36432 | _ACEOF |
36433 | rm -f conftest.$ac_objext | |
47964710 VS |
36434 | if { (ac_try="$ac_compile" |
36435 | case "(($ac_try" in | |
36436 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
36437 | *) ac_try_echo=$ac_try;; | |
36438 | esac | |
d589327a | 36439 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 36440 | (eval "$ac_compile") 2>conftest.er1 |
a49ffb32 VZ |
36441 | ac_status=$? |
36442 | grep -v '^ *+' conftest.er1 >conftest.err | |
36443 | rm -f conftest.er1 | |
36444 | cat conftest.err >&5 | |
d589327a | 36445 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
36446 | (exit $ac_status); } && { |
36447 | test -z "$ac_c_werror_flag" || | |
36448 | test ! -s conftest.err | |
36449 | } && test -s conftest.$ac_objext; then | |
be2ad872 | 36450 | eval "$as_ac_Header=yes" |
a49ffb32 | 36451 | else |
d589327a | 36452 | echo "$as_me: failed program was:" >&5 |
a49ffb32 VZ |
36453 | sed 's/^/| /' conftest.$ac_ext >&5 |
36454 | ||
47964710 | 36455 | eval "$as_ac_Header=no" |
a49ffb32 | 36456 | fi |
47964710 VS |
36457 | |
36458 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
a49ffb32 | 36459 | fi |
d589327a VZ |
36460 | ac_res=`eval echo '${'$as_ac_Header'}'` |
36461 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
36462 | echo "${ECHO_T}$ac_res" >&6; } | |
36463 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
be2ad872 | 36464 | cat >>confdefs.h <<_ACEOF |
d589327a | 36465 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
be2ad872 | 36466 | _ACEOF |
7fd3acaf | 36467 | |
be2ad872 PC |
36468 | fi |
36469 | ||
36470 | done | |
a49ffb32 VZ |
36471 | |
36472 | if test "$ac_cv_header_widec_h" = "yes"; then | |
36473 | wchar_headers="$wchar_headers | |
36474 | #include <widec.h>" | |
36475 | fi | |
36476 | esac | |
36477 | ||
6a5c9b3f | 36478 | |
ccd96bfe | 36479 | for wx_func in putws fputws wprintf vswprintf vswscanf |
fd5199d6 | 36480 | do |
d589327a VZ |
36481 | { echo "$as_me:$LINENO: checking for $wx_func" >&5 |
36482 | echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; } | |
47964710 | 36483 | if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then |
d589327a | 36484 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a848cd7e | 36485 | else |
fd5199d6 VZ |
36486 | |
36487 | cat >conftest.$ac_ext <<_ACEOF | |
36488 | ||
36489 | /* confdefs.h. */ | |
a848cd7e SC |
36490 | _ACEOF |
36491 | cat confdefs.h >>conftest.$ac_ext | |
36492 | cat >>conftest.$ac_ext <<_ACEOF | |
36493 | /* end confdefs.h. */ | |
ac1cb8d3 | 36494 | |
a49ffb32 | 36495 | $wchar_headers |
fd5199d6 | 36496 | $ac_includes_default |
a848cd7e SC |
36497 | |
36498 | int | |
36499 | main () | |
36500 | { | |
fd5199d6 VZ |
36501 | |
36502 | #ifndef $wx_func | |
36503 | &$wx_func; | |
36504 | #endif | |
36505 | ||
36506 | ||
a848cd7e SC |
36507 | ; |
36508 | return 0; | |
36509 | } | |
fd5199d6 | 36510 | |
a848cd7e SC |
36511 | _ACEOF |
36512 | rm -f conftest.$ac_objext conftest$ac_exeext | |
47964710 VS |
36513 | if { (ac_try="$ac_link" |
36514 | case "(($ac_try" in | |
36515 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
36516 | *) ac_try_echo=$ac_try;; | |
36517 | esac | |
d589327a | 36518 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 36519 | (eval "$ac_link") 2>conftest.er1 |
a848cd7e | 36520 | ac_status=$? |
ac1cb8d3 VS |
36521 | grep -v '^ *+' conftest.er1 >conftest.err |
36522 | rm -f conftest.er1 | |
36523 | cat conftest.err >&5 | |
d589327a | 36524 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
36525 | (exit $ac_status); } && { |
36526 | test -z "$ac_c_werror_flag" || | |
36527 | test ! -s conftest.err | |
d589327a VZ |
36528 | } && test -s conftest$ac_exeext && |
36529 | $as_test_x conftest$ac_exeext; then | |
fd5199d6 | 36530 | eval wx_cv_func_$wx_func=yes |
a848cd7e | 36531 | else |
d589327a | 36532 | echo "$as_me: failed program was:" >&5 |
a848cd7e SC |
36533 | sed 's/^/| /' conftest.$ac_ext >&5 |
36534 | ||
47964710 | 36535 | eval wx_cv_func_$wx_func=no |
a848cd7e | 36536 | fi |
47964710 VS |
36537 | |
36538 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
ac1cb8d3 | 36539 | conftest$ac_exeext conftest.$ac_ext |
fd5199d6 | 36540 | |
a848cd7e | 36541 | fi |
d589327a VZ |
36542 | ac_res=`eval echo '${'wx_cv_func_$wx_func'}'` |
36543 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
36544 | echo "${ECHO_T}$ac_res" >&6; } | |
fd5199d6 VZ |
36545 | |
36546 | if eval test \$wx_cv_func_$wx_func = yes | |
36547 | then | |
36548 | cat >>confdefs.h <<_ACEOF | |
d589327a | 36549 | #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1 |
a848cd7e SC |
36550 | _ACEOF |
36551 | ||
fd5199d6 VZ |
36552 | |
36553 | else | |
36554 | : | |
36555 | ||
36556 | fi | |
36557 | done | |
a848cd7e SC |
36558 | |
36559 | ||
d589327a VZ |
36560 | { echo "$as_me:$LINENO: checking for _vsnwprintf" >&5 |
36561 | echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6; } | |
a848cd7e SC |
36562 | cat >conftest.$ac_ext <<_ACEOF |
36563 | /* confdefs.h. */ | |
36564 | _ACEOF | |
36565 | cat confdefs.h >>conftest.$ac_ext | |
36566 | cat >>conftest.$ac_ext <<_ACEOF | |
36567 | /* end confdefs.h. */ | |
36568 | #include <wchar.h> | |
36569 | int | |
36570 | main () | |
36571 | { | |
36572 | &_vsnwprintf; | |
36573 | ; | |
36574 | return 0; | |
36575 | } | |
36576 | _ACEOF | |
36577 | rm -f conftest.$ac_objext | |
47964710 VS |
36578 | if { (ac_try="$ac_compile" |
36579 | case "(($ac_try" in | |
36580 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
36581 | *) ac_try_echo=$ac_try;; | |
36582 | esac | |
d589327a | 36583 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 36584 | (eval "$ac_compile") 2>conftest.er1 |
a848cd7e | 36585 | ac_status=$? |
ac1cb8d3 VS |
36586 | grep -v '^ *+' conftest.er1 >conftest.err |
36587 | rm -f conftest.er1 | |
36588 | cat conftest.err >&5 | |
d589327a | 36589 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
36590 | (exit $ac_status); } && { |
36591 | test -z "$ac_c_werror_flag" || | |
36592 | test ! -s conftest.err | |
36593 | } && test -s conftest.$ac_objext; then | |
d589327a VZ |
36594 | { echo "$as_me:$LINENO: result: yes" >&5 |
36595 | echo "${ECHO_T}yes" >&6; } | |
a848cd7e SC |
36596 | cat >>confdefs.h <<\_ACEOF |
36597 | #define HAVE__VSNWPRINTF 1 | |
36598 | _ACEOF | |
36599 | ||
36600 | else | |
d589327a | 36601 | echo "$as_me: failed program was:" >&5 |
a848cd7e SC |
36602 | sed 's/^/| /' conftest.$ac_ext >&5 |
36603 | ||
d589327a VZ |
36604 | { echo "$as_me:$LINENO: result: no" >&5 |
36605 | echo "${ECHO_T}no" >&6; } | |
a848cd7e | 36606 | fi |
47964710 VS |
36607 | |
36608 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext; | |
a848cd7e SC |
36609 | fi |
36610 | ||
6ebeb4c7 VZ |
36611 | if test "$wxUSE_FILE" = "yes"; then |
36612 | ||
fd5199d6 VZ |
36613 | for wx_func in fsync |
36614 | do | |
d589327a VZ |
36615 | { echo "$as_me:$LINENO: checking for $wx_func" >&5 |
36616 | echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; } | |
47964710 | 36617 | if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then |
d589327a | 36618 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6ebeb4c7 | 36619 | else |
fd5199d6 VZ |
36620 | |
36621 | cat >conftest.$ac_ext <<_ACEOF | |
36622 | ||
36623 | /* confdefs.h. */ | |
6ebeb4c7 VZ |
36624 | _ACEOF |
36625 | cat confdefs.h >>conftest.$ac_ext | |
36626 | cat >>conftest.$ac_ext <<_ACEOF | |
36627 | /* end confdefs.h. */ | |
6ebeb4c7 | 36628 | |
6ebeb4c7 | 36629 | |
fd5199d6 | 36630 | $ac_includes_default |
6ebeb4c7 VZ |
36631 | |
36632 | int | |
36633 | main () | |
36634 | { | |
fd5199d6 VZ |
36635 | |
36636 | #ifndef $wx_func | |
36637 | &$wx_func; | |
36638 | #endif | |
36639 | ||
36640 | ||
6ebeb4c7 VZ |
36641 | ; |
36642 | return 0; | |
36643 | } | |
fd5199d6 | 36644 | |
6ebeb4c7 VZ |
36645 | _ACEOF |
36646 | rm -f conftest.$ac_objext conftest$ac_exeext | |
47964710 VS |
36647 | if { (ac_try="$ac_link" |
36648 | case "(($ac_try" in | |
36649 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
36650 | *) ac_try_echo=$ac_try;; | |
36651 | esac | |
d589327a | 36652 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 36653 | (eval "$ac_link") 2>conftest.er1 |
6ebeb4c7 VZ |
36654 | ac_status=$? |
36655 | grep -v '^ *+' conftest.er1 >conftest.err | |
36656 | rm -f conftest.er1 | |
36657 | cat conftest.err >&5 | |
d589327a | 36658 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
36659 | (exit $ac_status); } && { |
36660 | test -z "$ac_c_werror_flag" || | |
36661 | test ! -s conftest.err | |
d589327a VZ |
36662 | } && test -s conftest$ac_exeext && |
36663 | $as_test_x conftest$ac_exeext; then | |
fd5199d6 | 36664 | eval wx_cv_func_$wx_func=yes |
6ebeb4c7 | 36665 | else |
d589327a | 36666 | echo "$as_me: failed program was:" >&5 |
6ebeb4c7 VZ |
36667 | sed 's/^/| /' conftest.$ac_ext >&5 |
36668 | ||
47964710 | 36669 | eval wx_cv_func_$wx_func=no |
6ebeb4c7 | 36670 | fi |
47964710 VS |
36671 | |
36672 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
6ebeb4c7 | 36673 | conftest$ac_exeext conftest.$ac_ext |
fd5199d6 | 36674 | |
6ebeb4c7 | 36675 | fi |
d589327a VZ |
36676 | ac_res=`eval echo '${'wx_cv_func_$wx_func'}'` |
36677 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
36678 | echo "${ECHO_T}$ac_res" >&6; } | |
fd5199d6 VZ |
36679 | |
36680 | if eval test \$wx_cv_func_$wx_func = yes | |
36681 | then | |
36682 | cat >>confdefs.h <<_ACEOF | |
d589327a | 36683 | #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1 |
6ebeb4c7 VZ |
36684 | _ACEOF |
36685 | ||
fd5199d6 VZ |
36686 | |
36687 | else | |
36688 | : | |
36689 | ||
36690 | fi | |
36691 | done | |
6ebeb4c7 VZ |
36692 | |
36693 | fi | |
a848cd7e | 36694 | |
47964710 | 36695 | ac_ext=cpp |
371bc2f7 VZ |
36696 | ac_cpp='$CXXCPP $CPPFLAGS' |
36697 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
36698 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
36699 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
36700 | ||
a848cd7e | 36701 | |
fd5199d6 VZ |
36702 | for wx_func in round |
36703 | do | |
d589327a VZ |
36704 | { echo "$as_me:$LINENO: checking for $wx_func" >&5 |
36705 | echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; } | |
47964710 | 36706 | if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then |
d589327a | 36707 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
c2e9ada4 | 36708 | else |
fd5199d6 VZ |
36709 | |
36710 | cat >conftest.$ac_ext <<_ACEOF | |
36711 | ||
36712 | /* confdefs.h. */ | |
c2e9ada4 VZ |
36713 | _ACEOF |
36714 | cat confdefs.h >>conftest.$ac_ext | |
36715 | cat >>conftest.$ac_ext <<_ACEOF | |
36716 | /* end confdefs.h. */ | |
c2e9ada4 | 36717 | |
fd5199d6 VZ |
36718 | #include <math.h> |
36719 | $ac_includes_default | |
c2e9ada4 VZ |
36720 | |
36721 | int | |
36722 | main () | |
36723 | { | |
fd5199d6 VZ |
36724 | |
36725 | #ifndef $wx_func | |
36726 | &$wx_func; | |
36727 | #endif | |
36728 | ||
36729 | ||
c2e9ada4 VZ |
36730 | ; |
36731 | return 0; | |
36732 | } | |
fd5199d6 | 36733 | |
c2e9ada4 VZ |
36734 | _ACEOF |
36735 | rm -f conftest.$ac_objext conftest$ac_exeext | |
47964710 VS |
36736 | if { (ac_try="$ac_link" |
36737 | case "(($ac_try" in | |
36738 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
36739 | *) ac_try_echo=$ac_try;; | |
36740 | esac | |
d589327a | 36741 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 36742 | (eval "$ac_link") 2>conftest.er1 |
c2e9ada4 VZ |
36743 | ac_status=$? |
36744 | grep -v '^ *+' conftest.er1 >conftest.err | |
36745 | rm -f conftest.er1 | |
36746 | cat conftest.err >&5 | |
d589327a | 36747 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
36748 | (exit $ac_status); } && { |
36749 | test -z "$ac_cxx_werror_flag" || | |
36750 | test ! -s conftest.err | |
d589327a VZ |
36751 | } && test -s conftest$ac_exeext && |
36752 | $as_test_x conftest$ac_exeext; then | |
fd5199d6 | 36753 | eval wx_cv_func_$wx_func=yes |
c2e9ada4 | 36754 | else |
d589327a | 36755 | echo "$as_me: failed program was:" >&5 |
c2e9ada4 VZ |
36756 | sed 's/^/| /' conftest.$ac_ext >&5 |
36757 | ||
47964710 | 36758 | eval wx_cv_func_$wx_func=no |
c2e9ada4 | 36759 | fi |
47964710 VS |
36760 | |
36761 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
c2e9ada4 | 36762 | conftest$ac_exeext conftest.$ac_ext |
c2e9ada4 | 36763 | |
c2e9ada4 | 36764 | fi |
d589327a VZ |
36765 | ac_res=`eval echo '${'wx_cv_func_$wx_func'}'` |
36766 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
36767 | echo "${ECHO_T}$ac_res" >&6; } | |
c2e9ada4 | 36768 | |
fd5199d6 VZ |
36769 | if eval test \$wx_cv_func_$wx_func = yes |
36770 | then | |
36771 | cat >>confdefs.h <<_ACEOF | |
d589327a | 36772 | #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1 |
c2e9ada4 VZ |
36773 | _ACEOF |
36774 | ||
36775 | ||
fd5199d6 VZ |
36776 | else |
36777 | : | |
c2e9ada4 | 36778 | |
fd5199d6 VZ |
36779 | fi |
36780 | done | |
c2e9ada4 | 36781 | |
371bc2f7 VZ |
36782 | ac_ext=c |
36783 | ac_cpp='$CPP $CPPFLAGS' | |
36784 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
36785 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
36786 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
36787 | ||
c2e9ada4 | 36788 | |
a848cd7e SC |
36789 | if test "$TOOLKIT" != "MSW"; then |
36790 | ||
e9efd9f1 | 36791 | if test "$wxUSE_LIBICONV" != "no" ; then |
a848cd7e SC |
36792 | |
36793 | ||
36794 | ||
47964710 | 36795 | # Check whether --with-libiconv-prefix was given. |
a848cd7e | 36796 | if test "${with_libiconv_prefix+set}" = set; then |
47964710 | 36797 | withval=$with_libiconv_prefix; |
a848cd7e SC |
36798 | for dir in `echo "$withval" | tr : ' '`; do |
36799 | if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi | |
36800 | if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi | |
36801 | done | |
36802 | ||
47964710 | 36803 | fi |
faa5c14f | 36804 | |
47964710 | 36805 | |
d589327a VZ |
36806 | { echo "$as_me:$LINENO: checking for iconv" >&5 |
36807 | echo $ECHO_N "checking for iconv... $ECHO_C" >&6; } | |
a848cd7e | 36808 | if test "${am_cv_func_iconv+set}" = set; then |
d589327a | 36809 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a848cd7e SC |
36810 | else |
36811 | ||
36812 | am_cv_func_iconv="no, consider installing GNU libiconv" | |
36813 | am_cv_lib_iconv=no | |
36814 | cat >conftest.$ac_ext <<_ACEOF | |
36815 | /* confdefs.h. */ | |
36816 | _ACEOF | |
36817 | cat confdefs.h >>conftest.$ac_ext | |
36818 | cat >>conftest.$ac_ext <<_ACEOF | |
36819 | /* end confdefs.h. */ | |
36820 | #include <stdlib.h> | |
36821 | #include <iconv.h> | |
36822 | int | |
36823 | main () | |
36824 | { | |
36825 | iconv_t cd = iconv_open("",""); | |
36826 | iconv(cd,NULL,NULL,NULL,NULL); | |
36827 | iconv_close(cd); | |
36828 | ; | |
36829 | return 0; | |
36830 | } | |
36831 | _ACEOF | |
36832 | rm -f conftest.$ac_objext conftest$ac_exeext | |
47964710 VS |
36833 | if { (ac_try="$ac_link" |
36834 | case "(($ac_try" in | |
36835 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
36836 | *) ac_try_echo=$ac_try;; | |
36837 | esac | |
d589327a | 36838 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 36839 | (eval "$ac_link") 2>conftest.er1 |
a848cd7e | 36840 | ac_status=$? |
ac1cb8d3 VS |
36841 | grep -v '^ *+' conftest.er1 >conftest.err |
36842 | rm -f conftest.er1 | |
36843 | cat conftest.err >&5 | |
d589327a | 36844 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
36845 | (exit $ac_status); } && { |
36846 | test -z "$ac_c_werror_flag" || | |
36847 | test ! -s conftest.err | |
d589327a VZ |
36848 | } && test -s conftest$ac_exeext && |
36849 | $as_test_x conftest$ac_exeext; then | |
a848cd7e SC |
36850 | am_cv_func_iconv=yes |
36851 | else | |
d589327a | 36852 | echo "$as_me: failed program was:" >&5 |
a848cd7e SC |
36853 | sed 's/^/| /' conftest.$ac_ext >&5 |
36854 | ||
47964710 | 36855 | |
a848cd7e | 36856 | fi |
47964710 VS |
36857 | |
36858 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
ac1cb8d3 | 36859 | conftest$ac_exeext conftest.$ac_ext |
a848cd7e SC |
36860 | if test "$am_cv_func_iconv" != yes; then |
36861 | am_save_LIBS="$LIBS" | |
36862 | LIBS="$LIBS -liconv" | |
36863 | cat >conftest.$ac_ext <<_ACEOF | |
36864 | /* confdefs.h. */ | |
36865 | _ACEOF | |
36866 | cat confdefs.h >>conftest.$ac_ext | |
36867 | cat >>conftest.$ac_ext <<_ACEOF | |
36868 | /* end confdefs.h. */ | |
36869 | #include <stdlib.h> | |
36870 | #include <iconv.h> | |
36871 | int | |
36872 | main () | |
36873 | { | |
36874 | iconv_t cd = iconv_open("",""); | |
36875 | iconv(cd,NULL,NULL,NULL,NULL); | |
36876 | iconv_close(cd); | |
36877 | ; | |
36878 | return 0; | |
36879 | } | |
36880 | _ACEOF | |
36881 | rm -f conftest.$ac_objext conftest$ac_exeext | |
47964710 VS |
36882 | if { (ac_try="$ac_link" |
36883 | case "(($ac_try" in | |
36884 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
36885 | *) ac_try_echo=$ac_try;; | |
36886 | esac | |
d589327a | 36887 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 36888 | (eval "$ac_link") 2>conftest.er1 |
a848cd7e | 36889 | ac_status=$? |
ac1cb8d3 VS |
36890 | grep -v '^ *+' conftest.er1 >conftest.err |
36891 | rm -f conftest.er1 | |
36892 | cat conftest.err >&5 | |
d589327a | 36893 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
36894 | (exit $ac_status); } && { |
36895 | test -z "$ac_c_werror_flag" || | |
36896 | test ! -s conftest.err | |
d589327a VZ |
36897 | } && test -s conftest$ac_exeext && |
36898 | $as_test_x conftest$ac_exeext; then | |
a848cd7e SC |
36899 | am_cv_lib_iconv=yes |
36900 | am_cv_func_iconv=yes | |
36901 | else | |
d589327a | 36902 | echo "$as_me: failed program was:" >&5 |
a848cd7e SC |
36903 | sed 's/^/| /' conftest.$ac_ext >&5 |
36904 | ||
47964710 | 36905 | |
a848cd7e | 36906 | fi |
47964710 VS |
36907 | |
36908 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
ac1cb8d3 | 36909 | conftest$ac_exeext conftest.$ac_ext |
a848cd7e SC |
36910 | LIBS="$am_save_LIBS" |
36911 | fi | |
36912 | ||
36913 | fi | |
d589327a VZ |
36914 | { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5 |
36915 | echo "${ECHO_T}$am_cv_func_iconv" >&6; } | |
a848cd7e SC |
36916 | if test "$am_cv_func_iconv" = yes; then |
36917 | ||
36918 | cat >>confdefs.h <<\_ACEOF | |
36919 | #define HAVE_ICONV 1 | |
36920 | _ACEOF | |
36921 | ||
d589327a VZ |
36922 | { echo "$as_me:$LINENO: checking if iconv needs const" >&5 |
36923 | echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6; } | |
a848cd7e | 36924 | if test "${wx_cv_func_iconv_const+set}" = set; then |
d589327a | 36925 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a848cd7e SC |
36926 | else |
36927 | cat >conftest.$ac_ext <<_ACEOF | |
36928 | /* confdefs.h. */ | |
36929 | _ACEOF | |
36930 | cat confdefs.h >>conftest.$ac_ext | |
36931 | cat >>conftest.$ac_ext <<_ACEOF | |
36932 | /* end confdefs.h. */ | |
36933 | ||
36934 | #include <stdlib.h> | |
36935 | #include <iconv.h> | |
36936 | extern | |
36937 | #ifdef __cplusplus | |
36938 | "C" | |
36939 | #endif | |
36940 | #if defined(__STDC__) || defined(__cplusplus) | |
36941 | size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); | |
36942 | #else | |
36943 | size_t iconv(); | |
36944 | #endif | |
36945 | ||
36946 | int | |
36947 | main () | |
36948 | { | |
36949 | ||
36950 | ; | |
36951 | return 0; | |
36952 | } | |
36953 | _ACEOF | |
36954 | rm -f conftest.$ac_objext | |
47964710 VS |
36955 | if { (ac_try="$ac_compile" |
36956 | case "(($ac_try" in | |
36957 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
36958 | *) ac_try_echo=$ac_try;; | |
36959 | esac | |
d589327a | 36960 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 36961 | (eval "$ac_compile") 2>conftest.er1 |
a848cd7e | 36962 | ac_status=$? |
ac1cb8d3 VS |
36963 | grep -v '^ *+' conftest.er1 >conftest.err |
36964 | rm -f conftest.er1 | |
36965 | cat conftest.err >&5 | |
d589327a | 36966 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
36967 | (exit $ac_status); } && { |
36968 | test -z "$ac_c_werror_flag" || | |
36969 | test ! -s conftest.err | |
36970 | } && test -s conftest.$ac_objext; then | |
a848cd7e SC |
36971 | wx_cv_func_iconv_const="no" |
36972 | else | |
d589327a | 36973 | echo "$as_me: failed program was:" >&5 |
a848cd7e SC |
36974 | sed 's/^/| /' conftest.$ac_ext >&5 |
36975 | ||
47964710 | 36976 | wx_cv_func_iconv_const="yes" |
a848cd7e SC |
36977 | |
36978 | fi | |
47964710 VS |
36979 | |
36980 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
a848cd7e SC |
36981 | |
36982 | fi | |
d589327a VZ |
36983 | { echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5 |
36984 | echo "${ECHO_T}$wx_cv_func_iconv_const" >&6; } | |
a848cd7e SC |
36985 | |
36986 | iconv_const= | |
36987 | if test "x$wx_cv_func_iconv_const" = "xyes"; then | |
36988 | iconv_const="const" | |
36989 | fi | |
36990 | ||
36991 | ||
36992 | cat >>confdefs.h <<_ACEOF | |
36993 | #define ICONV_CONST $iconv_const | |
36994 | _ACEOF | |
36995 | ||
36996 | fi | |
36997 | LIBICONV= | |
36998 | if test "$am_cv_lib_iconv" = yes; then | |
36999 | LIBICONV="-liconv" | |
37000 | fi | |
37001 | ||
37002 | ||
e9efd9f1 VZ |
37003 | LIBS="$LIBICONV $LIBS" |
37004 | fi | |
a848cd7e SC |
37005 | |
37006 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then | |
37007 | ||
37008 | for ac_func in sigaction | |
37009 | do | |
d589327a VZ |
37010 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
37011 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
37012 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
47964710 | 37013 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
d589327a | 37014 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a848cd7e SC |
37015 | else |
37016 | cat >conftest.$ac_ext <<_ACEOF | |
37017 | /* confdefs.h. */ | |
37018 | _ACEOF | |
37019 | cat confdefs.h >>conftest.$ac_ext | |
37020 | cat >>conftest.$ac_ext <<_ACEOF | |
37021 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
37022 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
37023 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
37024 | #define $ac_func innocuous_$ac_func | |
37025 | ||
a848cd7e SC |
37026 | /* System header to define __stub macros and hopefully few prototypes, |
37027 | which can conflict with char $ac_func (); below. | |
37028 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
37029 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 37030 | |
a848cd7e SC |
37031 | #ifdef __STDC__ |
37032 | # include <limits.h> | |
37033 | #else | |
37034 | # include <assert.h> | |
37035 | #endif | |
ac1cb8d3 VS |
37036 | |
37037 | #undef $ac_func | |
37038 | ||
47964710 VS |
37039 | /* Override any GCC internal prototype to avoid an error. |
37040 | Use char because int might match the return type of a GCC | |
37041 | builtin and then its argument prototype would still apply. */ | |
a848cd7e SC |
37042 | #ifdef __cplusplus |
37043 | extern "C" | |
a848cd7e | 37044 | #endif |
a848cd7e SC |
37045 | char $ac_func (); |
37046 | /* The GNU C library defines this for functions which it implements | |
37047 | to always fail with ENOSYS. Some functions are actually named | |
37048 | something starting with __ and the normal name is an alias. */ | |
47964710 | 37049 | #if defined __stub_$ac_func || defined __stub___$ac_func |
a848cd7e | 37050 | choke me |
a848cd7e SC |
37051 | #endif |
37052 | ||
37053 | int | |
37054 | main () | |
37055 | { | |
47964710 | 37056 | return $ac_func (); |
a848cd7e SC |
37057 | ; |
37058 | return 0; | |
37059 | } | |
37060 | _ACEOF | |
37061 | rm -f conftest.$ac_objext conftest$ac_exeext | |
47964710 VS |
37062 | if { (ac_try="$ac_link" |
37063 | case "(($ac_try" in | |
37064 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
37065 | *) ac_try_echo=$ac_try;; | |
37066 | esac | |
d589327a | 37067 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 37068 | (eval "$ac_link") 2>conftest.er1 |
a848cd7e | 37069 | ac_status=$? |
ac1cb8d3 VS |
37070 | grep -v '^ *+' conftest.er1 >conftest.err |
37071 | rm -f conftest.er1 | |
37072 | cat conftest.err >&5 | |
d589327a | 37073 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
37074 | (exit $ac_status); } && { |
37075 | test -z "$ac_c_werror_flag" || | |
37076 | test ! -s conftest.err | |
d589327a VZ |
37077 | } && test -s conftest$ac_exeext && |
37078 | $as_test_x conftest$ac_exeext; then | |
a848cd7e SC |
37079 | eval "$as_ac_var=yes" |
37080 | else | |
d589327a | 37081 | echo "$as_me: failed program was:" >&5 |
a848cd7e SC |
37082 | sed 's/^/| /' conftest.$ac_ext >&5 |
37083 | ||
47964710 | 37084 | eval "$as_ac_var=no" |
a848cd7e | 37085 | fi |
47964710 VS |
37086 | |
37087 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
ac1cb8d3 | 37088 | conftest$ac_exeext conftest.$ac_ext |
a848cd7e | 37089 | fi |
d589327a VZ |
37090 | ac_res=`eval echo '${'$as_ac_var'}'` |
37091 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
37092 | echo "${ECHO_T}$ac_res" >&6; } | |
37093 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
a848cd7e | 37094 | cat >>confdefs.h <<_ACEOF |
d589327a | 37095 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
a848cd7e SC |
37096 | _ACEOF |
37097 | ||
37098 | fi | |
37099 | done | |
37100 | ||
37101 | ||
37102 | if test "$ac_cv_func_sigaction" = "no"; then | |
d589327a VZ |
37103 | { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5 |
37104 | echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;} | |
a848cd7e SC |
37105 | wxUSE_ON_FATAL_EXCEPTION=no |
37106 | fi | |
37107 | ||
37108 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then | |
d589327a VZ |
37109 | { echo "$as_me:$LINENO: checking for sa_handler type" >&5 |
37110 | echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6; } | |
a848cd7e | 37111 | if test "${wx_cv_type_sa_handler+set}" = set; then |
d589327a | 37112 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a848cd7e SC |
37113 | else |
37114 | ||
47964710 | 37115 | ac_ext=cpp |
9b8888f9 VZ |
37116 | ac_cpp='$CXXCPP $CPPFLAGS' |
37117 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
37118 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
37119 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
37120 | ||
a848cd7e SC |
37121 | cat >conftest.$ac_ext <<_ACEOF |
37122 | /* confdefs.h. */ | |
37123 | _ACEOF | |
37124 | cat confdefs.h >>conftest.$ac_ext | |
37125 | cat >>conftest.$ac_ext <<_ACEOF | |
37126 | /* end confdefs.h. */ | |
37127 | #include <signal.h> | |
37128 | int | |
37129 | main () | |
37130 | { | |
37131 | ||
37132 | extern void testSigHandler(int); | |
37133 | ||
37134 | struct sigaction sa; | |
37135 | sa.sa_handler = testSigHandler; | |
37136 | ||
37137 | ; | |
37138 | return 0; | |
37139 | } | |
37140 | _ACEOF | |
37141 | rm -f conftest.$ac_objext | |
47964710 VS |
37142 | if { (ac_try="$ac_compile" |
37143 | case "(($ac_try" in | |
37144 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
37145 | *) ac_try_echo=$ac_try;; | |
37146 | esac | |
d589327a | 37147 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 37148 | (eval "$ac_compile") 2>conftest.er1 |
a848cd7e | 37149 | ac_status=$? |
ac1cb8d3 VS |
37150 | grep -v '^ *+' conftest.er1 >conftest.err |
37151 | rm -f conftest.er1 | |
37152 | cat conftest.err >&5 | |
d589327a | 37153 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
37154 | (exit $ac_status); } && { |
37155 | test -z "$ac_cxx_werror_flag" || | |
37156 | test ! -s conftest.err | |
37157 | } && test -s conftest.$ac_objext; then | |
a848cd7e SC |
37158 | |
37159 | wx_cv_type_sa_handler=int | |
37160 | ||
37161 | else | |
d589327a | 37162 | echo "$as_me: failed program was:" >&5 |
a848cd7e SC |
37163 | sed 's/^/| /' conftest.$ac_ext >&5 |
37164 | ||
37165 | ||
37166 | wx_cv_type_sa_handler=void | |
37167 | ||
37168 | fi | |
47964710 VS |
37169 | |
37170 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
9b8888f9 VZ |
37171 | ac_ext=c |
37172 | ac_cpp='$CPP $CPPFLAGS' | |
37173 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
37174 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
37175 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
37176 | ||
a848cd7e SC |
37177 | |
37178 | fi | |
d589327a VZ |
37179 | { echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5 |
37180 | echo "${ECHO_T}$wx_cv_type_sa_handler" >&6; } | |
a848cd7e | 37181 | |
a848cd7e SC |
37182 | cat >>confdefs.h <<_ACEOF |
37183 | #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler | |
37184 | _ACEOF | |
37185 | ||
37186 | fi | |
37187 | fi | |
37188 | ||
eaff0f0d | 37189 | if test "$wxUSE_STACKWALKER" = "yes" -a "$wxUSE_UNIX" = "yes"; then |
a12bd55b VZ |
37190 | { echo "$as_me:$LINENO: checking for backtrace() in <execinfo.h>" >&5 |
37191 | echo $ECHO_N "checking for backtrace() in <execinfo.h>... $ECHO_C" >&6; } | |
37192 | if test "${wx_cv_func_backtrace+set}" = set; then | |
37193 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37194 | else | |
37195 | ||
37196 | ac_ext=cpp | |
9b8888f9 VZ |
37197 | ac_cpp='$CXXCPP $CPPFLAGS' |
37198 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
37199 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
37200 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
37201 | ||
a12bd55b | 37202 | cat >conftest.$ac_ext <<_ACEOF |
eaff0f0d VZ |
37203 | /* confdefs.h. */ |
37204 | _ACEOF | |
37205 | cat confdefs.h >>conftest.$ac_ext | |
37206 | cat >>conftest.$ac_ext <<_ACEOF | |
37207 | /* end confdefs.h. */ | |
37208 | #include <execinfo.h> | |
37209 | int | |
37210 | main () | |
37211 | { | |
37212 | ||
37213 | void *trace[1]; | |
37214 | char **messages; | |
a12bd55b | 37215 | |
eaff0f0d VZ |
37216 | backtrace(trace, 1); |
37217 | messages = backtrace_symbols(trace, 1); | |
37218 | ||
37219 | ; | |
37220 | return 0; | |
37221 | } | |
37222 | _ACEOF | |
a12bd55b VZ |
37223 | rm -f conftest.$ac_objext |
37224 | if { (ac_try="$ac_compile" | |
47964710 VS |
37225 | case "(($ac_try" in |
37226 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
37227 | *) ac_try_echo=$ac_try;; | |
37228 | esac | |
d589327a | 37229 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
a12bd55b | 37230 | (eval "$ac_compile") 2>conftest.er1 |
eaff0f0d VZ |
37231 | ac_status=$? |
37232 | grep -v '^ *+' conftest.er1 >conftest.err | |
37233 | rm -f conftest.er1 | |
37234 | cat conftest.err >&5 | |
d589327a | 37235 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
37236 | (exit $ac_status); } && { |
37237 | test -z "$ac_cxx_werror_flag" || | |
37238 | test ! -s conftest.err | |
a12bd55b | 37239 | } && test -s conftest.$ac_objext; then |
eaff0f0d VZ |
37240 | wx_cv_func_backtrace=yes |
37241 | else | |
d589327a | 37242 | echo "$as_me: failed program was:" >&5 |
eaff0f0d VZ |
37243 | sed 's/^/| /' conftest.$ac_ext >&5 |
37244 | ||
47964710 | 37245 | wx_cv_func_backtrace=no |
eaff0f0d VZ |
37246 | |
37247 | fi | |
47964710 | 37248 | |
a12bd55b VZ |
37249 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
37250 | ac_ext=c | |
37251 | ac_cpp='$CPP $CPPFLAGS' | |
37252 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
37253 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
37254 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
37255 | ||
37256 | ||
eaff0f0d VZ |
37257 | |
37258 | fi | |
d589327a VZ |
37259 | { echo "$as_me:$LINENO: result: $wx_cv_func_backtrace" >&5 |
37260 | echo "${ECHO_T}$wx_cv_func_backtrace" >&6; } | |
eaff0f0d VZ |
37261 | |
37262 | ||
37263 | if test "$wx_cv_func_backtrace" = "no"; then | |
d589327a VZ |
37264 | { echo "$as_me:$LINENO: WARNING: backtrace() is not available, wxStackWalker will not be available" >&5 |
37265 | echo "$as_me: WARNING: backtrace() is not available, wxStackWalker will not be available" >&2;} | |
eaff0f0d VZ |
37266 | wxUSE_STACKWALKER=no |
37267 | else | |
d589327a VZ |
37268 | { echo "$as_me:$LINENO: checking for __cxa_demangle() in <cxxabi.h>" >&5 |
37269 | echo $ECHO_N "checking for __cxa_demangle() in <cxxabi.h>... $ECHO_C" >&6; } | |
eaff0f0d | 37270 | if test "${wx_cv_func_cxa_demangle+set}" = set; then |
d589327a | 37271 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
eaff0f0d VZ |
37272 | else |
37273 | ||
a12bd55b VZ |
37274 | ac_ext=cpp |
37275 | ac_cpp='$CXXCPP $CPPFLAGS' | |
37276 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
37277 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
37278 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
37279 | ||
eaff0f0d VZ |
37280 | cat >conftest.$ac_ext <<_ACEOF |
37281 | /* confdefs.h. */ | |
37282 | _ACEOF | |
37283 | cat confdefs.h >>conftest.$ac_ext | |
37284 | cat >>conftest.$ac_ext <<_ACEOF | |
37285 | /* end confdefs.h. */ | |
37286 | #include <cxxabi.h> | |
37287 | int | |
37288 | main () | |
37289 | { | |
37290 | ||
37291 | int rc; | |
37292 | __cxxabiv1::__cxa_demangle("foo", 0, 0, &rc); | |
37293 | ||
37294 | ; | |
37295 | return 0; | |
37296 | } | |
37297 | _ACEOF | |
dfe0c803 | 37298 | rm -f conftest.$ac_objext conftest$ac_exeext |
47964710 VS |
37299 | if { (ac_try="$ac_link" |
37300 | case "(($ac_try" in | |
37301 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
37302 | *) ac_try_echo=$ac_try;; | |
37303 | esac | |
d589327a | 37304 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 37305 | (eval "$ac_link") 2>conftest.er1 |
eaff0f0d VZ |
37306 | ac_status=$? |
37307 | grep -v '^ *+' conftest.er1 >conftest.err | |
37308 | rm -f conftest.er1 | |
37309 | cat conftest.err >&5 | |
d589327a | 37310 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
37311 | (exit $ac_status); } && { |
37312 | test -z "$ac_cxx_werror_flag" || | |
37313 | test ! -s conftest.err | |
d589327a VZ |
37314 | } && test -s conftest$ac_exeext && |
37315 | $as_test_x conftest$ac_exeext; then | |
eaff0f0d VZ |
37316 | wx_cv_func_cxa_demangle=yes |
37317 | else | |
d589327a | 37318 | echo "$as_me: failed program was:" >&5 |
eaff0f0d VZ |
37319 | sed 's/^/| /' conftest.$ac_ext >&5 |
37320 | ||
47964710 | 37321 | wx_cv_func_cxa_demangle=no |
eaff0f0d VZ |
37322 | |
37323 | fi | |
47964710 VS |
37324 | |
37325 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
dfe0c803 | 37326 | conftest$ac_exeext conftest.$ac_ext |
a12bd55b VZ |
37327 | ac_ext=c |
37328 | ac_cpp='$CPP $CPPFLAGS' | |
37329 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
37330 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
37331 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
37332 | ||
eaff0f0d VZ |
37333 | |
37334 | ||
37335 | fi | |
d589327a VZ |
37336 | { echo "$as_me:$LINENO: result: $wx_cv_func_cxa_demangle" >&5 |
37337 | echo "${ECHO_T}$wx_cv_func_cxa_demangle" >&6; } | |
eaff0f0d VZ |
37338 | |
37339 | if test "$wx_cv_func_cxa_demangle" = "yes"; then | |
37340 | cat >>confdefs.h <<\_ACEOF | |
37341 | #define HAVE_CXA_DEMANGLE 1 | |
37342 | _ACEOF | |
37343 | ||
37344 | fi | |
37345 | fi | |
eaff0f0d VZ |
37346 | fi |
37347 | ||
6517fa86 | 37348 | if test "$wxUSE_STACKWALKER" = "yes" -a "$USE_WIN32" != 1 -a "$USE_UNIX" != 1; then |
d589327a VZ |
37349 | { echo "$as_me:$LINENO: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&5 |
37350 | echo "$as_me: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&2;} | |
898beab1 DE |
37351 | wxUSE_STACKWALKER=no |
37352 | fi | |
37353 | ||
37354 | ||
a848cd7e SC |
37355 | |
37356 | ||
37357 | for ac_func in mkstemp mktemp | |
37358 | do | |
d589327a VZ |
37359 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
37360 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
37361 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
47964710 | 37362 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
d589327a | 37363 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a848cd7e SC |
37364 | else |
37365 | cat >conftest.$ac_ext <<_ACEOF | |
37366 | /* confdefs.h. */ | |
37367 | _ACEOF | |
37368 | cat confdefs.h >>conftest.$ac_ext | |
37369 | cat >>conftest.$ac_ext <<_ACEOF | |
37370 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
37371 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
37372 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
37373 | #define $ac_func innocuous_$ac_func | |
37374 | ||
a848cd7e SC |
37375 | /* System header to define __stub macros and hopefully few prototypes, |
37376 | which can conflict with char $ac_func (); below. | |
37377 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
37378 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 37379 | |
a848cd7e SC |
37380 | #ifdef __STDC__ |
37381 | # include <limits.h> | |
37382 | #else | |
37383 | # include <assert.h> | |
37384 | #endif | |
ac1cb8d3 VS |
37385 | |
37386 | #undef $ac_func | |
37387 | ||
47964710 VS |
37388 | /* Override any GCC internal prototype to avoid an error. |
37389 | Use char because int might match the return type of a GCC | |
37390 | builtin and then its argument prototype would still apply. */ | |
a848cd7e SC |
37391 | #ifdef __cplusplus |
37392 | extern "C" | |
a848cd7e | 37393 | #endif |
a848cd7e SC |
37394 | char $ac_func (); |
37395 | /* The GNU C library defines this for functions which it implements | |
37396 | to always fail with ENOSYS. Some functions are actually named | |
37397 | something starting with __ and the normal name is an alias. */ | |
47964710 | 37398 | #if defined __stub_$ac_func || defined __stub___$ac_func |
a848cd7e | 37399 | choke me |
a848cd7e SC |
37400 | #endif |
37401 | ||
37402 | int | |
37403 | main () | |
37404 | { | |
47964710 | 37405 | return $ac_func (); |
a848cd7e SC |
37406 | ; |
37407 | return 0; | |
37408 | } | |
37409 | _ACEOF | |
37410 | rm -f conftest.$ac_objext conftest$ac_exeext | |
47964710 VS |
37411 | if { (ac_try="$ac_link" |
37412 | case "(($ac_try" in | |
37413 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
37414 | *) ac_try_echo=$ac_try;; | |
37415 | esac | |
d589327a | 37416 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 37417 | (eval "$ac_link") 2>conftest.er1 |
a848cd7e | 37418 | ac_status=$? |
ac1cb8d3 VS |
37419 | grep -v '^ *+' conftest.er1 >conftest.err |
37420 | rm -f conftest.er1 | |
37421 | cat conftest.err >&5 | |
d589327a | 37422 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
37423 | (exit $ac_status); } && { |
37424 | test -z "$ac_c_werror_flag" || | |
37425 | test ! -s conftest.err | |
d589327a VZ |
37426 | } && test -s conftest$ac_exeext && |
37427 | $as_test_x conftest$ac_exeext; then | |
a848cd7e SC |
37428 | eval "$as_ac_var=yes" |
37429 | else | |
d589327a | 37430 | echo "$as_me: failed program was:" >&5 |
a848cd7e SC |
37431 | sed 's/^/| /' conftest.$ac_ext >&5 |
37432 | ||
47964710 | 37433 | eval "$as_ac_var=no" |
a848cd7e | 37434 | fi |
47964710 VS |
37435 | |
37436 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
ac1cb8d3 | 37437 | conftest$ac_exeext conftest.$ac_ext |
a848cd7e | 37438 | fi |
d589327a VZ |
37439 | ac_res=`eval echo '${'$as_ac_var'}'` |
37440 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
37441 | echo "${ECHO_T}$ac_res" >&6; } | |
37442 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
a848cd7e | 37443 | cat >>confdefs.h <<_ACEOF |
d589327a | 37444 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
a848cd7e SC |
37445 | _ACEOF |
37446 | break | |
37447 | fi | |
37448 | done | |
37449 | ||
37450 | ||
d589327a VZ |
37451 | { echo "$as_me:$LINENO: checking for statfs" >&5 |
37452 | echo $ECHO_N "checking for statfs... $ECHO_C" >&6; } | |
a848cd7e | 37453 | if test "${wx_cv_func_statfs+set}" = set; then |
d589327a | 37454 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a848cd7e SC |
37455 | else |
37456 | cat >conftest.$ac_ext <<_ACEOF | |
37457 | /* confdefs.h. */ | |
37458 | _ACEOF | |
37459 | cat confdefs.h >>conftest.$ac_ext | |
37460 | cat >>conftest.$ac_ext <<_ACEOF | |
37461 | /* end confdefs.h. */ | |
37462 | ||
37463 | #if defined(__BSD__) | |
84ae7ca4 VZ |
37464 | #include <sys/param.h> |
37465 | #include <sys/mount.h> | |
a848cd7e | 37466 | #else |
84ae7ca4 | 37467 | #include <sys/vfs.h> |
a848cd7e SC |
37468 | #endif |
37469 | ||
37470 | int | |
37471 | main () | |
37472 | { | |
37473 | ||
37474 | long l; | |
37475 | struct statfs fs; | |
37476 | statfs("/", &fs); | |
37477 | l = fs.f_bsize; | |
37478 | l += fs.f_blocks; | |
37479 | l += fs.f_bavail; | |
37480 | ||
37481 | ; | |
37482 | return 0; | |
37483 | } | |
37484 | _ACEOF | |
37485 | rm -f conftest.$ac_objext | |
47964710 VS |
37486 | if { (ac_try="$ac_compile" |
37487 | case "(($ac_try" in | |
37488 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
37489 | *) ac_try_echo=$ac_try;; | |
37490 | esac | |
d589327a | 37491 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 37492 | (eval "$ac_compile") 2>conftest.er1 |
a848cd7e | 37493 | ac_status=$? |
ac1cb8d3 VS |
37494 | grep -v '^ *+' conftest.er1 >conftest.err |
37495 | rm -f conftest.er1 | |
37496 | cat conftest.err >&5 | |
d589327a | 37497 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
37498 | (exit $ac_status); } && { |
37499 | test -z "$ac_c_werror_flag" || | |
37500 | test ! -s conftest.err | |
37501 | } && test -s conftest.$ac_objext; then | |
84ae7ca4 | 37502 | wx_cv_func_statfs=yes |
a848cd7e | 37503 | else |
d589327a | 37504 | echo "$as_me: failed program was:" >&5 |
a848cd7e SC |
37505 | sed 's/^/| /' conftest.$ac_ext >&5 |
37506 | ||
47964710 | 37507 | wx_cv_func_statfs=no |
a848cd7e SC |
37508 | |
37509 | fi | |
47964710 VS |
37510 | |
37511 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
a848cd7e SC |
37512 | |
37513 | fi | |
d589327a VZ |
37514 | { echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5 |
37515 | echo "${ECHO_T}$wx_cv_func_statfs" >&6; } | |
a848cd7e SC |
37516 | |
37517 | if test "$wx_cv_func_statfs" = "yes"; then | |
d589327a VZ |
37518 | { echo "$as_me:$LINENO: checking for statfs declaration" >&5 |
37519 | echo $ECHO_N "checking for statfs declaration... $ECHO_C" >&6; } | |
84ae7ca4 | 37520 | if test "${wx_cv_func_statfs_decl+set}" = set; then |
d589327a | 37521 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
84ae7ca4 | 37522 | else |
47964710 | 37523 | ac_ext=cpp |
9b8888f9 VZ |
37524 | ac_cpp='$CXXCPP $CPPFLAGS' |
37525 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
37526 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
37527 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
37528 | ||
37529 | cat >conftest.$ac_ext <<_ACEOF | |
0683aca6 VZ |
37530 | /* confdefs.h. */ |
37531 | _ACEOF | |
37532 | cat confdefs.h >>conftest.$ac_ext | |
37533 | cat >>conftest.$ac_ext <<_ACEOF | |
37534 | /* end confdefs.h. */ | |
84ae7ca4 | 37535 | |
0683aca6 VZ |
37536 | #if defined(__BSD__) |
37537 | #include <sys/param.h> | |
37538 | #include <sys/mount.h> | |
37539 | #else | |
37540 | #include <sys/vfs.h> | |
37541 | #endif | |
37542 | ||
37543 | int | |
37544 | main () | |
37545 | { | |
37546 | ||
37547 | struct statfs fs; | |
37548 | statfs("", &fs); | |
37549 | ||
37550 | ; | |
37551 | return 0; | |
37552 | } | |
37553 | _ACEOF | |
37554 | rm -f conftest.$ac_objext | |
47964710 VS |
37555 | if { (ac_try="$ac_compile" |
37556 | case "(($ac_try" in | |
37557 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
37558 | *) ac_try_echo=$ac_try;; | |
37559 | esac | |
d589327a | 37560 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 37561 | (eval "$ac_compile") 2>conftest.er1 |
0683aca6 VZ |
37562 | ac_status=$? |
37563 | grep -v '^ *+' conftest.er1 >conftest.err | |
37564 | rm -f conftest.er1 | |
37565 | cat conftest.err >&5 | |
d589327a | 37566 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
37567 | (exit $ac_status); } && { |
37568 | test -z "$ac_cxx_werror_flag" || | |
37569 | test ! -s conftest.err | |
37570 | } && test -s conftest.$ac_objext; then | |
0683aca6 VZ |
37571 | wx_cv_func_statfs_decl=yes |
37572 | else | |
d589327a | 37573 | echo "$as_me: failed program was:" >&5 |
0683aca6 VZ |
37574 | sed 's/^/| /' conftest.$ac_ext >&5 |
37575 | ||
47964710 | 37576 | wx_cv_func_statfs_decl=no |
0683aca6 VZ |
37577 | |
37578 | fi | |
47964710 VS |
37579 | |
37580 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
9b8888f9 VZ |
37581 | ac_ext=c |
37582 | ac_cpp='$CPP $CPPFLAGS' | |
37583 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
37584 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
37585 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
37586 | ||
84ae7ca4 VZ |
37587 | |
37588 | fi | |
d589327a VZ |
37589 | { echo "$as_me:$LINENO: result: $wx_cv_func_statfs_decl" >&5 |
37590 | echo "${ECHO_T}$wx_cv_func_statfs_decl" >&6; } | |
84ae7ca4 VZ |
37591 | |
37592 | if test "$wx_cv_func_statfs_decl" = "yes"; then | |
37593 | cat >>confdefs.h <<\_ACEOF | |
37594 | #define HAVE_STATFS_DECL 1 | |
37595 | _ACEOF | |
37596 | ||
37597 | fi | |
37598 | ||
a848cd7e SC |
37599 | wx_cv_type_statvfs_t="struct statfs" |
37600 | cat >>confdefs.h <<\_ACEOF | |
37601 | #define HAVE_STATFS 1 | |
37602 | _ACEOF | |
37603 | ||
37604 | else | |
d589327a VZ |
37605 | { echo "$as_me:$LINENO: checking for statvfs" >&5 |
37606 | echo $ECHO_N "checking for statvfs... $ECHO_C" >&6; } | |
a848cd7e | 37607 | if test "${wx_cv_func_statvfs+set}" = set; then |
d589327a | 37608 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a848cd7e SC |
37609 | else |
37610 | cat >conftest.$ac_ext <<_ACEOF | |
37611 | /* confdefs.h. */ | |
37612 | _ACEOF | |
37613 | cat confdefs.h >>conftest.$ac_ext | |
37614 | cat >>conftest.$ac_ext <<_ACEOF | |
37615 | /* end confdefs.h. */ | |
37616 | ||
37617 | #include <stddef.h> | |
37618 | #include <sys/statvfs.h> | |
37619 | ||
37620 | int | |
37621 | main () | |
37622 | { | |
37623 | ||
37624 | statvfs("/", NULL); | |
37625 | ||
37626 | ; | |
37627 | return 0; | |
37628 | } | |
37629 | _ACEOF | |
37630 | rm -f conftest.$ac_objext | |
47964710 VS |
37631 | if { (ac_try="$ac_compile" |
37632 | case "(($ac_try" in | |
37633 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
37634 | *) ac_try_echo=$ac_try;; | |
37635 | esac | |
d589327a | 37636 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 37637 | (eval "$ac_compile") 2>conftest.er1 |
a848cd7e | 37638 | ac_status=$? |
ac1cb8d3 VS |
37639 | grep -v '^ *+' conftest.er1 >conftest.err |
37640 | rm -f conftest.er1 | |
37641 | cat conftest.err >&5 | |
d589327a | 37642 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
37643 | (exit $ac_status); } && { |
37644 | test -z "$ac_c_werror_flag" || | |
37645 | test ! -s conftest.err | |
37646 | } && test -s conftest.$ac_objext; then | |
a848cd7e SC |
37647 | wx_cv_func_statvfs=yes |
37648 | else | |
d589327a | 37649 | echo "$as_me: failed program was:" >&5 |
a848cd7e SC |
37650 | sed 's/^/| /' conftest.$ac_ext >&5 |
37651 | ||
47964710 | 37652 | wx_cv_func_statvfs=no |
a848cd7e SC |
37653 | |
37654 | fi | |
47964710 VS |
37655 | |
37656 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
a848cd7e SC |
37657 | |
37658 | fi | |
d589327a VZ |
37659 | { echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5 |
37660 | echo "${ECHO_T}$wx_cv_func_statvfs" >&6; } | |
a848cd7e SC |
37661 | |
37662 | if test "$wx_cv_func_statvfs" = "yes"; then | |
d589327a VZ |
37663 | { echo "$as_me:$LINENO: checking for statvfs argument type" >&5 |
37664 | echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6; } | |
a848cd7e | 37665 | if test "${wx_cv_type_statvfs_t+set}" = set; then |
d589327a | 37666 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a848cd7e | 37667 | else |
47964710 | 37668 | ac_ext=cpp |
9b8888f9 VZ |
37669 | ac_cpp='$CXXCPP $CPPFLAGS' |
37670 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
37671 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
37672 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
37673 | ||
37674 | cat >conftest.$ac_ext <<_ACEOF | |
a848cd7e SC |
37675 | /* confdefs.h. */ |
37676 | _ACEOF | |
37677 | cat confdefs.h >>conftest.$ac_ext | |
37678 | cat >>conftest.$ac_ext <<_ACEOF | |
37679 | /* end confdefs.h. */ | |
37680 | ||
37681 | #include <sys/statvfs.h> | |
37682 | ||
37683 | int | |
37684 | main () | |
37685 | { | |
37686 | ||
37687 | long l; | |
37688 | statvfs_t fs; | |
37689 | statvfs("/", &fs); | |
37690 | l = fs.f_bsize; | |
37691 | l += fs.f_blocks; | |
37692 | l += fs.f_bavail; | |
37693 | ||
37694 | ; | |
37695 | return 0; | |
37696 | } | |
37697 | _ACEOF | |
37698 | rm -f conftest.$ac_objext | |
47964710 VS |
37699 | if { (ac_try="$ac_compile" |
37700 | case "(($ac_try" in | |
37701 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
37702 | *) ac_try_echo=$ac_try;; | |
37703 | esac | |
d589327a | 37704 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 37705 | (eval "$ac_compile") 2>conftest.er1 |
a848cd7e | 37706 | ac_status=$? |
ac1cb8d3 VS |
37707 | grep -v '^ *+' conftest.er1 >conftest.err |
37708 | rm -f conftest.er1 | |
37709 | cat conftest.err >&5 | |
d589327a | 37710 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
37711 | (exit $ac_status); } && { |
37712 | test -z "$ac_cxx_werror_flag" || | |
37713 | test ! -s conftest.err | |
37714 | } && test -s conftest.$ac_objext; then | |
a848cd7e SC |
37715 | wx_cv_type_statvfs_t=statvfs_t |
37716 | else | |
d589327a | 37717 | echo "$as_me: failed program was:" >&5 |
a848cd7e SC |
37718 | sed 's/^/| /' conftest.$ac_ext >&5 |
37719 | ||
37720 | ||
37721 | cat >conftest.$ac_ext <<_ACEOF | |
37722 | /* confdefs.h. */ | |
37723 | _ACEOF | |
37724 | cat confdefs.h >>conftest.$ac_ext | |
37725 | cat >>conftest.$ac_ext <<_ACEOF | |
37726 | /* end confdefs.h. */ | |
37727 | ||
37728 | #include <sys/statvfs.h> | |
37729 | ||
37730 | int | |
37731 | main () | |
37732 | { | |
37733 | ||
37734 | long l; | |
37735 | struct statvfs fs; | |
37736 | statvfs("/", &fs); | |
37737 | l = fs.f_bsize; | |
37738 | l += fs.f_blocks; | |
37739 | l += fs.f_bavail; | |
37740 | ||
37741 | ; | |
37742 | return 0; | |
37743 | } | |
37744 | _ACEOF | |
37745 | rm -f conftest.$ac_objext | |
47964710 VS |
37746 | if { (ac_try="$ac_compile" |
37747 | case "(($ac_try" in | |
37748 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
37749 | *) ac_try_echo=$ac_try;; | |
37750 | esac | |
d589327a | 37751 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 37752 | (eval "$ac_compile") 2>conftest.er1 |
a848cd7e | 37753 | ac_status=$? |
ac1cb8d3 VS |
37754 | grep -v '^ *+' conftest.er1 >conftest.err |
37755 | rm -f conftest.er1 | |
37756 | cat conftest.err >&5 | |
d589327a | 37757 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
37758 | (exit $ac_status); } && { |
37759 | test -z "$ac_cxx_werror_flag" || | |
37760 | test ! -s conftest.err | |
37761 | } && test -s conftest.$ac_objext; then | |
a848cd7e SC |
37762 | wx_cv_type_statvfs_t="struct statvfs" |
37763 | else | |
d589327a | 37764 | echo "$as_me: failed program was:" >&5 |
a848cd7e SC |
37765 | sed 's/^/| /' conftest.$ac_ext >&5 |
37766 | ||
47964710 | 37767 | wx_cv_type_statvfs_t="unknown" |
a848cd7e SC |
37768 | |
37769 | fi | |
47964710 VS |
37770 | |
37771 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
a848cd7e SC |
37772 | |
37773 | ||
37774 | fi | |
47964710 VS |
37775 | |
37776 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
9b8888f9 VZ |
37777 | ac_ext=c |
37778 | ac_cpp='$CPP $CPPFLAGS' | |
37779 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
37780 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
37781 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
37782 | ||
a848cd7e SC |
37783 | |
37784 | fi | |
d589327a VZ |
37785 | { echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5 |
37786 | echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6; } | |
a848cd7e | 37787 | |
a848cd7e SC |
37788 | if test "$wx_cv_type_statvfs_t" != "unknown"; then |
37789 | cat >>confdefs.h <<\_ACEOF | |
37790 | #define HAVE_STATVFS 1 | |
37791 | _ACEOF | |
37792 | ||
37793 | fi | |
37794 | else | |
37795 | wx_cv_type_statvfs_t="unknown" | |
37796 | fi | |
37797 | fi | |
37798 | ||
37799 | if test "$wx_cv_type_statvfs_t" != "unknown"; then | |
37800 | cat >>confdefs.h <<_ACEOF | |
37801 | #define WX_STATFS_T $wx_cv_type_statvfs_t | |
37802 | _ACEOF | |
37803 | ||
37804 | else | |
d589327a VZ |
37805 | { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5 |
37806 | echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;} | |
a848cd7e SC |
37807 | fi |
37808 | ||
37809 | if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then | |
37810 | ||
37811 | ||
37812 | for ac_func in fcntl flock | |
37813 | do | |
d589327a VZ |
37814 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
37815 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
37816 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
47964710 | 37817 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
d589327a | 37818 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a848cd7e SC |
37819 | else |
37820 | cat >conftest.$ac_ext <<_ACEOF | |
37821 | /* confdefs.h. */ | |
37822 | _ACEOF | |
37823 | cat confdefs.h >>conftest.$ac_ext | |
37824 | cat >>conftest.$ac_ext <<_ACEOF | |
37825 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
37826 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
37827 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
37828 | #define $ac_func innocuous_$ac_func | |
37829 | ||
a848cd7e SC |
37830 | /* System header to define __stub macros and hopefully few prototypes, |
37831 | which can conflict with char $ac_func (); below. | |
37832 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
37833 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 37834 | |
a848cd7e SC |
37835 | #ifdef __STDC__ |
37836 | # include <limits.h> | |
37837 | #else | |
37838 | # include <assert.h> | |
37839 | #endif | |
ac1cb8d3 VS |
37840 | |
37841 | #undef $ac_func | |
37842 | ||
47964710 VS |
37843 | /* Override any GCC internal prototype to avoid an error. |
37844 | Use char because int might match the return type of a GCC | |
37845 | builtin and then its argument prototype would still apply. */ | |
a848cd7e SC |
37846 | #ifdef __cplusplus |
37847 | extern "C" | |
a848cd7e | 37848 | #endif |
a848cd7e SC |
37849 | char $ac_func (); |
37850 | /* The GNU C library defines this for functions which it implements | |
37851 | to always fail with ENOSYS. Some functions are actually named | |
37852 | something starting with __ and the normal name is an alias. */ | |
47964710 | 37853 | #if defined __stub_$ac_func || defined __stub___$ac_func |
a848cd7e | 37854 | choke me |
a848cd7e SC |
37855 | #endif |
37856 | ||
37857 | int | |
37858 | main () | |
37859 | { | |
47964710 | 37860 | return $ac_func (); |
a848cd7e SC |
37861 | ; |
37862 | return 0; | |
37863 | } | |
37864 | _ACEOF | |
37865 | rm -f conftest.$ac_objext conftest$ac_exeext | |
47964710 VS |
37866 | if { (ac_try="$ac_link" |
37867 | case "(($ac_try" in | |
37868 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
37869 | *) ac_try_echo=$ac_try;; | |
37870 | esac | |
d589327a | 37871 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 37872 | (eval "$ac_link") 2>conftest.er1 |
a848cd7e | 37873 | ac_status=$? |
ac1cb8d3 VS |
37874 | grep -v '^ *+' conftest.er1 >conftest.err |
37875 | rm -f conftest.er1 | |
37876 | cat conftest.err >&5 | |
d589327a | 37877 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
37878 | (exit $ac_status); } && { |
37879 | test -z "$ac_c_werror_flag" || | |
37880 | test ! -s conftest.err | |
d589327a VZ |
37881 | } && test -s conftest$ac_exeext && |
37882 | $as_test_x conftest$ac_exeext; then | |
a848cd7e SC |
37883 | eval "$as_ac_var=yes" |
37884 | else | |
d589327a | 37885 | echo "$as_me: failed program was:" >&5 |
a848cd7e SC |
37886 | sed 's/^/| /' conftest.$ac_ext >&5 |
37887 | ||
47964710 | 37888 | eval "$as_ac_var=no" |
a848cd7e | 37889 | fi |
47964710 VS |
37890 | |
37891 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
ac1cb8d3 | 37892 | conftest$ac_exeext conftest.$ac_ext |
a848cd7e | 37893 | fi |
d589327a VZ |
37894 | ac_res=`eval echo '${'$as_ac_var'}'` |
37895 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
37896 | echo "${ECHO_T}$ac_res" >&6; } | |
37897 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
a848cd7e | 37898 | cat >>confdefs.h <<_ACEOF |
d589327a | 37899 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
a848cd7e SC |
37900 | _ACEOF |
37901 | break | |
37902 | fi | |
37903 | done | |
37904 | ||
37905 | ||
37906 | if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then | |
d589327a VZ |
37907 | { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5 |
37908 | echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;} | |
a848cd7e SC |
37909 | wxUSE_SNGLINST_CHECKER=no |
37910 | fi | |
37911 | fi | |
37912 | ||
37913 | ||
7fd3acaf | 37914 | |
c225b981 | 37915 | for ac_func in setenv putenv |
7fd3acaf | 37916 | do |
d589327a VZ |
37917 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
37918 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
37919 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
47964710 | 37920 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
d589327a | 37921 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7fd3acaf RD |
37922 | else |
37923 | cat >conftest.$ac_ext <<_ACEOF | |
37924 | /* confdefs.h. */ | |
37925 | _ACEOF | |
37926 | cat confdefs.h >>conftest.$ac_ext | |
37927 | cat >>conftest.$ac_ext <<_ACEOF | |
37928 | /* end confdefs.h. */ | |
37929 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
37930 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
37931 | #define $ac_func innocuous_$ac_func | |
37932 | ||
37933 | /* System header to define __stub macros and hopefully few prototypes, | |
37934 | which can conflict with char $ac_func (); below. | |
37935 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
37936 | <limits.h> exists even on freestanding compilers. */ | |
37937 | ||
37938 | #ifdef __STDC__ | |
37939 | # include <limits.h> | |
f321ab7f | 37940 | #else |
7fd3acaf | 37941 | # include <assert.h> |
f321ab7f | 37942 | #endif |
7fd3acaf RD |
37943 | |
37944 | #undef $ac_func | |
37945 | ||
47964710 VS |
37946 | /* Override any GCC internal prototype to avoid an error. |
37947 | Use char because int might match the return type of a GCC | |
37948 | builtin and then its argument prototype would still apply. */ | |
f321ab7f | 37949 | #ifdef __cplusplus |
7fd3acaf RD |
37950 | extern "C" |
37951 | #endif | |
37952 | char $ac_func (); | |
37953 | /* The GNU C library defines this for functions which it implements | |
37954 | to always fail with ENOSYS. Some functions are actually named | |
37955 | something starting with __ and the normal name is an alias. */ | |
47964710 | 37956 | #if defined __stub_$ac_func || defined __stub___$ac_func |
7fd3acaf | 37957 | choke me |
a848cd7e SC |
37958 | #endif |
37959 | ||
37960 | int | |
37961 | main () | |
37962 | { | |
47964710 | 37963 | return $ac_func (); |
a848cd7e SC |
37964 | ; |
37965 | return 0; | |
37966 | } | |
37967 | _ACEOF | |
37968 | rm -f conftest.$ac_objext conftest$ac_exeext | |
47964710 VS |
37969 | if { (ac_try="$ac_link" |
37970 | case "(($ac_try" in | |
37971 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
37972 | *) ac_try_echo=$ac_try;; | |
37973 | esac | |
d589327a | 37974 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 37975 | (eval "$ac_link") 2>conftest.er1 |
a848cd7e | 37976 | ac_status=$? |
ac1cb8d3 VS |
37977 | grep -v '^ *+' conftest.er1 >conftest.err |
37978 | rm -f conftest.er1 | |
37979 | cat conftest.err >&5 | |
d589327a | 37980 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
37981 | (exit $ac_status); } && { |
37982 | test -z "$ac_c_werror_flag" || | |
37983 | test ! -s conftest.err | |
d589327a VZ |
37984 | } && test -s conftest$ac_exeext && |
37985 | $as_test_x conftest$ac_exeext; then | |
a848cd7e SC |
37986 | eval "$as_ac_var=yes" |
37987 | else | |
d589327a | 37988 | echo "$as_me: failed program was:" >&5 |
a848cd7e SC |
37989 | sed 's/^/| /' conftest.$ac_ext >&5 |
37990 | ||
47964710 | 37991 | eval "$as_ac_var=no" |
a848cd7e | 37992 | fi |
47964710 VS |
37993 | |
37994 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
ac1cb8d3 | 37995 | conftest$ac_exeext conftest.$ac_ext |
a848cd7e | 37996 | fi |
d589327a VZ |
37997 | ac_res=`eval echo '${'$as_ac_var'}'` |
37998 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
37999 | echo "${ECHO_T}$ac_res" >&6; } | |
38000 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
a848cd7e | 38001 | cat >>confdefs.h <<_ACEOF |
d589327a | 38002 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
a848cd7e SC |
38003 | _ACEOF |
38004 | break | |
38005 | fi | |
38006 | done | |
38007 | ||
a1353ea4 VZ |
38008 | if test "$ac_cv_func_setenv" = "yes"; then |
38009 | ||
38010 | for ac_func in unsetenv | |
38011 | do | |
d589327a VZ |
38012 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
38013 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
38014 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
47964710 | 38015 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
d589327a | 38016 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a1353ea4 VZ |
38017 | else |
38018 | cat >conftest.$ac_ext <<_ACEOF | |
38019 | /* confdefs.h. */ | |
38020 | _ACEOF | |
38021 | cat confdefs.h >>conftest.$ac_ext | |
38022 | cat >>conftest.$ac_ext <<_ACEOF | |
38023 | /* end confdefs.h. */ | |
38024 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
38025 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
38026 | #define $ac_func innocuous_$ac_func | |
38027 | ||
38028 | /* System header to define __stub macros and hopefully few prototypes, | |
38029 | which can conflict with char $ac_func (); below. | |
38030 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
38031 | <limits.h> exists even on freestanding compilers. */ | |
38032 | ||
38033 | #ifdef __STDC__ | |
38034 | # include <limits.h> | |
38035 | #else | |
38036 | # include <assert.h> | |
38037 | #endif | |
38038 | ||
38039 | #undef $ac_func | |
38040 | ||
47964710 VS |
38041 | /* Override any GCC internal prototype to avoid an error. |
38042 | Use char because int might match the return type of a GCC | |
38043 | builtin and then its argument prototype would still apply. */ | |
a1353ea4 VZ |
38044 | #ifdef __cplusplus |
38045 | extern "C" | |
38046 | #endif | |
38047 | char $ac_func (); | |
38048 | /* The GNU C library defines this for functions which it implements | |
38049 | to always fail with ENOSYS. Some functions are actually named | |
38050 | something starting with __ and the normal name is an alias. */ | |
47964710 | 38051 | #if defined __stub_$ac_func || defined __stub___$ac_func |
a1353ea4 VZ |
38052 | choke me |
38053 | #endif | |
38054 | ||
38055 | int | |
38056 | main () | |
38057 | { | |
47964710 | 38058 | return $ac_func (); |
a1353ea4 VZ |
38059 | ; |
38060 | return 0; | |
38061 | } | |
38062 | _ACEOF | |
38063 | rm -f conftest.$ac_objext conftest$ac_exeext | |
47964710 VS |
38064 | if { (ac_try="$ac_link" |
38065 | case "(($ac_try" in | |
38066 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
38067 | *) ac_try_echo=$ac_try;; | |
38068 | esac | |
d589327a | 38069 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 38070 | (eval "$ac_link") 2>conftest.er1 |
a1353ea4 VZ |
38071 | ac_status=$? |
38072 | grep -v '^ *+' conftest.er1 >conftest.err | |
38073 | rm -f conftest.er1 | |
38074 | cat conftest.err >&5 | |
d589327a | 38075 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
38076 | (exit $ac_status); } && { |
38077 | test -z "$ac_c_werror_flag" || | |
38078 | test ! -s conftest.err | |
d589327a VZ |
38079 | } && test -s conftest$ac_exeext && |
38080 | $as_test_x conftest$ac_exeext; then | |
a1353ea4 VZ |
38081 | eval "$as_ac_var=yes" |
38082 | else | |
d589327a | 38083 | echo "$as_me: failed program was:" >&5 |
a1353ea4 VZ |
38084 | sed 's/^/| /' conftest.$ac_ext >&5 |
38085 | ||
47964710 | 38086 | eval "$as_ac_var=no" |
a1353ea4 | 38087 | fi |
47964710 VS |
38088 | |
38089 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
a1353ea4 VZ |
38090 | conftest$ac_exeext conftest.$ac_ext |
38091 | fi | |
d589327a VZ |
38092 | ac_res=`eval echo '${'$as_ac_var'}'` |
38093 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
38094 | echo "${ECHO_T}$ac_res" >&6; } | |
38095 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
a1353ea4 | 38096 | cat >>confdefs.h <<_ACEOF |
d589327a | 38097 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
a1353ea4 VZ |
38098 | _ACEOF |
38099 | ||
38100 | fi | |
38101 | done | |
38102 | ||
38103 | fi | |
a848cd7e SC |
38104 | |
38105 | HAVE_SOME_SLEEP_FUNC=0 | |
38106 | if test "$USE_BEOS" = 1; then | |
38107 | cat >>confdefs.h <<\_ACEOF | |
38108 | #define HAVE_SLEEP 1 | |
38109 | _ACEOF | |
38110 | ||
38111 | HAVE_SOME_SLEEP_FUNC=1 | |
38112 | fi | |
38113 | ||
38114 | if test "$USE_DARWIN" = 1; then | |
38115 | cat >>confdefs.h <<\_ACEOF | |
38116 | #define HAVE_USLEEP 1 | |
38117 | _ACEOF | |
38118 | ||
38119 | HAVE_SOME_SLEEP_FUNC=1 | |
38120 | fi | |
38121 | ||
38122 | if test "$HAVE_SOME_SLEEP_FUNC" != 1; then | |
38123 | POSIX4_LINK= | |
38124 | ||
38125 | for ac_func in nanosleep | |
38126 | do | |
d589327a VZ |
38127 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
38128 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
38129 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
47964710 | 38130 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
d589327a | 38131 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a848cd7e SC |
38132 | else |
38133 | cat >conftest.$ac_ext <<_ACEOF | |
38134 | /* confdefs.h. */ | |
38135 | _ACEOF | |
38136 | cat confdefs.h >>conftest.$ac_ext | |
38137 | cat >>conftest.$ac_ext <<_ACEOF | |
38138 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
38139 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
38140 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
38141 | #define $ac_func innocuous_$ac_func | |
38142 | ||
a848cd7e SC |
38143 | /* System header to define __stub macros and hopefully few prototypes, |
38144 | which can conflict with char $ac_func (); below. | |
38145 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
38146 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 38147 | |
a848cd7e SC |
38148 | #ifdef __STDC__ |
38149 | # include <limits.h> | |
38150 | #else | |
38151 | # include <assert.h> | |
38152 | #endif | |
ac1cb8d3 VS |
38153 | |
38154 | #undef $ac_func | |
38155 | ||
47964710 VS |
38156 | /* Override any GCC internal prototype to avoid an error. |
38157 | Use char because int might match the return type of a GCC | |
38158 | builtin and then its argument prototype would still apply. */ | |
a848cd7e SC |
38159 | #ifdef __cplusplus |
38160 | extern "C" | |
a848cd7e | 38161 | #endif |
a848cd7e SC |
38162 | char $ac_func (); |
38163 | /* The GNU C library defines this for functions which it implements | |
38164 | to always fail with ENOSYS. Some functions are actually named | |
38165 | something starting with __ and the normal name is an alias. */ | |
47964710 | 38166 | #if defined __stub_$ac_func || defined __stub___$ac_func |
a848cd7e | 38167 | choke me |
a848cd7e SC |
38168 | #endif |
38169 | ||
38170 | int | |
38171 | main () | |
38172 | { | |
47964710 | 38173 | return $ac_func (); |
a848cd7e SC |
38174 | ; |
38175 | return 0; | |
38176 | } | |
38177 | _ACEOF | |
38178 | rm -f conftest.$ac_objext conftest$ac_exeext | |
47964710 VS |
38179 | if { (ac_try="$ac_link" |
38180 | case "(($ac_try" in | |
38181 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
38182 | *) ac_try_echo=$ac_try;; | |
38183 | esac | |
d589327a | 38184 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 38185 | (eval "$ac_link") 2>conftest.er1 |
a848cd7e | 38186 | ac_status=$? |
ac1cb8d3 VS |
38187 | grep -v '^ *+' conftest.er1 >conftest.err |
38188 | rm -f conftest.er1 | |
38189 | cat conftest.err >&5 | |
d589327a | 38190 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
38191 | (exit $ac_status); } && { |
38192 | test -z "$ac_c_werror_flag" || | |
38193 | test ! -s conftest.err | |
d589327a VZ |
38194 | } && test -s conftest$ac_exeext && |
38195 | $as_test_x conftest$ac_exeext; then | |
a848cd7e SC |
38196 | eval "$as_ac_var=yes" |
38197 | else | |
d589327a | 38198 | echo "$as_me: failed program was:" >&5 |
a848cd7e SC |
38199 | sed 's/^/| /' conftest.$ac_ext >&5 |
38200 | ||
47964710 | 38201 | eval "$as_ac_var=no" |
a848cd7e | 38202 | fi |
47964710 VS |
38203 | |
38204 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
ac1cb8d3 | 38205 | conftest$ac_exeext conftest.$ac_ext |
a848cd7e | 38206 | fi |
d589327a VZ |
38207 | ac_res=`eval echo '${'$as_ac_var'}'` |
38208 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
38209 | echo "${ECHO_T}$ac_res" >&6; } | |
38210 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
a848cd7e | 38211 | cat >>confdefs.h <<_ACEOF |
d589327a | 38212 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
a848cd7e SC |
38213 | _ACEOF |
38214 | cat >>confdefs.h <<\_ACEOF | |
38215 | #define HAVE_NANOSLEEP 1 | |
38216 | _ACEOF | |
38217 | ||
38218 | else | |
38219 | ||
d589327a VZ |
38220 | { echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5 |
38221 | echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6; } | |
a848cd7e | 38222 | if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then |
d589327a | 38223 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a848cd7e SC |
38224 | else |
38225 | ac_check_lib_save_LIBS=$LIBS | |
38226 | LIBS="-lposix4 $LIBS" | |
38227 | cat >conftest.$ac_ext <<_ACEOF | |
38228 | /* confdefs.h. */ | |
38229 | _ACEOF | |
38230 | cat confdefs.h >>conftest.$ac_ext | |
38231 | cat >>conftest.$ac_ext <<_ACEOF | |
38232 | /* end confdefs.h. */ | |
38233 | ||
47964710 VS |
38234 | /* Override any GCC internal prototype to avoid an error. |
38235 | Use char because int might match the return type of a GCC | |
38236 | builtin and then its argument prototype would still apply. */ | |
a848cd7e SC |
38237 | #ifdef __cplusplus |
38238 | extern "C" | |
38239 | #endif | |
a848cd7e SC |
38240 | char nanosleep (); |
38241 | int | |
38242 | main () | |
38243 | { | |
47964710 | 38244 | return nanosleep (); |
a848cd7e SC |
38245 | ; |
38246 | return 0; | |
38247 | } | |
38248 | _ACEOF | |
38249 | rm -f conftest.$ac_objext conftest$ac_exeext | |
47964710 VS |
38250 | if { (ac_try="$ac_link" |
38251 | case "(($ac_try" in | |
38252 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
38253 | *) ac_try_echo=$ac_try;; | |
38254 | esac | |
d589327a | 38255 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 38256 | (eval "$ac_link") 2>conftest.er1 |
a848cd7e | 38257 | ac_status=$? |
ac1cb8d3 VS |
38258 | grep -v '^ *+' conftest.er1 >conftest.err |
38259 | rm -f conftest.er1 | |
38260 | cat conftest.err >&5 | |
d589327a | 38261 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
38262 | (exit $ac_status); } && { |
38263 | test -z "$ac_c_werror_flag" || | |
38264 | test ! -s conftest.err | |
d589327a VZ |
38265 | } && test -s conftest$ac_exeext && |
38266 | $as_test_x conftest$ac_exeext; then | |
a848cd7e SC |
38267 | ac_cv_lib_posix4_nanosleep=yes |
38268 | else | |
d589327a | 38269 | echo "$as_me: failed program was:" >&5 |
a848cd7e SC |
38270 | sed 's/^/| /' conftest.$ac_ext >&5 |
38271 | ||
47964710 | 38272 | ac_cv_lib_posix4_nanosleep=no |
a848cd7e | 38273 | fi |
47964710 VS |
38274 | |
38275 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
ac1cb8d3 | 38276 | conftest$ac_exeext conftest.$ac_ext |
a848cd7e SC |
38277 | LIBS=$ac_check_lib_save_LIBS |
38278 | fi | |
d589327a VZ |
38279 | { echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5 |
38280 | echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6; } | |
38281 | if test $ac_cv_lib_posix4_nanosleep = yes; then | |
a848cd7e SC |
38282 | |
38283 | cat >>confdefs.h <<\_ACEOF | |
38284 | #define HAVE_NANOSLEEP 1 | |
38285 | _ACEOF | |
38286 | ||
38287 | POSIX4_LINK=" -lposix4" | |
38288 | ||
38289 | else | |
38290 | ||
38291 | ||
fd5199d6 VZ |
38292 | for wx_func in usleep |
38293 | do | |
d589327a VZ |
38294 | { echo "$as_me:$LINENO: checking for $wx_func" >&5 |
38295 | echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; } | |
47964710 | 38296 | if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then |
d589327a | 38297 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a848cd7e | 38298 | else |
fd5199d6 VZ |
38299 | |
38300 | cat >conftest.$ac_ext <<_ACEOF | |
38301 | ||
38302 | /* confdefs.h. */ | |
a848cd7e SC |
38303 | _ACEOF |
38304 | cat confdefs.h >>conftest.$ac_ext | |
38305 | cat >>conftest.$ac_ext <<_ACEOF | |
38306 | /* end confdefs.h. */ | |
ac1cb8d3 | 38307 | |
ac1cb8d3 | 38308 | |
fd5199d6 | 38309 | $ac_includes_default |
a848cd7e SC |
38310 | |
38311 | int | |
38312 | main () | |
38313 | { | |
fd5199d6 VZ |
38314 | |
38315 | #ifndef $wx_func | |
38316 | &$wx_func; | |
38317 | #endif | |
38318 | ||
38319 | ||
a848cd7e SC |
38320 | ; |
38321 | return 0; | |
38322 | } | |
fd5199d6 | 38323 | |
a848cd7e SC |
38324 | _ACEOF |
38325 | rm -f conftest.$ac_objext conftest$ac_exeext | |
47964710 VS |
38326 | if { (ac_try="$ac_link" |
38327 | case "(($ac_try" in | |
38328 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
38329 | *) ac_try_echo=$ac_try;; | |
38330 | esac | |
d589327a | 38331 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 38332 | (eval "$ac_link") 2>conftest.er1 |
a848cd7e | 38333 | ac_status=$? |
ac1cb8d3 VS |
38334 | grep -v '^ *+' conftest.er1 >conftest.err |
38335 | rm -f conftest.er1 | |
38336 | cat conftest.err >&5 | |
d589327a | 38337 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
38338 | (exit $ac_status); } && { |
38339 | test -z "$ac_c_werror_flag" || | |
38340 | test ! -s conftest.err | |
d589327a VZ |
38341 | } && test -s conftest$ac_exeext && |
38342 | $as_test_x conftest$ac_exeext; then | |
fd5199d6 | 38343 | eval wx_cv_func_$wx_func=yes |
a848cd7e | 38344 | else |
d589327a | 38345 | echo "$as_me: failed program was:" >&5 |
a848cd7e SC |
38346 | sed 's/^/| /' conftest.$ac_ext >&5 |
38347 | ||
47964710 | 38348 | eval wx_cv_func_$wx_func=no |
a848cd7e | 38349 | fi |
47964710 VS |
38350 | |
38351 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
ac1cb8d3 | 38352 | conftest$ac_exeext conftest.$ac_ext |
fd5199d6 | 38353 | |
a848cd7e | 38354 | fi |
d589327a VZ |
38355 | ac_res=`eval echo '${'wx_cv_func_$wx_func'}'` |
38356 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
38357 | echo "${ECHO_T}$ac_res" >&6; } | |
fd5199d6 VZ |
38358 | |
38359 | if eval test \$wx_cv_func_$wx_func = yes | |
38360 | then | |
38361 | cat >>confdefs.h <<_ACEOF | |
d589327a | 38362 | #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1 |
a848cd7e SC |
38363 | _ACEOF |
38364 | ||
fd5199d6 VZ |
38365 | |
38366 | else | |
38367 | : | |
d589327a VZ |
38368 | { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5 |
38369 | echo "$as_me: WARNING: wxSleep() function will not work" >&2;} | |
a848cd7e | 38370 | |
fd5199d6 VZ |
38371 | fi |
38372 | done | |
a848cd7e SC |
38373 | |
38374 | ||
38375 | ||
38376 | fi | |
38377 | ||
38378 | ||
38379 | ||
38380 | fi | |
38381 | done | |
38382 | ||
38383 | fi | |
38384 | ||
38385 | ||
9b8888f9 VZ |
38386 | for wx_func in uname |
38387 | do | |
d589327a VZ |
38388 | { echo "$as_me:$LINENO: checking for $wx_func" >&5 |
38389 | echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; } | |
47964710 | 38390 | if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then |
d589327a | 38391 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9b8888f9 VZ |
38392 | else |
38393 | ||
38394 | cat >conftest.$ac_ext <<_ACEOF | |
38395 | ||
38396 | /* confdefs.h. */ | |
38397 | _ACEOF | |
38398 | cat confdefs.h >>conftest.$ac_ext | |
38399 | cat >>conftest.$ac_ext <<_ACEOF | |
38400 | /* end confdefs.h. */ | |
38401 | ||
38402 | #include <sys/utsname.h> | |
38403 | $ac_includes_default | |
38404 | ||
38405 | int | |
38406 | main () | |
38407 | { | |
38408 | ||
38409 | #ifndef $wx_func | |
38410 | &$wx_func; | |
38411 | #endif | |
38412 | ||
38413 | ||
38414 | ; | |
38415 | return 0; | |
38416 | } | |
38417 | ||
38418 | _ACEOF | |
38419 | rm -f conftest.$ac_objext conftest$ac_exeext | |
47964710 VS |
38420 | if { (ac_try="$ac_link" |
38421 | case "(($ac_try" in | |
38422 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
38423 | *) ac_try_echo=$ac_try;; | |
38424 | esac | |
d589327a | 38425 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 38426 | (eval "$ac_link") 2>conftest.er1 |
9b8888f9 VZ |
38427 | ac_status=$? |
38428 | grep -v '^ *+' conftest.er1 >conftest.err | |
38429 | rm -f conftest.er1 | |
38430 | cat conftest.err >&5 | |
d589327a | 38431 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
38432 | (exit $ac_status); } && { |
38433 | test -z "$ac_c_werror_flag" || | |
38434 | test ! -s conftest.err | |
d589327a VZ |
38435 | } && test -s conftest$ac_exeext && |
38436 | $as_test_x conftest$ac_exeext; then | |
9b8888f9 VZ |
38437 | eval wx_cv_func_$wx_func=yes |
38438 | else | |
d589327a | 38439 | echo "$as_me: failed program was:" >&5 |
9b8888f9 VZ |
38440 | sed 's/^/| /' conftest.$ac_ext >&5 |
38441 | ||
47964710 | 38442 | eval wx_cv_func_$wx_func=no |
9b8888f9 | 38443 | fi |
47964710 VS |
38444 | |
38445 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
9b8888f9 VZ |
38446 | conftest$ac_exeext conftest.$ac_ext |
38447 | ||
38448 | fi | |
d589327a VZ |
38449 | ac_res=`eval echo '${'wx_cv_func_$wx_func'}'` |
38450 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
38451 | echo "${ECHO_T}$ac_res" >&6; } | |
9b8888f9 VZ |
38452 | |
38453 | if eval test \$wx_cv_func_$wx_func = yes | |
38454 | then | |
38455 | cat >>confdefs.h <<_ACEOF | |
d589327a | 38456 | #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1 |
9b8888f9 VZ |
38457 | _ACEOF |
38458 | ||
38459 | ||
38460 | else | |
38461 | : | |
38462 | ||
38463 | fi | |
38464 | done | |
38465 | ||
38466 | if test "$wx_cv_func_uname" != yes; then | |
38467 | ||
38468 | for wx_func in gethostname | |
fd5199d6 | 38469 | do |
d589327a VZ |
38470 | { echo "$as_me:$LINENO: checking for $wx_func" >&5 |
38471 | echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; } | |
47964710 | 38472 | if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then |
d589327a | 38473 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a848cd7e | 38474 | else |
fd5199d6 VZ |
38475 | |
38476 | cat >conftest.$ac_ext <<_ACEOF | |
38477 | ||
38478 | /* confdefs.h. */ | |
a848cd7e SC |
38479 | _ACEOF |
38480 | cat confdefs.h >>conftest.$ac_ext | |
38481 | cat >>conftest.$ac_ext <<_ACEOF | |
38482 | /* end confdefs.h. */ | |
ac1cb8d3 | 38483 | |
ac1cb8d3 | 38484 | |
fd5199d6 | 38485 | $ac_includes_default |
a848cd7e SC |
38486 | |
38487 | int | |
38488 | main () | |
38489 | { | |
fd5199d6 VZ |
38490 | |
38491 | #ifndef $wx_func | |
38492 | &$wx_func; | |
38493 | #endif | |
38494 | ||
38495 | ||
a848cd7e SC |
38496 | ; |
38497 | return 0; | |
38498 | } | |
fd5199d6 | 38499 | |
a848cd7e SC |
38500 | _ACEOF |
38501 | rm -f conftest.$ac_objext conftest$ac_exeext | |
47964710 VS |
38502 | if { (ac_try="$ac_link" |
38503 | case "(($ac_try" in | |
38504 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
38505 | *) ac_try_echo=$ac_try;; | |
38506 | esac | |
d589327a | 38507 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 38508 | (eval "$ac_link") 2>conftest.er1 |
a848cd7e | 38509 | ac_status=$? |
ac1cb8d3 VS |
38510 | grep -v '^ *+' conftest.er1 >conftest.err |
38511 | rm -f conftest.er1 | |
38512 | cat conftest.err >&5 | |
d589327a | 38513 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
38514 | (exit $ac_status); } && { |
38515 | test -z "$ac_c_werror_flag" || | |
38516 | test ! -s conftest.err | |
d589327a VZ |
38517 | } && test -s conftest$ac_exeext && |
38518 | $as_test_x conftest$ac_exeext; then | |
fd5199d6 | 38519 | eval wx_cv_func_$wx_func=yes |
a848cd7e | 38520 | else |
d589327a | 38521 | echo "$as_me: failed program was:" >&5 |
a848cd7e SC |
38522 | sed 's/^/| /' conftest.$ac_ext >&5 |
38523 | ||
47964710 | 38524 | eval wx_cv_func_$wx_func=no |
a848cd7e | 38525 | fi |
47964710 VS |
38526 | |
38527 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
ac1cb8d3 | 38528 | conftest$ac_exeext conftest.$ac_ext |
fd5199d6 | 38529 | |
a848cd7e | 38530 | fi |
d589327a VZ |
38531 | ac_res=`eval echo '${'wx_cv_func_$wx_func'}'` |
38532 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
38533 | echo "${ECHO_T}$ac_res" >&6; } | |
fd5199d6 VZ |
38534 | |
38535 | if eval test \$wx_cv_func_$wx_func = yes | |
38536 | then | |
38537 | cat >>confdefs.h <<_ACEOF | |
d589327a | 38538 | #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1 |
a848cd7e | 38539 | _ACEOF |
fd5199d6 | 38540 | |
9b8888f9 | 38541 | |
fd5199d6 VZ |
38542 | else |
38543 | : | |
38544 | ||
38545 | fi | |
38546 | done | |
a848cd7e | 38547 | |
9b8888f9 | 38548 | fi |
a848cd7e | 38549 | |
56632e81 MW |
38550 | |
38551 | for wx_func in strtok_r | |
38552 | do | |
d589327a VZ |
38553 | { echo "$as_me:$LINENO: checking for $wx_func" >&5 |
38554 | echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; } | |
47964710 | 38555 | if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then |
d589327a | 38556 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a848cd7e | 38557 | else |
56632e81 MW |
38558 | |
38559 | cat >conftest.$ac_ext <<_ACEOF | |
38560 | ||
38561 | /* confdefs.h. */ | |
a848cd7e SC |
38562 | _ACEOF |
38563 | cat confdefs.h >>conftest.$ac_ext | |
38564 | cat >>conftest.$ac_ext <<_ACEOF | |
38565 | /* end confdefs.h. */ | |
56632e81 MW |
38566 | |
38567 | #define _REENTRANT | |
38568 | $ac_includes_default | |
38569 | ||
a848cd7e SC |
38570 | int |
38571 | main () | |
38572 | { | |
56632e81 MW |
38573 | |
38574 | #ifndef $wx_func | |
38575 | &$wx_func; | |
38576 | #endif | |
38577 | ||
5acfd58d | 38578 | |
a848cd7e SC |
38579 | ; |
38580 | return 0; | |
38581 | } | |
56632e81 | 38582 | |
a848cd7e | 38583 | _ACEOF |
56632e81 | 38584 | rm -f conftest.$ac_objext conftest$ac_exeext |
47964710 VS |
38585 | if { (ac_try="$ac_link" |
38586 | case "(($ac_try" in | |
38587 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
38588 | *) ac_try_echo=$ac_try;; | |
38589 | esac | |
d589327a | 38590 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 38591 | (eval "$ac_link") 2>conftest.er1 |
a848cd7e | 38592 | ac_status=$? |
ac1cb8d3 VS |
38593 | grep -v '^ *+' conftest.er1 >conftest.err |
38594 | rm -f conftest.er1 | |
38595 | cat conftest.err >&5 | |
d589327a | 38596 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
38597 | (exit $ac_status); } && { |
38598 | test -z "$ac_c_werror_flag" || | |
38599 | test ! -s conftest.err | |
d589327a VZ |
38600 | } && test -s conftest$ac_exeext && |
38601 | $as_test_x conftest$ac_exeext; then | |
56632e81 | 38602 | eval wx_cv_func_$wx_func=yes |
a848cd7e | 38603 | else |
d589327a | 38604 | echo "$as_me: failed program was:" >&5 |
a848cd7e SC |
38605 | sed 's/^/| /' conftest.$ac_ext >&5 |
38606 | ||
47964710 | 38607 | eval wx_cv_func_$wx_func=no |
a848cd7e | 38608 | fi |
47964710 VS |
38609 | |
38610 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
56632e81 | 38611 | conftest$ac_exeext conftest.$ac_ext |
a848cd7e | 38612 | |
56632e81 | 38613 | fi |
d589327a VZ |
38614 | ac_res=`eval echo '${'wx_cv_func_$wx_func'}'` |
38615 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
38616 | echo "${ECHO_T}$ac_res" >&6; } | |
a848cd7e | 38617 | |
56632e81 MW |
38618 | if eval test \$wx_cv_func_$wx_func = yes |
38619 | then | |
38620 | cat >>confdefs.h <<_ACEOF | |
d589327a | 38621 | #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1 |
82a2636b MW |
38622 | _ACEOF |
38623 | ||
38624 | ||
56632e81 MW |
38625 | else |
38626 | : | |
5acfd58d | 38627 | |
56632e81 MW |
38628 | fi |
38629 | done | |
5acfd58d | 38630 | |
a848cd7e | 38631 | |
a848cd7e SC |
38632 | INET_LINK= |
38633 | ||
38634 | for ac_func in inet_addr | |
38635 | do | |
d589327a VZ |
38636 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
38637 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
38638 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
47964710 | 38639 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
d589327a | 38640 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a848cd7e SC |
38641 | else |
38642 | cat >conftest.$ac_ext <<_ACEOF | |
38643 | /* confdefs.h. */ | |
38644 | _ACEOF | |
38645 | cat confdefs.h >>conftest.$ac_ext | |
38646 | cat >>conftest.$ac_ext <<_ACEOF | |
38647 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
38648 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
38649 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
38650 | #define $ac_func innocuous_$ac_func | |
38651 | ||
a848cd7e SC |
38652 | /* System header to define __stub macros and hopefully few prototypes, |
38653 | which can conflict with char $ac_func (); below. | |
38654 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
38655 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 38656 | |
a848cd7e SC |
38657 | #ifdef __STDC__ |
38658 | # include <limits.h> | |
38659 | #else | |
38660 | # include <assert.h> | |
38661 | #endif | |
ac1cb8d3 VS |
38662 | |
38663 | #undef $ac_func | |
38664 | ||
47964710 VS |
38665 | /* Override any GCC internal prototype to avoid an error. |
38666 | Use char because int might match the return type of a GCC | |
38667 | builtin and then its argument prototype would still apply. */ | |
a848cd7e SC |
38668 | #ifdef __cplusplus |
38669 | extern "C" | |
a848cd7e | 38670 | #endif |
a848cd7e SC |
38671 | char $ac_func (); |
38672 | /* The GNU C library defines this for functions which it implements | |
38673 | to always fail with ENOSYS. Some functions are actually named | |
38674 | something starting with __ and the normal name is an alias. */ | |
47964710 | 38675 | #if defined __stub_$ac_func || defined __stub___$ac_func |
a848cd7e | 38676 | choke me |
a848cd7e SC |
38677 | #endif |
38678 | ||
38679 | int | |
38680 | main () | |
38681 | { | |
47964710 | 38682 | return $ac_func (); |
a848cd7e SC |
38683 | ; |
38684 | return 0; | |
38685 | } | |
38686 | _ACEOF | |
38687 | rm -f conftest.$ac_objext conftest$ac_exeext | |
47964710 VS |
38688 | if { (ac_try="$ac_link" |
38689 | case "(($ac_try" in | |
38690 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
38691 | *) ac_try_echo=$ac_try;; | |
38692 | esac | |
d589327a | 38693 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 38694 | (eval "$ac_link") 2>conftest.er1 |
a848cd7e | 38695 | ac_status=$? |
ac1cb8d3 VS |
38696 | grep -v '^ *+' conftest.er1 >conftest.err |
38697 | rm -f conftest.er1 | |
38698 | cat conftest.err >&5 | |
d589327a | 38699 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
38700 | (exit $ac_status); } && { |
38701 | test -z "$ac_c_werror_flag" || | |
38702 | test ! -s conftest.err | |
d589327a VZ |
38703 | } && test -s conftest$ac_exeext && |
38704 | $as_test_x conftest$ac_exeext; then | |
a848cd7e SC |
38705 | eval "$as_ac_var=yes" |
38706 | else | |
d589327a | 38707 | echo "$as_me: failed program was:" >&5 |
a848cd7e SC |
38708 | sed 's/^/| /' conftest.$ac_ext >&5 |
38709 | ||
47964710 | 38710 | eval "$as_ac_var=no" |
a848cd7e | 38711 | fi |
47964710 VS |
38712 | |
38713 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
ac1cb8d3 | 38714 | conftest$ac_exeext conftest.$ac_ext |
a848cd7e | 38715 | fi |
d589327a VZ |
38716 | ac_res=`eval echo '${'$as_ac_var'}'` |
38717 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
38718 | echo "${ECHO_T}$ac_res" >&6; } | |
38719 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
a848cd7e | 38720 | cat >>confdefs.h <<_ACEOF |
d589327a | 38721 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
a848cd7e SC |
38722 | _ACEOF |
38723 | cat >>confdefs.h <<\_ACEOF | |
38724 | #define HAVE_INET_ADDR 1 | |
38725 | _ACEOF | |
38726 | ||
38727 | else | |
38728 | ||
d589327a VZ |
38729 | { echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5 |
38730 | echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6; } | |
a848cd7e | 38731 | if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then |
d589327a | 38732 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a848cd7e SC |
38733 | else |
38734 | ac_check_lib_save_LIBS=$LIBS | |
38735 | LIBS="-lnsl $LIBS" | |
38736 | cat >conftest.$ac_ext <<_ACEOF | |
38737 | /* confdefs.h. */ | |
38738 | _ACEOF | |
38739 | cat confdefs.h >>conftest.$ac_ext | |
38740 | cat >>conftest.$ac_ext <<_ACEOF | |
38741 | /* end confdefs.h. */ | |
38742 | ||
47964710 VS |
38743 | /* Override any GCC internal prototype to avoid an error. |
38744 | Use char because int might match the return type of a GCC | |
38745 | builtin and then its argument prototype would still apply. */ | |
a848cd7e SC |
38746 | #ifdef __cplusplus |
38747 | extern "C" | |
38748 | #endif | |
a848cd7e SC |
38749 | char inet_addr (); |
38750 | int | |
38751 | main () | |
38752 | { | |
47964710 | 38753 | return inet_addr (); |
a848cd7e SC |
38754 | ; |
38755 | return 0; | |
38756 | } | |
38757 | _ACEOF | |
38758 | rm -f conftest.$ac_objext conftest$ac_exeext | |
47964710 VS |
38759 | if { (ac_try="$ac_link" |
38760 | case "(($ac_try" in | |
38761 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
38762 | *) ac_try_echo=$ac_try;; | |
38763 | esac | |
d589327a | 38764 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 38765 | (eval "$ac_link") 2>conftest.er1 |
a848cd7e | 38766 | ac_status=$? |
ac1cb8d3 VS |
38767 | grep -v '^ *+' conftest.er1 >conftest.err |
38768 | rm -f conftest.er1 | |
38769 | cat conftest.err >&5 | |
d589327a | 38770 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
38771 | (exit $ac_status); } && { |
38772 | test -z "$ac_c_werror_flag" || | |
38773 | test ! -s conftest.err | |
d589327a VZ |
38774 | } && test -s conftest$ac_exeext && |
38775 | $as_test_x conftest$ac_exeext; then | |
a848cd7e SC |
38776 | ac_cv_lib_nsl_inet_addr=yes |
38777 | else | |
d589327a | 38778 | echo "$as_me: failed program was:" >&5 |
a848cd7e SC |
38779 | sed 's/^/| /' conftest.$ac_ext >&5 |
38780 | ||
47964710 | 38781 | ac_cv_lib_nsl_inet_addr=no |
a848cd7e | 38782 | fi |
47964710 VS |
38783 | |
38784 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
ac1cb8d3 | 38785 | conftest$ac_exeext conftest.$ac_ext |
a848cd7e SC |
38786 | LIBS=$ac_check_lib_save_LIBS |
38787 | fi | |
d589327a VZ |
38788 | { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5 |
38789 | echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6; } | |
38790 | if test $ac_cv_lib_nsl_inet_addr = yes; then | |
a848cd7e SC |
38791 | INET_LINK="nsl" |
38792 | else | |
38793 | ||
d589327a VZ |
38794 | { echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5 |
38795 | echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6; } | |
a848cd7e | 38796 | if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then |
d589327a | 38797 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a848cd7e SC |
38798 | else |
38799 | ac_check_lib_save_LIBS=$LIBS | |
38800 | LIBS="-lresolv $LIBS" | |
38801 | cat >conftest.$ac_ext <<_ACEOF | |
38802 | /* confdefs.h. */ | |
38803 | _ACEOF | |
38804 | cat confdefs.h >>conftest.$ac_ext | |
38805 | cat >>conftest.$ac_ext <<_ACEOF | |
38806 | /* end confdefs.h. */ | |
38807 | ||
47964710 VS |
38808 | /* Override any GCC internal prototype to avoid an error. |
38809 | Use char because int might match the return type of a GCC | |
38810 | builtin and then its argument prototype would still apply. */ | |
a848cd7e SC |
38811 | #ifdef __cplusplus |
38812 | extern "C" | |
38813 | #endif | |
a848cd7e SC |
38814 | char inet_addr (); |
38815 | int | |
38816 | main () | |
38817 | { | |
47964710 | 38818 | return inet_addr (); |
a848cd7e SC |
38819 | ; |
38820 | return 0; | |
38821 | } | |
38822 | _ACEOF | |
38823 | rm -f conftest.$ac_objext conftest$ac_exeext | |
47964710 VS |
38824 | if { (ac_try="$ac_link" |
38825 | case "(($ac_try" in | |
38826 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
38827 | *) ac_try_echo=$ac_try;; | |
38828 | esac | |
d589327a | 38829 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 38830 | (eval "$ac_link") 2>conftest.er1 |
a848cd7e | 38831 | ac_status=$? |
ac1cb8d3 VS |
38832 | grep -v '^ *+' conftest.er1 >conftest.err |
38833 | rm -f conftest.er1 | |
38834 | cat conftest.err >&5 | |
d589327a | 38835 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
38836 | (exit $ac_status); } && { |
38837 | test -z "$ac_c_werror_flag" || | |
38838 | test ! -s conftest.err | |
d589327a VZ |
38839 | } && test -s conftest$ac_exeext && |
38840 | $as_test_x conftest$ac_exeext; then | |
a848cd7e SC |
38841 | ac_cv_lib_resolv_inet_addr=yes |
38842 | else | |
d589327a | 38843 | echo "$as_me: failed program was:" >&5 |
a848cd7e SC |
38844 | sed 's/^/| /' conftest.$ac_ext >&5 |
38845 | ||
47964710 | 38846 | ac_cv_lib_resolv_inet_addr=no |
a848cd7e | 38847 | fi |
47964710 VS |
38848 | |
38849 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
ac1cb8d3 | 38850 | conftest$ac_exeext conftest.$ac_ext |
a848cd7e SC |
38851 | LIBS=$ac_check_lib_save_LIBS |
38852 | fi | |
d589327a VZ |
38853 | { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5 |
38854 | echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6; } | |
38855 | if test $ac_cv_lib_resolv_inet_addr = yes; then | |
a848cd7e SC |
38856 | INET_LINK="resolv" |
38857 | else | |
38858 | ||
d589327a VZ |
38859 | { echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5 |
38860 | echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6; } | |
a848cd7e | 38861 | if test "${ac_cv_lib_socket_inet_addr+set}" = set; then |
d589327a | 38862 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a848cd7e SC |
38863 | else |
38864 | ac_check_lib_save_LIBS=$LIBS | |
38865 | LIBS="-lsocket $LIBS" | |
38866 | cat >conftest.$ac_ext <<_ACEOF | |
38867 | /* confdefs.h. */ | |
38868 | _ACEOF | |
38869 | cat confdefs.h >>conftest.$ac_ext | |
38870 | cat >>conftest.$ac_ext <<_ACEOF | |
38871 | /* end confdefs.h. */ | |
38872 | ||
47964710 VS |
38873 | /* Override any GCC internal prototype to avoid an error. |
38874 | Use char because int might match the return type of a GCC | |
38875 | builtin and then its argument prototype would still apply. */ | |
a848cd7e SC |
38876 | #ifdef __cplusplus |
38877 | extern "C" | |
38878 | #endif | |
a848cd7e SC |
38879 | char inet_addr (); |
38880 | int | |
38881 | main () | |
38882 | { | |
47964710 | 38883 | return inet_addr (); |
a848cd7e SC |
38884 | ; |
38885 | return 0; | |
38886 | } | |
38887 | _ACEOF | |
38888 | rm -f conftest.$ac_objext conftest$ac_exeext | |
47964710 VS |
38889 | if { (ac_try="$ac_link" |
38890 | case "(($ac_try" in | |
38891 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
38892 | *) ac_try_echo=$ac_try;; | |
38893 | esac | |
d589327a | 38894 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 38895 | (eval "$ac_link") 2>conftest.er1 |
a848cd7e | 38896 | ac_status=$? |
ac1cb8d3 VS |
38897 | grep -v '^ *+' conftest.er1 >conftest.err |
38898 | rm -f conftest.er1 | |
38899 | cat conftest.err >&5 | |
d589327a | 38900 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
38901 | (exit $ac_status); } && { |
38902 | test -z "$ac_c_werror_flag" || | |
38903 | test ! -s conftest.err | |
d589327a VZ |
38904 | } && test -s conftest$ac_exeext && |
38905 | $as_test_x conftest$ac_exeext; then | |
a848cd7e SC |
38906 | ac_cv_lib_socket_inet_addr=yes |
38907 | else | |
d589327a | 38908 | echo "$as_me: failed program was:" >&5 |
a848cd7e SC |
38909 | sed 's/^/| /' conftest.$ac_ext >&5 |
38910 | ||
47964710 | 38911 | ac_cv_lib_socket_inet_addr=no |
a848cd7e | 38912 | fi |
47964710 VS |
38913 | |
38914 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
ac1cb8d3 | 38915 | conftest$ac_exeext conftest.$ac_ext |
a848cd7e SC |
38916 | LIBS=$ac_check_lib_save_LIBS |
38917 | fi | |
d589327a VZ |
38918 | { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5 |
38919 | echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6; } | |
38920 | if test $ac_cv_lib_socket_inet_addr = yes; then | |
a848cd7e SC |
38921 | INET_LINK="socket" |
38922 | ||
38923 | fi | |
38924 | ||
38925 | ||
38926 | ||
38927 | fi | |
38928 | ||
38929 | ||
38930 | ||
38931 | fi | |
38932 | ||
38933 | ||
38934 | ||
38935 | fi | |
38936 | done | |
38937 | ||
38938 | ||
38939 | ||
38940 | for ac_func in inet_aton | |
38941 | do | |
d589327a VZ |
38942 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
38943 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
38944 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
47964710 | 38945 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
d589327a | 38946 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a848cd7e SC |
38947 | else |
38948 | cat >conftest.$ac_ext <<_ACEOF | |
38949 | /* confdefs.h. */ | |
38950 | _ACEOF | |
38951 | cat confdefs.h >>conftest.$ac_ext | |
38952 | cat >>conftest.$ac_ext <<_ACEOF | |
38953 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
38954 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
38955 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
38956 | #define $ac_func innocuous_$ac_func | |
38957 | ||
a848cd7e SC |
38958 | /* System header to define __stub macros and hopefully few prototypes, |
38959 | which can conflict with char $ac_func (); below. | |
38960 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
38961 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 38962 | |
a848cd7e SC |
38963 | #ifdef __STDC__ |
38964 | # include <limits.h> | |
38965 | #else | |
38966 | # include <assert.h> | |
38967 | #endif | |
ac1cb8d3 VS |
38968 | |
38969 | #undef $ac_func | |
38970 | ||
47964710 VS |
38971 | /* Override any GCC internal prototype to avoid an error. |
38972 | Use char because int might match the return type of a GCC | |
38973 | builtin and then its argument prototype would still apply. */ | |
a848cd7e SC |
38974 | #ifdef __cplusplus |
38975 | extern "C" | |
a848cd7e | 38976 | #endif |
a848cd7e SC |
38977 | char $ac_func (); |
38978 | /* The GNU C library defines this for functions which it implements | |
38979 | to always fail with ENOSYS. Some functions are actually named | |
38980 | something starting with __ and the normal name is an alias. */ | |
47964710 | 38981 | #if defined __stub_$ac_func || defined __stub___$ac_func |
a848cd7e | 38982 | choke me |
a848cd7e SC |
38983 | #endif |
38984 | ||
38985 | int | |
38986 | main () | |
38987 | { | |
47964710 | 38988 | return $ac_func (); |
a848cd7e SC |
38989 | ; |
38990 | return 0; | |
38991 | } | |
38992 | _ACEOF | |
38993 | rm -f conftest.$ac_objext conftest$ac_exeext | |
47964710 VS |
38994 | if { (ac_try="$ac_link" |
38995 | case "(($ac_try" in | |
38996 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
38997 | *) ac_try_echo=$ac_try;; | |
38998 | esac | |
d589327a | 38999 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 39000 | (eval "$ac_link") 2>conftest.er1 |
a848cd7e | 39001 | ac_status=$? |
ac1cb8d3 VS |
39002 | grep -v '^ *+' conftest.er1 >conftest.err |
39003 | rm -f conftest.er1 | |
39004 | cat conftest.err >&5 | |
d589327a | 39005 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
39006 | (exit $ac_status); } && { |
39007 | test -z "$ac_c_werror_flag" || | |
39008 | test ! -s conftest.err | |
d589327a VZ |
39009 | } && test -s conftest$ac_exeext && |
39010 | $as_test_x conftest$ac_exeext; then | |
a848cd7e SC |
39011 | eval "$as_ac_var=yes" |
39012 | else | |
d589327a | 39013 | echo "$as_me: failed program was:" >&5 |
a848cd7e SC |
39014 | sed 's/^/| /' conftest.$ac_ext >&5 |
39015 | ||
47964710 | 39016 | eval "$as_ac_var=no" |
a848cd7e | 39017 | fi |
47964710 VS |
39018 | |
39019 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
ac1cb8d3 | 39020 | conftest$ac_exeext conftest.$ac_ext |
a848cd7e | 39021 | fi |
d589327a VZ |
39022 | ac_res=`eval echo '${'$as_ac_var'}'` |
39023 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
39024 | echo "${ECHO_T}$ac_res" >&6; } | |
39025 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
a848cd7e | 39026 | cat >>confdefs.h <<_ACEOF |
d589327a | 39027 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
a848cd7e SC |
39028 | _ACEOF |
39029 | cat >>confdefs.h <<\_ACEOF | |
39030 | #define HAVE_INET_ATON 1 | |
39031 | _ACEOF | |
39032 | ||
39033 | else | |
39034 | ||
d589327a VZ |
39035 | as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh` |
39036 | { echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5 | |
39037 | echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6; } | |
47964710 | 39038 | if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then |
d589327a | 39039 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a848cd7e SC |
39040 | else |
39041 | ac_check_lib_save_LIBS=$LIBS | |
39042 | LIBS="-l$INET_LINK $LIBS" | |
39043 | cat >conftest.$ac_ext <<_ACEOF | |
39044 | /* confdefs.h. */ | |
39045 | _ACEOF | |
39046 | cat confdefs.h >>conftest.$ac_ext | |
39047 | cat >>conftest.$ac_ext <<_ACEOF | |
39048 | /* end confdefs.h. */ | |
39049 | ||
47964710 VS |
39050 | /* Override any GCC internal prototype to avoid an error. |
39051 | Use char because int might match the return type of a GCC | |
39052 | builtin and then its argument prototype would still apply. */ | |
a848cd7e SC |
39053 | #ifdef __cplusplus |
39054 | extern "C" | |
39055 | #endif | |
a848cd7e SC |
39056 | char inet_aton (); |
39057 | int | |
39058 | main () | |
39059 | { | |
47964710 | 39060 | return inet_aton (); |
a848cd7e SC |
39061 | ; |
39062 | return 0; | |
39063 | } | |
39064 | _ACEOF | |
39065 | rm -f conftest.$ac_objext conftest$ac_exeext | |
47964710 VS |
39066 | if { (ac_try="$ac_link" |
39067 | case "(($ac_try" in | |
39068 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
39069 | *) ac_try_echo=$ac_try;; | |
39070 | esac | |
d589327a | 39071 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 39072 | (eval "$ac_link") 2>conftest.er1 |
a848cd7e | 39073 | ac_status=$? |
ac1cb8d3 VS |
39074 | grep -v '^ *+' conftest.er1 >conftest.err |
39075 | rm -f conftest.er1 | |
39076 | cat conftest.err >&5 | |
d589327a | 39077 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
39078 | (exit $ac_status); } && { |
39079 | test -z "$ac_c_werror_flag" || | |
39080 | test ! -s conftest.err | |
d589327a VZ |
39081 | } && test -s conftest$ac_exeext && |
39082 | $as_test_x conftest$ac_exeext; then | |
a848cd7e SC |
39083 | eval "$as_ac_Lib=yes" |
39084 | else | |
d589327a | 39085 | echo "$as_me: failed program was:" >&5 |
a848cd7e SC |
39086 | sed 's/^/| /' conftest.$ac_ext >&5 |
39087 | ||
47964710 | 39088 | eval "$as_ac_Lib=no" |
a848cd7e | 39089 | fi |
47964710 VS |
39090 | |
39091 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
ac1cb8d3 | 39092 | conftest$ac_exeext conftest.$ac_ext |
a848cd7e SC |
39093 | LIBS=$ac_check_lib_save_LIBS |
39094 | fi | |
d589327a VZ |
39095 | ac_res=`eval echo '${'$as_ac_Lib'}'` |
39096 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
39097 | echo "${ECHO_T}$ac_res" >&6; } | |
39098 | if test `eval echo '${'$as_ac_Lib'}'` = yes; then | |
a848cd7e SC |
39099 | cat >>confdefs.h <<\_ACEOF |
39100 | #define HAVE_INET_ATON 1 | |
39101 | _ACEOF | |
39102 | ||
39103 | fi | |
39104 | ||
39105 | ||
39106 | fi | |
39107 | done | |
39108 | ||
39109 | ||
39110 | if test "x$INET_LINK" != "x"; then | |
39111 | cat >>confdefs.h <<\_ACEOF | |
39112 | #define HAVE_INET_ADDR 1 | |
39113 | _ACEOF | |
39114 | ||
39115 | INET_LINK=" -l$INET_LINK" | |
39116 | fi | |
39117 | ||
f8f6c91a MW |
39118 | |
39119 | for wx_func in fdopen | |
39120 | do | |
d589327a VZ |
39121 | { echo "$as_me:$LINENO: checking for $wx_func" >&5 |
39122 | echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; } | |
47964710 | 39123 | if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then |
d589327a | 39124 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
f8f6c91a MW |
39125 | else |
39126 | ||
39127 | cat >conftest.$ac_ext <<_ACEOF | |
39128 | ||
39129 | /* confdefs.h. */ | |
39130 | _ACEOF | |
39131 | cat confdefs.h >>conftest.$ac_ext | |
39132 | cat >>conftest.$ac_ext <<_ACEOF | |
39133 | /* end confdefs.h. */ | |
39134 | ||
39135 | ||
39136 | $ac_includes_default | |
39137 | ||
39138 | int | |
39139 | main () | |
39140 | { | |
39141 | ||
39142 | #ifndef $wx_func | |
39143 | &$wx_func; | |
39144 | #endif | |
39145 | ||
39146 | ||
39147 | ; | |
39148 | return 0; | |
39149 | } | |
39150 | ||
39151 | _ACEOF | |
39152 | rm -f conftest.$ac_objext conftest$ac_exeext | |
47964710 VS |
39153 | if { (ac_try="$ac_link" |
39154 | case "(($ac_try" in | |
39155 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
39156 | *) ac_try_echo=$ac_try;; | |
39157 | esac | |
d589327a | 39158 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 39159 | (eval "$ac_link") 2>conftest.er1 |
f8f6c91a MW |
39160 | ac_status=$? |
39161 | grep -v '^ *+' conftest.er1 >conftest.err | |
39162 | rm -f conftest.er1 | |
39163 | cat conftest.err >&5 | |
d589327a | 39164 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
39165 | (exit $ac_status); } && { |
39166 | test -z "$ac_c_werror_flag" || | |
39167 | test ! -s conftest.err | |
d589327a VZ |
39168 | } && test -s conftest$ac_exeext && |
39169 | $as_test_x conftest$ac_exeext; then | |
f8f6c91a MW |
39170 | eval wx_cv_func_$wx_func=yes |
39171 | else | |
d589327a | 39172 | echo "$as_me: failed program was:" >&5 |
f8f6c91a MW |
39173 | sed 's/^/| /' conftest.$ac_ext >&5 |
39174 | ||
47964710 | 39175 | eval wx_cv_func_$wx_func=no |
a848cd7e | 39176 | fi |
47964710 VS |
39177 | |
39178 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
f8f6c91a MW |
39179 | conftest$ac_exeext conftest.$ac_ext |
39180 | ||
39181 | fi | |
d589327a VZ |
39182 | ac_res=`eval echo '${'wx_cv_func_$wx_func'}'` |
39183 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
39184 | echo "${ECHO_T}$ac_res" >&6; } | |
f8f6c91a MW |
39185 | |
39186 | if eval test \$wx_cv_func_$wx_func = yes | |
39187 | then | |
39188 | cat >>confdefs.h <<_ACEOF | |
d589327a | 39189 | #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1 |
f8f6c91a MW |
39190 | _ACEOF |
39191 | ||
39192 | ||
39193 | else | |
39194 | : | |
39195 | ||
39196 | fi | |
39197 | done | |
39198 | ||
39199 | ||
d3b8fe10 VZ |
39200 | if test "$wxUSE_TARSTREAM" = "yes"; then |
39201 | ||
39202 | for wx_func in sysconf | |
39203 | do | |
d589327a VZ |
39204 | { echo "$as_me:$LINENO: checking for $wx_func" >&5 |
39205 | echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; } | |
d3b8fe10 | 39206 | if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then |
d589327a | 39207 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
d3b8fe10 VZ |
39208 | else |
39209 | ||
39210 | cat >conftest.$ac_ext <<_ACEOF | |
39211 | ||
39212 | /* confdefs.h. */ | |
39213 | _ACEOF | |
39214 | cat confdefs.h >>conftest.$ac_ext | |
39215 | cat >>conftest.$ac_ext <<_ACEOF | |
39216 | /* end confdefs.h. */ | |
39217 | ||
39218 | ||
39219 | $ac_includes_default | |
39220 | ||
39221 | int | |
39222 | main () | |
39223 | { | |
39224 | ||
39225 | #ifndef $wx_func | |
39226 | &$wx_func; | |
39227 | #endif | |
39228 | ||
39229 | ||
39230 | ; | |
39231 | return 0; | |
39232 | } | |
39233 | ||
39234 | _ACEOF | |
39235 | rm -f conftest.$ac_objext conftest$ac_exeext | |
39236 | if { (ac_try="$ac_link" | |
39237 | case "(($ac_try" in | |
39238 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
39239 | *) ac_try_echo=$ac_try;; | |
39240 | esac | |
d589327a | 39241 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
d3b8fe10 VZ |
39242 | (eval "$ac_link") 2>conftest.er1 |
39243 | ac_status=$? | |
39244 | grep -v '^ *+' conftest.er1 >conftest.err | |
39245 | rm -f conftest.er1 | |
39246 | cat conftest.err >&5 | |
d589327a | 39247 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d3b8fe10 VZ |
39248 | (exit $ac_status); } && { |
39249 | test -z "$ac_c_werror_flag" || | |
39250 | test ! -s conftest.err | |
d589327a VZ |
39251 | } && test -s conftest$ac_exeext && |
39252 | $as_test_x conftest$ac_exeext; then | |
d3b8fe10 VZ |
39253 | eval wx_cv_func_$wx_func=yes |
39254 | else | |
d589327a | 39255 | echo "$as_me: failed program was:" >&5 |
d3b8fe10 VZ |
39256 | sed 's/^/| /' conftest.$ac_ext >&5 |
39257 | ||
39258 | eval wx_cv_func_$wx_func=no | |
39259 | fi | |
39260 | ||
39261 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
39262 | conftest$ac_exeext conftest.$ac_ext | |
39263 | ||
39264 | fi | |
d589327a VZ |
39265 | ac_res=`eval echo '${'wx_cv_func_$wx_func'}'` |
39266 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
39267 | echo "${ECHO_T}$ac_res" >&6; } | |
d3b8fe10 VZ |
39268 | |
39269 | if eval test \$wx_cv_func_$wx_func = yes | |
39270 | then | |
39271 | cat >>confdefs.h <<_ACEOF | |
d589327a | 39272 | #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1 |
d3b8fe10 VZ |
39273 | _ACEOF |
39274 | ||
39275 | ||
39276 | else | |
39277 | : | |
39278 | ||
39279 | fi | |
39280 | done | |
39281 | ||
39282 | ||
85d2919f | 39283 | |
d3b8fe10 VZ |
39284 | for wx_func in getpwuid_r |
39285 | do | |
d589327a VZ |
39286 | { echo "$as_me:$LINENO: checking for $wx_func" >&5 |
39287 | echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; } | |
d3b8fe10 | 39288 | if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then |
d589327a | 39289 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
d3b8fe10 VZ |
39290 | else |
39291 | ||
39292 | cat >conftest.$ac_ext <<_ACEOF | |
39293 | ||
39294 | /* confdefs.h. */ | |
39295 | _ACEOF | |
39296 | cat confdefs.h >>conftest.$ac_ext | |
39297 | cat >>conftest.$ac_ext <<_ACEOF | |
39298 | /* end confdefs.h. */ | |
39299 | ||
85d2919f MW |
39300 | |
39301 | #define _REENTRANT | |
39302 | #include <pwd.h> | |
39303 | ||
d3b8fe10 VZ |
39304 | $ac_includes_default |
39305 | ||
39306 | int | |
39307 | main () | |
39308 | { | |
39309 | ||
39310 | #ifndef $wx_func | |
39311 | &$wx_func; | |
39312 | #endif | |
39313 | ||
85d2919f MW |
39314 | struct passwd pw, *ppw; |
39315 | char buf[1024]; | |
39316 | getpwuid_r(0, &pw, buf, sizeof(buf), &ppw) | |
39317 | ||
d3b8fe10 VZ |
39318 | |
39319 | ; | |
39320 | return 0; | |
39321 | } | |
39322 | ||
39323 | _ACEOF | |
39324 | rm -f conftest.$ac_objext conftest$ac_exeext | |
39325 | if { (ac_try="$ac_link" | |
39326 | case "(($ac_try" in | |
39327 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
39328 | *) ac_try_echo=$ac_try;; | |
39329 | esac | |
d589327a | 39330 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
d3b8fe10 VZ |
39331 | (eval "$ac_link") 2>conftest.er1 |
39332 | ac_status=$? | |
39333 | grep -v '^ *+' conftest.er1 >conftest.err | |
39334 | rm -f conftest.er1 | |
39335 | cat conftest.err >&5 | |
d589327a | 39336 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d3b8fe10 VZ |
39337 | (exit $ac_status); } && { |
39338 | test -z "$ac_c_werror_flag" || | |
39339 | test ! -s conftest.err | |
d589327a VZ |
39340 | } && test -s conftest$ac_exeext && |
39341 | $as_test_x conftest$ac_exeext; then | |
d3b8fe10 VZ |
39342 | eval wx_cv_func_$wx_func=yes |
39343 | else | |
d589327a | 39344 | echo "$as_me: failed program was:" >&5 |
d3b8fe10 VZ |
39345 | sed 's/^/| /' conftest.$ac_ext >&5 |
39346 | ||
39347 | eval wx_cv_func_$wx_func=no | |
39348 | fi | |
39349 | ||
39350 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
39351 | conftest$ac_exeext conftest.$ac_ext | |
39352 | ||
39353 | fi | |
d589327a VZ |
39354 | ac_res=`eval echo '${'wx_cv_func_$wx_func'}'` |
39355 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
39356 | echo "${ECHO_T}$ac_res" >&6; } | |
d3b8fe10 VZ |
39357 | |
39358 | if eval test \$wx_cv_func_$wx_func = yes | |
39359 | then | |
39360 | cat >>confdefs.h <<_ACEOF | |
d589327a | 39361 | #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1 |
d3b8fe10 VZ |
39362 | _ACEOF |
39363 | ||
39364 | ||
39365 | else | |
39366 | : | |
39367 | ||
39368 | fi | |
39369 | done | |
39370 | ||
39371 | ||
85d2919f | 39372 | |
d3b8fe10 VZ |
39373 | for wx_func in getgrgid_r |
39374 | do | |
d589327a VZ |
39375 | { echo "$as_me:$LINENO: checking for $wx_func" >&5 |
39376 | echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; } | |
d3b8fe10 | 39377 | if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then |
d589327a | 39378 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
d3b8fe10 VZ |
39379 | else |
39380 | ||
39381 | cat >conftest.$ac_ext <<_ACEOF | |
39382 | ||
39383 | /* confdefs.h. */ | |
39384 | _ACEOF | |
39385 | cat confdefs.h >>conftest.$ac_ext | |
39386 | cat >>conftest.$ac_ext <<_ACEOF | |
39387 | /* end confdefs.h. */ | |
39388 | ||
85d2919f MW |
39389 | |
39390 | #define _REENTRANT | |
39391 | #include <grp.h> | |
39392 | ||
d3b8fe10 VZ |
39393 | $ac_includes_default |
39394 | ||
39395 | int | |
39396 | main () | |
39397 | { | |
39398 | ||
39399 | #ifndef $wx_func | |
39400 | &$wx_func; | |
39401 | #endif | |
39402 | ||
85d2919f MW |
39403 | struct group grp, *pgrp; |
39404 | char buf[1024]; | |
39405 | getgrgid_r(0, &grp, buf, sizeof(buf), &pgrp) | |
39406 | ||
d3b8fe10 VZ |
39407 | |
39408 | ; | |
39409 | return 0; | |
39410 | } | |
39411 | ||
39412 | _ACEOF | |
39413 | rm -f conftest.$ac_objext conftest$ac_exeext | |
39414 | if { (ac_try="$ac_link" | |
39415 | case "(($ac_try" in | |
39416 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
39417 | *) ac_try_echo=$ac_try;; | |
39418 | esac | |
d589327a | 39419 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
d3b8fe10 VZ |
39420 | (eval "$ac_link") 2>conftest.er1 |
39421 | ac_status=$? | |
39422 | grep -v '^ *+' conftest.er1 >conftest.err | |
39423 | rm -f conftest.er1 | |
39424 | cat conftest.err >&5 | |
d589327a | 39425 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d3b8fe10 VZ |
39426 | (exit $ac_status); } && { |
39427 | test -z "$ac_c_werror_flag" || | |
39428 | test ! -s conftest.err | |
d589327a VZ |
39429 | } && test -s conftest$ac_exeext && |
39430 | $as_test_x conftest$ac_exeext; then | |
d3b8fe10 VZ |
39431 | eval wx_cv_func_$wx_func=yes |
39432 | else | |
d589327a | 39433 | echo "$as_me: failed program was:" >&5 |
d3b8fe10 VZ |
39434 | sed 's/^/| /' conftest.$ac_ext >&5 |
39435 | ||
39436 | eval wx_cv_func_$wx_func=no | |
39437 | fi | |
39438 | ||
39439 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
39440 | conftest$ac_exeext conftest.$ac_ext | |
39441 | ||
39442 | fi | |
d589327a VZ |
39443 | ac_res=`eval echo '${'wx_cv_func_$wx_func'}'` |
39444 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
39445 | echo "${ECHO_T}$ac_res" >&6; } | |
d3b8fe10 VZ |
39446 | |
39447 | if eval test \$wx_cv_func_$wx_func = yes | |
39448 | then | |
39449 | cat >>confdefs.h <<_ACEOF | |
d589327a | 39450 | #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1 |
d3b8fe10 VZ |
39451 | _ACEOF |
39452 | ||
39453 | ||
39454 | else | |
39455 | : | |
39456 | ||
39457 | fi | |
39458 | done | |
39459 | ||
39460 | fi | |
39461 | ||
f8f6c91a MW |
39462 | fi |
39463 | ||
a848cd7e SC |
39464 | |
39465 | ||
a848cd7e SC |
39466 | cat >confcache <<\_ACEOF |
39467 | # This file is a shell script that caches the results of configure | |
39468 | # tests run on this system so they can be shared between configure | |
39469 | # scripts and configure runs, see configure's option --config-cache. | |
39470 | # It is not useful on other systems. If it contains results you don't | |
39471 | # want to keep, you may remove or edit it. | |
39472 | # | |
39473 | # config.status only pays attention to the cache file if you give it | |
39474 | # the --recheck option to rerun configure. | |
39475 | # | |
39476 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
39477 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
39478 | # following values. | |
39479 | ||
39480 | _ACEOF | |
39481 | ||
39482 | # The following way of writing the cache mishandles newlines in values, | |
39483 | # but we know of no workaround that is simple, portable, and efficient. | |
47964710 | 39484 | # So, we kill variables containing newlines. |
a848cd7e SC |
39485 | # Ultrix sh set writes to stderr and can't be redirected directly, |
39486 | # and sets the high bit in the cache file unless we assign to the vars. | |
47964710 VS |
39487 | ( |
39488 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
39489 | eval ac_val=\$$ac_var | |
39490 | case $ac_val in #( | |
39491 | *${as_nl}*) | |
39492 | case $ac_var in #( | |
d589327a VZ |
39493 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
39494 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; | |
47964710 VS |
39495 | esac |
39496 | case $ac_var in #( | |
39497 | _ | IFS | as_nl) ;; #( | |
39498 | *) $as_unset $ac_var ;; | |
39499 | esac ;; | |
39500 | esac | |
39501 | done | |
39502 | ||
a848cd7e | 39503 | (set) 2>&1 | |
47964710 VS |
39504 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
39505 | *${as_nl}ac_space=\ *) | |
a848cd7e SC |
39506 | # `set' does not quote correctly, so add quotes (double-quote |
39507 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
39508 | sed -n \ | |
ac1cb8d3 VS |
39509 | "s/'/'\\\\''/g; |
39510 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
47964710 | 39511 | ;; #( |
a848cd7e SC |
39512 | *) |
39513 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
47964710 | 39514 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
a848cd7e | 39515 | ;; |
47964710 VS |
39516 | esac | |
39517 | sort | |
39518 | ) | | |
a848cd7e | 39519 | sed ' |
47964710 | 39520 | /^ac_cv_env_/b end |
a848cd7e | 39521 | t clear |
47964710 | 39522 | :clear |
a848cd7e SC |
39523 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
39524 | t end | |
47964710 VS |
39525 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
39526 | :end' >>confcache | |
39527 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
39528 | if test -w "$cache_file"; then | |
39529 | test "x$cache_file" != "x/dev/null" && | |
d589327a VZ |
39530 | { echo "$as_me:$LINENO: updating cache $cache_file" >&5 |
39531 | echo "$as_me: updating cache $cache_file" >&6;} | |
a848cd7e SC |
39532 | cat confcache >$cache_file |
39533 | else | |
d589327a VZ |
39534 | { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 |
39535 | echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
a848cd7e SC |
39536 | fi |
39537 | fi | |
39538 | rm -f confcache | |
39539 | ||
39540 | ||
a848cd7e SC |
39541 | if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then |
39542 | ||
39543 | ||
39544 | THREADS_LINK= | |
9b8888f9 | 39545 | THREADS_CFLAGS= |
a848cd7e SC |
39546 | |
39547 | if test "$wxUSE_THREADS" = "yes" ; then | |
39548 | if test "$USE_BEOS" = 1; then | |
d589327a VZ |
39549 | { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5 |
39550 | echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;} | |
a848cd7e SC |
39551 | wxUSE_THREADS="no" |
39552 | fi | |
39553 | fi | |
39554 | ||
39555 | if test "$wxUSE_THREADS" = "yes" ; then | |
39556 | ||
39557 | ||
39558 | THREAD_OPTS="-pthread" | |
43a7c679 VZ |
39559 | if test "x$SUNCXX" = xyes; then |
39560 | THREAD_OPTS="-mt lthread $THREAD_OPTS" | |
39561 | fi | |
39562 | ||
a848cd7e SC |
39563 | case "${host}" in |
39564 | *-*-solaris2* | *-*-sunos4* ) | |
39565 | if test "x$GCC" = "xyes"; then | |
39566 | THREAD_OPTS="-pthreads $THREAD_OPTS" | |
a848cd7e SC |
39567 | fi |
39568 | ;; | |
39569 | *-*-freebsd*) | |
39570 | THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r" | |
39571 | ;; | |
39572 | *-*-darwin* | *-*-cygwin* ) | |
39573 | THREAD_OPTS="" | |
39574 | ;; | |
39575 | *-*-aix*) | |
39576 | THREAD_OPTS="pthreads" | |
39577 | ;; | |
39578 | *-hp-hpux* ) | |
00421666 MW |
39579 | if test "x$GCC" = "xyes"; then |
39580 | $CXX -dumpspecs | grep 'pthread:' >/dev/null || | |
39581 | THREAD_OPTS="" | |
39582 | else | |
0093c2fc | 39583 | THREAD_OPTS="-mt" |
a848cd7e SC |
39584 | fi |
39585 | ;; | |
39586 | ||
39587 | *-*-irix* ) | |
39588 | if test "x$GCC" = "xyes"; then | |
39589 | THREAD_OPTS="" | |
39590 | fi | |
39591 | ;; | |
39592 | ||
229251af VZ |
39593 | *-*-qnx*) |
39594 | THREAD_OPTS="" | |
39595 | ;; | |
39596 | ||
a848cd7e SC |
39597 | *-*-*UnixWare*) |
39598 | if test "x$GCC" != "xyes"; then | |
39599 | THREAD_OPTS="-Ethread" | |
39600 | fi | |
39601 | ;; | |
39602 | esac | |
39603 | ||
229251af VZ |
39604 | case "${host}" in |
39605 | *-*-qnx*) | |
39606 | THREAD_OPTS="none pthread" | |
39607 | ;; | |
39608 | ||
39609 | *) | |
39610 | THREAD_OPTS="$THREAD_OPTS pthread none" | |
39611 | ;; | |
39612 | esac | |
a848cd7e SC |
39613 | |
39614 | THREADS_OK=no | |
39615 | for flag in $THREAD_OPTS; do | |
39616 | case $flag in | |
39617 | none) | |
d589327a VZ |
39618 | { echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5 |
39619 | echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6; } | |
a848cd7e SC |
39620 | ;; |
39621 | ||
39622 | -*) | |
d589327a VZ |
39623 | { echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5 |
39624 | echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6; } | |
9b8888f9 | 39625 | THREADS_CFLAGS="$flag" |
a848cd7e SC |
39626 | ;; |
39627 | ||
39628 | *) | |
d589327a VZ |
39629 | { echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5 |
39630 | echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6; } | |
a848cd7e SC |
39631 | THREADS_LINK="-l$flag" |
39632 | ;; | |
39633 | esac | |
39634 | ||
39635 | save_LIBS="$LIBS" | |
9b8888f9 | 39636 | save_CFLAGS="$CFLAGS" |
a848cd7e | 39637 | LIBS="$THREADS_LINK $LIBS" |
9b8888f9 | 39638 | CFLAGS="$THREADS_CFLAGS $CFLAGS" |
a848cd7e SC |
39639 | |
39640 | cat >conftest.$ac_ext <<_ACEOF | |
39641 | /* confdefs.h. */ | |
39642 | _ACEOF | |
39643 | cat confdefs.h >>conftest.$ac_ext | |
39644 | cat >>conftest.$ac_ext <<_ACEOF | |
39645 | /* end confdefs.h. */ | |
39646 | #include <pthread.h> | |
39647 | int | |
39648 | main () | |
39649 | { | |
39650 | pthread_create(0,0,0,0); | |
39651 | ; | |
39652 | return 0; | |
39653 | } | |
39654 | _ACEOF | |
39655 | rm -f conftest.$ac_objext conftest$ac_exeext | |
47964710 VS |
39656 | if { (ac_try="$ac_link" |
39657 | case "(($ac_try" in | |
39658 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
39659 | *) ac_try_echo=$ac_try;; | |
39660 | esac | |
d589327a | 39661 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 39662 | (eval "$ac_link") 2>conftest.er1 |
a848cd7e | 39663 | ac_status=$? |
ac1cb8d3 VS |
39664 | grep -v '^ *+' conftest.er1 >conftest.err |
39665 | rm -f conftest.er1 | |
39666 | cat conftest.err >&5 | |
d589327a | 39667 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
39668 | (exit $ac_status); } && { |
39669 | test -z "$ac_c_werror_flag" || | |
39670 | test ! -s conftest.err | |
d589327a VZ |
39671 | } && test -s conftest$ac_exeext && |
39672 | $as_test_x conftest$ac_exeext; then | |
a848cd7e SC |
39673 | THREADS_OK=yes |
39674 | else | |
d589327a | 39675 | echo "$as_me: failed program was:" >&5 |
a848cd7e SC |
39676 | sed 's/^/| /' conftest.$ac_ext >&5 |
39677 | ||
47964710 | 39678 | |
a848cd7e | 39679 | fi |
47964710 VS |
39680 | |
39681 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
ac1cb8d3 | 39682 | conftest$ac_exeext conftest.$ac_ext |
a848cd7e SC |
39683 | |
39684 | LIBS="$save_LIBS" | |
9b8888f9 | 39685 | CFLAGS="$save_CFLAGS" |
a848cd7e | 39686 | |
d589327a VZ |
39687 | { echo "$as_me:$LINENO: result: $THREADS_OK" >&5 |
39688 | echo "${ECHO_T}$THREADS_OK" >&6; } | |
a848cd7e SC |
39689 | if test "x$THREADS_OK" = "xyes"; then |
39690 | break; | |
39691 | fi | |
39692 | ||
39693 | THREADS_LINK="" | |
9b8888f9 | 39694 | THREADS_CFLAGS="" |
a848cd7e SC |
39695 | done |
39696 | ||
39697 | if test "x$THREADS_OK" != "xyes"; then | |
39698 | wxUSE_THREADS=no | |
d589327a VZ |
39699 | { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5 |
39700 | echo "$as_me: WARNING: No thread support on this system... disabled" >&2;} | |
a848cd7e | 39701 | else |
d4fbe1d8 VZ |
39702 | LDFLAGS="$THREADS_CFLAGS $LDFLAGS" |
39703 | WXCONFIG_LDFLAGS="$THREADS_CFLAGS $WXCONFIG_LDFLAGS" | |
a848cd7e SC |
39704 | LIBS="$THREADS_LINK $LIBS" |
39705 | ||
d589327a VZ |
39706 | { echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5 |
39707 | echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6; } | |
a848cd7e SC |
39708 | flag=no |
39709 | case "${host}" in | |
39710 | *-aix*) | |
39711 | LDFLAGS="-L/usr/lib/threads $LDFLAGS" | |
d4fbe1d8 | 39712 | WXCONFIG_LDFLAGS="-L/usr/lib/threads $WXCONFIG_LDFLAGS" |
a848cd7e SC |
39713 | flag="-D_THREAD_SAFE" |
39714 | ;; | |
39715 | *-freebsd*) | |
39716 | flag="-D_THREAD_SAFE" | |
39717 | ;; | |
39718 | *-hp-hpux* ) | |
39719 | flag="-D_REENTRANT" | |
39720 | if test "x$GCC" != "xyes"; then | |
39721 | flag="$flag -D_RWSTD_MULTI_THREAD" | |
39722 | fi | |
39723 | ;; | |
39724 | *solaris* | alpha*-osf*) | |
39725 | flag="-D_REENTRANT" | |
39726 | ;; | |
39727 | esac | |
d589327a VZ |
39728 | { echo "$as_me:$LINENO: result: ${flag}" >&5 |
39729 | echo "${ECHO_T}${flag}" >&6; } | |
a848cd7e | 39730 | if test "x$flag" != xno; then |
9b8888f9 | 39731 | THREADS_CFLAGS="$THREADS_CFLAGS $flag" |
a848cd7e SC |
39732 | fi |
39733 | ||
9b8888f9 | 39734 | WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS $THREADS_CFLAGS" |
a848cd7e SC |
39735 | fi |
39736 | fi | |
39737 | ||
39738 | if test "$wxUSE_THREADS" = "yes" ; then | |
39739 | ||
39740 | for ac_func in thr_setconcurrency | |
39741 | do | |
d589327a VZ |
39742 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
39743 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
39744 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
47964710 | 39745 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
d589327a | 39746 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a848cd7e SC |
39747 | else |
39748 | cat >conftest.$ac_ext <<_ACEOF | |
39749 | /* confdefs.h. */ | |
39750 | _ACEOF | |
39751 | cat confdefs.h >>conftest.$ac_ext | |
39752 | cat >>conftest.$ac_ext <<_ACEOF | |
39753 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
39754 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
39755 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
39756 | #define $ac_func innocuous_$ac_func | |
39757 | ||
a848cd7e SC |
39758 | /* System header to define __stub macros and hopefully few prototypes, |
39759 | which can conflict with char $ac_func (); below. | |
39760 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
39761 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 39762 | |
a848cd7e SC |
39763 | #ifdef __STDC__ |
39764 | # include <limits.h> | |
39765 | #else | |
39766 | # include <assert.h> | |
39767 | #endif | |
ac1cb8d3 VS |
39768 | |
39769 | #undef $ac_func | |
39770 | ||
47964710 VS |
39771 | /* Override any GCC internal prototype to avoid an error. |
39772 | Use char because int might match the return type of a GCC | |
39773 | builtin and then its argument prototype would still apply. */ | |
a848cd7e SC |
39774 | #ifdef __cplusplus |
39775 | extern "C" | |
a848cd7e | 39776 | #endif |
a848cd7e SC |
39777 | char $ac_func (); |
39778 | /* The GNU C library defines this for functions which it implements | |
39779 | to always fail with ENOSYS. Some functions are actually named | |
39780 | something starting with __ and the normal name is an alias. */ | |
47964710 | 39781 | #if defined __stub_$ac_func || defined __stub___$ac_func |
a848cd7e | 39782 | choke me |
a848cd7e SC |
39783 | #endif |
39784 | ||
39785 | int | |
39786 | main () | |
39787 | { | |
47964710 | 39788 | return $ac_func (); |
a848cd7e SC |
39789 | ; |
39790 | return 0; | |
39791 | } | |
39792 | _ACEOF | |
39793 | rm -f conftest.$ac_objext conftest$ac_exeext | |
47964710 VS |
39794 | if { (ac_try="$ac_link" |
39795 | case "(($ac_try" in | |
39796 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
39797 | *) ac_try_echo=$ac_try;; | |
39798 | esac | |
d589327a | 39799 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 39800 | (eval "$ac_link") 2>conftest.er1 |
a848cd7e | 39801 | ac_status=$? |
ac1cb8d3 VS |
39802 | grep -v '^ *+' conftest.er1 >conftest.err |
39803 | rm -f conftest.er1 | |
39804 | cat conftest.err >&5 | |
d589327a | 39805 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
39806 | (exit $ac_status); } && { |
39807 | test -z "$ac_c_werror_flag" || | |
39808 | test ! -s conftest.err | |
d589327a VZ |
39809 | } && test -s conftest$ac_exeext && |
39810 | $as_test_x conftest$ac_exeext; then | |
a848cd7e SC |
39811 | eval "$as_ac_var=yes" |
39812 | else | |
d589327a | 39813 | echo "$as_me: failed program was:" >&5 |
a848cd7e SC |
39814 | sed 's/^/| /' conftest.$ac_ext >&5 |
39815 | ||
47964710 | 39816 | eval "$as_ac_var=no" |
a848cd7e | 39817 | fi |
47964710 VS |
39818 | |
39819 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
ac1cb8d3 | 39820 | conftest$ac_exeext conftest.$ac_ext |
a848cd7e | 39821 | fi |
d589327a VZ |
39822 | ac_res=`eval echo '${'$as_ac_var'}'` |
39823 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
39824 | echo "${ECHO_T}$ac_res" >&6; } | |
39825 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
a848cd7e | 39826 | cat >>confdefs.h <<_ACEOF |
d589327a | 39827 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
a848cd7e SC |
39828 | _ACEOF |
39829 | ||
39830 | fi | |
39831 | done | |
39832 | ||
39833 | ||
d589327a VZ |
39834 | { echo "$as_me:$LINENO: checking for pthread_cleanup_push/pop" >&5 |
39835 | echo $ECHO_N "checking for pthread_cleanup_push/pop... $ECHO_C" >&6; } | |
6ebeb4c7 | 39836 | if test "${wx_cv_func_pthread_cleanup+set}" = set; then |
d589327a | 39837 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6ebeb4c7 VZ |
39838 | else |
39839 | ||
47964710 | 39840 | ac_ext=cpp |
43a7c679 VZ |
39841 | ac_cpp='$CXXCPP $CPPFLAGS' |
39842 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
39843 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
39844 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
39845 | ||
6ebeb4c7 VZ |
39846 | cat >conftest.$ac_ext <<_ACEOF |
39847 | /* confdefs.h. */ | |
39848 | _ACEOF | |
39849 | cat confdefs.h >>conftest.$ac_ext | |
39850 | cat >>conftest.$ac_ext <<_ACEOF | |
39851 | /* end confdefs.h. */ | |
39852 | #include <pthread.h> | |
39853 | void ThreadCleanupFunc(void *p); | |
39854 | ||
39855 | int | |
39856 | main () | |
39857 | { | |
39858 | ||
39859 | void *p; | |
39860 | pthread_cleanup_push(ThreadCleanupFunc, p); | |
39861 | pthread_cleanup_pop(0); | |
39862 | ||
39863 | ; | |
39864 | return 0; | |
39865 | } | |
39866 | _ACEOF | |
39867 | rm -f conftest.$ac_objext | |
47964710 VS |
39868 | if { (ac_try="$ac_compile" |
39869 | case "(($ac_try" in | |
39870 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
39871 | *) ac_try_echo=$ac_try;; | |
39872 | esac | |
d589327a | 39873 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 39874 | (eval "$ac_compile") 2>conftest.er1 |
6ebeb4c7 VZ |
39875 | ac_status=$? |
39876 | grep -v '^ *+' conftest.er1 >conftest.err | |
39877 | rm -f conftest.er1 | |
39878 | cat conftest.err >&5 | |
d589327a | 39879 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
39880 | (exit $ac_status); } && { |
39881 | test -z "$ac_cxx_werror_flag" || | |
39882 | test ! -s conftest.err | |
39883 | } && test -s conftest.$ac_objext; then | |
6ebeb4c7 VZ |
39884 | |
39885 | wx_cv_func_pthread_cleanup=yes | |
39886 | ||
39887 | else | |
d589327a | 39888 | echo "$as_me: failed program was:" >&5 |
6ebeb4c7 VZ |
39889 | sed 's/^/| /' conftest.$ac_ext >&5 |
39890 | ||
39891 | ||
39892 | wx_cv_func_pthread_cleanup=no | |
39893 | ||
39894 | ||
39895 | fi | |
47964710 VS |
39896 | |
39897 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
43a7c679 VZ |
39898 | ac_ext=c |
39899 | ac_cpp='$CPP $CPPFLAGS' | |
39900 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
39901 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
39902 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
39903 | ||
6ebeb4c7 VZ |
39904 | |
39905 | fi | |
d589327a VZ |
39906 | { echo "$as_me:$LINENO: result: $wx_cv_func_pthread_cleanup" >&5 |
39907 | echo "${ECHO_T}$wx_cv_func_pthread_cleanup" >&6; } | |
6ebeb4c7 VZ |
39908 | if test "x$wx_cv_func_pthread_cleanup" = "xyes"; then |
39909 | cat >>confdefs.h <<\_ACEOF | |
39910 | #define wxHAVE_PTHREAD_CLEANUP 1 | |
39911 | _ACEOF | |
39912 | ||
39913 | fi | |
39914 | ||
1f7e12cc DE |
39915 | |
39916 | for ac_header in sched.h | |
39917 | do | |
d589327a VZ |
39918 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
39919 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
39920 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
47964710 | 39921 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
d589327a | 39922 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a848cd7e | 39923 | else |
6e7b8bcb | 39924 | cat >conftest.$ac_ext <<_ACEOF |
a848cd7e SC |
39925 | /* confdefs.h. */ |
39926 | _ACEOF | |
39927 | cat confdefs.h >>conftest.$ac_ext | |
39928 | cat >>conftest.$ac_ext <<_ACEOF | |
39929 | /* end confdefs.h. */ | |
39930 | $ac_includes_default | |
6e7b8bcb | 39931 | |
1f7e12cc | 39932 | #include <$ac_header> |
a848cd7e SC |
39933 | _ACEOF |
39934 | rm -f conftest.$ac_objext | |
47964710 VS |
39935 | if { (ac_try="$ac_compile" |
39936 | case "(($ac_try" in | |
39937 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
39938 | *) ac_try_echo=$ac_try;; | |
39939 | esac | |
d589327a | 39940 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 39941 | (eval "$ac_compile") 2>conftest.er1 |
a848cd7e | 39942 | ac_status=$? |
ac1cb8d3 VS |
39943 | grep -v '^ *+' conftest.er1 >conftest.err |
39944 | rm -f conftest.er1 | |
39945 | cat conftest.err >&5 | |
d589327a | 39946 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
39947 | (exit $ac_status); } && { |
39948 | test -z "$ac_c_werror_flag" || | |
39949 | test ! -s conftest.err | |
39950 | } && test -s conftest.$ac_objext; then | |
1f7e12cc | 39951 | eval "$as_ac_Header=yes" |
a848cd7e | 39952 | else |
d589327a | 39953 | echo "$as_me: failed program was:" >&5 |
a848cd7e SC |
39954 | sed 's/^/| /' conftest.$ac_ext >&5 |
39955 | ||
47964710 | 39956 | eval "$as_ac_Header=no" |
a848cd7e | 39957 | fi |
47964710 VS |
39958 | |
39959 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
a848cd7e | 39960 | fi |
d589327a VZ |
39961 | ac_res=`eval echo '${'$as_ac_Header'}'` |
39962 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
39963 | echo "${ECHO_T}$ac_res" >&6; } | |
39964 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
1f7e12cc | 39965 | cat >>confdefs.h <<_ACEOF |
d589327a | 39966 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
1f7e12cc | 39967 | _ACEOF |
7fd3acaf | 39968 | |
1f7e12cc DE |
39969 | fi |
39970 | ||
39971 | done | |
a848cd7e SC |
39972 | |
39973 | if test "$ac_cv_header_sched_h" = "yes"; then | |
d589327a VZ |
39974 | { echo "$as_me:$LINENO: checking for sched_yield" >&5 |
39975 | echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6; } | |
a848cd7e | 39976 | if test "${ac_cv_func_sched_yield+set}" = set; then |
d589327a | 39977 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a848cd7e SC |
39978 | else |
39979 | cat >conftest.$ac_ext <<_ACEOF | |
39980 | /* confdefs.h. */ | |
39981 | _ACEOF | |
39982 | cat confdefs.h >>conftest.$ac_ext | |
39983 | cat >>conftest.$ac_ext <<_ACEOF | |
39984 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
39985 | /* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield. |
39986 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
39987 | #define sched_yield innocuous_sched_yield | |
39988 | ||
a848cd7e SC |
39989 | /* System header to define __stub macros and hopefully few prototypes, |
39990 | which can conflict with char sched_yield (); below. | |
39991 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
39992 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 39993 | |
a848cd7e SC |
39994 | #ifdef __STDC__ |
39995 | # include <limits.h> | |
39996 | #else | |
39997 | # include <assert.h> | |
39998 | #endif | |
ac1cb8d3 VS |
39999 | |
40000 | #undef sched_yield | |
40001 | ||
47964710 VS |
40002 | /* Override any GCC internal prototype to avoid an error. |
40003 | Use char because int might match the return type of a GCC | |
40004 | builtin and then its argument prototype would still apply. */ | |
a848cd7e SC |
40005 | #ifdef __cplusplus |
40006 | extern "C" | |
a848cd7e | 40007 | #endif |
a848cd7e SC |
40008 | char sched_yield (); |
40009 | /* The GNU C library defines this for functions which it implements | |
40010 | to always fail with ENOSYS. Some functions are actually named | |
40011 | something starting with __ and the normal name is an alias. */ | |
47964710 | 40012 | #if defined __stub_sched_yield || defined __stub___sched_yield |
a848cd7e | 40013 | choke me |
a848cd7e SC |
40014 | #endif |
40015 | ||
40016 | int | |
40017 | main () | |
40018 | { | |
47964710 | 40019 | return sched_yield (); |
a848cd7e SC |
40020 | ; |
40021 | return 0; | |
40022 | } | |
40023 | _ACEOF | |
40024 | rm -f conftest.$ac_objext conftest$ac_exeext | |
47964710 VS |
40025 | if { (ac_try="$ac_link" |
40026 | case "(($ac_try" in | |
40027 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
40028 | *) ac_try_echo=$ac_try;; | |
40029 | esac | |
d589327a | 40030 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 40031 | (eval "$ac_link") 2>conftest.er1 |
a848cd7e | 40032 | ac_status=$? |
ac1cb8d3 VS |
40033 | grep -v '^ *+' conftest.er1 >conftest.err |
40034 | rm -f conftest.er1 | |
40035 | cat conftest.err >&5 | |
d589327a | 40036 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
40037 | (exit $ac_status); } && { |
40038 | test -z "$ac_c_werror_flag" || | |
40039 | test ! -s conftest.err | |
d589327a VZ |
40040 | } && test -s conftest$ac_exeext && |
40041 | $as_test_x conftest$ac_exeext; then | |
a848cd7e SC |
40042 | ac_cv_func_sched_yield=yes |
40043 | else | |
d589327a | 40044 | echo "$as_me: failed program was:" >&5 |
a848cd7e SC |
40045 | sed 's/^/| /' conftest.$ac_ext >&5 |
40046 | ||
47964710 | 40047 | ac_cv_func_sched_yield=no |
a848cd7e | 40048 | fi |
47964710 VS |
40049 | |
40050 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
ac1cb8d3 | 40051 | conftest$ac_exeext conftest.$ac_ext |
a848cd7e | 40052 | fi |
d589327a VZ |
40053 | { echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5 |
40054 | echo "${ECHO_T}$ac_cv_func_sched_yield" >&6; } | |
40055 | if test $ac_cv_func_sched_yield = yes; then | |
a848cd7e SC |
40056 | cat >>confdefs.h <<\_ACEOF |
40057 | #define HAVE_SCHED_YIELD 1 | |
40058 | _ACEOF | |
40059 | ||
40060 | else | |
40061 | ||
d589327a VZ |
40062 | { echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5 |
40063 | echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6; } | |
a848cd7e | 40064 | if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then |
d589327a | 40065 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a848cd7e SC |
40066 | else |
40067 | ac_check_lib_save_LIBS=$LIBS | |
40068 | LIBS="-lposix4 $LIBS" | |
40069 | cat >conftest.$ac_ext <<_ACEOF | |
40070 | /* confdefs.h. */ | |
40071 | _ACEOF | |
40072 | cat confdefs.h >>conftest.$ac_ext | |
40073 | cat >>conftest.$ac_ext <<_ACEOF | |
40074 | /* end confdefs.h. */ | |
40075 | ||
47964710 VS |
40076 | /* Override any GCC internal prototype to avoid an error. |
40077 | Use char because int might match the return type of a GCC | |
40078 | builtin and then its argument prototype would still apply. */ | |
a848cd7e SC |
40079 | #ifdef __cplusplus |
40080 | extern "C" | |
40081 | #endif | |
a848cd7e SC |
40082 | char sched_yield (); |
40083 | int | |
40084 | main () | |
40085 | { | |
47964710 | 40086 | return sched_yield (); |
a848cd7e SC |
40087 | ; |
40088 | return 0; | |
40089 | } | |
40090 | _ACEOF | |
40091 | rm -f conftest.$ac_objext conftest$ac_exeext | |
47964710 VS |
40092 | if { (ac_try="$ac_link" |
40093 | case "(($ac_try" in | |
40094 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
40095 | *) ac_try_echo=$ac_try;; | |
40096 | esac | |
d589327a | 40097 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 40098 | (eval "$ac_link") 2>conftest.er1 |
a848cd7e | 40099 | ac_status=$? |
ac1cb8d3 VS |
40100 | grep -v '^ *+' conftest.er1 >conftest.err |
40101 | rm -f conftest.er1 | |
40102 | cat conftest.err >&5 | |
d589327a | 40103 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
40104 | (exit $ac_status); } && { |
40105 | test -z "$ac_c_werror_flag" || | |
40106 | test ! -s conftest.err | |
d589327a VZ |
40107 | } && test -s conftest$ac_exeext && |
40108 | $as_test_x conftest$ac_exeext; then | |
a848cd7e SC |
40109 | ac_cv_lib_posix4_sched_yield=yes |
40110 | else | |
d589327a | 40111 | echo "$as_me: failed program was:" >&5 |
a848cd7e SC |
40112 | sed 's/^/| /' conftest.$ac_ext >&5 |
40113 | ||
47964710 | 40114 | ac_cv_lib_posix4_sched_yield=no |
a848cd7e | 40115 | fi |
47964710 VS |
40116 | |
40117 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
ac1cb8d3 | 40118 | conftest$ac_exeext conftest.$ac_ext |
a848cd7e SC |
40119 | LIBS=$ac_check_lib_save_LIBS |
40120 | fi | |
d589327a VZ |
40121 | { echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5 |
40122 | echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6; } | |
40123 | if test $ac_cv_lib_posix4_sched_yield = yes; then | |
a848cd7e SC |
40124 | cat >>confdefs.h <<\_ACEOF |
40125 | #define HAVE_SCHED_YIELD 1 | |
40126 | _ACEOF | |
40127 | POSIX4_LINK=" -lposix4" | |
40128 | else | |
d589327a VZ |
40129 | { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5 |
40130 | echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;} | |
a848cd7e SC |
40131 | |
40132 | fi | |
40133 | ||
40134 | ||
40135 | ||
40136 | fi | |
40137 | ||
40138 | fi | |
40139 | ||
40140 | HAVE_PRIOR_FUNCS=0 | |
d589327a VZ |
40141 | { echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5 |
40142 | echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6; } | |
a848cd7e | 40143 | if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then |
d589327a | 40144 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a848cd7e SC |
40145 | else |
40146 | cat >conftest.$ac_ext <<_ACEOF | |
40147 | /* confdefs.h. */ | |
40148 | _ACEOF | |
40149 | cat confdefs.h >>conftest.$ac_ext | |
40150 | cat >>conftest.$ac_ext <<_ACEOF | |
40151 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
40152 | /* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy. |
40153 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
40154 | #define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy | |
40155 | ||
a848cd7e SC |
40156 | /* System header to define __stub macros and hopefully few prototypes, |
40157 | which can conflict with char pthread_attr_getschedpolicy (); below. | |
40158 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
40159 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 40160 | |
a848cd7e SC |
40161 | #ifdef __STDC__ |
40162 | # include <limits.h> | |
40163 | #else | |
40164 | # include <assert.h> | |
40165 | #endif | |
ac1cb8d3 VS |
40166 | |
40167 | #undef pthread_attr_getschedpolicy | |
40168 | ||
47964710 VS |
40169 | /* Override any GCC internal prototype to avoid an error. |
40170 | Use char because int might match the return type of a GCC | |
40171 | builtin and then its argument prototype would still apply. */ | |
a848cd7e SC |
40172 | #ifdef __cplusplus |
40173 | extern "C" | |
a848cd7e | 40174 | #endif |
a848cd7e SC |
40175 | char pthread_attr_getschedpolicy (); |
40176 | /* The GNU C library defines this for functions which it implements | |
40177 | to always fail with ENOSYS. Some functions are actually named | |
40178 | something starting with __ and the normal name is an alias. */ | |
47964710 | 40179 | #if defined __stub_pthread_attr_getschedpolicy || defined __stub___pthread_attr_getschedpolicy |
a848cd7e | 40180 | choke me |
a848cd7e SC |
40181 | #endif |
40182 | ||
40183 | int | |
40184 | main () | |
40185 | { | |
47964710 | 40186 | return pthread_attr_getschedpolicy (); |
a848cd7e SC |
40187 | ; |
40188 | return 0; | |
40189 | } | |
40190 | _ACEOF | |
40191 | rm -f conftest.$ac_objext conftest$ac_exeext | |
47964710 VS |
40192 | if { (ac_try="$ac_link" |
40193 | case "(($ac_try" in | |
40194 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
40195 | *) ac_try_echo=$ac_try;; | |
40196 | esac | |
d589327a | 40197 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 40198 | (eval "$ac_link") 2>conftest.er1 |
a848cd7e | 40199 | ac_status=$? |
ac1cb8d3 VS |
40200 | grep -v '^ *+' conftest.er1 >conftest.err |
40201 | rm -f conftest.er1 | |
40202 | cat conftest.err >&5 | |
d589327a | 40203 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
40204 | (exit $ac_status); } && { |
40205 | test -z "$ac_c_werror_flag" || | |
40206 | test ! -s conftest.err | |
d589327a VZ |
40207 | } && test -s conftest$ac_exeext && |
40208 | $as_test_x conftest$ac_exeext; then | |
a848cd7e SC |
40209 | ac_cv_func_pthread_attr_getschedpolicy=yes |
40210 | else | |
d589327a | 40211 | echo "$as_me: failed program was:" >&5 |
a848cd7e SC |
40212 | sed 's/^/| /' conftest.$ac_ext >&5 |
40213 | ||
47964710 | 40214 | ac_cv_func_pthread_attr_getschedpolicy=no |
a848cd7e | 40215 | fi |
47964710 VS |
40216 | |
40217 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
ac1cb8d3 | 40218 | conftest$ac_exeext conftest.$ac_ext |
a848cd7e | 40219 | fi |
d589327a VZ |
40220 | { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5 |
40221 | echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6; } | |
40222 | if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then | |
40223 | { echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5 | |
40224 | echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6; } | |
a848cd7e | 40225 | if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then |
d589327a | 40226 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a848cd7e SC |
40227 | else |
40228 | cat >conftest.$ac_ext <<_ACEOF | |
40229 | /* confdefs.h. */ | |
40230 | _ACEOF | |
40231 | cat confdefs.h >>conftest.$ac_ext | |
40232 | cat >>conftest.$ac_ext <<_ACEOF | |
40233 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
40234 | /* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam. |
40235 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
40236 | #define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam | |
40237 | ||
a848cd7e SC |
40238 | /* System header to define __stub macros and hopefully few prototypes, |
40239 | which can conflict with char pthread_attr_setschedparam (); below. | |
40240 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
40241 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 40242 | |
a848cd7e SC |
40243 | #ifdef __STDC__ |
40244 | # include <limits.h> | |
40245 | #else | |
40246 | # include <assert.h> | |
40247 | #endif | |
ac1cb8d3 VS |
40248 | |
40249 | #undef pthread_attr_setschedparam | |
40250 | ||
47964710 VS |
40251 | /* Override any GCC internal prototype to avoid an error. |
40252 | Use char because int might match the return type of a GCC | |
40253 | builtin and then its argument prototype would still apply. */ | |
a848cd7e SC |
40254 | #ifdef __cplusplus |
40255 | extern "C" | |
a848cd7e | 40256 | #endif |
a848cd7e SC |
40257 | char pthread_attr_setschedparam (); |
40258 | /* The GNU C library defines this for functions which it implements | |
40259 | to always fail with ENOSYS. Some functions are actually named | |
40260 | something starting with __ and the normal name is an alias. */ | |
47964710 | 40261 | #if defined __stub_pthread_attr_setschedparam || defined __stub___pthread_attr_setschedparam |
a848cd7e | 40262 | choke me |
a848cd7e SC |
40263 | #endif |
40264 | ||
40265 | int | |
40266 | main () | |
40267 | { | |
47964710 | 40268 | return pthread_attr_setschedparam (); |
a848cd7e SC |
40269 | ; |
40270 | return 0; | |
40271 | } | |
40272 | _ACEOF | |
40273 | rm -f conftest.$ac_objext conftest$ac_exeext | |
47964710 VS |
40274 | if { (ac_try="$ac_link" |
40275 | case "(($ac_try" in | |
40276 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
40277 | *) ac_try_echo=$ac_try;; | |
40278 | esac | |
d589327a | 40279 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 40280 | (eval "$ac_link") 2>conftest.er1 |
a848cd7e | 40281 | ac_status=$? |
ac1cb8d3 VS |
40282 | grep -v '^ *+' conftest.er1 >conftest.err |
40283 | rm -f conftest.er1 | |
40284 | cat conftest.err >&5 | |
d589327a | 40285 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
40286 | (exit $ac_status); } && { |
40287 | test -z "$ac_c_werror_flag" || | |
40288 | test ! -s conftest.err | |
d589327a VZ |
40289 | } && test -s conftest$ac_exeext && |
40290 | $as_test_x conftest$ac_exeext; then | |
a848cd7e SC |
40291 | ac_cv_func_pthread_attr_setschedparam=yes |
40292 | else | |
d589327a | 40293 | echo "$as_me: failed program was:" >&5 |
a848cd7e SC |
40294 | sed 's/^/| /' conftest.$ac_ext >&5 |
40295 | ||
47964710 | 40296 | ac_cv_func_pthread_attr_setschedparam=no |
a848cd7e | 40297 | fi |
47964710 VS |
40298 | |
40299 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
ac1cb8d3 | 40300 | conftest$ac_exeext conftest.$ac_ext |
a848cd7e | 40301 | fi |
d589327a VZ |
40302 | { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5 |
40303 | echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6; } | |
40304 | if test $ac_cv_func_pthread_attr_setschedparam = yes; then | |
40305 | { echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5 | |
40306 | echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6; } | |
a848cd7e | 40307 | if test "${ac_cv_func_sched_get_priority_max+set}" = set; then |
d589327a | 40308 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a848cd7e SC |
40309 | else |
40310 | cat >conftest.$ac_ext <<_ACEOF | |
40311 | /* confdefs.h. */ | |
40312 | _ACEOF | |
40313 | cat confdefs.h >>conftest.$ac_ext | |
40314 | cat >>conftest.$ac_ext <<_ACEOF | |
40315 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
40316 | /* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max. |
40317 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
40318 | #define sched_get_priority_max innocuous_sched_get_priority_max | |
40319 | ||
a848cd7e SC |
40320 | /* System header to define __stub macros and hopefully few prototypes, |
40321 | which can conflict with char sched_get_priority_max (); below. | |
40322 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
40323 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 40324 | |
a848cd7e SC |
40325 | #ifdef __STDC__ |
40326 | # include <limits.h> | |
40327 | #else | |
40328 | # include <assert.h> | |
40329 | #endif | |
ac1cb8d3 VS |
40330 | |
40331 | #undef sched_get_priority_max | |
40332 | ||
47964710 VS |
40333 | /* Override any GCC internal prototype to avoid an error. |
40334 | Use char because int might match the return type of a GCC | |
40335 | builtin and then its argument prototype would still apply. */ | |
a848cd7e SC |
40336 | #ifdef __cplusplus |
40337 | extern "C" | |
a848cd7e | 40338 | #endif |
a848cd7e SC |
40339 | char sched_get_priority_max (); |
40340 | /* The GNU C library defines this for functions which it implements | |
40341 | to always fail with ENOSYS. Some functions are actually named | |
40342 | something starting with __ and the normal name is an alias. */ | |
47964710 | 40343 | #if defined __stub_sched_get_priority_max || defined __stub___sched_get_priority_max |
a848cd7e | 40344 | choke me |
a848cd7e SC |
40345 | #endif |
40346 | ||
40347 | int | |
40348 | main () | |
40349 | { | |
47964710 | 40350 | return sched_get_priority_max (); |
a848cd7e SC |
40351 | ; |
40352 | return 0; | |
40353 | } | |
40354 | _ACEOF | |
40355 | rm -f conftest.$ac_objext conftest$ac_exeext | |
47964710 VS |
40356 | if { (ac_try="$ac_link" |
40357 | case "(($ac_try" in | |
40358 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
40359 | *) ac_try_echo=$ac_try;; | |
40360 | esac | |
d589327a | 40361 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 40362 | (eval "$ac_link") 2>conftest.er1 |
a848cd7e | 40363 | ac_status=$? |
ac1cb8d3 VS |
40364 | grep -v '^ *+' conftest.er1 >conftest.err |
40365 | rm -f conftest.er1 | |
40366 | cat conftest.err >&5 | |
d589327a | 40367 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
40368 | (exit $ac_status); } && { |
40369 | test -z "$ac_c_werror_flag" || | |
40370 | test ! -s conftest.err | |
d589327a VZ |
40371 | } && test -s conftest$ac_exeext && |
40372 | $as_test_x conftest$ac_exeext; then | |
a848cd7e SC |
40373 | ac_cv_func_sched_get_priority_max=yes |
40374 | else | |
d589327a | 40375 | echo "$as_me: failed program was:" >&5 |
a848cd7e SC |
40376 | sed 's/^/| /' conftest.$ac_ext >&5 |
40377 | ||
47964710 | 40378 | ac_cv_func_sched_get_priority_max=no |
a848cd7e | 40379 | fi |
47964710 VS |
40380 | |
40381 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
ac1cb8d3 | 40382 | conftest$ac_exeext conftest.$ac_ext |
a848cd7e | 40383 | fi |
d589327a VZ |
40384 | { echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5 |
40385 | echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6; } | |
40386 | if test $ac_cv_func_sched_get_priority_max = yes; then | |
a848cd7e SC |
40387 | HAVE_PRIOR_FUNCS=1 |
40388 | else | |
d589327a VZ |
40389 | { echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5 |
40390 | echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6; } | |
a848cd7e | 40391 | if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then |
d589327a | 40392 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a848cd7e SC |
40393 | else |
40394 | ac_check_lib_save_LIBS=$LIBS | |
40395 | LIBS="-lposix4 $LIBS" | |
40396 | cat >conftest.$ac_ext <<_ACEOF | |
40397 | /* confdefs.h. */ | |
40398 | _ACEOF | |
40399 | cat confdefs.h >>conftest.$ac_ext | |
40400 | cat >>conftest.$ac_ext <<_ACEOF | |
40401 | /* end confdefs.h. */ | |
40402 | ||
47964710 VS |
40403 | /* Override any GCC internal prototype to avoid an error. |
40404 | Use char because int might match the return type of a GCC | |
40405 | builtin and then its argument prototype would still apply. */ | |
a848cd7e SC |
40406 | #ifdef __cplusplus |
40407 | extern "C" | |
40408 | #endif | |
a848cd7e SC |
40409 | char sched_get_priority_max (); |
40410 | int | |
40411 | main () | |
40412 | { | |
47964710 | 40413 | return sched_get_priority_max (); |
a848cd7e SC |
40414 | ; |
40415 | return 0; | |
40416 | } | |
40417 | _ACEOF | |
40418 | rm -f conftest.$ac_objext conftest$ac_exeext | |
47964710 VS |
40419 | if { (ac_try="$ac_link" |
40420 | case "(($ac_try" in | |
40421 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
40422 | *) ac_try_echo=$ac_try;; | |
40423 | esac | |
d589327a | 40424 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 40425 | (eval "$ac_link") 2>conftest.er1 |
a848cd7e | 40426 | ac_status=$? |
ac1cb8d3 VS |
40427 | grep -v '^ *+' conftest.er1 >conftest.err |
40428 | rm -f conftest.er1 | |
40429 | cat conftest.err >&5 | |
d589327a | 40430 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
40431 | (exit $ac_status); } && { |
40432 | test -z "$ac_c_werror_flag" || | |
40433 | test ! -s conftest.err | |
d589327a VZ |
40434 | } && test -s conftest$ac_exeext && |
40435 | $as_test_x conftest$ac_exeext; then | |
a848cd7e SC |
40436 | ac_cv_lib_posix4_sched_get_priority_max=yes |
40437 | else | |
d589327a | 40438 | echo "$as_me: failed program was:" >&5 |
a848cd7e SC |
40439 | sed 's/^/| /' conftest.$ac_ext >&5 |
40440 | ||
47964710 | 40441 | ac_cv_lib_posix4_sched_get_priority_max=no |
a848cd7e | 40442 | fi |
47964710 VS |
40443 | |
40444 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
ac1cb8d3 | 40445 | conftest$ac_exeext conftest.$ac_ext |
a848cd7e SC |
40446 | LIBS=$ac_check_lib_save_LIBS |
40447 | fi | |
d589327a VZ |
40448 | { echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5 |
40449 | echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6; } | |
40450 | if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then | |
a848cd7e SC |
40451 | |
40452 | HAVE_PRIOR_FUNCS=1 | |
40453 | POSIX4_LINK=" -lposix4" | |
40454 | ||
40455 | fi | |
40456 | ||
40457 | ||
40458 | fi | |
40459 | ||
40460 | ||
40461 | fi | |
40462 | ||
40463 | ||
40464 | fi | |
40465 | ||
40466 | ||
40467 | if test "$HAVE_PRIOR_FUNCS" = 1; then | |
40468 | cat >>confdefs.h <<\_ACEOF | |
40469 | #define HAVE_THREAD_PRIORITY_FUNCTIONS 1 | |
40470 | _ACEOF | |
40471 | ||
40472 | else | |
d589327a VZ |
40473 | { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5 |
40474 | echo "$as_me: WARNING: Setting thread priority will not work" >&2;} | |
a848cd7e SC |
40475 | fi |
40476 | ||
d589327a VZ |
40477 | { echo "$as_me:$LINENO: checking for pthread_cancel" >&5 |
40478 | echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6; } | |
a848cd7e | 40479 | if test "${ac_cv_func_pthread_cancel+set}" = set; then |
d589327a | 40480 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a848cd7e SC |
40481 | else |
40482 | cat >conftest.$ac_ext <<_ACEOF | |
40483 | /* confdefs.h. */ | |
40484 | _ACEOF | |
40485 | cat confdefs.h >>conftest.$ac_ext | |
40486 | cat >>conftest.$ac_ext <<_ACEOF | |
40487 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
40488 | /* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel. |
40489 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
40490 | #define pthread_cancel innocuous_pthread_cancel | |
40491 | ||
a848cd7e SC |
40492 | /* System header to define __stub macros and hopefully few prototypes, |
40493 | which can conflict with char pthread_cancel (); below. | |
40494 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
40495 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 40496 | |
a848cd7e SC |
40497 | #ifdef __STDC__ |
40498 | # include <limits.h> | |
40499 | #else | |
40500 | # include <assert.h> | |
40501 | #endif | |
ac1cb8d3 VS |
40502 | |
40503 | #undef pthread_cancel | |
40504 | ||
47964710 VS |
40505 | /* Override any GCC internal prototype to avoid an error. |
40506 | Use char because int might match the return type of a GCC | |
40507 | builtin and then its argument prototype would still apply. */ | |
a848cd7e SC |
40508 | #ifdef __cplusplus |
40509 | extern "C" | |
a848cd7e | 40510 | #endif |
a848cd7e SC |
40511 | char pthread_cancel (); |
40512 | /* The GNU C library defines this for functions which it implements | |
40513 | to always fail with ENOSYS. Some functions are actually named | |
40514 | something starting with __ and the normal name is an alias. */ | |
47964710 | 40515 | #if defined __stub_pthread_cancel || defined __stub___pthread_cancel |
a848cd7e | 40516 | choke me |
a848cd7e SC |
40517 | #endif |
40518 | ||
40519 | int | |
40520 | main () | |
40521 | { | |
47964710 | 40522 | return pthread_cancel (); |
a848cd7e SC |
40523 | ; |
40524 | return 0; | |
40525 | } | |
40526 | _ACEOF | |
40527 | rm -f conftest.$ac_objext conftest$ac_exeext | |
47964710 VS |
40528 | if { (ac_try="$ac_link" |
40529 | case "(($ac_try" in | |
40530 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
40531 | *) ac_try_echo=$ac_try;; | |
40532 | esac | |
d589327a | 40533 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 40534 | (eval "$ac_link") 2>conftest.er1 |
a848cd7e | 40535 | ac_status=$? |
ac1cb8d3 VS |
40536 | grep -v '^ *+' conftest.er1 >conftest.err |
40537 | rm -f conftest.er1 | |
40538 | cat conftest.err >&5 | |
d589327a | 40539 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
40540 | (exit $ac_status); } && { |
40541 | test -z "$ac_c_werror_flag" || | |
40542 | test ! -s conftest.err | |
d589327a VZ |
40543 | } && test -s conftest$ac_exeext && |
40544 | $as_test_x conftest$ac_exeext; then | |
a848cd7e SC |
40545 | ac_cv_func_pthread_cancel=yes |
40546 | else | |
d589327a | 40547 | echo "$as_me: failed program was:" >&5 |
a848cd7e SC |
40548 | sed 's/^/| /' conftest.$ac_ext >&5 |
40549 | ||
47964710 | 40550 | ac_cv_func_pthread_cancel=no |
a848cd7e | 40551 | fi |
47964710 VS |
40552 | |
40553 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
ac1cb8d3 | 40554 | conftest$ac_exeext conftest.$ac_ext |
a848cd7e | 40555 | fi |
d589327a VZ |
40556 | { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5 |
40557 | echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6; } | |
40558 | if test $ac_cv_func_pthread_cancel = yes; then | |
a848cd7e SC |
40559 | cat >>confdefs.h <<\_ACEOF |
40560 | #define HAVE_PTHREAD_CANCEL 1 | |
40561 | _ACEOF | |
40562 | ||
40563 | else | |
d589327a VZ |
40564 | { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5 |
40565 | echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;} | |
a848cd7e SC |
40566 | fi |
40567 | ||
40568 | ||
d589327a VZ |
40569 | { echo "$as_me:$LINENO: checking for pthread_mutex_timedlock" >&5 |
40570 | echo $ECHO_N "checking for pthread_mutex_timedlock... $ECHO_C" >&6; } | |
e55a667c | 40571 | if test "${ac_cv_func_pthread_mutex_timedlock+set}" = set; then |
d589327a | 40572 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
e55a667c VZ |
40573 | else |
40574 | cat >conftest.$ac_ext <<_ACEOF | |
40575 | /* confdefs.h. */ | |
40576 | _ACEOF | |
40577 | cat confdefs.h >>conftest.$ac_ext | |
40578 | cat >>conftest.$ac_ext <<_ACEOF | |
40579 | /* end confdefs.h. */ | |
40580 | /* Define pthread_mutex_timedlock to an innocuous variant, in case <limits.h> declares pthread_mutex_timedlock. | |
40581 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
40582 | #define pthread_mutex_timedlock innocuous_pthread_mutex_timedlock | |
40583 | ||
40584 | /* System header to define __stub macros and hopefully few prototypes, | |
40585 | which can conflict with char pthread_mutex_timedlock (); below. | |
40586 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
40587 | <limits.h> exists even on freestanding compilers. */ | |
40588 | ||
40589 | #ifdef __STDC__ | |
40590 | # include <limits.h> | |
40591 | #else | |
40592 | # include <assert.h> | |
40593 | #endif | |
40594 | ||
40595 | #undef pthread_mutex_timedlock | |
40596 | ||
47964710 VS |
40597 | /* Override any GCC internal prototype to avoid an error. |
40598 | Use char because int might match the return type of a GCC | |
40599 | builtin and then its argument prototype would still apply. */ | |
e55a667c VZ |
40600 | #ifdef __cplusplus |
40601 | extern "C" | |
40602 | #endif | |
40603 | char pthread_mutex_timedlock (); | |
40604 | /* The GNU C library defines this for functions which it implements | |
40605 | to always fail with ENOSYS. Some functions are actually named | |
40606 | something starting with __ and the normal name is an alias. */ | |
47964710 | 40607 | #if defined __stub_pthread_mutex_timedlock || defined __stub___pthread_mutex_timedlock |
e55a667c VZ |
40608 | choke me |
40609 | #endif | |
40610 | ||
40611 | int | |
40612 | main () | |
40613 | { | |
47964710 | 40614 | return pthread_mutex_timedlock (); |
e55a667c VZ |
40615 | ; |
40616 | return 0; | |
40617 | } | |
40618 | _ACEOF | |
40619 | rm -f conftest.$ac_objext conftest$ac_exeext | |
47964710 VS |
40620 | if { (ac_try="$ac_link" |
40621 | case "(($ac_try" in | |
40622 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
40623 | *) ac_try_echo=$ac_try;; | |
40624 | esac | |
d589327a | 40625 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 40626 | (eval "$ac_link") 2>conftest.er1 |
e55a667c VZ |
40627 | ac_status=$? |
40628 | grep -v '^ *+' conftest.er1 >conftest.err | |
40629 | rm -f conftest.er1 | |
40630 | cat conftest.err >&5 | |
d589327a | 40631 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
40632 | (exit $ac_status); } && { |
40633 | test -z "$ac_c_werror_flag" || | |
40634 | test ! -s conftest.err | |
d589327a VZ |
40635 | } && test -s conftest$ac_exeext && |
40636 | $as_test_x conftest$ac_exeext; then | |
e55a667c VZ |
40637 | ac_cv_func_pthread_mutex_timedlock=yes |
40638 | else | |
d589327a | 40639 | echo "$as_me: failed program was:" >&5 |
e55a667c VZ |
40640 | sed 's/^/| /' conftest.$ac_ext >&5 |
40641 | ||
47964710 | 40642 | ac_cv_func_pthread_mutex_timedlock=no |
e55a667c | 40643 | fi |
47964710 VS |
40644 | |
40645 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
e55a667c VZ |
40646 | conftest$ac_exeext conftest.$ac_ext |
40647 | fi | |
d589327a VZ |
40648 | { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_mutex_timedlock" >&5 |
40649 | echo "${ECHO_T}$ac_cv_func_pthread_mutex_timedlock" >&6; } | |
40650 | if test $ac_cv_func_pthread_mutex_timedlock = yes; then | |
e55a667c VZ |
40651 | cat >>confdefs.h <<\_ACEOF |
40652 | #define HAVE_PTHREAD_MUTEX_TIMEDLOCK 1 | |
40653 | _ACEOF | |
40654 | ||
40655 | else | |
d589327a VZ |
40656 | { echo "$as_me:$LINENO: WARNING: wxMutex::LockTimeout() will not work" >&5 |
40657 | echo "$as_me: WARNING: wxMutex::LockTimeout() will not work" >&2;} | |
e55a667c VZ |
40658 | fi |
40659 | ||
40660 | ||
d589327a VZ |
40661 | { echo "$as_me:$LINENO: checking for pthread_attr_setstacksize" >&5 |
40662 | echo $ECHO_N "checking for pthread_attr_setstacksize... $ECHO_C" >&6; } | |
abc736fd | 40663 | if test "${ac_cv_func_pthread_attr_setstacksize+set}" = set; then |
d589327a | 40664 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
abc736fd MW |
40665 | else |
40666 | cat >conftest.$ac_ext <<_ACEOF | |
40667 | /* confdefs.h. */ | |
40668 | _ACEOF | |
40669 | cat confdefs.h >>conftest.$ac_ext | |
40670 | cat >>conftest.$ac_ext <<_ACEOF | |
40671 | /* end confdefs.h. */ | |
40672 | /* Define pthread_attr_setstacksize to an innocuous variant, in case <limits.h> declares pthread_attr_setstacksize. | |
40673 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
40674 | #define pthread_attr_setstacksize innocuous_pthread_attr_setstacksize | |
40675 | ||
40676 | /* System header to define __stub macros and hopefully few prototypes, | |
40677 | which can conflict with char pthread_attr_setstacksize (); below. | |
40678 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
40679 | <limits.h> exists even on freestanding compilers. */ | |
40680 | ||
40681 | #ifdef __STDC__ | |
40682 | # include <limits.h> | |
40683 | #else | |
40684 | # include <assert.h> | |
40685 | #endif | |
40686 | ||
40687 | #undef pthread_attr_setstacksize | |
40688 | ||
47964710 VS |
40689 | /* Override any GCC internal prototype to avoid an error. |
40690 | Use char because int might match the return type of a GCC | |
40691 | builtin and then its argument prototype would still apply. */ | |
abc736fd MW |
40692 | #ifdef __cplusplus |
40693 | extern "C" | |
abc736fd | 40694 | #endif |
abc736fd MW |
40695 | char pthread_attr_setstacksize (); |
40696 | /* The GNU C library defines this for functions which it implements | |
40697 | to always fail with ENOSYS. Some functions are actually named | |
40698 | something starting with __ and the normal name is an alias. */ | |
47964710 | 40699 | #if defined __stub_pthread_attr_setstacksize || defined __stub___pthread_attr_setstacksize |
abc736fd | 40700 | choke me |
abc736fd MW |
40701 | #endif |
40702 | ||
40703 | int | |
40704 | main () | |
40705 | { | |
47964710 | 40706 | return pthread_attr_setstacksize (); |
abc736fd MW |
40707 | ; |
40708 | return 0; | |
40709 | } | |
40710 | _ACEOF | |
40711 | rm -f conftest.$ac_objext conftest$ac_exeext | |
47964710 VS |
40712 | if { (ac_try="$ac_link" |
40713 | case "(($ac_try" in | |
40714 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
40715 | *) ac_try_echo=$ac_try;; | |
40716 | esac | |
d589327a | 40717 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 40718 | (eval "$ac_link") 2>conftest.er1 |
abc736fd MW |
40719 | ac_status=$? |
40720 | grep -v '^ *+' conftest.er1 >conftest.err | |
40721 | rm -f conftest.er1 | |
40722 | cat conftest.err >&5 | |
d589327a | 40723 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
40724 | (exit $ac_status); } && { |
40725 | test -z "$ac_c_werror_flag" || | |
40726 | test ! -s conftest.err | |
d589327a VZ |
40727 | } && test -s conftest$ac_exeext && |
40728 | $as_test_x conftest$ac_exeext; then | |
abc736fd MW |
40729 | ac_cv_func_pthread_attr_setstacksize=yes |
40730 | else | |
d589327a | 40731 | echo "$as_me: failed program was:" >&5 |
abc736fd MW |
40732 | sed 's/^/| /' conftest.$ac_ext >&5 |
40733 | ||
47964710 | 40734 | ac_cv_func_pthread_attr_setstacksize=no |
abc736fd | 40735 | fi |
47964710 VS |
40736 | |
40737 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
abc736fd MW |
40738 | conftest$ac_exeext conftest.$ac_ext |
40739 | fi | |
d589327a VZ |
40740 | { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setstacksize" >&5 |
40741 | echo "${ECHO_T}$ac_cv_func_pthread_attr_setstacksize" >&6; } | |
40742 | if test $ac_cv_func_pthread_attr_setstacksize = yes; then | |
abc736fd MW |
40743 | cat >>confdefs.h <<\_ACEOF |
40744 | #define HAVE_PTHREAD_ATTR_SETSTACKSIZE 1 | |
40745 | _ACEOF | |
40746 | ||
40747 | fi | |
40748 | ||
a848cd7e SC |
40749 | |
40750 | ||
d589327a VZ |
40751 | { echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5 |
40752 | echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6; } | |
a848cd7e | 40753 | if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then |
d589327a | 40754 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a848cd7e SC |
40755 | else |
40756 | ||
40757 | cat >conftest.$ac_ext <<_ACEOF | |
40758 | /* confdefs.h. */ | |
40759 | _ACEOF | |
40760 | cat confdefs.h >>conftest.$ac_ext | |
40761 | cat >>conftest.$ac_ext <<_ACEOF | |
40762 | /* end confdefs.h. */ | |
40763 | #include <pthread.h> | |
40764 | int | |
40765 | main () | |
40766 | { | |
40767 | ||
40768 | pthread_mutexattr_t attr; | |
40769 | pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE); | |
40770 | ||
40771 | ; | |
40772 | return 0; | |
40773 | } | |
40774 | _ACEOF | |
40775 | rm -f conftest.$ac_objext | |
47964710 VS |
40776 | if { (ac_try="$ac_compile" |
40777 | case "(($ac_try" in | |
40778 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
40779 | *) ac_try_echo=$ac_try;; | |
40780 | esac | |
d589327a | 40781 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 40782 | (eval "$ac_compile") 2>conftest.er1 |
a848cd7e | 40783 | ac_status=$? |
ac1cb8d3 VS |
40784 | grep -v '^ *+' conftest.er1 >conftest.err |
40785 | rm -f conftest.er1 | |
40786 | cat conftest.err >&5 | |
d589327a | 40787 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
40788 | (exit $ac_status); } && { |
40789 | test -z "$ac_c_werror_flag" || | |
40790 | test ! -s conftest.err | |
40791 | } && test -s conftest.$ac_objext; then | |
123dca7d | 40792 | wx_cv_type_pthread_mutexattr_t=yes |
a848cd7e | 40793 | else |
d589327a | 40794 | echo "$as_me: failed program was:" >&5 |
a848cd7e SC |
40795 | sed 's/^/| /' conftest.$ac_ext >&5 |
40796 | ||
47964710 | 40797 | wx_cv_type_pthread_mutexattr_t=no |
a848cd7e SC |
40798 | |
40799 | fi | |
47964710 VS |
40800 | |
40801 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
a848cd7e SC |
40802 | |
40803 | fi | |
d589327a VZ |
40804 | { echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5 |
40805 | echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6; } | |
a848cd7e SC |
40806 | |
40807 | if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then | |
40808 | cat >>confdefs.h <<\_ACEOF | |
40809 | #define HAVE_PTHREAD_MUTEXATTR_T 1 | |
40810 | _ACEOF | |
40811 | ||
123dca7d | 40812 | |
d589327a VZ |
40813 | { echo "$as_me:$LINENO: checking for pthread_mutexattr_settype declaration" >&5 |
40814 | echo $ECHO_N "checking for pthread_mutexattr_settype declaration... $ECHO_C" >&6; } | |
123dca7d | 40815 | if test "${wx_cv_func_pthread_mutexattr_settype_decl+set}" = set; then |
d589327a | 40816 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
123dca7d VZ |
40817 | else |
40818 | ||
40819 | cat >conftest.$ac_ext <<_ACEOF | |
40820 | /* confdefs.h. */ | |
40821 | _ACEOF | |
40822 | cat confdefs.h >>conftest.$ac_ext | |
40823 | cat >>conftest.$ac_ext <<_ACEOF | |
40824 | /* end confdefs.h. */ | |
40825 | #include <pthread.h> | |
40826 | int | |
40827 | main () | |
40828 | { | |
40829 | ||
40830 | pthread_mutexattr_t attr; | |
40831 | pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE); | |
40832 | ||
40833 | ; | |
40834 | return 0; | |
40835 | } | |
40836 | _ACEOF | |
40837 | rm -f conftest.$ac_objext | |
47964710 VS |
40838 | if { (ac_try="$ac_compile" |
40839 | case "(($ac_try" in | |
40840 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
40841 | *) ac_try_echo=$ac_try;; | |
40842 | esac | |
d589327a | 40843 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 40844 | (eval "$ac_compile") 2>conftest.er1 |
123dca7d VZ |
40845 | ac_status=$? |
40846 | grep -v '^ *+' conftest.er1 >conftest.err | |
40847 | rm -f conftest.er1 | |
40848 | cat conftest.err >&5 | |
d589327a | 40849 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
40850 | (exit $ac_status); } && { |
40851 | test -z "$ac_c_werror_flag" || | |
40852 | test ! -s conftest.err | |
40853 | } && test -s conftest.$ac_objext; then | |
123dca7d VZ |
40854 | wx_cv_func_pthread_mutexattr_settype_decl=yes |
40855 | else | |
d589327a | 40856 | echo "$as_me: failed program was:" >&5 |
123dca7d VZ |
40857 | sed 's/^/| /' conftest.$ac_ext >&5 |
40858 | ||
47964710 | 40859 | wx_cv_func_pthread_mutexattr_settype_decl=no |
123dca7d VZ |
40860 | |
40861 | fi | |
47964710 VS |
40862 | |
40863 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
123dca7d VZ |
40864 | |
40865 | fi | |
d589327a VZ |
40866 | { echo "$as_me:$LINENO: result: $wx_cv_func_pthread_mutexattr_settype_decl" >&5 |
40867 | echo "${ECHO_T}$wx_cv_func_pthread_mutexattr_settype_decl" >&6; } | |
123dca7d VZ |
40868 | if test "$wx_cv_func_pthread_mutexattr_settype_decl" = "yes"; then |
40869 | cat >>confdefs.h <<\_ACEOF | |
40870 | #define HAVE_PTHREAD_MUTEXATTR_SETTYPE_DECL 1 | |
40871 | _ACEOF | |
40872 | ||
40873 | fi | |
a848cd7e | 40874 | else |
d589327a VZ |
40875 | { echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5 |
40876 | echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6; } | |
a848cd7e | 40877 | if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then |
d589327a | 40878 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a848cd7e SC |
40879 | else |
40880 | ||
40881 | cat >conftest.$ac_ext <<_ACEOF | |
40882 | /* confdefs.h. */ | |
40883 | _ACEOF | |
40884 | cat confdefs.h >>conftest.$ac_ext | |
40885 | cat >>conftest.$ac_ext <<_ACEOF | |
40886 | /* end confdefs.h. */ | |
40887 | #include <pthread.h> | |
40888 | int | |
40889 | main () | |
40890 | { | |
40891 | ||
40892 | pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP; | |
40893 | ||
40894 | ; | |
40895 | return 0; | |
40896 | } | |
40897 | _ACEOF | |
40898 | rm -f conftest.$ac_objext | |
47964710 VS |
40899 | if { (ac_try="$ac_compile" |
40900 | case "(($ac_try" in | |
40901 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
40902 | *) ac_try_echo=$ac_try;; | |
40903 | esac | |
d589327a | 40904 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 40905 | (eval "$ac_compile") 2>conftest.er1 |
a848cd7e | 40906 | ac_status=$? |
ac1cb8d3 VS |
40907 | grep -v '^ *+' conftest.er1 >conftest.err |
40908 | rm -f conftest.er1 | |
40909 | cat conftest.err >&5 | |
d589327a | 40910 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
40911 | (exit $ac_status); } && { |
40912 | test -z "$ac_c_werror_flag" || | |
40913 | test ! -s conftest.err | |
40914 | } && test -s conftest.$ac_objext; then | |
a848cd7e SC |
40915 | |
40916 | wx_cv_type_pthread_rec_mutex_init=yes | |
40917 | ||
40918 | else | |
d589327a | 40919 | echo "$as_me: failed program was:" >&5 |
a848cd7e SC |
40920 | sed 's/^/| /' conftest.$ac_ext >&5 |
40921 | ||
40922 | ||
40923 | wx_cv_type_pthread_rec_mutex_init=no | |
40924 | ||
40925 | ||
40926 | fi | |
47964710 VS |
40927 | |
40928 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
a848cd7e SC |
40929 | |
40930 | fi | |
d589327a VZ |
40931 | { echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5 |
40932 | echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6; } | |
a848cd7e SC |
40933 | if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then |
40934 | cat >>confdefs.h <<\_ACEOF | |
40935 | #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1 | |
40936 | _ACEOF | |
40937 | ||
40938 | else | |
d589327a VZ |
40939 | { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5 |
40940 | echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;} | |
a848cd7e | 40941 | fi |
64a044d5 VZ |
40942 | fi |
40943 | ||
7beff712 VZ |
40944 | if test "$wxUSE_COMPILER_TLS" = "auto"; then |
40945 | if test "$USE_NETBSD" = 1; then | |
40946 | { echo "$as_me:$LINENO: WARNING: Disabling TLS under NetBSD, please contact wx-dev if it works now" >&5 | |
40947 | echo "$as_me: WARNING: Disabling TLS under NetBSD, please contact wx-dev if it works now" >&2;} | |
40948 | wxUSE_COMPILER_TLS=no | |
40949 | else | |
40950 | wxUSE_COMPILER_TLS=yes | |
40951 | fi | |
40952 | fi | |
40953 | ||
40954 | if test "$wxUSE_COMPILER_TLS" = "yes"; then | |
40955 | { echo "$as_me:$LINENO: checking for __thread keyword" >&5 | |
d589327a | 40956 | echo $ECHO_N "checking for __thread keyword... $ECHO_C" >&6; } |
d3dcef01 | 40957 | if test "${wx_cv_cc___thread+set}" = set; then |
d589327a | 40958 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
d3dcef01 VZ |
40959 | else |
40960 | ||
7beff712 | 40961 | cat >conftest.$ac_ext <<_ACEOF |
d3dcef01 VZ |
40962 | /* confdefs.h. */ |
40963 | _ACEOF | |
40964 | cat confdefs.h >>conftest.$ac_ext | |
40965 | cat >>conftest.$ac_ext <<_ACEOF | |
40966 | /* end confdefs.h. */ | |
40967 | #include <pthread.h> | |
40968 | int | |
40969 | main () | |
40970 | { | |
40971 | ||
7beff712 VZ |
40972 | static __thread int n = 0; |
40973 | static __thread int *p = 0; | |
d3dcef01 VZ |
40974 | |
40975 | ; | |
40976 | return 0; | |
40977 | } | |
40978 | _ACEOF | |
40979 | rm -f conftest.$ac_objext | |
40980 | if { (ac_try="$ac_compile" | |
40981 | case "(($ac_try" in | |
40982 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
40983 | *) ac_try_echo=$ac_try;; | |
40984 | esac | |
d589327a | 40985 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
d3dcef01 VZ |
40986 | (eval "$ac_compile") 2>conftest.er1 |
40987 | ac_status=$? | |
40988 | grep -v '^ *+' conftest.er1 >conftest.err | |
40989 | rm -f conftest.er1 | |
40990 | cat conftest.err >&5 | |
d589327a | 40991 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d3dcef01 VZ |
40992 | (exit $ac_status); } && { |
40993 | test -z "$ac_c_werror_flag" || | |
40994 | test ! -s conftest.err | |
40995 | } && test -s conftest.$ac_objext; then | |
40996 | wx_cv_cc___thread=yes | |
40997 | else | |
d589327a | 40998 | echo "$as_me: failed program was:" >&5 |
d3dcef01 VZ |
40999 | sed 's/^/| /' conftest.$ac_ext >&5 |
41000 | ||
41001 | wx_cv_cc___thread=no | |
41002 | ||
41003 | fi | |
41004 | ||
41005 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
41006 | ||
41007 | ||
41008 | fi | |
d589327a VZ |
41009 | { echo "$as_me:$LINENO: result: $wx_cv_cc___thread" >&5 |
41010 | echo "${ECHO_T}$wx_cv_cc___thread" >&6; } | |
d3dcef01 | 41011 | |
7beff712 | 41012 | if test "$wx_cv_cc___thread" = "yes"; then |
eb6a8d69 VZ |
41013 | |
41014 | GXX_VERSION="" | |
41015 | ||
41016 | ||
41017 | ||
d589327a VZ |
41018 | { echo "$as_me:$LINENO: checking if gcc accepts -dumpversion option" >&5 |
41019 | echo $ECHO_N "checking if gcc accepts -dumpversion option... $ECHO_C" >&6; } | |
eb6a8d69 VZ |
41020 | |
41021 | if test "x$GCC" = "xyes" ; then | |
41022 | ||
41023 | if test -z "" ; then | |
41024 | ||
41025 | ax_gcc_option_test="int main() | |
41026 | { | |
41027 | return 0; | |
41028 | }" | |
41029 | ||
41030 | else | |
41031 | ||
41032 | ax_gcc_option_test="" | |
41033 | ||
41034 | fi | |
41035 | ||
41036 | ||
41037 | # Dump the test program to file | |
41038 | cat <<EOF > conftest.c | |
41039 | $ax_gcc_option_test | |
41040 | EOF | |
41041 | ||
41042 | # Dump back the file to the log, useful for debugging purposes | |
41043 | { ac_try='cat conftest.c 1>&5' | |
41044 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
41045 | (eval $ac_try) 2>&5 | |
41046 | ac_status=$? | |
d589327a | 41047 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
eb6a8d69 VZ |
41048 | (exit $ac_status); }; } |
41049 | ||
41050 | if { ac_try='$CC -dumpversion -c conftest.c 1>&5' | |
41051 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
41052 | (eval $ac_try) 2>&5 | |
41053 | ac_status=$? | |
d589327a | 41054 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
eb6a8d69 VZ |
41055 | (exit $ac_status); }; } ; then |
41056 | ||
d589327a VZ |
41057 | { echo "$as_me:$LINENO: result: yes" >&5 |
41058 | echo "${ECHO_T}yes" >&6; } | |
eb6a8d69 VZ |
41059 | |
41060 | ax_gcc_version_option=yes | |
41061 | ||
41062 | ||
41063 | else | |
41064 | ||
d589327a VZ |
41065 | { echo "$as_me:$LINENO: result: no" >&5 |
41066 | echo "${ECHO_T}no" >&6; } | |
eb6a8d69 VZ |
41067 | |
41068 | ax_gcc_version_option=no | |
41069 | ||
41070 | ||
41071 | fi | |
41072 | ||
41073 | ||
41074 | else | |
41075 | ||
d589327a VZ |
41076 | { echo "$as_me:$LINENO: result: no gcc available" >&5 |
41077 | echo "${ECHO_T}no gcc available" >&6; } | |
eb6a8d69 VZ |
41078 | |
41079 | fi | |
41080 | ||
41081 | ||
41082 | if test "x$GXX" = "xyes"; then | |
41083 | ||
41084 | if test "x$ax_gxx_version_option" != "no"; then | |
41085 | ||
d589327a VZ |
41086 | { echo "$as_me:$LINENO: checking gxx version" >&5 |
41087 | echo $ECHO_N "checking gxx version... $ECHO_C" >&6; } | |
eb6a8d69 | 41088 | if test "${ax_cv_gxx_version+set}" = set; then |
d589327a | 41089 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
eb6a8d69 VZ |
41090 | else |
41091 | ||
41092 | ax_cv_gxx_version="`$CXX -dumpversion`" | |
41093 | if test "x$ax_cv_gxx_version" = "x"; then | |
41094 | ||
41095 | ax_cv_gxx_version="" | |
41096 | ||
41097 | fi | |
41098 | ||
41099 | ||
41100 | fi | |
d589327a VZ |
41101 | { echo "$as_me:$LINENO: result: $ax_cv_gxx_version" >&5 |
41102 | echo "${ECHO_T}$ax_cv_gxx_version" >&6; } | |
eb6a8d69 VZ |
41103 | GXX_VERSION=$ax_cv_gxx_version |
41104 | ||
41105 | fi | |
41106 | ||
41107 | ||
41108 | fi | |
41109 | ||
41110 | ||
41111 | ||
7beff712 VZ |
41112 | if test -n "$ax_cv_gxx_version"; then |
41113 | { echo "$as_me:$LINENO: checking whether __thread support in g++ is usable" >&5 | |
d589327a | 41114 | echo $ECHO_N "checking whether __thread support in g++ is usable... $ECHO_C" >&6; } |
7beff712 VZ |
41115 | case "$ax_cv_gxx_version" in |
41116 | 1.* | 2.* | 3.* ) | |
41117 | { echo "$as_me:$LINENO: result: no, it's broken" >&5 | |
d589327a | 41118 | echo "${ECHO_T}no, it's broken" >&6; } |
7beff712 VZ |
41119 | wx_cv_cc___thread=no |
41120 | ;; | |
41121 | *) | |
41122 | { echo "$as_me:$LINENO: result: yes, it works" >&5 | |
d589327a | 41123 | echo "${ECHO_T}yes, it works" >&6; } |
7beff712 VZ |
41124 | ;; |
41125 | esac | |
41126 | fi | |
d3dcef01 | 41127 | fi |
64a044d5 | 41128 | |
7beff712 VZ |
41129 | if test "$wx_cv_cc___thread" = "yes"; then |
41130 | cat >>confdefs.h <<\_ACEOF | |
64a044d5 VZ |
41131 | #define HAVE___THREAD_KEYWORD 1 |
41132 | _ACEOF | |
41133 | ||
7beff712 VZ |
41134 | fi |
41135 | fi | |
a848cd7e SC |
41136 | fi |
41137 | ||
41138 | else | |
41139 | if test "$wxUSE_THREADS" = "yes" ; then | |
41140 | case "${host}" in | |
64a044d5 | 41141 | x86_64-*-mingw32* ) |
f380544a | 41142 | ;; |
a848cd7e | 41143 | *-*-mingw32* ) |
d589327a VZ |
41144 | { echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5 |
41145 | echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6; } | |
a848cd7e | 41146 | if test "${wx_cv_cflags_mthread+set}" = set; then |
d589327a | 41147 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a848cd7e SC |
41148 | else |
41149 | ||
9b8888f9 VZ |
41150 | CFLAGS_OLD="$CFLAGS" |
41151 | CFLAGS="-mthreads $CFLAGS" | |
a848cd7e SC |
41152 | cat >conftest.$ac_ext <<_ACEOF |
41153 | /* confdefs.h. */ | |
41154 | _ACEOF | |
41155 | cat confdefs.h >>conftest.$ac_ext | |
41156 | cat >>conftest.$ac_ext <<_ACEOF | |
41157 | /* end confdefs.h. */ | |
41158 | ||
41159 | int | |
41160 | main () | |
41161 | { | |
41162 | ||
41163 | ; | |
41164 | return 0; | |
41165 | } | |
41166 | _ACEOF | |
41167 | rm -f conftest.$ac_objext | |
47964710 VS |
41168 | if { (ac_try="$ac_compile" |
41169 | case "(($ac_try" in | |
41170 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
41171 | *) ac_try_echo=$ac_try;; | |
41172 | esac | |
d589327a | 41173 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 41174 | (eval "$ac_compile") 2>conftest.er1 |
a848cd7e | 41175 | ac_status=$? |
ac1cb8d3 VS |
41176 | grep -v '^ *+' conftest.er1 >conftest.err |
41177 | rm -f conftest.er1 | |
41178 | cat conftest.err >&5 | |
d589327a | 41179 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
41180 | (exit $ac_status); } && { |
41181 | test -z "$ac_c_werror_flag" || | |
41182 | test ! -s conftest.err | |
41183 | } && test -s conftest.$ac_objext; then | |
a848cd7e SC |
41184 | wx_cv_cflags_mthread=yes |
41185 | else | |
d589327a | 41186 | echo "$as_me: failed program was:" >&5 |
a848cd7e SC |
41187 | sed 's/^/| /' conftest.$ac_ext >&5 |
41188 | ||
47964710 | 41189 | wx_cv_cflags_mthread=no |
a848cd7e SC |
41190 | |
41191 | fi | |
47964710 VS |
41192 | |
41193 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
a848cd7e SC |
41194 | |
41195 | ||
41196 | fi | |
d589327a VZ |
41197 | { echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5 |
41198 | echo "${ECHO_T}$wx_cv_cflags_mthread" >&6; } | |
a848cd7e SC |
41199 | |
41200 | if test "$wx_cv_cflags_mthread" = "yes"; then | |
9b8888f9 | 41201 | WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -mthreads" |
a848cd7e SC |
41202 | LDFLAGS="$LDFLAGS -mthreads" |
41203 | else | |
9b8888f9 | 41204 | CFLAGS="$CFLAGS_OLD" |
a848cd7e SC |
41205 | fi |
41206 | ;; | |
41207 | *-pc-os2*emx ) | |
5ff751d6 | 41208 | WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -Zmt -D__ST_MT_ERRNO__" |
a848cd7e SC |
41209 | LDFLAGS="$LDFLAGS -Zmt" |
41210 | ;; | |
41211 | esac | |
41212 | fi | |
41213 | fi | |
41214 | ||
d589327a VZ |
41215 | { echo "$as_me:$LINENO: checking for localtime_r" >&5 |
41216 | echo $ECHO_N "checking for localtime_r... $ECHO_C" >&6; } | |
004ee6da | 41217 | if test "${ac_cv_func_localtime_r+set}" = set; then |
d589327a | 41218 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a848cd7e SC |
41219 | else |
41220 | cat >conftest.$ac_ext <<_ACEOF | |
41221 | /* confdefs.h. */ | |
41222 | _ACEOF | |
41223 | cat confdefs.h >>conftest.$ac_ext | |
41224 | cat >>conftest.$ac_ext <<_ACEOF | |
41225 | /* end confdefs.h. */ | |
004ee6da | 41226 | /* Define localtime_r to an innocuous variant, in case <limits.h> declares localtime_r. |
ac1cb8d3 | 41227 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
004ee6da | 41228 | #define localtime_r innocuous_localtime_r |
ac1cb8d3 | 41229 | |
a848cd7e | 41230 | /* System header to define __stub macros and hopefully few prototypes, |
004ee6da | 41231 | which can conflict with char localtime_r (); below. |
a848cd7e SC |
41232 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
41233 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 41234 | |
a848cd7e SC |
41235 | #ifdef __STDC__ |
41236 | # include <limits.h> | |
41237 | #else | |
41238 | # include <assert.h> | |
41239 | #endif | |
ac1cb8d3 | 41240 | |
004ee6da | 41241 | #undef localtime_r |
ac1cb8d3 | 41242 | |
47964710 VS |
41243 | /* Override any GCC internal prototype to avoid an error. |
41244 | Use char because int might match the return type of a GCC | |
41245 | builtin and then its argument prototype would still apply. */ | |
a848cd7e SC |
41246 | #ifdef __cplusplus |
41247 | extern "C" | |
a848cd7e | 41248 | #endif |
004ee6da | 41249 | char localtime_r (); |
a848cd7e SC |
41250 | /* The GNU C library defines this for functions which it implements |
41251 | to always fail with ENOSYS. Some functions are actually named | |
41252 | something starting with __ and the normal name is an alias. */ | |
47964710 | 41253 | #if defined __stub_localtime_r || defined __stub___localtime_r |
a848cd7e | 41254 | choke me |
a848cd7e SC |
41255 | #endif |
41256 | ||
41257 | int | |
41258 | main () | |
41259 | { | |
47964710 | 41260 | return localtime_r (); |
004ee6da RL |
41261 | ; |
41262 | return 0; | |
41263 | } | |
41264 | _ACEOF | |
41265 | rm -f conftest.$ac_objext conftest$ac_exeext | |
47964710 VS |
41266 | if { (ac_try="$ac_link" |
41267 | case "(($ac_try" in | |
41268 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
41269 | *) ac_try_echo=$ac_try;; | |
41270 | esac | |
d589327a | 41271 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 41272 | (eval "$ac_link") 2>conftest.er1 |
004ee6da RL |
41273 | ac_status=$? |
41274 | grep -v '^ *+' conftest.er1 >conftest.err | |
41275 | rm -f conftest.er1 | |
41276 | cat conftest.err >&5 | |
d589327a | 41277 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
41278 | (exit $ac_status); } && { |
41279 | test -z "$ac_c_werror_flag" || | |
41280 | test ! -s conftest.err | |
d589327a VZ |
41281 | } && test -s conftest$ac_exeext && |
41282 | $as_test_x conftest$ac_exeext; then | |
004ee6da RL |
41283 | ac_cv_func_localtime_r=yes |
41284 | else | |
d589327a | 41285 | echo "$as_me: failed program was:" >&5 |
004ee6da RL |
41286 | sed 's/^/| /' conftest.$ac_ext >&5 |
41287 | ||
47964710 | 41288 | ac_cv_func_localtime_r=no |
004ee6da | 41289 | fi |
47964710 VS |
41290 | |
41291 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
004ee6da RL |
41292 | conftest$ac_exeext conftest.$ac_ext |
41293 | fi | |
d589327a VZ |
41294 | { echo "$as_me:$LINENO: result: $ac_cv_func_localtime_r" >&5 |
41295 | echo "${ECHO_T}$ac_cv_func_localtime_r" >&6; } | |
41296 | if test $ac_cv_func_localtime_r = yes; then | |
004ee6da RL |
41297 | cat >>confdefs.h <<\_ACEOF |
41298 | #define HAVE_LOCALTIME_R 1 | |
41299 | _ACEOF | |
41300 | ||
41301 | fi | |
41302 | ||
d589327a VZ |
41303 | { echo "$as_me:$LINENO: checking for gmtime_r" >&5 |
41304 | echo $ECHO_N "checking for gmtime_r... $ECHO_C" >&6; } | |
004ee6da | 41305 | if test "${ac_cv_func_gmtime_r+set}" = set; then |
d589327a | 41306 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
004ee6da RL |
41307 | else |
41308 | cat >conftest.$ac_ext <<_ACEOF | |
41309 | /* confdefs.h. */ | |
41310 | _ACEOF | |
41311 | cat confdefs.h >>conftest.$ac_ext | |
41312 | cat >>conftest.$ac_ext <<_ACEOF | |
41313 | /* end confdefs.h. */ | |
41314 | /* Define gmtime_r to an innocuous variant, in case <limits.h> declares gmtime_r. | |
41315 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
41316 | #define gmtime_r innocuous_gmtime_r | |
41317 | ||
41318 | /* System header to define __stub macros and hopefully few prototypes, | |
41319 | which can conflict with char gmtime_r (); below. | |
41320 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
41321 | <limits.h> exists even on freestanding compilers. */ | |
41322 | ||
41323 | #ifdef __STDC__ | |
41324 | # include <limits.h> | |
41325 | #else | |
41326 | # include <assert.h> | |
41327 | #endif | |
41328 | ||
41329 | #undef gmtime_r | |
41330 | ||
47964710 VS |
41331 | /* Override any GCC internal prototype to avoid an error. |
41332 | Use char because int might match the return type of a GCC | |
41333 | builtin and then its argument prototype would still apply. */ | |
004ee6da RL |
41334 | #ifdef __cplusplus |
41335 | extern "C" | |
004ee6da | 41336 | #endif |
004ee6da RL |
41337 | char gmtime_r (); |
41338 | /* The GNU C library defines this for functions which it implements | |
41339 | to always fail with ENOSYS. Some functions are actually named | |
41340 | something starting with __ and the normal name is an alias. */ | |
47964710 | 41341 | #if defined __stub_gmtime_r || defined __stub___gmtime_r |
004ee6da | 41342 | choke me |
004ee6da RL |
41343 | #endif |
41344 | ||
41345 | int | |
41346 | main () | |
41347 | { | |
47964710 | 41348 | return gmtime_r (); |
004ee6da RL |
41349 | ; |
41350 | return 0; | |
41351 | } | |
41352 | _ACEOF | |
41353 | rm -f conftest.$ac_objext conftest$ac_exeext | |
47964710 VS |
41354 | if { (ac_try="$ac_link" |
41355 | case "(($ac_try" in | |
41356 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
41357 | *) ac_try_echo=$ac_try;; | |
41358 | esac | |
d589327a | 41359 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 41360 | (eval "$ac_link") 2>conftest.er1 |
004ee6da RL |
41361 | ac_status=$? |
41362 | grep -v '^ *+' conftest.er1 >conftest.err | |
41363 | rm -f conftest.er1 | |
41364 | cat conftest.err >&5 | |
d589327a | 41365 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
41366 | (exit $ac_status); } && { |
41367 | test -z "$ac_c_werror_flag" || | |
41368 | test ! -s conftest.err | |
d589327a VZ |
41369 | } && test -s conftest$ac_exeext && |
41370 | $as_test_x conftest$ac_exeext; then | |
004ee6da RL |
41371 | ac_cv_func_gmtime_r=yes |
41372 | else | |
d589327a | 41373 | echo "$as_me: failed program was:" >&5 |
004ee6da RL |
41374 | sed 's/^/| /' conftest.$ac_ext >&5 |
41375 | ||
47964710 | 41376 | ac_cv_func_gmtime_r=no |
004ee6da | 41377 | fi |
47964710 VS |
41378 | |
41379 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
004ee6da RL |
41380 | conftest$ac_exeext conftest.$ac_ext |
41381 | fi | |
d589327a VZ |
41382 | { echo "$as_me:$LINENO: result: $ac_cv_func_gmtime_r" >&5 |
41383 | echo "${ECHO_T}$ac_cv_func_gmtime_r" >&6; } | |
41384 | if test $ac_cv_func_gmtime_r = yes; then | |
004ee6da RL |
41385 | cat >>confdefs.h <<\_ACEOF |
41386 | #define HAVE_GMTIME_R 1 | |
41387 | _ACEOF | |
41388 | ||
41389 | fi | |
41390 | ||
004ee6da | 41391 | |
004ee6da RL |
41392 | |
41393 | ||
41394 | ac_ext=c | |
41395 | ac_cpp='$CPP $CPPFLAGS' | |
41396 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
41397 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
41398 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
41399 | ||
d589327a VZ |
41400 | { echo "$as_me:$LINENO: checking how many arguments gethostbyname_r() takes" >&5 |
41401 | echo $ECHO_N "checking how many arguments gethostbyname_r() takes... $ECHO_C" >&6; } | |
004ee6da RL |
41402 | |
41403 | if test "${ac_cv_func_which_gethostbyname_r+set}" = set; then | |
d589327a | 41404 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
004ee6da RL |
41405 | else |
41406 | ||
41407 | ||
43a7c679 | 41408 | ################################################################ |
004ee6da RL |
41409 | |
41410 | ac_cv_func_which_gethostbyname_r=unknown | |
41411 | ||
41412 | # | |
41413 | # ONE ARGUMENT (sanity check) | |
41414 | # | |
41415 | ||
41416 | # This should fail, as there is no variant of gethostbyname_r() that takes | |
41417 | # a single argument. If it actually compiles, then we can assume that | |
41418 | # netdb.h is not declaring the function, and the compiler is thereby | |
41419 | # assuming an implicit prototype. In which case, we're out of luck. | |
41420 | # | |
41421 | cat >conftest.$ac_ext <<_ACEOF | |
41422 | /* confdefs.h. */ | |
41423 | _ACEOF | |
41424 | cat confdefs.h >>conftest.$ac_ext | |
41425 | cat >>conftest.$ac_ext <<_ACEOF | |
41426 | /* end confdefs.h. */ | |
41427 | #include <netdb.h> | |
41428 | int | |
41429 | main () | |
41430 | { | |
41431 | ||
41432 | char *name = "www.gnu.org"; | |
41433 | (void)gethostbyname_r(name) /* ; */ | |
41434 | ||
41435 | ; | |
41436 | return 0; | |
41437 | } | |
41438 | _ACEOF | |
41439 | rm -f conftest.$ac_objext | |
47964710 VS |
41440 | if { (ac_try="$ac_compile" |
41441 | case "(($ac_try" in | |
41442 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
41443 | *) ac_try_echo=$ac_try;; | |
41444 | esac | |
d589327a | 41445 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 41446 | (eval "$ac_compile") 2>conftest.er1 |
004ee6da RL |
41447 | ac_status=$? |
41448 | grep -v '^ *+' conftest.er1 >conftest.err | |
41449 | rm -f conftest.er1 | |
41450 | cat conftest.err >&5 | |
d589327a | 41451 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
41452 | (exit $ac_status); } && { |
41453 | test -z "$ac_c_werror_flag" || | |
41454 | test ! -s conftest.err | |
41455 | } && test -s conftest.$ac_objext; then | |
004ee6da RL |
41456 | ac_cv_func_which_gethostbyname_r=no |
41457 | else | |
d589327a | 41458 | echo "$as_me: failed program was:" >&5 |
004ee6da RL |
41459 | sed 's/^/| /' conftest.$ac_ext >&5 |
41460 | ||
47964710 | 41461 | |
004ee6da | 41462 | fi |
47964710 VS |
41463 | |
41464 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
004ee6da RL |
41465 | |
41466 | # | |
41467 | # SIX ARGUMENTS | |
41468 | # (e.g. Linux) | |
41469 | # | |
41470 | ||
41471 | if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then | |
41472 | ||
41473 | cat >conftest.$ac_ext <<_ACEOF | |
41474 | /* confdefs.h. */ | |
41475 | _ACEOF | |
41476 | cat confdefs.h >>conftest.$ac_ext | |
41477 | cat >>conftest.$ac_ext <<_ACEOF | |
41478 | /* end confdefs.h. */ | |
41479 | #include <netdb.h> | |
41480 | int | |
41481 | main () | |
41482 | { | |
41483 | ||
41484 | char *name = "www.gnu.org"; | |
41485 | struct hostent ret, *retp; | |
41486 | char buf[1024]; | |
41487 | int buflen = 1024; | |
41488 | int my_h_errno; | |
41489 | (void)gethostbyname_r(name, &ret, buf, buflen, &retp, &my_h_errno) /* ; */ | |
41490 | ||
41491 | ; | |
41492 | return 0; | |
41493 | } | |
41494 | _ACEOF | |
41495 | rm -f conftest.$ac_objext | |
47964710 VS |
41496 | if { (ac_try="$ac_compile" |
41497 | case "(($ac_try" in | |
41498 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
41499 | *) ac_try_echo=$ac_try;; | |
41500 | esac | |
d589327a | 41501 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 41502 | (eval "$ac_compile") 2>conftest.er1 |
004ee6da RL |
41503 | ac_status=$? |
41504 | grep -v '^ *+' conftest.er1 >conftest.err | |
41505 | rm -f conftest.er1 | |
41506 | cat conftest.err >&5 | |
d589327a | 41507 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
41508 | (exit $ac_status); } && { |
41509 | test -z "$ac_c_werror_flag" || | |
41510 | test ! -s conftest.err | |
41511 | } && test -s conftest.$ac_objext; then | |
004ee6da RL |
41512 | ac_cv_func_which_gethostbyname_r=six |
41513 | else | |
d589327a | 41514 | echo "$as_me: failed program was:" >&5 |
004ee6da RL |
41515 | sed 's/^/| /' conftest.$ac_ext >&5 |
41516 | ||
47964710 | 41517 | |
004ee6da | 41518 | fi |
47964710 VS |
41519 | |
41520 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
004ee6da RL |
41521 | |
41522 | fi | |
41523 | ||
41524 | # | |
41525 | # FIVE ARGUMENTS | |
41526 | # (e.g. Solaris) | |
41527 | # | |
41528 | ||
41529 | if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then | |
41530 | ||
41531 | cat >conftest.$ac_ext <<_ACEOF | |
41532 | /* confdefs.h. */ | |
41533 | _ACEOF | |
41534 | cat confdefs.h >>conftest.$ac_ext | |
41535 | cat >>conftest.$ac_ext <<_ACEOF | |
41536 | /* end confdefs.h. */ | |
41537 | #include <netdb.h> | |
41538 | int | |
41539 | main () | |
41540 | { | |
41541 | ||
41542 | char *name = "www.gnu.org"; | |
41543 | struct hostent ret; | |
41544 | char buf[1024]; | |
41545 | int buflen = 1024; | |
41546 | int my_h_errno; | |
41547 | (void)gethostbyname_r(name, &ret, buf, buflen, &my_h_errno) /* ; */ | |
41548 | ||
41549 | ; | |
41550 | return 0; | |
41551 | } | |
41552 | _ACEOF | |
41553 | rm -f conftest.$ac_objext | |
47964710 VS |
41554 | if { (ac_try="$ac_compile" |
41555 | case "(($ac_try" in | |
41556 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
41557 | *) ac_try_echo=$ac_try;; | |
41558 | esac | |
d589327a | 41559 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 41560 | (eval "$ac_compile") 2>conftest.er1 |
004ee6da RL |
41561 | ac_status=$? |
41562 | grep -v '^ *+' conftest.er1 >conftest.err | |
41563 | rm -f conftest.er1 | |
41564 | cat conftest.err >&5 | |
d589327a | 41565 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
41566 | (exit $ac_status); } && { |
41567 | test -z "$ac_c_werror_flag" || | |
41568 | test ! -s conftest.err | |
41569 | } && test -s conftest.$ac_objext; then | |
004ee6da RL |
41570 | ac_cv_func_which_gethostbyname_r=five |
41571 | else | |
d589327a | 41572 | echo "$as_me: failed program was:" >&5 |
004ee6da RL |
41573 | sed 's/^/| /' conftest.$ac_ext >&5 |
41574 | ||
47964710 | 41575 | |
004ee6da | 41576 | fi |
47964710 VS |
41577 | |
41578 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
004ee6da RL |
41579 | |
41580 | fi | |
41581 | ||
41582 | # | |
41583 | # THREE ARGUMENTS | |
41584 | # (e.g. AIX, HP-UX, Tru64) | |
41585 | # | |
41586 | ||
41587 | if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then | |
41588 | ||
41589 | cat >conftest.$ac_ext <<_ACEOF | |
41590 | /* confdefs.h. */ | |
41591 | _ACEOF | |
41592 | cat confdefs.h >>conftest.$ac_ext | |
41593 | cat >>conftest.$ac_ext <<_ACEOF | |
41594 | /* end confdefs.h. */ | |
41595 | #include <netdb.h> | |
41596 | int | |
41597 | main () | |
41598 | { | |
41599 | ||
41600 | char *name = "www.gnu.org"; | |
41601 | struct hostent ret; | |
41602 | struct hostent_data data; | |
41603 | (void)gethostbyname_r(name, &ret, &data) /* ; */ | |
41604 | ||
41605 | ; | |
41606 | return 0; | |
41607 | } | |
41608 | _ACEOF | |
41609 | rm -f conftest.$ac_objext | |
47964710 VS |
41610 | if { (ac_try="$ac_compile" |
41611 | case "(($ac_try" in | |
41612 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
41613 | *) ac_try_echo=$ac_try;; | |
41614 | esac | |
d589327a | 41615 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 41616 | (eval "$ac_compile") 2>conftest.er1 |
004ee6da RL |
41617 | ac_status=$? |
41618 | grep -v '^ *+' conftest.er1 >conftest.err | |
41619 | rm -f conftest.er1 | |
41620 | cat conftest.err >&5 | |
d589327a | 41621 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
41622 | (exit $ac_status); } && { |
41623 | test -z "$ac_c_werror_flag" || | |
41624 | test ! -s conftest.err | |
41625 | } && test -s conftest.$ac_objext; then | |
004ee6da RL |
41626 | ac_cv_func_which_gethostbyname_r=three |
41627 | else | |
d589327a | 41628 | echo "$as_me: failed program was:" >&5 |
004ee6da RL |
41629 | sed 's/^/| /' conftest.$ac_ext >&5 |
41630 | ||
47964710 | 41631 | |
004ee6da | 41632 | fi |
47964710 VS |
41633 | |
41634 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
004ee6da RL |
41635 | |
41636 | fi | |
41637 | ||
43a7c679 | 41638 | ################################################################ |
004ee6da RL |
41639 | |
41640 | ||
41641 | fi | |
41642 | ||
41643 | case "$ac_cv_func_which_gethostbyname_r" in | |
41644 | three) | |
d589327a VZ |
41645 | { echo "$as_me:$LINENO: result: three" >&5 |
41646 | echo "${ECHO_T}three" >&6; } | |
004ee6da RL |
41647 | cat >>confdefs.h <<\_ACEOF |
41648 | #define HAVE_FUNC_GETHOSTBYNAME_R_3 1 | |
41649 | _ACEOF | |
41650 | ||
41651 | ;; | |
41652 | ||
41653 | five) | |
d589327a VZ |
41654 | { echo "$as_me:$LINENO: result: five" >&5 |
41655 | echo "${ECHO_T}five" >&6; } | |
004ee6da RL |
41656 | cat >>confdefs.h <<\_ACEOF |
41657 | #define HAVE_FUNC_GETHOSTBYNAME_R_5 1 | |
41658 | _ACEOF | |
41659 | ||
41660 | ;; | |
41661 | ||
41662 | six) | |
d589327a VZ |
41663 | { echo "$as_me:$LINENO: result: six" >&5 |
41664 | echo "${ECHO_T}six" >&6; } | |
004ee6da RL |
41665 | cat >>confdefs.h <<\_ACEOF |
41666 | #define HAVE_FUNC_GETHOSTBYNAME_R_6 1 | |
41667 | _ACEOF | |
41668 | ||
41669 | ;; | |
41670 | ||
41671 | no) | |
d589327a VZ |
41672 | { echo "$as_me:$LINENO: result: cannot find function declaration in netdb.h" >&5 |
41673 | echo "${ECHO_T}cannot find function declaration in netdb.h" >&6; } | |
004ee6da RL |
41674 | ;; |
41675 | ||
41676 | unknown) | |
d589327a VZ |
41677 | { echo "$as_me:$LINENO: result: can't tell" >&5 |
41678 | echo "${ECHO_T}can't tell" >&6; } | |
004ee6da RL |
41679 | ;; |
41680 | ||
41681 | *) | |
d589327a VZ |
41682 | { { echo "$as_me:$LINENO: error: internal error" >&5 |
41683 | echo "$as_me: error: internal error" >&2;} | |
004ee6da RL |
41684 | { (exit 1); exit 1; }; } |
41685 | ;; | |
41686 | esac | |
41687 | ||
fd5199d6 VZ |
41688 | ac_ext=c |
41689 | ac_cpp='$CPP $CPPFLAGS' | |
41690 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
41691 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
41692 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
004ee6da RL |
41693 | |
41694 | ||
41695 | ||
41696 | if test "x$ac_cv_func_which_gethostbyname_r" = "xno" -o \ | |
ec3edcc9 | 41697 | "x$ac_cv_func_which_gethostbyname_r" = "xunknown" ; then |
d589327a VZ |
41698 | { echo "$as_me:$LINENO: checking for gethostbyname" >&5 |
41699 | echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; } | |
004ee6da | 41700 | if test "${ac_cv_func_gethostbyname+set}" = set; then |
d589327a | 41701 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
004ee6da RL |
41702 | else |
41703 | cat >conftest.$ac_ext <<_ACEOF | |
41704 | /* confdefs.h. */ | |
41705 | _ACEOF | |
41706 | cat confdefs.h >>conftest.$ac_ext | |
41707 | cat >>conftest.$ac_ext <<_ACEOF | |
41708 | /* end confdefs.h. */ | |
41709 | /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname. | |
41710 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
41711 | #define gethostbyname innocuous_gethostbyname | |
41712 | ||
41713 | /* System header to define __stub macros and hopefully few prototypes, | |
41714 | which can conflict with char gethostbyname (); below. | |
41715 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
41716 | <limits.h> exists even on freestanding compilers. */ | |
41717 | ||
41718 | #ifdef __STDC__ | |
41719 | # include <limits.h> | |
41720 | #else | |
41721 | # include <assert.h> | |
41722 | #endif | |
41723 | ||
41724 | #undef gethostbyname | |
41725 | ||
47964710 VS |
41726 | /* Override any GCC internal prototype to avoid an error. |
41727 | Use char because int might match the return type of a GCC | |
41728 | builtin and then its argument prototype would still apply. */ | |
004ee6da RL |
41729 | #ifdef __cplusplus |
41730 | extern "C" | |
004ee6da | 41731 | #endif |
004ee6da RL |
41732 | char gethostbyname (); |
41733 | /* The GNU C library defines this for functions which it implements | |
41734 | to always fail with ENOSYS. Some functions are actually named | |
41735 | something starting with __ and the normal name is an alias. */ | |
47964710 | 41736 | #if defined __stub_gethostbyname || defined __stub___gethostbyname |
004ee6da | 41737 | choke me |
004ee6da RL |
41738 | #endif |
41739 | ||
41740 | int | |
41741 | main () | |
41742 | { | |
47964710 | 41743 | return gethostbyname (); |
004ee6da RL |
41744 | ; |
41745 | return 0; | |
41746 | } | |
41747 | _ACEOF | |
41748 | rm -f conftest.$ac_objext conftest$ac_exeext | |
47964710 VS |
41749 | if { (ac_try="$ac_link" |
41750 | case "(($ac_try" in | |
41751 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
41752 | *) ac_try_echo=$ac_try;; | |
41753 | esac | |
d589327a | 41754 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 41755 | (eval "$ac_link") 2>conftest.er1 |
004ee6da RL |
41756 | ac_status=$? |
41757 | grep -v '^ *+' conftest.er1 >conftest.err | |
41758 | rm -f conftest.er1 | |
41759 | cat conftest.err >&5 | |
d589327a | 41760 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
41761 | (exit $ac_status); } && { |
41762 | test -z "$ac_c_werror_flag" || | |
41763 | test ! -s conftest.err | |
d589327a VZ |
41764 | } && test -s conftest$ac_exeext && |
41765 | $as_test_x conftest$ac_exeext; then | |
004ee6da RL |
41766 | ac_cv_func_gethostbyname=yes |
41767 | else | |
d589327a | 41768 | echo "$as_me: failed program was:" >&5 |
004ee6da RL |
41769 | sed 's/^/| /' conftest.$ac_ext >&5 |
41770 | ||
47964710 | 41771 | ac_cv_func_gethostbyname=no |
004ee6da | 41772 | fi |
47964710 VS |
41773 | |
41774 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
004ee6da RL |
41775 | conftest$ac_exeext conftest.$ac_ext |
41776 | fi | |
d589327a VZ |
41777 | { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5 |
41778 | echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; } | |
41779 | if test $ac_cv_func_gethostbyname = yes; then | |
004ee6da RL |
41780 | cat >>confdefs.h <<\_ACEOF |
41781 | #define HAVE_GETHOSTBYNAME 1 | |
41782 | _ACEOF | |
41783 | ||
41784 | fi | |
41785 | ||
41786 | fi | |
111d9948 | 41787 | |
d589327a VZ |
41788 | { echo "$as_me:$LINENO: checking how many arguments getservbyname_r() takes" >&5 |
41789 | echo $ECHO_N "checking how many arguments getservbyname_r() takes... $ECHO_C" >&6; } | |
43a7c679 | 41790 | if test "${ac_cv_func_which_getservbyname_r+set}" = set; then |
d589327a | 41791 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4fc1c0f0 | 41792 | else |
4fc1c0f0 | 41793 | |
47964710 | 41794 | ac_ext=cpp |
43a7c679 VZ |
41795 | ac_cpp='$CXXCPP $CPPFLAGS' |
41796 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
41797 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
41798 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
4fc1c0f0 | 41799 | |
fd5199d6 | 41800 | |
3ecd9f92 | 41801 | cat >conftest.$ac_ext <<_ACEOF |
004ee6da RL |
41802 | /* confdefs.h. */ |
41803 | _ACEOF | |
41804 | cat confdefs.h >>conftest.$ac_ext | |
41805 | cat >>conftest.$ac_ext <<_ACEOF | |
41806 | /* end confdefs.h. */ | |
43a7c679 | 41807 | #include <netdb.h> |
004ee6da RL |
41808 | int |
41809 | main () | |
41810 | { | |
41811 | ||
43a7c679 VZ |
41812 | char *name; |
41813 | char *proto; | |
41814 | struct servent *se, *res; | |
41815 | char buffer[2048]; | |
41816 | int buflen = 2048; | |
41817 | (void) getservbyname_r(name, proto, se, buffer, buflen, &res) | |
004ee6da RL |
41818 | |
41819 | ; | |
41820 | return 0; | |
41821 | } | |
41822 | _ACEOF | |
41823 | rm -f conftest.$ac_objext | |
47964710 VS |
41824 | if { (ac_try="$ac_compile" |
41825 | case "(($ac_try" in | |
41826 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
41827 | *) ac_try_echo=$ac_try;; | |
41828 | esac | |
d589327a | 41829 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 41830 | (eval "$ac_compile") 2>conftest.er1 |
004ee6da RL |
41831 | ac_status=$? |
41832 | grep -v '^ *+' conftest.er1 >conftest.err | |
41833 | rm -f conftest.er1 | |
41834 | cat conftest.err >&5 | |
d589327a | 41835 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
41836 | (exit $ac_status); } && { |
41837 | test -z "$ac_cxx_werror_flag" || | |
41838 | test ! -s conftest.err | |
41839 | } && test -s conftest.$ac_objext; then | |
43a7c679 | 41840 | ac_cv_func_which_getservbyname_r=six |
004ee6da | 41841 | else |
d589327a | 41842 | echo "$as_me: failed program was:" >&5 |
004ee6da RL |
41843 | sed 's/^/| /' conftest.$ac_ext >&5 |
41844 | ||
3ecd9f92 | 41845 | |
43a7c679 | 41846 | cat >conftest.$ac_ext <<_ACEOF |
004ee6da RL |
41847 | /* confdefs.h. */ |
41848 | _ACEOF | |
41849 | cat confdefs.h >>conftest.$ac_ext | |
41850 | cat >>conftest.$ac_ext <<_ACEOF | |
41851 | /* end confdefs.h. */ | |
43a7c679 | 41852 | #include <netdb.h> |
004ee6da RL |
41853 | int |
41854 | main () | |
41855 | { | |
41856 | ||
43a7c679 VZ |
41857 | char *name; |
41858 | char *proto; | |
41859 | struct servent *se; | |
41860 | char buffer[2048]; | |
41861 | int buflen = 2048; | |
41862 | (void) getservbyname_r(name, proto, se, buffer, buflen) | |
004ee6da RL |
41863 | |
41864 | ; | |
41865 | return 0; | |
41866 | } | |
41867 | _ACEOF | |
41868 | rm -f conftest.$ac_objext | |
47964710 VS |
41869 | if { (ac_try="$ac_compile" |
41870 | case "(($ac_try" in | |
41871 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
41872 | *) ac_try_echo=$ac_try;; | |
41873 | esac | |
d589327a | 41874 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 41875 | (eval "$ac_compile") 2>conftest.er1 |
004ee6da RL |
41876 | ac_status=$? |
41877 | grep -v '^ *+' conftest.er1 >conftest.err | |
41878 | rm -f conftest.er1 | |
41879 | cat conftest.err >&5 | |
d589327a | 41880 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
41881 | (exit $ac_status); } && { |
41882 | test -z "$ac_cxx_werror_flag" || | |
41883 | test ! -s conftest.err | |
41884 | } && test -s conftest.$ac_objext; then | |
43a7c679 | 41885 | ac_cv_func_which_getservbyname_r=five |
004ee6da | 41886 | else |
d589327a | 41887 | echo "$as_me: failed program was:" >&5 |
004ee6da RL |
41888 | sed 's/^/| /' conftest.$ac_ext >&5 |
41889 | ||
3ecd9f92 | 41890 | |
43a7c679 | 41891 | cat >conftest.$ac_ext <<_ACEOF |
004ee6da RL |
41892 | /* confdefs.h. */ |
41893 | _ACEOF | |
41894 | cat confdefs.h >>conftest.$ac_ext | |
41895 | cat >>conftest.$ac_ext <<_ACEOF | |
41896 | /* end confdefs.h. */ | |
43a7c679 | 41897 | #include <netdb.h> |
004ee6da RL |
41898 | int |
41899 | main () | |
41900 | { | |
41901 | ||
43a7c679 VZ |
41902 | char *name; |
41903 | char *proto; | |
41904 | struct servent *se; | |
41905 | struct servent_data data; | |
41906 | (void) getservbyname_r(name, proto, se, &data); | |
004ee6da RL |
41907 | |
41908 | ; | |
41909 | return 0; | |
41910 | } | |
41911 | _ACEOF | |
41912 | rm -f conftest.$ac_objext | |
47964710 VS |
41913 | if { (ac_try="$ac_compile" |
41914 | case "(($ac_try" in | |
41915 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
41916 | *) ac_try_echo=$ac_try;; | |
41917 | esac | |
d589327a | 41918 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 41919 | (eval "$ac_compile") 2>conftest.er1 |
004ee6da RL |
41920 | ac_status=$? |
41921 | grep -v '^ *+' conftest.er1 >conftest.err | |
41922 | rm -f conftest.er1 | |
41923 | cat conftest.err >&5 | |
d589327a | 41924 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
41925 | (exit $ac_status); } && { |
41926 | test -z "$ac_cxx_werror_flag" || | |
41927 | test ! -s conftest.err | |
41928 | } && test -s conftest.$ac_objext; then | |
43a7c679 | 41929 | ac_cv_func_which_getservbyname_r=four |
004ee6da | 41930 | else |
d589327a | 41931 | echo "$as_me: failed program was:" >&5 |
004ee6da RL |
41932 | sed 's/^/| /' conftest.$ac_ext >&5 |
41933 | ||
47964710 | 41934 | ac_cv_func_which_getservbyname_r=no |
43a7c679 | 41935 | |
faa5c14f | 41936 | fi |
47964710 VS |
41937 | |
41938 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
111d9948 VS |
41939 | |
41940 | ||
004ee6da | 41941 | fi |
47964710 VS |
41942 | |
41943 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3ecd9f92 | 41944 | |
3ecd9f92 | 41945 | |
111d9948 | 41946 | fi |
47964710 VS |
41947 | |
41948 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
43a7c679 VZ |
41949 | ac_ext=c |
41950 | ac_cpp='$CPP $CPPFLAGS' | |
41951 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
41952 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
41953 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
41954 | ||
faa5c14f VZ |
41955 | |
41956 | ||
3ecd9f92 | 41957 | fi |
d589327a VZ |
41958 | { echo "$as_me:$LINENO: result: $ac_cv_func_which_getservbyname_r" >&5 |
41959 | echo "${ECHO_T}$ac_cv_func_which_getservbyname_r" >&6; } | |
004ee6da RL |
41960 | |
41961 | if test $ac_cv_func_which_getservbyname_r = six; then | |
41962 | cat >>confdefs.h <<\_ACEOF | |
41963 | #define HAVE_FUNC_GETSERVBYNAME_R_6 1 | |
41964 | _ACEOF | |
41965 | ||
41966 | elif test $ac_cv_func_which_getservbyname_r = five; then | |
41967 | cat >>confdefs.h <<\_ACEOF | |
41968 | #define HAVE_FUNC_GETSERVBYNAME_R_5 1 | |
41969 | _ACEOF | |
41970 | ||
41971 | elif test $ac_cv_func_which_getservbyname_r = four; then | |
41972 | cat >>confdefs.h <<\_ACEOF | |
41973 | #define HAVE_FUNC_GETSERVBYNAME_R_4 1 | |
41974 | _ACEOF | |
41975 | ||
004ee6da RL |
41976 | fi |
41977 | ||
41978 | ||
41979 | if test "x$ac_cv_func_which_getservbyname_r" = "xno" -o \ | |
ec3edcc9 | 41980 | "x$ac_cv_func_which_getservbyname_r" = "xunknown" ; then |
004ee6da RL |
41981 | |
41982 | for ac_func in getservbyname | |
41983 | do | |
d589327a VZ |
41984 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
41985 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
41986 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
47964710 | 41987 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
d589327a | 41988 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
004ee6da RL |
41989 | else |
41990 | cat >conftest.$ac_ext <<_ACEOF | |
41991 | /* confdefs.h. */ | |
41992 | _ACEOF | |
41993 | cat confdefs.h >>conftest.$ac_ext | |
41994 | cat >>conftest.$ac_ext <<_ACEOF | |
41995 | /* end confdefs.h. */ | |
41996 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
41997 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
41998 | #define $ac_func innocuous_$ac_func | |
41999 | ||
42000 | /* System header to define __stub macros and hopefully few prototypes, | |
42001 | which can conflict with char $ac_func (); below. | |
42002 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
42003 | <limits.h> exists even on freestanding compilers. */ | |
42004 | ||
42005 | #ifdef __STDC__ | |
42006 | # include <limits.h> | |
42007 | #else | |
42008 | # include <assert.h> | |
42009 | #endif | |
42010 | ||
42011 | #undef $ac_func | |
42012 | ||
47964710 VS |
42013 | /* Override any GCC internal prototype to avoid an error. |
42014 | Use char because int might match the return type of a GCC | |
42015 | builtin and then its argument prototype would still apply. */ | |
004ee6da RL |
42016 | #ifdef __cplusplus |
42017 | extern "C" | |
004ee6da | 42018 | #endif |
004ee6da RL |
42019 | char $ac_func (); |
42020 | /* The GNU C library defines this for functions which it implements | |
42021 | to always fail with ENOSYS. Some functions are actually named | |
42022 | something starting with __ and the normal name is an alias. */ | |
47964710 | 42023 | #if defined __stub_$ac_func || defined __stub___$ac_func |
004ee6da | 42024 | choke me |
004ee6da RL |
42025 | #endif |
42026 | ||
42027 | int | |
42028 | main () | |
42029 | { | |
47964710 | 42030 | return $ac_func (); |
004ee6da RL |
42031 | ; |
42032 | return 0; | |
42033 | } | |
42034 | _ACEOF | |
42035 | rm -f conftest.$ac_objext conftest$ac_exeext | |
47964710 VS |
42036 | if { (ac_try="$ac_link" |
42037 | case "(($ac_try" in | |
42038 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
42039 | *) ac_try_echo=$ac_try;; | |
42040 | esac | |
d589327a | 42041 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 42042 | (eval "$ac_link") 2>conftest.er1 |
004ee6da RL |
42043 | ac_status=$? |
42044 | grep -v '^ *+' conftest.er1 >conftest.err | |
42045 | rm -f conftest.er1 | |
42046 | cat conftest.err >&5 | |
d589327a | 42047 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
42048 | (exit $ac_status); } && { |
42049 | test -z "$ac_c_werror_flag" || | |
42050 | test ! -s conftest.err | |
d589327a VZ |
42051 | } && test -s conftest$ac_exeext && |
42052 | $as_test_x conftest$ac_exeext; then | |
004ee6da RL |
42053 | eval "$as_ac_var=yes" |
42054 | else | |
d589327a | 42055 | echo "$as_me: failed program was:" >&5 |
004ee6da RL |
42056 | sed 's/^/| /' conftest.$ac_ext >&5 |
42057 | ||
47964710 | 42058 | eval "$as_ac_var=no" |
004ee6da | 42059 | fi |
47964710 VS |
42060 | |
42061 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
004ee6da RL |
42062 | conftest$ac_exeext conftest.$ac_ext |
42063 | fi | |
d589327a VZ |
42064 | ac_res=`eval echo '${'$as_ac_var'}'` |
42065 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
42066 | echo "${ECHO_T}$ac_res" >&6; } | |
42067 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
004ee6da | 42068 | cat >>confdefs.h <<_ACEOF |
d589327a | 42069 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
004ee6da RL |
42070 | _ACEOF |
42071 | cat >>confdefs.h <<\_ACEOF | |
42072 | #define HAVE_GETSERVBYNAME 1 | |
42073 | _ACEOF | |
42074 | ||
42075 | fi | |
42076 | done | |
42077 | ||
42078 | fi | |
42079 | ||
004ee6da RL |
42080 | if test "$wxUSE_THREADS" = "yes"; then |
42081 | cat >>confdefs.h <<\_ACEOF | |
42082 | #define wxUSE_THREADS 1 | |
42083 | _ACEOF | |
42084 | ||
42085 | ||
42086 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread" | |
42087 | else | |
56632e81 | 42088 | if test "$wx_cv_func_strtok_r" = "yes"; then |
d589327a VZ |
42089 | { echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5 |
42090 | echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6; } | |
004ee6da RL |
42091 | if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then |
42092 | WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_REENTRANT" | |
d589327a VZ |
42093 | { echo "$as_me:$LINENO: result: yes" >&5 |
42094 | echo "${ECHO_T}yes" >&6; } | |
004ee6da | 42095 | else |
d589327a VZ |
42096 | { echo "$as_me:$LINENO: result: no" >&5 |
42097 | echo "${ECHO_T}no" >&6; } | |
004ee6da RL |
42098 | fi |
42099 | fi | |
42100 | fi | |
42101 | ||
88262190 | 42102 | if test "$WXGTK2" = 1 ; then |
004ee6da | 42103 | cat >>confdefs.h <<_ACEOF |
88262190 | 42104 | #define __WXGTK20__ $WXGTK2 |
004ee6da RL |
42105 | _ACEOF |
42106 | ||
42107 | WXGTK12=1 | |
42108 | fi | |
42109 | ||
42110 | if test "$WXGTK12" = 1 ; then | |
42111 | cat >>confdefs.h <<_ACEOF | |
42112 | #define __WXGTK12__ $WXGTK12 | |
42113 | _ACEOF | |
42114 | ||
42115 | fi | |
42116 | ||
42117 | if test "$WXGTK127" = 1 ; then | |
42118 | cat >>confdefs.h <<_ACEOF | |
42119 | #define __WXGTK127__ $WXGTK127 | |
42120 | _ACEOF | |
42121 | ||
42122 | fi | |
42123 | ||
42124 | if test "$WXGPE" = 1 ; then | |
42125 | cat >>confdefs.h <<_ACEOF | |
42126 | #define __WXGPE__ $WXGPE | |
42127 | _ACEOF | |
42128 | ||
42129 | fi | |
42130 | ||
42131 | DEBUG_CFLAGS= | |
6ad6ba21 | 42132 | if `echo $CXXFLAGS $CFLAGS | grep " -g" >/dev/null`; then |
d589327a VZ |
42133 | { echo "$as_me:$LINENO: WARNING: CXXFLAGS/CFLAGS already contains -g flag; ignoring the --enable-debug_info option" >&5 |
42134 | echo "$as_me: WARNING: CXXFLAGS/CFLAGS already contains -g flag; ignoring the --enable-debug_info option" >&2;} | |
6ad6ba21 | 42135 | elif test "$wxUSE_DEBUG_INFO" = "yes" ; then |
004ee6da | 42136 | DEBUG_CFLAGS="-g" |
004ee6da RL |
42137 | fi |
42138 | ||
42139 | if test "$wxUSE_DEBUG_GDB" = "yes" ; then | |
42140 | wxUSE_DEBUG_INFO=yes | |
42141 | if test "$GCC" = yes; then | |
42142 | DEBUG_CFLAGS="-ggdb" | |
42143 | fi | |
42144 | fi | |
42145 | ||
89b1afb4 | 42146 | if test "$wxUSE_DEBUG_FLAG" = "no" ; then |
004ee6da | 42147 | if test "$wxUSE_GTK" = 1 ; then |
99879bbf MR |
42148 | if test "x$wxGTK_VERSION" = "x1" ; then |
42149 | CPPFLAGS="-DGTK_NO_CHECK_CASTS $CPPFLAGS" | |
42150 | fi | |
004ee6da RL |
42151 | fi |
42152 | fi | |
42153 | ||
42154 | if test "$wxUSE_MEM_TRACING" = "yes" ; then | |
42155 | cat >>confdefs.h <<\_ACEOF | |
42156 | #define wxUSE_MEMORY_TRACING 1 | |
42157 | _ACEOF | |
42158 | ||
42159 | cat >>confdefs.h <<\_ACEOF | |
42160 | #define wxUSE_GLOBAL_MEMORY_OPERATORS 1 | |
42161 | _ACEOF | |
42162 | ||
42163 | cat >>confdefs.h <<\_ACEOF | |
42164 | #define wxUSE_DEBUG_NEW_ALWAYS 1 | |
42165 | _ACEOF | |
42166 | ||
42167 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck" | |
42168 | fi | |
42169 | ||
42170 | if test "$wxUSE_DMALLOC" = "yes" ; then | |
42171 | DMALLOC_LIBS="-ldmallocthcxx" | |
42172 | fi | |
42173 | ||
42174 | PROFILE_FLAGS= | |
42175 | if test "$wxUSE_PROFILE" = "yes" ; then | |
42176 | PROFILE_FLAGS=" -pg" | |
42177 | fi | |
42178 | ||
42179 | if test "$GCC" = "yes" ; then | |
42180 | if test "$wxUSE_NO_RTTI" = "yes" ; then | |
3017880e | 42181 | WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -DwxNO_RTTI -fno-rtti" |
004ee6da RL |
42182 | fi |
42183 | if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then | |
42184 | WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fno-exceptions" | |
42185 | fi | |
42186 | if test "$wxUSE_PERMISSIVE" = "yes" ; then | |
42187 | WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -fpermissive" | |
42188 | fi | |
42189 | ||
42190 | case "${host}" in | |
42191 | powerpc*-*-aix* ) | |
42192 | WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -mminimal-toc" | |
42193 | ;; | |
42194 | *-hppa* ) | |
42195 | WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -ffunction-sections" | |
42196 | ;; | |
42197 | esac | |
42198 | fi | |
42199 | ||
42200 | OPTIMISE_CFLAGS= | |
6ad6ba21 | 42201 | if `echo $CXXFLAGS $CFLAGS | grep " -O" >/dev/null`; then |
d589327a VZ |
42202 | { echo "$as_me:$LINENO: WARNING: CXXFLAGS/CFLAGS already contains -O flag; ignoring the --disable-optimise option" >&5 |
42203 | echo "$as_me: WARNING: CXXFLAGS/CFLAGS already contains -O flag; ignoring the --disable-optimise option" >&2;} | |
004ee6da | 42204 | else |
6ad6ba21 FM |
42205 | if test "$wxUSE_OPTIMISE" = "no" ; then |
42206 | if test "$GCC" = yes ; then | |
42207 | OPTIMISE_CFLAGS="-O0" | |
42208 | fi | |
004ee6da | 42209 | else |
6ad6ba21 FM |
42210 | if test "$GCC" = yes ; then |
42211 | case "${host}" in | |
42212 | *-pc-os2_emx | *-pc-os2-emx ) | |
42213 | OPTIMISE_CFLAGS="-O2" | |
42214 | ;; | |
42215 | *) | |
42216 | OPTIMISE_CFLAGS="-O2 -fno-strict-aliasing" | |
42217 | ;; | |
42218 | esac | |
42219 | else | |
42220 | OPTIMISE_CFLAGS="-O" | |
42221 | fi | |
004ee6da RL |
42222 | fi |
42223 | fi | |
42224 | ||
42225 | ||
abb6edd1 | 42226 | if test "x$WXWIN_COMPATIBILITY_2_6" = "xyes"; then |
004ee6da RL |
42227 | cat >>confdefs.h <<\_ACEOF |
42228 | #define WXWIN_COMPATIBILITY_2_6 1 | |
42229 | _ACEOF | |
42230 | ||
abb6edd1 VS |
42231 | |
42232 | WXWIN_COMPATIBILITY_2_8="yes" | |
42233 | fi | |
42234 | ||
42235 | if test "x$WXWIN_COMPATIBILITY_2_8" != "xno"; then | |
42236 | cat >>confdefs.h <<\_ACEOF | |
42237 | #define WXWIN_COMPATIBILITY_2_8 1 | |
42238 | _ACEOF | |
42239 | ||
004ee6da RL |
42240 | fi |
42241 | ||
42242 | ||
42243 | if test "$wxUSE_GUI" = "yes"; then | |
42244 | cat >>confdefs.h <<\_ACEOF | |
42245 | #define wxUSE_GUI 1 | |
42246 | _ACEOF | |
42247 | ||
42248 | ||
42249 | fi | |
42250 | ||
42251 | ||
42252 | if test "$wxUSE_UNIX" = "yes"; then | |
42253 | cat >>confdefs.h <<\_ACEOF | |
42254 | #define wxUSE_UNIX 1 | |
42255 | _ACEOF | |
42256 | ||
42257 | fi | |
42258 | ||
42259 | ||
42260 | if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then | |
42261 | ||
42262 | HAVE_DL_FUNCS=0 | |
42263 | HAVE_SHL_FUNCS=0 | |
42264 | if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then | |
3e654768 | 42265 | if test "$USE_DOS" = 1; then |
004ee6da RL |
42266 | HAVE_DL_FUNCS=0 |
42267 | else | |
42268 | ||
42269 | for ac_func in dlopen | |
42270 | do | |
d589327a VZ |
42271 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
42272 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
42273 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
47964710 | 42274 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
d589327a | 42275 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
004ee6da RL |
42276 | else |
42277 | cat >conftest.$ac_ext <<_ACEOF | |
42278 | /* confdefs.h. */ | |
42279 | _ACEOF | |
42280 | cat confdefs.h >>conftest.$ac_ext | |
42281 | cat >>conftest.$ac_ext <<_ACEOF | |
42282 | /* end confdefs.h. */ | |
42283 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
42284 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
42285 | #define $ac_func innocuous_$ac_func | |
42286 | ||
42287 | /* System header to define __stub macros and hopefully few prototypes, | |
42288 | which can conflict with char $ac_func (); below. | |
42289 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
42290 | <limits.h> exists even on freestanding compilers. */ | |
42291 | ||
42292 | #ifdef __STDC__ | |
42293 | # include <limits.h> | |
42294 | #else | |
42295 | # include <assert.h> | |
42296 | #endif | |
42297 | ||
42298 | #undef $ac_func | |
42299 | ||
47964710 VS |
42300 | /* Override any GCC internal prototype to avoid an error. |
42301 | Use char because int might match the return type of a GCC | |
42302 | builtin and then its argument prototype would still apply. */ | |
004ee6da RL |
42303 | #ifdef __cplusplus |
42304 | extern "C" | |
004ee6da | 42305 | #endif |
004ee6da RL |
42306 | char $ac_func (); |
42307 | /* The GNU C library defines this for functions which it implements | |
42308 | to always fail with ENOSYS. Some functions are actually named | |
42309 | something starting with __ and the normal name is an alias. */ | |
47964710 | 42310 | #if defined __stub_$ac_func || defined __stub___$ac_func |
004ee6da | 42311 | choke me |
004ee6da RL |
42312 | #endif |
42313 | ||
42314 | int | |
42315 | main () | |
42316 | { | |
47964710 | 42317 | return $ac_func (); |
a848cd7e SC |
42318 | ; |
42319 | return 0; | |
42320 | } | |
42321 | _ACEOF | |
42322 | rm -f conftest.$ac_objext conftest$ac_exeext | |
47964710 VS |
42323 | if { (ac_try="$ac_link" |
42324 | case "(($ac_try" in | |
42325 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
42326 | *) ac_try_echo=$ac_try;; | |
42327 | esac | |
d589327a | 42328 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 42329 | (eval "$ac_link") 2>conftest.er1 |
a848cd7e | 42330 | ac_status=$? |
ac1cb8d3 VS |
42331 | grep -v '^ *+' conftest.er1 >conftest.err |
42332 | rm -f conftest.er1 | |
42333 | cat conftest.err >&5 | |
d589327a | 42334 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
42335 | (exit $ac_status); } && { |
42336 | test -z "$ac_c_werror_flag" || | |
42337 | test ! -s conftest.err | |
d589327a VZ |
42338 | } && test -s conftest$ac_exeext && |
42339 | $as_test_x conftest$ac_exeext; then | |
54429bb3 RD |
42340 | eval "$as_ac_var=yes" |
42341 | else | |
d589327a | 42342 | echo "$as_me: failed program was:" >&5 |
54429bb3 RD |
42343 | sed 's/^/| /' conftest.$ac_ext >&5 |
42344 | ||
47964710 | 42345 | eval "$as_ac_var=no" |
54429bb3 | 42346 | fi |
47964710 VS |
42347 | |
42348 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
54429bb3 RD |
42349 | conftest$ac_exeext conftest.$ac_ext |
42350 | fi | |
d589327a VZ |
42351 | ac_res=`eval echo '${'$as_ac_var'}'` |
42352 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
42353 | echo "${ECHO_T}$ac_res" >&6; } | |
42354 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
54429bb3 | 42355 | cat >>confdefs.h <<_ACEOF |
d589327a | 42356 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
54429bb3 RD |
42357 | _ACEOF |
42358 | ||
42359 | cat >>confdefs.h <<\_ACEOF | |
42360 | #define HAVE_DLOPEN 1 | |
42361 | _ACEOF | |
42362 | ||
42363 | HAVE_DL_FUNCS=1 | |
42364 | ||
42365 | else | |
42366 | ||
d589327a VZ |
42367 | { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
42368 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } | |
54429bb3 | 42369 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
d589327a | 42370 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
54429bb3 RD |
42371 | else |
42372 | ac_check_lib_save_LIBS=$LIBS | |
42373 | LIBS="-ldl $LIBS" | |
42374 | cat >conftest.$ac_ext <<_ACEOF | |
42375 | /* confdefs.h. */ | |
42376 | _ACEOF | |
42377 | cat confdefs.h >>conftest.$ac_ext | |
42378 | cat >>conftest.$ac_ext <<_ACEOF | |
42379 | /* end confdefs.h. */ | |
42380 | ||
47964710 VS |
42381 | /* Override any GCC internal prototype to avoid an error. |
42382 | Use char because int might match the return type of a GCC | |
42383 | builtin and then its argument prototype would still apply. */ | |
54429bb3 RD |
42384 | #ifdef __cplusplus |
42385 | extern "C" | |
42386 | #endif | |
42387 | char dlopen (); | |
42388 | int | |
42389 | main () | |
42390 | { | |
47964710 | 42391 | return dlopen (); |
54429bb3 RD |
42392 | ; |
42393 | return 0; | |
42394 | } | |
42395 | _ACEOF | |
42396 | rm -f conftest.$ac_objext conftest$ac_exeext | |
47964710 VS |
42397 | if { (ac_try="$ac_link" |
42398 | case "(($ac_try" in | |
42399 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
42400 | *) ac_try_echo=$ac_try;; | |
42401 | esac | |
d589327a | 42402 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 42403 | (eval "$ac_link") 2>conftest.er1 |
54429bb3 RD |
42404 | ac_status=$? |
42405 | grep -v '^ *+' conftest.er1 >conftest.err | |
42406 | rm -f conftest.er1 | |
42407 | cat conftest.err >&5 | |
d589327a | 42408 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
42409 | (exit $ac_status); } && { |
42410 | test -z "$ac_c_werror_flag" || | |
42411 | test ! -s conftest.err | |
d589327a VZ |
42412 | } && test -s conftest$ac_exeext && |
42413 | $as_test_x conftest$ac_exeext; then | |
54429bb3 RD |
42414 | ac_cv_lib_dl_dlopen=yes |
42415 | else | |
d589327a | 42416 | echo "$as_me: failed program was:" >&5 |
54429bb3 RD |
42417 | sed 's/^/| /' conftest.$ac_ext >&5 |
42418 | ||
47964710 | 42419 | ac_cv_lib_dl_dlopen=no |
54429bb3 | 42420 | fi |
47964710 VS |
42421 | |
42422 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
54429bb3 RD |
42423 | conftest$ac_exeext conftest.$ac_ext |
42424 | LIBS=$ac_check_lib_save_LIBS | |
42425 | fi | |
d589327a VZ |
42426 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
42427 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } | |
42428 | if test $ac_cv_lib_dl_dlopen = yes; then | |
54429bb3 RD |
42429 | |
42430 | cat >>confdefs.h <<\_ACEOF | |
42431 | #define HAVE_DLOPEN 1 | |
42432 | _ACEOF | |
42433 | ||
42434 | HAVE_DL_FUNCS=1 | |
42435 | DL_LINK=" -ldl$DL_LINK" | |
42436 | ||
42437 | else | |
42438 | ||
42439 | ||
42440 | for ac_func in shl_load | |
42441 | do | |
d589327a VZ |
42442 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
42443 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
42444 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
47964710 | 42445 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
d589327a | 42446 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
54429bb3 RD |
42447 | else |
42448 | cat >conftest.$ac_ext <<_ACEOF | |
42449 | /* confdefs.h. */ | |
42450 | _ACEOF | |
42451 | cat confdefs.h >>conftest.$ac_ext | |
42452 | cat >>conftest.$ac_ext <<_ACEOF | |
42453 | /* end confdefs.h. */ | |
42454 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
42455 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
42456 | #define $ac_func innocuous_$ac_func | |
42457 | ||
42458 | /* System header to define __stub macros and hopefully few prototypes, | |
42459 | which can conflict with char $ac_func (); below. | |
42460 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
42461 | <limits.h> exists even on freestanding compilers. */ | |
42462 | ||
42463 | #ifdef __STDC__ | |
42464 | # include <limits.h> | |
42465 | #else | |
42466 | # include <assert.h> | |
42467 | #endif | |
42468 | ||
42469 | #undef $ac_func | |
42470 | ||
47964710 VS |
42471 | /* Override any GCC internal prototype to avoid an error. |
42472 | Use char because int might match the return type of a GCC | |
42473 | builtin and then its argument prototype would still apply. */ | |
54429bb3 RD |
42474 | #ifdef __cplusplus |
42475 | extern "C" | |
42476 | #endif | |
42477 | char $ac_func (); | |
42478 | /* The GNU C library defines this for functions which it implements | |
42479 | to always fail with ENOSYS. Some functions are actually named | |
42480 | something starting with __ and the normal name is an alias. */ | |
47964710 | 42481 | #if defined __stub_$ac_func || defined __stub___$ac_func |
54429bb3 RD |
42482 | choke me |
42483 | #endif | |
42484 | ||
42485 | int | |
42486 | main () | |
42487 | { | |
47964710 | 42488 | return $ac_func (); |
54429bb3 RD |
42489 | ; |
42490 | return 0; | |
42491 | } | |
42492 | _ACEOF | |
42493 | rm -f conftest.$ac_objext conftest$ac_exeext | |
47964710 VS |
42494 | if { (ac_try="$ac_link" |
42495 | case "(($ac_try" in | |
42496 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
42497 | *) ac_try_echo=$ac_try;; | |
42498 | esac | |
d589327a | 42499 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 42500 | (eval "$ac_link") 2>conftest.er1 |
54429bb3 RD |
42501 | ac_status=$? |
42502 | grep -v '^ *+' conftest.er1 >conftest.err | |
42503 | rm -f conftest.er1 | |
42504 | cat conftest.err >&5 | |
d589327a | 42505 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
42506 | (exit $ac_status); } && { |
42507 | test -z "$ac_c_werror_flag" || | |
42508 | test ! -s conftest.err | |
d589327a VZ |
42509 | } && test -s conftest$ac_exeext && |
42510 | $as_test_x conftest$ac_exeext; then | |
a848cd7e SC |
42511 | eval "$as_ac_var=yes" |
42512 | else | |
d589327a | 42513 | echo "$as_me: failed program was:" >&5 |
a848cd7e SC |
42514 | sed 's/^/| /' conftest.$ac_ext >&5 |
42515 | ||
47964710 | 42516 | eval "$as_ac_var=no" |
a848cd7e | 42517 | fi |
47964710 VS |
42518 | |
42519 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
ac1cb8d3 | 42520 | conftest$ac_exeext conftest.$ac_ext |
a848cd7e | 42521 | fi |
d589327a VZ |
42522 | ac_res=`eval echo '${'$as_ac_var'}'` |
42523 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
42524 | echo "${ECHO_T}$ac_res" >&6; } | |
42525 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
a848cd7e | 42526 | cat >>confdefs.h <<_ACEOF |
d589327a | 42527 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
a848cd7e SC |
42528 | _ACEOF |
42529 | ||
42530 | cat >>confdefs.h <<\_ACEOF | |
42531 | #define HAVE_SHL_LOAD 1 | |
42532 | _ACEOF | |
42533 | ||
42534 | HAVE_SHL_FUNCS=1 | |
42535 | ||
42536 | else | |
42537 | ||
d589327a VZ |
42538 | { echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5 |
42539 | echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6; } | |
a848cd7e | 42540 | if test "${ac_cv_lib_shl_load_dld+set}" = set; then |
d589327a | 42541 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a848cd7e SC |
42542 | else |
42543 | ac_check_lib_save_LIBS=$LIBS | |
42544 | LIBS="-lshl_load $LIBS" | |
42545 | cat >conftest.$ac_ext <<_ACEOF | |
42546 | /* confdefs.h. */ | |
42547 | _ACEOF | |
42548 | cat confdefs.h >>conftest.$ac_ext | |
42549 | cat >>conftest.$ac_ext <<_ACEOF | |
42550 | /* end confdefs.h. */ | |
42551 | ||
47964710 VS |
42552 | /* Override any GCC internal prototype to avoid an error. |
42553 | Use char because int might match the return type of a GCC | |
42554 | builtin and then its argument prototype would still apply. */ | |
a848cd7e SC |
42555 | #ifdef __cplusplus |
42556 | extern "C" | |
42557 | #endif | |
a848cd7e SC |
42558 | char dld (); |
42559 | int | |
42560 | main () | |
42561 | { | |
47964710 | 42562 | return dld (); |
a848cd7e SC |
42563 | ; |
42564 | return 0; | |
42565 | } | |
42566 | _ACEOF | |
42567 | rm -f conftest.$ac_objext conftest$ac_exeext | |
47964710 VS |
42568 | if { (ac_try="$ac_link" |
42569 | case "(($ac_try" in | |
42570 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
42571 | *) ac_try_echo=$ac_try;; | |
42572 | esac | |
d589327a | 42573 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 42574 | (eval "$ac_link") 2>conftest.er1 |
a848cd7e | 42575 | ac_status=$? |
ac1cb8d3 VS |
42576 | grep -v '^ *+' conftest.er1 >conftest.err |
42577 | rm -f conftest.er1 | |
42578 | cat conftest.err >&5 | |
d589327a | 42579 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
42580 | (exit $ac_status); } && { |
42581 | test -z "$ac_c_werror_flag" || | |
42582 | test ! -s conftest.err | |
d589327a VZ |
42583 | } && test -s conftest$ac_exeext && |
42584 | $as_test_x conftest$ac_exeext; then | |
a848cd7e SC |
42585 | ac_cv_lib_shl_load_dld=yes |
42586 | else | |
d589327a | 42587 | echo "$as_me: failed program was:" >&5 |
a848cd7e SC |
42588 | sed 's/^/| /' conftest.$ac_ext >&5 |
42589 | ||
47964710 | 42590 | ac_cv_lib_shl_load_dld=no |
a848cd7e | 42591 | fi |
47964710 VS |
42592 | |
42593 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
ac1cb8d3 | 42594 | conftest$ac_exeext conftest.$ac_ext |
a848cd7e SC |
42595 | LIBS=$ac_check_lib_save_LIBS |
42596 | fi | |
d589327a VZ |
42597 | { echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5 |
42598 | echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6; } | |
42599 | if test $ac_cv_lib_shl_load_dld = yes; then | |
a848cd7e SC |
42600 | |
42601 | HAVE_SHL_FUNCS=1 | |
42602 | DL_LINK=" -ldld$DL_LINK" | |
42603 | ||
42604 | fi | |
42605 | ||
42606 | ||
42607 | fi | |
42608 | done | |
42609 | ||
42610 | ||
42611 | fi | |
42612 | ||
42613 | ||
42614 | fi | |
42615 | done | |
42616 | ||
42617 | ||
3e654768 | 42618 | if test "$HAVE_DL_FUNCS" = 1; then |
a848cd7e SC |
42619 | |
42620 | for ac_func in dlerror | |
42621 | do | |
d589327a VZ |
42622 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
42623 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
42624 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
47964710 | 42625 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
d589327a | 42626 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a848cd7e SC |
42627 | else |
42628 | cat >conftest.$ac_ext <<_ACEOF | |
42629 | /* confdefs.h. */ | |
42630 | _ACEOF | |
42631 | cat confdefs.h >>conftest.$ac_ext | |
42632 | cat >>conftest.$ac_ext <<_ACEOF | |
42633 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
42634 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
42635 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
42636 | #define $ac_func innocuous_$ac_func | |
42637 | ||
a848cd7e SC |
42638 | /* System header to define __stub macros and hopefully few prototypes, |
42639 | which can conflict with char $ac_func (); below. | |
42640 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
42641 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 42642 | |
a848cd7e SC |
42643 | #ifdef __STDC__ |
42644 | # include <limits.h> | |
42645 | #else | |
42646 | # include <assert.h> | |
42647 | #endif | |
ac1cb8d3 VS |
42648 | |
42649 | #undef $ac_func | |
42650 | ||
47964710 VS |
42651 | /* Override any GCC internal prototype to avoid an error. |
42652 | Use char because int might match the return type of a GCC | |
42653 | builtin and then its argument prototype would still apply. */ | |
a848cd7e SC |
42654 | #ifdef __cplusplus |
42655 | extern "C" | |
a848cd7e | 42656 | #endif |
a848cd7e SC |
42657 | char $ac_func (); |
42658 | /* The GNU C library defines this for functions which it implements | |
42659 | to always fail with ENOSYS. Some functions are actually named | |
42660 | something starting with __ and the normal name is an alias. */ | |
47964710 | 42661 | #if defined __stub_$ac_func || defined __stub___$ac_func |
a848cd7e | 42662 | choke me |
a848cd7e SC |
42663 | #endif |
42664 | ||
42665 | int | |
42666 | main () | |
42667 | { | |
47964710 | 42668 | return $ac_func (); |
a848cd7e SC |
42669 | ; |
42670 | return 0; | |
42671 | } | |
42672 | _ACEOF | |
42673 | rm -f conftest.$ac_objext conftest$ac_exeext | |
47964710 VS |
42674 | if { (ac_try="$ac_link" |
42675 | case "(($ac_try" in | |
42676 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
42677 | *) ac_try_echo=$ac_try;; | |
42678 | esac | |
d589327a | 42679 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 42680 | (eval "$ac_link") 2>conftest.er1 |
a848cd7e | 42681 | ac_status=$? |
ac1cb8d3 VS |
42682 | grep -v '^ *+' conftest.er1 >conftest.err |
42683 | rm -f conftest.er1 | |
42684 | cat conftest.err >&5 | |
d589327a | 42685 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
42686 | (exit $ac_status); } && { |
42687 | test -z "$ac_c_werror_flag" || | |
42688 | test ! -s conftest.err | |
d589327a VZ |
42689 | } && test -s conftest$ac_exeext && |
42690 | $as_test_x conftest$ac_exeext; then | |
a848cd7e SC |
42691 | eval "$as_ac_var=yes" |
42692 | else | |
d589327a | 42693 | echo "$as_me: failed program was:" >&5 |
a848cd7e SC |
42694 | sed 's/^/| /' conftest.$ac_ext >&5 |
42695 | ||
47964710 | 42696 | eval "$as_ac_var=no" |
a848cd7e | 42697 | fi |
47964710 VS |
42698 | |
42699 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
ac1cb8d3 | 42700 | conftest$ac_exeext conftest.$ac_ext |
a848cd7e | 42701 | fi |
d589327a VZ |
42702 | ac_res=`eval echo '${'$as_ac_var'}'` |
42703 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
42704 | echo "${ECHO_T}$ac_res" >&6; } | |
42705 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
a848cd7e | 42706 | cat >>confdefs.h <<_ACEOF |
d589327a | 42707 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
a848cd7e SC |
42708 | _ACEOF |
42709 | cat >>confdefs.h <<\_ACEOF | |
42710 | #define HAVE_DLERROR 1 | |
42711 | _ACEOF | |
42712 | ||
42713 | else | |
42714 | ||
d589327a VZ |
42715 | { echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5 |
42716 | echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6; } | |
a848cd7e | 42717 | if test "${ac_cv_lib_dl_dlerror+set}" = set; then |
d589327a | 42718 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a848cd7e SC |
42719 | else |
42720 | ac_check_lib_save_LIBS=$LIBS | |
42721 | LIBS="-ldl $LIBS" | |
42722 | cat >conftest.$ac_ext <<_ACEOF | |
42723 | /* confdefs.h. */ | |
42724 | _ACEOF | |
42725 | cat confdefs.h >>conftest.$ac_ext | |
42726 | cat >>conftest.$ac_ext <<_ACEOF | |
42727 | /* end confdefs.h. */ | |
42728 | ||
47964710 VS |
42729 | /* Override any GCC internal prototype to avoid an error. |
42730 | Use char because int might match the return type of a GCC | |
42731 | builtin and then its argument prototype would still apply. */ | |
a848cd7e SC |
42732 | #ifdef __cplusplus |
42733 | extern "C" | |
42734 | #endif | |
a848cd7e SC |
42735 | char dlerror (); |
42736 | int | |
42737 | main () | |
42738 | { | |
47964710 | 42739 | return dlerror (); |
a848cd7e SC |
42740 | ; |
42741 | return 0; | |
42742 | } | |
42743 | _ACEOF | |
42744 | rm -f conftest.$ac_objext conftest$ac_exeext | |
47964710 VS |
42745 | if { (ac_try="$ac_link" |
42746 | case "(($ac_try" in | |
42747 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
42748 | *) ac_try_echo=$ac_try;; | |
42749 | esac | |
d589327a | 42750 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 42751 | (eval "$ac_link") 2>conftest.er1 |
a848cd7e | 42752 | ac_status=$? |
ac1cb8d3 VS |
42753 | grep -v '^ *+' conftest.er1 >conftest.err |
42754 | rm -f conftest.er1 | |
42755 | cat conftest.err >&5 | |
d589327a | 42756 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
42757 | (exit $ac_status); } && { |
42758 | test -z "$ac_c_werror_flag" || | |
42759 | test ! -s conftest.err | |
d589327a VZ |
42760 | } && test -s conftest$ac_exeext && |
42761 | $as_test_x conftest$ac_exeext; then | |
a848cd7e SC |
42762 | ac_cv_lib_dl_dlerror=yes |
42763 | else | |
d589327a | 42764 | echo "$as_me: failed program was:" >&5 |
a848cd7e SC |
42765 | sed 's/^/| /' conftest.$ac_ext >&5 |
42766 | ||
47964710 | 42767 | ac_cv_lib_dl_dlerror=no |
a848cd7e | 42768 | fi |
47964710 VS |
42769 | |
42770 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
ac1cb8d3 | 42771 | conftest$ac_exeext conftest.$ac_ext |
a848cd7e SC |
42772 | LIBS=$ac_check_lib_save_LIBS |
42773 | fi | |
d589327a VZ |
42774 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5 |
42775 | echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6; } | |
42776 | if test $ac_cv_lib_dl_dlerror = yes; then | |
a848cd7e SC |
42777 | cat >>confdefs.h <<\_ACEOF |
42778 | #define HAVE_DLERROR 1 | |
42779 | _ACEOF | |
42780 | ||
42781 | fi | |
42782 | ||
42783 | ||
42784 | ||
42785 | fi | |
42786 | done | |
42787 | ||
3e654768 | 42788 | fi |
a848cd7e | 42789 | fi |
3e654768 DE |
42790 | |
42791 | if test "$USE_DARWIN" = 1; then | |
42792 | HAVE_DL_FUNCS=1 | |
a848cd7e SC |
42793 | fi |
42794 | ||
42795 | if test "$HAVE_DL_FUNCS" = 0; then | |
42796 | if test "$HAVE_SHL_FUNCS" = 0; then | |
47a7e797 | 42797 | if test "$USE_UNIX" = 1 -o "$USE_DOS" = 1; then |
d589327a VZ |
42798 | { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5 |
42799 | echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;} | |
a848cd7e SC |
42800 | wxUSE_DYNAMIC_LOADER=no |
42801 | wxUSE_DYNLIB_CLASS=no | |
42802 | else | |
d589327a VZ |
42803 | { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5 |
42804 | echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;} | |
a848cd7e SC |
42805 | fi |
42806 | fi | |
42807 | fi | |
42808 | fi | |
42809 | fi | |
42810 | ||
42811 | if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then | |
42812 | cat >>confdefs.h <<\_ACEOF | |
42813 | #define wxUSE_DYNAMIC_LOADER 1 | |
42814 | _ACEOF | |
42815 | ||
42816 | fi | |
42817 | if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then | |
42818 | cat >>confdefs.h <<\_ACEOF | |
42819 | #define wxUSE_DYNLIB_CLASS 1 | |
42820 | _ACEOF | |
42821 | ||
42822 | fi | |
42823 | ||
42824 | ||
42825 | ||
42826 | if test "$wxUSE_PLUGINS" = "yes" ; then | |
42827 | if test "$wxUSE_SHARED" = "no" ; then | |
d589327a VZ |
42828 | { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5 |
42829 | echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;} | |
a848cd7e SC |
42830 | wxUSE_PLUGINS=no |
42831 | fi | |
42832 | if test "$wxUSE_MONOLITHIC" = "yes" ; then | |
d589327a VZ |
42833 | { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5 |
42834 | echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;} | |
a848cd7e SC |
42835 | wxUSE_PLUGINS=no |
42836 | fi | |
42837 | if test "$wxUSE_DYNLIB_CLASS" = "no" ; then | |
d589327a VZ |
42838 | { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5 |
42839 | echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;} | |
a848cd7e SC |
42840 | wxUSE_PLUGINS=no |
42841 | fi | |
42842 | if test "$wxUSE_PLUGINS" = "yes" ; then | |
42843 | cat >>confdefs.h <<\_ACEOF | |
42844 | #define wxUSE_PLUGINS 1 | |
42845 | _ACEOF | |
42846 | ||
42847 | fi | |
42848 | fi | |
42849 | ||
42850 | ||
6b8ef0b3 | 42851 | if test "$wxUSE_FSWATCHER" = "yes"; then |
96e790a5 VZ |
42852 | if test "$wxUSE_MSW" != "1"; then |
42853 | if test "$wxUSE_UNIX" = "yes"; then | |
6b8ef0b3 VZ |
42854 | |
42855 | for ac_header in sys/inotify.h | |
42856 | do | |
42857 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
42858 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
42859 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
42860 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
42861 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
42862 | else | |
42863 | cat >conftest.$ac_ext <<_ACEOF | |
42864 | /* confdefs.h. */ | |
42865 | _ACEOF | |
42866 | cat confdefs.h >>conftest.$ac_ext | |
42867 | cat >>conftest.$ac_ext <<_ACEOF | |
42868 | /* end confdefs.h. */ | |
42869 | $ac_includes_default | |
42870 | ||
42871 | #include <$ac_header> | |
42872 | _ACEOF | |
42873 | rm -f conftest.$ac_objext | |
42874 | if { (ac_try="$ac_compile" | |
42875 | case "(($ac_try" in | |
42876 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
42877 | *) ac_try_echo=$ac_try;; | |
42878 | esac | |
42879 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
42880 | (eval "$ac_compile") 2>conftest.er1 | |
42881 | ac_status=$? | |
42882 | grep -v '^ *+' conftest.er1 >conftest.err | |
42883 | rm -f conftest.er1 | |
42884 | cat conftest.err >&5 | |
42885 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42886 | (exit $ac_status); } && { | |
42887 | test -z "$ac_c_werror_flag" || | |
42888 | test ! -s conftest.err | |
42889 | } && test -s conftest.$ac_objext; then | |
42890 | eval "$as_ac_Header=yes" | |
42891 | else | |
42892 | echo "$as_me: failed program was:" >&5 | |
42893 | sed 's/^/| /' conftest.$ac_ext >&5 | |
42894 | ||
42895 | eval "$as_ac_Header=no" | |
42896 | fi | |
42897 | ||
42898 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
42899 | fi | |
42900 | ac_res=`eval echo '${'$as_ac_Header'}'` | |
42901 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
42902 | echo "${ECHO_T}$ac_res" >&6; } | |
42903 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
42904 | cat >>confdefs.h <<_ACEOF | |
42905 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
42906 | _ACEOF | |
42907 | ||
42908 | fi | |
42909 | ||
42910 | done | |
42911 | ||
96e790a5 VZ |
42912 | if test "$ac_cv_header_sys_inotify_h" = "yes"; then |
42913 | cat >>confdefs.h <<\_ACEOF | |
6b8ef0b3 VZ |
42914 | #define wxHAS_INOTIFY 1 |
42915 | _ACEOF | |
42916 | ||
96e790a5 | 42917 | else |
6b8ef0b3 VZ |
42918 | |
42919 | for ac_header in sys/event.h | |
42920 | do | |
42921 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
42922 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
42923 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
42924 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
42925 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
42926 | else | |
42927 | cat >conftest.$ac_ext <<_ACEOF | |
42928 | /* confdefs.h. */ | |
42929 | _ACEOF | |
42930 | cat confdefs.h >>conftest.$ac_ext | |
42931 | cat >>conftest.$ac_ext <<_ACEOF | |
42932 | /* end confdefs.h. */ | |
42933 | $ac_includes_default | |
42934 | ||
42935 | #include <$ac_header> | |
42936 | _ACEOF | |
42937 | rm -f conftest.$ac_objext | |
42938 | if { (ac_try="$ac_compile" | |
42939 | case "(($ac_try" in | |
42940 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
42941 | *) ac_try_echo=$ac_try;; | |
42942 | esac | |
42943 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
42944 | (eval "$ac_compile") 2>conftest.er1 | |
42945 | ac_status=$? | |
42946 | grep -v '^ *+' conftest.er1 >conftest.err | |
42947 | rm -f conftest.er1 | |
42948 | cat conftest.err >&5 | |
42949 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42950 | (exit $ac_status); } && { | |
42951 | test -z "$ac_c_werror_flag" || | |
42952 | test ! -s conftest.err | |
42953 | } && test -s conftest.$ac_objext; then | |
42954 | eval "$as_ac_Header=yes" | |
42955 | else | |
42956 | echo "$as_me: failed program was:" >&5 | |
42957 | sed 's/^/| /' conftest.$ac_ext >&5 | |
42958 | ||
42959 | eval "$as_ac_Header=no" | |
42960 | fi | |
42961 | ||
42962 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
42963 | fi | |
42964 | ac_res=`eval echo '${'$as_ac_Header'}'` | |
42965 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
42966 | echo "${ECHO_T}$ac_res" >&6; } | |
42967 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
42968 | cat >>confdefs.h <<_ACEOF | |
42969 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
42970 | _ACEOF | |
42971 | ||
42972 | fi | |
42973 | ||
42974 | done | |
42975 | ||
96e790a5 VZ |
42976 | if test "$ac_cv_header_sys_event_h" = "yes"; then |
42977 | cat >>confdefs.h <<\_ACEOF | |
6b8ef0b3 VZ |
42978 | #define wxHAS_KQUEUE 1 |
42979 | _ACEOF | |
42980 | ||
96e790a5 VZ |
42981 | else |
42982 | wxUSE_FSWATCHER=no | |
42983 | fi | |
6b8ef0b3 | 42984 | fi |
96e790a5 VZ |
42985 | else |
42986 | wxUSE_FSWATCHER=no | |
6b8ef0b3 VZ |
42987 | fi |
42988 | fi | |
96e790a5 VZ |
42989 | |
42990 | if test "$wxUSE_FSWATCHER" = "yes"; then | |
42991 | cat >>confdefs.h <<\_ACEOF | |
42992 | #define wxUSE_FSWATCHER 1 | |
42993 | _ACEOF | |
42994 | ||
42995 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS fswatcher" | |
42996 | else | |
42997 | { echo "$as_me:$LINENO: WARNING: wxFileSystemWatcher won't be available on this platform" >&5 | |
42998 | echo "$as_me: WARNING: wxFileSystemWatcher won't be available on this platform" >&2;} | |
42999 | fi | |
6b8ef0b3 VZ |
43000 | fi |
43001 | ||
43002 | ||
a848cd7e SC |
43003 | if test "$wxUSE_STL" = "yes"; then |
43004 | cat >>confdefs.h <<\_ACEOF | |
43005 | #define wxUSE_STL 1 | |
43006 | _ACEOF | |
43007 | ||
43008 | fi | |
43009 | ||
81727065 VS |
43010 | if test "$wxUSE_EXTENDED_RTTI" = "yes"; then |
43011 | cat >>confdefs.h <<\_ACEOF | |
43012 | #define wxUSE_EXTENDED_RTTI 1 | |
43013 | _ACEOF | |
43014 | ||
43015 | fi | |
43016 | ||
178c7760 JS |
43017 | if test "$wxUSE_ANY" = "yes"; then |
43018 | cat >>confdefs.h <<\_ACEOF | |
43019 | #define wxUSE_ANY 1 | |
43020 | _ACEOF | |
43021 | ||
43022 | fi | |
43023 | ||
a848cd7e SC |
43024 | if test "$wxUSE_APPLE_IEEE" = "yes"; then |
43025 | cat >>confdefs.h <<\_ACEOF | |
43026 | #define wxUSE_APPLE_IEEE 1 | |
43027 | _ACEOF | |
43028 | ||
43029 | fi | |
43030 | ||
43031 | if test "$wxUSE_TIMER" = "yes"; then | |
43032 | cat >>confdefs.h <<\_ACEOF | |
43033 | #define wxUSE_TIMER 1 | |
43034 | _ACEOF | |
43035 | ||
43036 | fi | |
43037 | ||
6517fa86 | 43038 | if test "$USE_UNIX" = 1 ; then |
a1b1cf33 | 43039 | if test "$wxUSE_MGL" != 1; then |
d589327a VZ |
43040 | { echo "$as_me:$LINENO: checking for SNDCTL_DSP_SPEED in sys/soundcard.h" >&5 |
43041 | echo $ECHO_N "checking for SNDCTL_DSP_SPEED in sys/soundcard.h... $ECHO_C" >&6; } | |
d12aef51 | 43042 | if test "${ac_cv_header_sys_soundcard+set}" = set; then |
d589327a | 43043 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a848cd7e | 43044 | else |
d12aef51 | 43045 | |
a1b1cf33 | 43046 | cat >conftest.$ac_ext <<_ACEOF |
a848cd7e SC |
43047 | /* confdefs.h. */ |
43048 | _ACEOF | |
43049 | cat confdefs.h >>conftest.$ac_ext | |
43050 | cat >>conftest.$ac_ext <<_ACEOF | |
43051 | /* end confdefs.h. */ | |
d12aef51 | 43052 | |
a1b1cf33 VZ |
43053 | #include <sys/ioctl.h> |
43054 | #include <sys/soundcard.h> | |
d12aef51 VZ |
43055 | |
43056 | int | |
43057 | main () | |
43058 | { | |
43059 | ||
a1b1cf33 | 43060 | ioctl(0, SNDCTL_DSP_SPEED, 0); |
d12aef51 VZ |
43061 | |
43062 | ; | |
43063 | return 0; | |
43064 | } | |
a848cd7e | 43065 | _ACEOF |
d12aef51 | 43066 | rm -f conftest.$ac_objext conftest$ac_exeext |
47964710 VS |
43067 | if { (ac_try="$ac_link" |
43068 | case "(($ac_try" in | |
43069 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
43070 | *) ac_try_echo=$ac_try;; | |
43071 | esac | |
d589327a | 43072 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 43073 | (eval "$ac_link") 2>conftest.er1 |
a848cd7e | 43074 | ac_status=$? |
ac1cb8d3 VS |
43075 | grep -v '^ *+' conftest.er1 >conftest.err |
43076 | rm -f conftest.er1 | |
43077 | cat conftest.err >&5 | |
d589327a | 43078 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
43079 | (exit $ac_status); } && { |
43080 | test -z "$ac_c_werror_flag" || | |
43081 | test ! -s conftest.err | |
d589327a VZ |
43082 | } && test -s conftest$ac_exeext && |
43083 | $as_test_x conftest$ac_exeext; then | |
d12aef51 | 43084 | ac_cv_header_sys_soundcard=yes |
a848cd7e | 43085 | else |
d589327a | 43086 | echo "$as_me: failed program was:" >&5 |
a848cd7e SC |
43087 | sed 's/^/| /' conftest.$ac_ext >&5 |
43088 | ||
a848cd7e | 43089 | |
a1b1cf33 VZ |
43090 | saveLibs="$LIBS" |
43091 | LIBS="$saveLibs -lossaudio" | |
43092 | cat >conftest.$ac_ext <<_ACEOF | |
a848cd7e SC |
43093 | /* confdefs.h. */ |
43094 | _ACEOF | |
43095 | cat confdefs.h >>conftest.$ac_ext | |
43096 | cat >>conftest.$ac_ext <<_ACEOF | |
43097 | /* end confdefs.h. */ | |
d12aef51 | 43098 | |
a1b1cf33 VZ |
43099 | #include <sys/ioctl.h> |
43100 | #include <sys/soundcard.h> | |
d12aef51 VZ |
43101 | |
43102 | int | |
43103 | main () | |
43104 | { | |
43105 | ||
a1b1cf33 | 43106 | ioctl(0, SNDCTL_DSP_SPEED, 0); |
d12aef51 VZ |
43107 | |
43108 | ; | |
43109 | return 0; | |
43110 | } | |
a848cd7e | 43111 | _ACEOF |
d12aef51 | 43112 | rm -f conftest.$ac_objext conftest$ac_exeext |
47964710 VS |
43113 | if { (ac_try="$ac_link" |
43114 | case "(($ac_try" in | |
43115 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
43116 | *) ac_try_echo=$ac_try;; | |
43117 | esac | |
d589327a | 43118 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 43119 | (eval "$ac_link") 2>conftest.er1 |
a848cd7e SC |
43120 | ac_status=$? |
43121 | grep -v '^ *+' conftest.er1 >conftest.err | |
43122 | rm -f conftest.er1 | |
43123 | cat conftest.err >&5 | |
d589327a | 43124 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
43125 | (exit $ac_status); } && { |
43126 | test -z "$ac_c_werror_flag" || | |
43127 | test ! -s conftest.err | |
d589327a VZ |
43128 | } && test -s conftest$ac_exeext && |
43129 | $as_test_x conftest$ac_exeext; then | |
d12aef51 | 43130 | ac_cv_header_sys_soundcard=yes |
a848cd7e | 43131 | else |
d589327a | 43132 | echo "$as_me: failed program was:" >&5 |
a848cd7e SC |
43133 | sed 's/^/| /' conftest.$ac_ext >&5 |
43134 | ||
a848cd7e | 43135 | |
a1b1cf33 VZ |
43136 | LIBS="$saveLibs" |
43137 | ac_cv_header_sys_soundcard=no | |
d12aef51 VZ |
43138 | |
43139 | ||
a848cd7e | 43140 | fi |
47964710 VS |
43141 | |
43142 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
d12aef51 VZ |
43143 | conftest$ac_exeext conftest.$ac_ext |
43144 | ||
a848cd7e SC |
43145 | |
43146 | fi | |
47964710 VS |
43147 | |
43148 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
d12aef51 | 43149 | conftest$ac_exeext conftest.$ac_ext |
a848cd7e SC |
43150 | |
43151 | fi | |
d589327a VZ |
43152 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard" >&5 |
43153 | echo "${ECHO_T}$ac_cv_header_sys_soundcard" >&6; } | |
a1b1cf33 | 43154 | fi |
a848cd7e | 43155 | |
d12aef51 VZ |
43156 | if test "$ac_cv_header_sys_soundcard" = "yes"; then |
43157 | cat >>confdefs.h <<\_ACEOF | |
43158 | #define HAVE_SYS_SOUNDCARD_H 1 | |
43159 | _ACEOF | |
a848cd7e | 43160 | |
d12aef51 | 43161 | fi |
9c112555 | 43162 | fi |
a1b1cf33 | 43163 | |
9c112555 MW |
43164 | WITH_PLUGIN_SDL=0 |
43165 | if test "$wxUSE_SOUND" = "yes"; then | |
6517fa86 | 43166 | if test "$USE_UNIX" = 1 ; then |
a848cd7e SC |
43167 | if test "$wxUSE_LIBSDL" != "no"; then |
43168 | ||
47964710 | 43169 | # Check whether --with-sdl-prefix was given. |
a848cd7e | 43170 | if test "${with_sdl_prefix+set}" = set; then |
47964710 | 43171 | withval=$with_sdl_prefix; sdl_prefix="$withval" |
a848cd7e SC |
43172 | else |
43173 | sdl_prefix="" | |
47964710 VS |
43174 | fi |
43175 | ||
3f7f284d | 43176 | |
47964710 | 43177 | # Check whether --with-sdl-exec-prefix was given. |
a848cd7e | 43178 | if test "${with_sdl_exec_prefix+set}" = set; then |
47964710 | 43179 | withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval" |
a848cd7e SC |
43180 | else |
43181 | sdl_exec_prefix="" | |
47964710 | 43182 | fi |
bd8a7646 | 43183 | |
47964710 VS |
43184 | # Check whether --enable-sdltest was given. |
43185 | if test "${enable_sdltest+set}" = set; then | |
43186 | enableval=$enable_sdltest; | |
a848cd7e SC |
43187 | else |
43188 | enable_sdltest=yes | |
47964710 VS |
43189 | fi |
43190 | ||
a848cd7e SC |
43191 | |
43192 | if test x$sdl_exec_prefix != x ; then | |
3ecd9f92 MW |
43193 | sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix" |
43194 | if test x${SDL_CONFIG+set} != xset ; then | |
43195 | SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config | |
43196 | fi | |
a848cd7e SC |
43197 | fi |
43198 | if test x$sdl_prefix != x ; then | |
3ecd9f92 MW |
43199 | sdl_args="$sdl_args --prefix=$sdl_prefix" |
43200 | if test x${SDL_CONFIG+set} != xset ; then | |
43201 | SDL_CONFIG=$sdl_prefix/bin/sdl-config | |
43202 | fi | |
a848cd7e SC |
43203 | fi |
43204 | ||
3ecd9f92 MW |
43205 | if test "x$prefix" != xNONE; then |
43206 | PATH="$prefix/bin:$prefix/usr/bin:$PATH" | |
43207 | fi | |
a848cd7e SC |
43208 | # Extract the first word of "sdl-config", so it can be a program name with args. |
43209 | set dummy sdl-config; ac_word=$2 | |
d589327a VZ |
43210 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
43211 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
a848cd7e | 43212 | if test "${ac_cv_path_SDL_CONFIG+set}" = set; then |
d589327a | 43213 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a848cd7e SC |
43214 | else |
43215 | case $SDL_CONFIG in | |
43216 | [\\/]* | ?:[\\/]*) | |
43217 | ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path. | |
43218 | ;; | |
43219 | *) | |
43220 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
43221 | for as_dir in $PATH | |
43222 | do | |
43223 | IFS=$as_save_IFS | |
43224 | test -z "$as_dir" && as_dir=. | |
43225 | for ac_exec_ext in '' $ac_executable_extensions; do | |
47964710 | 43226 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
a848cd7e | 43227 | ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
d589327a | 43228 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
a848cd7e SC |
43229 | break 2 |
43230 | fi | |
43231 | done | |
43232 | done | |
47964710 | 43233 | IFS=$as_save_IFS |
a848cd7e SC |
43234 | |
43235 | test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no" | |
43236 | ;; | |
43237 | esac | |
43238 | fi | |
43239 | SDL_CONFIG=$ac_cv_path_SDL_CONFIG | |
a848cd7e | 43240 | if test -n "$SDL_CONFIG"; then |
d589327a VZ |
43241 | { echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5 |
43242 | echo "${ECHO_T}$SDL_CONFIG" >&6; } | |
a848cd7e | 43243 | else |
d589327a VZ |
43244 | { echo "$as_me:$LINENO: result: no" >&5 |
43245 | echo "${ECHO_T}no" >&6; } | |
a848cd7e SC |
43246 | fi |
43247 | ||
47964710 | 43248 | |
a848cd7e | 43249 | min_sdl_version=1.2.0 |
d589327a VZ |
43250 | { echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5 |
43251 | echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6; } | |
a848cd7e SC |
43252 | no_sdl="" |
43253 | if test "$SDL_CONFIG" = "no" ; then | |
43254 | no_sdl=yes | |
43255 | else | |
43256 | SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags` | |
43257 | SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs` | |
43258 | ||
43259 | sdl_major_version=`$SDL_CONFIG $sdl_args --version | \ | |
43260 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
43261 | sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \ | |
43262 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
43263 | sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \ | |
43264 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
43265 | if test "x$enable_sdltest" = "xyes" ; then | |
43266 | ac_save_CFLAGS="$CFLAGS" | |
94acd38e | 43267 | ac_save_CXXFLAGS="$CXXFLAGS" |
a848cd7e SC |
43268 | ac_save_LIBS="$LIBS" |
43269 | CFLAGS="$CFLAGS $SDL_CFLAGS" | |
94acd38e | 43270 | CXXFLAGS="$CXXFLAGS $SDL_CFLAGS" |
a848cd7e SC |
43271 | LIBS="$LIBS $SDL_LIBS" |
43272 | rm -f conf.sdltest | |
43273 | if test "$cross_compiling" = yes; then | |
43274 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
43275 | else | |
43276 | cat >conftest.$ac_ext <<_ACEOF | |
43277 | /* confdefs.h. */ | |
43278 | _ACEOF | |
43279 | cat confdefs.h >>conftest.$ac_ext | |
43280 | cat >>conftest.$ac_ext <<_ACEOF | |
43281 | /* end confdefs.h. */ | |
43282 | ||
43283 | #include <stdio.h> | |
43284 | #include <stdlib.h> | |
43285 | #include <string.h> | |
43286 | #include "SDL.h" | |
43287 | ||
43288 | char* | |
43289 | my_strdup (char *str) | |
43290 | { | |
43291 | char *new_str; | |
43292 | ||
43293 | if (str) | |
43294 | { | |
43295 | new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char)); | |
43296 | strcpy (new_str, str); | |
43297 | } | |
43298 | else | |
43299 | new_str = NULL; | |
43300 | ||
43301 | return new_str; | |
43302 | } | |
43303 | ||
43304 | int main (int argc, char *argv[]) | |
43305 | { | |
43306 | int major, minor, micro; | |
43307 | char *tmp_version; | |
43308 | ||
43309 | /* This hangs on some systems (?) | |
43310 | system ("touch conf.sdltest"); | |
43311 | */ | |
43312 | { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); } | |
43313 | ||
43314 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
43315 | tmp_version = my_strdup("$min_sdl_version"); | |
43316 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
43317 | printf("%s, bad version string\n", "$min_sdl_version"); | |
43318 | exit(1); | |
43319 | } | |
43320 | ||
43321 | if (($sdl_major_version > major) || | |
43322 | (($sdl_major_version == major) && ($sdl_minor_version > minor)) || | |
43323 | (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro))) | |
43324 | { | |
43325 | return 0; | |
43326 | } | |
43327 | else | |
43328 | { | |
43329 | printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version); | |
43330 | printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro); | |
43331 | printf("*** best to upgrade to the required version.\n"); | |
43332 | printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n"); | |
43333 | printf("*** to point to the correct copy of sdl-config, and remove the file\n"); | |
43334 | printf("*** config.cache before re-running configure\n"); | |
43335 | return 1; | |
43336 | } | |
43337 | } | |
43338 | ||
43339 | ||
43340 | _ACEOF | |
43341 | rm -f conftest$ac_exeext | |
47964710 VS |
43342 | if { (ac_try="$ac_link" |
43343 | case "(($ac_try" in | |
43344 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
43345 | *) ac_try_echo=$ac_try;; | |
43346 | esac | |
d589327a | 43347 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 43348 | (eval "$ac_link") 2>&5 |
a848cd7e | 43349 | ac_status=$? |
d589327a | 43350 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
a848cd7e | 43351 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
47964710 VS |
43352 | { (case "(($ac_try" in |
43353 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
43354 | *) ac_try_echo=$ac_try;; | |
43355 | esac | |
d589327a | 43356 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 43357 | (eval "$ac_try") 2>&5 |
a848cd7e | 43358 | ac_status=$? |
d589327a | 43359 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
a848cd7e SC |
43360 | (exit $ac_status); }; }; then |
43361 | : | |
43362 | else | |
d589327a VZ |
43363 | echo "$as_me: program exited with status $ac_status" >&5 |
43364 | echo "$as_me: failed program was:" >&5 | |
a848cd7e SC |
43365 | sed 's/^/| /' conftest.$ac_ext >&5 |
43366 | ||
43367 | ( exit $ac_status ) | |
43368 | no_sdl=yes | |
43369 | fi | |
47964710 | 43370 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 43371 | fi |
47964710 VS |
43372 | |
43373 | ||
a848cd7e | 43374 | CFLAGS="$ac_save_CFLAGS" |
94acd38e | 43375 | CXXFLAGS="$ac_save_CXXFLAGS" |
a848cd7e SC |
43376 | LIBS="$ac_save_LIBS" |
43377 | fi | |
43378 | fi | |
43379 | if test "x$no_sdl" = x ; then | |
d589327a VZ |
43380 | { echo "$as_me:$LINENO: result: yes" >&5 |
43381 | echo "${ECHO_T}yes" >&6; } | |
a848cd7e SC |
43382 | |
43383 | EXTRALIBS_SDL="$SDL_LIBS" | |
9b8888f9 | 43384 | CFLAGS="$SDL_CFLAGS $CFLAGS" |
c92ad099 | 43385 | CXXFLAGS="$SDL_CFLAGS $CXXFLAGS" |
a848cd7e SC |
43386 | cat >>confdefs.h <<\_ACEOF |
43387 | #define wxUSE_LIBSDL 1 | |
43388 | _ACEOF | |
43389 | ||
43390 | ||
43391 | else | |
d589327a VZ |
43392 | { echo "$as_me:$LINENO: result: no" >&5 |
43393 | echo "${ECHO_T}no" >&6; } | |
a848cd7e SC |
43394 | if test "$SDL_CONFIG" = "no" ; then |
43395 | echo "*** The sdl-config script installed by SDL could not be found" | |
43396 | echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in" | |
43397 | echo "*** your path, or set the SDL_CONFIG environment variable to the" | |
43398 | echo "*** full path to sdl-config." | |
43399 | else | |
43400 | if test -f conf.sdltest ; then | |
43401 | : | |
43402 | else | |
43403 | echo "*** Could not run SDL test program, checking why..." | |
43404 | CFLAGS="$CFLAGS $SDL_CFLAGS" | |
94acd38e | 43405 | CXXFLAGS="$CXXFLAGS $SDL_CFLAGS" |
a848cd7e SC |
43406 | LIBS="$LIBS $SDL_LIBS" |
43407 | cat >conftest.$ac_ext <<_ACEOF | |
43408 | /* confdefs.h. */ | |
43409 | _ACEOF | |
43410 | cat confdefs.h >>conftest.$ac_ext | |
43411 | cat >>conftest.$ac_ext <<_ACEOF | |
43412 | /* end confdefs.h. */ | |
43413 | ||
43414 | #include <stdio.h> | |
43415 | #include "SDL.h" | |
43416 | ||
43417 | int main(int argc, char *argv[]) | |
43418 | { return 0; } | |
43419 | #undef main | |
43420 | #define main K_and_R_C_main | |
43421 | ||
43422 | int | |
43423 | main () | |
43424 | { | |
43425 | return 0; | |
43426 | ; | |
43427 | return 0; | |
43428 | } | |
43429 | _ACEOF | |
43430 | rm -f conftest.$ac_objext conftest$ac_exeext | |
47964710 VS |
43431 | if { (ac_try="$ac_link" |
43432 | case "(($ac_try" in | |
43433 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
43434 | *) ac_try_echo=$ac_try;; | |
43435 | esac | |
d589327a | 43436 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 43437 | (eval "$ac_link") 2>conftest.er1 |
a848cd7e | 43438 | ac_status=$? |
ac1cb8d3 VS |
43439 | grep -v '^ *+' conftest.er1 >conftest.err |
43440 | rm -f conftest.er1 | |
43441 | cat conftest.err >&5 | |
d589327a | 43442 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
43443 | (exit $ac_status); } && { |
43444 | test -z "$ac_c_werror_flag" || | |
43445 | test ! -s conftest.err | |
d589327a VZ |
43446 | } && test -s conftest$ac_exeext && |
43447 | $as_test_x conftest$ac_exeext; then | |
a848cd7e SC |
43448 | echo "*** The test program compiled, but did not run. This usually means" |
43449 | echo "*** that the run-time linker is not finding SDL or finding the wrong" | |
43450 | echo "*** version of SDL. If it is not finding SDL, you'll need to set your" | |
43451 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
43452 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
43453 | echo "*** is required on your system" | |
43454 | echo "***" | |
43455 | echo "*** If you have an old version installed, it is best to remove it, although" | |
43456 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
43457 | else | |
d589327a | 43458 | echo "$as_me: failed program was:" >&5 |
a848cd7e SC |
43459 | sed 's/^/| /' conftest.$ac_ext >&5 |
43460 | ||
47964710 | 43461 | echo "*** The test program failed to compile or link. See the file config.log for the" |
a848cd7e SC |
43462 | echo "*** exact error that occured. This usually means SDL was incorrectly installed" |
43463 | echo "*** or that you have moved SDL since it was installed. In the latter case, you" | |
43464 | echo "*** may want to edit the sdl-config script: $SDL_CONFIG" | |
43465 | fi | |
47964710 VS |
43466 | |
43467 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
ac1cb8d3 | 43468 | conftest$ac_exeext conftest.$ac_ext |
a848cd7e | 43469 | CFLAGS="$ac_save_CFLAGS" |
94acd38e | 43470 | CXXFLAGS="$ac_save_CXXFLAGS" |
a848cd7e SC |
43471 | LIBS="$ac_save_LIBS" |
43472 | fi | |
43473 | fi | |
43474 | SDL_CFLAGS="" | |
43475 | SDL_LIBS="" | |
43476 | wxUSE_LIBSDL="no" | |
43477 | fi | |
43478 | ||
43479 | ||
43480 | rm -f conf.sdltest | |
43481 | ||
43482 | if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then | |
43483 | WITH_PLUGIN_SDL=1 | |
43484 | fi | |
43485 | fi | |
480b9f18 VZ |
43486 | else |
43487 | if test "$wxUSE_MGL" = 1; then | |
d589327a VZ |
43488 | { echo "$as_me:$LINENO: WARNING: wxSound not supported in MGL under DOS... disabled" >&5 |
43489 | echo "$as_me: WARNING: wxSound not supported in MGL under DOS... disabled" >&2;} | |
480b9f18 VZ |
43490 | wxUSE_SOUND="no" |
43491 | fi | |
a848cd7e | 43492 | fi |
480b9f18 | 43493 | fi |
a848cd7e | 43494 | |
480b9f18 | 43495 | if test "$wxUSE_SOUND" = "yes"; then |
a848cd7e SC |
43496 | cat >>confdefs.h <<\_ACEOF |
43497 | #define wxUSE_SOUND 1 | |
43498 | _ACEOF | |
43499 | ||
43500 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound" | |
43501 | fi | |
43502 | ||
88262190 | 43503 | if test "$WXGTK2" = 1; then |
d6fb5527 VZ |
43504 | |
43505 | ||
43506 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then | |
43507 | if test -n "$ac_tool_prefix"; then | |
43508 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. | |
43509 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 | |
d589327a VZ |
43510 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
43511 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
d6fb5527 | 43512 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then |
d589327a | 43513 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
d6fb5527 VZ |
43514 | else |
43515 | case $PKG_CONFIG in | |
43516 | [\\/]* | ?:[\\/]*) | |
43517 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
43518 | ;; | |
43519 | *) | |
43520 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
43521 | for as_dir in $PATH | |
43522 | do | |
43523 | IFS=$as_save_IFS | |
43524 | test -z "$as_dir" && as_dir=. | |
43525 | for ac_exec_ext in '' $ac_executable_extensions; do | |
47964710 | 43526 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d6fb5527 | 43527 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
d589327a | 43528 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d6fb5527 VZ |
43529 | break 2 |
43530 | fi | |
43531 | done | |
43532 | done | |
47964710 | 43533 | IFS=$as_save_IFS |
d6fb5527 VZ |
43534 | |
43535 | ;; | |
43536 | esac | |
43537 | fi | |
43538 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
d6fb5527 | 43539 | if test -n "$PKG_CONFIG"; then |
d589327a VZ |
43540 | { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 |
43541 | echo "${ECHO_T}$PKG_CONFIG" >&6; } | |
d6fb5527 | 43542 | else |
d589327a VZ |
43543 | { echo "$as_me:$LINENO: result: no" >&5 |
43544 | echo "${ECHO_T}no" >&6; } | |
d6fb5527 VZ |
43545 | fi |
43546 | ||
47964710 | 43547 | |
d6fb5527 VZ |
43548 | fi |
43549 | if test -z "$ac_cv_path_PKG_CONFIG"; then | |
43550 | ac_pt_PKG_CONFIG=$PKG_CONFIG | |
43551 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
43552 | set dummy pkg-config; ac_word=$2 | |
d589327a VZ |
43553 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
43554 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
d6fb5527 | 43555 | if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then |
d589327a | 43556 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
d6fb5527 VZ |
43557 | else |
43558 | case $ac_pt_PKG_CONFIG in | |
43559 | [\\/]* | ?:[\\/]*) | |
43560 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. | |
43561 | ;; | |
43562 | *) | |
43563 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
43564 | for as_dir in $PATH | |
43565 | do | |
43566 | IFS=$as_save_IFS | |
43567 | test -z "$as_dir" && as_dir=. | |
43568 | for ac_exec_ext in '' $ac_executable_extensions; do | |
47964710 | 43569 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d6fb5527 | 43570 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
d589327a | 43571 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d6fb5527 VZ |
43572 | break 2 |
43573 | fi | |
43574 | done | |
43575 | done | |
47964710 | 43576 | IFS=$as_save_IFS |
d6fb5527 VZ |
43577 | |
43578 | ;; | |
43579 | esac | |
43580 | fi | |
43581 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG | |
d6fb5527 | 43582 | if test -n "$ac_pt_PKG_CONFIG"; then |
d589327a VZ |
43583 | { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5 |
43584 | echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; } | |
d6fb5527 | 43585 | else |
d589327a VZ |
43586 | { echo "$as_me:$LINENO: result: no" >&5 |
43587 | echo "${ECHO_T}no" >&6; } | |
d6fb5527 VZ |
43588 | fi |
43589 | ||
47964710 VS |
43590 | if test "x$ac_pt_PKG_CONFIG" = x; then |
43591 | PKG_CONFIG="" | |
43592 | else | |
43593 | case $cross_compiling:$ac_tool_warned in | |
43594 | yes:) | |
d589327a VZ |
43595 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
43596 | whose name does not start with the host triplet. If you think this | |
43597 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
43598 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | |
43599 | whose name does not start with the host triplet. If you think this | |
43600 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
47964710 VS |
43601 | ac_tool_warned=yes ;; |
43602 | esac | |
43603 | PKG_CONFIG=$ac_pt_PKG_CONFIG | |
43604 | fi | |
d6fb5527 VZ |
43605 | else |
43606 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" | |
43607 | fi | |
43608 | ||
43609 | fi | |
43610 | if test -n "$PKG_CONFIG"; then | |
43611 | _pkg_min_version=0.9.0 | |
d589327a VZ |
43612 | { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5 |
43613 | echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; } | |
d6fb5527 | 43614 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then |
d589327a VZ |
43615 | { echo "$as_me:$LINENO: result: yes" >&5 |
43616 | echo "${ECHO_T}yes" >&6; } | |
d6fb5527 | 43617 | else |
d589327a VZ |
43618 | { echo "$as_me:$LINENO: result: no" >&5 |
43619 | echo "${ECHO_T}no" >&6; } | |
d6fb5527 VZ |
43620 | PKG_CONFIG="" |
43621 | fi | |
43622 | ||
43623 | fi | |
43624 | ||
d1c38808 | 43625 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then |
bd8a7646 RR |
43626 | |
43627 | if test "$wxUSE_GTKPRINT" = "yes" ; then | |
43628 | ||
43629 | ||
43630 | pkg_failed=no | |
d589327a VZ |
43631 | { echo "$as_me:$LINENO: checking for GTKPRINT" >&5 |
43632 | echo $ECHO_N "checking for GTKPRINT... $ECHO_C" >&6; } | |
bd8a7646 RR |
43633 | |
43634 | if test -n "$PKG_CONFIG"; then | |
43635 | if test -n "$GTKPRINT_CFLAGS"; then | |
43636 | pkg_cv_GTKPRINT_CFLAGS="$GTKPRINT_CFLAGS" | |
43637 | else | |
43638 | if test -n "$PKG_CONFIG" && \ | |
d589327a | 43639 | { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-unix-print-2.0 >= 2.10\"") >&5 |
bd8a7646 RR |
43640 | ($PKG_CONFIG --exists --print-errors "gtk+-unix-print-2.0 >= 2.10") 2>&5 |
43641 | ac_status=$? | |
d589327a | 43642 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
bd8a7646 RR |
43643 | (exit $ac_status); }; then |
43644 | pkg_cv_GTKPRINT_CFLAGS=`$PKG_CONFIG --cflags "gtk+-unix-print-2.0 >= 2.10" 2>/dev/null` | |
43645 | else | |
43646 | pkg_failed=yes | |
43647 | fi | |
43648 | fi | |
43649 | else | |
43650 | pkg_failed=untried | |
43651 | fi | |
43652 | if test -n "$PKG_CONFIG"; then | |
43653 | if test -n "$GTKPRINT_LIBS"; then | |
43654 | pkg_cv_GTKPRINT_LIBS="$GTKPRINT_LIBS" | |
43655 | else | |
43656 | if test -n "$PKG_CONFIG" && \ | |
d589327a | 43657 | { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-unix-print-2.0 >= 2.10\"") >&5 |
bd8a7646 RR |
43658 | ($PKG_CONFIG --exists --print-errors "gtk+-unix-print-2.0 >= 2.10") 2>&5 |
43659 | ac_status=$? | |
d589327a | 43660 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
bd8a7646 RR |
43661 | (exit $ac_status); }; then |
43662 | pkg_cv_GTKPRINT_LIBS=`$PKG_CONFIG --libs "gtk+-unix-print-2.0 >= 2.10" 2>/dev/null` | |
43663 | else | |
43664 | pkg_failed=yes | |
43665 | fi | |
43666 | fi | |
43667 | else | |
43668 | pkg_failed=untried | |
43669 | fi | |
43670 | ||
43671 | ||
43672 | ||
43673 | if test $pkg_failed = yes; then | |
43674 | ||
43675 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
43676 | _pkg_short_errors_supported=yes | |
43677 | else | |
43678 | _pkg_short_errors_supported=no | |
43679 | fi | |
43680 | if test $_pkg_short_errors_supported = yes; then | |
43681 | GTKPRINT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gtk+-unix-print-2.0 >= 2.10"` | |
43682 | else | |
43683 | GTKPRINT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-unix-print-2.0 >= 2.10"` | |
43684 | fi | |
43685 | # Put the nasty error message in config.log where it belongs | |
43686 | echo "$GTKPRINT_PKG_ERRORS" >&5 | |
43687 | ||
43688 | ||
d589327a VZ |
43689 | { echo "$as_me:$LINENO: WARNING: GTK printing support not found (GTK+ >= 2.10), library will use GNOME printing support or standard PostScript printing" >&5 |
43690 | echo "$as_me: WARNING: GTK printing support not found (GTK+ >= 2.10), library will use GNOME printing support or standard PostScript printing" >&2;} | |
bd8a7646 RR |
43691 | wxUSE_GTKPRINT="no" |
43692 | ||
43693 | ||
43694 | elif test $pkg_failed = untried; then | |
43695 | ||
d589327a VZ |
43696 | { echo "$as_me:$LINENO: WARNING: GTK printing support not found (GTK+ >= 2.10), library will use GNOME printing support or standard PostScript printing" >&5 |
43697 | echo "$as_me: WARNING: GTK printing support not found (GTK+ >= 2.10), library will use GNOME printing support or standard PostScript printing" >&2;} | |
bd8a7646 RR |
43698 | wxUSE_GTKPRINT="no" |
43699 | ||
43700 | ||
43701 | else | |
43702 | GTKPRINT_CFLAGS=$pkg_cv_GTKPRINT_CFLAGS | |
43703 | GTKPRINT_LIBS=$pkg_cv_GTKPRINT_LIBS | |
d589327a VZ |
43704 | { echo "$as_me:$LINENO: result: yes" >&5 |
43705 | echo "${ECHO_T}yes" >&6; } | |
bd8a7646 RR |
43706 | |
43707 | CFLAGS="$GTKPRINT_CFLAGS $CFLAGS" | |
43708 | CXXFLAGS="$GTKPRINT_CFLAGS $CXXFLAGS" | |
43709 | cat >>confdefs.h <<\_ACEOF | |
43710 | #define wxUSE_GTKPRINT 1 | |
43711 | _ACEOF | |
43712 | ||
43713 | ||
43714 | fi | |
43715 | fi | |
43716 | ||
d1c38808 VZ |
43717 | if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then |
43718 | ||
43719 | ||
3ecd9f92 | 43720 | pkg_failed=no |
d589327a VZ |
43721 | { echo "$as_me:$LINENO: checking for LIBGNOMEPRINTUI" >&5 |
43722 | echo $ECHO_N "checking for LIBGNOMEPRINTUI... $ECHO_C" >&6; } | |
d1c38808 | 43723 | |
3ecd9f92 MW |
43724 | if test -n "$PKG_CONFIG"; then |
43725 | if test -n "$LIBGNOMEPRINTUI_CFLAGS"; then | |
43726 | pkg_cv_LIBGNOMEPRINTUI_CFLAGS="$LIBGNOMEPRINTUI_CFLAGS" | |
43727 | else | |
43728 | if test -n "$PKG_CONFIG" && \ | |
d589327a | 43729 | { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgnomeprintui-2.2 >= 2.8\"") >&5 |
3ecd9f92 MW |
43730 | ($PKG_CONFIG --exists --print-errors "libgnomeprintui-2.2 >= 2.8") 2>&5 |
43731 | ac_status=$? | |
d589327a | 43732 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3ecd9f92 MW |
43733 | (exit $ac_status); }; then |
43734 | pkg_cv_LIBGNOMEPRINTUI_CFLAGS=`$PKG_CONFIG --cflags "libgnomeprintui-2.2 >= 2.8" 2>/dev/null` | |
d1c38808 | 43735 | else |
3ecd9f92 MW |
43736 | pkg_failed=yes |
43737 | fi | |
43738 | fi | |
43739 | else | |
43740 | pkg_failed=untried | |
d1c38808 | 43741 | fi |
d1c38808 | 43742 | if test -n "$PKG_CONFIG"; then |
3ecd9f92 MW |
43743 | if test -n "$LIBGNOMEPRINTUI_LIBS"; then |
43744 | pkg_cv_LIBGNOMEPRINTUI_LIBS="$LIBGNOMEPRINTUI_LIBS" | |
43745 | else | |
43746 | if test -n "$PKG_CONFIG" && \ | |
d589327a | 43747 | { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgnomeprintui-2.2 >= 2.8\"") >&5 |
3ecd9f92 MW |
43748 | ($PKG_CONFIG --exists --print-errors "libgnomeprintui-2.2 >= 2.8") 2>&5 |
43749 | ac_status=$? | |
d589327a | 43750 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3ecd9f92 MW |
43751 | (exit $ac_status); }; then |
43752 | pkg_cv_LIBGNOMEPRINTUI_LIBS=`$PKG_CONFIG --libs "libgnomeprintui-2.2 >= 2.8" 2>/dev/null` | |
d1c38808 | 43753 | else |
3ecd9f92 MW |
43754 | pkg_failed=yes |
43755 | fi | |
43756 | fi | |
43757 | else | |
43758 | pkg_failed=untried | |
d1c38808 VZ |
43759 | fi |
43760 | ||
d1c38808 | 43761 | |
d1c38808 | 43762 | |
3ecd9f92 | 43763 | if test $pkg_failed = yes; then |
d1c38808 | 43764 | |
3ecd9f92 MW |
43765 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
43766 | _pkg_short_errors_supported=yes | |
43767 | else | |
43768 | _pkg_short_errors_supported=no | |
43769 | fi | |
43770 | if test $_pkg_short_errors_supported = yes; then | |
43771 | LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"` | |
43772 | else | |
43773 | LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"` | |
d1c38808 | 43774 | fi |
3ecd9f92 MW |
43775 | # Put the nasty error message in config.log where it belongs |
43776 | echo "$LIBGNOMEPRINTUI_PKG_ERRORS" >&5 | |
d1c38808 VZ |
43777 | |
43778 | ||
d589327a VZ |
43779 | { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5 |
43780 | echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;} | |
3ecd9f92 | 43781 | wxUSE_LIBGNOMEPRINT="no" |
d1c38808 VZ |
43782 | |
43783 | ||
3ecd9f92 | 43784 | elif test $pkg_failed = untried; then |
d1c38808 | 43785 | |
d589327a VZ |
43786 | { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5 |
43787 | echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;} | |
d1c38808 VZ |
43788 | wxUSE_LIBGNOMEPRINT="no" |
43789 | ||
43790 | ||
3ecd9f92 MW |
43791 | else |
43792 | LIBGNOMEPRINTUI_CFLAGS=$pkg_cv_LIBGNOMEPRINTUI_CFLAGS | |
43793 | LIBGNOMEPRINTUI_LIBS=$pkg_cv_LIBGNOMEPRINTUI_LIBS | |
d589327a VZ |
43794 | { echo "$as_me:$LINENO: result: yes" >&5 |
43795 | echo "${ECHO_T}yes" >&6; } | |
d1c38808 | 43796 | |
9b8888f9 | 43797 | CFLAGS="$LIBGNOMEPRINTUI_CFLAGS $CFLAGS" |
3ecd9f92 MW |
43798 | CXXFLAGS="$LIBGNOMEPRINTUI_CFLAGS $CXXFLAGS" |
43799 | cat >>confdefs.h <<\_ACEOF | |
43800 | #define wxUSE_LIBGNOMEPRINT 1 | |
43801 | _ACEOF | |
43802 | ||
43803 | ||
43804 | fi | |
d1c38808 VZ |
43805 | fi |
43806 | fi | |
d1c38808 | 43807 | |
2b850ae1 RR |
43808 | if test "$wxUSE_MIMETYPE" = "yes" ; then |
43809 | if test "$wxUSE_LIBGNOMEVFS" = "yes" ; then | |
43810 | ||
43811 | ||
3ecd9f92 | 43812 | pkg_failed=no |
d589327a VZ |
43813 | { echo "$as_me:$LINENO: checking for GNOMEVFS" >&5 |
43814 | echo $ECHO_N "checking for GNOMEVFS... $ECHO_C" >&6; } | |
2b850ae1 | 43815 | |
3ecd9f92 MW |
43816 | if test -n "$PKG_CONFIG"; then |
43817 | if test -n "$GNOMEVFS_CFLAGS"; then | |
43818 | pkg_cv_GNOMEVFS_CFLAGS="$GNOMEVFS_CFLAGS" | |
43819 | else | |
43820 | if test -n "$PKG_CONFIG" && \ | |
d589327a | 43821 | { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gnome-vfs-2.0 >= 2.0\"") >&5 |
3ecd9f92 MW |
43822 | ($PKG_CONFIG --exists --print-errors "gnome-vfs-2.0 >= 2.0") 2>&5 |
43823 | ac_status=$? | |
d589327a | 43824 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3ecd9f92 MW |
43825 | (exit $ac_status); }; then |
43826 | pkg_cv_GNOMEVFS_CFLAGS=`$PKG_CONFIG --cflags "gnome-vfs-2.0 >= 2.0" 2>/dev/null` | |
2b850ae1 | 43827 | else |
3ecd9f92 MW |
43828 | pkg_failed=yes |
43829 | fi | |
43830 | fi | |
43831 | else | |
43832 | pkg_failed=untried | |
2b850ae1 | 43833 | fi |
2b850ae1 | 43834 | if test -n "$PKG_CONFIG"; then |
3ecd9f92 MW |
43835 | if test -n "$GNOMEVFS_LIBS"; then |
43836 | pkg_cv_GNOMEVFS_LIBS="$GNOMEVFS_LIBS" | |
43837 | else | |
43838 | if test -n "$PKG_CONFIG" && \ | |
d589327a | 43839 | { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gnome-vfs-2.0 >= 2.0\"") >&5 |
3ecd9f92 MW |
43840 | ($PKG_CONFIG --exists --print-errors "gnome-vfs-2.0 >= 2.0") 2>&5 |
43841 | ac_status=$? | |
d589327a | 43842 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3ecd9f92 MW |
43843 | (exit $ac_status); }; then |
43844 | pkg_cv_GNOMEVFS_LIBS=`$PKG_CONFIG --libs "gnome-vfs-2.0 >= 2.0" 2>/dev/null` | |
2b850ae1 | 43845 | else |
3ecd9f92 MW |
43846 | pkg_failed=yes |
43847 | fi | |
43848 | fi | |
43849 | else | |
43850 | pkg_failed=untried | |
2b850ae1 RR |
43851 | fi |
43852 | ||
2b850ae1 | 43853 | |
2b850ae1 | 43854 | |
3ecd9f92 | 43855 | if test $pkg_failed = yes; then |
2b850ae1 | 43856 | |
3ecd9f92 MW |
43857 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
43858 | _pkg_short_errors_supported=yes | |
43859 | else | |
43860 | _pkg_short_errors_supported=no | |
43861 | fi | |
43862 | if test $_pkg_short_errors_supported = yes; then | |
43863 | GNOMEVFS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gnome-vfs-2.0 >= 2.0"` | |
43864 | else | |
43865 | GNOMEVFS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnome-vfs-2.0 >= 2.0"` | |
2b850ae1 | 43866 | fi |
3ecd9f92 MW |
43867 | # Put the nasty error message in config.log where it belongs |
43868 | echo "$GNOMEVFS_PKG_ERRORS" >&5 | |
2b850ae1 RR |
43869 | |
43870 | ||
d589327a VZ |
43871 | { echo "$as_me:$LINENO: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&5 |
43872 | echo "$as_me: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&2;} | |
3ecd9f92 | 43873 | wxUSE_LIBGNOMEVFS="no" |
2b850ae1 RR |
43874 | |
43875 | ||
3ecd9f92 | 43876 | elif test $pkg_failed = untried; then |
2b850ae1 | 43877 | |
d589327a VZ |
43878 | { echo "$as_me:$LINENO: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&5 |
43879 | echo "$as_me: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&2;} | |
2b850ae1 RR |
43880 | wxUSE_LIBGNOMEVFS="no" |
43881 | ||
43882 | ||
3ecd9f92 MW |
43883 | else |
43884 | GNOMEVFS_CFLAGS=$pkg_cv_GNOMEVFS_CFLAGS | |
43885 | GNOMEVFS_LIBS=$pkg_cv_GNOMEVFS_LIBS | |
d589327a VZ |
43886 | { echo "$as_me:$LINENO: result: yes" >&5 |
43887 | echo "${ECHO_T}yes" >&6; } | |
2b850ae1 | 43888 | |
9b8888f9 | 43889 | CFLAGS="$GNOMEVFS_CFLAGS $CFLAGS" |
3ecd9f92 MW |
43890 | CXXFLAGS="$GNOMEVFS_CFLAGS $CXXFLAGS" |
43891 | cat >>confdefs.h <<\_ACEOF | |
43892 | #define wxUSE_LIBGNOMEVFS 1 | |
43893 | _ACEOF | |
43894 | ||
43895 | ||
43896 | fi | |
2b850ae1 RR |
43897 | fi |
43898 | fi | |
2b850ae1 | 43899 | |
3565d135 RR |
43900 | if test "$wxUSE_LIBHILDON" = "yes" ; then |
43901 | ||
3ecd9f92 | 43902 | pkg_failed=no |
d589327a VZ |
43903 | { echo "$as_me:$LINENO: checking for HILDON" >&5 |
43904 | echo $ECHO_N "checking for HILDON... $ECHO_C" >&6; } | |
3565d135 | 43905 | |
3ecd9f92 MW |
43906 | if test -n "$PKG_CONFIG"; then |
43907 | if test -n "$HILDON_CFLAGS"; then | |
43908 | pkg_cv_HILDON_CFLAGS="$HILDON_CFLAGS" | |
43909 | else | |
43910 | if test -n "$PKG_CONFIG" && \ | |
d589327a | 43911 | { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"hildon-lgpl >= 0.9\"") >&5 |
3ecd9f92 MW |
43912 | ($PKG_CONFIG --exists --print-errors "hildon-lgpl >= 0.9") 2>&5 |
43913 | ac_status=$? | |
d589327a | 43914 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3ecd9f92 MW |
43915 | (exit $ac_status); }; then |
43916 | pkg_cv_HILDON_CFLAGS=`$PKG_CONFIG --cflags "hildon-lgpl >= 0.9" 2>/dev/null` | |
3565d135 | 43917 | else |
3ecd9f92 MW |
43918 | pkg_failed=yes |
43919 | fi | |
43920 | fi | |
43921 | else | |
43922 | pkg_failed=untried | |
3565d135 | 43923 | fi |
3565d135 | 43924 | if test -n "$PKG_CONFIG"; then |
3ecd9f92 MW |
43925 | if test -n "$HILDON_LIBS"; then |
43926 | pkg_cv_HILDON_LIBS="$HILDON_LIBS" | |
43927 | else | |
43928 | if test -n "$PKG_CONFIG" && \ | |
d589327a | 43929 | { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"hildon-lgpl >= 0.9\"") >&5 |
3ecd9f92 MW |
43930 | ($PKG_CONFIG --exists --print-errors "hildon-lgpl >= 0.9") 2>&5 |
43931 | ac_status=$? | |
d589327a | 43932 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3ecd9f92 MW |
43933 | (exit $ac_status); }; then |
43934 | pkg_cv_HILDON_LIBS=`$PKG_CONFIG --libs "hildon-lgpl >= 0.9" 2>/dev/null` | |
3565d135 | 43935 | else |
3ecd9f92 MW |
43936 | pkg_failed=yes |
43937 | fi | |
43938 | fi | |
43939 | else | |
43940 | pkg_failed=untried | |
3565d135 RR |
43941 | fi |
43942 | ||
3565d135 | 43943 | |
3565d135 | 43944 | |
3ecd9f92 | 43945 | if test $pkg_failed = yes; then |
3565d135 | 43946 | |
3ecd9f92 MW |
43947 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
43948 | _pkg_short_errors_supported=yes | |
43949 | else | |
43950 | _pkg_short_errors_supported=no | |
43951 | fi | |
43952 | if test $_pkg_short_errors_supported = yes; then | |
43953 | HILDON_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "hildon-lgpl >= 0.9"` | |
43954 | else | |
43955 | HILDON_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "hildon-lgpl >= 0.9"` | |
3565d135 | 43956 | fi |
3ecd9f92 MW |
43957 | # Put the nasty error message in config.log where it belongs |
43958 | echo "$HILDON_PKG_ERRORS" >&5 | |
3565d135 RR |
43959 | |
43960 | ||
d589327a VZ |
43961 | { echo "$as_me:$LINENO: WARNING: libhildon_lgpl not found" >&5 |
43962 | echo "$as_me: WARNING: libhildon_lgpl not found" >&2;} | |
3ecd9f92 | 43963 | wxUSE_LIBHILDON="no" |
426d19f1 | 43964 | ac_hildon_lgpl=0 |
3565d135 | 43965 | |
3565d135 | 43966 | |
3ecd9f92 MW |
43967 | elif test $pkg_failed = untried; then |
43968 | ||
d589327a VZ |
43969 | { echo "$as_me:$LINENO: WARNING: libhildon_lgpl not found" >&5 |
43970 | echo "$as_me: WARNING: libhildon_lgpl not found" >&2;} | |
3ecd9f92 | 43971 | wxUSE_LIBHILDON="no" |
426d19f1 | 43972 | ac_hildon_lgpl=0 |
3ecd9f92 MW |
43973 | |
43974 | ||
43975 | else | |
43976 | HILDON_CFLAGS=$pkg_cv_HILDON_CFLAGS | |
43977 | HILDON_LIBS=$pkg_cv_HILDON_LIBS | |
d589327a VZ |
43978 | { echo "$as_me:$LINENO: result: yes" >&5 |
43979 | echo "${ECHO_T}yes" >&6; } | |
3565d135 RR |
43980 | |
43981 | EXTRALIBS_HILDON="$HILDON_LIBS" | |
9b8888f9 | 43982 | CFLAGS="$CFLAGS $HILDON_CFLAGS" |
3565d135 RR |
43983 | CXXFLAGS="$CXXFLAGS $HILDON_CFLAGS" |
43984 | cat >>confdefs.h <<\_ACEOF | |
43985 | #define wxUSE_LIBHILDON 1 | |
43986 | _ACEOF | |
43987 | ||
426d19f1 | 43988 | ac_hildon_lgpl=1 |
3565d135 | 43989 | |
3ecd9f92 | 43990 | fi |
426d19f1 JS |
43991 | |
43992 | if test "$ac_hildon_lgpl" = 0 ; then | |
43993 | ||
43994 | pkg_failed=no | |
43995 | { echo "$as_me:$LINENO: checking for HILDON2" >&5 | |
43996 | echo $ECHO_N "checking for HILDON2... $ECHO_C" >&6; } | |
43997 | ||
43998 | if test -n "$PKG_CONFIG"; then | |
43999 | if test -n "$HILDON2_CFLAGS"; then | |
44000 | pkg_cv_HILDON2_CFLAGS="$HILDON2_CFLAGS" | |
44001 | else | |
44002 | if test -n "$PKG_CONFIG" && \ | |
44003 | { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"hildon-1 >= 1.99\"") >&5 | |
44004 | ($PKG_CONFIG --exists --print-errors "hildon-1 >= 1.99") 2>&5 | |
44005 | ac_status=$? | |
44006 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
44007 | (exit $ac_status); }; then | |
44008 | pkg_cv_HILDON2_CFLAGS=`$PKG_CONFIG --cflags "hildon-1 >= 1.99" 2>/dev/null` | |
44009 | else | |
44010 | pkg_failed=yes | |
44011 | fi | |
44012 | fi | |
44013 | else | |
44014 | pkg_failed=untried | |
44015 | fi | |
44016 | if test -n "$PKG_CONFIG"; then | |
44017 | if test -n "$HILDON2_LIBS"; then | |
44018 | pkg_cv_HILDON2_LIBS="$HILDON2_LIBS" | |
44019 | else | |
44020 | if test -n "$PKG_CONFIG" && \ | |
44021 | { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"hildon-1 >= 1.99\"") >&5 | |
44022 | ($PKG_CONFIG --exists --print-errors "hildon-1 >= 1.99") 2>&5 | |
44023 | ac_status=$? | |
44024 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
44025 | (exit $ac_status); }; then | |
44026 | pkg_cv_HILDON2_LIBS=`$PKG_CONFIG --libs "hildon-1 >= 1.99" 2>/dev/null` | |
44027 | else | |
44028 | pkg_failed=yes | |
44029 | fi | |
44030 | fi | |
44031 | else | |
44032 | pkg_failed=untried | |
44033 | fi | |
44034 | ||
44035 | ||
44036 | ||
44037 | if test $pkg_failed = yes; then | |
44038 | ||
44039 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
44040 | _pkg_short_errors_supported=yes | |
44041 | else | |
44042 | _pkg_short_errors_supported=no | |
44043 | fi | |
44044 | if test $_pkg_short_errors_supported = yes; then | |
44045 | HILDON2_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "hildon-1 >= 1.99"` | |
44046 | else | |
44047 | HILDON2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "hildon-1 >= 1.99"` | |
44048 | fi | |
44049 | # Put the nasty error message in config.log where it belongs | |
44050 | echo "$HILDON2_PKG_ERRORS" >&5 | |
44051 | ||
44052 | ||
44053 | { echo "$as_me:$LINENO: WARNING: libhildon_1 not found" >&5 | |
44054 | echo "$as_me: WARNING: libhildon_1 not found" >&2;} | |
44055 | wxUSE_LIBHILDON2="no" | |
44056 | ||
44057 | ||
44058 | elif test $pkg_failed = untried; then | |
44059 | ||
44060 | { echo "$as_me:$LINENO: WARNING: libhildon_1 not found" >&5 | |
44061 | echo "$as_me: WARNING: libhildon_1 not found" >&2;} | |
44062 | wxUSE_LIBHILDON2="no" | |
44063 | ||
44064 | ||
44065 | else | |
44066 | HILDON2_CFLAGS=$pkg_cv_HILDON2_CFLAGS | |
44067 | HILDON2_LIBS=$pkg_cv_HILDON2_LIBS | |
44068 | { echo "$as_me:$LINENO: result: yes" >&5 | |
44069 | echo "${ECHO_T}yes" >&6; } | |
44070 | ||
44071 | EXTRALIBS_HILDON="$HILDON2_LIBS" | |
44072 | CFLAGS="$CFLAGS $HILDON2_CFLAGS" | |
44073 | CXXFLAGS="$CXXFLAGS $HILDON2_CFLAGS" | |
44074 | cat >>confdefs.h <<\_ACEOF | |
44075 | #define wxUSE_LIBHILDON2 1 | |
44076 | _ACEOF | |
44077 | ||
44078 | ||
44079 | fi | |
44080 | fi | |
3565d135 RR |
44081 | fi |
44082 | fi | |
d1c38808 | 44083 | |
a848cd7e SC |
44084 | if test "$wxUSE_CMDLINE_PARSER" = "yes"; then |
44085 | cat >>confdefs.h <<\_ACEOF | |
44086 | #define wxUSE_CMDLINE_PARSER 1 | |
44087 | _ACEOF | |
44088 | ||
44089 | fi | |
44090 | ||
44091 | if test "$wxUSE_STOPWATCH" = "yes"; then | |
44092 | cat >>confdefs.h <<\_ACEOF | |
44093 | #define wxUSE_STOPWATCH 1 | |
44094 | _ACEOF | |
44095 | ||
44096 | fi | |
44097 | ||
44098 | if test "$wxUSE_DATETIME" = "yes"; then | |
44099 | cat >>confdefs.h <<\_ACEOF | |
44100 | #define wxUSE_DATETIME 1 | |
44101 | _ACEOF | |
44102 | ||
44103 | fi | |
44104 | ||
44105 | if test "$wxUSE_FILE" = "yes"; then | |
44106 | cat >>confdefs.h <<\_ACEOF | |
44107 | #define wxUSE_FILE 1 | |
44108 | _ACEOF | |
44109 | ||
44110 | fi | |
44111 | ||
44112 | if test "$wxUSE_FFILE" = "yes"; then | |
44113 | cat >>confdefs.h <<\_ACEOF | |
44114 | #define wxUSE_FFILE 1 | |
44115 | _ACEOF | |
44116 | ||
44117 | fi | |
44118 | ||
9e8e867f | 44119 | if test "$wxUSE_ARCHIVE_STREAMS" = "yes"; then |
26e422a9 | 44120 | if test "$wxUSE_STREAMS" != yes; then |
d589327a VZ |
44121 | { echo "$as_me:$LINENO: WARNING: wxArchive requires wxStreams... disabled" >&5 |
44122 | echo "$as_me: WARNING: wxArchive requires wxStreams... disabled" >&2;} | |
916af76f | 44123 | wxUSE_ARCHIVE_STREAMS=no |
26e422a9 MW |
44124 | else |
44125 | cat >>confdefs.h <<\_ACEOF | |
9e8e867f | 44126 | #define wxUSE_ARCHIVE_STREAMS 1 |
81f90336 MW |
44127 | _ACEOF |
44128 | ||
26e422a9 | 44129 | fi |
81f90336 MW |
44130 | fi |
44131 | ||
44132 | if test "$wxUSE_ZIPSTREAM" = "yes"; then | |
9e8e867f | 44133 | if test "$wxUSE_ARCHIVE_STREAMS" != "yes"; then |
d589327a VZ |
44134 | { echo "$as_me:$LINENO: WARNING: wxZip requires wxArchive... disabled" >&5 |
44135 | echo "$as_me: WARNING: wxZip requires wxArchive... disabled" >&2;} | |
81f90336 | 44136 | elif test "$wxUSE_ZLIB" = "no"; then |
d589327a VZ |
44137 | { echo "$as_me:$LINENO: WARNING: wxZip requires wxZlib... disabled" >&5 |
44138 | echo "$as_me: WARNING: wxZip requires wxZlib... disabled" >&2;} | |
81f90336 MW |
44139 | else |
44140 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
44141 | #define wxUSE_ZIPSTREAM 1 |
44142 | _ACEOF | |
44143 | ||
81f90336 | 44144 | fi |
a848cd7e SC |
44145 | fi |
44146 | ||
26e422a9 MW |
44147 | if test "$wxUSE_TARSTREAM" = "yes"; then |
44148 | if test "$wxUSE_ARCHIVE_STREAMS" != "yes"; then | |
d589327a VZ |
44149 | { echo "$as_me:$LINENO: WARNING: wxTar requires wxArchive... disabled" >&5 |
44150 | echo "$as_me: WARNING: wxTar requires wxArchive... disabled" >&2;} | |
26e422a9 MW |
44151 | else |
44152 | cat >>confdefs.h <<\_ACEOF | |
44153 | #define wxUSE_TARSTREAM 1 | |
44154 | _ACEOF | |
44155 | ||
44156 | fi | |
44157 | fi | |
44158 | ||
a0219e45 VS |
44159 | if test "$wxUSE_FILE_HISTORY" = "yes"; then |
44160 | cat >>confdefs.h <<\_ACEOF | |
44161 | #define wxUSE_FILE_HISTORY 1 | |
44162 | _ACEOF | |
44163 | ||
44164 | fi | |
44165 | ||
916af76f | 44166 | if test "$wxUSE_FILESYSTEM" = "yes"; then |
f8f6c91a | 44167 | if test "$wxUSE_STREAMS" != yes -o \( "$wxUSE_FILE" != yes -a "$wxUSE_FFILE" != yes \); then |
d589327a VZ |
44168 | { echo "$as_me:$LINENO: WARNING: wxFileSystem requires wxStreams and wxFile or wxFFile... disabled" >&5 |
44169 | echo "$as_me: WARNING: wxFileSystem requires wxStreams and wxFile or wxFFile... disabled" >&2;} | |
916af76f | 44170 | wxUSE_FILESYSTEM=no |
f8f6c91a MW |
44171 | else |
44172 | cat >>confdefs.h <<\_ACEOF | |
916af76f | 44173 | #define wxUSE_FILESYSTEM 1 |
f8f6c91a MW |
44174 | _ACEOF |
44175 | ||
44176 | fi | |
44177 | fi | |
44178 | ||
26e422a9 | 44179 | if test "$wxUSE_FS_ARCHIVE" = "yes"; then |
916af76f | 44180 | if test "$wxUSE_FILESYSTEM" != yes -o "$wxUSE_ARCHIVE_STREAMS" != yes; then |
d589327a VZ |
44181 | { echo "$as_me:$LINENO: WARNING: wxArchiveFSHandler requires wxArchive and wxFileSystem... disabled" >&5 |
44182 | echo "$as_me: WARNING: wxArchiveFSHandler requires wxArchive and wxFileSystem... disabled" >&2;} | |
26e422a9 MW |
44183 | else |
44184 | cat >>confdefs.h <<\_ACEOF | |
44185 | #define wxUSE_FS_ARCHIVE 1 | |
44186 | _ACEOF | |
44187 | ||
44188 | fi | |
44189 | fi | |
44190 | ||
916af76f MW |
44191 | if test "$wxUSE_FS_ZIP" = "yes"; then |
44192 | if test "$wxUSE_FS_ARCHIVE" != yes; then | |
d589327a VZ |
44193 | { echo "$as_me:$LINENO: WARNING: wxZipFSHandler requires wxArchiveFSHandler... disabled" >&5 |
44194 | echo "$as_me: WARNING: wxZipFSHandler requires wxArchiveFSHandler... disabled" >&2;} | |
916af76f MW |
44195 | else |
44196 | cat >>confdefs.h <<\_ACEOF | |
44197 | #define wxUSE_FS_ZIP 1 | |
44198 | _ACEOF | |
44199 | ||
44200 | fi | |
44201 | fi | |
44202 | ||
a848cd7e | 44203 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then |
18228ab4 | 44204 | if test "$USE_UNIX" != 1; then |
d589327a VZ |
44205 | { echo "$as_me:$LINENO: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&5 |
44206 | echo "$as_me: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&2;} | |
18228ab4 MW |
44207 | wxUSE_ON_FATAL_EXCEPTION=no |
44208 | else | |
44209 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
44210 | #define wxUSE_ON_FATAL_EXCEPTION 1 |
44211 | _ACEOF | |
44212 | ||
18228ab4 | 44213 | fi |
a848cd7e SC |
44214 | fi |
44215 | ||
eaff0f0d VZ |
44216 | if test "$wxUSE_STACKWALKER" = "yes"; then |
44217 | cat >>confdefs.h <<\_ACEOF | |
44218 | #define wxUSE_STACKWALKER 1 | |
44219 | _ACEOF | |
44220 | ||
44221 | fi | |
44222 | ||
36b6448c | 44223 | if test "$wxUSE_DEBUGREPORT" = "yes"; then |
6517fa86 | 44224 | if test "$USE_UNIX" != 1 -a "$USE_WIN32" != 1; then |
d589327a VZ |
44225 | { echo "$as_me:$LINENO: WARNING: Creating debug reports not currently supported on this system, disabled" >&5 |
44226 | echo "$as_me: WARNING: Creating debug reports not currently supported on this system, disabled" >&2;} | |
dfe0c803 JS |
44227 | wxUSE_DEBUGREPORT=no |
44228 | else | |
44229 | cat >>confdefs.h <<\_ACEOF | |
36b6448c VZ |
44230 | #define wxUSE_DEBUGREPORT 1 |
44231 | _ACEOF | |
44232 | ||
21dfc162 MW |
44233 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then |
44234 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS debugrpt" | |
44235 | fi | |
dfe0c803 | 44236 | fi |
36b6448c VZ |
44237 | fi |
44238 | ||
a848cd7e SC |
44239 | if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then |
44240 | cat >>confdefs.h <<\_ACEOF | |
44241 | #define wxUSE_SNGLINST_CHECKER 1 | |
44242 | _ACEOF | |
44243 | ||
44244 | fi | |
44245 | ||
44246 | if test "$wxUSE_BUSYINFO" = "yes"; then | |
44247 | cat >>confdefs.h <<\_ACEOF | |
44248 | #define wxUSE_BUSYINFO 1 | |
44249 | _ACEOF | |
44250 | ||
44251 | fi | |
44252 | ||
44253 | if test "$wxUSE_STD_IOSTREAM" = "yes"; then | |
44254 | cat >>confdefs.h <<\_ACEOF | |
44255 | #define wxUSE_STD_IOSTREAM 1 | |
44256 | _ACEOF | |
44257 | ||
44258 | fi | |
44259 | ||
59746b65 MW |
44260 | if test "$wxUSE_STD_STRING" = "yes"; then |
44261 | cat >>confdefs.h <<\_ACEOF | |
44262 | #define wxUSE_STD_STRING 1 | |
44263 | _ACEOF | |
44264 | ||
44265 | fi | |
44266 | ||
07158944 VZ |
44267 | if test "$wxUSE_STDPATHS" = "yes"; then |
44268 | cat >>confdefs.h <<\_ACEOF | |
44269 | #define wxUSE_STDPATHS 1 | |
44270 | _ACEOF | |
44271 | ||
44272 | fi | |
44273 | ||
a848cd7e SC |
44274 | if test "$wxUSE_TEXTBUFFER" = "yes"; then |
44275 | cat >>confdefs.h <<\_ACEOF | |
44276 | #define wxUSE_TEXTBUFFER 1 | |
44277 | _ACEOF | |
44278 | ||
44279 | fi | |
44280 | ||
44281 | if test "$wxUSE_TEXTFILE" = "yes"; then | |
44282 | if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then | |
d589327a VZ |
44283 | { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5 |
44284 | echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;} | |
a848cd7e SC |
44285 | else |
44286 | cat >>confdefs.h <<\_ACEOF | |
44287 | #define wxUSE_TEXTFILE 1 | |
44288 | _ACEOF | |
44289 | ||
44290 | fi | |
44291 | fi | |
44292 | ||
44293 | if test "$wxUSE_CONFIG" = "yes" ; then | |
44294 | if test "$wxUSE_TEXTFILE" != "yes"; then | |
d589327a VZ |
44295 | { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5 |
44296 | echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;} | |
a848cd7e SC |
44297 | else |
44298 | cat >>confdefs.h <<\_ACEOF | |
44299 | #define wxUSE_CONFIG 1 | |
89be85c2 VS |
44300 | _ACEOF |
44301 | ||
44302 | cat >>confdefs.h <<\_ACEOF | |
44303 | #define wxUSE_CONFIG_NATIVE 1 | |
a848cd7e SC |
44304 | _ACEOF |
44305 | ||
44306 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config" | |
44307 | fi | |
44308 | fi | |
44309 | ||
44310 | if test "$wxUSE_INTL" = "yes" ; then | |
44311 | if test "$wxUSE_FILE" != "yes"; then | |
d589327a VZ |
44312 | { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5 |
44313 | echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;} | |
a848cd7e SC |
44314 | else |
44315 | cat >>confdefs.h <<\_ACEOF | |
44316 | #define wxUSE_INTL 1 | |
44317 | _ACEOF | |
44318 | ||
44319 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat" | |
44320 | GUIDIST="$GUIDIST INTL_DIST" | |
44321 | fi | |
44322 | fi | |
44323 | ||
41148443 | 44324 | if test "$wxUSE_XLOCALE" = "yes" ; then |
6e4ae332 VZ |
44325 | cat >>confdefs.h <<\_ACEOF |
44326 | #define wxUSE_XLOCALE 1 | |
44327 | _ACEOF | |
44328 | ||
d589327a VZ |
44329 | { echo "$as_me:$LINENO: checking for locale_t" >&5 |
44330 | echo $ECHO_N "checking for locale_t... $ECHO_C" >&6; } | |
6e4ae332 | 44331 | if test "${ac_cv_type_locale_t+set}" = set; then |
d589327a | 44332 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6e4ae332 | 44333 | else |
aa113d87 FM |
44334 | cat >conftest.$ac_ext <<_ACEOF |
44335 | /* confdefs.h. */ | |
44336 | _ACEOF | |
44337 | cat confdefs.h >>conftest.$ac_ext | |
44338 | cat >>conftest.$ac_ext <<_ACEOF | |
44339 | /* end confdefs.h. */ | |
44340 | #include <xlocale.h> | |
44341 | #include <locale.h> | |
44342 | ||
d589327a | 44343 | typedef locale_t ac__type_new_; |
aa113d87 FM |
44344 | int |
44345 | main () | |
44346 | { | |
d589327a VZ |
44347 | if ((ac__type_new_ *) 0) |
44348 | return 0; | |
44349 | if (sizeof (ac__type_new_)) | |
44350 | return 0; | |
6e4ae332 VZ |
44351 | ; |
44352 | return 0; | |
44353 | } | |
44354 | _ACEOF | |
44355 | rm -f conftest.$ac_objext | |
44356 | if { (ac_try="$ac_compile" | |
44357 | case "(($ac_try" in | |
44358 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
44359 | *) ac_try_echo=$ac_try;; | |
44360 | esac | |
d589327a | 44361 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
6e4ae332 VZ |
44362 | (eval "$ac_compile") 2>conftest.er1 |
44363 | ac_status=$? | |
44364 | grep -v '^ *+' conftest.er1 >conftest.err | |
44365 | rm -f conftest.er1 | |
44366 | cat conftest.err >&5 | |
d589327a | 44367 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6e4ae332 VZ |
44368 | (exit $ac_status); } && { |
44369 | test -z "$ac_c_werror_flag" || | |
44370 | test ! -s conftest.err | |
44371 | } && test -s conftest.$ac_objext; then | |
d589327a | 44372 | ac_cv_type_locale_t=yes |
6e4ae332 | 44373 | else |
d589327a | 44374 | echo "$as_me: failed program was:" >&5 |
6e4ae332 VZ |
44375 | sed 's/^/| /' conftest.$ac_ext >&5 |
44376 | ||
d589327a | 44377 | ac_cv_type_locale_t=no |
6e4ae332 VZ |
44378 | fi |
44379 | ||
44380 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
44381 | fi | |
d589327a VZ |
44382 | { echo "$as_me:$LINENO: result: $ac_cv_type_locale_t" >&5 |
44383 | echo "${ECHO_T}$ac_cv_type_locale_t" >&6; } | |
44384 | if test $ac_cv_type_locale_t = yes; then | |
6e4ae332 VZ |
44385 | |
44386 | cat >>confdefs.h <<_ACEOF | |
44387 | #define HAVE_LOCALE_T 1 | |
44388 | _ACEOF | |
44389 | ||
44390 | ||
44391 | fi | |
44392 | ||
44393 | fi | |
44394 | ||
a848cd7e SC |
44395 | if test "$wxUSE_LOG" = "yes"; then |
44396 | cat >>confdefs.h <<\_ACEOF | |
44397 | #define wxUSE_LOG 1 | |
44398 | _ACEOF | |
44399 | ||
44400 | ||
44401 | if test "$wxUSE_LOGGUI" = "yes"; then | |
44402 | cat >>confdefs.h <<\_ACEOF | |
44403 | #define wxUSE_LOGGUI 1 | |
44404 | _ACEOF | |
44405 | ||
44406 | fi | |
44407 | ||
44408 | if test "$wxUSE_LOGWINDOW" = "yes"; then | |
44409 | cat >>confdefs.h <<\_ACEOF | |
44410 | #define wxUSE_LOGWINDOW 1 | |
44411 | _ACEOF | |
44412 | ||
44413 | fi | |
44414 | ||
44415 | if test "$wxUSE_LOGDIALOG" = "yes"; then | |
44416 | cat >>confdefs.h <<\_ACEOF | |
44417 | #define wxUSE_LOG_DIALOG 1 | |
44418 | _ACEOF | |
44419 | ||
44420 | fi | |
0b78747f MW |
44421 | |
44422 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS keyboard" | |
a848cd7e SC |
44423 | fi |
44424 | ||
44425 | if test "$wxUSE_LONGLONG" = "yes"; then | |
44426 | cat >>confdefs.h <<\_ACEOF | |
44427 | #define wxUSE_LONGLONG 1 | |
44428 | _ACEOF | |
44429 | ||
44430 | fi | |
44431 | ||
44432 | if test "$wxUSE_GEOMETRY" = "yes"; then | |
44433 | cat >>confdefs.h <<\_ACEOF | |
44434 | #define wxUSE_GEOMETRY 1 | |
44435 | _ACEOF | |
44436 | ||
44437 | fi | |
44438 | ||
4db03d26 VZ |
44439 | if test "$wxUSE_BASE64" = "yes"; then |
44440 | cat >>confdefs.h <<\_ACEOF | |
44441 | #define wxUSE_BASE64 1 | |
44442 | _ACEOF | |
44443 | ||
44444 | fi | |
44445 | ||
a848cd7e SC |
44446 | if test "$wxUSE_STREAMS" = "yes" ; then |
44447 | cat >>confdefs.h <<\_ACEOF | |
44448 | #define wxUSE_STREAMS 1 | |
44449 | _ACEOF | |
44450 | ||
44451 | fi | |
44452 | ||
8b6682b9 JS |
44453 | if test "$wxUSE_PRINTF_POS_PARAMS" = "yes"; then |
44454 | cat >>confdefs.h <<\_ACEOF | |
44455 | #define wxUSE_PRINTF_POS_PARAMS 1 | |
44456 | _ACEOF | |
44457 | ||
44458 | fi | |
44459 | ||
931d7698 DE |
44460 | if test "$wxUSE_OBJC_UNIQUIFYING" = "yes"; then |
44461 | cat >>confdefs.h <<\_ACEOF | |
44462 | #define wxUSE_OBJC_UNIQUIFYING 1 | |
44463 | _ACEOF | |
44464 | ||
44465 | fi | |
8b6682b9 | 44466 | |
a848cd7e | 44467 | |
39931206 VZ |
44468 | if test "$wxUSE_CONSOLE_EVENTLOOP" = "yes"; then |
44469 | cat >>confdefs.h <<\_ACEOF | |
44470 | #define wxUSE_CONSOLE_EVENTLOOP 1 | |
44471 | _ACEOF | |
44472 | ||
44473 | ||
44474 | if test "$wxUSE_UNIX" = "yes"; then | |
44475 | if test "$wxUSE_SELECT_DISPATCHER" = "yes"; then | |
44476 | cat >>confdefs.h <<\_ACEOF | |
44477 | #define wxUSE_SELECT_DISPATCHER 1 | |
44478 | _ACEOF | |
44479 | ||
44480 | fi | |
44481 | ||
44482 | if test "$wxUSE_EPOLL_DISPATCHER" = "yes"; then | |
44483 | ||
44484 | for ac_header in sys/epoll.h | |
44485 | do | |
d589327a VZ |
44486 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
44487 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
44488 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
47964710 | 44489 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
d589327a | 44490 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
39931206 | 44491 | else |
b55e1842 | 44492 | cat >conftest.$ac_ext <<_ACEOF |
39931206 VZ |
44493 | /* confdefs.h. */ |
44494 | _ACEOF | |
44495 | cat confdefs.h >>conftest.$ac_ext | |
44496 | cat >>conftest.$ac_ext <<_ACEOF | |
44497 | /* end confdefs.h. */ | |
44498 | $ac_includes_default | |
b55e1842 | 44499 | |
39931206 VZ |
44500 | #include <$ac_header> |
44501 | _ACEOF | |
44502 | rm -f conftest.$ac_objext | |
47964710 VS |
44503 | if { (ac_try="$ac_compile" |
44504 | case "(($ac_try" in | |
44505 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
44506 | *) ac_try_echo=$ac_try;; | |
44507 | esac | |
d589327a | 44508 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 44509 | (eval "$ac_compile") 2>conftest.er1 |
39931206 VZ |
44510 | ac_status=$? |
44511 | grep -v '^ *+' conftest.er1 >conftest.err | |
44512 | rm -f conftest.er1 | |
44513 | cat conftest.err >&5 | |
d589327a | 44514 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
44515 | (exit $ac_status); } && { |
44516 | test -z "$ac_c_werror_flag" || | |
44517 | test ! -s conftest.err | |
44518 | } && test -s conftest.$ac_objext; then | |
b55e1842 | 44519 | eval "$as_ac_Header=yes" |
39931206 | 44520 | else |
d589327a | 44521 | echo "$as_me: failed program was:" >&5 |
39931206 VZ |
44522 | sed 's/^/| /' conftest.$ac_ext >&5 |
44523 | ||
47964710 | 44524 | eval "$as_ac_Header=no" |
39931206 | 44525 | fi |
47964710 VS |
44526 | |
44527 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
39931206 | 44528 | fi |
d589327a VZ |
44529 | ac_res=`eval echo '${'$as_ac_Header'}'` |
44530 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
44531 | echo "${ECHO_T}$ac_res" >&6; } | |
44532 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
39931206 | 44533 | cat >>confdefs.h <<_ACEOF |
d589327a | 44534 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
39931206 VZ |
44535 | _ACEOF |
44536 | ||
44537 | fi | |
44538 | ||
44539 | done | |
44540 | ||
44541 | if test "$ac_cv_header_sys_epoll_h" = "yes"; then | |
44542 | cat >>confdefs.h <<\_ACEOF | |
44543 | #define wxUSE_EPOLL_DISPATCHER 1 | |
44544 | _ACEOF | |
44545 | ||
44546 | else | |
d589327a VZ |
44547 | { echo "$as_me:$LINENO: WARNING: sys/epoll.h not available, wxEpollDispatcher disabled" >&5 |
44548 | echo "$as_me: WARNING: sys/epoll.h not available, wxEpollDispatcher disabled" >&2;} | |
39931206 VZ |
44549 | fi |
44550 | fi | |
44551 | fi | |
44552 | fi | |
44553 | ||
44554 | ||
5f6cafd1 VZ |
44555 | |
44556 | ||
44557 | for ac_func in gettimeofday ftime | |
44558 | do | |
d589327a VZ |
44559 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
44560 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
44561 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
47964710 | 44562 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
d589327a | 44563 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5f6cafd1 VZ |
44564 | else |
44565 | cat >conftest.$ac_ext <<_ACEOF | |
44566 | /* confdefs.h. */ | |
44567 | _ACEOF | |
44568 | cat confdefs.h >>conftest.$ac_ext | |
44569 | cat >>conftest.$ac_ext <<_ACEOF | |
44570 | /* end confdefs.h. */ | |
44571 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
44572 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
44573 | #define $ac_func innocuous_$ac_func | |
44574 | ||
44575 | /* System header to define __stub macros and hopefully few prototypes, | |
44576 | which can conflict with char $ac_func (); below. | |
44577 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
44578 | <limits.h> exists even on freestanding compilers. */ | |
44579 | ||
44580 | #ifdef __STDC__ | |
44581 | # include <limits.h> | |
44582 | #else | |
44583 | # include <assert.h> | |
44584 | #endif | |
44585 | ||
44586 | #undef $ac_func | |
44587 | ||
47964710 VS |
44588 | /* Override any GCC internal prototype to avoid an error. |
44589 | Use char because int might match the return type of a GCC | |
44590 | builtin and then its argument prototype would still apply. */ | |
5f6cafd1 VZ |
44591 | #ifdef __cplusplus |
44592 | extern "C" | |
44593 | #endif | |
44594 | char $ac_func (); | |
44595 | /* The GNU C library defines this for functions which it implements | |
44596 | to always fail with ENOSYS. Some functions are actually named | |
44597 | something starting with __ and the normal name is an alias. */ | |
47964710 | 44598 | #if defined __stub_$ac_func || defined __stub___$ac_func |
5f6cafd1 VZ |
44599 | choke me |
44600 | #endif | |
44601 | ||
44602 | int | |
44603 | main () | |
44604 | { | |
47964710 | 44605 | return $ac_func (); |
5f6cafd1 VZ |
44606 | ; |
44607 | return 0; | |
44608 | } | |
44609 | _ACEOF | |
44610 | rm -f conftest.$ac_objext conftest$ac_exeext | |
47964710 VS |
44611 | if { (ac_try="$ac_link" |
44612 | case "(($ac_try" in | |
44613 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
44614 | *) ac_try_echo=$ac_try;; | |
44615 | esac | |
d589327a | 44616 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 44617 | (eval "$ac_link") 2>conftest.er1 |
5f6cafd1 VZ |
44618 | ac_status=$? |
44619 | grep -v '^ *+' conftest.er1 >conftest.err | |
44620 | rm -f conftest.er1 | |
44621 | cat conftest.err >&5 | |
d589327a | 44622 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
44623 | (exit $ac_status); } && { |
44624 | test -z "$ac_c_werror_flag" || | |
44625 | test ! -s conftest.err | |
d589327a VZ |
44626 | } && test -s conftest$ac_exeext && |
44627 | $as_test_x conftest$ac_exeext; then | |
5f6cafd1 VZ |
44628 | eval "$as_ac_var=yes" |
44629 | else | |
d589327a | 44630 | echo "$as_me: failed program was:" >&5 |
5f6cafd1 VZ |
44631 | sed 's/^/| /' conftest.$ac_ext >&5 |
44632 | ||
47964710 | 44633 | eval "$as_ac_var=no" |
5f6cafd1 | 44634 | fi |
47964710 VS |
44635 | |
44636 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
5f6cafd1 VZ |
44637 | conftest$ac_exeext conftest.$ac_ext |
44638 | fi | |
d589327a VZ |
44639 | ac_res=`eval echo '${'$as_ac_var'}'` |
44640 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
44641 | echo "${ECHO_T}$ac_res" >&6; } | |
44642 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
5f6cafd1 | 44643 | cat >>confdefs.h <<_ACEOF |
d589327a | 44644 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
5f6cafd1 VZ |
44645 | _ACEOF |
44646 | break | |
44647 | fi | |
44648 | done | |
44649 | ||
44650 | ||
44651 | if test "$ac_cv_func_gettimeofday" = "yes"; then | |
d589327a VZ |
44652 | { echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5 |
44653 | echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6; } | |
5f6cafd1 | 44654 | if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then |
d589327a | 44655 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5f6cafd1 VZ |
44656 | else |
44657 | ||
44658 | cat >conftest.$ac_ext <<_ACEOF | |
44659 | /* confdefs.h. */ | |
44660 | _ACEOF | |
44661 | cat confdefs.h >>conftest.$ac_ext | |
44662 | cat >>conftest.$ac_ext <<_ACEOF | |
44663 | /* end confdefs.h. */ | |
44664 | ||
44665 | #include <sys/time.h> | |
44666 | #include <unistd.h> | |
44667 | ||
44668 | int | |
44669 | main () | |
44670 | { | |
44671 | ||
44672 | struct timeval tv; | |
44673 | gettimeofday(&tv, NULL); | |
44674 | ||
44675 | ; | |
44676 | return 0; | |
44677 | } | |
44678 | _ACEOF | |
44679 | rm -f conftest.$ac_objext | |
47964710 VS |
44680 | if { (ac_try="$ac_compile" |
44681 | case "(($ac_try" in | |
44682 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
44683 | *) ac_try_echo=$ac_try;; | |
44684 | esac | |
d589327a | 44685 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 44686 | (eval "$ac_compile") 2>conftest.er1 |
5f6cafd1 VZ |
44687 | ac_status=$? |
44688 | grep -v '^ *+' conftest.er1 >conftest.err | |
44689 | rm -f conftest.er1 | |
44690 | cat conftest.err >&5 | |
d589327a | 44691 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
44692 | (exit $ac_status); } && { |
44693 | test -z "$ac_c_werror_flag" || | |
44694 | test ! -s conftest.err | |
44695 | } && test -s conftest.$ac_objext; then | |
5f6cafd1 VZ |
44696 | wx_cv_func_gettimeofday_has_2_args=yes |
44697 | else | |
d589327a | 44698 | echo "$as_me: failed program was:" >&5 |
5f6cafd1 VZ |
44699 | sed 's/^/| /' conftest.$ac_ext >&5 |
44700 | ||
47964710 | 44701 | cat >conftest.$ac_ext <<_ACEOF |
5f6cafd1 VZ |
44702 | /* confdefs.h. */ |
44703 | _ACEOF | |
44704 | cat confdefs.h >>conftest.$ac_ext | |
44705 | cat >>conftest.$ac_ext <<_ACEOF | |
44706 | /* end confdefs.h. */ | |
44707 | ||
44708 | #include <sys/time.h> | |
44709 | #include <unistd.h> | |
44710 | ||
44711 | int | |
44712 | main () | |
44713 | { | |
44714 | ||
44715 | struct timeval tv; | |
44716 | gettimeofday(&tv); | |
44717 | ||
44718 | ; | |
44719 | return 0; | |
44720 | } | |
44721 | _ACEOF | |
44722 | rm -f conftest.$ac_objext | |
47964710 VS |
44723 | if { (ac_try="$ac_compile" |
44724 | case "(($ac_try" in | |
44725 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
44726 | *) ac_try_echo=$ac_try;; | |
44727 | esac | |
d589327a | 44728 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 44729 | (eval "$ac_compile") 2>conftest.er1 |
5f6cafd1 VZ |
44730 | ac_status=$? |
44731 | grep -v '^ *+' conftest.er1 >conftest.err | |
44732 | rm -f conftest.er1 | |
44733 | cat conftest.err >&5 | |
d589327a | 44734 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
44735 | (exit $ac_status); } && { |
44736 | test -z "$ac_c_werror_flag" || | |
44737 | test ! -s conftest.err | |
44738 | } && test -s conftest.$ac_objext; then | |
5f6cafd1 VZ |
44739 | wx_cv_func_gettimeofday_has_2_args=no |
44740 | else | |
d589327a | 44741 | echo "$as_me: failed program was:" >&5 |
5f6cafd1 VZ |
44742 | sed 's/^/| /' conftest.$ac_ext >&5 |
44743 | ||
44744 | ||
d589327a VZ |
44745 | { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5 |
44746 | echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;} | |
5f6cafd1 VZ |
44747 | wx_cv_func_gettimeofday_has_2_args=unknown |
44748 | ||
44749 | ||
44750 | fi | |
47964710 VS |
44751 | |
44752 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5f6cafd1 VZ |
44753 | |
44754 | fi | |
47964710 VS |
44755 | |
44756 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5f6cafd1 VZ |
44757 | |
44758 | fi | |
d589327a VZ |
44759 | { echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5 |
44760 | echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6; } | |
5f6cafd1 VZ |
44761 | |
44762 | if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then | |
44763 | cat >>confdefs.h <<\_ACEOF | |
44764 | #define WX_GETTIMEOFDAY_NO_TZ 1 | |
44765 | _ACEOF | |
44766 | ||
44767 | fi | |
44768 | fi | |
44769 | ||
a848cd7e | 44770 | if test "$wxUSE_DATETIME" = "yes"; then |
d589327a VZ |
44771 | { echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5 |
44772 | echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6; } | |
a848cd7e | 44773 | if test "${wx_cv_var_timezone+set}" = set; then |
d589327a | 44774 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a848cd7e SC |
44775 | else |
44776 | ||
47964710 | 44777 | ac_ext=cpp |
715d53e4 VZ |
44778 | ac_cpp='$CXXCPP $CPPFLAGS' |
44779 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
44780 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
44781 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
44782 | ||
a848cd7e SC |
44783 | cat >conftest.$ac_ext <<_ACEOF |
44784 | /* confdefs.h. */ | |
44785 | _ACEOF | |
44786 | cat confdefs.h >>conftest.$ac_ext | |
44787 | cat >>conftest.$ac_ext <<_ACEOF | |
44788 | /* end confdefs.h. */ | |
44789 | ||
44790 | #include <time.h> | |
44791 | ||
44792 | int | |
44793 | main () | |
44794 | { | |
44795 | ||
44796 | int tz; | |
44797 | tz = timezone; | |
44798 | ||
44799 | ; | |
44800 | return 0; | |
44801 | } | |
44802 | _ACEOF | |
44803 | rm -f conftest.$ac_objext | |
47964710 VS |
44804 | if { (ac_try="$ac_compile" |
44805 | case "(($ac_try" in | |
44806 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
44807 | *) ac_try_echo=$ac_try;; | |
44808 | esac | |
d589327a | 44809 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 44810 | (eval "$ac_compile") 2>conftest.er1 |
a848cd7e | 44811 | ac_status=$? |
ac1cb8d3 VS |
44812 | grep -v '^ *+' conftest.er1 >conftest.err |
44813 | rm -f conftest.er1 | |
44814 | cat conftest.err >&5 | |
d589327a | 44815 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
44816 | (exit $ac_status); } && { |
44817 | test -z "$ac_cxx_werror_flag" || | |
44818 | test ! -s conftest.err | |
44819 | } && test -s conftest.$ac_objext; then | |
a848cd7e SC |
44820 | |
44821 | wx_cv_var_timezone=timezone | |
44822 | ||
44823 | else | |
d589327a | 44824 | echo "$as_me: failed program was:" >&5 |
a848cd7e SC |
44825 | sed 's/^/| /' conftest.$ac_ext >&5 |
44826 | ||
44827 | ||
44828 | cat >conftest.$ac_ext <<_ACEOF | |
44829 | /* confdefs.h. */ | |
44830 | _ACEOF | |
44831 | cat confdefs.h >>conftest.$ac_ext | |
44832 | cat >>conftest.$ac_ext <<_ACEOF | |
44833 | /* end confdefs.h. */ | |
44834 | ||
44835 | #include <time.h> | |
44836 | ||
44837 | int | |
44838 | main () | |
44839 | { | |
44840 | ||
44841 | int tz; | |
44842 | tz = _timezone; | |
44843 | ||
44844 | ; | |
44845 | return 0; | |
44846 | } | |
44847 | _ACEOF | |
44848 | rm -f conftest.$ac_objext | |
47964710 VS |
44849 | if { (ac_try="$ac_compile" |
44850 | case "(($ac_try" in | |
44851 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
44852 | *) ac_try_echo=$ac_try;; | |
44853 | esac | |
d589327a | 44854 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 44855 | (eval "$ac_compile") 2>conftest.er1 |
a848cd7e | 44856 | ac_status=$? |
ac1cb8d3 VS |
44857 | grep -v '^ *+' conftest.er1 >conftest.err |
44858 | rm -f conftest.er1 | |
44859 | cat conftest.err >&5 | |
d589327a | 44860 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
44861 | (exit $ac_status); } && { |
44862 | test -z "$ac_cxx_werror_flag" || | |
44863 | test ! -s conftest.err | |
44864 | } && test -s conftest.$ac_objext; then | |
a848cd7e SC |
44865 | |
44866 | wx_cv_var_timezone=_timezone | |
44867 | ||
44868 | else | |
d589327a | 44869 | echo "$as_me: failed program was:" >&5 |
a848cd7e SC |
44870 | sed 's/^/| /' conftest.$ac_ext >&5 |
44871 | ||
44872 | ||
44873 | cat >conftest.$ac_ext <<_ACEOF | |
44874 | /* confdefs.h. */ | |
44875 | _ACEOF | |
44876 | cat confdefs.h >>conftest.$ac_ext | |
44877 | cat >>conftest.$ac_ext <<_ACEOF | |
44878 | /* end confdefs.h. */ | |
44879 | ||
44880 | #include <time.h> | |
44881 | ||
44882 | int | |
44883 | main () | |
44884 | { | |
44885 | ||
44886 | int tz; | |
44887 | tz = __timezone; | |
44888 | ||
44889 | ; | |
44890 | return 0; | |
44891 | } | |
44892 | _ACEOF | |
44893 | rm -f conftest.$ac_objext | |
47964710 VS |
44894 | if { (ac_try="$ac_compile" |
44895 | case "(($ac_try" in | |
44896 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
44897 | *) ac_try_echo=$ac_try;; | |
44898 | esac | |
d589327a | 44899 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 44900 | (eval "$ac_compile") 2>conftest.er1 |
a848cd7e | 44901 | ac_status=$? |
ac1cb8d3 VS |
44902 | grep -v '^ *+' conftest.er1 >conftest.err |
44903 | rm -f conftest.er1 | |
44904 | cat conftest.err >&5 | |
d589327a | 44905 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
44906 | (exit $ac_status); } && { |
44907 | test -z "$ac_cxx_werror_flag" || | |
44908 | test ! -s conftest.err | |
44909 | } && test -s conftest.$ac_objext; then | |
a848cd7e SC |
44910 | |
44911 | wx_cv_var_timezone=__timezone | |
44912 | ||
44913 | else | |
d589327a | 44914 | echo "$as_me: failed program was:" >&5 |
a848cd7e SC |
44915 | sed 's/^/| /' conftest.$ac_ext >&5 |
44916 | ||
44917 | ||
44918 | if test "$USE_DOS" = 0 ; then | |
d589327a VZ |
44919 | { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5 |
44920 | echo "$as_me: WARNING: no timezone variable" >&2;} | |
a848cd7e SC |
44921 | fi |
44922 | ||
44923 | ||
44924 | fi | |
47964710 VS |
44925 | |
44926 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
a848cd7e SC |
44927 | |
44928 | ||
44929 | fi | |
47964710 VS |
44930 | |
44931 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
a848cd7e SC |
44932 | |
44933 | ||
44934 | fi | |
47964710 VS |
44935 | |
44936 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
715d53e4 VZ |
44937 | ac_ext=c |
44938 | ac_cpp='$CPP $CPPFLAGS' | |
44939 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
44940 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
44941 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
44942 | ||
a848cd7e SC |
44943 | |
44944 | ||
44945 | fi | |
d589327a VZ |
44946 | { echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5 |
44947 | echo "${ECHO_T}$wx_cv_var_timezone" >&6; } | |
a848cd7e SC |
44948 | |
44949 | if test "x$wx_cv_var_timezone" != x ; then | |
44950 | cat >>confdefs.h <<_ACEOF | |
44951 | #define WX_TIMEZONE $wx_cv_var_timezone | |
44952 | _ACEOF | |
44953 | ||
44954 | fi | |
44955 | ||
44956 | ||
44957 | for ac_func in localtime | |
44958 | do | |
d589327a VZ |
44959 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
44960 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
44961 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
47964710 | 44962 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
d589327a | 44963 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a848cd7e SC |
44964 | else |
44965 | cat >conftest.$ac_ext <<_ACEOF | |
44966 | /* confdefs.h. */ | |
44967 | _ACEOF | |
44968 | cat confdefs.h >>conftest.$ac_ext | |
44969 | cat >>conftest.$ac_ext <<_ACEOF | |
44970 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
44971 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
44972 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
44973 | #define $ac_func innocuous_$ac_func | |
44974 | ||
a848cd7e SC |
44975 | /* System header to define __stub macros and hopefully few prototypes, |
44976 | which can conflict with char $ac_func (); below. | |
44977 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
44978 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 44979 | |
a848cd7e SC |
44980 | #ifdef __STDC__ |
44981 | # include <limits.h> | |
44982 | #else | |
44983 | # include <assert.h> | |
44984 | #endif | |
ac1cb8d3 VS |
44985 | |
44986 | #undef $ac_func | |
44987 | ||
47964710 VS |
44988 | /* Override any GCC internal prototype to avoid an error. |
44989 | Use char because int might match the return type of a GCC | |
44990 | builtin and then its argument prototype would still apply. */ | |
a848cd7e SC |
44991 | #ifdef __cplusplus |
44992 | extern "C" | |
a848cd7e | 44993 | #endif |
a848cd7e SC |
44994 | char $ac_func (); |
44995 | /* The GNU C library defines this for functions which it implements | |
44996 | to always fail with ENOSYS. Some functions are actually named | |
44997 | something starting with __ and the normal name is an alias. */ | |
47964710 | 44998 | #if defined __stub_$ac_func || defined __stub___$ac_func |
a848cd7e | 44999 | choke me |
a848cd7e SC |
45000 | #endif |
45001 | ||
45002 | int | |
45003 | main () | |
45004 | { | |
47964710 | 45005 | return $ac_func (); |
a848cd7e SC |
45006 | ; |
45007 | return 0; | |
45008 | } | |
45009 | _ACEOF | |
45010 | rm -f conftest.$ac_objext conftest$ac_exeext | |
47964710 VS |
45011 | if { (ac_try="$ac_link" |
45012 | case "(($ac_try" in | |
45013 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
45014 | *) ac_try_echo=$ac_try;; | |
45015 | esac | |
d589327a | 45016 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 45017 | (eval "$ac_link") 2>conftest.er1 |
a848cd7e | 45018 | ac_status=$? |
ac1cb8d3 VS |
45019 | grep -v '^ *+' conftest.er1 >conftest.err |
45020 | rm -f conftest.er1 | |
45021 | cat conftest.err >&5 | |
d589327a | 45022 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
45023 | (exit $ac_status); } && { |
45024 | test -z "$ac_c_werror_flag" || | |
45025 | test ! -s conftest.err | |
d589327a VZ |
45026 | } && test -s conftest$ac_exeext && |
45027 | $as_test_x conftest$ac_exeext; then | |
39b61aa3 VZ |
45028 | eval "$as_ac_var=yes" |
45029 | else | |
d589327a | 45030 | echo "$as_me: failed program was:" >&5 |
39b61aa3 VZ |
45031 | sed 's/^/| /' conftest.$ac_ext >&5 |
45032 | ||
47964710 | 45033 | eval "$as_ac_var=no" |
39b61aa3 | 45034 | fi |
47964710 VS |
45035 | |
45036 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
39b61aa3 VZ |
45037 | conftest$ac_exeext conftest.$ac_ext |
45038 | fi | |
d589327a VZ |
45039 | ac_res=`eval echo '${'$as_ac_var'}'` |
45040 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
45041 | echo "${ECHO_T}$ac_res" >&6; } | |
45042 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
39b61aa3 | 45043 | cat >>confdefs.h <<_ACEOF |
d589327a | 45044 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
39b61aa3 VZ |
45045 | _ACEOF |
45046 | ||
45047 | fi | |
45048 | done | |
45049 | ||
45050 | ||
45051 | if test "$ac_cv_func_localtime" = "yes"; then | |
d589327a VZ |
45052 | { echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5 |
45053 | echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6; } | |
39b61aa3 | 45054 | if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then |
d589327a | 45055 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
39b61aa3 VZ |
45056 | else |
45057 | ||
45058 | cat >conftest.$ac_ext <<_ACEOF | |
45059 | /* confdefs.h. */ | |
45060 | _ACEOF | |
45061 | cat confdefs.h >>conftest.$ac_ext | |
45062 | cat >>conftest.$ac_ext <<_ACEOF | |
45063 | /* end confdefs.h. */ | |
45064 | ||
45065 | #include <time.h> | |
45066 | ||
45067 | int | |
45068 | main () | |
45069 | { | |
45070 | ||
45071 | struct tm tm; | |
45072 | tm.tm_gmtoff++; | |
45073 | ||
45074 | ; | |
45075 | return 0; | |
45076 | } | |
45077 | _ACEOF | |
45078 | rm -f conftest.$ac_objext | |
47964710 VS |
45079 | if { (ac_try="$ac_compile" |
45080 | case "(($ac_try" in | |
45081 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
45082 | *) ac_try_echo=$ac_try;; | |
45083 | esac | |
d589327a | 45084 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 45085 | (eval "$ac_compile") 2>conftest.er1 |
ac1cb8d3 | 45086 | ac_status=$? |
39b61aa3 VZ |
45087 | grep -v '^ *+' conftest.er1 >conftest.err |
45088 | rm -f conftest.er1 | |
45089 | cat conftest.err >&5 | |
d589327a | 45090 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
45091 | (exit $ac_status); } && { |
45092 | test -z "$ac_c_werror_flag" || | |
45093 | test ! -s conftest.err | |
45094 | } && test -s conftest.$ac_objext; then | |
39b61aa3 VZ |
45095 | |
45096 | wx_cv_struct_tm_has_gmtoff=yes | |
45097 | ||
45098 | else | |
d589327a | 45099 | echo "$as_me: failed program was:" >&5 |
39b61aa3 VZ |
45100 | sed 's/^/| /' conftest.$ac_ext >&5 |
45101 | ||
47964710 | 45102 | wx_cv_struct_tm_has_gmtoff=no |
39b61aa3 VZ |
45103 | |
45104 | fi | |
47964710 VS |
45105 | |
45106 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
39b61aa3 VZ |
45107 | |
45108 | fi | |
d589327a VZ |
45109 | { echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5 |
45110 | echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6; } | |
39b61aa3 VZ |
45111 | fi |
45112 | ||
45113 | if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then | |
45114 | cat >>confdefs.h <<\_ACEOF | |
45115 | #define WX_GMTOFF_IN_TM 1 | |
45116 | _ACEOF | |
45117 | ||
45118 | fi | |
45119 | ||
a848cd7e SC |
45120 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest" |
45121 | fi | |
45122 | ||
45123 | ||
45124 | if test "$wxUSE_SOCKETS" = "yes"; then | |
6517fa86 | 45125 | if test "$wxUSE_MGL" = 1; then |
d589327a VZ |
45126 | { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5 |
45127 | echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;} | |
a848cd7e SC |
45128 | wxUSE_SOCKETS="no" |
45129 | fi | |
45130 | fi | |
45131 | ||
45132 | if test "$wxUSE_SOCKETS" = "yes"; then | |
45133 | if test "$TOOLKIT" != "MSW"; then | |
d589327a VZ |
45134 | { echo "$as_me:$LINENO: checking for socket" >&5 |
45135 | echo $ECHO_N "checking for socket... $ECHO_C" >&6; } | |
a848cd7e | 45136 | if test "${ac_cv_func_socket+set}" = set; then |
d589327a | 45137 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a848cd7e SC |
45138 | else |
45139 | cat >conftest.$ac_ext <<_ACEOF | |
45140 | /* confdefs.h. */ | |
45141 | _ACEOF | |
45142 | cat confdefs.h >>conftest.$ac_ext | |
45143 | cat >>conftest.$ac_ext <<_ACEOF | |
45144 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
45145 | /* Define socket to an innocuous variant, in case <limits.h> declares socket. |
45146 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
45147 | #define socket innocuous_socket | |
45148 | ||
a848cd7e SC |
45149 | /* System header to define __stub macros and hopefully few prototypes, |
45150 | which can conflict with char socket (); below. | |
45151 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
45152 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 45153 | |
a848cd7e SC |
45154 | #ifdef __STDC__ |
45155 | # include <limits.h> | |
45156 | #else | |
45157 | # include <assert.h> | |
45158 | #endif | |
ac1cb8d3 VS |
45159 | |
45160 | #undef socket | |
45161 | ||
47964710 VS |
45162 | /* Override any GCC internal prototype to avoid an error. |
45163 | Use char because int might match the return type of a GCC | |
45164 | builtin and then its argument prototype would still apply. */ | |
a848cd7e SC |
45165 | #ifdef __cplusplus |
45166 | extern "C" | |
a848cd7e | 45167 | #endif |
a848cd7e SC |
45168 | char socket (); |
45169 | /* The GNU C library defines this for functions which it implements | |
45170 | to always fail with ENOSYS. Some functions are actually named | |
45171 | something starting with __ and the normal name is an alias. */ | |
47964710 | 45172 | #if defined __stub_socket || defined __stub___socket |
a848cd7e | 45173 | choke me |
a848cd7e SC |
45174 | #endif |
45175 | ||
45176 | int | |
45177 | main () | |
45178 | { | |
47964710 | 45179 | return socket (); |
a848cd7e SC |
45180 | ; |
45181 | return 0; | |
45182 | } | |
45183 | _ACEOF | |
45184 | rm -f conftest.$ac_objext conftest$ac_exeext | |
47964710 VS |
45185 | if { (ac_try="$ac_link" |
45186 | case "(($ac_try" in | |
45187 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
45188 | *) ac_try_echo=$ac_try;; | |
45189 | esac | |
d589327a | 45190 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 45191 | (eval "$ac_link") 2>conftest.er1 |
a848cd7e | 45192 | ac_status=$? |
ac1cb8d3 VS |
45193 | grep -v '^ *+' conftest.er1 >conftest.err |
45194 | rm -f conftest.er1 | |
45195 | cat conftest.err >&5 | |
d589327a | 45196 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
45197 | (exit $ac_status); } && { |
45198 | test -z "$ac_c_werror_flag" || | |
45199 | test ! -s conftest.err | |
d589327a VZ |
45200 | } && test -s conftest$ac_exeext && |
45201 | $as_test_x conftest$ac_exeext; then | |
a848cd7e SC |
45202 | ac_cv_func_socket=yes |
45203 | else | |
d589327a | 45204 | echo "$as_me: failed program was:" >&5 |
a848cd7e SC |
45205 | sed 's/^/| /' conftest.$ac_ext >&5 |
45206 | ||
47964710 | 45207 | ac_cv_func_socket=no |
a848cd7e | 45208 | fi |
47964710 VS |
45209 | |
45210 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
ac1cb8d3 | 45211 | conftest$ac_exeext conftest.$ac_ext |
a848cd7e | 45212 | fi |
d589327a VZ |
45213 | { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5 |
45214 | echo "${ECHO_T}$ac_cv_func_socket" >&6; } | |
45215 | if test $ac_cv_func_socket = yes; then | |
a848cd7e SC |
45216 | : |
45217 | else | |
45218 | ||
d589327a VZ |
45219 | { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5 |
45220 | echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; } | |
a848cd7e | 45221 | if test "${ac_cv_lib_socket_socket+set}" = set; then |
d589327a | 45222 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a848cd7e SC |
45223 | else |
45224 | ac_check_lib_save_LIBS=$LIBS | |
45225 | LIBS="-lsocket $LIBS" | |
45226 | cat >conftest.$ac_ext <<_ACEOF | |
45227 | /* confdefs.h. */ | |
45228 | _ACEOF | |
45229 | cat confdefs.h >>conftest.$ac_ext | |
45230 | cat >>conftest.$ac_ext <<_ACEOF | |
45231 | /* end confdefs.h. */ | |
45232 | ||
47964710 VS |
45233 | /* Override any GCC internal prototype to avoid an error. |
45234 | Use char because int might match the return type of a GCC | |
45235 | builtin and then its argument prototype would still apply. */ | |
a848cd7e SC |
45236 | #ifdef __cplusplus |
45237 | extern "C" | |
45238 | #endif | |
a848cd7e SC |
45239 | char socket (); |
45240 | int | |
45241 | main () | |
45242 | { | |
47964710 | 45243 | return socket (); |
a848cd7e SC |
45244 | ; |
45245 | return 0; | |
45246 | } | |
45247 | _ACEOF | |
45248 | rm -f conftest.$ac_objext conftest$ac_exeext | |
47964710 VS |
45249 | if { (ac_try="$ac_link" |
45250 | case "(($ac_try" in | |
45251 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
45252 | *) ac_try_echo=$ac_try;; | |
45253 | esac | |
d589327a | 45254 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 45255 | (eval "$ac_link") 2>conftest.er1 |
a848cd7e | 45256 | ac_status=$? |
ac1cb8d3 VS |
45257 | grep -v '^ *+' conftest.er1 >conftest.err |
45258 | rm -f conftest.er1 | |
45259 | cat conftest.err >&5 | |
d589327a | 45260 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
45261 | (exit $ac_status); } && { |
45262 | test -z "$ac_c_werror_flag" || | |
45263 | test ! -s conftest.err | |
d589327a VZ |
45264 | } && test -s conftest$ac_exeext && |
45265 | $as_test_x conftest$ac_exeext; then | |
a848cd7e SC |
45266 | ac_cv_lib_socket_socket=yes |
45267 | else | |
d589327a | 45268 | echo "$as_me: failed program was:" >&5 |
a848cd7e SC |
45269 | sed 's/^/| /' conftest.$ac_ext >&5 |
45270 | ||
47964710 | 45271 | ac_cv_lib_socket_socket=no |
a848cd7e | 45272 | fi |
47964710 VS |
45273 | |
45274 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
ac1cb8d3 | 45275 | conftest$ac_exeext conftest.$ac_ext |
a848cd7e SC |
45276 | LIBS=$ac_check_lib_save_LIBS |
45277 | fi | |
d589327a VZ |
45278 | { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5 |
45279 | echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; } | |
45280 | if test $ac_cv_lib_socket_socket = yes; then | |
a848cd7e SC |
45281 | if test "$INET_LINK" != " -lsocket"; then |
45282 | INET_LINK="$INET_LINK -lsocket" | |
45283 | fi | |
45284 | else | |
45285 | ||
d589327a VZ |
45286 | { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5 |
45287 | echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;} | |
a848cd7e SC |
45288 | wxUSE_SOCKETS=no |
45289 | ||
45290 | ||
45291 | fi | |
45292 | ||
45293 | ||
45294 | ||
45295 | fi | |
45296 | ||
45297 | fi | |
45298 | fi | |
45299 | ||
45300 | if test "$wxUSE_SOCKETS" = "yes" ; then | |
45301 | if test "$TOOLKIT" != "MSW"; then | |
d589327a VZ |
45302 | { echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5 |
45303 | echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6; } | |
a848cd7e | 45304 | if test "${wx_cv_type_getsockname3+set}" = set; then |
d589327a | 45305 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a848cd7e SC |
45306 | else |
45307 | ||
47964710 | 45308 | ac_ext=cpp |
9b8888f9 VZ |
45309 | ac_cpp='$CXXCPP $CPPFLAGS' |
45310 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
45311 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
45312 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
45313 | ||
a848cd7e SC |
45314 | cat >conftest.$ac_ext <<_ACEOF |
45315 | /* confdefs.h. */ | |
45316 | _ACEOF | |
45317 | cat confdefs.h >>conftest.$ac_ext | |
45318 | cat >>conftest.$ac_ext <<_ACEOF | |
45319 | /* end confdefs.h. */ | |
45320 | ||
45321 | #include <sys/types.h> | |
45322 | #include <sys/socket.h> | |
45323 | ||
45324 | int | |
45325 | main () | |
45326 | { | |
45327 | ||
45328 | socklen_t len; | |
45329 | getsockname(0, 0, &len); | |
45330 | ||
45331 | ; | |
45332 | return 0; | |
45333 | } | |
45334 | _ACEOF | |
45335 | rm -f conftest.$ac_objext | |
47964710 VS |
45336 | if { (ac_try="$ac_compile" |
45337 | case "(($ac_try" in | |
45338 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
45339 | *) ac_try_echo=$ac_try;; | |
45340 | esac | |
d589327a | 45341 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 45342 | (eval "$ac_compile") 2>conftest.er1 |
a848cd7e | 45343 | ac_status=$? |
ac1cb8d3 VS |
45344 | grep -v '^ *+' conftest.er1 >conftest.err |
45345 | rm -f conftest.er1 | |
45346 | cat conftest.err >&5 | |
d589327a | 45347 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
45348 | (exit $ac_status); } && { |
45349 | test -z "$ac_cxx_werror_flag" || | |
45350 | test ! -s conftest.err | |
45351 | } && test -s conftest.$ac_objext; then | |
a848cd7e SC |
45352 | wx_cv_type_getsockname3=socklen_t |
45353 | else | |
d589327a | 45354 | echo "$as_me: failed program was:" >&5 |
a848cd7e SC |
45355 | sed 's/^/| /' conftest.$ac_ext >&5 |
45356 | ||
45357 | ||
9b8888f9 | 45358 | CFLAGS_OLD="$CFLAGS" |
a848cd7e | 45359 | if test "$GCC" = yes ; then |
9b8888f9 | 45360 | CFLAGS="-Werror $CFLAGS" |
a848cd7e SC |
45361 | fi |
45362 | ||
45363 | cat >conftest.$ac_ext <<_ACEOF | |
45364 | /* confdefs.h. */ | |
45365 | _ACEOF | |
45366 | cat confdefs.h >>conftest.$ac_ext | |
45367 | cat >>conftest.$ac_ext <<_ACEOF | |
45368 | /* end confdefs.h. */ | |
45369 | ||
45370 | #include <sys/types.h> | |
45371 | #include <sys/socket.h> | |
45372 | ||
45373 | int | |
45374 | main () | |
45375 | { | |
45376 | ||
45377 | size_t len; | |
45378 | getsockname(0, 0, &len); | |
45379 | ||
45380 | ; | |
45381 | return 0; | |
45382 | } | |
45383 | _ACEOF | |
45384 | rm -f conftest.$ac_objext | |
47964710 VS |
45385 | if { (ac_try="$ac_compile" |
45386 | case "(($ac_try" in | |
45387 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
45388 | *) ac_try_echo=$ac_try;; | |
45389 | esac | |
d589327a | 45390 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 45391 | (eval "$ac_compile") 2>conftest.er1 |
a848cd7e | 45392 | ac_status=$? |
ac1cb8d3 VS |
45393 | grep -v '^ *+' conftest.er1 >conftest.err |
45394 | rm -f conftest.er1 | |
45395 | cat conftest.err >&5 | |
d589327a | 45396 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
45397 | (exit $ac_status); } && { |
45398 | test -z "$ac_cxx_werror_flag" || | |
45399 | test ! -s conftest.err | |
45400 | } && test -s conftest.$ac_objext; then | |
a848cd7e SC |
45401 | wx_cv_type_getsockname3=size_t |
45402 | else | |
d589327a | 45403 | echo "$as_me: failed program was:" >&5 |
a848cd7e SC |
45404 | sed 's/^/| /' conftest.$ac_ext >&5 |
45405 | ||
47964710 | 45406 | cat >conftest.$ac_ext <<_ACEOF |
a848cd7e SC |
45407 | /* confdefs.h. */ |
45408 | _ACEOF | |
45409 | cat confdefs.h >>conftest.$ac_ext | |
45410 | cat >>conftest.$ac_ext <<_ACEOF | |
45411 | /* end confdefs.h. */ | |
45412 | ||
45413 | #include <sys/types.h> | |
45414 | #include <sys/socket.h> | |
45415 | ||
45416 | int | |
45417 | main () | |
45418 | { | |
45419 | ||
45420 | int len; | |
45421 | getsockname(0, 0, &len); | |
45422 | ||
45423 | ; | |
45424 | return 0; | |
45425 | } | |
45426 | _ACEOF | |
45427 | rm -f conftest.$ac_objext | |
47964710 VS |
45428 | if { (ac_try="$ac_compile" |
45429 | case "(($ac_try" in | |
45430 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
45431 | *) ac_try_echo=$ac_try;; | |
45432 | esac | |
d589327a | 45433 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 45434 | (eval "$ac_compile") 2>conftest.er1 |
a848cd7e | 45435 | ac_status=$? |
ac1cb8d3 VS |
45436 | grep -v '^ *+' conftest.er1 >conftest.err |
45437 | rm -f conftest.er1 | |
45438 | cat conftest.err >&5 | |
d589327a | 45439 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
45440 | (exit $ac_status); } && { |
45441 | test -z "$ac_cxx_werror_flag" || | |
45442 | test ! -s conftest.err | |
45443 | } && test -s conftest.$ac_objext; then | |
a848cd7e SC |
45444 | wx_cv_type_getsockname3=int |
45445 | else | |
d589327a | 45446 | echo "$as_me: failed program was:" >&5 |
a848cd7e SC |
45447 | sed 's/^/| /' conftest.$ac_ext >&5 |
45448 | ||
47964710 | 45449 | wx_cv_type_getsockname3=unknown |
a848cd7e SC |
45450 | |
45451 | fi | |
47964710 VS |
45452 | |
45453 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
a848cd7e SC |
45454 | |
45455 | fi | |
47964710 VS |
45456 | |
45457 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
a848cd7e | 45458 | |
9b8888f9 | 45459 | CFLAGS="$CFLAGS_OLD" |
a848cd7e SC |
45460 | |
45461 | ||
45462 | fi | |
47964710 VS |
45463 | |
45464 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
9b8888f9 VZ |
45465 | ac_ext=c |
45466 | ac_cpp='$CPP $CPPFLAGS' | |
45467 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
45468 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
45469 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
45470 | ||
a848cd7e SC |
45471 | |
45472 | fi | |
d589327a VZ |
45473 | { echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5 |
45474 | echo "${ECHO_T}$wx_cv_type_getsockname3" >&6; } | |
a848cd7e SC |
45475 | |
45476 | if test "$wx_cv_type_getsockname3" = "unknown"; then | |
45477 | wxUSE_SOCKETS=no | |
d589327a VZ |
45478 | { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5 |
45479 | echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;} | |
a848cd7e SC |
45480 | else |
45481 | cat >>confdefs.h <<_ACEOF | |
9e03e02d | 45482 | #define WX_SOCKLEN_T $wx_cv_type_getsockname3 |
5b674b9d DE |
45483 | _ACEOF |
45484 | ||
45485 | fi | |
d589327a VZ |
45486 | { echo "$as_me:$LINENO: checking what is the type of the fifth argument of getsockopt" >&5 |
45487 | echo $ECHO_N "checking what is the type of the fifth argument of getsockopt... $ECHO_C" >&6; } | |
5b674b9d | 45488 | if test "${wx_cv_type_getsockopt5+set}" = set; then |
d589327a | 45489 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5b674b9d DE |
45490 | else |
45491 | ||
47964710 | 45492 | ac_ext=cpp |
ebe1d157 VZ |
45493 | ac_cpp='$CXXCPP $CPPFLAGS' |
45494 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
45495 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
45496 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
45497 | ||
5b674b9d DE |
45498 | cat >conftest.$ac_ext <<_ACEOF |
45499 | /* confdefs.h. */ | |
45500 | _ACEOF | |
45501 | cat confdefs.h >>conftest.$ac_ext | |
45502 | cat >>conftest.$ac_ext <<_ACEOF | |
45503 | /* end confdefs.h. */ | |
45504 | ||
45505 | #include <sys/types.h> | |
45506 | #include <sys/socket.h> | |
45507 | ||
45508 | int | |
45509 | main () | |
45510 | { | |
45511 | ||
45512 | socklen_t len; | |
45513 | getsockopt(0, 0, 0, 0, &len); | |
45514 | ||
45515 | ; | |
45516 | return 0; | |
45517 | } | |
45518 | _ACEOF | |
45519 | rm -f conftest.$ac_objext | |
47964710 VS |
45520 | if { (ac_try="$ac_compile" |
45521 | case "(($ac_try" in | |
45522 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
45523 | *) ac_try_echo=$ac_try;; | |
45524 | esac | |
d589327a | 45525 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 45526 | (eval "$ac_compile") 2>conftest.er1 |
5b674b9d DE |
45527 | ac_status=$? |
45528 | grep -v '^ *+' conftest.er1 >conftest.err | |
45529 | rm -f conftest.er1 | |
45530 | cat conftest.err >&5 | |
d589327a | 45531 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
45532 | (exit $ac_status); } && { |
45533 | test -z "$ac_cxx_werror_flag" || | |
45534 | test ! -s conftest.err | |
45535 | } && test -s conftest.$ac_objext; then | |
5b674b9d DE |
45536 | wx_cv_type_getsockopt5=socklen_t |
45537 | else | |
d589327a | 45538 | echo "$as_me: failed program was:" >&5 |
5b674b9d DE |
45539 | sed 's/^/| /' conftest.$ac_ext >&5 |
45540 | ||
45541 | ||
5b674b9d DE |
45542 | cat >conftest.$ac_ext <<_ACEOF |
45543 | /* confdefs.h. */ | |
45544 | _ACEOF | |
45545 | cat confdefs.h >>conftest.$ac_ext | |
45546 | cat >>conftest.$ac_ext <<_ACEOF | |
45547 | /* end confdefs.h. */ | |
45548 | ||
45549 | #include <sys/types.h> | |
45550 | #include <sys/socket.h> | |
45551 | ||
45552 | int | |
45553 | main () | |
45554 | { | |
45555 | ||
45556 | size_t len; | |
45557 | getsockopt(0, 0, 0, 0, &len); | |
45558 | ||
45559 | ; | |
45560 | return 0; | |
45561 | } | |
45562 | _ACEOF | |
45563 | rm -f conftest.$ac_objext | |
47964710 VS |
45564 | if { (ac_try="$ac_compile" |
45565 | case "(($ac_try" in | |
45566 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
45567 | *) ac_try_echo=$ac_try;; | |
45568 | esac | |
d589327a | 45569 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 45570 | (eval "$ac_compile") 2>conftest.er1 |
5b674b9d DE |
45571 | ac_status=$? |
45572 | grep -v '^ *+' conftest.er1 >conftest.err | |
45573 | rm -f conftest.er1 | |
45574 | cat conftest.err >&5 | |
d589327a | 45575 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
45576 | (exit $ac_status); } && { |
45577 | test -z "$ac_cxx_werror_flag" || | |
45578 | test ! -s conftest.err | |
45579 | } && test -s conftest.$ac_objext; then | |
5b674b9d DE |
45580 | wx_cv_type_getsockopt5=size_t |
45581 | else | |
d589327a | 45582 | echo "$as_me: failed program was:" >&5 |
5b674b9d DE |
45583 | sed 's/^/| /' conftest.$ac_ext >&5 |
45584 | ||
47964710 | 45585 | cat >conftest.$ac_ext <<_ACEOF |
5b674b9d DE |
45586 | /* confdefs.h. */ |
45587 | _ACEOF | |
45588 | cat confdefs.h >>conftest.$ac_ext | |
45589 | cat >>conftest.$ac_ext <<_ACEOF | |
45590 | /* end confdefs.h. */ | |
45591 | ||
45592 | #include <sys/types.h> | |
45593 | #include <sys/socket.h> | |
45594 | ||
45595 | int | |
45596 | main () | |
45597 | { | |
45598 | ||
45599 | int len; | |
45600 | getsockopt(0, 0, 0, 0, &len); | |
45601 | ||
45602 | ; | |
45603 | return 0; | |
45604 | } | |
45605 | _ACEOF | |
45606 | rm -f conftest.$ac_objext | |
47964710 VS |
45607 | if { (ac_try="$ac_compile" |
45608 | case "(($ac_try" in | |
45609 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
45610 | *) ac_try_echo=$ac_try;; | |
45611 | esac | |
d589327a | 45612 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 45613 | (eval "$ac_compile") 2>conftest.er1 |
5b674b9d DE |
45614 | ac_status=$? |
45615 | grep -v '^ *+' conftest.er1 >conftest.err | |
45616 | rm -f conftest.er1 | |
45617 | cat conftest.err >&5 | |
d589327a | 45618 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
45619 | (exit $ac_status); } && { |
45620 | test -z "$ac_cxx_werror_flag" || | |
45621 | test ! -s conftest.err | |
45622 | } && test -s conftest.$ac_objext; then | |
5b674b9d DE |
45623 | wx_cv_type_getsockopt5=int |
45624 | else | |
d589327a | 45625 | echo "$as_me: failed program was:" >&5 |
5b674b9d DE |
45626 | sed 's/^/| /' conftest.$ac_ext >&5 |
45627 | ||
47964710 | 45628 | wx_cv_type_getsockopt5=unknown |
5b674b9d DE |
45629 | |
45630 | fi | |
47964710 VS |
45631 | |
45632 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5b674b9d DE |
45633 | |
45634 | fi | |
47964710 VS |
45635 | |
45636 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5b674b9d DE |
45637 | |
45638 | ||
45639 | fi | |
47964710 VS |
45640 | |
45641 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ebe1d157 VZ |
45642 | ac_ext=c |
45643 | ac_cpp='$CPP $CPPFLAGS' | |
45644 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
45645 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
45646 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
45647 | ||
5b674b9d DE |
45648 | |
45649 | fi | |
d589327a VZ |
45650 | { echo "$as_me:$LINENO: result: $wx_cv_type_getsockopt5" >&5 |
45651 | echo "${ECHO_T}$wx_cv_type_getsockopt5" >&6; } | |
5b674b9d DE |
45652 | |
45653 | if test "$wx_cv_type_getsockopt5" = "unknown"; then | |
45654 | wxUSE_SOCKETS=no | |
d589327a VZ |
45655 | { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5 |
45656 | echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;} | |
5b674b9d DE |
45657 | else |
45658 | cat >>confdefs.h <<_ACEOF | |
45659 | #define SOCKOPTLEN_T $wx_cv_type_getsockopt5 | |
a848cd7e SC |
45660 | _ACEOF |
45661 | ||
45662 | fi | |
45663 | fi | |
45664 | fi | |
45665 | ||
45666 | if test "$wxUSE_SOCKETS" = "yes" ; then | |
8575ff50 | 45667 | if test "$wxUSE_IPV6" = "yes"; then |
d589327a VZ |
45668 | { echo "$as_me:$LINENO: checking whether we have sockaddr_in6" >&5 |
45669 | echo $ECHO_N "checking whether we have sockaddr_in6... $ECHO_C" >&6; } | |
8575ff50 | 45670 | if test "${wx_cv_type_sockaddr_in6+set}" = set; then |
d589327a | 45671 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8575ff50 VZ |
45672 | else |
45673 | ||
45674 | cat >conftest.$ac_ext <<_ACEOF | |
45675 | /* confdefs.h. */ | |
45676 | _ACEOF | |
45677 | cat confdefs.h >>conftest.$ac_ext | |
45678 | cat >>conftest.$ac_ext <<_ACEOF | |
45679 | /* end confdefs.h. */ | |
45680 | ||
45681 | #include <sys/types.h> | |
45682 | #include <sys/socket.h> | |
45683 | #include <netinet/in.h> | |
45684 | ||
45685 | int | |
45686 | main () | |
45687 | { | |
45688 | ||
45689 | struct sockaddr_in6 sa6; | |
45690 | ||
45691 | ; | |
45692 | return 0; | |
45693 | } | |
45694 | _ACEOF | |
45695 | rm -f conftest.$ac_objext | |
45696 | if { (ac_try="$ac_compile" | |
45697 | case "(($ac_try" in | |
45698 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
45699 | *) ac_try_echo=$ac_try;; | |
45700 | esac | |
d589327a | 45701 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
8575ff50 VZ |
45702 | (eval "$ac_compile") 2>conftest.er1 |
45703 | ac_status=$? | |
45704 | grep -v '^ *+' conftest.er1 >conftest.err | |
45705 | rm -f conftest.er1 | |
45706 | cat conftest.err >&5 | |
d589327a | 45707 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8575ff50 VZ |
45708 | (exit $ac_status); } && { |
45709 | test -z "$ac_c_werror_flag" || | |
45710 | test ! -s conftest.err | |
45711 | } && test -s conftest.$ac_objext; then | |
45712 | wx_cv_type_sockaddr_in6=yes | |
45713 | else | |
d589327a | 45714 | echo "$as_me: failed program was:" >&5 |
8575ff50 VZ |
45715 | sed 's/^/| /' conftest.$ac_ext >&5 |
45716 | ||
45717 | wx_cv_type_sockaddr_in6=no | |
45718 | ||
45719 | fi | |
45720 | ||
45721 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
45722 | ||
45723 | ||
45724 | fi | |
d589327a VZ |
45725 | { echo "$as_me:$LINENO: result: $wx_cv_type_sockaddr_in6" >&5 |
45726 | echo "${ECHO_T}$wx_cv_type_sockaddr_in6" >&6; } | |
8575ff50 VZ |
45727 | |
45728 | if test "$wx_cv_type_sockaddr_in6"="yes"; then | |
45729 | cat >>confdefs.h <<\_ACEOF | |
45730 | #define wxUSE_IPV6 1 | |
45731 | _ACEOF | |
45732 | ||
45733 | else | |
d589327a VZ |
45734 | { echo "$as_me:$LINENO: WARNING: IPv6 support not available... disabled" >&5 |
45735 | echo "$as_me: WARNING: IPv6 support not available... disabled" >&2;} | |
8575ff50 VZ |
45736 | fi |
45737 | fi | |
45738 | ||
a848cd7e SC |
45739 | cat >>confdefs.h <<\_ACEOF |
45740 | #define wxUSE_SOCKETS 1 | |
45741 | _ACEOF | |
45742 | ||
45743 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets" | |
45744 | fi | |
45745 | ||
45746 | if test "$wxUSE_PROTOCOL" = "yes"; then | |
45747 | if test "$wxUSE_SOCKETS" != "yes"; then | |
d589327a VZ |
45748 | { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5 |
45749 | echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;} | |
a848cd7e SC |
45750 | wxUSE_PROTOCOL=no |
45751 | fi | |
45752 | fi | |
45753 | ||
45754 | if test "$wxUSE_PROTOCOL" = "yes"; then | |
45755 | cat >>confdefs.h <<\_ACEOF | |
45756 | #define wxUSE_PROTOCOL 1 | |
45757 | _ACEOF | |
45758 | ||
45759 | ||
45760 | if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then | |
45761 | cat >>confdefs.h <<\_ACEOF | |
45762 | #define wxUSE_PROTOCOL_HTTP 1 | |
45763 | _ACEOF | |
45764 | ||
45765 | fi | |
45766 | if test "$wxUSE_PROTOCOL_FTP" = "yes"; then | |
45767 | cat >>confdefs.h <<\_ACEOF | |
45768 | #define wxUSE_PROTOCOL_FTP 1 | |
45769 | _ACEOF | |
45770 | ||
45771 | fi | |
45772 | if test "$wxUSE_PROTOCOL_FILE" = "yes"; then | |
45773 | cat >>confdefs.h <<\_ACEOF | |
45774 | #define wxUSE_PROTOCOL_FILE 1 | |
45775 | _ACEOF | |
45776 | ||
45777 | fi | |
45778 | else | |
45779 | if test "$wxUSE_FS_INET" = "yes"; then | |
d589327a VZ |
45780 | { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5 |
45781 | echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;} | |
a848cd7e SC |
45782 | wxUSE_FS_INET="no" |
45783 | fi | |
45784 | fi | |
45785 | ||
45786 | if test "$wxUSE_URL" = "yes"; then | |
45787 | if test "$wxUSE_PROTOCOL" != "yes"; then | |
d589327a VZ |
45788 | { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5 |
45789 | echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;} | |
a848cd7e SC |
45790 | wxUSE_URL=no |
45791 | fi | |
45792 | if test "$wxUSE_URL" = "yes"; then | |
45793 | cat >>confdefs.h <<\_ACEOF | |
45794 | #define wxUSE_URL 1 | |
45795 | _ACEOF | |
45796 | ||
45797 | fi | |
45798 | fi | |
45799 | ||
ca5c6ac3 VZ |
45800 | if test "$wxUSE_VARIANT" = "yes"; then |
45801 | cat >>confdefs.h <<\_ACEOF | |
45802 | #define wxUSE_VARIANT 1 | |
45803 | _ACEOF | |
45804 | ||
45805 | fi | |
45806 | ||
a848cd7e SC |
45807 | if test "$wxUSE_FS_INET" = "yes"; then |
45808 | cat >>confdefs.h <<\_ACEOF | |
45809 | #define wxUSE_FS_INET 1 | |
45810 | _ACEOF | |
45811 | ||
45812 | fi | |
45813 | ||
45814 | ||
ee45c548 MW |
45815 | if test "$wxUSE_GUI" = "yes" -a "$wxUSE_JOYSTICK" = "yes"; then |
45816 | wxUSE_JOYSTICK=no | |
45817 | ||
45818 | if test "$TOOLKIT" = "MSW"; then | |
45819 | wxUSE_JOYSTICK=yes | |
45820 | ||
2ea057f9 | 45821 | elif test "$TOOLKIT" = "OSX" -o "$TOOLKIT" = "COCOA"; then |
ee45c548 | 45822 | if test "$USE_DARWIN" = 1; then |
d589327a VZ |
45823 | { echo "$as_me:$LINENO: checking headers have declarations needed for joystick support" >&5 |
45824 | echo $ECHO_N "checking headers have declarations needed for joystick support... $ECHO_C" >&6; } | |
47964710 | 45825 | ac_ext=cpp |
9b8888f9 VZ |
45826 | ac_cpp='$CXXCPP $CPPFLAGS' |
45827 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
45828 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
45829 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
45830 | ||
ee45c548 MW |
45831 | cat >conftest.$ac_ext <<_ACEOF |
45832 | /* confdefs.h. */ | |
45833 | _ACEOF | |
45834 | cat confdefs.h >>conftest.$ac_ext | |
45835 | cat >>conftest.$ac_ext <<_ACEOF | |
45836 | /* end confdefs.h. */ | |
45837 | #include <IOKit/hid/IOHIDLib.h> | |
45838 | int | |
45839 | main () | |
45840 | { | |
45841 | IOHIDQueueInterface *qi = NULL; | |
45842 | IOHIDCallbackFunction cb = NULL; | |
45843 | qi->setEventCallout(NULL, cb, NULL, NULL); | |
45844 | ; | |
45845 | return 0; | |
45846 | } | |
45847 | _ACEOF | |
45848 | rm -f conftest.$ac_objext | |
47964710 VS |
45849 | if { (ac_try="$ac_compile" |
45850 | case "(($ac_try" in | |
45851 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
45852 | *) ac_try_echo=$ac_try;; | |
45853 | esac | |
d589327a | 45854 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 45855 | (eval "$ac_compile") 2>conftest.er1 |
ee45c548 MW |
45856 | ac_status=$? |
45857 | grep -v '^ *+' conftest.er1 >conftest.err | |
45858 | rm -f conftest.er1 | |
45859 | cat conftest.err >&5 | |
d589327a | 45860 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
45861 | (exit $ac_status); } && { |
45862 | test -z "$ac_cxx_werror_flag" || | |
45863 | test ! -s conftest.err | |
45864 | } && test -s conftest.$ac_objext; then | |
ee45c548 | 45865 | wxUSE_JOYSTICK=yes |
a848cd7e | 45866 | |
ee45c548 | 45867 | else |
d589327a | 45868 | echo "$as_me: failed program was:" >&5 |
ee45c548 MW |
45869 | sed 's/^/| /' conftest.$ac_ext >&5 |
45870 | ||
47964710 | 45871 | |
ee45c548 | 45872 | fi |
47964710 VS |
45873 | |
45874 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
9b8888f9 VZ |
45875 | ac_ext=c |
45876 | ac_cpp='$CPP $CPPFLAGS' | |
45877 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
45878 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
45879 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
45880 | ||
d589327a VZ |
45881 | { echo "$as_me:$LINENO: result: $wxUSE_JOYSTICK" >&5 |
45882 | echo "${ECHO_T}$wxUSE_JOYSTICK" >&6; } | |
ee45c548 MW |
45883 | fi |
45884 | ||
45885 | else | |
6517fa86 | 45886 | if test "$wxUSE_MGL" != 1; then |
1f7e12cc DE |
45887 | |
45888 | for ac_header in linux/joystick.h | |
45889 | do | |
d589327a VZ |
45890 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
45891 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
45892 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
47964710 | 45893 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
d589327a | 45894 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a848cd7e | 45895 | else |
ddbd3cd5 | 45896 | cat >conftest.$ac_ext <<_ACEOF |
a848cd7e SC |
45897 | /* confdefs.h. */ |
45898 | _ACEOF | |
45899 | cat confdefs.h >>conftest.$ac_ext | |
45900 | cat >>conftest.$ac_ext <<_ACEOF | |
45901 | /* end confdefs.h. */ | |
6e7b8bcb | 45902 | $ac_includes_default |
ddbd3cd5 | 45903 | |
1f7e12cc | 45904 | #include <$ac_header> |
a848cd7e SC |
45905 | _ACEOF |
45906 | rm -f conftest.$ac_objext | |
47964710 VS |
45907 | if { (ac_try="$ac_compile" |
45908 | case "(($ac_try" in | |
45909 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
45910 | *) ac_try_echo=$ac_try;; | |
45911 | esac | |
d589327a | 45912 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 45913 | (eval "$ac_compile") 2>conftest.er1 |
a848cd7e | 45914 | ac_status=$? |
ac1cb8d3 VS |
45915 | grep -v '^ *+' conftest.er1 >conftest.err |
45916 | rm -f conftest.er1 | |
45917 | cat conftest.err >&5 | |
d589327a | 45918 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
45919 | (exit $ac_status); } && { |
45920 | test -z "$ac_c_werror_flag" || | |
45921 | test ! -s conftest.err | |
45922 | } && test -s conftest.$ac_objext; then | |
1f7e12cc | 45923 | eval "$as_ac_Header=yes" |
a848cd7e | 45924 | else |
d589327a | 45925 | echo "$as_me: failed program was:" >&5 |
a848cd7e SC |
45926 | sed 's/^/| /' conftest.$ac_ext >&5 |
45927 | ||
47964710 | 45928 | eval "$as_ac_Header=no" |
a848cd7e | 45929 | fi |
47964710 VS |
45930 | |
45931 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
a848cd7e | 45932 | fi |
d589327a VZ |
45933 | ac_res=`eval echo '${'$as_ac_Header'}'` |
45934 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
45935 | echo "${ECHO_T}$ac_res" >&6; } | |
45936 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
1f7e12cc | 45937 | cat >>confdefs.h <<_ACEOF |
d589327a | 45938 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
1f7e12cc DE |
45939 | _ACEOF |
45940 | wxUSE_JOYSTICK=yes | |
a848cd7e | 45941 | fi |
a848cd7e | 45942 | |
1f7e12cc | 45943 | done |
a848cd7e | 45944 | |
b6814e24 | 45945 | fi |
ee45c548 | 45946 | fi |
4cb1d3da | 45947 | |
ee45c548 MW |
45948 | if test "$wxUSE_JOYSTICK" = "yes"; then |
45949 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
45950 | #define wxUSE_JOYSTICK 1 |
45951 | _ACEOF | |
45952 | ||
ee45c548 MW |
45953 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest" |
45954 | else | |
d589327a VZ |
45955 | { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5 |
45956 | echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;} | |
a848cd7e SC |
45957 | fi |
45958 | fi | |
45959 | ||
45960 | ||
45961 | ||
9795e0db VZ |
45962 | if test "$wxUSE_FONTENUM" = "yes" ; then |
45963 | cat >>confdefs.h <<\_ACEOF | |
45964 | #define wxUSE_FONTENUM 1 | |
45965 | _ACEOF | |
45966 | ||
45967 | fi | |
45968 | ||
a848cd7e SC |
45969 | if test "$wxUSE_FONTMAP" = "yes" ; then |
45970 | cat >>confdefs.h <<\_ACEOF | |
45971 | #define wxUSE_FONTMAP 1 | |
45972 | _ACEOF | |
45973 | ||
45974 | fi | |
45975 | ||
45976 | if test "$wxUSE_UNICODE" = "yes" ; then | |
45977 | cat >>confdefs.h <<\_ACEOF | |
45978 | #define wxUSE_UNICODE 1 | |
45979 | _ACEOF | |
45980 | ||
45981 | ||
45982 | if test "$USE_WIN32" != 1; then | |
45983 | wxUSE_UNICODE_MSLU=no | |
45984 | fi | |
45985 | ||
45986 | if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then | |
d589327a VZ |
45987 | { echo "$as_me:$LINENO: checking for main in -lunicows" >&5 |
45988 | echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6; } | |
a848cd7e | 45989 | if test "${ac_cv_lib_unicows_main+set}" = set; then |
d589327a | 45990 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a848cd7e SC |
45991 | else |
45992 | ac_check_lib_save_LIBS=$LIBS | |
45993 | LIBS="-lunicows $LIBS" | |
45994 | cat >conftest.$ac_ext <<_ACEOF | |
45995 | /* confdefs.h. */ | |
45996 | _ACEOF | |
45997 | cat confdefs.h >>conftest.$ac_ext | |
45998 | cat >>conftest.$ac_ext <<_ACEOF | |
45999 | /* end confdefs.h. */ | |
46000 | ||
46001 | ||
46002 | int | |
46003 | main () | |
46004 | { | |
47964710 | 46005 | return main (); |
a848cd7e SC |
46006 | ; |
46007 | return 0; | |
46008 | } | |
46009 | _ACEOF | |
46010 | rm -f conftest.$ac_objext conftest$ac_exeext | |
47964710 VS |
46011 | if { (ac_try="$ac_link" |
46012 | case "(($ac_try" in | |
46013 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
46014 | *) ac_try_echo=$ac_try;; | |
46015 | esac | |
d589327a | 46016 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 46017 | (eval "$ac_link") 2>conftest.er1 |
a848cd7e | 46018 | ac_status=$? |
ac1cb8d3 VS |
46019 | grep -v '^ *+' conftest.er1 >conftest.err |
46020 | rm -f conftest.er1 | |
46021 | cat conftest.err >&5 | |
d589327a | 46022 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
46023 | (exit $ac_status); } && { |
46024 | test -z "$ac_c_werror_flag" || | |
46025 | test ! -s conftest.err | |
d589327a VZ |
46026 | } && test -s conftest$ac_exeext && |
46027 | $as_test_x conftest$ac_exeext; then | |
a848cd7e SC |
46028 | ac_cv_lib_unicows_main=yes |
46029 | else | |
d589327a | 46030 | echo "$as_me: failed program was:" >&5 |
a848cd7e SC |
46031 | sed 's/^/| /' conftest.$ac_ext >&5 |
46032 | ||
47964710 | 46033 | ac_cv_lib_unicows_main=no |
a848cd7e | 46034 | fi |
47964710 VS |
46035 | |
46036 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
ac1cb8d3 | 46037 | conftest$ac_exeext conftest.$ac_ext |
a848cd7e SC |
46038 | LIBS=$ac_check_lib_save_LIBS |
46039 | fi | |
d589327a VZ |
46040 | { echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5 |
46041 | echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6; } | |
46042 | if test $ac_cv_lib_unicows_main = yes; then | |
a848cd7e SC |
46043 | |
46044 | cat >>confdefs.h <<\_ACEOF | |
46045 | #define wxUSE_UNICODE_MSLU 1 | |
46046 | _ACEOF | |
46047 | ||
46048 | ||
46049 | else | |
46050 | ||
d589327a | 46051 | { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled. |
a848cd7e | 46052 | Applications will only run on Windows NT/2000/XP!" >&5 |
d589327a | 46053 | echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled. |
a848cd7e SC |
46054 | Applications will only run on Windows NT/2000/XP!" >&2;} |
46055 | wxUSE_UNICODE_MSLU=no | |
46056 | ||
46057 | fi | |
46058 | ||
46059 | fi | |
46060 | fi | |
46061 | ||
81727065 VS |
46062 | if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_UTF8" = "yes"; then |
46063 | cat >>confdefs.h <<\_ACEOF | |
46064 | #define wxUSE_UNICODE_UTF8 1 | |
46065 | _ACEOF | |
46066 | ||
111d9948 VS |
46067 | |
46068 | if test "$wxUSE_UNICODE_UTF8_LOCALE" = "yes"; then | |
46069 | cat >>confdefs.h <<\_ACEOF | |
46070 | #define wxUSE_UTF8_LOCALE_ONLY 1 | |
46071 | _ACEOF | |
46072 | ||
46073 | fi | |
81727065 VS |
46074 | fi |
46075 | ||
a848cd7e | 46076 | |
a848cd7e SC |
46077 | if test "$wxUSE_CONSTRAINTS" = "yes"; then |
46078 | cat >>confdefs.h <<\_ACEOF | |
46079 | #define wxUSE_CONSTRAINTS 1 | |
46080 | _ACEOF | |
46081 | ||
46082 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout" | |
46083 | fi | |
46084 | ||
8a7b1113 VZ |
46085 | if test "$wxUSE_MDI" = "yes"; then |
46086 | cat >>confdefs.h <<\_ACEOF | |
46087 | #define wxUSE_MDI 1 | |
46088 | _ACEOF | |
46089 | ||
46090 | ||
46091 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
46092 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
46093 | #define wxUSE_MDI_ARCHITECTURE 1 |
46094 | _ACEOF | |
46095 | ||
8a7b1113 VZ |
46096 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi" |
46097 | fi | |
a848cd7e SC |
46098 | fi |
46099 | ||
46100 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then | |
46101 | cat >>confdefs.h <<\_ACEOF | |
46102 | #define wxUSE_DOC_VIEW_ARCHITECTURE 1 | |
46103 | _ACEOF | |
46104 | ||
46105 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview" | |
a848cd7e SC |
46106 | fi |
46107 | ||
46108 | if test "$wxUSE_HELP" = "yes"; then | |
46109 | cat >>confdefs.h <<\_ACEOF | |
46110 | #define wxUSE_HELP 1 | |
46111 | _ACEOF | |
46112 | ||
46113 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help" | |
46114 | ||
46115 | if test "$wxUSE_MSW" = 1; then | |
46116 | if test "$wxUSE_MS_HTML_HELP" = "yes"; then | |
46117 | cat >>confdefs.h <<\_ACEOF | |
46118 | #define wxUSE_MS_HTML_HELP 1 | |
46119 | _ACEOF | |
46120 | ||
46121 | fi | |
46122 | fi | |
46123 | ||
46124 | if test "$wxUSE_WXHTML_HELP" = "yes"; then | |
46125 | if test "$wxUSE_HTML" = "yes"; then | |
46126 | cat >>confdefs.h <<\_ACEOF | |
46127 | #define wxUSE_WXHTML_HELP 1 | |
46128 | _ACEOF | |
46129 | ||
46130 | else | |
d589327a VZ |
46131 | { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5 |
46132 | echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;} | |
a848cd7e SC |
46133 | wxUSE_WXHTML_HELP=no |
46134 | fi | |
46135 | fi | |
46136 | fi | |
46137 | ||
46138 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then | |
c74aaca2 | 46139 | cat >>confdefs.h <<\_ACEOF |
a848cd7e SC |
46140 | #define wxUSE_PRINTING_ARCHITECTURE 1 |
46141 | _ACEOF | |
46142 | ||
a848cd7e SC |
46143 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing" |
46144 | fi | |
46145 | ||
b0fc907f VZ |
46146 | if test "$wxUSE_POSTSCRIPT" = "yes" ; then |
46147 | cat >>confdefs.h <<\_ACEOF | |
46148 | #define wxUSE_POSTSCRIPT 1 | |
46149 | _ACEOF | |
46150 | ||
46151 | fi | |
46152 | ||
46153 | cat >>confdefs.h <<\_ACEOF | |
46154 | #define wxUSE_AFM_FOR_POSTSCRIPT 1 | |
46155 | _ACEOF | |
46156 | ||
46157 | ||
b0fc907f VZ |
46158 | if test "$wxUSE_SVG" = "yes"; then |
46159 | cat >>confdefs.h <<\_ACEOF | |
46160 | #define wxUSE_SVG 1 | |
46161 | _ACEOF | |
46162 | ||
46163 | fi | |
a848cd7e SC |
46164 | |
46165 | ||
efdf6afe VZ |
46166 | if test "$wxUSE_METAFILE" = "yes"; then |
46167 | if test "$wxUSE_MSW" != 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_PM" != 1; then | |
d589327a VZ |
46168 | { echo "$as_me:$LINENO: WARNING: wxMetafile is not available on this system... disabled" >&5 |
46169 | echo "$as_me: WARNING: wxMetafile is not available on this system... disabled" >&2;} | |
efdf6afe VZ |
46170 | wxUSE_METAFILE=no |
46171 | fi | |
46172 | fi | |
46173 | ||
46174 | ||
a848cd7e SC |
46175 | if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \ |
46176 | -o "$wxUSE_CLIPBOARD" = "yes" \ | |
46177 | -o "$wxUSE_OLE" = "yes" \ | |
46178 | -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then | |
d589327a VZ |
46179 | { echo "$as_me:$LINENO: checking for ole2.h" >&5 |
46180 | echo $ECHO_N "checking for ole2.h... $ECHO_C" >&6; } | |
6e7b8bcb | 46181 | if test "${ac_cv_header_ole2_h+set}" = set; then |
d589327a | 46182 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a848cd7e | 46183 | else |
6e7b8bcb | 46184 | cat >conftest.$ac_ext <<_ACEOF |
a848cd7e SC |
46185 | /* confdefs.h. */ |
46186 | _ACEOF | |
46187 | cat confdefs.h >>conftest.$ac_ext | |
46188 | cat >>conftest.$ac_ext <<_ACEOF | |
46189 | /* end confdefs.h. */ | |
6e7b8bcb PC |
46190 | |
46191 | ||
46192 | #include <ole2.h> | |
a848cd7e SC |
46193 | _ACEOF |
46194 | rm -f conftest.$ac_objext | |
47964710 VS |
46195 | if { (ac_try="$ac_compile" |
46196 | case "(($ac_try" in | |
46197 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
46198 | *) ac_try_echo=$ac_try;; | |
46199 | esac | |
d589327a | 46200 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 46201 | (eval "$ac_compile") 2>conftest.er1 |
a848cd7e | 46202 | ac_status=$? |
ac1cb8d3 VS |
46203 | grep -v '^ *+' conftest.er1 >conftest.err |
46204 | rm -f conftest.er1 | |
46205 | cat conftest.err >&5 | |
d589327a | 46206 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
46207 | (exit $ac_status); } && { |
46208 | test -z "$ac_c_werror_flag" || | |
46209 | test ! -s conftest.err | |
46210 | } && test -s conftest.$ac_objext; then | |
6e7b8bcb | 46211 | ac_cv_header_ole2_h=yes |
a848cd7e | 46212 | else |
d589327a | 46213 | echo "$as_me: failed program was:" >&5 |
a848cd7e SC |
46214 | sed 's/^/| /' conftest.$ac_ext >&5 |
46215 | ||
47964710 | 46216 | ac_cv_header_ole2_h=no |
a848cd7e | 46217 | fi |
47964710 VS |
46218 | |
46219 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
a848cd7e | 46220 | fi |
d589327a VZ |
46221 | { echo "$as_me:$LINENO: result: $ac_cv_header_ole2_h" >&5 |
46222 | echo "${ECHO_T}$ac_cv_header_ole2_h" >&6; } | |
a848cd7e | 46223 | |
a848cd7e SC |
46224 | |
46225 | ||
46226 | if test "$ac_cv_header_ole2_h" = "yes" ; then | |
46227 | if test "$GCC" = yes ; then | |
d589327a VZ |
46228 | { echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5 |
46229 | echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6; } | |
a848cd7e SC |
46230 | cat >conftest.$ac_ext <<_ACEOF |
46231 | /* confdefs.h. */ | |
46232 | _ACEOF | |
46233 | cat confdefs.h >>conftest.$ac_ext | |
46234 | cat >>conftest.$ac_ext <<_ACEOF | |
46235 | /* end confdefs.h. */ | |
46236 | #include <windows.h> | |
46237 | #include <ole2.h> | |
46238 | int | |
46239 | main () | |
46240 | { | |
46241 | ||
46242 | ; | |
46243 | return 0; | |
46244 | } | |
46245 | _ACEOF | |
46246 | rm -f conftest.$ac_objext | |
47964710 VS |
46247 | if { (ac_try="$ac_compile" |
46248 | case "(($ac_try" in | |
46249 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
46250 | *) ac_try_echo=$ac_try;; | |
46251 | esac | |
d589327a | 46252 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 46253 | (eval "$ac_compile") 2>conftest.er1 |
a848cd7e | 46254 | ac_status=$? |
ac1cb8d3 VS |
46255 | grep -v '^ *+' conftest.er1 >conftest.err |
46256 | rm -f conftest.er1 | |
46257 | cat conftest.err >&5 | |
d589327a | 46258 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
46259 | (exit $ac_status); } && { |
46260 | test -z "$ac_c_werror_flag" || | |
46261 | test ! -s conftest.err | |
46262 | } && test -s conftest.$ac_objext; then | |
d589327a VZ |
46263 | { echo "$as_me:$LINENO: result: no" >&5 |
46264 | echo "${ECHO_T}no" >&6; } | |
a848cd7e | 46265 | else |
d589327a | 46266 | echo "$as_me: failed program was:" >&5 |
a848cd7e SC |
46267 | sed 's/^/| /' conftest.$ac_ext >&5 |
46268 | ||
d589327a VZ |
46269 | { echo "$as_me:$LINENO: result: yes" >&5 |
46270 | echo "${ECHO_T}yes" >&6; } | |
5ff751d6 | 46271 | WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fvtable-thunks" |
a848cd7e | 46272 | fi |
47964710 VS |
46273 | |
46274 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
a848cd7e SC |
46275 | LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS" |
46276 | if test "$wxUSE_OLE" = "yes" ; then | |
46277 | cat >>confdefs.h <<\_ACEOF | |
46278 | #define wxUSE_OLE 1 | |
f43426c1 RD |
46279 | _ACEOF |
46280 | ||
46281 | cat >>confdefs.h <<\_ACEOF | |
46282 | #define wxUSE_OLE_AUTOMATION 1 | |
46283 | _ACEOF | |
46284 | ||
46285 | cat >>confdefs.h <<\_ACEOF | |
9c49977b | 46286 | #define wxUSE_ACTIVEX 1 |
a848cd7e SC |
46287 | _ACEOF |
46288 | ||
0b78747f | 46289 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS oleauto" |
a848cd7e SC |
46290 | fi |
46291 | fi | |
46292 | ||
46293 | if test "$wxUSE_DATAOBJ" = "yes" ; then | |
46294 | cat >>confdefs.h <<\_ACEOF | |
46295 | #define wxUSE_DATAOBJ 1 | |
46296 | _ACEOF | |
46297 | ||
46298 | fi | |
46299 | else | |
d589327a VZ |
46300 | { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5 |
46301 | echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;} | |
a848cd7e SC |
46302 | |
46303 | wxUSE_CLIPBOARD=no | |
46304 | wxUSE_DRAG_AND_DROP=no | |
46305 | wxUSE_DATAOBJ=no | |
46306 | wxUSE_OLE=no | |
46307 | fi | |
46308 | ||
46309 | if test "$wxUSE_METAFILE" = "yes"; then | |
46310 | cat >>confdefs.h <<\_ACEOF | |
46311 | #define wxUSE_METAFILE 1 | |
46312 | _ACEOF | |
46313 | ||
46314 | ||
46315 | cat >>confdefs.h <<\_ACEOF | |
46316 | #define wxUSE_ENH_METAFILE 1 | |
46317 | _ACEOF | |
46318 | ||
46319 | fi | |
46320 | fi | |
46321 | ||
46322 | if test "$wxUSE_IPC" = "yes"; then | |
0b78747f | 46323 | if test "$wxUSE_SOCKETS" != "yes" -a "$USE_WIN32" != 1; then |
d589327a VZ |
46324 | { echo "$as_me:$LINENO: WARNING: wxWidgets IPC classes require sockets... disabled" >&5 |
46325 | echo "$as_me: WARNING: wxWidgets IPC classes require sockets... disabled" >&2;} | |
0b78747f | 46326 | wxUSE_IPC=no |
a848cd7e SC |
46327 | fi |
46328 | ||
0b78747f MW |
46329 | if test "$wxUSE_IPC" = "yes"; then |
46330 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
46331 | #define wxUSE_IPC 1 |
46332 | _ACEOF | |
46333 | ||
0b78747f MW |
46334 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ipc" |
46335 | fi | |
a848cd7e SC |
46336 | fi |
46337 | ||
eb730a0c | 46338 | if test "$wxUSE_DATAOBJ" = "yes"; then |
f321ab7f | 46339 | if test "$wxUSE_MGL" = 1 -o "$wxUSE_DFB" = 1; then |
d589327a VZ |
46340 | { echo "$as_me:$LINENO: WARNING: wxDataObject not yet supported under $TOOLKIT... disabled" >&5 |
46341 | echo "$as_me: WARNING: wxDataObject not yet supported under $TOOLKIT... disabled" >&2;} | |
2113bc77 MW |
46342 | wxUSE_DATAOBJ=no |
46343 | else | |
46344 | cat >>confdefs.h <<\_ACEOF | |
eb730a0c JS |
46345 | #define wxUSE_DATAOBJ 1 |
46346 | _ACEOF | |
46347 | ||
2113bc77 | 46348 | fi |
eb730a0c | 46349 | else |
d589327a VZ |
46350 | { echo "$as_me:$LINENO: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&5 |
46351 | echo "$as_me: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&2;} | |
eb730a0c JS |
46352 | wxUSE_CLIPBOARD=no |
46353 | wxUSE_DRAG_AND_DROP=no | |
46354 | fi | |
46355 | ||
a848cd7e | 46356 | if test "$wxUSE_CLIPBOARD" = "yes"; then |
f321ab7f | 46357 | if test "$wxUSE_MGL" = 1 -o "$wxUSE_DFB" = 1; then |
d589327a VZ |
46358 | { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under $TOOLKIT... disabled" >&5 |
46359 | echo "$as_me: WARNING: Clipboard not yet supported under $TOOLKIT... disabled" >&2;} | |
a848cd7e SC |
46360 | wxUSE_CLIPBOARD=no |
46361 | fi | |
46362 | ||
46363 | if test "$wxUSE_CLIPBOARD" = "yes"; then | |
46364 | cat >>confdefs.h <<\_ACEOF | |
46365 | #define wxUSE_CLIPBOARD 1 | |
46366 | _ACEOF | |
46367 | ||
a848cd7e SC |
46368 | fi |
46369 | fi | |
46370 | ||
46371 | if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then | |
46372 | if test "$wxUSE_GTK" = 1; then | |
46373 | if test "$WXGTK12" != 1; then | |
d589327a VZ |
46374 | { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5 |
46375 | echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;} | |
a848cd7e SC |
46376 | wxUSE_DRAG_AND_DROP=no |
46377 | fi | |
46378 | fi | |
46379 | ||
f321ab7f VS |
46380 | if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_X11" = 1 -o "$wxUSE_MGL" = 1 -o \ |
46381 | "$wxUSE_DFB" = 1; then | |
d589327a VZ |
46382 | { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under $TOOLKIT... disabled" >&5 |
46383 | echo "$as_me: WARNING: Drag and drop not yet supported under $TOOLKIT... disabled" >&2;} | |
a848cd7e SC |
46384 | wxUSE_DRAG_AND_DROP=no |
46385 | fi | |
46386 | ||
46387 | if test "$wxUSE_DRAG_AND_DROP" = "yes"; then | |
46388 | cat >>confdefs.h <<\_ACEOF | |
46389 | #define wxUSE_DRAG_AND_DROP 1 | |
46390 | _ACEOF | |
46391 | ||
46392 | fi | |
46393 | ||
46394 | fi | |
46395 | ||
46396 | if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then | |
46397 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd" | |
46398 | fi | |
46399 | ||
6a5a7fba VZ |
46400 | if test "$wxUSE_CLIPBOARD" = "yes"; then |
46401 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS clipboard" | |
46402 | fi | |
46403 | ||
a848cd7e SC |
46404 | if test "$wxUSE_SPLINES" = "yes" ; then |
46405 | cat >>confdefs.h <<\_ACEOF | |
46406 | #define wxUSE_SPLINES 1 | |
46407 | _ACEOF | |
46408 | ||
46409 | fi | |
46410 | ||
fbe2ca43 SN |
46411 | if test "$wxUSE_MOUSEWHEEL" = "yes" ; then |
46412 | cat >>confdefs.h <<\_ACEOF | |
46413 | #define wxUSE_MOUSEWHEEL 1 | |
46414 | _ACEOF | |
46415 | ||
46416 | fi | |
46417 | ||
9b7e0226 VZ |
46418 | if test "$wxUSE_UIACTIONSIMULATOR" = "yes" ; then |
46419 | cat >>confdefs.h <<\_ACEOF | |
46420 | #define wxUSE_UIACTIONSIMULATOR 1 | |
46421 | _ACEOF | |
46422 | ||
c24309da | 46423 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS uiaction" |
9b7e0226 VZ |
46424 | fi |
46425 | ||
a848cd7e SC |
46426 | |
46427 | USES_CONTROLS=0 | |
46428 | if test "$wxUSE_CONTROLS" = "yes"; then | |
46429 | USES_CONTROLS=1 | |
46430 | fi | |
46431 | ||
46432 | if test "$wxUSE_ACCEL" = "yes"; then | |
46433 | cat >>confdefs.h <<\_ACEOF | |
46434 | #define wxUSE_ACCEL 1 | |
46435 | _ACEOF | |
46436 | ||
46437 | USES_CONTROLS=1 | |
46438 | fi | |
46439 | ||
7067783d | 46440 | if test "$wxUSE_ANIMATIONCTRL" = "yes"; then |
3ea50042 VZ |
46441 | cat >>confdefs.h <<\_ACEOF |
46442 | #define wxUSE_ANIMATIONCTRL 1 | |
46443 | _ACEOF | |
46444 | ||
46445 | USES_CONTROLS=1 | |
46446 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS animate" | |
46447 | fi | |
46448 | ||
a848cd7e SC |
46449 | if test "$wxUSE_BUTTON" = "yes"; then |
46450 | cat >>confdefs.h <<\_ACEOF | |
46451 | #define wxUSE_BUTTON 1 | |
46452 | _ACEOF | |
46453 | ||
46454 | USES_CONTROLS=1 | |
46455 | fi | |
46456 | ||
46457 | if test "$wxUSE_BMPBUTTON" = "yes"; then | |
46458 | cat >>confdefs.h <<\_ACEOF | |
46459 | #define wxUSE_BMPBUTTON 1 | |
46460 | _ACEOF | |
46461 | ||
46462 | USES_CONTROLS=1 | |
46463 | fi | |
46464 | ||
46465 | if test "$wxUSE_CALCTRL" = "yes"; then | |
46466 | cat >>confdefs.h <<\_ACEOF | |
46467 | #define wxUSE_CALENDARCTRL 1 | |
46468 | _ACEOF | |
46469 | ||
46470 | USES_CONTROLS=1 | |
46471 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar" | |
46472 | fi | |
46473 | ||
46474 | if test "$wxUSE_CARET" = "yes"; then | |
46475 | cat >>confdefs.h <<\_ACEOF | |
46476 | #define wxUSE_CARET 1 | |
46477 | _ACEOF | |
46478 | ||
46479 | USES_CONTROLS=1 | |
46480 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret" | |
46481 | fi | |
46482 | ||
bd915ace RR |
46483 | if test "$wxUSE_COLLPANE" = "yes"; then |
46484 | cat >>confdefs.h <<\_ACEOF | |
46485 | #define wxUSE_COLLPANE 1 | |
46486 | _ACEOF | |
46487 | ||
46488 | USES_CONTROLS=1 | |
46489 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS collpane" | |
46490 | fi | |
46491 | ||
a848cd7e SC |
46492 | if test "$wxUSE_COMBOBOX" = "yes"; then |
46493 | cat >>confdefs.h <<\_ACEOF | |
46494 | #define wxUSE_COMBOBOX 1 | |
46495 | _ACEOF | |
46496 | ||
46497 | USES_CONTROLS=1 | |
46498 | fi | |
46499 | ||
a57d600f | 46500 | if test "$wxUSE_COMBOCTRL" = "yes"; then |
642bcba9 | 46501 | cat >>confdefs.h <<\_ACEOF |
a57d600f | 46502 | #define wxUSE_COMBOCTRL 1 |
642bcba9 VZ |
46503 | _ACEOF |
46504 | ||
46505 | USES_CONTROLS=1 | |
46506 | fi | |
46507 | ||
a848cd7e SC |
46508 | if test "$wxUSE_CHOICE" = "yes"; then |
46509 | cat >>confdefs.h <<\_ACEOF | |
46510 | #define wxUSE_CHOICE 1 | |
46511 | _ACEOF | |
46512 | ||
46513 | USES_CONTROLS=1 | |
46514 | fi | |
46515 | ||
92bbdbcd WS |
46516 | if test "$wxUSE_CHOICEBOOK" = "yes"; then |
46517 | cat >>confdefs.h <<\_ACEOF | |
46518 | #define wxUSE_CHOICEBOOK 1 | |
46519 | _ACEOF | |
46520 | ||
46521 | USES_CONTROLS=1 | |
46522 | fi | |
46523 | ||
a848cd7e SC |
46524 | if test "$wxUSE_CHECKBOX" = "yes"; then |
46525 | cat >>confdefs.h <<\_ACEOF | |
46526 | #define wxUSE_CHECKBOX 1 | |
46527 | _ACEOF | |
46528 | ||
46529 | USES_CONTROLS=1 | |
46530 | fi | |
46531 | ||
46532 | if test "$wxUSE_CHECKLST" = "yes"; then | |
46533 | cat >>confdefs.h <<\_ACEOF | |
46534 | #define wxUSE_CHECKLISTBOX 1 | |
46535 | _ACEOF | |
46536 | ||
46537 | USES_CONTROLS=1 | |
a848cd7e SC |
46538 | fi |
46539 | ||
e9263684 VZ |
46540 | if test "$wxUSE_COLOURPICKERCTRL" = "yes"; then |
46541 | cat >>confdefs.h <<\_ACEOF | |
46542 | #define wxUSE_COLOURPICKERCTRL 1 | |
46543 | _ACEOF | |
46544 | ||
46545 | USES_CONTROLS=1 | |
46546 | fi | |
46547 | ||
da98e9be VZ |
46548 | if test "$wxUSE_DATEPICKCTRL" = "yes"; then |
46549 | cat >>confdefs.h <<\_ACEOF | |
46550 | #define wxUSE_DATEPICKCTRL 1 | |
46551 | _ACEOF | |
46552 | ||
46553 | USES_CONTROLS=1 | |
46554 | fi | |
46555 | ||
e9263684 VZ |
46556 | if test "$wxUSE_DIRPICKERCTRL" = "yes"; then |
46557 | cat >>confdefs.h <<\_ACEOF | |
46558 | #define wxUSE_DIRPICKERCTRL 1 | |
46559 | _ACEOF | |
46560 | ||
46561 | USES_CONTROLS=1 | |
46562 | fi | |
46563 | ||
0cf3e587 VZ |
46564 | if test "$wxUSE_FILECTRL" = "yes"; then |
46565 | cat >>confdefs.h <<\_ACEOF | |
46566 | #define wxUSE_FILECTRL 1 | |
46567 | _ACEOF | |
46568 | ||
46569 | USES_CONTROLS=1 | |
46570 | fi | |
46571 | ||
e9263684 VZ |
46572 | if test "$wxUSE_FILEPICKERCTRL" = "yes"; then |
46573 | cat >>confdefs.h <<\_ACEOF | |
46574 | #define wxUSE_FILEPICKERCTRL 1 | |
46575 | _ACEOF | |
46576 | ||
46577 | USES_CONTROLS=1 | |
46578 | fi | |
46579 | ||
46580 | if test "$wxUSE_FONTPICKERCTRL" = "yes"; then | |
46581 | cat >>confdefs.h <<\_ACEOF | |
46582 | #define wxUSE_FONTPICKERCTRL 1 | |
46583 | _ACEOF | |
46584 | ||
46585 | USES_CONTROLS=1 | |
46586 | fi | |
46587 | ||
a848cd7e | 46588 | if test "$wxUSE_DISPLAY" = "yes"; then |
f321ab7f | 46589 | if test "$wxUSE_DFB" = 1 -o "$wxUSE_MGL" = 1; then |
d589327a VZ |
46590 | { echo "$as_me:$LINENO: WARNING: wxDisplay not yet supported under $TOOLKIT... disabled" >&5 |
46591 | echo "$as_me: WARNING: wxDisplay not yet supported under $TOOLKIT... disabled" >&2;} | |
f321ab7f VS |
46592 | wxUSE_DISPLAY=no |
46593 | else | |
46594 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
46595 | #define wxUSE_DISPLAY 1 |
46596 | _ACEOF | |
46597 | ||
39d66339 | 46598 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display" |
f321ab7f | 46599 | fi |
a848cd7e SC |
46600 | fi |
46601 | ||
88bbc332 RR |
46602 | if test "$wxUSE_DETECT_SM" = "yes"; then |
46603 | cat >>confdefs.h <<\_ACEOF | |
46604 | #define wxUSE_DETECT_SM 1 | |
46605 | _ACEOF | |
46606 | ||
46607 | fi | |
46608 | ||
a848cd7e SC |
46609 | if test "$wxUSE_GAUGE" = "yes"; then |
46610 | cat >>confdefs.h <<\_ACEOF | |
46611 | #define wxUSE_GAUGE 1 | |
46612 | _ACEOF | |
46613 | ||
46614 | USES_CONTROLS=1 | |
46615 | fi | |
46616 | ||
46617 | if test "$wxUSE_GRID" = "yes"; then | |
46618 | cat >>confdefs.h <<\_ACEOF | |
46619 | #define wxUSE_GRID 1 | |
46620 | _ACEOF | |
46621 | ||
46622 | USES_CONTROLS=1 | |
46623 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid" | |
46624 | fi | |
46625 | ||
e721a2a2 VZ |
46626 | if test "$wxUSE_HEADERCTRL" = "yes"; then |
46627 | cat >>confdefs.h <<\_ACEOF | |
46628 | #define wxUSE_HEADERCTRL 1 | |
46629 | _ACEOF | |
46630 | ||
46631 | USES_CONTROLS=1 | |
46632 | fi | |
46633 | ||
6954625c VZ |
46634 | if test "$wxUSE_HYPERLINKCTRL" = "yes"; then |
46635 | cat >>confdefs.h <<\_ACEOF | |
46636 | #define wxUSE_HYPERLINKCTRL 1 | |
46637 | _ACEOF | |
46638 | ||
46639 | USES_CONTROLS=1 | |
46640 | fi | |
46641 | ||
95a46303 RR |
46642 | if test "$wxUSE_BITMAPCOMBOBOX" = "yes"; then |
46643 | cat >>confdefs.h <<\_ACEOF | |
46644 | #define wxUSE_BITMAPCOMBOBOX 1 | |
46645 | _ACEOF | |
46646 | ||
46647 | USES_CONTROLS=1 | |
46648 | fi | |
46649 | ||
20e34ecc RR |
46650 | if test "$wxUSE_DATAVIEWCTRL" = "yes"; then |
46651 | cat >>confdefs.h <<\_ACEOF | |
46652 | #define wxUSE_DATAVIEWCTRL 1 | |
46653 | _ACEOF | |
46654 | ||
46655 | USES_CONTROLS=1 | |
46656 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dataview" | |
46657 | fi | |
46658 | ||
a848cd7e SC |
46659 | if test "$wxUSE_IMAGLIST" = "yes"; then |
46660 | cat >>confdefs.h <<\_ACEOF | |
46661 | #define wxUSE_IMAGLIST 1 | |
46662 | _ACEOF | |
46663 | ||
46664 | fi | |
46665 | ||
a92b5dfe VZ |
46666 | if test "$wxUSE_INFOBAR" = "yes"; then |
46667 | cat >>confdefs.h <<\_ACEOF | |
46668 | #define wxUSE_INFOBAR 1 | |
46669 | _ACEOF | |
46670 | ||
46671 | fi | |
46672 | ||
a848cd7e SC |
46673 | if test "$wxUSE_LISTBOOK" = "yes"; then |
46674 | cat >>confdefs.h <<\_ACEOF | |
46675 | #define wxUSE_LISTBOOK 1 | |
46676 | _ACEOF | |
46677 | ||
46678 | USES_CONTROLS=1 | |
46679 | fi | |
46680 | ||
46681 | if test "$wxUSE_LISTBOX" = "yes"; then | |
46682 | cat >>confdefs.h <<\_ACEOF | |
46683 | #define wxUSE_LISTBOX 1 | |
46684 | _ACEOF | |
46685 | ||
46686 | USES_CONTROLS=1 | |
46687 | fi | |
46688 | ||
46689 | if test "$wxUSE_LISTCTRL" = "yes"; then | |
46690 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
46691 | cat >>confdefs.h <<\_ACEOF | |
46692 | #define wxUSE_LISTCTRL 1 | |
46693 | _ACEOF | |
46694 | ||
46695 | USES_CONTROLS=1 | |
46696 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl" | |
46697 | else | |
d589327a VZ |
46698 | { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5 |
46699 | echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;} | |
a848cd7e SC |
46700 | fi |
46701 | fi | |
46702 | ||
23575150 RR |
46703 | if test "$wxUSE_EDITABLELISTBOX" = "yes"; then |
46704 | cat >>confdefs.h <<\_ACEOF | |
46705 | #define wxUSE_EDITABLELISTBOX 1 | |
46706 | _ACEOF | |
46707 | ||
46708 | USES_CONTROLS=1 | |
23575150 RR |
46709 | fi |
46710 | ||
a848cd7e SC |
46711 | if test "$wxUSE_NOTEBOOK" = "yes"; then |
46712 | cat >>confdefs.h <<\_ACEOF | |
46713 | #define wxUSE_NOTEBOOK 1 | |
46714 | _ACEOF | |
46715 | ||
46716 | USES_CONTROLS=1 | |
46717 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook" | |
46718 | fi | |
46719 | ||
e36a1739 VZ |
46720 | if test "$wxUSE_NOTIFICATION_MESSAGE" = "yes"; then |
46721 | cat >>confdefs.h <<\_ACEOF | |
46722 | #define wxUSE_NOTIFICATION_MESSAGE 1 | |
46723 | _ACEOF | |
46724 | ||
46725 | fi | |
46726 | ||
a57d600f | 46727 | if test "$wxUSE_ODCOMBOBOX" = "yes"; then |
642bcba9 | 46728 | cat >>confdefs.h <<\_ACEOF |
a57d600f | 46729 | #define wxUSE_ODCOMBOBOX 1 |
642bcba9 VZ |
46730 | _ACEOF |
46731 | ||
46732 | USES_CONTROLS=1 | |
46733 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS combo" | |
46734 | fi | |
46735 | ||
a848cd7e SC |
46736 | if test "$wxUSE_RADIOBOX" = "yes"; then |
46737 | cat >>confdefs.h <<\_ACEOF | |
46738 | #define wxUSE_RADIOBOX 1 | |
46739 | _ACEOF | |
46740 | ||
46741 | USES_CONTROLS=1 | |
46742 | fi | |
46743 | ||
46744 | if test "$wxUSE_RADIOBTN" = "yes"; then | |
46745 | cat >>confdefs.h <<\_ACEOF | |
46746 | #define wxUSE_RADIOBTN 1 | |
46747 | _ACEOF | |
46748 | ||
46749 | USES_CONTROLS=1 | |
46750 | fi | |
46751 | ||
f0bb342f VZ |
46752 | if test "$wxUSE_REARRANGECTRL" = "yes"; then |
46753 | cat >>confdefs.h <<\_ACEOF | |
46754 | #define wxUSE_REARRANGECTRL 1 | |
46755 | _ACEOF | |
46756 | ||
46757 | fi | |
46758 | ||
a848cd7e SC |
46759 | if test "$wxUSE_SASH" = "yes"; then |
46760 | cat >>confdefs.h <<\_ACEOF | |
46761 | #define wxUSE_SASH 1 | |
46762 | _ACEOF | |
46763 | ||
46764 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest" | |
46765 | fi | |
46766 | ||
46767 | if test "$wxUSE_SCROLLBAR" = "yes"; then | |
46768 | cat >>confdefs.h <<\_ACEOF | |
46769 | #define wxUSE_SCROLLBAR 1 | |
46770 | _ACEOF | |
46771 | ||
46772 | USES_CONTROLS=1 | |
6a5a7fba | 46773 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll" |
a848cd7e SC |
46774 | fi |
46775 | ||
3f7f284d RD |
46776 | if test "$wxUSE_SEARCHCTRL" = "yes"; then |
46777 | cat >>confdefs.h <<\_ACEOF | |
46778 | #define wxUSE_SEARCHCTRL 1 | |
46779 | _ACEOF | |
46780 | ||
46781 | USES_CONTROLS=1 | |
46782 | fi | |
46783 | ||
a848cd7e SC |
46784 | if test "$wxUSE_SLIDER" = "yes"; then |
46785 | cat >>confdefs.h <<\_ACEOF | |
46786 | #define wxUSE_SLIDER 1 | |
46787 | _ACEOF | |
46788 | ||
46789 | USES_CONTROLS=1 | |
46790 | fi | |
46791 | ||
46792 | if test "$wxUSE_SPINBTN" = "yes"; then | |
46793 | cat >>confdefs.h <<\_ACEOF | |
46794 | #define wxUSE_SPINBTN 1 | |
46795 | _ACEOF | |
46796 | ||
46797 | USES_CONTROLS=1 | |
46798 | fi | |
46799 | ||
46800 | if test "$wxUSE_SPINCTRL" = "yes"; then | |
46801 | cat >>confdefs.h <<\_ACEOF | |
46802 | #define wxUSE_SPINCTRL 1 | |
46803 | _ACEOF | |
46804 | ||
46805 | USES_CONTROLS=1 | |
46806 | fi | |
46807 | ||
46808 | if test "$wxUSE_SPLITTER" = "yes"; then | |
46809 | cat >>confdefs.h <<\_ACEOF | |
46810 | #define wxUSE_SPLITTER 1 | |
46811 | _ACEOF | |
46812 | ||
46813 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter" | |
46814 | fi | |
46815 | ||
46816 | if test "$wxUSE_STATBMP" = "yes"; then | |
46817 | cat >>confdefs.h <<\_ACEOF | |
46818 | #define wxUSE_STATBMP 1 | |
46819 | _ACEOF | |
46820 | ||
46821 | USES_CONTROLS=1 | |
46822 | fi | |
46823 | ||
46824 | if test "$wxUSE_STATBOX" = "yes"; then | |
46825 | cat >>confdefs.h <<\_ACEOF | |
46826 | #define wxUSE_STATBOX 1 | |
46827 | _ACEOF | |
46828 | ||
46829 | USES_CONTROLS=1 | |
46830 | fi | |
46831 | ||
46832 | if test "$wxUSE_STATTEXT" = "yes"; then | |
46833 | cat >>confdefs.h <<\_ACEOF | |
46834 | #define wxUSE_STATTEXT 1 | |
46835 | _ACEOF | |
46836 | ||
46837 | USES_CONTROLS=1 | |
46838 | fi | |
46839 | ||
46840 | if test "$wxUSE_STATLINE" = "yes"; then | |
46841 | cat >>confdefs.h <<\_ACEOF | |
46842 | #define wxUSE_STATLINE 1 | |
46843 | _ACEOF | |
46844 | ||
46845 | USES_CONTROLS=1 | |
46846 | fi | |
46847 | ||
46848 | if test "$wxUSE_STATUSBAR" = "yes"; then | |
da4486fb VZ |
46849 | cat >>confdefs.h <<\_ACEOF |
46850 | #define wxUSE_NATIVE_STATUSBAR 1 | |
46851 | _ACEOF | |
46852 | ||
a848cd7e SC |
46853 | cat >>confdefs.h <<\_ACEOF |
46854 | #define wxUSE_STATUSBAR 1 | |
46855 | _ACEOF | |
46856 | ||
46857 | USES_CONTROLS=1 | |
46858 | ||
46859 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar" | |
46860 | fi | |
46861 | ||
a848cd7e SC |
46862 | if test "$wxUSE_TEXTCTRL" = "yes"; then |
46863 | cat >>confdefs.h <<\_ACEOF | |
46864 | #define wxUSE_TEXTCTRL 1 | |
46865 | _ACEOF | |
46866 | ||
46867 | USES_CONTROLS=1 | |
46868 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text" | |
5cfbef2a VZ |
46869 | |
46870 | cat >>confdefs.h <<\_ACEOF | |
46871 | #define wxUSE_RICHEDIT 1 | |
46872 | _ACEOF | |
46873 | ||
46874 | cat >>confdefs.h <<\_ACEOF | |
46875 | #define wxUSE_RICHEDIT2 1 | |
46876 | _ACEOF | |
46877 | ||
a848cd7e SC |
46878 | fi |
46879 | ||
46880 | if test "$wxUSE_TOGGLEBTN" = "yes"; then | |
f10f4c87 | 46881 | if test "$wxUSE_OLD_COCOA" = 1 ; then |
d589327a VZ |
46882 | { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5 |
46883 | echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;} | |
a848cd7e SC |
46884 | wxUSE_TOGGLEBTN=no |
46885 | fi | |
a848cd7e SC |
46886 | |
46887 | if test "$wxUSE_TOGGLEBTN" = "yes"; then | |
46888 | cat >>confdefs.h <<\_ACEOF | |
46889 | #define wxUSE_TOGGLEBTN 1 | |
46890 | _ACEOF | |
46891 | ||
46892 | USES_CONTROLS=1 | |
46893 | fi | |
46894 | fi | |
46895 | ||
a848cd7e SC |
46896 | if test "$wxUSE_TOOLBAR" = "yes"; then |
46897 | cat >>confdefs.h <<\_ACEOF | |
46898 | #define wxUSE_TOOLBAR 1 | |
46899 | _ACEOF | |
46900 | ||
46901 | USES_CONTROLS=1 | |
46902 | ||
452b6243 VS |
46903 | if test "$wxUSE_UNIVERSAL" = "yes"; then |
46904 | wxUSE_TOOLBAR_NATIVE="no" | |
46905 | else | |
46906 | wxUSE_TOOLBAR_NATIVE="yes" | |
a848cd7e SC |
46907 | cat >>confdefs.h <<\_ACEOF |
46908 | #define wxUSE_TOOLBAR_NATIVE 1 | |
46909 | _ACEOF | |
46910 | ||
a848cd7e SC |
46911 | fi |
46912 | ||
46913 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar" | |
46914 | fi | |
46915 | ||
46916 | if test "$wxUSE_TOOLTIPS" = "yes"; then | |
46917 | if test "$wxUSE_MOTIF" = 1; then | |
d589327a VZ |
46918 | { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5 |
46919 | echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;} | |
a848cd7e SC |
46920 | else |
46921 | if test "$wxUSE_UNIVERSAL" = "yes"; then | |
d589327a VZ |
46922 | { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5 |
46923 | echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;} | |
a848cd7e SC |
46924 | else |
46925 | cat >>confdefs.h <<\_ACEOF | |
46926 | #define wxUSE_TOOLTIPS 1 | |
46927 | _ACEOF | |
46928 | ||
46929 | fi | |
46930 | fi | |
46931 | fi | |
46932 | ||
0093c2fc VZ |
46933 | if test "$wxUSE_TREEBOOK" = "yes"; then |
46934 | cat >>confdefs.h <<\_ACEOF | |
46935 | #define wxUSE_TREEBOOK 1 | |
46936 | _ACEOF | |
46937 | ||
46938 | USES_CONTROLS=1 | |
46939 | fi | |
46940 | ||
5ec3bc43 JS |
46941 | if test "$wxUSE_TOOLBOOK" = "yes"; then |
46942 | cat >>confdefs.h <<\_ACEOF | |
46943 | #define wxUSE_TOOLBOOK 1 | |
46944 | _ACEOF | |
46945 | ||
46946 | USES_CONTROLS=1 | |
46947 | fi | |
46948 | ||
a848cd7e SC |
46949 | if test "$wxUSE_TREECTRL" = "yes"; then |
46950 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
46951 | cat >>confdefs.h <<\_ACEOF | |
46952 | #define wxUSE_TREECTRL 1 | |
46953 | _ACEOF | |
46954 | ||
46955 | USES_CONTROLS=1 | |
46956 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl" | |
46957 | else | |
d589327a VZ |
46958 | { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5 |
46959 | echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;} | |
a848cd7e SC |
46960 | fi |
46961 | fi | |
46962 | ||
46963 | if test "$wxUSE_POPUPWIN" = "yes"; then | |
f10f4c87 | 46964 | if test "$wxUSE_OLD_COCOA" = 1 ; then |
d589327a VZ |
46965 | { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5 |
46966 | echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;} | |
a848cd7e SC |
46967 | else |
46968 | if test "$wxUSE_PM" = 1; then | |
d589327a VZ |
46969 | { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5 |
46970 | echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;} | |
a848cd7e SC |
46971 | else |
46972 | cat >>confdefs.h <<\_ACEOF | |
46973 | #define wxUSE_POPUPWIN 1 | |
46974 | _ACEOF | |
46975 | ||
0b78747f | 46976 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS popup" |
a848cd7e SC |
46977 | |
46978 | USES_CONTROLS=1 | |
46979 | fi | |
46980 | fi | |
46981 | fi | |
46982 | ||
0dcd06dd | 46983 | if test "$wxUSE_DIALUP_MANAGER" = "yes"; then |
f10f4c87 | 46984 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_OLD_COCOA" = 1 -o "$wxUSE_MGL" = 1; then |
d589327a VZ |
46985 | { echo "$as_me:$LINENO: WARNING: Dialup manager not supported on this platform... disabled" >&5 |
46986 | echo "$as_me: WARNING: Dialup manager not supported on this platform... disabled" >&2;} | |
b843b628 MB |
46987 | else |
46988 | cat >>confdefs.h <<\_ACEOF | |
46989 | #define wxUSE_DIALUP_MANAGER 1 | |
46990 | _ACEOF | |
46991 | ||
46992 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup" | |
46993 | fi | |
46994 | fi | |
46995 | ||
a848cd7e SC |
46996 | if test "$wxUSE_TIPWINDOW" = "yes"; then |
46997 | if test "$wxUSE_PM" = 1; then | |
d589327a VZ |
46998 | { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5 |
46999 | echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;} | |
a848cd7e SC |
47000 | else |
47001 | cat >>confdefs.h <<\_ACEOF | |
47002 | #define wxUSE_TIPWINDOW 1 | |
47003 | _ACEOF | |
47004 | ||
47005 | fi | |
47006 | fi | |
47007 | ||
47008 | if test "$USES_CONTROLS" = 1; then | |
47009 | cat >>confdefs.h <<\_ACEOF | |
47010 | #define wxUSE_CONTROLS 1 | |
47011 | _ACEOF | |
47012 | ||
47013 | fi | |
47014 | ||
47015 | ||
47016 | if test "$wxUSE_ACCESSIBILITY" = "yes"; then | |
47017 | cat >>confdefs.h <<\_ACEOF | |
47018 | #define wxUSE_ACCESSIBILITY 1 | |
47019 | _ACEOF | |
47020 | ||
47021 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access" | |
47022 | fi | |
47023 | ||
47024 | if test "$wxUSE_DRAGIMAGE" = "yes"; then | |
47025 | cat >>confdefs.h <<\_ACEOF | |
47026 | #define wxUSE_DRAGIMAGE 1 | |
47027 | _ACEOF | |
47028 | ||
47029 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag" | |
47030 | fi | |
47031 | ||
47032 | if test "$wxUSE_EXCEPTIONS" = "yes"; then | |
07bea8f0 | 47033 | if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then |
d589327a VZ |
47034 | { echo "$as_me:$LINENO: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&5 |
47035 | echo "$as_me: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&2;} | |
07bea8f0 VS |
47036 | else |
47037 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
47038 | #define wxUSE_EXCEPTIONS 1 |
47039 | _ACEOF | |
47040 | ||
07bea8f0 VS |
47041 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS except" |
47042 | fi | |
a848cd7e SC |
47043 | fi |
47044 | ||
47045 | USE_HTML=0 | |
47046 | if test "$wxUSE_HTML" = "yes"; then | |
47047 | cat >>confdefs.h <<\_ACEOF | |
47048 | #define wxUSE_HTML 1 | |
47049 | _ACEOF | |
47050 | ||
47051 | USE_HTML=1 | |
47052 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox" | |
47053 | fi | |
646b6ec1 | 47054 | if test "$wxUSE_WEBKIT" = "yes"; then |
1e9e8aba | 47055 | if test "$wxUSE_MAC" = 1 -a "$USE_DARWIN" = 1; then |
07bea8f0 | 47056 | old_CPPFLAGS="$CPPFLAGS" |
c92ad099 | 47057 | CPPFLAGS="-x objective-c++ $CPPFLAGS" |
d589327a VZ |
47058 | { echo "$as_me:$LINENO: checking for WebKit/HIWebView.h" >&5 |
47059 | echo $ECHO_N "checking for WebKit/HIWebView.h... $ECHO_C" >&6; } | |
07bea8f0 | 47060 | if test "${ac_cv_header_WebKit_HIWebView_h+set}" = set; then |
d589327a | 47061 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
07bea8f0 VS |
47062 | else |
47063 | cat >conftest.$ac_ext <<_ACEOF | |
47064 | /* confdefs.h. */ | |
47065 | _ACEOF | |
47066 | cat confdefs.h >>conftest.$ac_ext | |
47067 | cat >>conftest.$ac_ext <<_ACEOF | |
47068 | /* end confdefs.h. */ | |
4fd169bd VZ |
47069 | |
47070 | #include <Carbon/Carbon.h> | |
47071 | #include <WebKit/WebKit.h> | |
47072 | ||
07bea8f0 VS |
47073 | |
47074 | #include <WebKit/HIWebView.h> | |
47075 | _ACEOF | |
47076 | rm -f conftest.$ac_objext | |
47964710 VS |
47077 | if { (ac_try="$ac_compile" |
47078 | case "(($ac_try" in | |
47079 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
47080 | *) ac_try_echo=$ac_try;; | |
47081 | esac | |
d589327a | 47082 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 47083 | (eval "$ac_compile") 2>conftest.er1 |
07bea8f0 VS |
47084 | ac_status=$? |
47085 | grep -v '^ *+' conftest.er1 >conftest.err | |
47086 | rm -f conftest.er1 | |
47087 | cat conftest.err >&5 | |
d589327a | 47088 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
47089 | (exit $ac_status); } && { |
47090 | test -z "$ac_c_werror_flag" || | |
47091 | test ! -s conftest.err | |
47092 | } && test -s conftest.$ac_objext; then | |
07bea8f0 VS |
47093 | ac_cv_header_WebKit_HIWebView_h=yes |
47094 | else | |
d589327a | 47095 | echo "$as_me: failed program was:" >&5 |
07bea8f0 VS |
47096 | sed 's/^/| /' conftest.$ac_ext >&5 |
47097 | ||
47964710 | 47098 | ac_cv_header_WebKit_HIWebView_h=no |
07bea8f0 | 47099 | fi |
47964710 VS |
47100 | |
47101 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
07bea8f0 | 47102 | fi |
d589327a VZ |
47103 | { echo "$as_me:$LINENO: result: $ac_cv_header_WebKit_HIWebView_h" >&5 |
47104 | echo "${ECHO_T}$ac_cv_header_WebKit_HIWebView_h" >&6; } | |
47105 | if test $ac_cv_header_WebKit_HIWebView_h = yes; then | |
07bea8f0 VS |
47106 | |
47107 | cat >>confdefs.h <<\_ACEOF | |
646b6ec1 VS |
47108 | #define wxUSE_WEBKIT 1 |
47109 | _ACEOF | |
47110 | ||
07bea8f0 VS |
47111 | WEBKIT_LINK="-framework WebKit" |
47112 | ||
47113 | else | |
47114 | ||
d589327a VZ |
47115 | { echo "$as_me:$LINENO: WARNING: WebKit headers not found; disabling wxWebKit" >&5 |
47116 | echo "$as_me: WARNING: WebKit headers not found; disabling wxWebKit" >&2;} | |
07bea8f0 VS |
47117 | wxUSE_WEBKIT=no |
47118 | ||
646b6ec1 VS |
47119 | fi |
47120 | ||
07bea8f0 VS |
47121 | |
47122 | CPPFLAGS="$old_CPPFLAGS" | |
f10f4c87 | 47123 | elif test "$wxUSE_OLD_COCOA" = 1; then |
07bea8f0 VS |
47124 | cat >>confdefs.h <<\_ACEOF |
47125 | #define wxUSE_WEBKIT 1 | |
47126 | _ACEOF | |
47127 | ||
47128 | else | |
47129 | wxUSE_WEBKIT=no | |
47130 | fi | |
2ea057f9 SC |
47131 | if test "$wxUSE_WEBKIT" = "yes"; then |
47132 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html/htmlctrl" | |
47133 | fi | |
07bea8f0 VS |
47134 | fi |
47135 | ||
9a8f0513 VS |
47136 | USE_XRC=0 |
47137 | if test "$wxUSE_XRC" = "yes"; then | |
d2ebf0b7 | 47138 | if test "$wxUSE_XML" != "yes"; then |
d589327a VZ |
47139 | { echo "$as_me:$LINENO: WARNING: XML library not built, XRC resources disabled" >&5 |
47140 | echo "$as_me: WARNING: XML library not built, XRC resources disabled" >&2;} | |
d2ebf0b7 VS |
47141 | wxUSE_XRC=no |
47142 | else | |
47143 | cat >>confdefs.h <<\_ACEOF | |
9a8f0513 VS |
47144 | #define wxUSE_XRC 1 |
47145 | _ACEOF | |
47146 | ||
d2ebf0b7 VS |
47147 | USE_XRC=1 |
47148 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS xrc" | |
47149 | fi | |
9a8f0513 | 47150 | fi |
07bea8f0 | 47151 | |
3f60522a JS |
47152 | USE_AUI=0 |
47153 | if test "$wxUSE_AUI" = "yes"; then | |
47154 | cat >>confdefs.h <<\_ACEOF | |
47155 | #define wxUSE_AUI 1 | |
47156 | _ACEOF | |
47157 | ||
47158 | USE_AUI=1 | |
47159 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS aui" | |
47160 | fi | |
47161 | ||
1c4293cb VZ |
47162 | USE_PROPGRID=0 |
47163 | if test "$wxUSE_PROPGRID" = "yes"; then | |
47164 | cat >>confdefs.h <<\_ACEOF | |
47165 | #define wxUSE_PROPGRID 1 | |
47166 | _ACEOF | |
47167 | ||
47168 | USE_PROPGRID=1 | |
47169 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS propgrid" | |
47170 | fi | |
47171 | ||
d33ccbe1 VZ |
47172 | USE_RIBBON=0 |
47173 | if test "$wxUSE_RIBBON" = "yes"; then | |
47174 | cat >>confdefs.h <<\_ACEOF | |
47175 | #define wxUSE_RIBBON 1 | |
47176 | _ACEOF | |
47177 | ||
47178 | USE_RIBBON=1 | |
47179 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ribbon" | |
47180 | fi | |
47181 | ||
54429bb3 RD |
47182 | USE_STC=0 |
47183 | if test "$wxUSE_STC" = "yes"; then | |
47184 | cat >>confdefs.h <<\_ACEOF | |
47185 | #define wxUSE_STC 1 | |
47186 | _ACEOF | |
47187 | ||
47188 | USE_STC=1 | |
47189 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS stc" | |
d84e6f50 VZ |
47190 | |
47191 | # Extract the first word of "python", so it can be a program name with args. | |
47192 | set dummy python; ac_word=$2 | |
47193 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
47194 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
47195 | if test "${ac_cv_path_PYTHON+set}" = set; then | |
47196 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
47197 | else | |
47198 | case $PYTHON in | |
47199 | [\\/]* | ?:[\\/]*) | |
47200 | ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path. | |
47201 | ;; | |
47202 | *) | |
47203 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
47204 | for as_dir in $PATH | |
47205 | do | |
47206 | IFS=$as_save_IFS | |
47207 | test -z "$as_dir" && as_dir=. | |
47208 | for ac_exec_ext in '' $ac_executable_extensions; do | |
47209 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
47210 | ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext" | |
47211 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
47212 | break 2 | |
47213 | fi | |
47214 | done | |
47215 | done | |
47216 | IFS=$as_save_IFS | |
47217 | ||
47218 | ;; | |
47219 | esac | |
47220 | fi | |
47221 | PYTHON=$ac_cv_path_PYTHON | |
47222 | if test -n "$PYTHON"; then | |
47223 | { echo "$as_me:$LINENO: result: $PYTHON" >&5 | |
47224 | echo "${ECHO_T}$PYTHON" >&6; } | |
47225 | else | |
47226 | { echo "$as_me:$LINENO: result: no" >&5 | |
47227 | echo "${ECHO_T}no" >&6; } | |
47228 | fi | |
47229 | ||
47230 | ||
47231 | if test "x$PYTHON" = "x"; then | |
47232 | COND_PYTHON="#" | |
47233 | fi | |
47234 | ||
54429bb3 RD |
47235 | fi |
47236 | ||
a848cd7e SC |
47237 | if test "$wxUSE_MENUS" = "yes"; then |
47238 | cat >>confdefs.h <<\_ACEOF | |
47239 | #define wxUSE_MENUS 1 | |
47240 | _ACEOF | |
47241 | ||
47242 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu" | |
47243 | fi | |
47244 | ||
47245 | if test "$wxUSE_METAFILE" = "yes"; then | |
47246 | cat >>confdefs.h <<\_ACEOF | |
47247 | #define wxUSE_METAFILE 1 | |
47248 | _ACEOF | |
47249 | ||
47250 | fi | |
47251 | ||
47252 | if test "$wxUSE_MIMETYPE" = "yes"; then | |
47253 | cat >>confdefs.h <<\_ACEOF | |
47254 | #define wxUSE_MIMETYPE 1 | |
47255 | _ACEOF | |
47256 | ||
47257 | fi | |
47258 | ||
47259 | if test "$wxUSE_MINIFRAME" = "yes"; then | |
47260 | cat >>confdefs.h <<\_ACEOF | |
47261 | #define wxUSE_MINIFRAME 1 | |
47262 | _ACEOF | |
47263 | ||
a848cd7e SC |
47264 | fi |
47265 | ||
47266 | if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then | |
47267 | cat >>confdefs.h <<\_ACEOF | |
47268 | #define wxUSE_SYSTEM_OPTIONS 1 | |
47269 | _ACEOF | |
47270 | ||
4f167b46 VZ |
47271 | fi |
47272 | ||
47273 | if test "$wxUSE_TASKBARICON" = "yes"; then | |
47274 | cat >>confdefs.h <<\_ACEOF | |
47275 | #define wxUSE_TASKBARICON 1 | |
47276 | _ACEOF | |
47277 | ||
47278 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar" | |
a848cd7e SC |
47279 | fi |
47280 | ||
47281 | ||
47282 | if test "$wxUSE_VALIDATORS" = "yes"; then | |
47283 | cat >>confdefs.h <<\_ACEOF | |
47284 | #define wxUSE_VALIDATORS 1 | |
47285 | _ACEOF | |
47286 | ||
47287 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate" | |
47288 | fi | |
47289 | ||
47290 | if test "$wxUSE_PALETTE" = "yes" ; then | |
f321ab7f | 47291 | if test "$wxUSE_DFB" = 1; then |
d589327a VZ |
47292 | { echo "$as_me:$LINENO: WARNING: wxPalette not yet supported under DFB... disabled" >&5 |
47293 | echo "$as_me: WARNING: wxPalette not yet supported under DFB... disabled" >&2;} | |
f321ab7f VS |
47294 | wxUSE_PALETTE=no |
47295 | else | |
47296 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
47297 | #define wxUSE_PALETTE 1 |
47298 | _ACEOF | |
47299 | ||
f321ab7f | 47300 | fi |
a848cd7e SC |
47301 | fi |
47302 | ||
47303 | if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then | |
47304 | LIBS=" -lunicows $LIBS" | |
47305 | fi | |
47306 | ||
91dea314 MW |
47307 | USE_RICHTEXT=0 |
47308 | if test "$wxUSE_RICHTEXT" = "yes"; then | |
47309 | cat >>confdefs.h <<\_ACEOF | |
47310 | #define wxUSE_RICHTEXT 1 | |
47311 | _ACEOF | |
47312 | ||
47313 | USE_RICHTEXT=1 | |
47314 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS richtext" | |
47315 | fi | |
47316 | ||
a848cd7e SC |
47317 | |
47318 | if test "$wxUSE_IMAGE" = "yes" ; then | |
47319 | cat >>confdefs.h <<\_ACEOF | |
47320 | #define wxUSE_IMAGE 1 | |
47321 | _ACEOF | |
47322 | ||
47323 | ||
47324 | if test "$wxUSE_GIF" = "yes" ; then | |
47325 | cat >>confdefs.h <<\_ACEOF | |
47326 | #define wxUSE_GIF 1 | |
47327 | _ACEOF | |
47328 | ||
47329 | fi | |
47330 | ||
47331 | if test "$wxUSE_PCX" = "yes" ; then | |
47332 | cat >>confdefs.h <<\_ACEOF | |
47333 | #define wxUSE_PCX 1 | |
47334 | _ACEOF | |
47335 | ||
47336 | fi | |
47337 | ||
bb9e79c0 VZ |
47338 | if test "$wxUSE_TGA" = "yes" ; then |
47339 | cat >>confdefs.h <<\_ACEOF | |
47340 | #define wxUSE_TGA 1 | |
47341 | _ACEOF | |
47342 | ||
47343 | fi | |
47344 | ||
a848cd7e SC |
47345 | if test "$wxUSE_IFF" = "yes" ; then |
47346 | cat >>confdefs.h <<\_ACEOF | |
47347 | #define wxUSE_IFF 1 | |
47348 | _ACEOF | |
47349 | ||
47350 | fi | |
47351 | ||
47352 | if test "$wxUSE_PNM" = "yes" ; then | |
47353 | cat >>confdefs.h <<\_ACEOF | |
47354 | #define wxUSE_PNM 1 | |
47355 | _ACEOF | |
47356 | ||
47357 | fi | |
47358 | ||
47359 | if test "$wxUSE_XPM" = "yes" ; then | |
47360 | cat >>confdefs.h <<\_ACEOF | |
47361 | #define wxUSE_XPM 1 | |
47362 | _ACEOF | |
47363 | ||
47364 | fi | |
47365 | ||
47366 | if test "$wxUSE_ICO_CUR" = "yes" ; then | |
47367 | cat >>confdefs.h <<\_ACEOF | |
47368 | #define wxUSE_ICO_CUR 1 | |
47369 | _ACEOF | |
47370 | ||
47371 | fi | |
47372 | fi | |
47373 | ||
47374 | ||
319c5ed4 VZ |
47375 | if test "$wxUSE_ABOUTDLG" = "yes"; then |
47376 | cat >>confdefs.h <<\_ACEOF | |
47377 | #define wxUSE_ABOUTDLG 1 | |
47378 | _ACEOF | |
47379 | ||
47380 | fi | |
47381 | ||
a848cd7e SC |
47382 | if test "$wxUSE_CHOICEDLG" = "yes"; then |
47383 | cat >>confdefs.h <<\_ACEOF | |
47384 | #define wxUSE_CHOICEDLG 1 | |
47385 | _ACEOF | |
47386 | ||
47387 | fi | |
47388 | ||
47389 | if test "$wxUSE_COLOURDLG" = "yes"; then | |
47390 | cat >>confdefs.h <<\_ACEOF | |
47391 | #define wxUSE_COLOURDLG 1 | |
47392 | _ACEOF | |
47393 | ||
47394 | fi | |
47395 | ||
47396 | if test "$wxUSE_FILEDLG" = "yes"; then | |
47397 | cat >>confdefs.h <<\_ACEOF | |
47398 | #define wxUSE_FILEDLG 1 | |
47399 | _ACEOF | |
47400 | ||
47401 | fi | |
47402 | ||
47403 | if test "$wxUSE_FINDREPLDLG" = "yes"; then | |
47404 | cat >>confdefs.h <<\_ACEOF | |
47405 | #define wxUSE_FINDREPLDLG 1 | |
47406 | _ACEOF | |
47407 | ||
47408 | fi | |
47409 | ||
47410 | if test "$wxUSE_FONTDLG" = "yes"; then | |
47411 | cat >>confdefs.h <<\_ACEOF | |
47412 | #define wxUSE_FONTDLG 1 | |
47413 | _ACEOF | |
47414 | ||
47415 | fi | |
47416 | ||
47417 | if test "$wxUSE_DIRDLG" = "yes"; then | |
47418 | if test "$wxUSE_TREECTRL" != "yes"; then | |
d589327a VZ |
47419 | { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5 |
47420 | echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;} | |
a848cd7e SC |
47421 | else |
47422 | cat >>confdefs.h <<\_ACEOF | |
47423 | #define wxUSE_DIRDLG 1 | |
47424 | _ACEOF | |
47425 | ||
47426 | fi | |
47427 | fi | |
47428 | ||
47429 | if test "$wxUSE_MSGDLG" = "yes"; then | |
47430 | cat >>confdefs.h <<\_ACEOF | |
47431 | #define wxUSE_MSGDLG 1 | |
47432 | _ACEOF | |
47433 | ||
47434 | fi | |
47435 | ||
47436 | if test "$wxUSE_NUMBERDLG" = "yes"; then | |
47437 | cat >>confdefs.h <<\_ACEOF | |
47438 | #define wxUSE_NUMBERDLG 1 | |
47439 | _ACEOF | |
47440 | ||
47441 | fi | |
47442 | ||
47443 | if test "$wxUSE_PROGRESSDLG" = "yes"; then | |
c74aaca2 | 47444 | cat >>confdefs.h <<\_ACEOF |
a848cd7e SC |
47445 | #define wxUSE_PROGRESSDLG 1 |
47446 | _ACEOF | |
47447 | ||
a848cd7e SC |
47448 | fi |
47449 | ||
47450 | if test "$wxUSE_SPLASH" = "yes"; then | |
47451 | cat >>confdefs.h <<\_ACEOF | |
47452 | #define wxUSE_SPLASH 1 | |
47453 | _ACEOF | |
47454 | ||
2057db16 | 47455 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splash" |
a848cd7e SC |
47456 | fi |
47457 | ||
47458 | if test "$wxUSE_STARTUP_TIPS" = "yes"; then | |
c74aaca2 | 47459 | cat >>confdefs.h <<\_ACEOF |
a848cd7e SC |
47460 | #define wxUSE_STARTUP_TIPS 1 |
47461 | _ACEOF | |
47462 | ||
a848cd7e SC |
47463 | fi |
47464 | ||
47465 | if test "$wxUSE_TEXTDLG" = "yes"; then | |
47466 | cat >>confdefs.h <<\_ACEOF | |
47467 | #define wxUSE_TEXTDLG 1 | |
47468 | _ACEOF | |
47469 | ||
47470 | fi | |
47471 | ||
47472 | if test "$wxUSE_WIZARDDLG" = "yes"; then | |
47473 | cat >>confdefs.h <<\_ACEOF | |
47474 | #define wxUSE_WIZARDDLG 1 | |
47475 | _ACEOF | |
47476 | ||
47477 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard" | |
47478 | fi | |
47479 | ||
47480 | ||
6517fa86 VZ |
47481 | if test "$wxUSE_MSW" = 1 -o "$wxUSE_PM" = 1; then |
47482 | if test "$wxUSE_OWNER_DRAWN" = "yes"; then | |
47483 | cat >>confdefs.h <<\_ACEOF | |
47484 | #define wxUSE_OWNER_DRAWN 1 | |
47485 | _ACEOF | |
47486 | ||
47487 | fi | |
47488 | fi | |
47489 | ||
47490 | ||
5d18e029 VZ |
47491 | if test "$wxUSE_MSW" = 1 ; then |
47492 | ||
91a5e00c VS |
47493 | if test "$wxUSE_DC_CACHEING" = "yes"; then |
47494 | cat >>confdefs.h <<\_ACEOF | |
5d18e029 VZ |
47495 | #define wxUSE_DC_CACHEING 1 |
47496 | _ACEOF | |
47497 | ||
91a5e00c | 47498 | fi |
61873536 | 47499 | |
91a5e00c VS |
47500 | if test "$wxUSE_DIB" = "yes"; then |
47501 | cat >>confdefs.h <<\_ACEOF | |
f77c0fe3 | 47502 | #define wxUSE_WXDIB 1 |
5d18e029 VZ |
47503 | _ACEOF |
47504 | ||
91a5e00c | 47505 | fi |
5d18e029 | 47506 | |
91a5e00c VS |
47507 | if test "$wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW" = "yes"; then |
47508 | cat >>confdefs.h <<\_ACEOF | |
47509 | #define wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW 1 | |
f77c0fe3 VZ |
47510 | _ACEOF |
47511 | ||
91a5e00c | 47512 | fi |
f77c0fe3 | 47513 | |
91a5e00c VS |
47514 | if test "$wxUSE_UXTHEME" = "yes"; then |
47515 | cat >>confdefs.h <<\_ACEOF | |
47516 | #define wxUSE_UXTHEME 1 | |
0295153c VZ |
47517 | _ACEOF |
47518 | ||
91a5e00c VS |
47519 | fi |
47520 | ||
0295153c VZ |
47521 | fi |
47522 | ||
75a29ef1 VZ |
47523 | if test "$wxUSE_AUTOID_MANAGEMENT" = "yes"; then |
47524 | cat >>confdefs.h <<\_ACEOF | |
47525 | #define wxUSE_AUTOID_MANAGEMENT 1 | |
47526 | _ACEOF | |
47527 | ||
47528 | fi | |
91a5e00c VS |
47529 | |
47530 | if test "$USE_WIN32" = 1 ; then | |
47531 | if test "$wxUSE_INICONF" = "yes"; then | |
47532 | cat >>confdefs.h <<\_ACEOF | |
47533 | #define wxUSE_INICONF 1 | |
508d12b2 VZ |
47534 | _ACEOF |
47535 | ||
91a5e00c VS |
47536 | fi |
47537 | ||
47538 | if test "$wxUSE_REGKEY" = "yes"; then | |
47539 | cat >>confdefs.h <<\_ACEOF | |
47540 | #define wxUSE_REGKEY 1 | |
47541 | _ACEOF | |
508d12b2 | 47542 | |
91a5e00c | 47543 | fi |
5d18e029 VZ |
47544 | fi |
47545 | ||
44710405 | 47546 | |
84b20415 | 47547 | if test "$wxUSE_MAC" = 1; then |
a12bd55b | 47548 | wxUSE_GRAPHICS_CONTEXT="yes" |
84b20415 | 47549 | fi |
5d18e029 | 47550 | |
64b75e64 | 47551 | if test "$wxUSE_GRAPHICS_CONTEXT" = "yes"; then |
a12bd55b VZ |
47552 | wx_has_graphics=0 |
47553 | if test "$wxUSE_MSW" = 1; then | |
47554 | { echo "$as_me:$LINENO: checking if GDI+ is available" >&5 | |
47555 | echo $ECHO_N "checking if GDI+ is available... $ECHO_C" >&6; } | |
47556 | if test "${wx_cv_lib_gdiplus+set}" = set; then | |
47557 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
47558 | else | |
47559 | ||
47560 | ac_ext=cpp | |
47561 | ac_cpp='$CXXCPP $CPPFLAGS' | |
47562 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
47563 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
47564 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
47565 | ||
47566 | cat >conftest.$ac_ext <<_ACEOF | |
47567 | /* confdefs.h. */ | |
64b75e64 | 47568 | _ACEOF |
a12bd55b VZ |
47569 | cat confdefs.h >>conftest.$ac_ext |
47570 | cat >>conftest.$ac_ext <<_ACEOF | |
47571 | /* end confdefs.h. */ | |
41616c8a | 47572 | #include <windows.h> |
3017880e | 47573 | #include <gdiplus.h> |
a12bd55b VZ |
47574 | int |
47575 | main () | |
47576 | { | |
64b75e64 | 47577 | |
a12bd55b VZ |
47578 | using namespace Gdiplus; |
47579 | ||
47580 | ; | |
47581 | return 0; | |
47582 | } | |
64b75e64 | 47583 | _ACEOF |
a12bd55b VZ |
47584 | rm -f conftest.$ac_objext |
47585 | if { (ac_try="$ac_compile" | |
47586 | case "(($ac_try" in | |
47587 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
47588 | *) ac_try_echo=$ac_try;; | |
47589 | esac | |
47590 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
47591 | (eval "$ac_compile") 2>conftest.er1 | |
47592 | ac_status=$? | |
47593 | grep -v '^ *+' conftest.er1 >conftest.err | |
47594 | rm -f conftest.er1 | |
47595 | cat conftest.err >&5 | |
47596 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
47597 | (exit $ac_status); } && { | |
47598 | test -z "$ac_cxx_werror_flag" || | |
47599 | test ! -s conftest.err | |
47600 | } && test -s conftest.$ac_objext; then | |
47601 | wx_cv_lib_gdiplus=yes | |
47602 | else | |
47603 | echo "$as_me: failed program was:" >&5 | |
47604 | sed 's/^/| /' conftest.$ac_ext >&5 | |
47605 | ||
47606 | wx_cv_lib_gdiplus=no | |
47607 | ||
47608 | fi | |
47609 | ||
47610 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
47611 | ac_ext=c | |
47612 | ac_cpp='$CPP $CPPFLAGS' | |
47613 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
47614 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
47615 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
64b75e64 | 47616 | |
a12bd55b VZ |
47617 | |
47618 | ||
47619 | fi | |
47620 | { echo "$as_me:$LINENO: result: $wx_cv_lib_gdiplus" >&5 | |
47621 | echo "${ECHO_T}$wx_cv_lib_gdiplus" >&6; } | |
47622 | if test "$wx_cv_lib_gdiplus" = "yes"; then | |
47623 | wx_has_graphics=1 | |
47624 | fi | |
47625 | elif test "$wxUSE_GTK" = 1; then | |
64b75e64 RD |
47626 | |
47627 | pkg_failed=no | |
d589327a VZ |
47628 | { echo "$as_me:$LINENO: checking for CAIRO" >&5 |
47629 | echo $ECHO_N "checking for CAIRO... $ECHO_C" >&6; } | |
64b75e64 RD |
47630 | |
47631 | if test -n "$PKG_CONFIG"; then | |
47632 | if test -n "$CAIRO_CFLAGS"; then | |
47633 | pkg_cv_CAIRO_CFLAGS="$CAIRO_CFLAGS" | |
47634 | else | |
47635 | if test -n "$PKG_CONFIG" && \ | |
d589327a | 47636 | { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"cairo\"") >&5 |
64b75e64 RD |
47637 | ($PKG_CONFIG --exists --print-errors "cairo") 2>&5 |
47638 | ac_status=$? | |
d589327a | 47639 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
64b75e64 RD |
47640 | (exit $ac_status); }; then |
47641 | pkg_cv_CAIRO_CFLAGS=`$PKG_CONFIG --cflags "cairo" 2>/dev/null` | |
47642 | else | |
47643 | pkg_failed=yes | |
47644 | fi | |
47645 | fi | |
47646 | else | |
47647 | pkg_failed=untried | |
47648 | fi | |
47649 | if test -n "$PKG_CONFIG"; then | |
47650 | if test -n "$CAIRO_LIBS"; then | |
47651 | pkg_cv_CAIRO_LIBS="$CAIRO_LIBS" | |
47652 | else | |
47653 | if test -n "$PKG_CONFIG" && \ | |
d589327a | 47654 | { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"cairo\"") >&5 |
64b75e64 RD |
47655 | ($PKG_CONFIG --exists --print-errors "cairo") 2>&5 |
47656 | ac_status=$? | |
d589327a | 47657 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
64b75e64 RD |
47658 | (exit $ac_status); }; then |
47659 | pkg_cv_CAIRO_LIBS=`$PKG_CONFIG --libs "cairo" 2>/dev/null` | |
47660 | else | |
47661 | pkg_failed=yes | |
47662 | fi | |
47663 | fi | |
47664 | else | |
47665 | pkg_failed=untried | |
47666 | fi | |
47667 | ||
47668 | ||
47669 | ||
47670 | if test $pkg_failed = yes; then | |
47671 | ||
47672 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
47673 | _pkg_short_errors_supported=yes | |
47674 | else | |
47675 | _pkg_short_errors_supported=no | |
47676 | fi | |
47677 | if test $_pkg_short_errors_supported = yes; then | |
47678 | CAIRO_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cairo"` | |
47679 | else | |
47680 | CAIRO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cairo"` | |
47681 | fi | |
47682 | # Put the nasty error message in config.log where it belongs | |
47683 | echo "$CAIRO_PKG_ERRORS" >&5 | |
47684 | ||
a12bd55b VZ |
47685 | { echo "$as_me:$LINENO: WARNING: Cairo library not found" >&5 |
47686 | echo "$as_me: WARNING: Cairo library not found" >&2;} | |
64b75e64 | 47687 | |
64b75e64 | 47688 | elif test $pkg_failed = untried; then |
a12bd55b VZ |
47689 | { echo "$as_me:$LINENO: WARNING: Cairo library not found" >&5 |
47690 | echo "$as_me: WARNING: Cairo library not found" >&2;} | |
64b75e64 | 47691 | |
64b75e64 RD |
47692 | else |
47693 | CAIRO_CFLAGS=$pkg_cv_CAIRO_CFLAGS | |
47694 | CAIRO_LIBS=$pkg_cv_CAIRO_LIBS | |
d589327a VZ |
47695 | { echo "$as_me:$LINENO: result: yes" >&5 |
47696 | echo "${ECHO_T}yes" >&6; } | |
a12bd55b VZ |
47697 | wx_has_graphics=1 |
47698 | fi | |
47699 | else | |
47700 | wx_has_graphics=1 | |
47701 | fi | |
47702 | ||
47703 | if test "$wx_has_graphics" = 1; then | |
47704 | cat >>confdefs.h <<\_ACEOF | |
64b75e64 RD |
47705 | #define wxUSE_GRAPHICS_CONTEXT 1 |
47706 | _ACEOF | |
47707 | ||
a12bd55b VZ |
47708 | else |
47709 | { echo "$as_me:$LINENO: WARNING: wxGraphicsContext won't be available" >&5 | |
47710 | echo "$as_me: WARNING: wxGraphicsContext won't be available" >&2;} | |
47711 | fi | |
64b75e64 RD |
47712 | fi |
47713 | ||
47714 | ||
f10e38c4 VZ |
47715 | USE_MEDIA=0 |
47716 | ||
f03637a2 | 47717 | if test "$wxUSE_MEDIACTRL" = "yes" -o "$wxUSE_MEDIACTRL" = "auto"; then |
2f6c5bb5 VZ |
47718 | USE_MEDIA=1 |
47719 | ||
ce756cb0 | 47720 | if test "$wxUSE_GTK" = 1; then |
c9a66001 | 47721 | wxUSE_GSTREAMER="no" |
ce756cb0 | 47722 | |
f10e38c4 VZ |
47723 | GST_VERSION_MAJOR=0 |
47724 | GST_VERSION_MINOR=10 | |
2f6c5bb5 | 47725 | GST_VERSION=$GST_VERSION_MAJOR.$GST_VERSION_MINOR |
f10e38c4 VZ |
47726 | |
47727 | if test "$wxUSE_GSTREAMER8" = "no"; then | |
ce756cb0 | 47728 | |
3ecd9f92 | 47729 | pkg_failed=no |
d589327a VZ |
47730 | { echo "$as_me:$LINENO: checking for GST" >&5 |
47731 | echo $ECHO_N "checking for GST... $ECHO_C" >&6; } | |
ce756cb0 | 47732 | |
3ecd9f92 MW |
47733 | if test -n "$PKG_CONFIG"; then |
47734 | if test -n "$GST_CFLAGS"; then | |
47735 | pkg_cv_GST_CFLAGS="$GST_CFLAGS" | |
47736 | else | |
47737 | if test -n "$PKG_CONFIG" && \ | |
d589327a | 47738 | { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-plugins-base-\$GST_VERSION gconf-2.0\"") >&5 |
3ecd9f92 MW |
47739 | ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0") 2>&5 |
47740 | ac_status=$? | |
d589327a | 47741 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3ecd9f92 MW |
47742 | (exit $ac_status); }; then |
47743 | pkg_cv_GST_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0" 2>/dev/null` | |
dae87f93 | 47744 | else |
3ecd9f92 MW |
47745 | pkg_failed=yes |
47746 | fi | |
47747 | fi | |
47748 | else | |
47749 | pkg_failed=untried | |
dae87f93 | 47750 | fi |
dae87f93 | 47751 | if test -n "$PKG_CONFIG"; then |
3ecd9f92 MW |
47752 | if test -n "$GST_LIBS"; then |
47753 | pkg_cv_GST_LIBS="$GST_LIBS" | |
47754 | else | |
47755 | if test -n "$PKG_CONFIG" && \ | |
d589327a | 47756 | { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-plugins-base-\$GST_VERSION gconf-2.0\"") >&5 |
3ecd9f92 MW |
47757 | ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0") 2>&5 |
47758 | ac_status=$? | |
d589327a | 47759 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3ecd9f92 MW |
47760 | (exit $ac_status); }; then |
47761 | pkg_cv_GST_LIBS=`$PKG_CONFIG --libs "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0" 2>/dev/null` | |
dae87f93 | 47762 | else |
3ecd9f92 MW |
47763 | pkg_failed=yes |
47764 | fi | |
47765 | fi | |
47766 | else | |
47767 | pkg_failed=untried | |
dae87f93 RN |
47768 | fi |
47769 | ||
dae87f93 | 47770 | |
2f6c5bb5 | 47771 | |
3ecd9f92 | 47772 | if test $pkg_failed = yes; then |
ce756cb0 | 47773 | |
3ecd9f92 MW |
47774 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
47775 | _pkg_short_errors_supported=yes | |
47776 | else | |
47777 | _pkg_short_errors_supported=no | |
47778 | fi | |
47779 | if test $_pkg_short_errors_supported = yes; then | |
47780 | GST_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0"` | |
47781 | else | |
47782 | GST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0"` | |
dae87f93 | 47783 | fi |
3ecd9f92 MW |
47784 | # Put the nasty error message in config.log where it belongs |
47785 | echo "$GST_PKG_ERRORS" >&5 | |
dae87f93 RN |
47786 | |
47787 | ||
d589327a VZ |
47788 | { echo "$as_me:$LINENO: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&5 |
47789 | echo "$as_me: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&2;} | |
3ecd9f92 | 47790 | GST_VERSION_MINOR=8 |
dae87f93 | 47791 | |
ce756cb0 | 47792 | |
3ecd9f92 | 47793 | elif test $pkg_failed = untried; then |
dae87f93 | 47794 | |
d589327a VZ |
47795 | { echo "$as_me:$LINENO: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&5 |
47796 | echo "$as_me: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&2;} | |
f10e38c4 | 47797 | GST_VERSION_MINOR=8 |
dae87f93 | 47798 | |
2f6c5bb5 | 47799 | |
3ecd9f92 MW |
47800 | else |
47801 | GST_CFLAGS=$pkg_cv_GST_CFLAGS | |
47802 | GST_LIBS=$pkg_cv_GST_LIBS | |
d589327a VZ |
47803 | { echo "$as_me:$LINENO: result: yes" >&5 |
47804 | echo "${ECHO_T}yes" >&6; } | |
3ecd9f92 MW |
47805 | |
47806 | wxUSE_GSTREAMER="yes" | |
47807 | GST_LIBS="$GST_LIBS -lgstinterfaces-$GST_VERSION" | |
dae87f93 | 47808 | |
3ecd9f92 | 47809 | fi |
2f6c5bb5 VZ |
47810 | else |
47811 | GST_VERSION_MINOR=8 | |
f10e38c4 | 47812 | fi |
dae87f93 | 47813 | |
2f6c5bb5 VZ |
47814 | if test $GST_VERSION_MINOR = "8"; then |
47815 | GST_VERSION=$GST_VERSION_MAJOR.$GST_VERSION_MINOR | |
dae87f93 | 47816 | |
3ecd9f92 | 47817 | pkg_failed=no |
d589327a VZ |
47818 | { echo "$as_me:$LINENO: checking for GST" >&5 |
47819 | echo $ECHO_N "checking for GST... $ECHO_C" >&6; } | |
dae87f93 | 47820 | |
3ecd9f92 MW |
47821 | if test -n "$PKG_CONFIG"; then |
47822 | if test -n "$GST_CFLAGS"; then | |
47823 | pkg_cv_GST_CFLAGS="$GST_CFLAGS" | |
47824 | else | |
47825 | if test -n "$PKG_CONFIG" && \ | |
d589327a | 47826 | { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-interfaces-\$GST_VERSION gstreamer-gconf-\$GST_VERSION\"") >&5 |
3ecd9f92 MW |
47827 | ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION") 2>&5 |
47828 | ac_status=$? | |
d589327a | 47829 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3ecd9f92 MW |
47830 | (exit $ac_status); }; then |
47831 | pkg_cv_GST_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION" 2>/dev/null` | |
dae87f93 | 47832 | else |
3ecd9f92 MW |
47833 | pkg_failed=yes |
47834 | fi | |
47835 | fi | |
47836 | else | |
47837 | pkg_failed=untried | |
dae87f93 | 47838 | fi |
f10e38c4 | 47839 | if test -n "$PKG_CONFIG"; then |
3ecd9f92 MW |
47840 | if test -n "$GST_LIBS"; then |
47841 | pkg_cv_GST_LIBS="$GST_LIBS" | |
47842 | else | |
47843 | if test -n "$PKG_CONFIG" && \ | |
d589327a | 47844 | { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-interfaces-\$GST_VERSION gstreamer-gconf-\$GST_VERSION\"") >&5 |
3ecd9f92 MW |
47845 | ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION") 2>&5 |
47846 | ac_status=$? | |
d589327a | 47847 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3ecd9f92 MW |
47848 | (exit $ac_status); }; then |
47849 | pkg_cv_GST_LIBS=`$PKG_CONFIG --libs "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION" 2>/dev/null` | |
dae87f93 | 47850 | else |
3ecd9f92 MW |
47851 | pkg_failed=yes |
47852 | fi | |
47853 | fi | |
47854 | else | |
47855 | pkg_failed=untried | |
dae87f93 RN |
47856 | fi |
47857 | ||
ce756cb0 | 47858 | |
2f6c5bb5 | 47859 | |
3ecd9f92 | 47860 | if test $pkg_failed = yes; then |
dae87f93 | 47861 | |
3ecd9f92 MW |
47862 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
47863 | _pkg_short_errors_supported=yes | |
47864 | else | |
47865 | _pkg_short_errors_supported=no | |
47866 | fi | |
47867 | if test $_pkg_short_errors_supported = yes; then | |
47868 | GST_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION"` | |
47869 | else | |
47870 | GST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION"` | |
dae87f93 | 47871 | fi |
3ecd9f92 MW |
47872 | # Put the nasty error message in config.log where it belongs |
47873 | echo "$GST_PKG_ERRORS" >&5 | |
dae87f93 RN |
47874 | |
47875 | ||
d589327a VZ |
47876 | { echo "$as_me:$LINENO: WARNING: GStreamer 0.8/0.10 not available." >&5 |
47877 | echo "$as_me: WARNING: GStreamer 0.8/0.10 not available." >&2;} | |
ce756cb0 | 47878 | |
3ecd9f92 | 47879 | elif test $pkg_failed = untried; then |
ce756cb0 | 47880 | |
d589327a VZ |
47881 | { echo "$as_me:$LINENO: WARNING: GStreamer 0.8/0.10 not available." >&5 |
47882 | echo "$as_me: WARNING: GStreamer 0.8/0.10 not available." >&2;} | |
ce756cb0 | 47883 | |
3ecd9f92 MW |
47884 | else |
47885 | GST_CFLAGS=$pkg_cv_GST_CFLAGS | |
47886 | GST_LIBS=$pkg_cv_GST_LIBS | |
d589327a VZ |
47887 | { echo "$as_me:$LINENO: result: yes" >&5 |
47888 | echo "${ECHO_T}yes" >&6; } | |
3ecd9f92 MW |
47889 | wxUSE_GSTREAMER="yes" |
47890 | fi | |
dae87f93 | 47891 | fi |
ce756cb0 | 47892 | |
f10e38c4 | 47893 | |
dae87f93 | 47894 | if test "$wxUSE_GSTREAMER" = "yes"; then |
c9a66001 | 47895 | CPPFLAGS="$GST_CFLAGS $CPPFLAGS" |
105a81f3 | 47896 | EXTRALIBS_MEDIA="$GST_LIBS" |
c9a66001 | 47897 | |
dae87f93 | 47898 | cat >>confdefs.h <<\_ACEOF |
ce756cb0 RN |
47899 | #define wxUSE_GSTREAMER 1 |
47900 | _ACEOF | |
47901 | ||
2f6c5bb5 VZ |
47902 | else |
47903 | USE_MEDIA=0 | |
ce756cb0 RN |
47904 | fi |
47905 | fi | |
2f6c5bb5 VZ |
47906 | |
47907 | if test $USE_MEDIA = 1; then | |
47908 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mediaplayer" | |
47909 | cat >>confdefs.h <<\_ACEOF | |
ce756cb0 RN |
47910 | #define wxUSE_MEDIACTRL 1 |
47911 | _ACEOF | |
47912 | ||
f03637a2 FM |
47913 | else |
47914 | if test "$wxUSE_MEDIACTRL" = "yes"; then | |
d589327a VZ |
47915 | { { echo "$as_me:$LINENO: error: GStreamer not available" >&5 |
47916 | echo "$as_me: error: GStreamer not available" >&2;} | |
f03637a2 FM |
47917 | { (exit 1); exit 1; }; } |
47918 | else | |
d589327a VZ |
47919 | { echo "$as_me:$LINENO: WARNING: GStreamer not available... disabling wxMediaCtrl" >&5 |
47920 | echo "$as_me: WARNING: GStreamer not available... disabling wxMediaCtrl" >&2;} | |
f03637a2 | 47921 | fi |
2f6c5bb5 | 47922 | fi |
ce756cb0 RN |
47923 | fi |
47924 | ||
47925 | ||
6ab6fc6e | 47926 | if test "$cross_compiling" != "no"; then |
a848cd7e SC |
47927 | OSINFO="\"$host\"" |
47928 | else | |
47929 | OSINFO=`uname -s -r -m` | |
47930 | OSINFO="\"$OSINFO\"" | |
47931 | fi | |
47932 | ||
47933 | cat >>confdefs.h <<_ACEOF | |
47934 | #define WXWIN_OS_DESCRIPTION $OSINFO | |
47935 | _ACEOF | |
47936 | ||
47937 | ||
47938 | ||
47939 | if test "x$prefix" != "xNONE"; then | |
47940 | wxPREFIX=$prefix | |
47941 | else | |
47942 | wxPREFIX=$ac_default_prefix | |
47943 | fi | |
47944 | ||
47945 | cat >>confdefs.h <<_ACEOF | |
47946 | #define wxINSTALL_PREFIX "$wxPREFIX" | |
47947 | _ACEOF | |
47948 | ||
47949 | ||
a848cd7e SC |
47950 | |
47951 | ||
bd630206 VZ |
47952 | STD_BASE_LIBS="base" |
47953 | STD_GUI_LIBS="" | |
47954 | BUILT_WX_LIBS="base" | |
1e6b2edf | 47955 | ALL_WX_LIBS="xrc stc gl media qa html adv core xml net base" |
a848cd7e | 47956 | |
bd630206 VZ |
47957 | if test "$wxUSE_SOCKETS" = "yes" ; then |
47958 | STD_BASE_LIBS="net $STD_BASE_LIBS" | |
47959 | BUILT_WX_LIBS="net $BUILT_WX_LIBS" | |
a848cd7e | 47960 | fi |
bd630206 VZ |
47961 | if test "$wxUSE_XML" = "yes" ; then |
47962 | STD_BASE_LIBS="xml $STD_BASE_LIBS" | |
47963 | BUILT_WX_LIBS="xml $BUILT_WX_LIBS" | |
54429bb3 | 47964 | fi |
a848cd7e | 47965 | |
bd630206 VZ |
47966 | if test "$wxUSE_GUI" = "yes"; then |
47967 | STD_GUI_LIBS="adv core" | |
6534efcf | 47968 | BUILT_WX_LIBS="$STD_GUI_LIBS $BUILT_WX_LIBS" |
bd630206 VZ |
47969 | |
47970 | if test "$wxUSE_DEBUGREPORT" = "yes" ; then | |
47971 | STD_GUI_LIBS="qa $STD_GUI_LIBS" | |
47972 | BUILT_WX_LIBS="qa $BUILT_WX_LIBS" | |
47973 | fi | |
bd630206 VZ |
47974 | if test "$wxUSE_HTML" = "yes" ; then |
47975 | STD_GUI_LIBS="html $STD_GUI_LIBS" | |
47976 | BUILT_WX_LIBS="html $BUILT_WX_LIBS" | |
47977 | fi | |
47978 | if test "$wxUSE_MEDIACTRL" = "yes" ; then | |
47979 | BUILT_WX_LIBS="media $BUILT_WX_LIBS" | |
47980 | fi | |
47981 | if test "$wxUSE_OPENGL" = "yes" ; then | |
47982 | BUILT_WX_LIBS="gl $BUILT_WX_LIBS" | |
47983 | fi | |
47984 | if test "$wxUSE_AUI" = "yes" ; then | |
47985 | BUILT_WX_LIBS="aui $BUILT_WX_LIBS" | |
47986 | fi | |
1c4293cb VZ |
47987 | if test "$wxUSE_PROPGRID" = "yes" ; then |
47988 | BUILT_WX_LIBS="propgrid $BUILT_WX_LIBS" | |
47989 | fi | |
d33ccbe1 VZ |
47990 | if test "$wxUSE_RIBBON" = "yes" ; then |
47991 | BUILT_WX_LIBS="ribbon $BUILT_WX_LIBS" | |
47992 | fi | |
d8a4a85e VZ |
47993 | if test "$wxUSE_RICHTEXT" = "yes" ; then |
47994 | BUILT_WX_LIBS="richtext $BUILT_WX_LIBS" | |
47995 | fi | |
bd630206 VZ |
47996 | if test "$wxUSE_STC" = "yes" ; then |
47997 | BUILT_WX_LIBS="stc $BUILT_WX_LIBS" | |
47998 | fi | |
47999 | if test "$wxUSE_XRC" = "yes" ; then | |
48000 | STD_GUI_LIBS="xrc $STD_GUI_LIBS" | |
48001 | BUILT_WX_LIBS="xrc $BUILT_WX_LIBS" | |
48002 | fi | |
a848cd7e SC |
48003 | fi |
48004 | ||
48005 | ||
48006 | ||
48007 | ||
48008 | ||
a848cd7e | 48009 | |
bd630206 | 48010 | |
d4fbe1d8 | 48011 | EXTRA_FRAMEWORKS= |
a848cd7e | 48012 | if test "$wxUSE_MAC" = 1 ; then |
5dcf30a0 | 48013 | if test "$USE_DARWIN" = 1; then |
d4fbe1d8 | 48014 | EXTRA_FRAMEWORKS="-framework IOKit -framework Carbon -framework Cocoa -framework AudioToolbox -framework System -framework OpenGL -framework QuickTime" |
5dcf30a0 | 48015 | fi |
a848cd7e | 48016 | fi |
f10f4c87 | 48017 | if test "$wxUSE_OLD_COCOA" = 1 ; then |
d4fbe1d8 | 48018 | EXTRA_FRAMEWORKS="-framework IOKit -framework Cocoa" |
4fc81cbc | 48019 | if test "$wxUSE_MEDIACTRL" = "yes"; then |
d4fbe1d8 | 48020 | EXTRA_FRAMEWORKS="$EXTRA_FRAMEWORKS -framework QuickTime" |
4fc81cbc | 48021 | fi |
a848cd7e | 48022 | fi |
f10f4c87 | 48023 | if test "$USE_DARWIN" = 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_OLD_COCOA" != 1 ; then |
d4fbe1d8 | 48024 | EXTRA_FRAMEWORKS="$EXTRA_FRAMEWORKS -framework IOKit -framework CoreServices -framework System -framework ApplicationServices" |
19b27e78 | 48025 | fi |
a848cd7e | 48026 | |
d4fbe1d8 VZ |
48027 | LDFLAGS="$LDFLAGS $EXTRA_FRAMEWORKS" |
48028 | WXCONFIG_LDFLAGS="$WXCONFIG_LDFLAGS $EXTRA_FRAMEWORKS" | |
48029 | ||
a848cd7e SC |
48030 | LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS" |
48031 | ||
a848cd7e SC |
48032 | if test "$wxUSE_GUI" = "yes"; then |
48033 | ||
48034 | ||
8bce5cda | 48035 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs drawing \ |
840b9ff5 | 48036 | erase event exec font image minimal render \ |
6f58b8f4 | 48037 | shaped svg taborder vscroll widgets wrapsizer" |
a848cd7e SC |
48038 | |
48039 | if test "$wxUSE_MONOLITHIC" != "yes"; then | |
48040 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console" | |
48041 | fi | |
0b78747f | 48042 | if test "$TOOLKIT" = "MSW"; then |
8bce5cda MW |
48043 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS regtest" |
48044 | if test "$wxUSE_UNIVERSAL" != "yes"; then | |
61aba460 | 48045 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw nativdlg dll" |
8bce5cda MW |
48046 | fi |
48047 | fi | |
48048 | if test "$TOOLKIT" = "PM" -a "$wxUSE_UNIVERSAL" != "yes"; then | |
48049 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw" | |
0b78747f | 48050 | fi |
a848cd7e SC |
48051 | else |
48052 | SAMPLES_SUBDIRS="console" | |
ac209a0f VZ |
48053 | if test "$wxUSE_SOCKETS" = "yes" ; then |
48054 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets" | |
48055 | fi | |
ebe887ed VZ |
48056 | if test "$wxUSE_IPC" = "yes" ; then |
48057 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ipc" | |
48058 | fi | |
a848cd7e SC |
48059 | fi |
48060 | ||
48061 | ||
48f625bc | 48062 | if test "x$INTELCC" = "xyes" ; then |
05622061 | 48063 | CWARNINGS="-Wall -wd810,869,981,1418,1572,1684,2259" |
17a1ebd1 VZ |
48064 | elif test "$GCC" = yes ; then |
48065 | CWARNINGS="-Wall -Wundef" | |
48066 | fi | |
48067 | ||
48f625bc | 48068 | if test "x$INTELCXX" = "xyes" ; then |
05622061 | 48069 | CXXWARNINGS="-Wall -wd279,383,444,810,869,981,1418,1419,1881,2259" |
17a1ebd1 | 48070 | elif test "$GXX" = yes ; then |
41148443 | 48071 | CXXWARNINGS="-Wall -Wundef -Wunused-parameter -Wno-ctor-dtor-privacy" |
d589327a VZ |
48072 | { echo "$as_me:$LINENO: checking CXXWARNINGS for gcc -Woverloaded-virtual" >&5 |
48073 | echo $ECHO_N "checking CXXWARNINGS for gcc -Woverloaded-virtual... $ECHO_C" >&6; } | |
41148443 | 48074 | if test "${ac_cv_cxxflags_gcc_option__Woverloaded_virtual+set}" = set; then |
d589327a | 48075 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
41148443 VZ |
48076 | else |
48077 | ac_cv_cxxflags_gcc_option__Woverloaded_virtual="no, unknown" | |
48078 | ||
48079 | ac_ext=cpp | |
48080 | ac_cpp='$CXXCPP $CPPFLAGS' | |
48081 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
48082 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
48083 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
48084 | ||
48085 | ac_save_CXXFLAGS="$CXXFLAGS" | |
48086 | for ac_arg in "-pedantic -Werror % -Woverloaded-virtual" "-pedantic % -Woverloaded-virtual %% no, obsolete" # | |
48087 | do CXXFLAGS="$ac_save_CXXFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'` | |
48088 | cat >conftest.$ac_ext <<_ACEOF | |
48089 | /* confdefs.h. */ | |
48090 | _ACEOF | |
48091 | cat confdefs.h >>conftest.$ac_ext | |
48092 | cat >>conftest.$ac_ext <<_ACEOF | |
48093 | /* end confdefs.h. */ | |
48094 | ||
48095 | int | |
48096 | main () | |
48097 | { | |
48098 | return 0; | |
48099 | ; | |
48100 | return 0; | |
48101 | } | |
48102 | _ACEOF | |
48103 | rm -f conftest.$ac_objext | |
48104 | if { (ac_try="$ac_compile" | |
48105 | case "(($ac_try" in | |
48106 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
48107 | *) ac_try_echo=$ac_try;; | |
48108 | esac | |
d589327a | 48109 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
41148443 VZ |
48110 | (eval "$ac_compile") 2>conftest.er1 |
48111 | ac_status=$? | |
48112 | grep -v '^ *+' conftest.er1 >conftest.err | |
48113 | rm -f conftest.er1 | |
48114 | cat conftest.err >&5 | |
d589327a | 48115 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
41148443 VZ |
48116 | (exit $ac_status); } && { |
48117 | test -z "$ac_cxx_werror_flag" || | |
48118 | test ! -s conftest.err | |
48119 | } && test -s conftest.$ac_objext; then | |
48120 | ac_cv_cxxflags_gcc_option__Woverloaded_virtual=`echo $ac_arg | sed -e 's,.*% *,,'` ; break | |
48121 | else | |
d589327a | 48122 | echo "$as_me: failed program was:" >&5 |
41148443 VZ |
48123 | sed 's/^/| /' conftest.$ac_ext >&5 |
48124 | ||
48125 | ||
48126 | fi | |
48127 | ||
48128 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
48129 | done | |
48130 | CXXFLAGS="$ac_save_CXXFLAGS" | |
48131 | ac_ext=c | |
48132 | ac_cpp='$CPP $CPPFLAGS' | |
48133 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
48134 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
48135 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
48136 | ||
48137 | ||
48138 | fi | |
d589327a VZ |
48139 | { echo "$as_me:$LINENO: result: $ac_cv_cxxflags_gcc_option__Woverloaded_virtual" >&5 |
48140 | echo "${ECHO_T}$ac_cv_cxxflags_gcc_option__Woverloaded_virtual" >&6; } | |
41148443 VZ |
48141 | case ".$ac_cv_cxxflags_gcc_option__Woverloaded_virtual" in |
48142 | .ok|.ok,*) ;; | |
48143 | .|.no|.no,*) ;; | |
48144 | *) | |
48145 | if echo " $CXXWARNINGS " | grep " $ac_cv_cxxflags_gcc_option__Woverloaded_virtual " 2>&1 >/dev/null | |
d589327a | 48146 | then { (echo "$as_me:$LINENO: : CXXWARNINGS does contain \$ac_cv_cxxflags_gcc_option__Woverloaded_virtual") >&5 |
41148443 VZ |
48147 | (: CXXWARNINGS does contain $ac_cv_cxxflags_gcc_option__Woverloaded_virtual) 2>&5 |
48148 | ac_status=$? | |
d589327a | 48149 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
41148443 | 48150 | (exit $ac_status); } |
d589327a | 48151 | else { (echo "$as_me:$LINENO: : CXXWARNINGS=\"\$CXXWARNINGS \$ac_cv_cxxflags_gcc_option__Woverloaded_virtual\"") >&5 |
41148443 VZ |
48152 | (: CXXWARNINGS="$CXXWARNINGS $ac_cv_cxxflags_gcc_option__Woverloaded_virtual") 2>&5 |
48153 | ac_status=$? | |
d589327a | 48154 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
41148443 VZ |
48155 | (exit $ac_status); } |
48156 | CXXWARNINGS="$CXXWARNINGS $ac_cv_cxxflags_gcc_option__Woverloaded_virtual" | |
48157 | fi | |
48158 | ;; | |
48159 | esac | |
48160 | ||
2ad61b03 VZ |
48161 | |
48162 | if test "$wxUSE_MAC" = 1 ; then | |
48163 | CXXWARNINGS="$CXXWARNINGS -Wno-deprecated-declarations" | |
48164 | fi | |
6ebeb4c7 | 48165 | fi |
a848cd7e | 48166 | |
a848cd7e | 48167 | |
5ff751d6 VZ |
48168 | WXCONFIG_CFLAGS=`echo $WXCONFIG_CFLAGS` |
48169 | WXCONFIG_CXXFLAGS=`echo $WXCONFIG_CFLAGS $WXCONFIG_CXXFLAGS` | |
48170 | ||
48171 | ||
c92ad099 | 48172 | CPPFLAGS=`echo $WXCONFIG_CPPFLAGS \ |
02b05020 | 48173 | -I\\${wx_top_builddir}/lib/wx/include/${TOOLCHAIN_FULLNAME} \ |
c92ad099 VZ |
48174 | -I\\${top_srcdir}/include $TOOLKIT_INCLUDE \ |
48175 | $CPPFLAGS ` | |
5ff751d6 | 48176 | |
8aeeb05c | 48177 | C_AND_CXX_FLAGS="$DEBUG_CFLAGS $PROFILE_FLAGS $OPTIMISE_CFLAGS" |
c92ad099 | 48178 | CFLAGS=`echo $WXCONFIG_CFLAGS $CWARNINGS $C_AND_CXX_FLAGS $CFLAGS ` |
b1b592ad | 48179 | CXXFLAGS=`echo $WXCONFIG_CXXFLAGS $C_AND_CXX_FLAGS $CXXFLAGS ` |
64d975b2 DE |
48180 | OBJCFLAGS=`echo $WXCONFIG_CFLAGS $CWARNINGS $C_AND_CXX_FLAGS $OBJCFLAGS ` |
48181 | OBJCXXFLAGS=`echo $WXCONFIG_CXXFLAGS $C_AND_CXX_FLAGS $OBJCXXFLAGS ` | |
5ff751d6 VZ |
48182 | |
48183 | WXCONFIG_CPPFLAGS=`echo $WXCONFIG_CPPFLAGS $WXCONFIG_ONLY_CPPFLAGS` | |
48184 | ||
a848cd7e | 48185 | |
95986553 DE |
48186 | if test "x$MWCC" = "xyes"; then |
48187 | ||
48188 | CC="$CC -cwd source -I-" | |
48189 | CXX="$CXX -cwd source -I-" | |
48190 | fi | |
48191 | ||
a848cd7e | 48192 | |
0c3c69fc | 48193 | LIBS=`echo $LIBS` |
a848cd7e SC |
48194 | EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS" |
48195 | EXTRALIBS_XML="$EXPAT_LINK" | |
48196 | EXTRALIBS_HTML="$MSPACK_LINK" | |
2f8711ed | 48197 | EXTRALIBS_MEDIA="$GST_LIBS" |
89b1afb4 | 48198 | EXTRALIBS_STC="-lwxscintilla${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX}" |
a848cd7e | 48199 | if test "$wxUSE_GUI" = "yes"; then |
2f8711ed | 48200 | EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $WEBKIT_LINK $EXTRALIBS_HILDON $EXTRALIBS_GNOMEVFS $EXTRALIBS_GNOMEPRINT` |
a848cd7e SC |
48201 | fi |
48202 | if test "$wxUSE_OPENGL" = "yes"; then | |
48203 | EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS" | |
48204 | fi | |
48205 | ||
8aeeb05c | 48206 | LDFLAGS="$LDFLAGS $PROFILE_FLAGS" |
a848cd7e | 48207 | |
5ff751d6 | 48208 | WXCONFIG_LIBS="$LIBS" |
a848cd7e SC |
48209 | |
48210 | if test "$wxUSE_REGEX" = "builtin" ; then | |
74802184 | 48211 | wxconfig_3rdparty="regex${lib_unicode_suffix} $wxconfig_3rdparty" |
a848cd7e SC |
48212 | fi |
48213 | if test "$wxUSE_EXPAT" = "builtin" ; then | |
74802184 | 48214 | wxconfig_3rdparty="expat $wxconfig_3rdparty" |
a848cd7e | 48215 | fi |
a848cd7e | 48216 | if test "$wxUSE_LIBTIFF" = "builtin" ; then |
74802184 | 48217 | wxconfig_3rdparty="tiff $wxconfig_3rdparty" |
a848cd7e SC |
48218 | fi |
48219 | if test "$wxUSE_LIBJPEG" = "builtin" ; then | |
74802184 | 48220 | wxconfig_3rdparty="jpeg $wxconfig_3rdparty" |
a848cd7e SC |
48221 | fi |
48222 | if test "$wxUSE_LIBPNG" = "builtin" ; then | |
74802184 | 48223 | wxconfig_3rdparty="png $wxconfig_3rdparty" |
a848cd7e SC |
48224 | fi |
48225 | if test "$wxUSE_ZLIB" = "builtin" ; then | |
74802184 | 48226 | wxconfig_3rdparty="zlib $wxconfig_3rdparty" |
a848cd7e SC |
48227 | fi |
48228 | ||
48229 | for i in $wxconfig_3rdparty ; do | |
89b1afb4 | 48230 | WXCONFIG_LIBS="-lwx${i}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX} $WXCONFIG_LIBS" |
a848cd7e SC |
48231 | done |
48232 | ||
48233 | ||
48234 | if test "x$wxUSE_UNIVERSAL" = "xyes" ; then | |
48235 | WXUNIV=1 | |
4353a8df VZ |
48236 | |
48237 | case "$wxUNIV_THEMES" in | |
48238 | ''|all) | |
48239 | cat >>confdefs.h <<\_ACEOF | |
48240 | #define wxUSE_ALL_THEMES 1 | |
48241 | _ACEOF | |
48242 | ||
48243 | ;; | |
48244 | ||
48245 | *) | |
435a5ad0 | 48246 | for t in `echo $wxUNIV_THEMES | tr , ' ' | tr '[a-z]' '[A-Z]'`; do |
4353a8df VZ |
48247 | cat >>confdefs.h <<_ACEOF |
48248 | #define wxUSE_THEME_$t 1 | |
48249 | _ACEOF | |
48250 | ||
48251 | done | |
48252 | esac | |
a848cd7e SC |
48253 | else |
48254 | WXUNIV=0 | |
48255 | fi | |
48256 | ||
48257 | ||
48258 | ||
48259 | ||
48260 | ||
48261 | ||
48262 | ||
48263 | ||
a848cd7e SC |
48264 | if test $wxUSE_MONOLITHIC = "yes" ; then |
48265 | MONOLITHIC=1 | |
48266 | else | |
48267 | MONOLITHIC=0 | |
48268 | fi | |
48269 | ||
48270 | if test $wxUSE_PLUGINS = "yes" ; then | |
48271 | USE_PLUGINS=1 | |
48272 | else | |
48273 | USE_PLUGINS=0 | |
48274 | fi | |
48275 | ||
16358932 VZ |
48276 | if test "$wxUSE_DEBUGREPORT" = "yes" ; then |
48277 | USE_QA=1 | |
48278 | else | |
48279 | USE_QA=0 | |
48280 | fi | |
48281 | ||
a848cd7e SC |
48282 | if test $wxUSE_OFFICIAL_BUILD = "yes" ; then |
48283 | OFFICIAL_BUILD=1 | |
48284 | else | |
48285 | OFFICIAL_BUILD=0 | |
48286 | fi | |
48287 | ||
48288 | ||
48289 | ||
48290 | ||
48291 | ||
48292 | ||
48293 | ||
48294 | ||
48295 | ||
48296 | ||
48297 | ||
48298 | ||
48299 | ||
48300 | ||
48301 | ||
48302 | ||
48303 | ||
48304 | ||
48305 | ||
ceec2216 | 48306 | |
d1c38808 | 48307 | |
3565d135 | 48308 | |
2b850ae1 | 48309 | |
b1b592ad | 48310 | |
2f8711ed | 48311 | |
a848cd7e SC |
48312 | |
48313 | ||
03773e40 | 48314 | TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr '[A-Z]' '[a-z]'` |
a848cd7e SC |
48315 | |
48316 | ||
48317 | ||
48318 | ||
48319 | ||
48320 | ||
48321 | ||
48322 | ||
516cf181 | 48323 | |
2fd71613 | 48324 | |
4d4ff94c VZ |
48325 | case "$TOOLKIT" in |
48326 | GTK) | |
c2e9ada4 | 48327 | TOOLKIT_DESC="GTK+" |
88262190 | 48328 | if test "$WXGTK2" = 1; then |
c2e9ada4 | 48329 | TOOLKIT_DESC="$TOOLKIT_DESC 2" |
bd8a7646 RR |
48330 | if test "$wxUSE_GTKPRINT" = "yes" ; then |
48331 | TOOLKIT_EXTRA="$TOOLKIT_EXTRA GTK+ printing"; | |
48332 | fi | |
c2e9ada4 VZ |
48333 | if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then |
48334 | TOOLKIT_EXTRA="$TOOLKIT_EXTRA gnomeprint"; | |
48335 | fi | |
48336 | if test "$wxUSE_LIBGNOMEVFS" = "yes" ; then | |
48337 | TOOLKIT_EXTRA="$TOOLKIT_EXTRA gnomevfs" | |
48338 | fi | |
48339 | if test "$wxUSE_LIBHILDON" = "yes"; then | |
48340 | TOOLKIT_EXTRA="$TOOLKIT_EXTRA hildon" | |
48341 | fi | |
426d19f1 JS |
48342 | if test "$wxUSE_LIBHILDON2" = "yes"; then |
48343 | TOOLKIT_EXTRA="$TOOLKIT_EXTRA hildon" | |
48344 | fi | |
c2e9ada4 VZ |
48345 | |
48346 | if test "$TOOLKIT_EXTRA" != ""; then | |
48347 | TOOLKIT_DESC="$TOOLKIT_DESC with support for `echo $TOOLKIT_EXTRA | tr -s ' '`" | |
48348 | fi | |
4d4ff94c | 48349 | fi |
9a8f0513 | 48350 | ;; |
4d4ff94c | 48351 | |
c2e9ada4 VZ |
48352 | ?*) |
48353 | TOOLKIT_DESC=$TOOLKIT_LOWERCASE | |
48354 | ;; | |
48355 | ||
4d4ff94c | 48356 | *) |
c2e9ada4 | 48357 | TOOLKIT_DESC="base only" |
9a8f0513 | 48358 | ;; |
4d4ff94c | 48359 | esac |
a848cd7e | 48360 | |
fb00f58d JS |
48361 | if test "$wxUSE_WINE" = "yes"; then |
48362 | BAKEFILE_FORCE_PLATFORM=win32 | |
48363 | fi | |
48364 | ||
a81d5bb6 MW |
48365 | if test "$wxUSE_UNICODE" = yes -a "$GCC" = yes -a "$bk_use_pch" != no |
48366 | then | |
d589327a VZ |
48367 | { echo "$as_me:$LINENO: checking for gcc precompiled header bug" >&5 |
48368 | echo $ECHO_N "checking for gcc precompiled header bug... $ECHO_C" >&6; } | |
a81d5bb6 | 48369 | if test "${wx_cv_gcc_pch_bug+set}" = set; then |
d589327a | 48370 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a81d5bb6 MW |
48371 | else |
48372 | ||
6d952fd7 MW |
48373 | echo '#include <stdio.h> |
48374 | const wchar_t test_var[] = L"awidetest";' > conftest.h | |
48375 | ||
48376 | echo '#include "conftest.h" | |
48377 | int main() | |
48378 | { | |
be49c6ec | 48379 | printf("%ls", test_var); |
6d952fd7 MW |
48380 | return 0; |
48381 | }' > conftest.cpp | |
48382 | ||
48383 | wx_cv_gcc_pch_bug="pch not supported" | |
a81d5bb6 | 48384 | |
b2983f42 | 48385 | if $CXX conftest.h >/dev/null 2>&1 |
a81d5bb6 | 48386 | then |
6d952fd7 | 48387 | wx_cv_gcc_pch_bug= |
a81d5bb6 | 48388 | |
6c7f5e56 | 48389 | if $CXX -o conftest$PROGRAM_EXT conftest.cpp >/dev/null 2>&1 |
a81d5bb6 | 48390 | then |
435a5ad0 | 48391 | if tr -dc '[a-z]' < conftest$PROGRAM_EXT | |
6c7f5e56 | 48392 | grep awidetest >/dev/null |
6d952fd7 MW |
48393 | then |
48394 | wx_cv_gcc_pch_bug=no | |
48395 | else | |
a81d5bb6 | 48396 | wx_cv_gcc_pch_bug=yes |
6d952fd7 | 48397 | fi |
a81d5bb6 MW |
48398 | fi |
48399 | fi | |
48400 | ||
6c7f5e56 | 48401 | rm -f conftest.h conftest.gch conftest.cpp conftest$PROGRAM_EXT |
a81d5bb6 MW |
48402 | |
48403 | fi | |
d589327a VZ |
48404 | { echo "$as_me:$LINENO: result: $wx_cv_gcc_pch_bug" >&5 |
48405 | echo "${ECHO_T}$wx_cv_gcc_pch_bug" >&6; } | |
a81d5bb6 MW |
48406 | |
48407 | if test "$wx_cv_gcc_pch_bug" = yes; then | |
48408 | bk_use_pch=no | |
48409 | fi | |
48410 | fi | |
48411 | ||
9a8f0513 | 48412 | |
1e9e8aba DE |
48413 | |
48414 | ||
5b8deaba VZ |
48415 | |
48416 | ||
48417 | ||
a848cd7e | 48418 | if test "x$BAKEFILE_HOST" = "x"; then |
f10e38c4 | 48419 | if test "x${host}" = "x" ; then |
d589327a VZ |
48420 | { { echo "$as_me:$LINENO: error: You must call the autoconf \"CANONICAL_HOST\" macro in your configure.ac (or .in) file." >&5 |
48421 | echo "$as_me: error: You must call the autoconf \"CANONICAL_HOST\" macro in your configure.ac (or .in) file." >&2;} | |
f10e38c4 VZ |
48422 | { (exit 1); exit 1; }; } |
48423 | fi | |
48424 | ||
a848cd7e SC |
48425 | BAKEFILE_HOST="${host}" |
48426 | fi | |
48427 | ||
48428 | if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then | |
48429 | ||
48430 | if test -n "$ac_tool_prefix"; then | |
48431 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
48432 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
d589327a VZ |
48433 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
48434 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
a848cd7e | 48435 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
d589327a | 48436 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a848cd7e SC |
48437 | else |
48438 | if test -n "$RANLIB"; then | |
48439 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
48440 | else | |
48441 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
48442 | for as_dir in $PATH | |
48443 | do | |
48444 | IFS=$as_save_IFS | |
48445 | test -z "$as_dir" && as_dir=. | |
48446 | for ac_exec_ext in '' $ac_executable_extensions; do | |
47964710 | 48447 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
a848cd7e | 48448 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
d589327a | 48449 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
a848cd7e SC |
48450 | break 2 |
48451 | fi | |
48452 | done | |
48453 | done | |
47964710 | 48454 | IFS=$as_save_IFS |
a848cd7e SC |
48455 | |
48456 | fi | |
48457 | fi | |
48458 | RANLIB=$ac_cv_prog_RANLIB | |
48459 | if test -n "$RANLIB"; then | |
d589327a VZ |
48460 | { echo "$as_me:$LINENO: result: $RANLIB" >&5 |
48461 | echo "${ECHO_T}$RANLIB" >&6; } | |
a848cd7e | 48462 | else |
d589327a VZ |
48463 | { echo "$as_me:$LINENO: result: no" >&5 |
48464 | echo "${ECHO_T}no" >&6; } | |
a848cd7e SC |
48465 | fi |
48466 | ||
47964710 | 48467 | |
a848cd7e SC |
48468 | fi |
48469 | if test -z "$ac_cv_prog_RANLIB"; then | |
48470 | ac_ct_RANLIB=$RANLIB | |
48471 | # Extract the first word of "ranlib", so it can be a program name with args. | |
48472 | set dummy ranlib; ac_word=$2 | |
d589327a VZ |
48473 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
48474 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
a848cd7e | 48475 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
d589327a | 48476 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a848cd7e SC |
48477 | else |
48478 | if test -n "$ac_ct_RANLIB"; then | |
48479 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
48480 | else | |
48481 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
48482 | for as_dir in $PATH | |
48483 | do | |
48484 | IFS=$as_save_IFS | |
48485 | test -z "$as_dir" && as_dir=. | |
48486 | for ac_exec_ext in '' $ac_executable_extensions; do | |
47964710 | 48487 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
a848cd7e | 48488 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
d589327a | 48489 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
a848cd7e SC |
48490 | break 2 |
48491 | fi | |
48492 | done | |
48493 | done | |
47964710 | 48494 | IFS=$as_save_IFS |
a848cd7e | 48495 | |
a848cd7e SC |
48496 | fi |
48497 | fi | |
48498 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
48499 | if test -n "$ac_ct_RANLIB"; then | |
d589327a VZ |
48500 | { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
48501 | echo "${ECHO_T}$ac_ct_RANLIB" >&6; } | |
a848cd7e | 48502 | else |
d589327a VZ |
48503 | { echo "$as_me:$LINENO: result: no" >&5 |
48504 | echo "${ECHO_T}no" >&6; } | |
a848cd7e SC |
48505 | fi |
48506 | ||
47964710 VS |
48507 | if test "x$ac_ct_RANLIB" = x; then |
48508 | RANLIB=":" | |
48509 | else | |
48510 | case $cross_compiling:$ac_tool_warned in | |
48511 | yes:) | |
d589327a VZ |
48512 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
48513 | whose name does not start with the host triplet. If you think this | |
48514 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
48515 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | |
48516 | whose name does not start with the host triplet. If you think this | |
48517 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
47964710 VS |
48518 | ac_tool_warned=yes ;; |
48519 | esac | |
48520 | RANLIB=$ac_ct_RANLIB | |
48521 | fi | |
a848cd7e SC |
48522 | else |
48523 | RANLIB="$ac_cv_prog_RANLIB" | |
48524 | fi | |
48525 | ||
48526 | # Find a good install program. We prefer a C program (faster), | |
48527 | # so one script is as good as another. But avoid the broken or | |
48528 | # incompatible versions: | |
48529 | # SysV /etc/install, /usr/sbin/install | |
48530 | # SunOS /usr/etc/install | |
48531 | # IRIX /sbin/install | |
48532 | # AIX /bin/install | |
48533 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
48534 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
48535 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
48536 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
ac1cb8d3 | 48537 | # OS/2's system install, which has a completely different semantic |
a848cd7e | 48538 | # ./install, which can be erroneously created by make from ./install.sh. |
d589327a VZ |
48539 | { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
48540 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } | |
a848cd7e SC |
48541 | if test -z "$INSTALL"; then |
48542 | if test "${ac_cv_path_install+set}" = set; then | |
d589327a | 48543 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a848cd7e SC |
48544 | else |
48545 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
48546 | for as_dir in $PATH | |
48547 | do | |
48548 | IFS=$as_save_IFS | |
48549 | test -z "$as_dir" && as_dir=. | |
48550 | # Account for people who put trailing slashes in PATH elements. | |
48551 | case $as_dir/ in | |
48552 | ./ | .// | /cC/* | \ | |
48553 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
ac1cb8d3 | 48554 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
a848cd7e SC |
48555 | /usr/ucb/* ) ;; |
48556 | *) | |
48557 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
48558 | # Don't use installbsd from OSF since it installs stuff as root | |
48559 | # by default. | |
48560 | for ac_prog in ginstall scoinst install; do | |
48561 | for ac_exec_ext in '' $ac_executable_extensions; do | |
47964710 | 48562 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
ac1cb8d3 VS |
48563 | if test $ac_prog = install && |
48564 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
48565 | # AIX install. It has an incompatible calling convention. | |
48566 | : | |
48567 | elif test $ac_prog = install && | |
48568 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
48569 | # program-specific install script used by HP pwplus--don't use. | |
48570 | : | |
48571 | else | |
d589327a VZ |
48572 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
48573 | break 3 | |
ac1cb8d3 VS |
48574 | fi |
48575 | fi | |
a848cd7e SC |
48576 | done |
48577 | done | |
48578 | ;; | |
48579 | esac | |
48580 | done | |
47964710 | 48581 | IFS=$as_save_IFS |
a848cd7e SC |
48582 | |
48583 | ||
48584 | fi | |
48585 | if test "${ac_cv_path_install+set}" = set; then | |
48586 | INSTALL=$ac_cv_path_install | |
48587 | else | |
47964710 VS |
48588 | # As a last resort, use the slow shell script. Don't cache a |
48589 | # value for INSTALL within a source directory, because that will | |
a848cd7e | 48590 | # break other packages using the cache if that directory is |
47964710 | 48591 | # removed, or if the value is a relative name. |
a848cd7e SC |
48592 | INSTALL=$ac_install_sh |
48593 | fi | |
48594 | fi | |
d589327a VZ |
48595 | { echo "$as_me:$LINENO: result: $INSTALL" >&5 |
48596 | echo "${ECHO_T}$INSTALL" >&6; } | |
a848cd7e SC |
48597 | |
48598 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
48599 | # It thinks the first close brace ends the variable substitution. | |
48600 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
48601 | ||
48602 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
48603 | ||
48604 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
48605 | ||
d589327a VZ |
48606 | { echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
48607 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } | |
a848cd7e SC |
48608 | LN_S=$as_ln_s |
48609 | if test "$LN_S" = "ln -s"; then | |
d589327a VZ |
48610 | { echo "$as_me:$LINENO: result: yes" >&5 |
48611 | echo "${ECHO_T}yes" >&6; } | |
a848cd7e | 48612 | else |
d589327a VZ |
48613 | { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
48614 | echo "${ECHO_T}no, using $LN_S" >&6; } | |
a848cd7e SC |
48615 | fi |
48616 | ||
48617 | ||
d589327a VZ |
48618 | { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
48619 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } | |
48620 | set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
47964710 | 48621 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then |
d589327a | 48622 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a848cd7e SC |
48623 | else |
48624 | cat >conftest.make <<\_ACEOF | |
47964710 | 48625 | SHELL = /bin/sh |
a848cd7e | 48626 | all: |
47964710 | 48627 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
a848cd7e SC |
48628 | _ACEOF |
48629 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
47964710 VS |
48630 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
48631 | *@@@%%%=?*=@@@%%%*) | |
48632 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
48633 | *) | |
48634 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
48635 | esac | |
a848cd7e SC |
48636 | rm -f conftest.make |
48637 | fi | |
47964710 | 48638 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
d589327a VZ |
48639 | { echo "$as_me:$LINENO: result: yes" >&5 |
48640 | echo "${ECHO_T}yes" >&6; } | |
a848cd7e SC |
48641 | SET_MAKE= |
48642 | else | |
d589327a VZ |
48643 | { echo "$as_me:$LINENO: result: no" >&5 |
48644 | echo "${ECHO_T}no" >&6; } | |
a848cd7e SC |
48645 | SET_MAKE="MAKE=${MAKE-make}" |
48646 | fi | |
48647 | ||
48648 | ||
48649 | ||
a485900c | 48650 | if test "x$SUNCXX" = "xyes"; then |
a48b6595 VZ |
48651 | AR=$CXX |
48652 | AROPTIONS="-xar -o" | |
48653 | ||
48654 | elif test "x$SGICC" = "xyes"; then | |
48655 | AR=$CXX | |
48656 | AROPTIONS="-ar -o" | |
a485900c | 48657 | |
a485900c VZ |
48658 | else |
48659 | if test -n "$ac_tool_prefix"; then | |
a848cd7e SC |
48660 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
48661 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
d589327a VZ |
48662 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
48663 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
a848cd7e | 48664 | if test "${ac_cv_prog_AR+set}" = set; then |
d589327a | 48665 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a848cd7e SC |
48666 | else |
48667 | if test -n "$AR"; then | |
48668 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
48669 | else | |
48670 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
48671 | for as_dir in $PATH | |
48672 | do | |
48673 | IFS=$as_save_IFS | |
48674 | test -z "$as_dir" && as_dir=. | |
48675 | for ac_exec_ext in '' $ac_executable_extensions; do | |
47964710 | 48676 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
a848cd7e | 48677 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
d589327a | 48678 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
a848cd7e SC |
48679 | break 2 |
48680 | fi | |
48681 | done | |
48682 | done | |
47964710 | 48683 | IFS=$as_save_IFS |
a848cd7e SC |
48684 | |
48685 | fi | |
48686 | fi | |
48687 | AR=$ac_cv_prog_AR | |
48688 | if test -n "$AR"; then | |
d589327a VZ |
48689 | { echo "$as_me:$LINENO: result: $AR" >&5 |
48690 | echo "${ECHO_T}$AR" >&6; } | |
a848cd7e | 48691 | else |
d589327a VZ |
48692 | { echo "$as_me:$LINENO: result: no" >&5 |
48693 | echo "${ECHO_T}no" >&6; } | |
a848cd7e SC |
48694 | fi |
48695 | ||
47964710 | 48696 | |
a848cd7e SC |
48697 | fi |
48698 | if test -z "$ac_cv_prog_AR"; then | |
48699 | ac_ct_AR=$AR | |
48700 | # Extract the first word of "ar", so it can be a program name with args. | |
48701 | set dummy ar; ac_word=$2 | |
d589327a VZ |
48702 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
48703 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
a848cd7e | 48704 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then |
d589327a | 48705 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a848cd7e SC |
48706 | else |
48707 | if test -n "$ac_ct_AR"; then | |
48708 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
48709 | else | |
48710 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
48711 | for as_dir in $PATH | |
48712 | do | |
48713 | IFS=$as_save_IFS | |
48714 | test -z "$as_dir" && as_dir=. | |
48715 | for ac_exec_ext in '' $ac_executable_extensions; do | |
47964710 | 48716 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
a848cd7e | 48717 | ac_cv_prog_ac_ct_AR="ar" |
d589327a | 48718 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
a848cd7e SC |
48719 | break 2 |
48720 | fi | |
48721 | done | |
48722 | done | |
47964710 | 48723 | IFS=$as_save_IFS |
a848cd7e | 48724 | |
a848cd7e SC |
48725 | fi |
48726 | fi | |
48727 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
48728 | if test -n "$ac_ct_AR"; then | |
d589327a VZ |
48729 | { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 |
48730 | echo "${ECHO_T}$ac_ct_AR" >&6; } | |
a848cd7e | 48731 | else |
d589327a VZ |
48732 | { echo "$as_me:$LINENO: result: no" >&5 |
48733 | echo "${ECHO_T}no" >&6; } | |
a848cd7e SC |
48734 | fi |
48735 | ||
47964710 VS |
48736 | if test "x$ac_ct_AR" = x; then |
48737 | AR="ar" | |
48738 | else | |
48739 | case $cross_compiling:$ac_tool_warned in | |
48740 | yes:) | |
d589327a VZ |
48741 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
48742 | whose name does not start with the host triplet. If you think this | |
48743 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
48744 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | |
48745 | whose name does not start with the host triplet. If you think this | |
48746 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
47964710 VS |
48747 | ac_tool_warned=yes ;; |
48748 | esac | |
48749 | AR=$ac_ct_AR | |
48750 | fi | |
a848cd7e SC |
48751 | else |
48752 | AR="$ac_cv_prog_AR" | |
48753 | fi | |
48754 | ||
a485900c VZ |
48755 | AROPTIONS=rcu |
48756 | fi | |
48757 | ||
48758 | ||
a848cd7e SC |
48759 | if test -n "$ac_tool_prefix"; then |
48760 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
48761 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
d589327a VZ |
48762 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
48763 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
a848cd7e | 48764 | if test "${ac_cv_prog_STRIP+set}" = set; then |
d589327a | 48765 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a848cd7e SC |
48766 | else |
48767 | if test -n "$STRIP"; then | |
48768 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
48769 | else | |
48770 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
48771 | for as_dir in $PATH | |
48772 | do | |
48773 | IFS=$as_save_IFS | |
48774 | test -z "$as_dir" && as_dir=. | |
48775 | for ac_exec_ext in '' $ac_executable_extensions; do | |
47964710 | 48776 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
a848cd7e | 48777 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
d589327a | 48778 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
a848cd7e SC |
48779 | break 2 |
48780 | fi | |
48781 | done | |
48782 | done | |
47964710 | 48783 | IFS=$as_save_IFS |
a848cd7e SC |
48784 | |
48785 | fi | |
48786 | fi | |
48787 | STRIP=$ac_cv_prog_STRIP | |
48788 | if test -n "$STRIP"; then | |
d589327a VZ |
48789 | { echo "$as_me:$LINENO: result: $STRIP" >&5 |
48790 | echo "${ECHO_T}$STRIP" >&6; } | |
a848cd7e | 48791 | else |
d589327a VZ |
48792 | { echo "$as_me:$LINENO: result: no" >&5 |
48793 | echo "${ECHO_T}no" >&6; } | |
a848cd7e SC |
48794 | fi |
48795 | ||
47964710 | 48796 | |
a848cd7e SC |
48797 | fi |
48798 | if test -z "$ac_cv_prog_STRIP"; then | |
48799 | ac_ct_STRIP=$STRIP | |
48800 | # Extract the first word of "strip", so it can be a program name with args. | |
48801 | set dummy strip; ac_word=$2 | |
d589327a VZ |
48802 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
48803 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
a848cd7e | 48804 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
d589327a | 48805 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a848cd7e SC |
48806 | else |
48807 | if test -n "$ac_ct_STRIP"; then | |
48808 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
48809 | else | |
48810 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
48811 | for as_dir in $PATH | |
48812 | do | |
48813 | IFS=$as_save_IFS | |
48814 | test -z "$as_dir" && as_dir=. | |
48815 | for ac_exec_ext in '' $ac_executable_extensions; do | |
47964710 | 48816 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
a848cd7e | 48817 | ac_cv_prog_ac_ct_STRIP="strip" |
d589327a | 48818 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
a848cd7e SC |
48819 | break 2 |
48820 | fi | |
48821 | done | |
48822 | done | |
47964710 | 48823 | IFS=$as_save_IFS |
a848cd7e | 48824 | |
a848cd7e SC |
48825 | fi |
48826 | fi | |
48827 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
48828 | if test -n "$ac_ct_STRIP"; then | |
d589327a VZ |
48829 | { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
48830 | echo "${ECHO_T}$ac_ct_STRIP" >&6; } | |
a848cd7e | 48831 | else |
d589327a VZ |
48832 | { echo "$as_me:$LINENO: result: no" >&5 |
48833 | echo "${ECHO_T}no" >&6; } | |
a848cd7e SC |
48834 | fi |
48835 | ||
47964710 VS |
48836 | if test "x$ac_ct_STRIP" = x; then |
48837 | STRIP=":" | |
48838 | else | |
48839 | case $cross_compiling:$ac_tool_warned in | |
48840 | yes:) | |
d589327a VZ |
48841 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
48842 | whose name does not start with the host triplet. If you think this | |
48843 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
48844 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | |
48845 | whose name does not start with the host triplet. If you think this | |
48846 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
47964710 VS |
48847 | ac_tool_warned=yes ;; |
48848 | esac | |
48849 | STRIP=$ac_ct_STRIP | |
48850 | fi | |
a848cd7e SC |
48851 | else |
48852 | STRIP="$ac_cv_prog_STRIP" | |
48853 | fi | |
48854 | ||
48855 | if test -n "$ac_tool_prefix"; then | |
48856 | # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args. | |
48857 | set dummy ${ac_tool_prefix}nm; ac_word=$2 | |
d589327a VZ |
48858 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
48859 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
a848cd7e | 48860 | if test "${ac_cv_prog_NM+set}" = set; then |
d589327a | 48861 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a848cd7e SC |
48862 | else |
48863 | if test -n "$NM"; then | |
48864 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
48865 | else | |
48866 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
48867 | for as_dir in $PATH | |
48868 | do | |
48869 | IFS=$as_save_IFS | |
48870 | test -z "$as_dir" && as_dir=. | |
48871 | for ac_exec_ext in '' $ac_executable_extensions; do | |
47964710 | 48872 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
a848cd7e | 48873 | ac_cv_prog_NM="${ac_tool_prefix}nm" |
d589327a | 48874 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
a848cd7e SC |
48875 | break 2 |
48876 | fi | |
48877 | done | |
48878 | done | |
47964710 | 48879 | IFS=$as_save_IFS |
a848cd7e SC |
48880 | |
48881 | fi | |
48882 | fi | |
48883 | NM=$ac_cv_prog_NM | |
48884 | if test -n "$NM"; then | |
d589327a VZ |
48885 | { echo "$as_me:$LINENO: result: $NM" >&5 |
48886 | echo "${ECHO_T}$NM" >&6; } | |
a848cd7e | 48887 | else |
d589327a VZ |
48888 | { echo "$as_me:$LINENO: result: no" >&5 |
48889 | echo "${ECHO_T}no" >&6; } | |
a848cd7e SC |
48890 | fi |
48891 | ||
47964710 | 48892 | |
a848cd7e SC |
48893 | fi |
48894 | if test -z "$ac_cv_prog_NM"; then | |
48895 | ac_ct_NM=$NM | |
48896 | # Extract the first word of "nm", so it can be a program name with args. | |
48897 | set dummy nm; ac_word=$2 | |
d589327a VZ |
48898 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
48899 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
a848cd7e | 48900 | if test "${ac_cv_prog_ac_ct_NM+set}" = set; then |
d589327a | 48901 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a848cd7e SC |
48902 | else |
48903 | if test -n "$ac_ct_NM"; then | |
48904 | ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test. | |
48905 | else | |
48906 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
48907 | for as_dir in $PATH | |
48908 | do | |
48909 | IFS=$as_save_IFS | |
48910 | test -z "$as_dir" && as_dir=. | |
48911 | for ac_exec_ext in '' $ac_executable_extensions; do | |
47964710 | 48912 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
a848cd7e | 48913 | ac_cv_prog_ac_ct_NM="nm" |
d589327a | 48914 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
a848cd7e SC |
48915 | break 2 |
48916 | fi | |
48917 | done | |
48918 | done | |
47964710 | 48919 | IFS=$as_save_IFS |
a848cd7e | 48920 | |
a848cd7e SC |
48921 | fi |
48922 | fi | |
48923 | ac_ct_NM=$ac_cv_prog_ac_ct_NM | |
48924 | if test -n "$ac_ct_NM"; then | |
d589327a VZ |
48925 | { echo "$as_me:$LINENO: result: $ac_ct_NM" >&5 |
48926 | echo "${ECHO_T}$ac_ct_NM" >&6; } | |
a848cd7e | 48927 | else |
d589327a VZ |
48928 | { echo "$as_me:$LINENO: result: no" >&5 |
48929 | echo "${ECHO_T}no" >&6; } | |
a848cd7e SC |
48930 | fi |
48931 | ||
47964710 VS |
48932 | if test "x$ac_ct_NM" = x; then |
48933 | NM=":" | |
48934 | else | |
48935 | case $cross_compiling:$ac_tool_warned in | |
48936 | yes:) | |
d589327a VZ |
48937 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
48938 | whose name does not start with the host triplet. If you think this | |
48939 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
48940 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | |
48941 | whose name does not start with the host triplet. If you think this | |
48942 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
47964710 VS |
48943 | ac_tool_warned=yes ;; |
48944 | esac | |
48945 | NM=$ac_ct_NM | |
48946 | fi | |
a848cd7e SC |
48947 | else |
48948 | NM="$ac_cv_prog_NM" | |
48949 | fi | |
48950 | ||
48951 | ||
d589327a VZ |
48952 | { echo "$as_me:$LINENO: checking for command to install directories" >&5 |
48953 | echo $ECHO_N "checking for command to install directories... $ECHO_C" >&6; } | |
5b8deaba VZ |
48954 | INSTALL_TEST_DIR=acbftest$$ |
48955 | $INSTALL -d $INSTALL_TEST_DIR > /dev/null 2>&1 | |
48956 | if test $? = 0 -a -d $INSTALL_TEST_DIR; then | |
48957 | rmdir $INSTALL_TEST_DIR | |
48958 | INSTALL_DIR='$(INSTALL) -d' | |
d589327a VZ |
48959 | { echo "$as_me:$LINENO: result: $INSTALL -d" >&5 |
48960 | echo "${ECHO_T}$INSTALL -d" >&6; } | |
5b8deaba VZ |
48961 | else |
48962 | INSTALL_DIR="mkdir -p" | |
d589327a VZ |
48963 | { echo "$as_me:$LINENO: result: mkdir -p" >&5 |
48964 | echo "${ECHO_T}mkdir -p" >&6; } | |
5b8deaba | 48965 | fi |
a848cd7e SC |
48966 | |
48967 | ||
48968 | LDFLAGS_GUI= | |
48969 | case ${BAKEFILE_HOST} in | |
48970 | *-*-cygwin* | *-*-mingw32* ) | |
48971 | LDFLAGS_GUI="-mwindows" | |
48972 | esac | |
48973 | ||
48974 | ||
48975 | fi | |
48976 | ||
d589327a VZ |
48977 | { echo "$as_me:$LINENO: checking if make is GNU make" >&5 |
48978 | echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6; } | |
a848cd7e | 48979 | if test "${bakefile_cv_prog_makeisgnu+set}" = set; then |
d589327a | 48980 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a848cd7e SC |
48981 | else |
48982 | ||
48983 | if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null | | |
48984 | egrep -s GNU > /dev/null); then | |
48985 | bakefile_cv_prog_makeisgnu="yes" | |
48986 | else | |
48987 | bakefile_cv_prog_makeisgnu="no" | |
48988 | fi | |
48989 | ||
48990 | fi | |
d589327a VZ |
48991 | { echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5 |
48992 | echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6; } | |
a848cd7e SC |
48993 | |
48994 | if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then | |
48995 | IF_GNU_MAKE="" | |
48996 | else | |
48997 | IF_GNU_MAKE="#" | |
48998 | fi | |
48999 | ||
49000 | ||
49001 | ||
49002 | PLATFORM_UNIX=0 | |
49003 | PLATFORM_WIN32=0 | |
49004 | PLATFORM_MSDOS=0 | |
49005 | PLATFORM_MAC=0 | |
1e9e8aba | 49006 | PLATFORM_MACOS=0 |
a848cd7e SC |
49007 | PLATFORM_MACOSX=0 |
49008 | PLATFORM_OS2=0 | |
1e9e8aba | 49009 | PLATFORM_BEOS=0 |
a848cd7e SC |
49010 | |
49011 | if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then | |
49012 | case "${BAKEFILE_HOST}" in | |
810b94f0 | 49013 | *-*-mingw32* ) |
a848cd7e SC |
49014 | PLATFORM_WIN32=1 |
49015 | ;; | |
49016 | *-pc-msdosdjgpp ) | |
49017 | PLATFORM_MSDOS=1 | |
49018 | ;; | |
49019 | *-pc-os2_emx | *-pc-os2-emx ) | |
49020 | PLATFORM_OS2=1 | |
49021 | ;; | |
47bd5406 | 49022 | *-*-darwin* ) |
a848cd7e SC |
49023 | PLATFORM_MAC=1 |
49024 | PLATFORM_MACOSX=1 | |
49025 | ;; | |
1e9e8aba DE |
49026 | *-*-beos* ) |
49027 | PLATFORM_BEOS=1 | |
49028 | ;; | |
49029 | powerpc-apple-macos* ) | |
49030 | PLATFORM_MAC=1 | |
49031 | PLATFORM_MACOS=1 | |
49032 | ;; | |
a848cd7e SC |
49033 | * ) |
49034 | PLATFORM_UNIX=1 | |
49035 | ;; | |
49036 | esac | |
49037 | else | |
49038 | case "$BAKEFILE_FORCE_PLATFORM" in | |
49039 | win32 ) | |
49040 | PLATFORM_WIN32=1 | |
49041 | ;; | |
49042 | msdos ) | |
49043 | PLATFORM_MSDOS=1 | |
49044 | ;; | |
49045 | os2 ) | |
49046 | PLATFORM_OS2=1 | |
49047 | ;; | |
49048 | darwin ) | |
49049 | PLATFORM_MAC=1 | |
49050 | PLATFORM_MACOSX=1 | |
49051 | ;; | |
49052 | unix ) | |
49053 | PLATFORM_UNIX=1 | |
49054 | ;; | |
1e9e8aba DE |
49055 | beos ) |
49056 | PLATFORM_BEOS=1 | |
49057 | ;; | |
a848cd7e | 49058 | * ) |
fcc9ca7f KO |
49059 | { { echo "$as_me:$LINENO: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&5 |
49060 | echo "$as_me: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&2;} | |
49061 | { (exit 1); exit 1; }; } | |
49062 | ;; | |
a848cd7e SC |
49063 | esac |
49064 | fi | |
49065 | ||
49066 | ||
49067 | ||
49068 | ||
49069 | ||
49070 | ||
49071 | ||
49072 | ||
49073 | ||
1e9e8aba DE |
49074 | |
49075 | ||
47964710 | 49076 | # Check whether --enable-omf was given. |
a848cd7e | 49077 | if test "${enable_omf+set}" = set; then |
47964710 VS |
49078 | enableval=$enable_omf; bk_os2_use_omf="$enableval" |
49079 | fi | |
49080 | ||
a848cd7e SC |
49081 | |
49082 | case "${BAKEFILE_HOST}" in | |
49083 | *-*-darwin* ) | |
47bd5406 VZ |
49084 | if test "x$GCC" = "xyes"; then |
49085 | CFLAGS="$CFLAGS -fno-common" | |
49086 | CXXFLAGS="$CXXFLAGS -fno-common" | |
49087 | fi | |
49088 | if test "x$XLCC" = "xyes"; then | |
49089 | CFLAGS="$CFLAGS -qnocommon" | |
49090 | CXXFLAGS="$CXXFLAGS -qnocommon" | |
49091 | fi | |
a848cd7e SC |
49092 | ;; |
49093 | ||
49094 | *-pc-os2_emx | *-pc-os2-emx ) | |
49095 | if test "x$bk_os2_use_omf" = "xyes" ; then | |
49096 | AR=emxomfar | |
49097 | RANLIB=: | |
49098 | LDFLAGS="-Zomf $LDFLAGS" | |
49099 | CFLAGS="-Zomf $CFLAGS" | |
49100 | CXXFLAGS="-Zomf $CXXFLAGS" | |
49101 | OS2_LIBEXT="lib" | |
49102 | else | |
49103 | OS2_LIBEXT="a" | |
49104 | fi | |
49105 | ;; | |
1e9e8aba DE |
49106 | |
49107 | i*86-*-beos* ) | |
49108 | LDFLAGS="-L/boot/develop/lib/x86 $LDFLAGS" | |
49109 | ;; | |
a848cd7e SC |
49110 | esac |
49111 | ||
49112 | ||
49113 | SO_SUFFIX="so" | |
49114 | SO_SUFFIX_MODULE="so" | |
49115 | EXEEXT="" | |
49116 | LIBPREFIX="lib" | |
49117 | LIBEXT=".a" | |
49118 | DLLPREFIX="lib" | |
49119 | DLLPREFIX_MODULE="" | |
49120 | DLLIMP_SUFFIX="" | |
810b94f0 | 49121 | dlldir="$libdir" |
a848cd7e SC |
49122 | |
49123 | case "${BAKEFILE_HOST}" in | |
41148443 VZ |
49124 | ia64-hp-hpux* ) |
49125 | ;; | |
a848cd7e SC |
49126 | *-hp-hpux* ) |
49127 | SO_SUFFIX="sl" | |
49128 | SO_SUFFIX_MODULE="sl" | |
49129 | ;; | |
49130 | *-*-aix* ) | |
49131 | SO_SUFFIX="a" | |
49132 | SO_SUFFIX_MODULE="a" | |
49133 | ;; | |
810b94f0 MW |
49134 | *-*-cygwin* ) |
49135 | SO_SUFFIX="dll" | |
49136 | SO_SUFFIX_MODULE="dll" | |
49137 | DLLIMP_SUFFIX="dll.a" | |
49138 | EXEEXT=".exe" | |
49139 | DLLPREFIX="cyg" | |
49140 | dlldir="$bindir" | |
49141 | ;; | |
49142 | *-*-mingw32* ) | |
a848cd7e SC |
49143 | SO_SUFFIX="dll" |
49144 | SO_SUFFIX_MODULE="dll" | |
49145 | DLLIMP_SUFFIX="dll.a" | |
49146 | EXEEXT=".exe" | |
49147 | DLLPREFIX="" | |
810b94f0 | 49148 | dlldir="$bindir" |
a848cd7e SC |
49149 | ;; |
49150 | *-pc-msdosdjgpp ) | |
49151 | EXEEXT=".exe" | |
49152 | DLLPREFIX="" | |
810b94f0 | 49153 | dlldir="$bindir" |
a848cd7e SC |
49154 | ;; |
49155 | *-pc-os2_emx | *-pc-os2-emx ) | |
49156 | SO_SUFFIX="dll" | |
49157 | SO_SUFFIX_MODULE="dll" | |
49158 | DLLIMP_SUFFIX=$OS2_LIBEXT | |
49159 | EXEEXT=".exe" | |
49160 | DLLPREFIX="" | |
49161 | LIBPREFIX="" | |
49162 | LIBEXT=".$OS2_LIBEXT" | |
810b94f0 | 49163 | dlldir="$bindir" |
a848cd7e | 49164 | ;; |
47bd5406 | 49165 | *-*-darwin* ) |
a848cd7e SC |
49166 | SO_SUFFIX="dylib" |
49167 | SO_SUFFIX_MODULE="bundle" | |
49168 | ;; | |
49169 | esac | |
49170 | ||
49171 | if test "x$DLLIMP_SUFFIX" = "x" ; then | |
49172 | DLLIMP_SUFFIX="$SO_SUFFIX" | |
49173 | fi | |
49174 | ||
49175 | ||
49176 | ||
49177 | ||
49178 | ||
49179 | ||
49180 | ||
49181 | ||
49182 | ||
49183 | ||
49184 | ||
810b94f0 | 49185 | |
1e9e8aba DE |
49186 | PIC_FLAG="" |
49187 | if test "x$GCC" = "xyes"; then | |
a848cd7e SC |
49188 | PIC_FLAG="-fPIC" |
49189 | fi | |
49190 | ||
1e9e8aba DE |
49191 | SHARED_LD_CC="\$(CC) -shared ${PIC_FLAG} -o" |
49192 | SHARED_LD_CXX="\$(CXX) -shared ${PIC_FLAG} -o" | |
810b94f0 | 49193 | WINDOWS_IMPLIB=0 |
1e9e8aba | 49194 | |
a848cd7e SC |
49195 | case "${BAKEFILE_HOST}" in |
49196 | *-hp-hpux* ) | |
1e9e8aba | 49197 | if test "x$GCC" != "xyes"; then |
a848cd7e SC |
49198 | LDFLAGS="$LDFLAGS -L/usr/lib" |
49199 | ||
49200 | SHARED_LD_CC="${CC} -b -o" | |
49201 | SHARED_LD_CXX="${CXX} -b -o" | |
49202 | PIC_FLAG="+Z" | |
49203 | fi | |
49204 | ;; | |
49205 | ||
49206 | *-*-linux* ) | |
05622061 | 49207 | if test "$INTELCC" = "yes" -a "$INTELCC8" != "yes"; then |
43a7c679 VZ |
49208 | PIC_FLAG="-KPIC" |
49209 | elif test "x$SUNCXX" = "xyes"; then | |
49210 | SHARED_LD_CC="${CC} -G -o" | |
49211 | SHARED_LD_CXX="${CXX} -G -o" | |
49212 | PIC_FLAG="-KPIC" | |
a848cd7e SC |
49213 | fi |
49214 | ;; | |
49215 | ||
49216 | *-*-solaris2* ) | |
43a7c679 | 49217 | if test "x$SUNCXX" = xyes ; then |
a848cd7e SC |
49218 | SHARED_LD_CC="${CC} -G -o" |
49219 | SHARED_LD_CXX="${CXX} -G -o" | |
49220 | PIC_FLAG="-KPIC" | |
49221 | fi | |
49222 | ;; | |
49223 | ||
49224 | *-*-darwin* ) | |
49225 | ||
473276a9 VS |
49226 | D='$' |
49227 | cat <<EOF >shared-ld-sh | |
a848cd7e SC |
49228 | #!/bin/sh |
49229 | #----------------------------------------------------------------------------- | |
49230 | #-- Name: distrib/mac/shared-ld-sh | |
49231 | #-- Purpose: Link a mach-o dynamic shared library for Darwin / Mac OS X | |
49232 | #-- Author: Gilles Depeyrot | |
49233 | #-- Copyright: (c) 2002 Gilles Depeyrot | |
49234 | #-- Licence: any use permitted | |
49235 | #----------------------------------------------------------------------------- | |
49236 | ||
49237 | verbose=0 | |
49238 | args="" | |
49239 | objects="" | |
49240 | linking_flag="-dynamiclib" | |
810b94f0 | 49241 | ldargs="-r -keep_private_externs -nostdlib" |
a848cd7e | 49242 | |
5b8deaba VZ |
49243 | if test "x${D}CXX" = "x"; then |
49244 | CXX="c++" | |
49245 | fi | |
49246 | ||
473276a9 VS |
49247 | while test ${D}# -gt 0; do |
49248 | case ${D}1 in | |
a848cd7e SC |
49249 | |
49250 | -v) | |
49251 | verbose=1 | |
49252 | ;; | |
49253 | ||
49254 | -o|-compatibility_version|-current_version|-framework|-undefined|-install_name) | |
49255 | # collect these options and values | |
473276a9 | 49256 | args="${D}{args} ${D}1 ${D}2" |
a848cd7e SC |
49257 | shift |
49258 | ;; | |
49259 | ||
5b8deaba VZ |
49260 | -arch|-isysroot) |
49261 | # collect these options and values | |
49262 | ldargs="${D}{ldargs} ${D}1 ${D}2" | |
49263 | shift | |
49264 | ;; | |
49265 | ||
810b94f0 MW |
49266 | -s|-Wl,*) |
49267 | # collect these load args | |
49268 | ldargs="${D}{ldargs} ${D}1" | |
2113bc77 | 49269 | ;; |
810b94f0 MW |
49270 | |
49271 | -l*|-L*|-flat_namespace|-headerpad_max_install_names) | |
a848cd7e | 49272 | # collect these options |
473276a9 | 49273 | args="${D}{args} ${D}1" |
a848cd7e SC |
49274 | ;; |
49275 | ||
49276 | -dynamiclib|-bundle) | |
473276a9 | 49277 | linking_flag="${D}1" |
a848cd7e SC |
49278 | ;; |
49279 | ||
49280 | -*) | |
473276a9 | 49281 | echo "shared-ld: unhandled option '${D}1'" |
a848cd7e SC |
49282 | exit 1 |
49283 | ;; | |
49284 | ||
49285 | *.o | *.a | *.dylib) | |
49286 | # collect object files | |
473276a9 | 49287 | objects="${D}{objects} ${D}1" |
a848cd7e SC |
49288 | ;; |
49289 | ||
49290 | *) | |
473276a9 | 49291 | echo "shared-ld: unhandled argument '${D}1'" |
a848cd7e SC |
49292 | exit 1 |
49293 | ;; | |
49294 | ||
49295 | esac | |
49296 | shift | |
49297 | done | |
49298 | ||
810b94f0 MW |
49299 | status=0 |
49300 | ||
a848cd7e SC |
49301 | # |
49302 | # Link one module containing all the others | |
49303 | # | |
473276a9 | 49304 | if test ${D}{verbose} = 1; then |
5b8deaba | 49305 | echo "${D}CXX ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o" |
a848cd7e | 49306 | fi |
5b8deaba | 49307 | ${D}CXX ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o |
473276a9 | 49308 | status=${D}? |
a848cd7e SC |
49309 | |
49310 | # | |
810b94f0 MW |
49311 | # Link the shared library from the single module created, but only if the |
49312 | # previous command didn't fail: | |
a848cd7e | 49313 | # |
810b94f0 MW |
49314 | if test ${D}{status} = 0; then |
49315 | if test ${D}{verbose} = 1; then | |
5b8deaba | 49316 | echo "${D}CXX ${D}{linking_flag} master.${D}${D}.o ${D}{args}" |
810b94f0 | 49317 | fi |
5b8deaba | 49318 | ${D}CXX ${D}{linking_flag} master.${D}${D}.o ${D}{args} |
810b94f0 | 49319 | status=${D}? |
a848cd7e SC |
49320 | fi |
49321 | ||
49322 | # | |
49323 | # Remove intermediate module | |
49324 | # | |
473276a9 | 49325 | rm -f master.${D}${D}.o |
a848cd7e | 49326 | |
810b94f0 | 49327 | exit ${D}status |
a848cd7e | 49328 | EOF |
473276a9 | 49329 | |
583d6b4b VZ |
49330 | chmod +x shared-ld-sh |
49331 | ||
49332 | SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o" | |
78808897 | 49333 | SHARED_LD_MODULE_CXX="CXX=\"\$(CXX)\" $SHARED_LD_MODULE_CC" |
583d6b4b VZ |
49334 | |
49335 | ||
d589327a VZ |
49336 | { echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5 |
49337 | echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6; } | |
583d6b4b | 49338 | if test "${bakefile_cv_gcc31+set}" = set; then |
d589327a | 49339 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
583d6b4b VZ |
49340 | else |
49341 | ||
49342 | cat >conftest.$ac_ext <<_ACEOF | |
49343 | /* confdefs.h. */ | |
49344 | _ACEOF | |
49345 | cat confdefs.h >>conftest.$ac_ext | |
49346 | cat >>conftest.$ac_ext <<_ACEOF | |
49347 | /* end confdefs.h. */ | |
49348 | ||
49349 | int | |
49350 | main () | |
49351 | { | |
49352 | ||
49353 | #if (__GNUC__ < 3) || \ | |
49354 | ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1)) | |
e5efa97e | 49355 | This is old gcc |
583d6b4b | 49356 | #endif |
a848cd7e | 49357 | |
583d6b4b VZ |
49358 | ; |
49359 | return 0; | |
49360 | } | |
49361 | _ACEOF | |
49362 | rm -f conftest.$ac_objext | |
47964710 VS |
49363 | if { (ac_try="$ac_compile" |
49364 | case "(($ac_try" in | |
49365 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
49366 | *) ac_try_echo=$ac_try;; | |
49367 | esac | |
d589327a | 49368 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 49369 | (eval "$ac_compile") 2>conftest.er1 |
583d6b4b VZ |
49370 | ac_status=$? |
49371 | grep -v '^ *+' conftest.er1 >conftest.err | |
49372 | rm -f conftest.er1 | |
49373 | cat conftest.err >&5 | |
d589327a | 49374 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
49375 | (exit $ac_status); } && { |
49376 | test -z "$ac_c_werror_flag" || | |
49377 | test ! -s conftest.err | |
49378 | } && test -s conftest.$ac_objext; then | |
583d6b4b VZ |
49379 | |
49380 | bakefile_cv_gcc31=yes | |
49381 | ||
49382 | else | |
d589327a | 49383 | echo "$as_me: failed program was:" >&5 |
583d6b4b VZ |
49384 | sed 's/^/| /' conftest.$ac_ext >&5 |
49385 | ||
49386 | ||
49387 | bakefile_cv_gcc31=no | |
49388 | ||
49389 | ||
49390 | fi | |
47964710 VS |
49391 | |
49392 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
583d6b4b VZ |
49393 | |
49394 | fi | |
d589327a VZ |
49395 | { echo "$as_me:$LINENO: result: $bakefile_cv_gcc31" >&5 |
49396 | echo "${ECHO_T}$bakefile_cv_gcc31" >&6; } | |
583d6b4b | 49397 | if test "$bakefile_cv_gcc31" = "no"; then |
a848cd7e | 49398 | SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o" |
a848cd7e | 49399 | SHARED_LD_CXX="$SHARED_LD_CC" |
a848cd7e SC |
49400 | else |
49401 | SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o" | |
a848cd7e | 49402 | SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o" |
a848cd7e SC |
49403 | fi |
49404 | ||
47bd5406 VZ |
49405 | if test "x$GCC" == "xyes"; then |
49406 | PIC_FLAG="-dynamic -fPIC" | |
49407 | fi | |
49408 | if test "x$XLCC" = "xyes"; then | |
49409 | PIC_FLAG="-dynamic -DPIC" | |
49410 | fi | |
a848cd7e SC |
49411 | ;; |
49412 | ||
49413 | *-*-aix* ) | |
f6b50c59 | 49414 | if test "x$GCC" = "xyes"; then |
583d6b4b | 49415 | PIC_FLAG="" |
f6b50c59 | 49416 | |
583d6b4b VZ |
49417 | case "${BAKEFILE_HOST}" in |
49418 | *-*-aix5* ) | |
49419 | LD_EXPFULL="-Wl,-bexpfull" | |
49420 | ;; | |
49421 | esac | |
f6b50c59 | 49422 | |
583d6b4b VZ |
49423 | SHARED_LD_CC="\$(CC) -shared $LD_EXPFULL -o" |
49424 | SHARED_LD_CXX="\$(CXX) -shared $LD_EXPFULL -o" | |
49425 | else | |
49426 | # Extract the first word of "makeC++SharedLib", so it can be a program name with args. | |
a848cd7e | 49427 | set dummy makeC++SharedLib; ac_word=$2 |
d589327a VZ |
49428 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
49429 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
a848cd7e | 49430 | if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then |
d589327a | 49431 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a848cd7e SC |
49432 | else |
49433 | if test -n "$AIX_CXX_LD"; then | |
49434 | ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test. | |
49435 | else | |
49436 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
49437 | for as_dir in $PATH | |
49438 | do | |
49439 | IFS=$as_save_IFS | |
49440 | test -z "$as_dir" && as_dir=. | |
49441 | for ac_exec_ext in '' $ac_executable_extensions; do | |
47964710 | 49442 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
a848cd7e | 49443 | ac_cv_prog_AIX_CXX_LD="makeC++SharedLib" |
d589327a | 49444 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
a848cd7e SC |
49445 | break 2 |
49446 | fi | |
49447 | done | |
49448 | done | |
47964710 | 49449 | IFS=$as_save_IFS |
a848cd7e SC |
49450 | |
49451 | test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib" | |
49452 | fi | |
49453 | fi | |
49454 | AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD | |
49455 | if test -n "$AIX_CXX_LD"; then | |
d589327a VZ |
49456 | { echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5 |
49457 | echo "${ECHO_T}$AIX_CXX_LD" >&6; } | |
a848cd7e | 49458 | else |
d589327a VZ |
49459 | { echo "$as_me:$LINENO: result: no" >&5 |
49460 | echo "${ECHO_T}no" >&6; } | |
a848cd7e SC |
49461 | fi |
49462 | ||
47964710 | 49463 | |
f6b50c59 | 49464 | SHARED_LD_CC="$AIX_CC_LD -p 0 -o" |
a848cd7e SC |
49465 | SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o" |
49466 | fi | |
49467 | ;; | |
49468 | ||
49469 | *-*-beos* ) | |
1e9e8aba DE |
49470 | SHARED_LD_CC="${LD} -nostart -o" |
49471 | SHARED_LD_CXX="${LD} -nostart -o" | |
a848cd7e SC |
49472 | ;; |
49473 | ||
49474 | *-*-irix* ) | |
49475 | if test "x$GCC" != "xyes"; then | |
49476 | PIC_FLAG="-KPIC" | |
49477 | fi | |
49478 | ;; | |
49479 | ||
49480 | *-*-cygwin* | *-*-mingw32* ) | |
49481 | PIC_FLAG="" | |
1e9e8aba DE |
49482 | SHARED_LD_CC="\$(CC) -shared -o" |
49483 | SHARED_LD_CXX="\$(CXX) -shared -o" | |
810b94f0 | 49484 | WINDOWS_IMPLIB=1 |
a848cd7e SC |
49485 | ;; |
49486 | ||
49487 | *-pc-os2_emx | *-pc-os2-emx ) | |
b1d22ded DE |
49488 | SHARED_LD_CC="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o" |
49489 | SHARED_LD_CXX="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o" | |
a848cd7e | 49490 | PIC_FLAG="" |
473276a9 VS |
49491 | |
49492 | D='$' | |
49493 | cat <<EOF >dllar.sh | |
49494 | #!/bin/sh | |
49495 | # | |
49496 | # dllar - a tool to build both a .dll and an .a file | |
49497 | # from a set of object (.o) files for EMX/OS2. | |
49498 | # | |
49499 | # Written by Andrew Zabolotny, bit@freya.etu.ru | |
49500 | # Ported to Unix like shell by Stefan Neis, Stefan.Neis@t-online.de | |
49501 | # | |
49502 | # This script will accept a set of files on the command line. | |
49503 | # All the public symbols from the .o files will be exported into | |
49504 | # a .DEF file, then linker will be run (through gcc) against them to | |
49505 | # build a shared library consisting of all given .o files. All libraries | |
49506 | # (.a) will be first decompressed into component .o files then act as | |
49507 | # described above. You can optionally give a description (-d "description") | |
49508 | # which will be put into .DLL. To see the list of accepted options (as well | |
49509 | # as command-line format) simply run this program without options. The .DLL | |
49510 | # is built to be imported by name (there is no guarantee that new versions | |
49511 | # of the library you build will have same ordinals for same symbols). | |
49512 | # | |
49513 | # dllar is free software; you can redistribute it and/or modify | |
49514 | # it under the terms of the GNU General Public License as published by | |
49515 | # the Free Software Foundation; either version 2, or (at your option) | |
49516 | # any later version. | |
49517 | # | |
49518 | # dllar is distributed in the hope that it will be useful, | |
49519 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
49520 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
49521 | # GNU General Public License for more details. | |
49522 | # | |
49523 | # You should have received a copy of the GNU General Public License | |
49524 | # along with dllar; see the file COPYING. If not, write to the Free | |
49525 | # Software Foundation, 59 Temple Place - Suite 330, Boston, MA | |
49526 | # 02111-1307, USA. | |
49527 | ||
49528 | # To successfuly run this program you will need: | |
49529 | # - Current drive should have LFN support (HPFS, ext2, network, etc) | |
49530 | # (Sometimes dllar generates filenames which won't fit 8.3 scheme) | |
49531 | # - gcc | |
49532 | # (used to build the .dll) | |
49533 | # - emxexp | |
49534 | # (used to create .def file from .o files) | |
49535 | # - emximp | |
49536 | # (used to create .a file from .def file) | |
49537 | # - GNU text utilites (cat, sort, uniq) | |
49538 | # used to process emxexp output | |
49539 | # - GNU file utilities (mv, rm) | |
49540 | # - GNU sed | |
49541 | # - lxlite (optional, see flag below) | |
49542 | # (used for general .dll cleanup) | |
49543 | # | |
49544 | ||
49545 | flag_USE_LXLITE=1; | |
49546 | ||
49547 | # | |
49548 | # helper functions | |
49549 | # basnam, variant of basename, which does _not_ remove the path, _iff_ | |
49550 | # second argument (suffix to remove) is given | |
49551 | basnam(){ | |
49552 | case ${D}# in | |
49553 | 1) | |
1e9e8aba | 49554 | echo ${D}1 | sed 's/.*\\///' | sed 's/.*\\\\//' |
473276a9 VS |
49555 | ;; |
49556 | 2) | |
49557 | echo ${D}1 | sed 's/'${D}2'${D}//' | |
49558 | ;; | |
49559 | *) | |
49560 | echo "error in basnam ${D}*" | |
49561 | exit 8 | |
49562 | ;; | |
49563 | esac | |
49564 | } | |
49565 | ||
49566 | # Cleanup temporary files and output | |
49567 | CleanUp() { | |
49568 | cd ${D}curDir | |
49569 | for i in ${D}inputFiles ; do | |
49570 | case ${D}i in | |
49571 | *!) | |
49572 | rm -rf \`basnam ${D}i !\` | |
49573 | ;; | |
49574 | *) | |
49575 | ;; | |
49576 | esac | |
49577 | done | |
49578 | ||
49579 | # Kill result in case of failure as there is just to many stupid make/nmake | |
49580 | # things out there which doesn't do this. | |
1e9e8aba | 49581 | if [ ${D}# -eq 0 ]; then |
473276a9 VS |
49582 | rm -f ${D}arcFile ${D}arcFile2 ${D}defFile ${D}dllFile |
49583 | fi | |
49584 | } | |
49585 | ||
49586 | # Print usage and exit script with rc=1. | |
49587 | PrintHelp() { | |
b1d22ded DE |
49588 | echo 'Usage: dllar.sh [-o[utput] output_file] [-i[mport] importlib_name]' |
49589 | echo ' [-name-mangler-script script.sh]' | |
49590 | echo ' [-d[escription] "dll descrption"] [-cc "CC"] [-f[lags] "CFLAGS"]' | |
49591 | echo ' [-ord[inals]] -ex[clude] "symbol(s)"' | |
49592 | echo ' [-libf[lags] "{INIT|TERM}{GLOBAL|INSTANCE}"] [-nocrt[dll]] [-nolxl[ite]]' | |
1e9e8aba | 49593 | echo ' [*.o] [*.a]' |
473276a9 VS |
49594 | echo '*> "output_file" should have no extension.' |
49595 | echo ' If it has the .o, .a or .dll extension, it is automatically removed.' | |
49596 | echo ' The import library name is derived from this and is set to "name".a,' | |
49597 | echo ' unless overridden by -import' | |
49598 | echo '*> "importlib_name" should have no extension.' | |
49599 | echo ' If it has the .o, or .a extension, it is automatically removed.' | |
49600 | echo ' This name is used as the import library name and may be longer and' | |
49601 | echo ' more descriptive than the DLL name which has to follow the old ' | |
49602 | echo ' 8.3 convention of FAT.' | |
b1d22ded DE |
49603 | echo '*> "script.sh may be given to override the output_file name by a' |
49604 | echo ' different name. It is mainly useful if the regular make process' | |
49605 | echo ' of some package does not take into account OS/2 restriction of' | |
49606 | echo ' DLL name lengths. It takes the importlib name as input and is' | |
49607 | echo ' supposed to procude a shorter name as output. The script should' | |
49608 | echo ' expect to get importlib_name without extension and should produce' | |
49609 | echo ' a (max.) 8 letter name without extension.' | |
473276a9 VS |
49610 | echo '*> "cc" is used to use another GCC executable. (default: gcc.exe)' |
49611 | echo '*> "flags" should be any set of valid GCC flags. (default: -s -Zcrtdll)' | |
49612 | echo ' These flags will be put at the start of GCC command line.' | |
b1d22ded DE |
49613 | echo '*> -ord[inals] tells dllar to export entries by ordinals. Be careful.' |
49614 | echo '*> -ex[clude] defines symbols which will not be exported. You can define' | |
473276a9 VS |
49615 | echo ' multiple symbols, for example -ex "myfunc yourfunc _GLOBAL*".' |
49616 | echo ' If the last character of a symbol is "*", all symbols beginning' | |
49617 | echo ' with the prefix before "*" will be exclude, (see _GLOBAL* above).' | |
b1d22ded | 49618 | echo '*> -libf[lags] can be used to add INITGLOBAL/INITINSTANCE and/or' |
473276a9 | 49619 | echo ' TERMGLOBAL/TERMINSTANCE flags to the dynamically-linked library.' |
b1d22ded | 49620 | echo '*> -nocrt[dll] switch will disable linking the library against emx''s' |
473276a9 | 49621 | echo ' C runtime DLLs.' |
b1d22ded | 49622 | echo '*> -nolxl[ite] switch will disable running lxlite on the resulting DLL.' |
473276a9 VS |
49623 | echo '*> All other switches (for example -L./ or -lmylib) will be passed' |
49624 | echo ' unchanged to GCC at the end of command line.' | |
49625 | echo '*> If you create a DLL from a library and you do not specify -o,' | |
49626 | echo ' the basename for DLL and import library will be set to library name,' | |
49627 | echo ' the initial library will be renamed to 'name'_s.a (_s for static)' | |
49628 | echo ' i.e. "dllar gcc.a" will create gcc.dll and gcc.a, and the initial' | |
49629 | echo ' library will be renamed into gcc_s.a.' | |
49630 | echo '--------' | |
49631 | echo 'Example:' | |
49632 | echo ' dllar -o gcc290.dll libgcc.a -d "GNU C runtime library" -ord' | |
49633 | echo ' -ex "__main __ctordtor*" -libf "INITINSTANCE TERMINSTANCE"' | |
49634 | CleanUp | |
49635 | exit 1 | |
49636 | } | |
49637 | ||
49638 | # Execute a command. | |
49639 | # If exit code of the commnad <> 0 CleanUp() is called and we'll exit the script. | |
49640 | # @Uses Whatever CleanUp() uses. | |
49641 | doCommand() { | |
49642 | echo "${D}*" | |
49643 | eval ${D}* | |
49644 | rcCmd=${D}? | |
49645 | ||
1e9e8aba | 49646 | if [ ${D}rcCmd -ne 0 ]; then |
473276a9 VS |
49647 | echo "command failed, exit code="${D}rcCmd |
49648 | CleanUp | |
49649 | exit ${D}rcCmd | |
49650 | fi | |
49651 | } | |
49652 | ||
49653 | # main routine | |
49654 | # setup globals | |
49655 | cmdLine=${D}* | |
49656 | outFile="" | |
49657 | outimpFile="" | |
49658 | inputFiles="" | |
b1d22ded | 49659 | renameScript="" |
473276a9 VS |
49660 | description="" |
49661 | CC=gcc.exe | |
49662 | CFLAGS="-s -Zcrtdll" | |
49663 | EXTRA_CFLAGS="" | |
49664 | EXPORT_BY_ORDINALS=0 | |
49665 | exclude_symbols="" | |
49666 | library_flags="" | |
49667 | curDir=\`pwd\` | |
49668 | curDirS=curDir | |
49669 | case ${D}curDirS in | |
49670 | */) | |
49671 | ;; | |
49672 | *) | |
49673 | curDirS=${D}{curDirS}"/" | |
49674 | ;; | |
49675 | esac | |
49676 | # Parse commandline | |
49677 | libsToLink=0 | |
b1d22ded | 49678 | omfLinking=0 |
1e9e8aba | 49679 | while [ ${D}1 ]; do |
473276a9 VS |
49680 | case ${D}1 in |
49681 | -ord*) | |
49682 | EXPORT_BY_ORDINALS=1; | |
49683 | ;; | |
49684 | -o*) | |
49685 | shift | |
49686 | outFile=${D}1 | |
49687 | ;; | |
49688 | -i*) | |
49689 | shift | |
49690 | outimpFile=${D}1 | |
49691 | ;; | |
b1d22ded DE |
49692 | -name-mangler-script) |
49693 | shift | |
49694 | renameScript=${D}1 | |
49695 | ;; | |
473276a9 VS |
49696 | -d*) |
49697 | shift | |
49698 | description=${D}1 | |
49699 | ;; | |
49700 | -f*) | |
49701 | shift | |
49702 | CFLAGS=${D}1 | |
49703 | ;; | |
49704 | -c*) | |
49705 | shift | |
49706 | CC=${D}1 | |
49707 | ;; | |
49708 | -h*) | |
49709 | PrintHelp | |
49710 | ;; | |
49711 | -ex*) | |
49712 | shift | |
49713 | exclude_symbols=${D}{exclude_symbols}${D}1" " | |
49714 | ;; | |
49715 | -libf*) | |
49716 | shift | |
49717 | library_flags=${D}{library_flags}${D}1" " | |
49718 | ;; | |
49719 | -nocrt*) | |
49720 | CFLAGS="-s" | |
49721 | ;; | |
49722 | -nolxl*) | |
49723 | flag_USE_LXLITE=0 | |
49724 | ;; | |
49725 | -* | /*) | |
49726 | case ${D}1 in | |
49727 | -L* | -l*) | |
49728 | libsToLink=1 | |
49729 | ;; | |
b1d22ded DE |
49730 | -Zomf) |
49731 | omfLinking=1 | |
49732 | ;; | |
473276a9 VS |
49733 | *) |
49734 | ;; | |
49735 | esac | |
49736 | EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1 | |
49737 | ;; | |
b1d22ded DE |
49738 | *.dll) |
49739 | EXTRA_CFLAGS="${D}{EXTRA_CFLAGS} \`basnam ${D}1 .dll\`" | |
49740 | if [ ${D}omfLinking -eq 1 ]; then | |
49741 | EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.lib" | |
49742 | else | |
49743 | EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.a" | |
49744 | fi | |
49745 | ;; | |
473276a9 VS |
49746 | *) |
49747 | found=0; | |
1e9e8aba | 49748 | if [ ${D}libsToLink -ne 0 ]; then |
473276a9 VS |
49749 | EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1 |
49750 | else | |
49751 | for file in ${D}1 ; do | |
1e9e8aba | 49752 | if [ -f ${D}file ]; then |
473276a9 VS |
49753 | inputFiles="${D}{inputFiles} ${D}file" |
49754 | found=1 | |
49755 | fi | |
49756 | done | |
1e9e8aba | 49757 | if [ ${D}found -eq 0 ]; then |
473276a9 VS |
49758 | echo "ERROR: No file(s) found: "${D}1 |
49759 | exit 8 | |
49760 | fi | |
49761 | fi | |
49762 | ;; | |
49763 | esac | |
49764 | shift | |
49765 | done # iterate cmdline words | |
49766 | ||
49767 | # | |
1e9e8aba | 49768 | if [ -z "${D}inputFiles" ]; then |
473276a9 VS |
49769 | echo "dllar: no input files" |
49770 | PrintHelp | |
49771 | fi | |
49772 | ||
49773 | # Now extract all .o files from .a files | |
49774 | newInputFiles="" | |
49775 | for file in ${D}inputFiles ; do | |
49776 | case ${D}file in | |
49777 | *.a | *.lib) | |
49778 | case ${D}file in | |
49779 | *.a) | |
49780 | suffix=".a" | |
49781 | AR="ar" | |
49782 | ;; | |
49783 | *.lib) | |
49784 | suffix=".lib" | |
49785 | AR="emxomfar" | |
49786 | EXTRA_CFLAGS="${D}EXTRA_CFLAGS -Zomf" | |
49787 | ;; | |
49788 | *) | |
49789 | ;; | |
49790 | esac | |
49791 | dirname=\`basnam ${D}file ${D}suffix\`"_%" | |
49792 | mkdir ${D}dirname | |
1e9e8aba | 49793 | if [ ${D}? -ne 0 ]; then |
473276a9 VS |
49794 | echo "Failed to create subdirectory ./${D}dirname" |
49795 | CleanUp | |
49796 | exit 8; | |
49797 | fi | |
49798 | # Append '!' to indicate archive | |
49799 | newInputFiles="${D}newInputFiles ${D}{dirname}!" | |
49800 | doCommand "cd ${D}dirname; ${D}AR x ../${D}file" | |
49801 | cd ${D}curDir | |
49802 | found=0; | |
49803 | for subfile in ${D}dirname/*.o* ; do | |
1e9e8aba | 49804 | if [ -f ${D}subfile ]; then |
473276a9 | 49805 | found=1 |
1e9e8aba | 49806 | if [ -s ${D}subfile ]; then |
473276a9 VS |
49807 | # FIXME: This should be: is file size > 32 byte, _not_ > 0! |
49808 | newInputFiles="${D}newInputFiles ${D}subfile" | |
49809 | fi | |
49810 | fi | |
49811 | done | |
1e9e8aba DE |
49812 | if [ ${D}found -eq 0 ]; then |
49813 | echo "WARNING: there are no files in archive \\'${D}file\\'" | |
473276a9 VS |
49814 | fi |
49815 | ;; | |
49816 | *) | |
49817 | newInputFiles="${D}{newInputFiles} ${D}file" | |
49818 | ;; | |
49819 | esac | |
49820 | done | |
49821 | inputFiles="${D}newInputFiles" | |
49822 | ||
49823 | # Output filename(s). | |
49824 | do_backup=0; | |
1e9e8aba | 49825 | if [ -z ${D}outFile ]; then |
473276a9 VS |
49826 | do_backup=1; |
49827 | set outFile ${D}inputFiles; outFile=${D}2 | |
49828 | fi | |
49829 | ||
49830 | # If it is an archive, remove the '!' and the '_%' suffixes | |
49831 | case ${D}outFile in | |
49832 | *_%!) | |
49833 | outFile=\`basnam ${D}outFile _%!\` | |
49834 | ;; | |
49835 | *) | |
49836 | ;; | |
49837 | esac | |
49838 | case ${D}outFile in | |
49839 | *.dll) | |
49840 | outFile=\`basnam ${D}outFile .dll\` | |
49841 | ;; | |
49842 | *.DLL) | |
49843 | outFile=\`basnam ${D}outFile .DLL\` | |
49844 | ;; | |
49845 | *.o) | |
49846 | outFile=\`basnam ${D}outFile .o\` | |
49847 | ;; | |
49848 | *.obj) | |
49849 | outFile=\`basnam ${D}outFile .obj\` | |
49850 | ;; | |
49851 | *.a) | |
49852 | outFile=\`basnam ${D}outFile .a\` | |
49853 | ;; | |
49854 | *.lib) | |
49855 | outFile=\`basnam ${D}outFile .lib\` | |
49856 | ;; | |
49857 | *) | |
49858 | ;; | |
49859 | esac | |
49860 | case ${D}outimpFile in | |
49861 | *.a) | |
49862 | outimpFile=\`basnam ${D}outimpFile .a\` | |
49863 | ;; | |
49864 | *.lib) | |
49865 | outimpFile=\`basnam ${D}outimpFile .lib\` | |
49866 | ;; | |
49867 | *) | |
49868 | ;; | |
49869 | esac | |
1e9e8aba | 49870 | if [ -z ${D}outimpFile ]; then |
473276a9 VS |
49871 | outimpFile=${D}outFile |
49872 | fi | |
49873 | defFile="${D}{outFile}.def" | |
49874 | arcFile="${D}{outimpFile}.a" | |
49875 | arcFile2="${D}{outimpFile}.lib" | |
b1d22ded DE |
49876 | |
49877 | #create ${D}dllFile as something matching 8.3 restrictions, | |
49878 | if [ -z ${D}renameScript ] ; then | |
49879 | dllFile="${D}outFile" | |
49880 | else | |
49881 | dllFile=\`${D}renameScript ${D}outimpFile\` | |
49882 | fi | |
473276a9 | 49883 | |
1e9e8aba DE |
49884 | if [ ${D}do_backup -ne 0 ] ; then |
49885 | if [ -f ${D}arcFile ] ; then | |
473276a9 VS |
49886 | doCommand "mv ${D}arcFile ${D}{outFile}_s.a" |
49887 | fi | |
1e9e8aba | 49888 | if [ -f ${D}arcFile2 ] ; then |
473276a9 VS |
49889 | doCommand "mv ${D}arcFile2 ${D}{outFile}_s.lib" |
49890 | fi | |
49891 | fi | |
49892 | ||
49893 | # Extract public symbols from all the object files. | |
49894 | tmpdefFile=${D}{defFile}_% | |
49895 | rm -f ${D}tmpdefFile | |
49896 | for file in ${D}inputFiles ; do | |
49897 | case ${D}file in | |
49898 | *!) | |
49899 | ;; | |
49900 | *) | |
49901 | doCommand "emxexp -u ${D}file >> ${D}tmpdefFile" | |
49902 | ;; | |
49903 | esac | |
49904 | done | |
49905 | ||
49906 | # Create the def file. | |
49907 | rm -f ${D}defFile | |
49908 | echo "LIBRARY \`basnam ${D}dllFile\` ${D}library_flags" >> ${D}defFile | |
b1d22ded DE |
49909 | dllFile="${D}{dllFile}.dll" |
49910 | if [ ! -z ${D}description ]; then | |
1e9e8aba | 49911 | echo "DESCRIPTION \\"${D}{description}\\"" >> ${D}defFile |
473276a9 VS |
49912 | fi |
49913 | echo "EXPORTS" >> ${D}defFile | |
49914 | ||
49915 | doCommand "cat ${D}tmpdefFile | sort.exe | uniq.exe > ${D}{tmpdefFile}%" | |
49916 | grep -v "^ *;" < ${D}{tmpdefFile}% | grep -v "^ *${D}" >${D}tmpdefFile | |
49917 | ||
49918 | # Checks if the export is ok or not. | |
49919 | for word in ${D}exclude_symbols; do | |
49920 | grep -v ${D}word < ${D}tmpdefFile >${D}{tmpdefFile}% | |
49921 | mv ${D}{tmpdefFile}% ${D}tmpdefFile | |
49922 | done | |
49923 | ||
49924 | ||
1e9e8aba DE |
49925 | if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then |
49926 | sed "=" < ${D}tmpdefFile | \\ | |
473276a9 VS |
49927 | sed ' |
49928 | N | |
49929 | : loop | |
1e9e8aba | 49930 | s/^\\([0-9]\\+\\)\\([^;]*\\)\\(;.*\\)\\?/\\2 @\\1 NONAME/ |
473276a9 VS |
49931 | t loop |
49932 | ' > ${D}{tmpdefFile}% | |
49933 | grep -v "^ *${D}" < ${D}{tmpdefFile}% > ${D}tmpdefFile | |
49934 | else | |
49935 | rm -f ${D}{tmpdefFile}% | |
49936 | fi | |
49937 | cat ${D}tmpdefFile >> ${D}defFile | |
49938 | rm -f ${D}tmpdefFile | |
49939 | ||
49940 | # Do linking, create implib, and apply lxlite. | |
49941 | gccCmdl=""; | |
49942 | for file in ${D}inputFiles ; do | |
49943 | case ${D}file in | |
49944 | *!) | |
49945 | ;; | |
49946 | *) | |
49947 | gccCmdl="${D}gccCmdl ${D}file" | |
49948 | ;; | |
49949 | esac | |
49950 | done | |
49951 | doCommand "${D}CC ${D}CFLAGS -Zdll -o ${D}dllFile ${D}defFile ${D}gccCmdl ${D}EXTRA_CFLAGS" | |
49952 | touch "${D}{outFile}.dll" | |
49953 | ||
49954 | doCommand "emximp -o ${D}arcFile ${D}defFile" | |
1e9e8aba | 49955 | if [ ${D}flag_USE_LXLITE -ne 0 ]; then |
473276a9 | 49956 | add_flags=""; |
1e9e8aba | 49957 | if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then |
473276a9 VS |
49958 | add_flags="-ynd" |
49959 | fi | |
49960 | doCommand "lxlite -cs -t: -mrn -mln ${D}add_flags ${D}dllFile" | |
49961 | fi | |
49962 | doCommand "emxomf -s -l ${D}arcFile" | |
49963 | ||
49964 | # Successful exit. | |
49965 | CleanUp 1 | |
49966 | exit 0 | |
49967 | EOF | |
49968 | ||
49969 | chmod +x dllar.sh | |
a848cd7e SC |
49970 | ;; |
49971 | ||
1e9e8aba | 49972 | powerpc-apple-macos* | \ |
0ad5d837 | 49973 | *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | *-*-k*bsd*-gnu | \ |
a485900c | 49974 | *-*-mirbsd* | \ |
a848cd7e SC |
49975 | *-*-sunos4* | \ |
49976 | *-*-osf* | \ | |
49977 | *-*-dgux5* | \ | |
47a7e797 MW |
49978 | *-*-sysv5* | \ |
49979 | *-pc-msdosdjgpp ) | |
a848cd7e SC |
49980 | ;; |
49981 | ||
49982 | *) | |
d589327a VZ |
49983 | { { echo "$as_me:$LINENO: error: unknown system type $BAKEFILE_HOST." >&5 |
49984 | echo "$as_me: error: unknown system type $BAKEFILE_HOST." >&2;} | |
a48b6595 VZ |
49985 | { (exit 1); exit 1; }; } |
49986 | esac | |
a848cd7e | 49987 | |
2057db16 VS |
49988 | if test "x$PIC_FLAG" != "x" ; then |
49989 | PIC_FLAG="$PIC_FLAG -DPIC" | |
49990 | fi | |
49991 | ||
a848cd7e SC |
49992 | if test "x$SHARED_LD_MODULE_CC" = "x" ; then |
49993 | SHARED_LD_MODULE_CC="$SHARED_LD_CC" | |
49994 | fi | |
49995 | if test "x$SHARED_LD_MODULE_CXX" = "x" ; then | |
49996 | SHARED_LD_MODULE_CXX="$SHARED_LD_CXX" | |
49997 | fi | |
49998 | ||
49999 | ||
50000 | ||
50001 | ||
50002 | ||
50003 | ||
50004 | ||
50005 | ||
810b94f0 | 50006 | |
a848cd7e SC |
50007 | USE_SOVERSION=0 |
50008 | USE_SOVERLINUX=0 | |
50009 | USE_SOVERSOLARIS=0 | |
810b94f0 | 50010 | USE_SOVERCYGWIN=0 |
2c459beb | 50011 | USE_SOTWOSYMLINKS=0 |
a848cd7e SC |
50012 | USE_MACVERSION=0 |
50013 | SONAME_FLAG= | |
50014 | ||
50015 | case "${BAKEFILE_HOST}" in | |
5b8deaba VZ |
50016 | *-*-linux* | *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \ |
50017 | *-*-k*bsd*-gnu | *-*-mirbsd* ) | |
43a7c679 VZ |
50018 | if test "x$SUNCXX" = "xyes"; then |
50019 | SONAME_FLAG="-h " | |
50020 | else | |
50021 | SONAME_FLAG="-Wl,-soname," | |
50022 | fi | |
5f652d0d VS |
50023 | USE_SOVERSION=1 |
50024 | USE_SOVERLINUX=1 | |
2c459beb | 50025 | USE_SOTWOSYMLINKS=1 |
5f652d0d VS |
50026 | ;; |
50027 | ||
a848cd7e SC |
50028 | *-*-solaris2* ) |
50029 | SONAME_FLAG="-h " | |
50030 | USE_SOVERSION=1 | |
50031 | USE_SOVERSOLARIS=1 | |
a848cd7e SC |
50032 | ;; |
50033 | ||
50034 | *-*-darwin* ) | |
50035 | USE_MACVERSION=1 | |
50036 | USE_SOVERSION=1 | |
2c459beb | 50037 | USE_SOTWOSYMLINKS=1 |
a848cd7e | 50038 | ;; |
810b94f0 MW |
50039 | |
50040 | *-*-cygwin* ) | |
50041 | USE_SOVERSION=1 | |
50042 | USE_SOVERCYGWIN=1 | |
50043 | ;; | |
a848cd7e SC |
50044 | esac |
50045 | ||
50046 | ||
50047 | ||
50048 | ||
50049 | ||
50050 | ||
50051 | ||
50052 | ||
50053 | ||
810b94f0 | 50054 | |
47964710 | 50055 | # Check whether --enable-dependency-tracking was given. |
f10e38c4 | 50056 | if test "${enable_dependency_tracking+set}" = set; then |
47964710 VS |
50057 | enableval=$enable_dependency_tracking; bk_use_trackdeps="$enableval" |
50058 | fi | |
f10e38c4 | 50059 | |
47964710 | 50060 | |
d589327a VZ |
50061 | { echo "$as_me:$LINENO: checking for dependency tracking method" >&5 |
50062 | echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6; } | |
a848cd7e | 50063 | |
a485900c | 50064 | BK_DEPS="" |
f10e38c4 VZ |
50065 | if test "x$bk_use_trackdeps" = "xno" ; then |
50066 | DEPS_TRACKING=0 | |
d589327a VZ |
50067 | { echo "$as_me:$LINENO: result: disabled" >&5 |
50068 | echo "${ECHO_T}disabled" >&6; } | |
f10e38c4 VZ |
50069 | else |
50070 | DEPS_TRACKING=1 | |
50071 | ||
50072 | if test "x$GCC" = "xyes"; then | |
50073 | DEPSMODE=gcc | |
50074 | case "${BAKEFILE_HOST}" in | |
50075 | *-*-darwin* ) | |
50076 | DEPSFLAG="-no-cpp-precomp -MMD" | |
50077 | ;; | |
50078 | * ) | |
50079 | DEPSFLAG="-MMD" | |
50080 | ;; | |
50081 | esac | |
d589327a VZ |
50082 | { echo "$as_me:$LINENO: result: gcc" >&5 |
50083 | echo "${ECHO_T}gcc" >&6; } | |
f10e38c4 VZ |
50084 | elif test "x$MWCC" = "xyes"; then |
50085 | DEPSMODE=mwcc | |
50086 | DEPSFLAG="-MM" | |
d589327a VZ |
50087 | { echo "$as_me:$LINENO: result: mwcc" >&5 |
50088 | echo "${ECHO_T}mwcc" >&6; } | |
f10e38c4 VZ |
50089 | elif test "x$SUNCC" = "xyes"; then |
50090 | DEPSMODE=unixcc | |
50091 | DEPSFLAG="-xM1" | |
d589327a VZ |
50092 | { echo "$as_me:$LINENO: result: Sun cc" >&5 |
50093 | echo "${ECHO_T}Sun cc" >&6; } | |
f10e38c4 VZ |
50094 | elif test "x$SGICC" = "xyes"; then |
50095 | DEPSMODE=unixcc | |
50096 | DEPSFLAG="-M" | |
d589327a VZ |
50097 | { echo "$as_me:$LINENO: result: SGI cc" >&5 |
50098 | echo "${ECHO_T}SGI cc" >&6; } | |
f10e38c4 VZ |
50099 | elif test "x$HPCC" = "xyes"; then |
50100 | DEPSMODE=unixcc | |
50101 | DEPSFLAG="+make" | |
d589327a VZ |
50102 | { echo "$as_me:$LINENO: result: HP cc" >&5 |
50103 | echo "${ECHO_T}HP cc" >&6; } | |
f10e38c4 VZ |
50104 | elif test "x$COMPAQCC" = "xyes"; then |
50105 | DEPSMODE=gcc | |
50106 | DEPSFLAG="-MD" | |
d589327a VZ |
50107 | { echo "$as_me:$LINENO: result: Compaq cc" >&5 |
50108 | echo "${ECHO_T}Compaq cc" >&6; } | |
f10e38c4 VZ |
50109 | else |
50110 | DEPS_TRACKING=0 | |
d589327a VZ |
50111 | { echo "$as_me:$LINENO: result: none" >&5 |
50112 | echo "${ECHO_T}none" >&6; } | |
f10e38c4 | 50113 | fi |
a848cd7e | 50114 | |
f10e38c4 | 50115 | if test $DEPS_TRACKING = 1 ; then |
473276a9 VS |
50116 | |
50117 | D='$' | |
50118 | cat <<EOF >bk-deps | |
a848cd7e SC |
50119 | #!/bin/sh |
50120 | ||
5b8deaba | 50121 | # This script is part of Bakefile (http://www.bakefile.org) autoconf |
a848cd7e SC |
50122 | # script. It is used to track C/C++ files dependencies in portable way. |
50123 | # | |
50124 | # Permission is given to use this file in any way. | |
50125 | ||
473276a9 | 50126 | DEPSMODE=${DEPSMODE} |
0ad5d837 | 50127 | DEPSFLAG="${DEPSFLAG}" |
7a507ca8 | 50128 | DEPSDIRBASE=.deps |
a848cd7e | 50129 | |
473276a9 | 50130 | if test ${D}DEPSMODE = gcc ; then |
0ad5d837 | 50131 | ${D}* ${D}{DEPSFLAG} |
473276a9 | 50132 | status=${D}? |
5b8deaba VZ |
50133 | |
50134 | # determine location of created files: | |
473276a9 VS |
50135 | while test ${D}# -gt 0; do |
50136 | case "${D}1" in | |
a848cd7e SC |
50137 | -o ) |
50138 | shift | |
473276a9 | 50139 | objfile=${D}1 |
a848cd7e SC |
50140 | ;; |
50141 | -* ) | |
50142 | ;; | |
50143 | * ) | |
473276a9 | 50144 | srcfile=${D}1 |
a848cd7e SC |
50145 | ;; |
50146 | esac | |
50147 | shift | |
50148 | done | |
7a507ca8 VZ |
50149 | objfilebase=\`basename ${D}objfile\` |
50150 | builddir=\`dirname ${D}objfile\` | |
1e9e8aba DE |
50151 | depfile=\`basename ${D}srcfile | sed -e 's/\\..*${D}/.d/g'\` |
50152 | depobjname=\`echo ${D}depfile |sed -e 's/\\.d/.o/g'\` | |
7a507ca8 VZ |
50153 | depsdir=${D}builddir/${D}DEPSDIRBASE |
50154 | mkdir -p ${D}depsdir | |
5b8deaba VZ |
50155 | |
50156 | # if the compiler failed, we're done: | |
50157 | if test ${D}{status} != 0 ; then | |
50158 | rm -f ${D}depfile | |
50159 | exit ${D}{status} | |
50160 | fi | |
50161 | ||
50162 | # move created file to the location we want it in: | |
473276a9 | 50163 | if test -f ${D}depfile ; then |
7a507ca8 | 50164 | sed -e "s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{depsdir}/${D}{objfilebase}.d |
473276a9 | 50165 | rm -f ${D}depfile |
a848cd7e | 50166 | else |
a1aa0349 | 50167 | # "g++ -MMD -o fooobj.o foosrc.cpp" produces fooobj.d |
7a507ca8 | 50168 | depfile=\`echo "${D}objfile" | sed -e 's/\\..*${D}/.d/g'\` |
a1aa0349 VZ |
50169 | if test ! -f ${D}depfile ; then |
50170 | # "cxx -MD -o fooobj.o foosrc.cpp" creates fooobj.o.d (Compaq C++) | |
50171 | depfile="${D}objfile.d" | |
50172 | fi | |
473276a9 | 50173 | if test -f ${D}depfile ; then |
7a507ca8 | 50174 | sed -e "\\,^${D}objfile,!s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{depsdir}/${D}{objfilebase}.d |
473276a9 | 50175 | rm -f ${D}depfile |
a848cd7e SC |
50176 | fi |
50177 | fi | |
50178 | exit 0 | |
7a507ca8 | 50179 | |
81f90336 | 50180 | elif test ${D}DEPSMODE = mwcc ; then |
f6b50c59 | 50181 | ${D}* || exit ${D}? |
81f90336 MW |
50182 | # Run mwcc again with -MM and redirect into the dep file we want |
50183 | # NOTE: We can't use shift here because we need ${D}* to be valid | |
50184 | prevarg= | |
50185 | for arg in ${D}* ; do | |
50186 | if test "${D}prevarg" = "-o"; then | |
50187 | objfile=${D}arg | |
50188 | else | |
50189 | case "${D}arg" in | |
50190 | -* ) | |
50191 | ;; | |
50192 | * ) | |
50193 | srcfile=${D}arg | |
50194 | ;; | |
50195 | esac | |
50196 | fi | |
50197 | prevarg="${D}arg" | |
50198 | done | |
7a507ca8 VZ |
50199 | |
50200 | objfilebase=\`basename ${D}objfile\` | |
50201 | builddir=\`dirname ${D}objfile\` | |
50202 | depsdir=${D}builddir/${D}DEPSDIRBASE | |
50203 | mkdir -p ${D}depsdir | |
50204 | ||
50205 | ${D}* ${D}DEPSFLAG >${D}{depsdir}/${D}{objfilebase}.d | |
81f90336 | 50206 | exit 0 |
7a507ca8 | 50207 | |
0ad5d837 | 50208 | elif test ${D}DEPSMODE = unixcc; then |
f6b50c59 | 50209 | ${D}* || exit ${D}? |
a9e5b1f0 MW |
50210 | # Run compiler again with deps flag and redirect into the dep file. |
50211 | # It doesn't work if the '-o FILE' option is used, but without it the | |
50212 | # dependency file will contain the wrong name for the object. So it is | |
50213 | # removed from the command line, and the dep file is fixed with sed. | |
50214 | cmd="" | |
50215 | while test ${D}# -gt 0; do | |
50216 | case "${D}1" in | |
50217 | -o ) | |
50218 | shift | |
50219 | objfile=${D}1 | |
50220 | ;; | |
50221 | * ) | |
50222 | eval arg${D}#=\\${D}1 | |
50223 | cmd="${D}cmd \\${D}arg${D}#" | |
50224 | ;; | |
50225 | esac | |
50226 | shift | |
50227 | done | |
7a507ca8 VZ |
50228 | |
50229 | objfilebase=\`basename ${D}objfile\` | |
50230 | builddir=\`dirname ${D}objfile\` | |
50231 | depsdir=${D}builddir/${D}DEPSDIRBASE | |
50232 | mkdir -p ${D}depsdir | |
50233 | ||
825dbe24 | 50234 | eval "${D}cmd ${D}DEPSFLAG" | sed "s|.*:|${D}objfile:|" >${D}{depsdir}/${D}{objfilebase}.d |
a9e5b1f0 | 50235 | exit 0 |
7a507ca8 | 50236 | |
a848cd7e | 50237 | else |
473276a9 VS |
50238 | ${D}* |
50239 | exit ${D}? | |
a848cd7e SC |
50240 | fi |
50241 | EOF | |
473276a9 | 50242 | |
f10e38c4 | 50243 | chmod +x bk-deps |
a485900c | 50244 | BK_DEPS="`pwd`/bk-deps" |
f10e38c4 | 50245 | fi |
a848cd7e SC |
50246 | fi |
50247 | ||
50248 | ||
50249 | ||
50250 | ||
a485900c | 50251 | |
a848cd7e SC |
50252 | case ${BAKEFILE_HOST} in |
50253 | *-*-cygwin* | *-*-mingw32* ) | |
8ced02f6 DE |
50254 | if test -n "$ac_tool_prefix"; then |
50255 | # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args. | |
50256 | set dummy ${ac_tool_prefix}windres; ac_word=$2 | |
d589327a VZ |
50257 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
50258 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
8ced02f6 | 50259 | if test "${ac_cv_prog_WINDRES+set}" = set; then |
d589327a | 50260 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8ced02f6 DE |
50261 | else |
50262 | if test -n "$WINDRES"; then | |
50263 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
50264 | else | |
50265 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
50266 | for as_dir in $PATH | |
50267 | do | |
50268 | IFS=$as_save_IFS | |
50269 | test -z "$as_dir" && as_dir=. | |
50270 | for ac_exec_ext in '' $ac_executable_extensions; do | |
47964710 | 50271 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
8ced02f6 | 50272 | ac_cv_prog_WINDRES="${ac_tool_prefix}windres" |
d589327a | 50273 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8ced02f6 DE |
50274 | break 2 |
50275 | fi | |
50276 | done | |
50277 | done | |
47964710 | 50278 | IFS=$as_save_IFS |
8ced02f6 DE |
50279 | |
50280 | fi | |
50281 | fi | |
50282 | WINDRES=$ac_cv_prog_WINDRES | |
50283 | if test -n "$WINDRES"; then | |
d589327a VZ |
50284 | { echo "$as_me:$LINENO: result: $WINDRES" >&5 |
50285 | echo "${ECHO_T}$WINDRES" >&6; } | |
8ced02f6 | 50286 | else |
d589327a VZ |
50287 | { echo "$as_me:$LINENO: result: no" >&5 |
50288 | echo "${ECHO_T}no" >&6; } | |
8ced02f6 DE |
50289 | fi |
50290 | ||
47964710 | 50291 | |
8ced02f6 DE |
50292 | fi |
50293 | if test -z "$ac_cv_prog_WINDRES"; then | |
50294 | ac_ct_WINDRES=$WINDRES | |
50295 | # Extract the first word of "windres", so it can be a program name with args. | |
a848cd7e | 50296 | set dummy windres; ac_word=$2 |
d589327a VZ |
50297 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
50298 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
8ced02f6 | 50299 | if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then |
d589327a | 50300 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a848cd7e | 50301 | else |
8ced02f6 DE |
50302 | if test -n "$ac_ct_WINDRES"; then |
50303 | ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test. | |
a848cd7e SC |
50304 | else |
50305 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
50306 | for as_dir in $PATH | |
50307 | do | |
50308 | IFS=$as_save_IFS | |
50309 | test -z "$as_dir" && as_dir=. | |
50310 | for ac_exec_ext in '' $ac_executable_extensions; do | |
47964710 | 50311 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
8ced02f6 | 50312 | ac_cv_prog_ac_ct_WINDRES="windres" |
d589327a | 50313 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
a848cd7e SC |
50314 | break 2 |
50315 | fi | |
50316 | done | |
50317 | done | |
47964710 | 50318 | IFS=$as_save_IFS |
a848cd7e | 50319 | |
a848cd7e SC |
50320 | fi |
50321 | fi | |
8ced02f6 DE |
50322 | ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES |
50323 | if test -n "$ac_ct_WINDRES"; then | |
d589327a VZ |
50324 | { echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5 |
50325 | echo "${ECHO_T}$ac_ct_WINDRES" >&6; } | |
a848cd7e | 50326 | else |
d589327a VZ |
50327 | { echo "$as_me:$LINENO: result: no" >&5 |
50328 | echo "${ECHO_T}no" >&6; } | |
a848cd7e SC |
50329 | fi |
50330 | ||
47964710 VS |
50331 | if test "x$ac_ct_WINDRES" = x; then |
50332 | WINDRES="" | |
50333 | else | |
50334 | case $cross_compiling:$ac_tool_warned in | |
50335 | yes:) | |
d589327a VZ |
50336 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
50337 | whose name does not start with the host triplet. If you think this | |
50338 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
50339 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | |
50340 | whose name does not start with the host triplet. If you think this | |
50341 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
47964710 VS |
50342 | ac_tool_warned=yes ;; |
50343 | esac | |
50344 | WINDRES=$ac_ct_WINDRES | |
50345 | fi | |
8ced02f6 DE |
50346 | else |
50347 | WINDRES="$ac_cv_prog_WINDRES" | |
50348 | fi | |
50349 | ||
a848cd7e SC |
50350 | ;; |
50351 | ||
1e9e8aba | 50352 | *-*-darwin* | powerpc-apple-macos* ) |
a848cd7e SC |
50353 | # Extract the first word of "Rez", so it can be a program name with args. |
50354 | set dummy Rez; ac_word=$2 | |
d589327a VZ |
50355 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
50356 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
8ced02f6 | 50357 | if test "${ac_cv_prog_REZ+set}" = set; then |
d589327a | 50358 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a848cd7e | 50359 | else |
8ced02f6 DE |
50360 | if test -n "$REZ"; then |
50361 | ac_cv_prog_REZ="$REZ" # Let the user override the test. | |
a848cd7e SC |
50362 | else |
50363 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
50364 | for as_dir in $PATH | |
50365 | do | |
50366 | IFS=$as_save_IFS | |
50367 | test -z "$as_dir" && as_dir=. | |
50368 | for ac_exec_ext in '' $ac_executable_extensions; do | |
47964710 | 50369 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
8ced02f6 | 50370 | ac_cv_prog_REZ="Rez" |
d589327a | 50371 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
a848cd7e SC |
50372 | break 2 |
50373 | fi | |
50374 | done | |
50375 | done | |
47964710 | 50376 | IFS=$as_save_IFS |
a848cd7e | 50377 | |
8ced02f6 | 50378 | test -z "$ac_cv_prog_REZ" && ac_cv_prog_REZ="/Developer/Tools/Rez" |
a848cd7e SC |
50379 | fi |
50380 | fi | |
8ced02f6 DE |
50381 | REZ=$ac_cv_prog_REZ |
50382 | if test -n "$REZ"; then | |
d589327a VZ |
50383 | { echo "$as_me:$LINENO: result: $REZ" >&5 |
50384 | echo "${ECHO_T}$REZ" >&6; } | |
a848cd7e | 50385 | else |
d589327a VZ |
50386 | { echo "$as_me:$LINENO: result: no" >&5 |
50387 | echo "${ECHO_T}no" >&6; } | |
a848cd7e SC |
50388 | fi |
50389 | ||
47964710 | 50390 | |
a848cd7e SC |
50391 | # Extract the first word of "SetFile", so it can be a program name with args. |
50392 | set dummy SetFile; ac_word=$2 | |
d589327a VZ |
50393 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
50394 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
a848cd7e | 50395 | if test "${ac_cv_prog_SETFILE+set}" = set; then |
d589327a | 50396 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a848cd7e SC |
50397 | else |
50398 | if test -n "$SETFILE"; then | |
50399 | ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test. | |
50400 | else | |
50401 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
50402 | for as_dir in $PATH | |
50403 | do | |
50404 | IFS=$as_save_IFS | |
50405 | test -z "$as_dir" && as_dir=. | |
50406 | for ac_exec_ext in '' $ac_executable_extensions; do | |
47964710 | 50407 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
a848cd7e | 50408 | ac_cv_prog_SETFILE="SetFile" |
d589327a | 50409 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
a848cd7e SC |
50410 | break 2 |
50411 | fi | |
50412 | done | |
50413 | done | |
47964710 | 50414 | IFS=$as_save_IFS |
a848cd7e SC |
50415 | |
50416 | test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile" | |
50417 | fi | |
50418 | fi | |
50419 | SETFILE=$ac_cv_prog_SETFILE | |
50420 | if test -n "$SETFILE"; then | |
d589327a VZ |
50421 | { echo "$as_me:$LINENO: result: $SETFILE" >&5 |
50422 | echo "${ECHO_T}$SETFILE" >&6; } | |
a848cd7e | 50423 | else |
d589327a VZ |
50424 | { echo "$as_me:$LINENO: result: no" >&5 |
50425 | echo "${ECHO_T}no" >&6; } | |
a848cd7e SC |
50426 | fi |
50427 | ||
47964710 | 50428 | |
a848cd7e SC |
50429 | ;; |
50430 | esac | |
50431 | ||
50432 | ||
50433 | ||
50434 | ||
50435 | ||
8ced02f6 | 50436 | |
7a507ca8 VZ |
50437 | |
50438 | ||
50439 | ||
fcc9ca7f | 50440 | BAKEFILE_BAKEFILE_M4_VERSION="0.2.8" |
a848cd7e | 50441 | |
dcc1b6ad | 50442 | |
fcc9ca7f | 50443 | BAKEFILE_AUTOCONF_INC_M4_VERSION="0.2.8" |
a848cd7e | 50444 | |
646b6ec1 | 50445 | |
74b84332 | 50446 | |
47964710 | 50447 | # Check whether --enable-precomp-headers was given. |
a848cd7e | 50448 | if test "${enable_precomp_headers+set}" = set; then |
47964710 VS |
50449 | enableval=$enable_precomp_headers; bk_use_pch="$enableval" |
50450 | fi | |
50451 | ||
a848cd7e SC |
50452 | |
50453 | GCC_PCH=0 | |
f10e38c4 VZ |
50454 | ICC_PCH=0 |
50455 | USE_PCH=0 | |
a485900c | 50456 | BK_MAKE_PCH="" |
a848cd7e | 50457 | |
5c60e845 MW |
50458 | case ${BAKEFILE_HOST} in |
50459 | *-*-cygwin* ) | |
50460 | bk_use_pch="no" | |
50461 | ;; | |
50462 | esac | |
50463 | ||
a848cd7e SC |
50464 | if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then |
50465 | if test "x$GCC" = "xyes"; then | |
d589327a VZ |
50466 | { echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5 |
50467 | echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6; } | |
a848cd7e SC |
50468 | cat >conftest.$ac_ext <<_ACEOF |
50469 | /* confdefs.h. */ | |
50470 | _ACEOF | |
50471 | cat confdefs.h >>conftest.$ac_ext | |
50472 | cat >>conftest.$ac_ext <<_ACEOF | |
50473 | /* end confdefs.h. */ | |
50474 | ||
50475 | int | |
50476 | main () | |
50477 | { | |
50478 | ||
50479 | #if !defined(__GNUC__) || !defined(__GNUC_MINOR__) | |
e5efa97e | 50480 | There is no PCH support |
a848cd7e SC |
50481 | #endif |
50482 | #if (__GNUC__ < 3) | |
e5efa97e | 50483 | There is no PCH support |
a848cd7e SC |
50484 | #endif |
50485 | #if (__GNUC__ == 3) && \ | |
50486 | ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \ | |
f10e38c4 VZ |
50487 | ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3))) || \ |
50488 | ( defined(__INTEL_COMPILER) ) | |
e5efa97e | 50489 | There is no PCH support |
a848cd7e SC |
50490 | #endif |
50491 | ||
50492 | ; | |
50493 | return 0; | |
50494 | } | |
50495 | _ACEOF | |
50496 | rm -f conftest.$ac_objext | |
47964710 VS |
50497 | if { (ac_try="$ac_compile" |
50498 | case "(($ac_try" in | |
50499 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
50500 | *) ac_try_echo=$ac_try;; | |
50501 | esac | |
d589327a | 50502 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
47964710 | 50503 | (eval "$ac_compile") 2>conftest.er1 |
a848cd7e | 50504 | ac_status=$? |
ac1cb8d3 VS |
50505 | grep -v '^ *+' conftest.er1 >conftest.err |
50506 | rm -f conftest.er1 | |
50507 | cat conftest.err >&5 | |
d589327a | 50508 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47964710 VS |
50509 | (exit $ac_status); } && { |
50510 | test -z "$ac_c_werror_flag" || | |
50511 | test ! -s conftest.err | |
50512 | } && test -s conftest.$ac_objext; then | |
a848cd7e | 50513 | |
d589327a VZ |
50514 | { echo "$as_me:$LINENO: result: yes" >&5 |
50515 | echo "${ECHO_T}yes" >&6; } | |
a848cd7e SC |
50516 | GCC_PCH=1 |
50517 | ||
50518 | else | |
d589327a | 50519 | echo "$as_me: failed program was:" >&5 |
a848cd7e SC |
50520 | sed 's/^/| /' conftest.$ac_ext >&5 |
50521 | ||
50522 | ||
05622061 | 50523 | if test "$INTELCXX8" = "yes"; then |
d589327a VZ |
50524 | { echo "$as_me:$LINENO: result: yes" >&5 |
50525 | echo "${ECHO_T}yes" >&6; } | |
05622061 VZ |
50526 | ICC_PCH=1 |
50527 | if test "$INTELCXX10" = "yes"; then | |
50528 | ICC_PCH_CREATE_SWITCH="-pch-create" | |
50529 | ICC_PCH_USE_SWITCH="-pch-use" | |
50530 | else | |
50531 | ICC_PCH_CREATE_SWITCH="-create-pch" | |
50532 | ICC_PCH_USE_SWITCH="-use-pch" | |
50533 | fi | |
50534 | else | |
d589327a VZ |
50535 | { echo "$as_me:$LINENO: result: no" >&5 |
50536 | echo "${ECHO_T}no" >&6; } | |
05622061 | 50537 | fi |
f10e38c4 VZ |
50538 | |
50539 | fi | |
47964710 VS |
50540 | |
50541 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
f10e38c4 VZ |
50542 | if test $GCC_PCH = 1 -o $ICC_PCH = 1 ; then |
50543 | USE_PCH=1 | |
1e9e8aba DE |
50544 | |
50545 | D='$' | |
50546 | cat <<EOF >bk-make-pch | |
a848cd7e SC |
50547 | #!/bin/sh |
50548 | ||
5b8deaba | 50549 | # This script is part of Bakefile (http://www.bakefile.org) autoconf |
a848cd7e SC |
50550 | # script. It is used to generated precompiled headers. |
50551 | # | |
50552 | # Permission is given to use this file in any way. | |
50553 | ||
1e9e8aba DE |
50554 | outfile="${D}{1}" |
50555 | header="${D}{2}" | |
a848cd7e SC |
50556 | shift |
50557 | shift | |
50558 | ||
7a507ca8 VZ |
50559 | builddir=\`echo ${D}outfile | sed -e 's,/\\.pch/.*${D},,g'\` |
50560 | ||
f10e38c4 VZ |
50561 | compiler="" |
50562 | headerfile="" | |
50563 | ||
1e9e8aba | 50564 | while test ${D}{#} -gt 0; do |
f10e38c4 | 50565 | add_to_cmdline=1 |
1e9e8aba | 50566 | case "${D}{1}" in |
a848cd7e | 50567 | -I* ) |
1e9e8aba DE |
50568 | incdir=\`echo ${D}{1} | sed -e 's/-I\\(.*\\)/\\1/g'\` |
50569 | if test "x${D}{headerfile}" = "x" -a -f "${D}{incdir}/${D}{header}" ; then | |
50570 | headerfile="${D}{incdir}/${D}{header}" | |
a848cd7e SC |
50571 | fi |
50572 | ;; | |
05622061 | 50573 | -use-pch|-use_pch|-pch-use ) |
f10e38c4 VZ |
50574 | shift |
50575 | add_to_cmdline=0 | |
50576 | ;; | |
a848cd7e | 50577 | esac |
f10e38c4 VZ |
50578 | if test ${D}add_to_cmdline = 1 ; then |
50579 | compiler="${D}{compiler} ${D}{1}" | |
50580 | fi | |
a848cd7e SC |
50581 | shift |
50582 | done | |
50583 | ||
1e9e8aba | 50584 | if test "x${D}{headerfile}" = "x" ; then |
f10e38c4 | 50585 | echo "error: can't find header ${D}{header} in include paths" >&2 |
a848cd7e | 50586 | else |
1e9e8aba DE |
50587 | if test -f ${D}{outfile} ; then |
50588 | rm -f ${D}{outfile} | |
a848cd7e | 50589 | else |
1e9e8aba | 50590 | mkdir -p \`dirname ${D}{outfile}\` |
a848cd7e | 50591 | fi |
7a507ca8 VZ |
50592 | depsfile="${D}{builddir}/.deps/\`echo ${D}{outfile} | tr '/.' '__'\`.d" |
50593 | mkdir -p ${D}{builddir}/.deps | |
f10e38c4 VZ |
50594 | if test "x${GCC_PCH}" = "x1" ; then |
50595 | # can do this because gcc is >= 3.4: | |
50596 | ${D}{compiler} -o ${D}{outfile} -MMD -MF "${D}{depsfile}" "${D}{headerfile}" | |
50597 | elif test "x${ICC_PCH}" = "x1" ; then | |
50598 | filename=pch_gen-${D}${D} | |
50599 | file=${D}{filename}.c | |
50600 | dfile=${D}{filename}.d | |
50601 | cat > ${D}file <<EOT | |
50602 | #include "${D}header" | |
50603 | EOT | |
50604 | # using -MF icc complains about differing command lines in creation/use | |
05622061 | 50605 | ${D}compiler -c ${ICC_PCH_CREATE_SWITCH} ${D}outfile -MMD ${D}file && \\ |
f10e38c4 VZ |
50606 | sed -e "s,^.*:,${D}outfile:," -e "s, ${D}file,," < ${D}dfile > ${D}depsfile && \\ |
50607 | rm -f ${D}file ${D}dfile ${D}{filename}.o | |
50608 | fi | |
1e9e8aba | 50609 | exit ${D}{?} |
a848cd7e SC |
50610 | fi |
50611 | EOF | |
1e9e8aba | 50612 | |
a848cd7e | 50613 | chmod +x bk-make-pch |
a485900c | 50614 | BK_MAKE_PCH="`pwd`/bk-make-pch" |
a848cd7e SC |
50615 | fi |
50616 | fi | |
50617 | fi | |
50618 | ||
50619 | ||
50620 | ||
f10e38c4 | 50621 | |
a485900c | 50622 | |
05622061 VZ |
50623 | |
50624 | ||
a848cd7e SC |
50625 | COND_BUILD_DEBUG="#" |
50626 | if test "x$BUILD" = "xdebug" ; then | |
50627 | COND_BUILD_DEBUG="" | |
50628 | fi | |
50629 | ||
50630 | COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#" | |
50631 | if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then | |
50632 | COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="" | |
50633 | fi | |
50634 | ||
50635 | COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#" | |
50636 | if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then | |
50637 | COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="" | |
50638 | fi | |
50639 | ||
50640 | COND_BUILD_DEBUG_UNICODE_0="#" | |
50641 | if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then | |
50642 | COND_BUILD_DEBUG_UNICODE_0="" | |
50643 | fi | |
50644 | ||
50645 | COND_BUILD_DEBUG_UNICODE_1="#" | |
50646 | if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then | |
50647 | COND_BUILD_DEBUG_UNICODE_1="" | |
50648 | fi | |
50649 | ||
50650 | COND_BUILD_RELEASE="#" | |
50651 | if test "x$BUILD" = "xrelease" ; then | |
50652 | COND_BUILD_RELEASE="" | |
50653 | fi | |
50654 | ||
50655 | COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#" | |
50656 | if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then | |
50657 | COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="" | |
50658 | fi | |
50659 | ||
50660 | COND_BUILD_RELEASE_UNICODE_0="#" | |
50661 | if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then | |
50662 | COND_BUILD_RELEASE_UNICODE_0="" | |
50663 | fi | |
50664 | ||
50665 | COND_BUILD_RELEASE_UNICODE_1="#" | |
50666 | if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then | |
50667 | COND_BUILD_RELEASE_UNICODE_1="" | |
50668 | fi | |
50669 | ||
03c6117e VZ |
50670 | COND_BUILD_debug="#" |
50671 | if test "x$BUILD" = "xdebug" ; then | |
50672 | COND_BUILD_debug="" | |
50673 | fi | |
50674 | ||
50675 | COND_BUILD_debug_DEBUG_FLAG_default="#" | |
50676 | if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then | |
50677 | COND_BUILD_debug_DEBUG_FLAG_default="" | |
50678 | fi | |
50679 | ||
50680 | COND_BUILD_debug_DEBUG_INFO_default="#" | |
50681 | if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then | |
50682 | COND_BUILD_debug_DEBUG_INFO_default="" | |
50683 | fi | |
50684 | ||
50685 | COND_BUILD_debug_UNICODE_0="#" | |
50686 | if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then | |
50687 | COND_BUILD_debug_UNICODE_0="" | |
50688 | fi | |
50689 | ||
50690 | COND_BUILD_debug_UNICODE_1="#" | |
50691 | if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then | |
50692 | COND_BUILD_debug_UNICODE_1="" | |
50693 | fi | |
50694 | ||
50695 | COND_BUILD_release="#" | |
50696 | if test "x$BUILD" = "xrelease" ; then | |
50697 | COND_BUILD_release="" | |
50698 | fi | |
50699 | ||
50700 | COND_BUILD_release_DEBUG_INFO_default="#" | |
50701 | if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then | |
50702 | COND_BUILD_release_DEBUG_INFO_default="" | |
50703 | fi | |
50704 | ||
50705 | COND_BUILD_release_UNICODE_0="#" | |
50706 | if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then | |
50707 | COND_BUILD_release_UNICODE_0="" | |
50708 | fi | |
50709 | ||
50710 | COND_BUILD_release_UNICODE_1="#" | |
50711 | if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then | |
50712 | COND_BUILD_release_UNICODE_1="" | |
50713 | fi | |
50714 | ||
89b1afb4 VZ |
50715 | COND_DEBUG_FLAG_0="#" |
50716 | if test "x$DEBUG_FLAG" = "x0" ; then | |
50717 | COND_DEBUG_FLAG_0="" | |
50718 | fi | |
50719 | ||
a848cd7e SC |
50720 | COND_DEBUG_FLAG_1="#" |
50721 | if test "x$DEBUG_FLAG" = "x1" ; then | |
50722 | COND_DEBUG_FLAG_1="" | |
50723 | fi | |
50724 | ||
50725 | COND_DEBUG_INFO_0="#" | |
50726 | if test "x$DEBUG_INFO" = "x0" ; then | |
50727 | COND_DEBUG_INFO_0="" | |
50728 | fi | |
50729 | ||
50730 | COND_DEBUG_INFO_1="#" | |
50731 | if test "x$DEBUG_INFO" = "x1" ; then | |
50732 | COND_DEBUG_INFO_1="" | |
50733 | fi | |
50734 | ||
50735 | COND_DEPS_TRACKING_0="#" | |
50736 | if test "x$DEPS_TRACKING" = "x0" ; then | |
50737 | COND_DEPS_TRACKING_0="" | |
50738 | fi | |
50739 | ||
50740 | COND_DEPS_TRACKING_1="#" | |
50741 | if test "x$DEPS_TRACKING" = "x1" ; then | |
50742 | COND_DEPS_TRACKING_1="" | |
50743 | fi | |
50744 | ||
50745 | COND_GCC_PCH_1="#" | |
50746 | if test "x$GCC_PCH" = "x1" ; then | |
50747 | COND_GCC_PCH_1="" | |
50748 | fi | |
50749 | ||
f10e38c4 VZ |
50750 | COND_ICC_PCH_1="#" |
50751 | if test "x$ICC_PCH" = "x1" ; then | |
50752 | COND_ICC_PCH_1="" | |
50753 | fi | |
50754 | ||
a848cd7e SC |
50755 | COND_MONOLITHIC_0="#" |
50756 | if test "x$MONOLITHIC" = "x0" ; then | |
50757 | COND_MONOLITHIC_0="" | |
50758 | fi | |
50759 | ||
50760 | COND_MONOLITHIC_0_SHARED_0="#" | |
50761 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then | |
50762 | COND_MONOLITHIC_0_SHARED_0="" | |
50763 | fi | |
50764 | ||
3f60522a JS |
50765 | COND_MONOLITHIC_0_SHARED_0_USE_AUI_1="#" |
50766 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_AUI" = "x1" ; then | |
50767 | COND_MONOLITHIC_0_SHARED_0_USE_AUI_1="" | |
50768 | fi | |
50769 | ||
a848cd7e SC |
50770 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#" |
50771 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then | |
50772 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="" | |
50773 | fi | |
50774 | ||
90970d69 DE |
50775 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1="#" |
50776 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then | |
50777 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1="" | |
50778 | fi | |
50779 | ||
f10e38c4 VZ |
50780 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1="#" |
50781 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then | |
50782 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1="" | |
50783 | fi | |
50784 | ||
6671c68b VZ |
50785 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1="#" |
50786 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then | |
50787 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1="" | |
50788 | fi | |
50789 | ||
1c4293cb VZ |
50790 | COND_MONOLITHIC_0_SHARED_0_USE_PROPGRID_1="#" |
50791 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_PROPGRID" = "x1" ; then | |
50792 | COND_MONOLITHIC_0_SHARED_0_USE_PROPGRID_1="" | |
50793 | fi | |
50794 | ||
d33ccbe1 VZ |
50795 | COND_MONOLITHIC_0_SHARED_0_USE_RIBBON_1="#" |
50796 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_RIBBON" = "x1" ; then | |
50797 | COND_MONOLITHIC_0_SHARED_0_USE_RIBBON_1="" | |
50798 | fi | |
50799 | ||
8b6682b9 JS |
50800 | COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1="#" |
50801 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_RICHTEXT" = "x1" ; then | |
50802 | COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1="" | |
50803 | fi | |
50804 | ||
54429bb3 RD |
50805 | COND_MONOLITHIC_0_SHARED_0_USE_STC_1="#" |
50806 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_STC" = "x1" ; then | |
50807 | COND_MONOLITHIC_0_SHARED_0_USE_STC_1="" | |
50808 | fi | |
50809 | ||
ceec2216 RL |
50810 | COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="#" |
50811 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then | |
50812 | COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="" | |
50813 | fi | |
50814 | ||
a848cd7e SC |
50815 | COND_MONOLITHIC_0_SHARED_1="#" |
50816 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then | |
50817 | COND_MONOLITHIC_0_SHARED_1="" | |
50818 | fi | |
50819 | ||
3f60522a JS |
50820 | COND_MONOLITHIC_0_SHARED_1_USE_AUI_1="#" |
50821 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_AUI" = "x1" ; then | |
50822 | COND_MONOLITHIC_0_SHARED_1_USE_AUI_1="" | |
50823 | fi | |
50824 | ||
a848cd7e SC |
50825 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#" |
50826 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then | |
50827 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="" | |
50828 | fi | |
50829 | ||
90970d69 DE |
50830 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1="#" |
50831 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then | |
50832 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1="" | |
50833 | fi | |
50834 | ||
f10e38c4 VZ |
50835 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1="#" |
50836 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then | |
50837 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1="" | |
50838 | fi | |
50839 | ||
6671c68b VZ |
50840 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1="#" |
50841 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then | |
50842 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1="" | |
50843 | fi | |
50844 | ||
1c4293cb VZ |
50845 | COND_MONOLITHIC_0_SHARED_1_USE_PROPGRID_1="#" |
50846 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_PROPGRID" = "x1" ; then | |
50847 | COND_MONOLITHIC_0_SHARED_1_USE_PROPGRID_1="" | |
50848 | fi | |
50849 | ||
d33ccbe1 VZ |
50850 | COND_MONOLITHIC_0_SHARED_1_USE_RIBBON_1="#" |
50851 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_RIBBON" = "x1" ; then | |
50852 | COND_MONOLITHIC_0_SHARED_1_USE_RIBBON_1="" | |
50853 | fi | |
50854 | ||
8b6682b9 JS |
50855 | COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1="#" |
50856 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_RICHTEXT" = "x1" ; then | |
50857 | COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1="" | |
50858 | fi | |
50859 | ||
54429bb3 RD |
50860 | COND_MONOLITHIC_0_SHARED_1_USE_STC_1="#" |
50861 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_STC" = "x1" ; then | |
50862 | COND_MONOLITHIC_0_SHARED_1_USE_STC_1="" | |
50863 | fi | |
50864 | ||
ceec2216 RL |
50865 | COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="#" |
50866 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then | |
50867 | COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="" | |
50868 | fi | |
50869 | ||
d63f7562 VZ |
50870 | COND_MONOLITHIC_0_USE_AUI_1="#" |
50871 | if test "x$MONOLITHIC" = "x0" -a "x$USE_AUI" = "x1" ; then | |
50872 | COND_MONOLITHIC_0_USE_AUI_1="" | |
50873 | fi | |
50874 | ||
50875 | COND_MONOLITHIC_0_USE_GUI_1="#" | |
50876 | if test "x$MONOLITHIC" = "x0" -a "x$USE_GUI" = "x1" ; then | |
50877 | COND_MONOLITHIC_0_USE_GUI_1="" | |
50878 | fi | |
50879 | ||
50880 | COND_MONOLITHIC_0_USE_GUI_1_USE_MEDIA_1="#" | |
50881 | if test "x$MONOLITHIC" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then | |
50882 | COND_MONOLITHIC_0_USE_GUI_1_USE_MEDIA_1="" | |
50883 | fi | |
50884 | ||
d63f7562 VZ |
50885 | COND_MONOLITHIC_0_USE_HTML_1="#" |
50886 | if test "x$MONOLITHIC" = "x0" -a "x$USE_HTML" = "x1" ; then | |
50887 | COND_MONOLITHIC_0_USE_HTML_1="" | |
50888 | fi | |
50889 | ||
e5efa97e VZ |
50890 | COND_MONOLITHIC_0_USE_MEDIA_1="#" |
50891 | if test "x$MONOLITHIC" = "x0" -a "x$USE_MEDIA" = "x1" ; then | |
50892 | COND_MONOLITHIC_0_USE_MEDIA_1="" | |
50893 | fi | |
50894 | ||
1c4293cb VZ |
50895 | COND_MONOLITHIC_0_USE_PROPGRID_1="#" |
50896 | if test "x$MONOLITHIC" = "x0" -a "x$USE_PROPGRID" = "x1" ; then | |
50897 | COND_MONOLITHIC_0_USE_PROPGRID_1="" | |
50898 | fi | |
50899 | ||
d63f7562 VZ |
50900 | COND_MONOLITHIC_0_USE_QA_1="#" |
50901 | if test "x$MONOLITHIC" = "x0" -a "x$USE_QA" = "x1" ; then | |
50902 | COND_MONOLITHIC_0_USE_QA_1="" | |
50903 | fi | |
50904 | ||
d33ccbe1 VZ |
50905 | COND_MONOLITHIC_0_USE_RIBBON_1="#" |
50906 | if test "x$MONOLITHIC" = "x0" -a "x$USE_RIBBON" = "x1" ; then | |
50907 | COND_MONOLITHIC_0_USE_RIBBON_1="" | |
50908 | fi | |
50909 | ||
d63f7562 VZ |
50910 | COND_MONOLITHIC_0_USE_RICHTEXT_1="#" |
50911 | if test "x$MONOLITHIC" = "x0" -a "x$USE_RICHTEXT" = "x1" ; then | |
50912 | COND_MONOLITHIC_0_USE_RICHTEXT_1="" | |
50913 | fi | |
50914 | ||
54429bb3 RD |
50915 | COND_MONOLITHIC_0_USE_STC_1="#" |
50916 | if test "x$MONOLITHIC" = "x0" -a "x$USE_STC" = "x1" ; then | |
50917 | COND_MONOLITHIC_0_USE_STC_1="" | |
50918 | fi | |
50919 | ||
d63f7562 VZ |
50920 | COND_MONOLITHIC_0_USE_XRC_1="#" |
50921 | if test "x$MONOLITHIC" = "x0" -a "x$USE_XRC" = "x1" ; then | |
50922 | COND_MONOLITHIC_0_USE_XRC_1="" | |
50923 | fi | |
50924 | ||
a848cd7e SC |
50925 | COND_MONOLITHIC_1="#" |
50926 | if test "x$MONOLITHIC" = "x1" ; then | |
50927 | COND_MONOLITHIC_1="" | |
50928 | fi | |
50929 | ||
50930 | COND_MONOLITHIC_1_SHARED_0="#" | |
50931 | if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then | |
50932 | COND_MONOLITHIC_1_SHARED_0="" | |
50933 | fi | |
50934 | ||
50935 | COND_MONOLITHIC_1_SHARED_1="#" | |
50936 | if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then | |
50937 | COND_MONOLITHIC_1_SHARED_1="" | |
50938 | fi | |
50939 | ||
50940 | COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#" | |
50941 | if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then | |
50942 | COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="" | |
50943 | fi | |
50944 | ||
50945 | COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#" | |
50946 | if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then | |
50947 | COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="" | |
50948 | fi | |
50949 | ||
eb730a0c JS |
50950 | COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1="#" |
50951 | if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERCYGWIN" = "x0" -a "x$USE_SOVERSION" = "x1" ; then | |
50952 | COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1="" | |
50953 | fi | |
50954 | ||
a848cd7e SC |
50955 | COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#" |
50956 | if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then | |
50957 | COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="" | |
50958 | fi | |
50959 | ||
50960 | COND_PLATFORM_MACOSX_1="#" | |
50961 | if test "x$PLATFORM_MACOSX" = "x1" ; then | |
50962 | COND_PLATFORM_MACOSX_1="" | |
50963 | fi | |
50964 | ||
f380544a VZ |
50965 | COND_PLATFORM_MACOSX_1_PLATFORM_MSDOS_0="#" |
50966 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$PLATFORM_MSDOS" = "x0" ; then | |
50967 | COND_PLATFORM_MACOSX_1_PLATFORM_MSDOS_0="" | |
50968 | fi | |
50969 | ||
61aba460 VS |
50970 | COND_PLATFORM_MACOSX_1_PLATFORM_WIN32_1_SHARED_0="#" |
50971 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$PLATFORM_WIN32" = "x1" -a "x$SHARED" = "x0" ; then | |
50972 | COND_PLATFORM_MACOSX_1_PLATFORM_WIN32_1_SHARED_0="" | |
50973 | fi | |
50974 | ||
2ea057f9 SC |
50975 | COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1="#" |
50976 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xOSX_CARBON" -a "x$USE_GUI" = "x1" ; then | |
50977 | COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1="" | |
a848cd7e SC |
50978 | fi |
50979 | ||
2ea057f9 SC |
50980 | COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1_WXUNIV_0="#" |
50981 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xOSX_CARBON" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
50982 | COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1_WXUNIV_0="" | |
fc480dc1 DE |
50983 | fi |
50984 | ||
2ea057f9 SC |
50985 | COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1="#" |
50986 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xOSX_COCOA" -a "x$USE_GUI" = "x1" ; then | |
50987 | COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1="" | |
ebee3cd0 VS |
50988 | fi |
50989 | ||
2ea057f9 SC |
50990 | COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1_WXUNIV_0="#" |
50991 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xOSX_COCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
50992 | COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1_WXUNIV_0="" | |
ebee3cd0 VS |
50993 | fi |
50994 | ||
c9554803 VZ |
50995 | COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_IPHONE_USE_GUI_1="#" |
50996 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xOSX_IPHONE" -a "x$USE_GUI" = "x1" ; then | |
50997 | COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_IPHONE_USE_GUI_1="" | |
50998 | fi | |
50999 | ||
51000 | COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_IPHONE_USE_GUI_1_WXUNIV_0="#" | |
51001 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xOSX_IPHONE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
51002 | COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_IPHONE_USE_GUI_1_WXUNIV_0="" | |
51003 | fi | |
51004 | ||
a848cd7e SC |
51005 | COND_PLATFORM_MACOSX_1_USE_GUI_1="#" |
51006 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then | |
51007 | COND_PLATFORM_MACOSX_1_USE_GUI_1="" | |
51008 | fi | |
51009 | ||
f380544a VZ |
51010 | COND_PLATFORM_MACOSX_1_USE_OPENGL_1="#" |
51011 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_OPENGL" = "x1" ; then | |
51012 | COND_PLATFORM_MACOSX_1_USE_OPENGL_1="" | |
51013 | fi | |
51014 | ||
a848cd7e SC |
51015 | COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#" |
51016 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then | |
51017 | COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="" | |
51018 | fi | |
51019 | ||
b48a2016 DE |
51020 | COND_PLATFORM_MACOS_1="#" |
51021 | if test "x$PLATFORM_MACOS" = "x1" ; then | |
51022 | COND_PLATFORM_MACOS_1="" | |
51023 | fi | |
51024 | ||
ebe887ed VZ |
51025 | COND_PLATFORM_MAC_0="#" |
51026 | if test "x$PLATFORM_MAC" = "x0" ; then | |
51027 | COND_PLATFORM_MAC_0="" | |
51028 | fi | |
51029 | ||
88262190 VZ |
51030 | COND_PLATFORM_MAC_1="#" |
51031 | if test "x$PLATFORM_MAC" = "x1" ; then | |
51032 | COND_PLATFORM_MAC_1="" | |
51033 | fi | |
51034 | ||
ac209a0f VZ |
51035 | COND_PLATFORM_MSDOS_0="#" |
51036 | if test "x$PLATFORM_MSDOS" = "x0" ; then | |
51037 | COND_PLATFORM_MSDOS_0="" | |
51038 | fi | |
51039 | ||
83d8eb47 MW |
51040 | COND_PLATFORM_MSDOS_1="#" |
51041 | if test "x$PLATFORM_MSDOS" = "x1" ; then | |
51042 | COND_PLATFORM_MSDOS_1="" | |
51043 | fi | |
51044 | ||
a848cd7e SC |
51045 | COND_PLATFORM_OS2_1="#" |
51046 | if test "x$PLATFORM_OS2" = "x1" ; then | |
51047 | COND_PLATFORM_OS2_1="" | |
51048 | fi | |
51049 | ||
51050 | COND_PLATFORM_UNIX_0="#" | |
51051 | if test "x$PLATFORM_UNIX" = "x0" ; then | |
51052 | COND_PLATFORM_UNIX_0="" | |
51053 | fi | |
51054 | ||
51055 | COND_PLATFORM_UNIX_1="#" | |
51056 | if test "x$PLATFORM_UNIX" = "x1" ; then | |
51057 | COND_PLATFORM_UNIX_1="" | |
51058 | fi | |
51059 | ||
3ad202f9 VZ |
51060 | COND_PLATFORM_UNIX_1_TOOLKIT_MGL="#" |
51061 | if test "x$PLATFORM_UNIX" = "x1" -a "x$TOOLKIT" = "xMGL" ; then | |
51062 | COND_PLATFORM_UNIX_1_TOOLKIT_MGL="" | |
51063 | fi | |
51064 | ||
51065 | COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1="#" | |
51066 | if test "x$PLATFORM_UNIX" = "x1" -a "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then | |
51067 | COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1="" | |
51068 | fi | |
51069 | ||
a848cd7e SC |
51070 | COND_PLATFORM_UNIX_1_USE_GUI_1="#" |
51071 | if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then | |
51072 | COND_PLATFORM_UNIX_1_USE_GUI_1="" | |
51073 | fi | |
51074 | ||
51075 | COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#" | |
51076 | if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then | |
51077 | COND_PLATFORM_UNIX_1_USE_PLUGINS_0="" | |
51078 | fi | |
51079 | ||
51080 | COND_PLATFORM_WIN32_0="#" | |
51081 | if test "x$PLATFORM_WIN32" = "x0" ; then | |
51082 | COND_PLATFORM_WIN32_0="" | |
51083 | fi | |
51084 | ||
51085 | COND_PLATFORM_WIN32_1="#" | |
51086 | if test "x$PLATFORM_WIN32" = "x1" ; then | |
51087 | COND_PLATFORM_WIN32_1="" | |
51088 | fi | |
51089 | ||
61aba460 VS |
51090 | COND_PLATFORM_WIN32_1_SHARED_0="#" |
51091 | if test "x$PLATFORM_WIN32" = "x1" -a "x$SHARED" = "x0" ; then | |
51092 | COND_PLATFORM_WIN32_1_SHARED_0="" | |
51093 | fi | |
51094 | ||
a848cd7e SC |
51095 | COND_SHARED_0="#" |
51096 | if test "x$SHARED" = "x0" ; then | |
51097 | COND_SHARED_0="" | |
51098 | fi | |
51099 | ||
88262190 VZ |
51100 | COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="#" |
51101 | if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then | |
51102 | COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="" | |
51103 | fi | |
51104 | ||
51105 | COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="#" | |
51106 | if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then | |
51107 | COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="" | |
51108 | fi | |
51109 | ||
51110 | COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="#" | |
51111 | if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then | |
51112 | COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="" | |
51113 | fi | |
51114 | ||
a848cd7e SC |
51115 | COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#" |
51116 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then | |
51117 | COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="" | |
51118 | fi | |
51119 | ||
03c6117e | 51120 | COND_SHARED_0_USE_GUI_1_wxUSE_LIBJPEG_builtin="#" |
a848cd7e | 51121 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then |
03c6117e | 51122 | COND_SHARED_0_USE_GUI_1_wxUSE_LIBJPEG_builtin="" |
a848cd7e SC |
51123 | fi |
51124 | ||
03c6117e | 51125 | COND_SHARED_0_USE_GUI_1_wxUSE_LIBPNG_builtin="#" |
a848cd7e | 51126 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then |
03c6117e | 51127 | COND_SHARED_0_USE_GUI_1_wxUSE_LIBPNG_builtin="" |
a848cd7e SC |
51128 | fi |
51129 | ||
03c6117e | 51130 | COND_SHARED_0_USE_GUI_1_wxUSE_LIBTIFF_builtin="#" |
a848cd7e | 51131 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then |
03c6117e | 51132 | COND_SHARED_0_USE_GUI_1_wxUSE_LIBTIFF_builtin="" |
a848cd7e SC |
51133 | fi |
51134 | ||
7708a267 VS |
51135 | COND_SHARED_0_USE_STC_1="#" |
51136 | if test "x$SHARED" = "x0" -a "x$USE_STC" = "x1" ; then | |
51137 | COND_SHARED_0_USE_STC_1="" | |
51138 | fi | |
51139 | ||
03c6117e | 51140 | COND_SHARED_0_wxUSE_EXPAT_builtin="#" |
a848cd7e | 51141 | if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then |
03c6117e | 51142 | COND_SHARED_0_wxUSE_EXPAT_builtin="" |
a848cd7e SC |
51143 | fi |
51144 | ||
03c6117e | 51145 | COND_SHARED_0_wxUSE_REGEX_builtin="#" |
a848cd7e | 51146 | if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then |
03c6117e | 51147 | COND_SHARED_0_wxUSE_REGEX_builtin="" |
a848cd7e SC |
51148 | fi |
51149 | ||
03c6117e | 51150 | COND_SHARED_0_wxUSE_ZLIB_builtin="#" |
a848cd7e | 51151 | if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then |
03c6117e | 51152 | COND_SHARED_0_wxUSE_ZLIB_builtin="" |
a848cd7e SC |
51153 | fi |
51154 | ||
51155 | COND_SHARED_1="#" | |
51156 | if test "x$SHARED" = "x1" ; then | |
51157 | COND_SHARED_1="" | |
51158 | fi | |
51159 | ||
51160 | COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#" | |
51161 | if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then | |
51162 | COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="" | |
51163 | fi | |
51164 | ||
a30f955f VS |
51165 | COND_TOOLKIT_="#" |
51166 | if test "x$TOOLKIT" = "x" ; then | |
51167 | COND_TOOLKIT_="" | |
51168 | fi | |
51169 | ||
a848cd7e SC |
51170 | COND_TOOLKIT_COCOA="#" |
51171 | if test "x$TOOLKIT" = "xCOCOA" ; then | |
51172 | COND_TOOLKIT_COCOA="" | |
51173 | fi | |
51174 | ||
a49baeab DE |
51175 | COND_TOOLKIT_COCOA_USE_GUI_1="#" |
51176 | if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" ; then | |
51177 | COND_TOOLKIT_COCOA_USE_GUI_1="" | |
51178 | fi | |
51179 | ||
a848cd7e SC |
51180 | COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#" |
51181 | if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
51182 | COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="" | |
51183 | fi | |
51184 | ||
b3c86150 VS |
51185 | COND_TOOLKIT_DFB="#" |
51186 | if test "x$TOOLKIT" = "xDFB" ; then | |
51187 | COND_TOOLKIT_DFB="" | |
51188 | fi | |
51189 | ||
51190 | COND_TOOLKIT_DFB_USE_GUI_1="#" | |
51191 | if test "x$TOOLKIT" = "xDFB" -a "x$USE_GUI" = "x1" ; then | |
51192 | COND_TOOLKIT_DFB_USE_GUI_1="" | |
51193 | fi | |
51194 | ||
a848cd7e SC |
51195 | COND_TOOLKIT_GTK="#" |
51196 | if test "x$TOOLKIT" = "xGTK" ; then | |
51197 | COND_TOOLKIT_GTK="" | |
51198 | fi | |
51199 | ||
d044deea MW |
51200 | COND_TOOLKIT_GTK_TOOLKIT_VERSION_="#" |
51201 | if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" ; then | |
51202 | COND_TOOLKIT_GTK_TOOLKIT_VERSION_="" | |
51203 | fi | |
51204 | ||
51205 | COND_TOOLKIT_GTK_TOOLKIT_VERSION_2="#" | |
51206 | if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" ; then | |
51207 | COND_TOOLKIT_GTK_TOOLKIT_VERSION_2="" | |
51208 | fi | |
51209 | ||
51210 | COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1="#" | |
51211 | if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" -a "x$USE_GUI" = "x1" ; then | |
51212 | COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1="" | |
51213 | fi | |
51214 | ||
51215 | COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0="#" | |
51216 | if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
51217 | COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0="" | |
51218 | fi | |
51219 | ||
51220 | COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1="#" | |
51221 | if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" -a "x$USE_GUI" = "x1" ; then | |
51222 | COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1="" | |
51223 | fi | |
51224 | ||
51225 | COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0="#" | |
51226 | if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
51227 | COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0="" | |
51228 | fi | |
51229 | ||
a848cd7e SC |
51230 | COND_TOOLKIT_GTK_USE_GUI_1="#" |
51231 | if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then | |
51232 | COND_TOOLKIT_GTK_USE_GUI_1="" | |
51233 | fi | |
51234 | ||
a848cd7e SC |
51235 | COND_TOOLKIT_MAC="#" |
51236 | if test "x$TOOLKIT" = "xMAC" ; then | |
51237 | COND_TOOLKIT_MAC="" | |
51238 | fi | |
51239 | ||
a848cd7e SC |
51240 | COND_TOOLKIT_MGL="#" |
51241 | if test "x$TOOLKIT" = "xMGL" ; then | |
51242 | COND_TOOLKIT_MGL="" | |
51243 | fi | |
51244 | ||
51245 | COND_TOOLKIT_MGL_USE_GUI_1="#" | |
51246 | if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then | |
51247 | COND_TOOLKIT_MGL_USE_GUI_1="" | |
51248 | fi | |
51249 | ||
51250 | COND_TOOLKIT_MOTIF="#" | |
51251 | if test "x$TOOLKIT" = "xMOTIF" ; then | |
51252 | COND_TOOLKIT_MOTIF="" | |
51253 | fi | |
51254 | ||
51255 | COND_TOOLKIT_MOTIF_USE_GUI_1="#" | |
51256 | if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then | |
51257 | COND_TOOLKIT_MOTIF_USE_GUI_1="" | |
51258 | fi | |
51259 | ||
51260 | COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#" | |
51261 | if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
51262 | COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="" | |
51263 | fi | |
51264 | ||
51265 | COND_TOOLKIT_MSW="#" | |
51266 | if test "x$TOOLKIT" = "xMSW" ; then | |
51267 | COND_TOOLKIT_MSW="" | |
51268 | fi | |
51269 | ||
51270 | COND_TOOLKIT_MSW_USE_GUI_1="#" | |
51271 | if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then | |
51272 | COND_TOOLKIT_MSW_USE_GUI_1="" | |
51273 | fi | |
51274 | ||
51275 | COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#" | |
51276 | if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
51277 | COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="" | |
51278 | fi | |
51279 | ||
0ee4059d DE |
51280 | COND_TOOLKIT_MSW_WXUNIV_0="#" |
51281 | if test "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then | |
51282 | COND_TOOLKIT_MSW_WXUNIV_0="" | |
51283 | fi | |
51284 | ||
2ea057f9 SC |
51285 | COND_TOOLKIT_OSX_CARBON="#" |
51286 | if test "x$TOOLKIT" = "xOSX_CARBON" ; then | |
51287 | COND_TOOLKIT_OSX_CARBON="" | |
51288 | fi | |
51289 | ||
51290 | COND_TOOLKIT_OSX_CARBON_USE_GUI_1="#" | |
51291 | if test "x$TOOLKIT" = "xOSX_CARBON" -a "x$USE_GUI" = "x1" ; then | |
51292 | COND_TOOLKIT_OSX_CARBON_USE_GUI_1="" | |
51293 | fi | |
51294 | ||
2ea057f9 SC |
51295 | COND_TOOLKIT_OSX_COCOA="#" |
51296 | if test "x$TOOLKIT" = "xOSX_COCOA" ; then | |
51297 | COND_TOOLKIT_OSX_COCOA="" | |
51298 | fi | |
51299 | ||
51300 | COND_TOOLKIT_OSX_COCOA_USE_GUI_1="#" | |
51301 | if test "x$TOOLKIT" = "xOSX_COCOA" -a "x$USE_GUI" = "x1" ; then | |
51302 | COND_TOOLKIT_OSX_COCOA_USE_GUI_1="" | |
51303 | fi | |
51304 | ||
2ea057f9 SC |
51305 | COND_TOOLKIT_OSX_IPHONE="#" |
51306 | if test "x$TOOLKIT" = "xOSX_IPHONE" ; then | |
51307 | COND_TOOLKIT_OSX_IPHONE="" | |
51308 | fi | |
51309 | ||
c9554803 VZ |
51310 | COND_TOOLKIT_OSX_IPHONE_USE_GUI_1="#" |
51311 | if test "x$TOOLKIT" = "xOSX_IPHONE" -a "x$USE_GUI" = "x1" ; then | |
51312 | COND_TOOLKIT_OSX_IPHONE_USE_GUI_1="" | |
51313 | fi | |
51314 | ||
51315 | COND_TOOLKIT_OSX_IPHONE_USE_GUI_1_WXUNIV_0="#" | |
51316 | if test "x$TOOLKIT" = "xOSX_IPHONE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
51317 | COND_TOOLKIT_OSX_IPHONE_USE_GUI_1_WXUNIV_0="" | |
51318 | fi | |
51319 | ||
a848cd7e SC |
51320 | COND_TOOLKIT_PM="#" |
51321 | if test "x$TOOLKIT" = "xPM" ; then | |
51322 | COND_TOOLKIT_PM="" | |
51323 | fi | |
51324 | ||
51325 | COND_TOOLKIT_PM_USE_GUI_1="#" | |
51326 | if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then | |
51327 | COND_TOOLKIT_PM_USE_GUI_1="" | |
51328 | fi | |
51329 | ||
51330 | COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#" | |
51331 | if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
51332 | COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="" | |
51333 | fi | |
51334 | ||
3fd9c298 DE |
51335 | COND_TOOLKIT_WINCE="#" |
51336 | if test "x$TOOLKIT" = "xWINCE" ; then | |
51337 | COND_TOOLKIT_WINCE="" | |
51338 | fi | |
51339 | ||
51340 | COND_TOOLKIT_WINCE_USE_GUI_1="#" | |
51341 | if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then | |
51342 | COND_TOOLKIT_WINCE_USE_GUI_1="" | |
51343 | fi | |
51344 | ||
51345 | COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#" | |
51346 | if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
51347 | COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="" | |
51348 | fi | |
51349 | ||
0ee4059d DE |
51350 | COND_TOOLKIT_WINCE_WXUNIV_0="#" |
51351 | if test "x$TOOLKIT" = "xWINCE" -a "x$WXUNIV" = "x0" ; then | |
51352 | COND_TOOLKIT_WINCE_WXUNIV_0="" | |
51353 | fi | |
51354 | ||
a848cd7e SC |
51355 | COND_TOOLKIT_X11="#" |
51356 | if test "x$TOOLKIT" = "xX11" ; then | |
51357 | COND_TOOLKIT_X11="" | |
51358 | fi | |
51359 | ||
51360 | COND_TOOLKIT_X11_USE_GUI_1="#" | |
51361 | if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then | |
51362 | COND_TOOLKIT_X11_USE_GUI_1="" | |
51363 | fi | |
51364 | ||
51365 | COND_UNICODE_1="#" | |
51366 | if test "x$UNICODE" = "x1" ; then | |
51367 | COND_UNICODE_1="" | |
51368 | fi | |
51369 | ||
a12bd55b VZ |
51370 | COND_USE_CAIRO_1="#" |
51371 | if test "x$USE_CAIRO" = "x1" ; then | |
51372 | COND_USE_CAIRO_1="" | |
51373 | fi | |
51374 | ||
a848cd7e SC |
51375 | COND_USE_EXCEPTIONS_0="#" |
51376 | if test "x$USE_EXCEPTIONS" = "x0" ; then | |
51377 | COND_USE_EXCEPTIONS_0="" | |
51378 | fi | |
51379 | ||
51380 | COND_USE_EXCEPTIONS_1="#" | |
51381 | if test "x$USE_EXCEPTIONS" = "x1" ; then | |
51382 | COND_USE_EXCEPTIONS_1="" | |
51383 | fi | |
51384 | ||
51385 | COND_USE_GUI_0="#" | |
51386 | if test "x$USE_GUI" = "x0" ; then | |
51387 | COND_USE_GUI_0="" | |
51388 | fi | |
51389 | ||
51390 | COND_USE_GUI_1="#" | |
51391 | if test "x$USE_GUI" = "x1" ; then | |
51392 | COND_USE_GUI_1="" | |
51393 | fi | |
51394 | ||
7dd1ae11 VS |
51395 | COND_USE_GUI_1_USE_OPENGL_1="#" |
51396 | if test "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then | |
51397 | COND_USE_GUI_1_USE_OPENGL_1="" | |
51398 | fi | |
51399 | ||
a848cd7e SC |
51400 | COND_USE_GUI_1_WXUNIV_0="#" |
51401 | if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
51402 | COND_USE_GUI_1_WXUNIV_0="" | |
51403 | fi | |
51404 | ||
51405 | COND_USE_GUI_1_WXUNIV_1="#" | |
51406 | if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then | |
51407 | COND_USE_GUI_1_WXUNIV_1="" | |
51408 | fi | |
51409 | ||
51410 | COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#" | |
51411 | if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then | |
51412 | COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="" | |
51413 | fi | |
51414 | ||
51415 | COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#" | |
51416 | if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then | |
51417 | COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="" | |
51418 | fi | |
51419 | ||
51420 | COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#" | |
51421 | if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then | |
51422 | COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="" | |
51423 | fi | |
51424 | ||
03c6117e VZ |
51425 | COND_USE_GUI_1_wxUSE_LIBJPEG_builtin="#" |
51426 | if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then | |
51427 | COND_USE_GUI_1_wxUSE_LIBJPEG_builtin="" | |
51428 | fi | |
51429 | ||
51430 | COND_USE_GUI_1_wxUSE_LIBPNG_builtin="#" | |
51431 | if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then | |
51432 | COND_USE_GUI_1_wxUSE_LIBPNG_builtin="" | |
51433 | fi | |
51434 | ||
51435 | COND_USE_GUI_1_wxUSE_LIBTIFF_builtin="#" | |
51436 | if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then | |
51437 | COND_USE_GUI_1_wxUSE_LIBTIFF_builtin="" | |
51438 | fi | |
51439 | ||
ac209a0f VZ |
51440 | COND_USE_OPENGL_1="#" |
51441 | if test "x$USE_OPENGL" = "x1" ; then | |
51442 | COND_USE_OPENGL_1="" | |
51443 | fi | |
51444 | ||
f10e38c4 VZ |
51445 | COND_USE_PCH_1="#" |
51446 | if test "x$USE_PCH" = "x1" ; then | |
51447 | COND_USE_PCH_1="" | |
51448 | fi | |
51449 | ||
a848cd7e SC |
51450 | COND_USE_PLUGINS_0="#" |
51451 | if test "x$USE_PLUGINS" = "x0" ; then | |
51452 | COND_USE_PLUGINS_0="" | |
51453 | fi | |
51454 | ||
0b78747f MW |
51455 | COND_USE_RTTI_0="#" |
51456 | if test "x$USE_RTTI" = "x0" ; then | |
51457 | COND_USE_RTTI_0="" | |
51458 | fi | |
51459 | ||
51460 | COND_USE_RTTI_1="#" | |
51461 | if test "x$USE_RTTI" = "x1" ; then | |
51462 | COND_USE_RTTI_1="" | |
51463 | fi | |
51464 | ||
2c459beb VZ |
51465 | COND_USE_SOTWOSYMLINKS_1="#" |
51466 | if test "x$USE_SOTWOSYMLINKS" = "x1" ; then | |
51467 | COND_USE_SOTWOSYMLINKS_1="" | |
a848cd7e SC |
51468 | fi |
51469 | ||
eb730a0c JS |
51470 | COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1="#" |
51471 | if test "x$USE_SOVERCYGWIN" = "x1" -a "x$USE_SOVERSION" = "x1" ; then | |
51472 | COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1="" | |
51473 | fi | |
51474 | ||
a848cd7e SC |
51475 | COND_USE_SOVERLINUX_1="#" |
51476 | if test "x$USE_SOVERLINUX" = "x1" ; then | |
51477 | COND_USE_SOVERLINUX_1="" | |
51478 | fi | |
51479 | ||
51480 | COND_USE_SOVERSION_0="#" | |
51481 | if test "x$USE_SOVERSION" = "x0" ; then | |
51482 | COND_USE_SOVERSION_0="" | |
51483 | fi | |
51484 | ||
2c459beb VZ |
51485 | COND_USE_SOVERSION_1_USE_SOVERSOLARIS_1="#" |
51486 | if test "x$USE_SOVERSION" = "x1" -a "x$USE_SOVERSOLARIS" = "x1" ; then | |
51487 | COND_USE_SOVERSION_1_USE_SOVERSOLARIS_1="" | |
51488 | fi | |
51489 | ||
a848cd7e SC |
51490 | COND_USE_SOVERSOLARIS_1="#" |
51491 | if test "x$USE_SOVERSOLARIS" = "x1" ; then | |
51492 | COND_USE_SOVERSOLARIS_1="" | |
51493 | fi | |
51494 | ||
7708a267 VS |
51495 | COND_USE_STC_1="#" |
51496 | if test "x$USE_STC" = "x1" ; then | |
51497 | COND_USE_STC_1="" | |
51498 | fi | |
51499 | ||
0b78747f MW |
51500 | COND_USE_THREADS_0="#" |
51501 | if test "x$USE_THREADS" = "x0" ; then | |
51502 | COND_USE_THREADS_0="" | |
51503 | fi | |
51504 | ||
51505 | COND_USE_THREADS_1="#" | |
51506 | if test "x$USE_THREADS" = "x1" ; then | |
51507 | COND_USE_THREADS_1="" | |
51508 | fi | |
51509 | ||
a13a7f89 RL |
51510 | COND_USE_XRC_1="#" |
51511 | if test "x$USE_XRC" = "x1" ; then | |
51512 | COND_USE_XRC_1="" | |
51513 | fi | |
51514 | ||
eb730a0c JS |
51515 | COND_WINDOWS_IMPLIB_1="#" |
51516 | if test "x$WINDOWS_IMPLIB" = "x1" ; then | |
51517 | COND_WINDOWS_IMPLIB_1="" | |
51518 | fi | |
51519 | ||
a848cd7e SC |
51520 | COND_WITH_PLUGIN_SDL_1="#" |
51521 | if test "x$WITH_PLUGIN_SDL" = "x1" ; then | |
51522 | COND_WITH_PLUGIN_SDL_1="" | |
51523 | fi | |
51524 | ||
1e6eb025 VZ |
51525 | COND_WXUNIV_0="#" |
51526 | if test "x$WXUNIV" = "x0" ; then | |
51527 | COND_WXUNIV_0="" | |
51528 | fi | |
51529 | ||
a848cd7e SC |
51530 | COND_WXUNIV_1="#" |
51531 | if test "x$WXUNIV" = "x1" ; then | |
51532 | COND_WXUNIV_1="" | |
51533 | fi | |
51534 | ||
51535 | COND_WXUSE_EXPAT_BUILTIN="#" | |
51536 | if test "x$wxUSE_EXPAT" = "xbuiltin" ; then | |
51537 | COND_WXUSE_EXPAT_BUILTIN="" | |
51538 | fi | |
51539 | ||
51540 | COND_WXUSE_LIBJPEG_BUILTIN="#" | |
51541 | if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then | |
51542 | COND_WXUSE_LIBJPEG_BUILTIN="" | |
51543 | fi | |
51544 | ||
51545 | COND_WXUSE_LIBPNG_BUILTIN="#" | |
51546 | if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then | |
51547 | COND_WXUSE_LIBPNG_BUILTIN="" | |
51548 | fi | |
51549 | ||
51550 | COND_WXUSE_LIBTIFF_BUILTIN="#" | |
51551 | if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then | |
51552 | COND_WXUSE_LIBTIFF_BUILTIN="" | |
51553 | fi | |
51554 | ||
a848cd7e SC |
51555 | COND_WXUSE_REGEX_BUILTIN="#" |
51556 | if test "x$wxUSE_REGEX" = "xbuiltin" ; then | |
51557 | COND_WXUSE_REGEX_BUILTIN="" | |
51558 | fi | |
51559 | ||
51560 | COND_WXUSE_ZLIB_BUILTIN="#" | |
51561 | if test "x$wxUSE_ZLIB" = "xbuiltin" ; then | |
51562 | COND_WXUSE_ZLIB_BUILTIN="" | |
51563 | fi | |
51564 | ||
03c6117e VZ |
51565 | COND_wxUSE_EXPAT_builtin="#" |
51566 | if test "x$wxUSE_EXPAT" = "xbuiltin" ; then | |
51567 | COND_wxUSE_EXPAT_builtin="" | |
51568 | fi | |
51569 | ||
51570 | COND_wxUSE_LIBJPEG_builtin="#" | |
51571 | if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then | |
51572 | COND_wxUSE_LIBJPEG_builtin="" | |
51573 | fi | |
51574 | ||
51575 | COND_wxUSE_LIBPNG_builtin="#" | |
51576 | if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then | |
51577 | COND_wxUSE_LIBPNG_builtin="" | |
51578 | fi | |
51579 | ||
51580 | COND_wxUSE_LIBTIFF_builtin="#" | |
51581 | if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then | |
51582 | COND_wxUSE_LIBTIFF_builtin="" | |
51583 | fi | |
51584 | ||
51585 | COND_wxUSE_REGEX_builtin="#" | |
51586 | if test "x$wxUSE_REGEX" = "xbuiltin" ; then | |
51587 | COND_wxUSE_REGEX_builtin="" | |
51588 | fi | |
51589 | ||
51590 | COND_wxUSE_ZLIB_builtin="#" | |
51591 | if test "x$wxUSE_ZLIB" = "xbuiltin" ; then | |
51592 | COND_wxUSE_ZLIB_builtin="" | |
51593 | fi | |
51594 | ||
a848cd7e SC |
51595 | |
51596 | ||
810b94f0 | 51597 | if test "$BAKEFILE_AUTOCONF_INC_M4_VERSION" = "" ; then |
d589327a VZ |
51598 | { { echo "$as_me:$LINENO: error: No version found in autoconf_inc.m4 - bakefile macro was changed to take additional argument, perhaps configure.in wasn't updated (see the documentation)?" >&5 |
51599 | echo "$as_me: error: No version found in autoconf_inc.m4 - bakefile macro was changed to take additional argument, perhaps configure.in wasn't updated (see the documentation)?" >&2;} | |
810b94f0 MW |
51600 | { (exit 1); exit 1; }; } |
51601 | fi | |
51602 | ||
2057db16 | 51603 | if test "$BAKEFILE_BAKEFILE_M4_VERSION" != "$BAKEFILE_AUTOCONF_INC_M4_VERSION" ; then |
d589327a VZ |
51604 | { { echo "$as_me:$LINENO: error: Versions of Bakefile used to generate makefiles ($BAKEFILE_AUTOCONF_INC_M4_VERSION) and configure ($BAKEFILE_BAKEFILE_M4_VERSION) do not match." >&5 |
51605 | echo "$as_me: error: Versions of Bakefile used to generate makefiles ($BAKEFILE_AUTOCONF_INC_M4_VERSION) and configure ($BAKEFILE_BAKEFILE_M4_VERSION) do not match." >&2;} | |
2057db16 VS |
51606 | { (exit 1); exit 1; }; } |
51607 | fi | |
51608 | ||
a848cd7e | 51609 | |
ebda9490 VZ |
51610 | case ${INSTALL} in |
51611 | /* ) # Absolute | |
51612 | ;; | |
51613 | ?:* ) # Drive letter, considered as absolute. | |
51614 | ;; | |
51615 | *) | |
51616 | INSTALL=`pwd`/${INSTALL} ;; | |
51617 | esac | |
51618 | ||
ecac5b81 VZ |
51619 | if test "$wxUSE_GUI" = "yes"; then |
51620 | ||
51621 | if test "$wxUSE_MSW" = 1 ; then | |
51622 | if test "x$WINDRES" = "x"; then | |
d589327a VZ |
51623 | { { echo "$as_me:$LINENO: error: Required windres program not found" >&5 |
51624 | echo "$as_me: error: Required windres program not found" >&2;} | |
ecac5b81 VZ |
51625 | { (exit 1); exit 1; }; } |
51626 | fi | |
51627 | ||
da16724e | 51628 | RESCOMP="$WINDRES $WINDRES_CPU_DEFINE" |
ecac5b81 VZ |
51629 | fi |
51630 | ||
f10f4c87 | 51631 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_OLD_COCOA" = 1; then |
ecac5b81 VZ |
51632 | WX_RESOURCES_MACOSX_ASCII="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.r" |
51633 | WX_RESOURCES_MACOSX_DATA="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.rsrc" | |
51634 | ||
51635 | LIBWXMACRES="\$(wx_top_builddir)/lib/${WX_RESOURCES_MACOSX_ASCII}" | |
51636 | ||
51637 | # Extract the first word of "DeRez", so it can be a program name with args. | |
51638 | set dummy DeRez; ac_word=$2 | |
d589327a VZ |
51639 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
51640 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
ecac5b81 | 51641 | if test "${ac_cv_prog_DEREZ+set}" = set; then |
d589327a | 51642 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ecac5b81 VZ |
51643 | else |
51644 | if test -n "$DEREZ"; then | |
51645 | ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test. | |
51646 | else | |
51647 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
51648 | for as_dir in $PATH | |
51649 | do | |
51650 | IFS=$as_save_IFS | |
51651 | test -z "$as_dir" && as_dir=. | |
51652 | for ac_exec_ext in '' $ac_executable_extensions; do | |
47964710 | 51653 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ecac5b81 | 51654 | ac_cv_prog_DEREZ="DeRez" |
d589327a | 51655 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ecac5b81 VZ |
51656 | break 2 |
51657 | fi | |
51658 | done | |
51659 | done | |
47964710 | 51660 | IFS=$as_save_IFS |
ecac5b81 VZ |
51661 | |
51662 | test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez" | |
51663 | fi | |
51664 | fi | |
51665 | DEREZ=$ac_cv_prog_DEREZ | |
51666 | if test -n "$DEREZ"; then | |
d589327a VZ |
51667 | { echo "$as_me:$LINENO: result: $DEREZ" >&5 |
51668 | echo "${ECHO_T}$DEREZ" >&6; } | |
ecac5b81 | 51669 | else |
d589327a VZ |
51670 | { echo "$as_me:$LINENO: result: no" >&5 |
51671 | echo "${ECHO_T}no" >&6; } | |
ecac5b81 VZ |
51672 | fi |
51673 | ||
51674 | ||
47964710 | 51675 | |
ecac5b81 VZ |
51676 | MACSETFILE="\$(SETFILE)" |
51677 | ||
2ea057f9 | 51678 | if test "$wxUSE_OSX_CARBON" = 1; then |
ecac5b81 VZ |
51679 | POSTLINK_COMMAND="\$(REZ) -d __DARWIN__ -t APPL Carbon.r -o" |
51680 | RESCOMP="$REZ" | |
51681 | WXCONFIG_RESFLAGS="-d __DARWIN__ -t APPL Carbon.r -o" | |
51682 | else | |
51683 | POSTLINK_COMMAND="cat /dev/null | \$(REZ) -d __DARWIN__ -t APPL ${LIBWXMACRES}" | |
51684 | RESCOMP="cat /dev/null \| $REZ" | |
51685 | WXCONFIG_RESFLAGS="-d __DARWIN__ -t APPL \$libdir/$WX_RESOURCES_MACOSX_ASCII" | |
51686 | fi | |
51687 | ||
51688 | else | |
51689 | MACSETFILE="@true" | |
51690 | ||
51691 | if test "$wxUSE_PM" = 1; then | |
51692 | RESCOMP="emxbind" | |
51693 | WXCONFIG_RESFLAGS="-ep" | |
51694 | ||
51695 | POSTLINK_COMMAND="$RESCOMP $WXCONFIG_RESFLAGS" | |
51696 | else | |
51697 | POSTLINK_COMMAND="@true" | |
51698 | fi | |
51699 | fi | |
51700 | ||
51701 | fi | |
51702 | ||
51703 | ||
a81d5bb6 MW |
51704 | if test $GCC_PCH = 1 |
51705 | then | |
51706 | if test "$wx_cv_gcc_pch_bug" = yes; then | |
d589327a VZ |
51707 | { echo "$as_me:$LINENO: WARNING: *** Precompiled header support is broken on this compiler" >&5 |
51708 | echo "$as_me: WARNING: *** Precompiled header support is broken on this compiler" >&2;} | |
51709 | { echo "$as_me:$LINENO: WARNING: *** --enable-precomp-headers is not recommended" >&5 | |
51710 | echo "$as_me: WARNING: *** --enable-precomp-headers is not recommended" >&2;} | |
51711 | { echo "$as_me:$LINENO: WARNING: *** see http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13361" >&5 | |
51712 | echo "$as_me: WARNING: *** see http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13361" >&2;} | |
a81d5bb6 MW |
51713 | fi |
51714 | ||
64d975b2 DE |
51715 | # Our WX_PRECOMP flag does not make sense for any language except C++ because |
51716 | # the headers that benefit from precompilation are mostly C++ headers. | |
51717 | CXXFLAGS="-DWX_PRECOMP $CXXFLAGS" | |
51718 | # When Bakefile can do multi-language PCH (e.g. C++ and Objective-C++) enable this: | |
51719 | #OBJCXXFLAGS="-DWX_PRECOMP $CXXFLAGS" | |
a81d5bb6 MW |
51720 | fi |
51721 | ||
7afc46ab KO |
51722 | |
51723 | if test "$wxUSE_MAC" = 1 ; then | |
95768535 | 51724 | if test "x$wxUSE_UNIVERSAL_BINARY" != "xno" ; then |
7afc46ab KO |
51725 | sed "s/DEPSMODE=gcc/DEPSMODE=none/" < bk-deps > temp |
51726 | mv temp bk-deps | |
51727 | chmod +x bk-deps | |
51728 | fi | |
51729 | fi | |
51730 | ||
ceec2216 | 51731 | if test "$wxUSE_SHARED" = "yes"; then |
5b674b9d DE |
51732 | case "${host}" in |
51733 | *-pc-os2_emx | *-pc-os2-emx ) | |
51734 | SHARED_LD_CC="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o" | |
51735 | SHARED_LD_CXX="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o" | |
ec3edcc9 VZ |
51736 | cp -p ${srcdir}/src/os2/dllnames.sh . |
51737 | cp -p ${srcdir}/src/os2/dllar.sh . | |
5b674b9d DE |
51738 | ;; |
51739 | esac | |
ceec2216 | 51740 | fi |
69120ee4 VZ |
51741 | if test "$wxUSE_OMF" = "yes"; then |
51742 | case "${host}" in | |
51743 | *-pc-os2_emx | *-pc-os2-emx ) | |
51744 | LDFLAGS="$LDFLAGS -Zlinker /EXEPACK" | |
51745 | LDFLAGS_GUI="-Zlinker /PMTYPE:PM" | |
51746 | WXCONFIG_LDFLAGS_GUI="-Zlinker /PMTYPE:PM" | |
51747 | ;; | |
51748 | esac | |
51749 | fi | |
a848cd7e | 51750 | |
5ff751d6 | 51751 | WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS $TOOLCHAIN_DEFS" |
a848cd7e | 51752 | |
43a7c679 VZ |
51753 | |
51754 | case "${host}" in | |
51755 | *-*-solaris2* ) | |
efb8d630 | 51756 | if test "$GCC" = yes; then |
43a7c679 VZ |
51757 | CPPFLAGS=`echo $CPPFLAGS | sed 's/-mt//'` |
51758 | LIBS=`echo $LIBS | sed 's/-mt//'` | |
51759 | EXTRALIBS_GUI=`echo $EXTRALIBS_GUI | sed 's/-mt//'` | |
51760 | fi | |
51761 | ;; | |
51762 | ||
51763 | *-*-linux* ) | |
51764 | if test "x$SUNCXX" = xyes; then | |
51765 | CPPFLAGS=`echo $CPPFLAGS | sed 's/-pthread//'` | |
51766 | LIBS=`echo $LIBS | sed 's/-pthread//'` | |
51767 | EXTRALIBS_GUI=`echo $EXTRALIBS_GUI | sed 's/-pthread//'` | |
51768 | fi | |
51769 | ;; | |
51770 | esac | |
51771 | ||
0ff20b9f VS |
51772 | CFLAGS="$CFLAGS $CFLAGS_VISIBILITY" |
51773 | CXXFLAGS="$CXXFLAGS $CXXFLAGS_VISIBILITY" | |
08f20edc VZ |
51774 | OBJCFLAGS="$OBJCFLAGS $CFLAGS_VISIBILITY" |
51775 | OBJCXXFLAGS="$OBJCXXFLAGS $CXXFLAGS_VISIBILITY" | |
0ff20b9f | 51776 | |
a848cd7e SC |
51777 | SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`" |
51778 | ||
51779 | ||
51780 | ||
51781 | ||
51782 | ||
51783 | ||
51784 | ||
51785 | ||
51786 | ||
51787 | ||
51788 | ||
51789 | ||
51790 | ||
51791 | ||
51792 | ||
51793 | ||
51794 | ||
51795 | ||
51796 | ||
51797 | ||
51798 | ||
51799 | ||
51800 | ||
51801 | ||
51802 | ||
51803 | ||
51804 | ||
51805 | ||
51806 | ||
51807 | ||
51808 | ||
51809 | ||
51810 | ||
51811 | ||
51812 | ||
51813 | ||
51814 | ||
51815 | ||
51816 | ||
51817 | ||
51818 | ||
51819 | ||
a848cd7e SC |
51820 | |
51821 | ||
51822 | ||
51823 | ||
51824 | ||
51825 | ||
51826 | ||
51827 | ||
51828 | ||
51829 | ||
51830 | ||
51831 | ||
a848cd7e SC |
51832 | |
51833 | ||
ddd14b14 | 51834 | |
d4fbe1d8 | 51835 | |
a848cd7e SC |
51836 | |
51837 | ||
d589327a VZ |
51838 | { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
51839 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } | |
51840 | set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
47964710 | 51841 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then |
d589327a | 51842 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a848cd7e SC |
51843 | else |
51844 | cat >conftest.make <<\_ACEOF | |
47964710 | 51845 | SHELL = /bin/sh |
a848cd7e | 51846 | all: |
47964710 | 51847 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
a848cd7e SC |
51848 | _ACEOF |
51849 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
47964710 VS |
51850 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
51851 | *@@@%%%=?*=@@@%%%*) | |
51852 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
51853 | *) | |
51854 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
51855 | esac | |
a848cd7e SC |
51856 | rm -f conftest.make |
51857 | fi | |
47964710 | 51858 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
d589327a VZ |
51859 | { echo "$as_me:$LINENO: result: yes" >&5 |
51860 | echo "${ECHO_T}yes" >&6; } | |
a848cd7e SC |
51861 | SET_MAKE= |
51862 | else | |
d589327a VZ |
51863 | { echo "$as_me:$LINENO: result: no" >&5 |
51864 | echo "${ECHO_T}no" >&6; } | |
a848cd7e SC |
51865 | SET_MAKE="MAKE=${MAKE-make}" |
51866 | fi | |
51867 | ||
51868 | ||
a848cd7e | 51869 | |
47964710 | 51870 | ac_config_headers="$ac_config_headers lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in" |
ceec2216 | 51871 | |
a848cd7e | 51872 | |
5c60e845 | 51873 | if test "$USE_WIN32" = 1; then |
d589327a | 51874 | ac_config_commands="$ac_config_commands rcdefs.h" |
5c60e845 MW |
51875 | |
51876 | fi | |
51877 | ||
47964710 | 51878 | ac_config_files="$ac_config_files lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" |
a848cd7e | 51879 | |
a848cd7e | 51880 | |
47964710 | 51881 | ac_config_files="$ac_config_files lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" |
a848cd7e | 51882 | |
ceec2216 | 51883 | |
2f46438b FM |
51884 | ac_config_files="$ac_config_files utils/ifacecheck/rungccxml.sh" |
51885 | ||
51886 | ||
2dbd07cb | 51887 | if test "$wx_cv_version_script" = "yes"; then |
47964710 | 51888 | ac_config_files="$ac_config_files version-script" |
2dbd07cb VZ |
51889 | |
51890 | fi | |
47964710 | 51891 | ac_config_files="$ac_config_files Makefile" |
ceec2216 RL |
51892 | |
51893 | ||
47964710 | 51894 | ac_config_commands="$ac_config_commands wx-config" |
a848cd7e SC |
51895 | |
51896 | ||
9103d280 | 51897 | |
1c14217d | 51898 | if test "$wxWITH_SUBDIRS" != "no"; then |
a848cd7e | 51899 | if test "$wxUSE_GUI" = "yes"; then |
cf63f3d3 | 51900 | SUBDIRS="samples demos utils" |
bef5e9e5 PC |
51901 | else |
51902 | SUBDIRS="samples utils" | |
a848cd7e SC |
51903 | fi |
51904 | ||
51905 | ||
51906 | ||
47964710 | 51907 | # Check whether --with-cppunit-prefix was given. |
a848cd7e | 51908 | if test "${with_cppunit_prefix+set}" = set; then |
47964710 | 51909 | withval=$with_cppunit_prefix; cppunit_config_prefix="$withval" |
a848cd7e SC |
51910 | else |
51911 | cppunit_config_prefix="" | |
47964710 VS |
51912 | fi |
51913 | ||
84ebfcbd | 51914 | |
47964710 | 51915 | # Check whether --with-cppunit-exec-prefix was given. |
a848cd7e | 51916 | if test "${with_cppunit_exec_prefix+set}" = set; then |
47964710 | 51917 | withval=$with_cppunit_exec_prefix; cppunit_config_exec_prefix="$withval" |
a848cd7e SC |
51918 | else |
51919 | cppunit_config_exec_prefix="" | |
47964710 VS |
51920 | fi |
51921 | ||
a848cd7e SC |
51922 | |
51923 | if test x$cppunit_config_exec_prefix != x ; then | |
51924 | cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix" | |
51925 | if test x${CPPUNIT_CONFIG+set} != xset ; then | |
51926 | CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config | |
51927 | fi | |
51928 | fi | |
51929 | if test x$cppunit_config_prefix != x ; then | |
51930 | cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix" | |
51931 | if test x${CPPUNIT_CONFIG+set} != xset ; then | |
51932 | CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config | |
51933 | fi | |
51934 | fi | |
51935 | ||
51936 | # Extract the first word of "cppunit-config", so it can be a program name with args. | |
51937 | set dummy cppunit-config; ac_word=$2 | |
d589327a VZ |
51938 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
51939 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
a848cd7e | 51940 | if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then |
d589327a | 51941 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a848cd7e SC |
51942 | else |
51943 | case $CPPUNIT_CONFIG in | |
51944 | [\\/]* | ?:[\\/]*) | |
51945 | ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path. | |
51946 | ;; | |
51947 | *) | |
51948 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
51949 | for as_dir in $PATH | |
51950 | do | |
51951 | IFS=$as_save_IFS | |
51952 | test -z "$as_dir" && as_dir=. | |
51953 | for ac_exec_ext in '' $ac_executable_extensions; do | |
47964710 | 51954 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
a848cd7e | 51955 | ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
d589327a | 51956 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
a848cd7e SC |
51957 | break 2 |
51958 | fi | |
51959 | done | |
51960 | done | |
47964710 | 51961 | IFS=$as_save_IFS |
a848cd7e SC |
51962 | |
51963 | test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no" | |
51964 | ;; | |
51965 | esac | |
51966 | fi | |
51967 | CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG | |
a848cd7e | 51968 | if test -n "$CPPUNIT_CONFIG"; then |
d589327a VZ |
51969 | { echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5 |
51970 | echo "${ECHO_T}$CPPUNIT_CONFIG" >&6; } | |
a848cd7e | 51971 | else |
d589327a VZ |
51972 | { echo "$as_me:$LINENO: result: no" >&5 |
51973 | echo "${ECHO_T}no" >&6; } | |
a848cd7e SC |
51974 | fi |
51975 | ||
47964710 | 51976 | |
a848cd7e SC |
51977 | cppunit_version_min=1.8.0 |
51978 | ||
d589327a VZ |
51979 | { echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5 |
51980 | echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6; } | |
a848cd7e SC |
51981 | no_cppunit="" |
51982 | if test "$CPPUNIT_CONFIG" = "no" ; then | |
d589327a VZ |
51983 | { echo "$as_me:$LINENO: result: no" >&5 |
51984 | echo "${ECHO_T}no" >&6; } | |
a848cd7e SC |
51985 | no_cppunit=yes |
51986 | else | |
51987 | CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags` | |
51988 | CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs` | |
51989 | cppunit_version=`$CPPUNIT_CONFIG --version` | |
51990 | ||
51991 | cppunit_major_version=`echo $cppunit_version | \ | |
51992 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
51993 | cppunit_minor_version=`echo $cppunit_version | \ | |
51994 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
51995 | cppunit_micro_version=`echo $cppunit_version | \ | |
51996 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
51997 | ||
51998 | cppunit_major_min=`echo $cppunit_version_min | \ | |
51999 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
52000 | cppunit_minor_min=`echo $cppunit_version_min | \ | |
52001 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
52002 | cppunit_micro_min=`echo $cppunit_version_min | \ | |
52003 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
52004 | ||
52005 | cppunit_version_proper=`expr \ | |
52006 | $cppunit_major_version \> $cppunit_major_min \| \ | |
52007 | $cppunit_major_version \= $cppunit_major_min \& \ | |
52008 | $cppunit_minor_version \> $cppunit_minor_min \| \ | |
52009 | $cppunit_major_version \= $cppunit_major_min \& \ | |
52010 | $cppunit_minor_version \= $cppunit_minor_min \& \ | |
52011 | $cppunit_micro_version \>= $cppunit_micro_min ` | |
52012 | ||
52013 | if test "$cppunit_version_proper" = "1" ; then | |
d589327a VZ |
52014 | { echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5 |
52015 | echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6; } | |
a848cd7e | 52016 | else |
d589327a VZ |
52017 | { echo "$as_me:$LINENO: result: no" >&5 |
52018 | echo "${ECHO_T}no" >&6; } | |
a848cd7e SC |
52019 | no_cppunit=yes |
52020 | fi | |
52021 | fi | |
52022 | ||
52023 | if test "x$no_cppunit" = x ; then | |
c2218763 | 52024 | SUBDIRS="$SUBDIRS tests" |
a848cd7e SC |
52025 | else |
52026 | CPPUNIT_CFLAGS="" | |
52027 | CPPUNIT_LIBS="" | |
c2218763 | 52028 | : |
a848cd7e SC |
52029 | fi |
52030 | ||
52031 | ||
52032 | ||
52033 | ||
52034 | ||
bef5e9e5 | 52035 | for subdir in $SUBDIRS; do |
a848cd7e SC |
52036 | if test -d ${srcdir}/${subdir} ; then |
52037 | if test "$wxUSE_GUI" = "yes"; then | |
52038 | if test ${subdir} = "samples"; then | |
52039 | makefiles="samples/Makefile.in $makefiles" | |
bef5e9e5 | 52040 | for sample in $SAMPLES_SUBDIRS; do |
a848cd7e SC |
52041 | if test -d $srcdir/samples/$sample; then |
52042 | makefiles="samples/$sample/Makefile.in $makefiles" | |
52043 | fi | |
52044 | done | |
9c112555 | 52045 | else |
435a5ad0 | 52046 | disabled_var=DISABLED_`echo $subdir | tr '[a-z]' '[A-Z]'` |
9c112555 MW |
52047 | eval "disabled=\$$disabled_var" |
52048 | disabled=/`echo X $disabled | sed 's@ @/|/@g'`/ | |
252a5022 | 52049 | makefiles=`(cd $srcdir ; find $subdir -name Makefile.in) | $EGREP -v "$disabled"` |
a848cd7e | 52050 | fi |
bef5e9e5 | 52051 | else |
eeb67742 | 52052 | if test ${subdir} = "samples"; then |
ac209a0f VZ |
52053 | makefiles="samples/Makefile.in $makefiles" |
52054 | for sample in `echo $SAMPLES_SUBDIRS`; do | |
52055 | if test -d $srcdir/samples/$sample; then | |
52056 | makefiles="samples/$sample/Makefile.in $makefiles" | |
52057 | fi | |
52058 | done | |
a848cd7e | 52059 | elif test ${subdir} = "utils"; then |
6537ccf8 | 52060 | makefiles="" |
eeb67742 | 52061 | for util in ifacecheck ; do |
6537ccf8 | 52062 | if test -d $srcdir/utils/$util ; then |
eeb67742 | 52063 | makefiles="utils/$util/src/Makefile.in \ |
6537ccf8 VS |
52064 | $makefiles" |
52065 | fi | |
52066 | done | |
bef5e9e5 PC |
52067 | else |
52068 | makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)` | |
a848cd7e SC |
52069 | fi |
52070 | fi | |
52071 | ||
52072 | for mkin in $makefiles ; do | |
52073 | mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'` | |
47964710 | 52074 | ac_config_files="$ac_config_files $mk" |
a848cd7e SC |
52075 | |
52076 | done | |
52077 | fi | |
52078 | done | |
1c14217d | 52079 | fi |
a848cd7e SC |
52080 | cat >confcache <<\_ACEOF |
52081 | # This file is a shell script that caches the results of configure | |
52082 | # tests run on this system so they can be shared between configure | |
52083 | # scripts and configure runs, see configure's option --config-cache. | |
52084 | # It is not useful on other systems. If it contains results you don't | |
52085 | # want to keep, you may remove or edit it. | |
52086 | # | |
52087 | # config.status only pays attention to the cache file if you give it | |
52088 | # the --recheck option to rerun configure. | |
52089 | # | |
52090 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
52091 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
52092 | # following values. | |
52093 | ||
52094 | _ACEOF | |
52095 | ||
52096 | # The following way of writing the cache mishandles newlines in values, | |
52097 | # but we know of no workaround that is simple, portable, and efficient. | |
47964710 | 52098 | # So, we kill variables containing newlines. |
a848cd7e SC |
52099 | # Ultrix sh set writes to stderr and can't be redirected directly, |
52100 | # and sets the high bit in the cache file unless we assign to the vars. | |
47964710 VS |
52101 | ( |
52102 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
52103 | eval ac_val=\$$ac_var | |
52104 | case $ac_val in #( | |
52105 | *${as_nl}*) | |
52106 | case $ac_var in #( | |
d589327a VZ |
52107 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
52108 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; | |
47964710 VS |
52109 | esac |
52110 | case $ac_var in #( | |
52111 | _ | IFS | as_nl) ;; #( | |
52112 | *) $as_unset $ac_var ;; | |
52113 | esac ;; | |
52114 | esac | |
52115 | done | |
52116 | ||
a848cd7e | 52117 | (set) 2>&1 | |
47964710 VS |
52118 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
52119 | *${as_nl}ac_space=\ *) | |
a848cd7e SC |
52120 | # `set' does not quote correctly, so add quotes (double-quote |
52121 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
52122 | sed -n \ | |
ac1cb8d3 VS |
52123 | "s/'/'\\\\''/g; |
52124 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
47964710 | 52125 | ;; #( |
a848cd7e SC |
52126 | *) |
52127 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
47964710 | 52128 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
a848cd7e | 52129 | ;; |
47964710 VS |
52130 | esac | |
52131 | sort | |
52132 | ) | | |
a848cd7e | 52133 | sed ' |
47964710 | 52134 | /^ac_cv_env_/b end |
a848cd7e | 52135 | t clear |
47964710 | 52136 | :clear |
a848cd7e SC |
52137 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
52138 | t end | |
47964710 VS |
52139 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
52140 | :end' >>confcache | |
52141 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
52142 | if test -w "$cache_file"; then | |
52143 | test "x$cache_file" != "x/dev/null" && | |
d589327a VZ |
52144 | { echo "$as_me:$LINENO: updating cache $cache_file" >&5 |
52145 | echo "$as_me: updating cache $cache_file" >&6;} | |
a848cd7e SC |
52146 | cat confcache >$cache_file |
52147 | else | |
d589327a VZ |
52148 | { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 |
52149 | echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
a848cd7e SC |
52150 | fi |
52151 | fi | |
52152 | rm -f confcache | |
52153 | ||
52154 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
52155 | # Let make expand exec_prefix. | |
52156 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
52157 | ||
a848cd7e SC |
52158 | DEFS=-DHAVE_CONFIG_H |
52159 | ||
52160 | ac_libobjs= | |
52161 | ac_ltlibobjs= | |
52162 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
52163 | # 1. Remove the extension, and $U if already installed. | |
47964710 | 52164 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
d589327a | 52165 | ac_i=`echo "$ac_i" | sed "$ac_script"` |
47964710 VS |
52166 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
52167 | # will be set to the directory where LIBOBJS objects are built. | |
52168 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
52169 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' | |
a848cd7e SC |
52170 | done |
52171 | LIBOBJS=$ac_libobjs | |
52172 | ||
52173 | LTLIBOBJS=$ac_ltlibobjs | |
52174 | ||
52175 | ||
52176 | ||
52177 | : ${CONFIG_STATUS=./config.status} | |
52178 | ac_clean_files_save=$ac_clean_files | |
52179 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
d589327a VZ |
52180 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
52181 | echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
52182 | cat >$CONFIG_STATUS <<_ACEOF | |
a848cd7e SC |
52183 | #! $SHELL |
52184 | # Generated by $as_me. | |
52185 | # Run this file to recreate the current configuration. | |
52186 | # Compiler output produced by configure, useful for debugging | |
52187 | # configure, is in config.log if it exists. | |
52188 | ||
52189 | debug=false | |
52190 | ac_cs_recheck=false | |
52191 | ac_cs_silent=false | |
52192 | SHELL=\${CONFIG_SHELL-$SHELL} | |
52193 | _ACEOF | |
52194 | ||
d589327a | 52195 | cat >>$CONFIG_STATUS <<\_ACEOF |
a848cd7e SC |
52196 | ## --------------------- ## |
52197 | ## M4sh Initialization. ## | |
52198 | ## --------------------- ## | |
52199 | ||
47964710 VS |
52200 | # Be more Bourne compatible |
52201 | DUALCASE=1; export DUALCASE # for MKS sh | |
a848cd7e SC |
52202 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
52203 | emulate sh | |
52204 | NULLCMD=: | |
d589327a | 52205 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
a848cd7e SC |
52206 | # is contrary to our usage. Disable this feature. |
52207 | alias -g '${1+"$@"}'='"$@"' | |
47964710 VS |
52208 | setopt NO_GLOB_SUBST |
52209 | else | |
52210 | case `(set -o) 2>/dev/null` in | |
52211 | *posix*) set -o posix ;; | |
52212 | esac | |
52213 | ||
52214 | fi | |
52215 | ||
52216 | ||
52217 | ||
52218 | ||
52219 | # PATH needs CR | |
52220 | # Avoid depending upon Character Ranges. | |
52221 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
52222 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
52223 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
52224 | as_cr_digits='0123456789' | |
52225 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
52226 | ||
aa113d87 FM |
52227 | # The user is always right. |
52228 | if test "${PATH_SEPARATOR+set}" != set; then | |
d589327a VZ |
52229 | echo "#! /bin/sh" >conf$$.sh |
52230 | echo "exit 0" >>conf$$.sh | |
52231 | chmod +x conf$$.sh | |
52232 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
52233 | PATH_SEPARATOR=';' | |
52234 | else | |
52235 | PATH_SEPARATOR=: | |
52236 | fi | |
52237 | rm -f conf$$.sh | |
7fd3acaf RD |
52238 | fi |
52239 | ||
a848cd7e | 52240 | # Support unset when possible. |
ac1cb8d3 | 52241 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
a848cd7e SC |
52242 | as_unset=unset |
52243 | else | |
52244 | as_unset=false | |
52245 | fi | |
52246 | ||
52247 | ||
47964710 VS |
52248 | # IFS |
52249 | # We need space, tab and new line, in precisely that order. Quoting is | |
52250 | # there to prevent editors from complaining about space-tab. | |
52251 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
52252 | # splitting by setting IFS to empty value.) | |
d589327a VZ |
52253 | as_nl=' |
52254 | ' | |
47964710 VS |
52255 | IFS=" "" $as_nl" |
52256 | ||
52257 | # Find who we are. Look in the path if we contain no directory separator. | |
52258 | case $0 in | |
52259 | *[\\/]* ) as_myself=$0 ;; | |
52260 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
52261 | for as_dir in $PATH | |
52262 | do | |
52263 | IFS=$as_save_IFS | |
52264 | test -z "$as_dir" && as_dir=. | |
52265 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
52266 | done | |
52267 | IFS=$as_save_IFS | |
52268 | ||
52269 | ;; | |
52270 | esac | |
52271 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
52272 | # in which case we are not to be found in the path. | |
52273 | if test "x$as_myself" = x; then | |
52274 | as_myself=$0 | |
52275 | fi | |
52276 | if test ! -f "$as_myself"; then | |
d589327a | 52277 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
47964710 VS |
52278 | { (exit 1); exit 1; } |
52279 | fi | |
52280 | ||
a848cd7e | 52281 | # Work around bugs in pre-3.0 UWIN ksh. |
47964710 VS |
52282 | for as_var in ENV MAIL MAILPATH |
52283 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
52284 | done | |
a848cd7e SC |
52285 | PS1='$ ' |
52286 | PS2='> ' | |
52287 | PS4='+ ' | |
52288 | ||
52289 | # NLS nuisances. | |
d589327a VZ |
52290 | for as_var in \ |
52291 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
52292 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
52293 | LC_TELEPHONE LC_TIME | |
52294 | do | |
52295 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then | |
52296 | eval $as_var=C; export $as_var | |
52297 | else | |
52298 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
52299 | fi | |
52300 | done | |
a848cd7e SC |
52301 | |
52302 | # Required to use basename. | |
47964710 VS |
52303 | if expr a : '\(a\)' >/dev/null 2>&1 && |
52304 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
a848cd7e SC |
52305 | as_expr=expr |
52306 | else | |
52307 | as_expr=false | |
52308 | fi | |
52309 | ||
47964710 | 52310 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
a848cd7e SC |
52311 | as_basename=basename |
52312 | else | |
52313 | as_basename=false | |
52314 | fi | |
52315 | ||
52316 | ||
52317 | # Name of the executable. | |
47964710 | 52318 | as_me=`$as_basename -- "$0" || |
a848cd7e SC |
52319 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
52320 | X"$0" : 'X\(//\)$' \| \ | |
47964710 | 52321 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
d589327a | 52322 | echo X/"$0" | |
47964710 VS |
52323 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
52324 | s//\1/ | |
52325 | q | |
52326 | } | |
52327 | /^X\/\(\/\/\)$/{ | |
52328 | s//\1/ | |
52329 | q | |
52330 | } | |
52331 | /^X\/\(\/\).*/{ | |
52332 | s//\1/ | |
52333 | q | |
52334 | } | |
52335 | s/.*/./; q'` | |
bd8a7646 | 52336 | |
47964710 VS |
52337 | # CDPATH. |
52338 | $as_unset CDPATH | |
23575150 | 52339 | |
4db03d26 | 52340 | |
bd8a7646 | 52341 | |
bd8a7646 RR |
52342 | as_lineno_1=$LINENO |
52343 | as_lineno_2=$LINENO | |
bd8a7646 | 52344 | test "x$as_lineno_1" != "x$as_lineno_2" && |
47964710 | 52345 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
a848cd7e SC |
52346 | |
52347 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
52348 | # uniformly replaced by the line number. The first 'sed' inserts a | |
47964710 VS |
52349 | # line-number line after each line using $LINENO; the second 'sed' |
52350 | # does the real work. The second script uses 'N' to pair each | |
52351 | # line-number line with the line containing $LINENO, and appends | |
52352 | # trailing '-' during substitution so that $LINENO is not a special | |
52353 | # case at line end. | |
a848cd7e | 52354 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
47964710 VS |
52355 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
52356 | # E. McMahon (1931-1989) for sed's syntax. :-) | |
52357 | sed -n ' | |
52358 | p | |
52359 | /[$]LINENO/= | |
52360 | ' <$as_myself | | |
a848cd7e | 52361 | sed ' |
47964710 VS |
52362 | s/[$]LINENO.*/&-/ |
52363 | t lineno | |
52364 | b | |
52365 | :lineno | |
a848cd7e | 52366 | N |
47964710 VS |
52367 | :loop |
52368 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
a848cd7e | 52369 | t loop |
47964710 | 52370 | s/-\n.*// |
a848cd7e | 52371 | ' >$as_me.lineno && |
47964710 | 52372 | chmod +x "$as_me.lineno" || |
d589327a | 52373 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
a848cd7e SC |
52374 | { (exit 1); exit 1; }; } |
52375 | ||
52376 | # Don't try to exec as it changes $[0], causing all sort of problems | |
52377 | # (the dirname of $[0] is not the place where we might find the | |
47964710 VS |
52378 | # original and so on. Autoconf is especially sensitive to this). |
52379 | . "./$as_me.lineno" | |
a848cd7e SC |
52380 | # Exit status is that of the last command. |
52381 | exit | |
52382 | } | |
52383 | ||
52384 | ||
47964710 VS |
52385 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
52386 | as_dirname=dirname | |
52387 | else | |
52388 | as_dirname=false | |
52389 | fi | |
52390 | ||
52391 | ECHO_C= ECHO_N= ECHO_T= | |
52392 | case `echo -n x` in | |
52393 | -n*) | |
52394 | case `echo 'x\c'` in | |
52395 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
52396 | *) ECHO_C='\c';; | |
52397 | esac;; | |
52398 | *) | |
52399 | ECHO_N='-n';; | |
a848cd7e | 52400 | esac |
d589327a | 52401 | |
47964710 VS |
52402 | if expr a : '\(a\)' >/dev/null 2>&1 && |
52403 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
a848cd7e SC |
52404 | as_expr=expr |
52405 | else | |
52406 | as_expr=false | |
52407 | fi | |
52408 | ||
52409 | rm -f conf$$ conf$$.exe conf$$.file | |
47964710 VS |
52410 | if test -d conf$$.dir; then |
52411 | rm -f conf$$.dir/conf$$.file | |
52412 | else | |
52413 | rm -f conf$$.dir | |
d589327a VZ |
52414 | mkdir conf$$.dir |
52415 | fi | |
52416 | echo >conf$$.file | |
52417 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
52418 | as_ln_s='ln -s' | |
52419 | # ... but there are two gotchas: | |
52420 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
52421 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
52422 | # In both cases, we have to default to `cp -p'. | |
52423 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
a848cd7e | 52424 | as_ln_s='cp -p' |
d589327a VZ |
52425 | elif ln conf$$.file conf$$ 2>/dev/null; then |
52426 | as_ln_s=ln | |
a848cd7e SC |
52427 | else |
52428 | as_ln_s='cp -p' | |
52429 | fi | |
47964710 VS |
52430 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
52431 | rmdir conf$$.dir 2>/dev/null | |
a848cd7e SC |
52432 | |
52433 | if mkdir -p . 2>/dev/null; then | |
52434 | as_mkdir_p=: | |
52435 | else | |
ac1cb8d3 | 52436 | test -d ./-p && rmdir ./-p |
a848cd7e SC |
52437 | as_mkdir_p=false |
52438 | fi | |
52439 | ||
47964710 VS |
52440 | if test -x / >/dev/null 2>&1; then |
52441 | as_test_x='test -x' | |
52442 | else | |
52443 | if ls -dL / >/dev/null 2>&1; then | |
52444 | as_ls_L_option=L | |
52445 | else | |
52446 | as_ls_L_option= | |
52447 | fi | |
52448 | as_test_x=' | |
52449 | eval sh -c '\'' | |
52450 | if test -d "$1"; then | |
d589327a | 52451 | test -d "$1/."; |
47964710 VS |
52452 | else |
52453 | case $1 in | |
d589327a | 52454 | -*)set "./$1";; |
47964710 VS |
52455 | esac; |
52456 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in | |
52457 | ???[sx]*):;;*)false;;esac;fi | |
52458 | '\'' sh | |
52459 | ' | |
52460 | fi | |
52461 | as_executable_p=$as_test_x | |
a848cd7e SC |
52462 | |
52463 | # Sed expression to map a string onto a valid CPP name. | |
ac1cb8d3 | 52464 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
a848cd7e SC |
52465 | |
52466 | # Sed expression to map a string onto a valid variable name. | |
ac1cb8d3 | 52467 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
a848cd7e SC |
52468 | |
52469 | ||
a848cd7e SC |
52470 | exec 6>&1 |
52471 | ||
47964710 | 52472 | # Save the log message, to keep $[0] and so on meaningful, and to |
a848cd7e | 52473 | # report actual input values of CONFIG_FILES etc. instead of their |
47964710 VS |
52474 | # values after options handling. |
52475 | ac_log=" | |
f3239c21 | 52476 | This file was extended by wxWidgets $as_me 2.9.1, which was |
d589327a | 52477 | generated by GNU Autoconf 2.61. Invocation command line was |
a848cd7e SC |
52478 | |
52479 | CONFIG_FILES = $CONFIG_FILES | |
52480 | CONFIG_HEADERS = $CONFIG_HEADERS | |
52481 | CONFIG_LINKS = $CONFIG_LINKS | |
52482 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
52483 | $ $0 $@ | |
52484 | ||
47964710 VS |
52485 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
52486 | " | |
52487 | ||
a848cd7e SC |
52488 | _ACEOF |
52489 | ||
d589327a | 52490 | cat >>$CONFIG_STATUS <<_ACEOF |
a848cd7e | 52491 | # Files that config.status was made for. |
47964710 VS |
52492 | config_files="$ac_config_files" |
52493 | config_headers="$ac_config_headers" | |
52494 | config_commands="$ac_config_commands" | |
bd8a7646 | 52495 | |
47964710 | 52496 | _ACEOF |
a848cd7e | 52497 | |
d589327a | 52498 | cat >>$CONFIG_STATUS <<\_ACEOF |
a848cd7e SC |
52499 | ac_cs_usage="\ |
52500 | \`$as_me' instantiates files from templates according to the | |
52501 | current configuration. | |
52502 | ||
d589327a | 52503 | Usage: $0 [OPTIONS] [FILE]... |
a848cd7e SC |
52504 | |
52505 | -h, --help print this help, then exit | |
47964710 | 52506 | -V, --version print version number and configuration settings, then exit |
d589327a | 52507 | -q, --quiet do not print progress messages |
a848cd7e SC |
52508 | -d, --debug don't remove temporary files |
52509 | --recheck update $as_me by reconfiguring in the same conditions | |
d589327a VZ |
52510 | --file=FILE[:TEMPLATE] |
52511 | instantiate the configuration file FILE | |
52512 | --header=FILE[:TEMPLATE] | |
52513 | instantiate the configuration header FILE | |
a848cd7e SC |
52514 | |
52515 | Configuration files: | |
52516 | $config_files | |
52517 | ||
52518 | Configuration headers: | |
52519 | $config_headers | |
52520 | ||
52521 | Configuration commands: | |
52522 | $config_commands | |
52523 | ||
52524 | Report bugs to <bug-autoconf@gnu.org>." | |
bd8a7646 | 52525 | |
47964710 | 52526 | _ACEOF |
d589327a | 52527 | cat >>$CONFIG_STATUS <<_ACEOF |
a848cd7e | 52528 | ac_cs_version="\\ |
f3239c21 | 52529 | wxWidgets config.status 2.9.1 |
d589327a VZ |
52530 | configured by $0, generated by GNU Autoconf 2.61, |
52531 | with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" | |
a848cd7e | 52532 | |
d589327a | 52533 | Copyright (C) 2006 Free Software Foundation, Inc. |
a848cd7e SC |
52534 | This config.status script is free software; the Free Software Foundation |
52535 | gives unlimited permission to copy, distribute and modify it." | |
47964710 VS |
52536 | |
52537 | ac_pwd='$ac_pwd' | |
52538 | srcdir='$srcdir' | |
52539 | INSTALL='$INSTALL' | |
a848cd7e SC |
52540 | _ACEOF |
52541 | ||
d589327a VZ |
52542 | cat >>$CONFIG_STATUS <<\_ACEOF |
52543 | # If no file are specified by the user, then we need to provide default | |
52544 | # value. By we need to know if files were specified by the user. | |
a848cd7e SC |
52545 | ac_need_defaults=: |
52546 | while test $# != 0 | |
52547 | do | |
52548 | case $1 in | |
52549 | --*=*) | |
47964710 VS |
52550 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
52551 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
a848cd7e SC |
52552 | ac_shift=: |
52553 | ;; | |
47964710 | 52554 | *) |
a848cd7e SC |
52555 | ac_option=$1 |
52556 | ac_optarg=$2 | |
52557 | ac_shift=shift | |
52558 | ;; | |
a848cd7e SC |
52559 | esac |
52560 | ||
52561 | case $ac_option in | |
52562 | # Handling of the options. | |
a848cd7e SC |
52563 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
52564 | ac_cs_recheck=: ;; | |
47964710 | 52565 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
d589327a | 52566 | echo "$ac_cs_version"; exit ;; |
47964710 | 52567 | --debug | --debu | --deb | --de | --d | -d ) |
a848cd7e SC |
52568 | debug=: ;; |
52569 | --file | --fil | --fi | --f ) | |
52570 | $ac_shift | |
d589327a | 52571 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
a848cd7e SC |
52572 | ac_need_defaults=false;; |
52573 | --header | --heade | --head | --hea ) | |
52574 | $ac_shift | |
d589327a | 52575 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
a848cd7e | 52576 | ac_need_defaults=false;; |
47964710 VS |
52577 | --he | --h) |
52578 | # Conflict between --help and --header | |
d589327a | 52579 | { echo "$as_me: error: ambiguous option: $1 |
47964710 VS |
52580 | Try \`$0 --help' for more information." >&2 |
52581 | { (exit 1); exit 1; }; };; | |
52582 | --help | --hel | -h ) | |
d589327a | 52583 | echo "$ac_cs_usage"; exit ;; |
a848cd7e SC |
52584 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
52585 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
52586 | ac_cs_silent=: ;; | |
52587 | ||
52588 | # This is an error. | |
d589327a | 52589 | -*) { echo "$as_me: error: unrecognized option: $1 |
47964710 | 52590 | Try \`$0 --help' for more information." >&2 |
a848cd7e SC |
52591 | { (exit 1); exit 1; }; } ;; |
52592 | ||
47964710 VS |
52593 | *) ac_config_targets="$ac_config_targets $1" |
52594 | ac_need_defaults=false ;; | |
a848cd7e SC |
52595 | |
52596 | esac | |
52597 | shift | |
52598 | done | |
52599 | ||
52600 | ac_configure_extra_args= | |
52601 | ||
52602 | if $ac_cs_silent; then | |
52603 | exec 6>/dev/null | |
52604 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
52605 | fi | |
52606 | ||
52607 | _ACEOF | |
d589327a | 52608 | cat >>$CONFIG_STATUS <<_ACEOF |
a848cd7e | 52609 | if \$ac_cs_recheck; then |
d589327a VZ |
52610 | echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
52611 | CONFIG_SHELL=$SHELL | |
47964710 | 52612 | export CONFIG_SHELL |
d589327a | 52613 | exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
a848cd7e SC |
52614 | fi |
52615 | ||
52616 | _ACEOF | |
d589327a | 52617 | cat >>$CONFIG_STATUS <<\_ACEOF |
47964710 VS |
52618 | exec 5>>config.log |
52619 | { | |
52620 | echo | |
52621 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
52622 | ## Running $as_me. ## | |
52623 | _ASBOX | |
d589327a | 52624 | echo "$ac_log" |
47964710 | 52625 | } >&5 |
a848cd7e | 52626 | |
47964710 | 52627 | _ACEOF |
d589327a | 52628 | cat >>$CONFIG_STATUS <<_ACEOF |
a848cd7e | 52629 | # |
47964710 | 52630 | # INIT-COMMANDS |
a848cd7e SC |
52631 | # |
52632 | ||
5c60e845 MW |
52633 | CPP="$CPP" |
52634 | infile="$srcdir/include/wx/msw/genrcdefs.h" | |
52635 | outdir="lib/wx/include/$TOOLCHAIN_FULLNAME/wx/msw" | |
52636 | ||
52637 | ||
ceec2216 RL |
52638 | TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}" |
52639 | TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}" | |
52640 | TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}" | |
52641 | LN_S="${LN_S}" | |
a848cd7e SC |
52642 | |
52643 | ||
52644 | _ACEOF | |
52645 | ||
d589327a | 52646 | cat >>$CONFIG_STATUS <<\_ACEOF |
47964710 VS |
52647 | |
52648 | # Handling of arguments. | |
a848cd7e SC |
52649 | for ac_config_target in $ac_config_targets |
52650 | do | |
47964710 VS |
52651 | case $ac_config_target in |
52652 | "lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in" ;; | |
52653 | "rcdefs.h") CONFIG_COMMANDS="$CONFIG_COMMANDS rcdefs.h" ;; | |
52654 | "lib/wx/config/${TOOLCHAIN_FULLNAME}") CONFIG_FILES="$CONFIG_FILES lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" ;; | |
52655 | "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}") CONFIG_FILES="$CONFIG_FILES lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" ;; | |
2f46438b | 52656 | "utils/ifacecheck/rungccxml.sh") CONFIG_FILES="$CONFIG_FILES utils/ifacecheck/rungccxml.sh" ;; |
47964710 VS |
52657 | "version-script") CONFIG_FILES="$CONFIG_FILES version-script" ;; |
52658 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
52659 | "wx-config") CONFIG_COMMANDS="$CONFIG_COMMANDS wx-config" ;; | |
52660 | "$mk") CONFIG_FILES="$CONFIG_FILES $mk" ;; | |
52661 | ||
d589327a VZ |
52662 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
52663 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
a848cd7e SC |
52664 | { (exit 1); exit 1; }; };; |
52665 | esac | |
52666 | done | |
52667 | ||
47964710 | 52668 | |
a848cd7e SC |
52669 | # If the user did not use the arguments to specify the items to instantiate, |
52670 | # then the envvar interface is used. Set only those that are not. | |
52671 | # We use the long form for the default assignment because of an extremely | |
52672 | # bizarre bug on SunOS 4.1.3. | |
52673 | if $ac_need_defaults; then | |
52674 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
52675 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
52676 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
52677 | fi | |
52678 | ||
52679 | # Have a temporary directory for convenience. Make it in the build tree | |
47964710 | 52680 | # simply because there is no reason against having it here, and in addition, |
a848cd7e | 52681 | # creating and moving files from /tmp can sometimes cause problems. |
47964710 VS |
52682 | # Hook for its removal unless debugging. |
52683 | # Note that there is a small window in which the directory will not be cleaned: | |
52684 | # after its creation but before its name has been assigned to `$tmp'. | |
a848cd7e SC |
52685 | $debug || |
52686 | { | |
47964710 VS |
52687 | tmp= |
52688 | trap 'exit_status=$? | |
52689 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status | |
52690 | ' 0 | |
a848cd7e SC |
52691 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
52692 | } | |
a848cd7e SC |
52693 | # Create a (secure) tmp directory for tmp files. |
52694 | ||
52695 | { | |
47964710 | 52696 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
a848cd7e SC |
52697 | test -n "$tmp" && test -d "$tmp" |
52698 | } || | |
52699 | { | |
47964710 VS |
52700 | tmp=./conf$$-$RANDOM |
52701 | (umask 077 && mkdir "$tmp") | |
a848cd7e SC |
52702 | } || |
52703 | { | |
d589327a | 52704 | echo "$me: cannot create a temporary directory in ." >&2 |
a848cd7e SC |
52705 | { (exit 1); exit 1; } |
52706 | } | |
52707 | ||
d589327a VZ |
52708 | # |
52709 | # Set up the sed scripts for CONFIG_FILES section. | |
52710 | # | |
52711 | ||
52712 | # No need to generate the scripts if there are no CONFIG_FILES. | |
52713 | # This happens for instance when ./config.status config.h | |
47964710 VS |
52714 | if test -n "$CONFIG_FILES"; then |
52715 | ||
d589327a | 52716 | _ACEOF |
47964710 | 52717 | |
d589327a VZ |
52718 | |
52719 | ||
52720 | ac_delim='%!_!# ' | |
52721 | for ac_last_try in false false false false false :; do | |
52722 | cat >conf$$subs.sed <<_ACEOF | |
52723 | SHELL!$SHELL$ac_delim | |
52724 | PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim | |
52725 | PACKAGE_NAME!$PACKAGE_NAME$ac_delim | |
52726 | PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim | |
52727 | PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim | |
52728 | PACKAGE_STRING!$PACKAGE_STRING$ac_delim | |
52729 | PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim | |
52730 | exec_prefix!$exec_prefix$ac_delim | |
52731 | prefix!$prefix$ac_delim | |
52732 | program_transform_name!$program_transform_name$ac_delim | |
52733 | bindir!$bindir$ac_delim | |
52734 | sbindir!$sbindir$ac_delim | |
52735 | libexecdir!$libexecdir$ac_delim | |
52736 | datarootdir!$datarootdir$ac_delim | |
52737 | datadir!$datadir$ac_delim | |
52738 | sysconfdir!$sysconfdir$ac_delim | |
52739 | sharedstatedir!$sharedstatedir$ac_delim | |
52740 | localstatedir!$localstatedir$ac_delim | |
52741 | includedir!$includedir$ac_delim | |
52742 | oldincludedir!$oldincludedir$ac_delim | |
52743 | docdir!$docdir$ac_delim | |
52744 | infodir!$infodir$ac_delim | |
52745 | htmldir!$htmldir$ac_delim | |
52746 | dvidir!$dvidir$ac_delim | |
52747 | pdfdir!$pdfdir$ac_delim | |
52748 | psdir!$psdir$ac_delim | |
52749 | libdir!$libdir$ac_delim | |
52750 | localedir!$localedir$ac_delim | |
52751 | mandir!$mandir$ac_delim | |
52752 | DEFS!$DEFS$ac_delim | |
52753 | ECHO_C!$ECHO_C$ac_delim | |
52754 | ECHO_N!$ECHO_N$ac_delim | |
52755 | ECHO_T!$ECHO_T$ac_delim | |
52756 | LIBS!$LIBS$ac_delim | |
52757 | build_alias!$build_alias$ac_delim | |
52758 | host_alias!$host_alias$ac_delim | |
52759 | target_alias!$target_alias$ac_delim | |
52760 | build!$build$ac_delim | |
52761 | build_cpu!$build_cpu$ac_delim | |
52762 | build_vendor!$build_vendor$ac_delim | |
52763 | build_os!$build_os$ac_delim | |
52764 | host!$host$ac_delim | |
52765 | host_cpu!$host_cpu$ac_delim | |
52766 | host_vendor!$host_vendor$ac_delim | |
52767 | host_os!$host_os$ac_delim | |
52768 | wx_top_builddir!$wx_top_builddir$ac_delim | |
52769 | CC!$CC$ac_delim | |
52770 | CFLAGS!$CFLAGS$ac_delim | |
52771 | LDFLAGS!$LDFLAGS$ac_delim | |
52772 | CPPFLAGS!$CPPFLAGS$ac_delim | |
52773 | ac_ct_CC!$ac_ct_CC$ac_delim | |
52774 | EXEEXT!$EXEEXT$ac_delim | |
52775 | OBJEXT!$OBJEXT$ac_delim | |
52776 | CPP!$CPP$ac_delim | |
52777 | GREP!$GREP$ac_delim | |
52778 | EGREP!$EGREP$ac_delim | |
52779 | CXX!$CXX$ac_delim | |
52780 | CXXFLAGS!$CXXFLAGS$ac_delim | |
52781 | ac_ct_CXX!$ac_ct_CXX$ac_delim | |
52782 | AR!$AR$ac_delim | |
06a08679 | 52783 | OSX_SW_VERS!$OSX_SW_VERS$ac_delim |
d589327a VZ |
52784 | subdirs!$subdirs$ac_delim |
52785 | PKG_CONFIG!$PKG_CONFIG$ac_delim | |
52786 | GTK_CFLAGS!$GTK_CFLAGS$ac_delim | |
52787 | GTK_LIBS!$GTK_LIBS$ac_delim | |
52788 | GTK_CONFIG!$GTK_CONFIG$ac_delim | |
52789 | DIRECTFB_CFLAGS!$DIRECTFB_CFLAGS$ac_delim | |
52790 | DIRECTFB_LIBS!$DIRECTFB_LIBS$ac_delim | |
52791 | XMKMF!$XMKMF$ac_delim | |
52792 | X_CFLAGS!$X_CFLAGS$ac_delim | |
52793 | X_PRE_LIBS!$X_PRE_LIBS$ac_delim | |
52794 | X_LIBS!$X_LIBS$ac_delim | |
52795 | X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim | |
52796 | PANGOX_CFLAGS!$PANGOX_CFLAGS$ac_delim | |
52797 | PANGOX_LIBS!$PANGOX_LIBS$ac_delim | |
52798 | PANGOFT2_CFLAGS!$PANGOFT2_CFLAGS$ac_delim | |
52799 | PANGOFT2_LIBS!$PANGOFT2_LIBS$ac_delim | |
52800 | PANGOXFT_CFLAGS!$PANGOXFT_CFLAGS$ac_delim | |
52801 | PANGOXFT_LIBS!$PANGOXFT_LIBS$ac_delim | |
52802 | CFLAGS_VISIBILITY!$CFLAGS_VISIBILITY$ac_delim | |
52803 | CXXFLAGS_VISIBILITY!$CXXFLAGS_VISIBILITY$ac_delim | |
52804 | LIBICONV!$LIBICONV$ac_delim | |
52805 | GXX_VERSION!$GXX_VERSION$ac_delim | |
52806 | SDL_CONFIG!$SDL_CONFIG$ac_delim | |
52807 | SDL_CFLAGS!$SDL_CFLAGS$ac_delim | |
52808 | SDL_LIBS!$SDL_LIBS$ac_delim | |
52809 | GTKPRINT_CFLAGS!$GTKPRINT_CFLAGS$ac_delim | |
52810 | GTKPRINT_LIBS!$GTKPRINT_LIBS$ac_delim | |
52811 | LIBGNOMEPRINTUI_CFLAGS!$LIBGNOMEPRINTUI_CFLAGS$ac_delim | |
52812 | LIBGNOMEPRINTUI_LIBS!$LIBGNOMEPRINTUI_LIBS$ac_delim | |
52813 | GNOMEVFS_CFLAGS!$GNOMEVFS_CFLAGS$ac_delim | |
52814 | GNOMEVFS_LIBS!$GNOMEVFS_LIBS$ac_delim | |
52815 | HILDON_CFLAGS!$HILDON_CFLAGS$ac_delim | |
52816 | HILDON_LIBS!$HILDON_LIBS$ac_delim | |
426d19f1 JS |
52817 | HILDON2_CFLAGS!$HILDON2_CFLAGS$ac_delim |
52818 | HILDON2_LIBS!$HILDON2_LIBS$ac_delim | |
d84e6f50 | 52819 | PYTHON!$PYTHON$ac_delim |
d589327a VZ |
52820 | _ACEOF |
52821 | ||
52822 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then | |
52823 | break | |
52824 | elif $ac_last_try; then | |
52825 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | |
52826 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
52827 | { (exit 1); exit 1; }; } | |
52828 | else | |
52829 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
52830 | fi | |
52831 | done | |
52832 | ||
52833 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` | |
52834 | if test -n "$ac_eof"; then | |
52835 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` | |
52836 | ac_eof=`expr $ac_eof + 1` | |
47964710 VS |
52837 | fi |
52838 | ||
d589327a VZ |
52839 | cat >>$CONFIG_STATUS <<_ACEOF |
52840 | cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof | |
52841 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
52842 | _ACEOF | |
52843 | sed ' | |
52844 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g | |
52845 | s/^/s,@/; s/!/@,|#_!!_#|/ | |
52846 | :n | |
52847 | t n | |
52848 | s/'"$ac_delim"'$/,g/; t | |
52849 | s/$/\\/; p | |
52850 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n | |
52851 | ' >>$CONFIG_STATUS <conf$$subs.sed | |
52852 | rm -f conf$$subs.sed | |
52853 | cat >>$CONFIG_STATUS <<_ACEOF | |
52854 | CEOF$ac_eof | |
47964710 VS |
52855 | _ACEOF |
52856 | ||
52857 | ||
d589327a VZ |
52858 | ac_delim='%!_!# ' |
52859 | for ac_last_try in false false false false false :; do | |
52860 | cat >conf$$subs.sed <<_ACEOF | |
06a08679 | 52861 | COND_PYTHON!$COND_PYTHON$ac_delim |
426d19f1 JS |
52862 | CAIRO_CFLAGS!$CAIRO_CFLAGS$ac_delim |
52863 | CAIRO_LIBS!$CAIRO_LIBS$ac_delim | |
d84e6f50 VZ |
52864 | GST_CFLAGS!$GST_CFLAGS$ac_delim |
52865 | GST_LIBS!$GST_LIBS$ac_delim | |
d589327a VZ |
52866 | ALL_WX_LIBS!$ALL_WX_LIBS$ac_delim |
52867 | BUILT_WX_LIBS!$BUILT_WX_LIBS$ac_delim | |
52868 | STD_BASE_LIBS!$STD_BASE_LIBS$ac_delim | |
52869 | STD_GUI_LIBS!$STD_GUI_LIBS$ac_delim | |
52870 | wxUSE_ZLIB!$wxUSE_ZLIB$ac_delim | |
52871 | wxUSE_REGEX!$wxUSE_REGEX$ac_delim | |
52872 | wxUSE_EXPAT!$wxUSE_EXPAT$ac_delim | |
52873 | wxUSE_LIBJPEG!$wxUSE_LIBJPEG$ac_delim | |
52874 | wxUSE_LIBPNG!$wxUSE_LIBPNG$ac_delim | |
52875 | wxUSE_LIBTIFF!$wxUSE_LIBTIFF$ac_delim | |
52876 | VENDOR!$VENDOR$ac_delim | |
52877 | OFFICIAL_BUILD!$OFFICIAL_BUILD$ac_delim | |
52878 | WX_FLAVOUR!$WX_FLAVOUR$ac_delim | |
52879 | WX_LIB_FLAVOUR!$WX_LIB_FLAVOUR$ac_delim | |
52880 | WXUNIV!$WXUNIV$ac_delim | |
52881 | MONOLITHIC!$MONOLITHIC$ac_delim | |
52882 | USE_PLUGINS!$USE_PLUGINS$ac_delim | |
52883 | CXXWARNINGS!$CXXWARNINGS$ac_delim | |
52884 | EXTRALIBS!$EXTRALIBS$ac_delim | |
52885 | EXTRALIBS_XML!$EXTRALIBS_XML$ac_delim | |
52886 | EXTRALIBS_HTML!$EXTRALIBS_HTML$ac_delim | |
52887 | EXTRALIBS_MEDIA!$EXTRALIBS_MEDIA$ac_delim | |
52888 | EXTRALIBS_GUI!$EXTRALIBS_GUI$ac_delim | |
52889 | EXTRALIBS_OPENGL!$EXTRALIBS_OPENGL$ac_delim | |
52890 | EXTRALIBS_SDL!$EXTRALIBS_SDL$ac_delim | |
52891 | EXTRALIBS_STC!$EXTRALIBS_STC$ac_delim | |
52892 | WITH_PLUGIN_SDL!$WITH_PLUGIN_SDL$ac_delim | |
52893 | EXTRALIBS_GTKPRINT!$EXTRALIBS_GTKPRINT$ac_delim | |
52894 | EXTRALIBS_GNOMEPRINT!$EXTRALIBS_GNOMEPRINT$ac_delim | |
52895 | EXTRALIBS_GNOMEVFS!$EXTRALIBS_GNOMEVFS$ac_delim | |
52896 | EXTRALIBS_HILDON!$EXTRALIBS_HILDON$ac_delim | |
52897 | UNICODE!$UNICODE$ac_delim | |
d589327a VZ |
52898 | DEBUG_INFO!$DEBUG_INFO$ac_delim |
52899 | DEBUG_FLAG!$DEBUG_FLAG$ac_delim | |
52900 | TOOLKIT_LOWERCASE!$TOOLKIT_LOWERCASE$ac_delim | |
52901 | TOOLKIT_VERSION!$TOOLKIT_VERSION$ac_delim | |
52902 | DYLIB_RPATH_INSTALL!$DYLIB_RPATH_INSTALL$ac_delim | |
52903 | DYLIB_RPATH_POSTLINK!$DYLIB_RPATH_POSTLINK$ac_delim | |
52904 | SAMPLES_RPATH_FLAG!$SAMPLES_RPATH_FLAG$ac_delim | |
52905 | HEADER_PAD_OPTION!$HEADER_PAD_OPTION$ac_delim | |
52906 | HOST_SUFFIX!$HOST_SUFFIX$ac_delim | |
52907 | CPPUNIT_CFLAGS!$CPPUNIT_CFLAGS$ac_delim | |
52908 | CPPUNIT_LIBS!$CPPUNIT_LIBS$ac_delim | |
52909 | RANLIB!$RANLIB$ac_delim | |
52910 | INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim | |
52911 | INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim | |
52912 | INSTALL_DATA!$INSTALL_DATA$ac_delim | |
52913 | LN_S!$LN_S$ac_delim | |
52914 | SET_MAKE!$SET_MAKE$ac_delim | |
52915 | MAKE_SET!$MAKE_SET$ac_delim | |
52916 | AROPTIONS!$AROPTIONS$ac_delim | |
52917 | STRIP!$STRIP$ac_delim | |
52918 | NM!$NM$ac_delim | |
52919 | INSTALL_DIR!$INSTALL_DIR$ac_delim | |
52920 | LDFLAGS_GUI!$LDFLAGS_GUI$ac_delim | |
52921 | IF_GNU_MAKE!$IF_GNU_MAKE$ac_delim | |
52922 | PLATFORM_UNIX!$PLATFORM_UNIX$ac_delim | |
52923 | PLATFORM_WIN32!$PLATFORM_WIN32$ac_delim | |
52924 | PLATFORM_MSDOS!$PLATFORM_MSDOS$ac_delim | |
52925 | PLATFORM_MAC!$PLATFORM_MAC$ac_delim | |
52926 | PLATFORM_MACOS!$PLATFORM_MACOS$ac_delim | |
52927 | PLATFORM_MACOSX!$PLATFORM_MACOSX$ac_delim | |
52928 | PLATFORM_OS2!$PLATFORM_OS2$ac_delim | |
52929 | PLATFORM_BEOS!$PLATFORM_BEOS$ac_delim | |
52930 | SO_SUFFIX!$SO_SUFFIX$ac_delim | |
52931 | SO_SUFFIX_MODULE!$SO_SUFFIX_MODULE$ac_delim | |
52932 | DLLIMP_SUFFIX!$DLLIMP_SUFFIX$ac_delim | |
52933 | LIBPREFIX!$LIBPREFIX$ac_delim | |
52934 | LIBEXT!$LIBEXT$ac_delim | |
52935 | DLLPREFIX!$DLLPREFIX$ac_delim | |
52936 | DLLPREFIX_MODULE!$DLLPREFIX_MODULE$ac_delim | |
52937 | dlldir!$dlldir$ac_delim | |
52938 | AIX_CXX_LD!$AIX_CXX_LD$ac_delim | |
52939 | SHARED_LD_CC!$SHARED_LD_CC$ac_delim | |
52940 | SHARED_LD_CXX!$SHARED_LD_CXX$ac_delim | |
52941 | SHARED_LD_MODULE_CC!$SHARED_LD_MODULE_CC$ac_delim | |
52942 | SHARED_LD_MODULE_CXX!$SHARED_LD_MODULE_CXX$ac_delim | |
52943 | PIC_FLAG!$PIC_FLAG$ac_delim | |
52944 | WINDOWS_IMPLIB!$WINDOWS_IMPLIB$ac_delim | |
52945 | USE_SOVERSION!$USE_SOVERSION$ac_delim | |
52946 | USE_SOVERLINUX!$USE_SOVERLINUX$ac_delim | |
52947 | USE_SOVERSOLARIS!$USE_SOVERSOLARIS$ac_delim | |
52948 | USE_SOVERCYGWIN!$USE_SOVERCYGWIN$ac_delim | |
52949 | USE_MACVERSION!$USE_MACVERSION$ac_delim | |
2c459beb | 52950 | USE_SOTWOSYMLINKS!$USE_SOTWOSYMLINKS$ac_delim |
d589327a VZ |
52951 | SONAME_FLAG!$SONAME_FLAG$ac_delim |
52952 | DEPS_TRACKING!$DEPS_TRACKING$ac_delim | |
52953 | BK_DEPS!$BK_DEPS$ac_delim | |
52954 | WINDRES!$WINDRES$ac_delim | |
52955 | REZ!$REZ$ac_delim | |
52956 | SETFILE!$SETFILE$ac_delim | |
52957 | OBJCXXFLAGS!$OBJCXXFLAGS$ac_delim | |
d589327a VZ |
52958 | _ACEOF |
52959 | ||
52960 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then | |
52961 | break | |
52962 | elif $ac_last_try; then | |
52963 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | |
52964 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
47964710 | 52965 | { (exit 1); exit 1; }; } |
d589327a VZ |
52966 | else |
52967 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
52968 | fi | |
52969 | done | |
52970 | ||
52971 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` | |
52972 | if test -n "$ac_eof"; then | |
52973 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` | |
52974 | ac_eof=`expr $ac_eof + 1` | |
52975 | fi | |
52976 | ||
52977 | cat >>$CONFIG_STATUS <<_ACEOF | |
52978 | cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof | |
52979 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
52980 | _ACEOF | |
52981 | sed ' | |
52982 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g | |
52983 | s/^/s,@/; s/!/@,|#_!!_#|/ | |
52984 | :n | |
52985 | t n | |
52986 | s/'"$ac_delim"'$/,g/; t | |
52987 | s/$/\\/; p | |
52988 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n | |
52989 | ' >>$CONFIG_STATUS <conf$$subs.sed | |
52990 | rm -f conf$$subs.sed | |
52991 | cat >>$CONFIG_STATUS <<_ACEOF | |
52992 | CEOF$ac_eof | |
52993 | _ACEOF | |
52994 | ||
52995 | ||
47964710 VS |
52996 | ac_delim='%!_!# ' |
52997 | for ac_last_try in false false false false false :; do | |
d589327a | 52998 | cat >conf$$subs.sed <<_ACEOF |
06a08679 | 52999 | GCC_PCH!$GCC_PCH$ac_delim |
426d19f1 JS |
53000 | ICC_PCH!$ICC_PCH$ac_delim |
53001 | ICC_PCH_CREATE_SWITCH!$ICC_PCH_CREATE_SWITCH$ac_delim | |
d84e6f50 | 53002 | ICC_PCH_USE_SWITCH!$ICC_PCH_USE_SWITCH$ac_delim |
d589327a VZ |
53003 | BK_MAKE_PCH!$BK_MAKE_PCH$ac_delim |
53004 | COND_BUILD_DEBUG!$COND_BUILD_DEBUG$ac_delim | |
53005 | COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT!$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT$ac_delim | |
53006 | COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT!$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT$ac_delim | |
53007 | COND_BUILD_DEBUG_UNICODE_0!$COND_BUILD_DEBUG_UNICODE_0$ac_delim | |
53008 | COND_BUILD_DEBUG_UNICODE_1!$COND_BUILD_DEBUG_UNICODE_1$ac_delim | |
53009 | COND_BUILD_RELEASE!$COND_BUILD_RELEASE$ac_delim | |
53010 | COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT!$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT$ac_delim | |
53011 | COND_BUILD_RELEASE_UNICODE_0!$COND_BUILD_RELEASE_UNICODE_0$ac_delim | |
53012 | COND_BUILD_RELEASE_UNICODE_1!$COND_BUILD_RELEASE_UNICODE_1$ac_delim | |
53013 | COND_BUILD_debug!$COND_BUILD_debug$ac_delim | |
53014 | COND_BUILD_debug_DEBUG_FLAG_default!$COND_BUILD_debug_DEBUG_FLAG_default$ac_delim | |
53015 | COND_BUILD_debug_DEBUG_INFO_default!$COND_BUILD_debug_DEBUG_INFO_default$ac_delim | |
53016 | COND_BUILD_debug_UNICODE_0!$COND_BUILD_debug_UNICODE_0$ac_delim | |
53017 | COND_BUILD_debug_UNICODE_1!$COND_BUILD_debug_UNICODE_1$ac_delim | |
53018 | COND_BUILD_release!$COND_BUILD_release$ac_delim | |
53019 | COND_BUILD_release_DEBUG_INFO_default!$COND_BUILD_release_DEBUG_INFO_default$ac_delim | |
53020 | COND_BUILD_release_UNICODE_0!$COND_BUILD_release_UNICODE_0$ac_delim | |
53021 | COND_BUILD_release_UNICODE_1!$COND_BUILD_release_UNICODE_1$ac_delim | |
89b1afb4 | 53022 | COND_DEBUG_FLAG_0!$COND_DEBUG_FLAG_0$ac_delim |
d589327a VZ |
53023 | COND_DEBUG_FLAG_1!$COND_DEBUG_FLAG_1$ac_delim |
53024 | COND_DEBUG_INFO_0!$COND_DEBUG_INFO_0$ac_delim | |
53025 | COND_DEBUG_INFO_1!$COND_DEBUG_INFO_1$ac_delim | |
53026 | COND_DEPS_TRACKING_0!$COND_DEPS_TRACKING_0$ac_delim | |
53027 | COND_DEPS_TRACKING_1!$COND_DEPS_TRACKING_1$ac_delim | |
53028 | COND_GCC_PCH_1!$COND_GCC_PCH_1$ac_delim | |
53029 | COND_ICC_PCH_1!$COND_ICC_PCH_1$ac_delim | |
53030 | COND_MONOLITHIC_0!$COND_MONOLITHIC_0$ac_delim | |
53031 | COND_MONOLITHIC_0_SHARED_0!$COND_MONOLITHIC_0_SHARED_0$ac_delim | |
53032 | COND_MONOLITHIC_0_SHARED_0_USE_AUI_1!$COND_MONOLITHIC_0_SHARED_0_USE_AUI_1$ac_delim | |
53033 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1!$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1$ac_delim | |
53034 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1!$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1$ac_delim | |
53035 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1!$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1$ac_delim | |
53036 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1!$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1$ac_delim | |
53037 | COND_MONOLITHIC_0_SHARED_0_USE_PROPGRID_1!$COND_MONOLITHIC_0_SHARED_0_USE_PROPGRID_1$ac_delim | |
d33ccbe1 | 53038 | COND_MONOLITHIC_0_SHARED_0_USE_RIBBON_1!$COND_MONOLITHIC_0_SHARED_0_USE_RIBBON_1$ac_delim |
d589327a VZ |
53039 | COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1!$COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1$ac_delim |
53040 | COND_MONOLITHIC_0_SHARED_0_USE_STC_1!$COND_MONOLITHIC_0_SHARED_0_USE_STC_1$ac_delim | |
53041 | COND_MONOLITHIC_0_SHARED_0_USE_XRC_1!$COND_MONOLITHIC_0_SHARED_0_USE_XRC_1$ac_delim | |
53042 | COND_MONOLITHIC_0_SHARED_1!$COND_MONOLITHIC_0_SHARED_1$ac_delim | |
53043 | COND_MONOLITHIC_0_SHARED_1_USE_AUI_1!$COND_MONOLITHIC_0_SHARED_1_USE_AUI_1$ac_delim | |
53044 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1!$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1$ac_delim | |
53045 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1!$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1$ac_delim | |
53046 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1!$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1$ac_delim | |
53047 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1!$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1$ac_delim | |
53048 | COND_MONOLITHIC_0_SHARED_1_USE_PROPGRID_1!$COND_MONOLITHIC_0_SHARED_1_USE_PROPGRID_1$ac_delim | |
d33ccbe1 | 53049 | COND_MONOLITHIC_0_SHARED_1_USE_RIBBON_1!$COND_MONOLITHIC_0_SHARED_1_USE_RIBBON_1$ac_delim |
d589327a VZ |
53050 | COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1!$COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1$ac_delim |
53051 | COND_MONOLITHIC_0_SHARED_1_USE_STC_1!$COND_MONOLITHIC_0_SHARED_1_USE_STC_1$ac_delim | |
53052 | COND_MONOLITHIC_0_SHARED_1_USE_XRC_1!$COND_MONOLITHIC_0_SHARED_1_USE_XRC_1$ac_delim | |
53053 | COND_MONOLITHIC_0_USE_AUI_1!$COND_MONOLITHIC_0_USE_AUI_1$ac_delim | |
53054 | COND_MONOLITHIC_0_USE_GUI_1!$COND_MONOLITHIC_0_USE_GUI_1$ac_delim | |
53055 | COND_MONOLITHIC_0_USE_GUI_1_USE_MEDIA_1!$COND_MONOLITHIC_0_USE_GUI_1_USE_MEDIA_1$ac_delim | |
53056 | COND_MONOLITHIC_0_USE_HTML_1!$COND_MONOLITHIC_0_USE_HTML_1$ac_delim | |
53057 | COND_MONOLITHIC_0_USE_MEDIA_1!$COND_MONOLITHIC_0_USE_MEDIA_1$ac_delim | |
53058 | COND_MONOLITHIC_0_USE_PROPGRID_1!$COND_MONOLITHIC_0_USE_PROPGRID_1$ac_delim | |
53059 | COND_MONOLITHIC_0_USE_QA_1!$COND_MONOLITHIC_0_USE_QA_1$ac_delim | |
d33ccbe1 | 53060 | COND_MONOLITHIC_0_USE_RIBBON_1!$COND_MONOLITHIC_0_USE_RIBBON_1$ac_delim |
d589327a VZ |
53061 | COND_MONOLITHIC_0_USE_RICHTEXT_1!$COND_MONOLITHIC_0_USE_RICHTEXT_1$ac_delim |
53062 | COND_MONOLITHIC_0_USE_STC_1!$COND_MONOLITHIC_0_USE_STC_1$ac_delim | |
53063 | COND_MONOLITHIC_0_USE_XRC_1!$COND_MONOLITHIC_0_USE_XRC_1$ac_delim | |
53064 | COND_MONOLITHIC_1!$COND_MONOLITHIC_1$ac_delim | |
53065 | COND_MONOLITHIC_1_SHARED_0!$COND_MONOLITHIC_1_SHARED_0$ac_delim | |
53066 | COND_MONOLITHIC_1_SHARED_1!$COND_MONOLITHIC_1_SHARED_1$ac_delim | |
53067 | COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1!$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1$ac_delim | |
53068 | COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1!$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1$ac_delim | |
53069 | COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1!$COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1$ac_delim | |
53070 | COND_PLATFORM_MACOSX_0_USE_SOVERSION_1!$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1$ac_delim | |
53071 | COND_PLATFORM_MACOSX_1!$COND_PLATFORM_MACOSX_1$ac_delim | |
53072 | COND_PLATFORM_MACOSX_1_PLATFORM_MSDOS_0!$COND_PLATFORM_MACOSX_1_PLATFORM_MSDOS_0$ac_delim | |
61aba460 | 53073 | COND_PLATFORM_MACOSX_1_PLATFORM_WIN32_1_SHARED_0!$COND_PLATFORM_MACOSX_1_PLATFORM_WIN32_1_SHARED_0$ac_delim |
d589327a VZ |
53074 | COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1!$COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1$ac_delim |
53075 | COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1_WXUNIV_0!$COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1_WXUNIV_0$ac_delim | |
53076 | COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1!$COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1$ac_delim | |
53077 | COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1_WXUNIV_0!$COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1_WXUNIV_0$ac_delim | |
c9554803 VZ |
53078 | COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_IPHONE_USE_GUI_1!$COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_IPHONE_USE_GUI_1$ac_delim |
53079 | COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_IPHONE_USE_GUI_1_WXUNIV_0!$COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_IPHONE_USE_GUI_1_WXUNIV_0$ac_delim | |
d589327a VZ |
53080 | COND_PLATFORM_MACOSX_1_USE_GUI_1!$COND_PLATFORM_MACOSX_1_USE_GUI_1$ac_delim |
53081 | COND_PLATFORM_MACOSX_1_USE_OPENGL_1!$COND_PLATFORM_MACOSX_1_USE_OPENGL_1$ac_delim | |
53082 | COND_PLATFORM_MACOSX_1_USE_SOVERSION_1!$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1$ac_delim | |
53083 | COND_PLATFORM_MACOS_1!$COND_PLATFORM_MACOS_1$ac_delim | |
53084 | COND_PLATFORM_MAC_0!$COND_PLATFORM_MAC_0$ac_delim | |
53085 | COND_PLATFORM_MAC_1!$COND_PLATFORM_MAC_1$ac_delim | |
53086 | COND_PLATFORM_MSDOS_0!$COND_PLATFORM_MSDOS_0$ac_delim | |
53087 | COND_PLATFORM_MSDOS_1!$COND_PLATFORM_MSDOS_1$ac_delim | |
53088 | COND_PLATFORM_OS2_1!$COND_PLATFORM_OS2_1$ac_delim | |
53089 | COND_PLATFORM_UNIX_0!$COND_PLATFORM_UNIX_0$ac_delim | |
53090 | COND_PLATFORM_UNIX_1!$COND_PLATFORM_UNIX_1$ac_delim | |
53091 | COND_PLATFORM_UNIX_1_TOOLKIT_MGL!$COND_PLATFORM_UNIX_1_TOOLKIT_MGL$ac_delim | |
53092 | COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1!$COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1$ac_delim | |
53093 | COND_PLATFORM_UNIX_1_USE_GUI_1!$COND_PLATFORM_UNIX_1_USE_GUI_1$ac_delim | |
53094 | COND_PLATFORM_UNIX_1_USE_PLUGINS_0!$COND_PLATFORM_UNIX_1_USE_PLUGINS_0$ac_delim | |
53095 | COND_PLATFORM_WIN32_0!$COND_PLATFORM_WIN32_0$ac_delim | |
d589327a VZ |
53096 | _ACEOF |
53097 | ||
53098 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then | |
53099 | break | |
53100 | elif $ac_last_try; then | |
53101 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | |
53102 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
47964710 | 53103 | { (exit 1); exit 1; }; } |
d589327a VZ |
53104 | else |
53105 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
53106 | fi | |
53107 | done | |
47964710 | 53108 | |
d589327a VZ |
53109 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
53110 | if test -n "$ac_eof"; then | |
53111 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` | |
53112 | ac_eof=`expr $ac_eof + 1` | |
53113 | fi | |
53114 | ||
53115 | cat >>$CONFIG_STATUS <<_ACEOF | |
53116 | cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof | |
53117 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
53118 | _ACEOF | |
53119 | sed ' | |
53120 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g | |
53121 | s/^/s,@/; s/!/@,|#_!!_#|/ | |
53122 | :n | |
53123 | t n | |
53124 | s/'"$ac_delim"'$/,g/; t | |
53125 | s/$/\\/; p | |
53126 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n | |
53127 | ' >>$CONFIG_STATUS <conf$$subs.sed | |
53128 | rm -f conf$$subs.sed | |
53129 | cat >>$CONFIG_STATUS <<_ACEOF | |
53130 | CEOF$ac_eof | |
53131 | _ACEOF | |
53132 | ||
53133 | ||
53134 | ac_delim='%!_!# ' | |
53135 | for ac_last_try in false false false false false :; do | |
53136 | cat >conf$$subs.sed <<_ACEOF | |
c9554803 VZ |
53137 | COND_PLATFORM_WIN32_1!$COND_PLATFORM_WIN32_1$ac_delim |
53138 | COND_PLATFORM_WIN32_1_SHARED_0!$COND_PLATFORM_WIN32_1_SHARED_0$ac_delim | |
06a08679 | 53139 | COND_SHARED_0!$COND_SHARED_0$ac_delim |
61aba460 VS |
53140 | COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0!$COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0$ac_delim |
53141 | COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0!$COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0$ac_delim | |
426d19f1 JS |
53142 | COND_SHARED_0_TOOLKIT_PM_WXUNIV_0!$COND_SHARED_0_TOOLKIT_PM_WXUNIV_0$ac_delim |
53143 | COND_SHARED_0_USE_GUI_1_USE_OPENGL_1!$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1$ac_delim | |
d33ccbe1 VZ |
53144 | COND_SHARED_0_USE_GUI_1_wxUSE_LIBJPEG_builtin!$COND_SHARED_0_USE_GUI_1_wxUSE_LIBJPEG_builtin$ac_delim |
53145 | COND_SHARED_0_USE_GUI_1_wxUSE_LIBPNG_builtin!$COND_SHARED_0_USE_GUI_1_wxUSE_LIBPNG_builtin$ac_delim | |
53146 | COND_SHARED_0_USE_GUI_1_wxUSE_LIBTIFF_builtin!$COND_SHARED_0_USE_GUI_1_wxUSE_LIBTIFF_builtin$ac_delim | |
d84e6f50 VZ |
53147 | COND_SHARED_0_USE_STC_1!$COND_SHARED_0_USE_STC_1$ac_delim |
53148 | COND_SHARED_0_wxUSE_EXPAT_builtin!$COND_SHARED_0_wxUSE_EXPAT_builtin$ac_delim | |
d589327a VZ |
53149 | COND_SHARED_0_wxUSE_REGEX_builtin!$COND_SHARED_0_wxUSE_REGEX_builtin$ac_delim |
53150 | COND_SHARED_0_wxUSE_ZLIB_builtin!$COND_SHARED_0_wxUSE_ZLIB_builtin$ac_delim | |
53151 | COND_SHARED_1!$COND_SHARED_1$ac_delim | |
53152 | COND_SHARED_1_USE_GUI_1_USE_OPENGL_1!$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1$ac_delim | |
53153 | COND_TOOLKIT_!$COND_TOOLKIT_$ac_delim | |
53154 | COND_TOOLKIT_COCOA!$COND_TOOLKIT_COCOA$ac_delim | |
53155 | COND_TOOLKIT_COCOA_USE_GUI_1!$COND_TOOLKIT_COCOA_USE_GUI_1$ac_delim | |
53156 | COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0$ac_delim | |
53157 | COND_TOOLKIT_DFB!$COND_TOOLKIT_DFB$ac_delim | |
53158 | COND_TOOLKIT_DFB_USE_GUI_1!$COND_TOOLKIT_DFB_USE_GUI_1$ac_delim | |
53159 | COND_TOOLKIT_GTK!$COND_TOOLKIT_GTK$ac_delim | |
53160 | COND_TOOLKIT_GTK_TOOLKIT_VERSION_!$COND_TOOLKIT_GTK_TOOLKIT_VERSION_$ac_delim | |
53161 | COND_TOOLKIT_GTK_TOOLKIT_VERSION_2!$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2$ac_delim | |
53162 | COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1!$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1$ac_delim | |
53163 | COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0$ac_delim | |
53164 | COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1!$COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1$ac_delim | |
53165 | COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0$ac_delim | |
53166 | COND_TOOLKIT_GTK_USE_GUI_1!$COND_TOOLKIT_GTK_USE_GUI_1$ac_delim | |
53167 | COND_TOOLKIT_MAC!$COND_TOOLKIT_MAC$ac_delim | |
53168 | COND_TOOLKIT_MGL!$COND_TOOLKIT_MGL$ac_delim | |
53169 | COND_TOOLKIT_MGL_USE_GUI_1!$COND_TOOLKIT_MGL_USE_GUI_1$ac_delim | |
53170 | COND_TOOLKIT_MOTIF!$COND_TOOLKIT_MOTIF$ac_delim | |
53171 | COND_TOOLKIT_MOTIF_USE_GUI_1!$COND_TOOLKIT_MOTIF_USE_GUI_1$ac_delim | |
53172 | COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0$ac_delim | |
53173 | COND_TOOLKIT_MSW!$COND_TOOLKIT_MSW$ac_delim | |
53174 | COND_TOOLKIT_MSW_USE_GUI_1!$COND_TOOLKIT_MSW_USE_GUI_1$ac_delim | |
53175 | COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0$ac_delim | |
53176 | COND_TOOLKIT_MSW_WXUNIV_0!$COND_TOOLKIT_MSW_WXUNIV_0$ac_delim | |
53177 | COND_TOOLKIT_OSX_CARBON!$COND_TOOLKIT_OSX_CARBON$ac_delim | |
53178 | COND_TOOLKIT_OSX_CARBON_USE_GUI_1!$COND_TOOLKIT_OSX_CARBON_USE_GUI_1$ac_delim | |
d589327a VZ |
53179 | COND_TOOLKIT_OSX_COCOA!$COND_TOOLKIT_OSX_COCOA$ac_delim |
53180 | COND_TOOLKIT_OSX_COCOA_USE_GUI_1!$COND_TOOLKIT_OSX_COCOA_USE_GUI_1$ac_delim | |
d589327a | 53181 | COND_TOOLKIT_OSX_IPHONE!$COND_TOOLKIT_OSX_IPHONE$ac_delim |
c9554803 VZ |
53182 | COND_TOOLKIT_OSX_IPHONE_USE_GUI_1!$COND_TOOLKIT_OSX_IPHONE_USE_GUI_1$ac_delim |
53183 | COND_TOOLKIT_OSX_IPHONE_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_OSX_IPHONE_USE_GUI_1_WXUNIV_0$ac_delim | |
d589327a VZ |
53184 | COND_TOOLKIT_PM!$COND_TOOLKIT_PM$ac_delim |
53185 | COND_TOOLKIT_PM_USE_GUI_1!$COND_TOOLKIT_PM_USE_GUI_1$ac_delim | |
53186 | COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0$ac_delim | |
53187 | COND_TOOLKIT_WINCE!$COND_TOOLKIT_WINCE$ac_delim | |
53188 | COND_TOOLKIT_WINCE_USE_GUI_1!$COND_TOOLKIT_WINCE_USE_GUI_1$ac_delim | |
53189 | COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0$ac_delim | |
53190 | COND_TOOLKIT_WINCE_WXUNIV_0!$COND_TOOLKIT_WINCE_WXUNIV_0$ac_delim | |
53191 | COND_TOOLKIT_X11!$COND_TOOLKIT_X11$ac_delim | |
53192 | COND_TOOLKIT_X11_USE_GUI_1!$COND_TOOLKIT_X11_USE_GUI_1$ac_delim | |
53193 | COND_UNICODE_1!$COND_UNICODE_1$ac_delim | |
a12bd55b | 53194 | COND_USE_CAIRO_1!$COND_USE_CAIRO_1$ac_delim |
d589327a VZ |
53195 | COND_USE_EXCEPTIONS_0!$COND_USE_EXCEPTIONS_0$ac_delim |
53196 | COND_USE_EXCEPTIONS_1!$COND_USE_EXCEPTIONS_1$ac_delim | |
53197 | COND_USE_GUI_0!$COND_USE_GUI_0$ac_delim | |
53198 | COND_USE_GUI_1!$COND_USE_GUI_1$ac_delim | |
53199 | COND_USE_GUI_1_USE_OPENGL_1!$COND_USE_GUI_1_USE_OPENGL_1$ac_delim | |
53200 | COND_USE_GUI_1_WXUNIV_0!$COND_USE_GUI_1_WXUNIV_0$ac_delim | |
53201 | COND_USE_GUI_1_WXUNIV_1!$COND_USE_GUI_1_WXUNIV_1$ac_delim | |
53202 | COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN!$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN$ac_delim | |
53203 | COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN!$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN$ac_delim | |
53204 | COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN!$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN$ac_delim | |
53205 | COND_USE_GUI_1_wxUSE_LIBJPEG_builtin!$COND_USE_GUI_1_wxUSE_LIBJPEG_builtin$ac_delim | |
53206 | COND_USE_GUI_1_wxUSE_LIBPNG_builtin!$COND_USE_GUI_1_wxUSE_LIBPNG_builtin$ac_delim | |
53207 | COND_USE_GUI_1_wxUSE_LIBTIFF_builtin!$COND_USE_GUI_1_wxUSE_LIBTIFF_builtin$ac_delim | |
53208 | COND_USE_OPENGL_1!$COND_USE_OPENGL_1$ac_delim | |
53209 | COND_USE_PCH_1!$COND_USE_PCH_1$ac_delim | |
53210 | COND_USE_PLUGINS_0!$COND_USE_PLUGINS_0$ac_delim | |
53211 | COND_USE_RTTI_0!$COND_USE_RTTI_0$ac_delim | |
53212 | COND_USE_RTTI_1!$COND_USE_RTTI_1$ac_delim | |
2c459beb | 53213 | COND_USE_SOTWOSYMLINKS_1!$COND_USE_SOTWOSYMLINKS_1$ac_delim |
d589327a VZ |
53214 | COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1!$COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1$ac_delim |
53215 | COND_USE_SOVERLINUX_1!$COND_USE_SOVERLINUX_1$ac_delim | |
53216 | COND_USE_SOVERSION_0!$COND_USE_SOVERSION_0$ac_delim | |
2c459beb | 53217 | COND_USE_SOVERSION_1_USE_SOVERSOLARIS_1!$COND_USE_SOVERSION_1_USE_SOVERSOLARIS_1$ac_delim |
d589327a VZ |
53218 | COND_USE_SOVERSOLARIS_1!$COND_USE_SOVERSOLARIS_1$ac_delim |
53219 | COND_USE_STC_1!$COND_USE_STC_1$ac_delim | |
53220 | COND_USE_THREADS_0!$COND_USE_THREADS_0$ac_delim | |
53221 | COND_USE_THREADS_1!$COND_USE_THREADS_1$ac_delim | |
53222 | COND_USE_XRC_1!$COND_USE_XRC_1$ac_delim | |
53223 | COND_WINDOWS_IMPLIB_1!$COND_WINDOWS_IMPLIB_1$ac_delim | |
53224 | COND_WITH_PLUGIN_SDL_1!$COND_WITH_PLUGIN_SDL_1$ac_delim | |
53225 | COND_WXUNIV_0!$COND_WXUNIV_0$ac_delim | |
53226 | COND_WXUNIV_1!$COND_WXUNIV_1$ac_delim | |
53227 | COND_WXUSE_EXPAT_BUILTIN!$COND_WXUSE_EXPAT_BUILTIN$ac_delim | |
53228 | COND_WXUSE_LIBJPEG_BUILTIN!$COND_WXUSE_LIBJPEG_BUILTIN$ac_delim | |
53229 | COND_WXUSE_LIBPNG_BUILTIN!$COND_WXUSE_LIBPNG_BUILTIN$ac_delim | |
53230 | COND_WXUSE_LIBTIFF_BUILTIN!$COND_WXUSE_LIBTIFF_BUILTIN$ac_delim | |
53231 | COND_WXUSE_REGEX_BUILTIN!$COND_WXUSE_REGEX_BUILTIN$ac_delim | |
53232 | COND_WXUSE_ZLIB_BUILTIN!$COND_WXUSE_ZLIB_BUILTIN$ac_delim | |
53233 | COND_wxUSE_EXPAT_builtin!$COND_wxUSE_EXPAT_builtin$ac_delim | |
d589327a VZ |
53234 | _ACEOF |
53235 | ||
53236 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then | |
88262190 VZ |
53237 | break |
53238 | elif $ac_last_try; then | |
d589327a VZ |
53239 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
53240 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
88262190 VZ |
53241 | { (exit 1); exit 1; }; } |
53242 | else | |
53243 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
53244 | fi | |
53245 | done | |
53246 | ||
d589327a VZ |
53247 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
53248 | if test -n "$ac_eof"; then | |
53249 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` | |
53250 | ac_eof=`expr $ac_eof + 1` | |
53251 | fi | |
88262190 | 53252 | |
d589327a VZ |
53253 | cat >>$CONFIG_STATUS <<_ACEOF |
53254 | cat >"\$tmp/subs-4.sed" <<\CEOF$ac_eof | |
53255 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
88262190 | 53256 | _ACEOF |
d589327a VZ |
53257 | sed ' |
53258 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g | |
53259 | s/^/s,@/; s/!/@,|#_!!_#|/ | |
53260 | :n | |
53261 | t n | |
53262 | s/'"$ac_delim"'$/,g/; t | |
53263 | s/$/\\/; p | |
53264 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n | |
53265 | ' >>$CONFIG_STATUS <conf$$subs.sed | |
53266 | rm -f conf$$subs.sed | |
53267 | cat >>$CONFIG_STATUS <<_ACEOF | |
53268 | CEOF$ac_eof | |
53269 | _ACEOF | |
53270 | ||
53271 | ||
53272 | ac_delim='%!_!# ' | |
53273 | for ac_last_try in false false false false false :; do | |
53274 | cat >conf$$subs.sed <<_ACEOF | |
c9554803 VZ |
53275 | COND_wxUSE_LIBJPEG_builtin!$COND_wxUSE_LIBJPEG_builtin$ac_delim |
53276 | COND_wxUSE_LIBPNG_builtin!$COND_wxUSE_LIBPNG_builtin$ac_delim | |
53277 | COND_wxUSE_LIBTIFF_builtin!$COND_wxUSE_LIBTIFF_builtin$ac_delim | |
53278 | COND_wxUSE_REGEX_builtin!$COND_wxUSE_REGEX_builtin$ac_delim | |
06a08679 | 53279 | COND_wxUSE_ZLIB_builtin!$COND_wxUSE_ZLIB_builtin$ac_delim |
61aba460 VS |
53280 | DEREZ!$DEREZ$ac_delim |
53281 | SHARED!$SHARED$ac_delim | |
a12bd55b | 53282 | WX_LIBRARY_BASENAME_NOGUI!$WX_LIBRARY_BASENAME_NOGUI$ac_delim |
2c459beb | 53283 | WX_LIBRARY_BASENAME_GUI!$WX_LIBRARY_BASENAME_GUI$ac_delim |
426d19f1 JS |
53284 | USE_GUI!$USE_GUI$ac_delim |
53285 | AFMINSTALL!$AFMINSTALL$ac_delim | |
d33ccbe1 VZ |
53286 | WIN32INSTALL!$WIN32INSTALL$ac_delim |
53287 | TOOLKIT!$TOOLKIT$ac_delim | |
53288 | TOOLKIT_DIR!$TOOLKIT_DIR$ac_delim | |
d589327a VZ |
53289 | TOOLCHAIN_NAME!$TOOLCHAIN_NAME$ac_delim |
53290 | TOOLCHAIN_FULLNAME!$TOOLCHAIN_FULLNAME$ac_delim | |
53291 | cross_compiling!$cross_compiling$ac_delim | |
53292 | WIDGET_SET!$WIDGET_SET$ac_delim | |
53293 | WX_RELEASE!$WX_RELEASE$ac_delim | |
53294 | WX_VERSION!$WX_VERSION$ac_delim | |
53295 | WX_SUBVERSION!$WX_SUBVERSION$ac_delim | |
53296 | WX_CHARTYPE!$WX_CHARTYPE$ac_delim | |
d589327a VZ |
53297 | WXCONFIG_CPPFLAGS!$WXCONFIG_CPPFLAGS$ac_delim |
53298 | WXCONFIG_CFLAGS!$WXCONFIG_CFLAGS$ac_delim | |
53299 | WXCONFIG_CXXFLAGS!$WXCONFIG_CXXFLAGS$ac_delim | |
53300 | WXCONFIG_LIBS!$WXCONFIG_LIBS$ac_delim | |
53301 | WXCONFIG_RPATH!$WXCONFIG_RPATH$ac_delim | |
d4fbe1d8 | 53302 | WXCONFIG_LDFLAGS!$WXCONFIG_LDFLAGS$ac_delim |
d589327a VZ |
53303 | WXCONFIG_LDFLAGS_GUI!$WXCONFIG_LDFLAGS_GUI$ac_delim |
53304 | WXCONFIG_RESFLAGS!$WXCONFIG_RESFLAGS$ac_delim | |
53305 | GUIDIST!$GUIDIST$ac_delim | |
53306 | DISTDIR!$DISTDIR$ac_delim | |
53307 | SAMPLES_SUBDIRS!$SAMPLES_SUBDIRS$ac_delim | |
53308 | LDFLAGS_GL!$LDFLAGS_GL$ac_delim | |
53309 | OPENGL_LIBS!$OPENGL_LIBS$ac_delim | |
53310 | DMALLOC_LIBS!$DMALLOC_LIBS$ac_delim | |
53311 | WX_VERSION_TAG!$WX_VERSION_TAG$ac_delim | |
53312 | RESCOMP!$RESCOMP$ac_delim | |
53313 | RESFLAGS!$RESFLAGS$ac_delim | |
53314 | RESPROGRAMOBJ!$RESPROGRAMOBJ$ac_delim | |
53315 | WX_RESOURCES_MACOSX_ASCII!$WX_RESOURCES_MACOSX_ASCII$ac_delim | |
53316 | WX_RESOURCES_MACOSX_DATA!$WX_RESOURCES_MACOSX_DATA$ac_delim | |
53317 | LIBWXMACRES!$LIBWXMACRES$ac_delim | |
53318 | POSTLINK_COMMAND!$POSTLINK_COMMAND$ac_delim | |
53319 | MACSETFILE!$MACSETFILE$ac_delim | |
53320 | GCC!$GCC$ac_delim | |
53321 | DLLTOOL!$DLLTOOL$ac_delim | |
53322 | CPPUNIT_CONFIG!$CPPUNIT_CONFIG$ac_delim | |
53323 | LIBOBJS!$LIBOBJS$ac_delim | |
53324 | LTLIBOBJS!$LTLIBOBJS$ac_delim | |
53325 | _ACEOF | |
53326 | ||
c9554803 | 53327 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 50; then |
d589327a VZ |
53328 | break |
53329 | elif $ac_last_try; then | |
53330 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | |
53331 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
47964710 | 53332 | { (exit 1); exit 1; }; } |
d589327a VZ |
53333 | else |
53334 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
53335 | fi | |
53336 | done | |
53337 | ||
53338 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` | |
53339 | if test -n "$ac_eof"; then | |
53340 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` | |
53341 | ac_eof=`expr $ac_eof + 1` | |
53342 | fi | |
53343 | ||
53344 | cat >>$CONFIG_STATUS <<_ACEOF | |
53345 | cat >"\$tmp/subs-5.sed" <<\CEOF$ac_eof | |
53346 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end | |
53347 | _ACEOF | |
53348 | sed ' | |
53349 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g | |
53350 | s/^/s,@/; s/!/@,|#_!!_#|/ | |
53351 | :n | |
53352 | t n | |
53353 | s/'"$ac_delim"'$/,g/; t | |
53354 | s/$/\\/; p | |
53355 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n | |
53356 | ' >>$CONFIG_STATUS <conf$$subs.sed | |
53357 | rm -f conf$$subs.sed | |
53358 | cat >>$CONFIG_STATUS <<_ACEOF | |
53359 | :end | |
53360 | s/|#_!!_#|//g | |
53361 | CEOF$ac_eof | |
47964710 VS |
53362 | _ACEOF |
53363 | ||
d589327a | 53364 | |
47964710 VS |
53365 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
53366 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
53367 | # trailing colons and then remove the whole line if VPATH becomes empty | |
53368 | # (actually we leave an empty line to preserve line numbers). | |
53369 | if test "x$srcdir" = x.; then | |
53370 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
53371 | s/:*\$(srcdir):*/:/ | |
53372 | s/:*\${srcdir}:*/:/ | |
53373 | s/:*@srcdir@:*/:/ | |
53374 | s/^\([^=]*=[ ]*\):*/\1/ | |
53375 | s/:*$// | |
53376 | s/^[^=]*=[ ]*$// | |
53377 | }' | |
53378 | fi | |
53379 | ||
d589327a | 53380 | cat >>$CONFIG_STATUS <<\_ACEOF |
47964710 VS |
53381 | fi # test -n "$CONFIG_FILES" |
53382 | ||
53383 | ||
d589327a | 53384 | for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS |
47964710 VS |
53385 | do |
53386 | case $ac_tag in | |
53387 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
a848cd7e | 53388 | esac |
47964710 VS |
53389 | case $ac_mode$ac_tag in |
53390 | :[FHL]*:*);; | |
d589327a VZ |
53391 | :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 |
53392 | echo "$as_me: error: Invalid tag $ac_tag." >&2;} | |
47964710 VS |
53393 | { (exit 1); exit 1; }; };; |
53394 | :[FH]-) ac_tag=-:-;; | |
53395 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
53396 | esac | |
53397 | ac_save_IFS=$IFS | |
53398 | IFS=: | |
53399 | set x $ac_tag | |
53400 | IFS=$ac_save_IFS | |
53401 | shift | |
53402 | ac_file=$1 | |
53403 | shift | |
a848cd7e | 53404 | |
47964710 VS |
53405 | case $ac_mode in |
53406 | :L) ac_source=$1;; | |
53407 | :[FH]) | |
53408 | ac_file_inputs= | |
53409 | for ac_f | |
53410 | do | |
53411 | case $ac_f in | |
53412 | -) ac_f="$tmp/stdin";; | |
53413 | *) # Look for the file first in the build tree, then in the source tree | |
53414 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
53415 | # because $ac_f cannot contain `:'. | |
53416 | test -f "$ac_f" || | |
53417 | case $ac_f in | |
53418 | [\\/$]*) false;; | |
53419 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
53420 | esac || | |
d589327a VZ |
53421 | { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 |
53422 | echo "$as_me: error: cannot find input file: $ac_f" >&2;} | |
47964710 VS |
53423 | { (exit 1); exit 1; }; };; |
53424 | esac | |
d589327a | 53425 | ac_file_inputs="$ac_file_inputs $ac_f" |
47964710 VS |
53426 | done |
53427 | ||
53428 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
53429 | # use $as_me), people would be surprised to read: | |
53430 | # /* config.h. Generated by config.status. */ | |
d589327a VZ |
53431 | configure_input="Generated from "`IFS=: |
53432 | echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." | |
47964710 VS |
53433 | if test x"$ac_file" != x-; then |
53434 | configure_input="$ac_file. $configure_input" | |
d589327a VZ |
53435 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
53436 | echo "$as_me: creating $ac_file" >&6;} | |
53437 | fi | |
47964710 VS |
53438 | |
53439 | case $ac_tag in | |
d589327a | 53440 | *:-:* | *:-) cat >"$tmp/stdin";; |
47964710 VS |
53441 | esac |
53442 | ;; | |
53443 | esac | |
53444 | ||
53445 | ac_dir=`$as_dirname -- "$ac_file" || | |
a848cd7e | 53446 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
ac1cb8d3 VS |
53447 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
53448 | X"$ac_file" : 'X\(//\)$' \| \ | |
47964710 | 53449 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
d589327a | 53450 | echo X"$ac_file" | |
47964710 VS |
53451 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
53452 | s//\1/ | |
53453 | q | |
53454 | } | |
53455 | /^X\(\/\/\)[^/].*/{ | |
53456 | s//\1/ | |
53457 | q | |
53458 | } | |
53459 | /^X\(\/\/\)$/{ | |
53460 | s//\1/ | |
53461 | q | |
53462 | } | |
53463 | /^X\(\/\).*/{ | |
53464 | s//\1/ | |
53465 | q | |
53466 | } | |
53467 | s/.*/./; q'` | |
53468 | { as_dir="$ac_dir" | |
53469 | case $as_dir in #( | |
53470 | -*) as_dir=./$as_dir;; | |
53471 | esac | |
53472 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { | |
a848cd7e | 53473 | as_dirs= |
47964710 VS |
53474 | while :; do |
53475 | case $as_dir in #( | |
d589327a | 53476 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( |
47964710 VS |
53477 | *) as_qdir=$as_dir;; |
53478 | esac | |
53479 | as_dirs="'$as_qdir' $as_dirs" | |
53480 | as_dir=`$as_dirname -- "$as_dir" || | |
a848cd7e | 53481 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
ac1cb8d3 VS |
53482 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
53483 | X"$as_dir" : 'X\(//\)$' \| \ | |
47964710 | 53484 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
d589327a | 53485 | echo X"$as_dir" | |
47964710 VS |
53486 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
53487 | s//\1/ | |
53488 | q | |
53489 | } | |
53490 | /^X\(\/\/\)[^/].*/{ | |
53491 | s//\1/ | |
53492 | q | |
53493 | } | |
53494 | /^X\(\/\/\)$/{ | |
53495 | s//\1/ | |
53496 | q | |
53497 | } | |
53498 | /^X\(\/\).*/{ | |
53499 | s//\1/ | |
53500 | q | |
53501 | } | |
53502 | s/.*/./; q'` | |
53503 | test -d "$as_dir" && break | |
a848cd7e | 53504 | done |
47964710 | 53505 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
d589327a VZ |
53506 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
53507 | echo "$as_me: error: cannot create directory $as_dir" >&2;} | |
a848cd7e | 53508 | { (exit 1); exit 1; }; }; } |
a848cd7e SC |
53509 | ac_builddir=. |
53510 | ||
47964710 VS |
53511 | case "$ac_dir" in |
53512 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
53513 | *) | |
d589327a | 53514 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
47964710 | 53515 | # A ".." for each directory in $ac_dir_suffix. |
d589327a | 53516 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
47964710 VS |
53517 | case $ac_top_builddir_sub in |
53518 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
53519 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
53520 | esac ;; | |
53521 | esac | |
53522 | ac_abs_top_builddir=$ac_pwd | |
53523 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
53524 | # for backward compatibility: | |
53525 | ac_top_builddir=$ac_top_build_prefix | |
a848cd7e SC |
53526 | |
53527 | case $srcdir in | |
47964710 | 53528 | .) # We are building in place. |
a848cd7e | 53529 | ac_srcdir=. |
47964710 VS |
53530 | ac_top_srcdir=$ac_top_builddir_sub |
53531 | ac_abs_top_srcdir=$ac_pwd ;; | |
53532 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
a848cd7e | 53533 | ac_srcdir=$srcdir$ac_dir_suffix; |
47964710 VS |
53534 | ac_top_srcdir=$srcdir |
53535 | ac_abs_top_srcdir=$srcdir ;; | |
53536 | *) # Relative name. | |
53537 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
53538 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
53539 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
a848cd7e | 53540 | esac |
47964710 | 53541 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
ac1cb8d3 | 53542 | |
a848cd7e | 53543 | |
47964710 VS |
53544 | case $ac_mode in |
53545 | :F) | |
53546 | # | |
53547 | # CONFIG_FILE | |
53548 | # | |
a848cd7e SC |
53549 | |
53550 | case $INSTALL in | |
53551 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
47964710 | 53552 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
a848cd7e | 53553 | esac |
47964710 | 53554 | _ACEOF |
a848cd7e | 53555 | |
d589327a | 53556 | cat >>$CONFIG_STATUS <<\_ACEOF |
47964710 VS |
53557 | # If the template does not know about datarootdir, expand it. |
53558 | # FIXME: This hack should be removed a few years after 2.60. | |
53559 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
53560 | ||
d589327a | 53561 | case `sed -n '/datarootdir/ { |
47964710 VS |
53562 | p |
53563 | q | |
53564 | } | |
53565 | /@datadir@/p | |
53566 | /@docdir@/p | |
53567 | /@infodir@/p | |
53568 | /@localedir@/p | |
53569 | /@mandir@/p | |
d589327a | 53570 | ' $ac_file_inputs` in |
47964710 VS |
53571 | *datarootdir*) ac_datarootdir_seen=yes;; |
53572 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
d589327a VZ |
53573 | { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
53574 | echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
47964710 | 53575 | _ACEOF |
d589327a | 53576 | cat >>$CONFIG_STATUS <<_ACEOF |
47964710 VS |
53577 | ac_datarootdir_hack=' |
53578 | s&@datadir@&$datadir&g | |
53579 | s&@docdir@&$docdir&g | |
53580 | s&@infodir@&$infodir&g | |
53581 | s&@localedir@&$localedir&g | |
53582 | s&@mandir@&$mandir&g | |
53583 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
53584 | esac | |
4db03d26 | 53585 | _ACEOF |
47964710 VS |
53586 | |
53587 | # Neutralize VPATH when `$srcdir' = `.'. | |
53588 | # Shell code in configure.ac might set extrasub. | |
53589 | # FIXME: do we really want to maintain this feature? | |
d589327a VZ |
53590 | cat >>$CONFIG_STATUS <<_ACEOF |
53591 | sed "$ac_vpsub | |
a848cd7e SC |
53592 | $extrasub |
53593 | _ACEOF | |
d589327a | 53594 | cat >>$CONFIG_STATUS <<\_ACEOF |
a848cd7e SC |
53595 | :t |
53596 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
d589327a | 53597 | s&@configure_input@&$configure_input&;t t |
47964710 VS |
53598 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
53599 | s&@srcdir@&$ac_srcdir&;t t | |
53600 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
53601 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
53602 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
53603 | s&@builddir@&$ac_builddir&;t t | |
53604 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
53605 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
53606 | s&@INSTALL@&$ac_INSTALL&;t t | |
53607 | $ac_datarootdir_hack | |
d589327a | 53608 | " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" | sed -f "$tmp/subs-4.sed" | sed -f "$tmp/subs-5.sed" >$tmp/out |
47964710 VS |
53609 | |
53610 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
53611 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && | |
53612 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && | |
d589327a | 53613 | { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
47964710 | 53614 | which seems to be undefined. Please make sure it is defined." >&5 |
d589327a | 53615 | echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
47964710 VS |
53616 | which seems to be undefined. Please make sure it is defined." >&2;} |
53617 | ||
53618 | rm -f "$tmp/stdin" | |
ceec2216 | 53619 | case $ac_file in |
d589327a VZ |
53620 | -) cat "$tmp/out"; rm -f "$tmp/out";; |
53621 | *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; | |
53622 | esac | |
47964710 VS |
53623 | ;; |
53624 | :H) | |
53625 | # | |
53626 | # CONFIG_HEADER | |
53627 | # | |
d589327a VZ |
53628 | _ACEOF |
53629 | ||
53630 | # Transform confdefs.h into a sed script `conftest.defines', that | |
53631 | # substitutes the proper values into config.h.in to produce config.h. | |
53632 | rm -f conftest.defines conftest.tail | |
53633 | # First, append a space to every undef/define line, to ease matching. | |
53634 | echo 's/$/ /' >conftest.defines | |
53635 | # Then, protect against being on the right side of a sed subst, or in | |
53636 | # an unquoted here document, in config.status. If some macros were | |
53637 | # called several times there might be several #defines for the same | |
53638 | # symbol, which is useless. But do not sort them, since the last | |
53639 | # AC_DEFINE must be honored. | |
53640 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
53641 | # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where | |
53642 | # NAME is the cpp macro being defined, VALUE is the value it is being given. | |
53643 | # PARAMS is the parameter list in the macro definition--in most cases, it's | |
53644 | # just an empty string. | |
53645 | ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' | |
53646 | ac_dB='\\)[ (].*,\\1define\\2' | |
53647 | ac_dC=' ' | |
53648 | ac_dD=' ,' | |
53649 | ||
53650 | uniq confdefs.h | | |
53651 | sed -n ' | |
53652 | t rset | |
53653 | :rset | |
53654 | s/^[ ]*#[ ]*define[ ][ ]*// | |
53655 | t ok | |
53656 | d | |
53657 | :ok | |
53658 | s/[\\&,]/\\&/g | |
53659 | s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p | |
53660 | s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p | |
53661 | ' >>conftest.defines | |
53662 | ||
53663 | # Remove the space that was appended to ease matching. | |
53664 | # Then replace #undef with comments. This is necessary, for | |
53665 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
53666 | # on some systems where configure will not decide to define it. | |
53667 | # (The regexp can be short, since the line contains either #define or #undef.) | |
53668 | echo 's/ $// | |
53669 | s,^[ #]*u.*,/* & */,' >>conftest.defines | |
53670 | ||
53671 | # Break up conftest.defines: | |
53672 | ac_max_sed_lines=50 | |
53673 | ||
53674 | # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" | |
53675 | # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" | |
53676 | # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" | |
53677 | # et cetera. | |
53678 | ac_in='$ac_file_inputs' | |
53679 | ac_out='"$tmp/out1"' | |
53680 | ac_nxt='"$tmp/out2"' | |
53681 | ||
53682 | while : | |
53683 | do | |
53684 | # Write a here document: | |
53685 | cat >>$CONFIG_STATUS <<_ACEOF | |
53686 | # First, check the format of the line: | |
53687 | cat >"\$tmp/defines.sed" <<\\CEOF | |
53688 | /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def | |
53689 | /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def | |
53690 | b | |
53691 | :def | |
53692 | _ACEOF | |
53693 | sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS | |
53694 | echo 'CEOF | |
53695 | sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS | |
53696 | ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in | |
53697 | sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail | |
53698 | grep . conftest.tail >/dev/null || break | |
53699 | rm -f conftest.defines | |
53700 | mv conftest.tail conftest.defines | |
53701 | done | |
53702 | rm -f conftest.defines conftest.tail | |
53703 | ||
53704 | echo "ac_result=$ac_in" >>$CONFIG_STATUS | |
53705 | cat >>$CONFIG_STATUS <<\_ACEOF | |
a848cd7e | 53706 | if test x"$ac_file" != x-; then |
d589327a VZ |
53707 | echo "/* $configure_input */" >"$tmp/config.h" |
53708 | cat "$ac_result" >>"$tmp/config.h" | |
53709 | if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then | |
53710 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 | |
53711 | echo "$as_me: $ac_file is unchanged" >&6;} | |
a848cd7e | 53712 | else |
d589327a VZ |
53713 | rm -f $ac_file |
53714 | mv "$tmp/config.h" $ac_file | |
a848cd7e SC |
53715 | fi |
53716 | else | |
d589327a VZ |
53717 | echo "/* $configure_input */" |
53718 | cat "$ac_result" | |
a848cd7e | 53719 | fi |
d589327a | 53720 | rm -f "$tmp/out12" |
47964710 | 53721 | ;; |
4db03d26 | 53722 | |
d589327a VZ |
53723 | :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 |
53724 | echo "$as_me: executing $ac_file commands" >&6;} | |
47964710 VS |
53725 | ;; |
53726 | esac | |
4db03d26 VZ |
53727 | |
53728 | ||
47964710 VS |
53729 | case $ac_file$ac_mode in |
53730 | "rcdefs.h":C) | |
5c60e845 MW |
53731 | mkdir -p $outdir && |
53732 | $CPP $infile | sed 's/^# *[1-9].*//;s/^ *//;/./,/^$/!d' > $outdir/rcdefs.h | |
53733 | ;; | |
47964710 VS |
53734 | "lib/wx/config/${TOOLCHAIN_FULLNAME}":F) chmod +x lib/wx/config/${TOOLCHAIN_FULLNAME} ;; |
53735 | "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}":F) chmod +x lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ;; | |
2f46438b | 53736 | "utils/ifacecheck/rungccxml.sh":F) chmod +x utils/ifacecheck/rungccxml.sh ;; |
47964710 | 53737 | "wx-config":C) rm -f wx-config |
ceec2216 RL |
53738 | ${LN_S} lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} wx-config |
53739 | ;; | |
47964710 | 53740 | |
a848cd7e | 53741 | esac |
47964710 | 53742 | done # for ac_tag |
a848cd7e | 53743 | |
a848cd7e SC |
53744 | |
53745 | { (exit 0); exit 0; } | |
53746 | _ACEOF | |
53747 | chmod +x $CONFIG_STATUS | |
53748 | ac_clean_files=$ac_clean_files_save | |
53749 | ||
53750 | ||
53751 | # configure is writing to config.log, and then calls config.status. | |
53752 | # config.status does its own redirection, appending to config.log. | |
53753 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
53754 | # by configure, so config.status won't be able to write to it; its | |
53755 | # output is simply discarded. So we exec the FD to /dev/null, | |
53756 | # effectively closing config.log, so it can be properly (re)opened and | |
53757 | # appended to by config.status. When coming back to configure, we | |
53758 | # need to make the FD available again. | |
53759 | if test "$no_create" != yes; then | |
53760 | ac_cs_success=: | |
53761 | ac_config_status_args= | |
53762 | test "$silent" = yes && | |
53763 | ac_config_status_args="$ac_config_status_args --quiet" | |
53764 | exec 5>/dev/null | |
53765 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
53766 | exec 5>>config.log | |
53767 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
53768 | # would make configure fail if this is the last instruction. | |
53769 | $ac_cs_success || { (exit 1); exit 1; } | |
53770 | fi | |
53771 | ||
53772 | # | |
53773 | # CONFIG_SUBDIRS section. | |
53774 | # | |
53775 | if test "$no_recursion" != yes; then | |
53776 | ||
d589327a | 53777 | # Remove --cache-file and --srcdir arguments so they do not pile up. |
a848cd7e SC |
53778 | ac_sub_configure_args= |
53779 | ac_prev= | |
47964710 VS |
53780 | eval "set x $ac_configure_args" |
53781 | shift | |
53782 | for ac_arg | |
53783 | do | |
a848cd7e SC |
53784 | if test -n "$ac_prev"; then |
53785 | ac_prev= | |
53786 | continue | |
53787 | fi | |
53788 | case $ac_arg in | |
53789 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
53790 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
53791 | ac_prev=cache_file ;; | |
53792 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
53793 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ | |
53794 | | --c=*) | |
53795 | ;; | |
53796 | --config-cache | -C) | |
53797 | ;; | |
53798 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
53799 | ac_prev=srcdir ;; | |
53800 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
53801 | ;; | |
53802 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
53803 | ac_prev=prefix ;; | |
53804 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
53805 | ;; | |
47964710 VS |
53806 | *) |
53807 | case $ac_arg in | |
d589327a | 53808 | *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
47964710 VS |
53809 | esac |
53810 | ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;; | |
a848cd7e SC |
53811 | esac |
53812 | done | |
53813 | ||
53814 | # Always prepend --prefix to ensure using the same prefix | |
53815 | # in subdir configurations. | |
47964710 VS |
53816 | ac_arg="--prefix=$prefix" |
53817 | case $ac_arg in | |
d589327a | 53818 | *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
47964710 VS |
53819 | esac |
53820 | ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args" | |
53821 | ||
53822 | # Pass --silent | |
53823 | if test "$silent" = yes; then | |
53824 | ac_sub_configure_args="--silent $ac_sub_configure_args" | |
53825 | fi | |
a848cd7e SC |
53826 | |
53827 | ac_popdir=`pwd` | |
53828 | for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue | |
53829 | ||
53830 | # Do not complain, so a configure script can configure whichever | |
53831 | # parts of a large source tree are present. | |
47964710 VS |
53832 | test -d "$srcdir/$ac_dir" || continue |
53833 | ||
53834 | ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)" | |
d589327a VZ |
53835 | echo "$as_me:$LINENO: $ac_msg" >&5 |
53836 | echo "$ac_msg" >&6 | |
47964710 VS |
53837 | { as_dir="$ac_dir" |
53838 | case $as_dir in #( | |
53839 | -*) as_dir=./$as_dir;; | |
53840 | esac | |
53841 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { | |
a848cd7e | 53842 | as_dirs= |
47964710 VS |
53843 | while :; do |
53844 | case $as_dir in #( | |
d589327a | 53845 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( |
47964710 VS |
53846 | *) as_qdir=$as_dir;; |
53847 | esac | |
53848 | as_dirs="'$as_qdir' $as_dirs" | |
53849 | as_dir=`$as_dirname -- "$as_dir" || | |
a848cd7e | 53850 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
ac1cb8d3 VS |
53851 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
53852 | X"$as_dir" : 'X\(//\)$' \| \ | |
47964710 | 53853 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
d589327a | 53854 | echo X"$as_dir" | |
47964710 VS |
53855 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
53856 | s//\1/ | |
53857 | q | |
53858 | } | |
53859 | /^X\(\/\/\)[^/].*/{ | |
53860 | s//\1/ | |
53861 | q | |
53862 | } | |
53863 | /^X\(\/\/\)$/{ | |
53864 | s//\1/ | |
53865 | q | |
53866 | } | |
53867 | /^X\(\/\).*/{ | |
53868 | s//\1/ | |
53869 | q | |
53870 | } | |
53871 | s/.*/./; q'` | |
53872 | test -d "$as_dir" && break | |
a848cd7e | 53873 | done |
47964710 | 53874 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
d589327a VZ |
53875 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
53876 | echo "$as_me: error: cannot create directory $as_dir" >&2;} | |
a848cd7e | 53877 | { (exit 1); exit 1; }; }; } |
a848cd7e SC |
53878 | ac_builddir=. |
53879 | ||
47964710 VS |
53880 | case "$ac_dir" in |
53881 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
53882 | *) | |
d589327a | 53883 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
47964710 | 53884 | # A ".." for each directory in $ac_dir_suffix. |
d589327a | 53885 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
47964710 VS |
53886 | case $ac_top_builddir_sub in |
53887 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
53888 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
53889 | esac ;; | |
53890 | esac | |
53891 | ac_abs_top_builddir=$ac_pwd | |
53892 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
53893 | # for backward compatibility: | |
53894 | ac_top_builddir=$ac_top_build_prefix | |
a848cd7e SC |
53895 | |
53896 | case $srcdir in | |
47964710 | 53897 | .) # We are building in place. |
a848cd7e | 53898 | ac_srcdir=. |
47964710 VS |
53899 | ac_top_srcdir=$ac_top_builddir_sub |
53900 | ac_abs_top_srcdir=$ac_pwd ;; | |
53901 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
a848cd7e | 53902 | ac_srcdir=$srcdir$ac_dir_suffix; |
47964710 VS |
53903 | ac_top_srcdir=$srcdir |
53904 | ac_abs_top_srcdir=$srcdir ;; | |
53905 | *) # Relative name. | |
53906 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
53907 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
53908 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
ac1cb8d3 | 53909 | esac |
47964710 | 53910 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
a848cd7e SC |
53911 | |
53912 | ||
47964710 | 53913 | cd "$ac_dir" |
a848cd7e SC |
53914 | |
53915 | # Check for guested configure; otherwise get Cygnus style configure. | |
47964710 VS |
53916 | if test -f "$ac_srcdir/configure.gnu"; then |
53917 | ac_sub_configure=$ac_srcdir/configure.gnu | |
53918 | elif test -f "$ac_srcdir/configure"; then | |
53919 | ac_sub_configure=$ac_srcdir/configure | |
53920 | elif test -f "$ac_srcdir/configure.in"; then | |
53921 | # This should be Cygnus configure. | |
53922 | ac_sub_configure=$ac_aux_dir/configure | |
a848cd7e | 53923 | else |
d589327a VZ |
53924 | { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5 |
53925 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} | |
a848cd7e SC |
53926 | ac_sub_configure= |
53927 | fi | |
53928 | ||
53929 | # The recursion is here. | |
53930 | if test -n "$ac_sub_configure"; then | |
53931 | # Make the cache file name correct relative to the subdirectory. | |
53932 | case $cache_file in | |
53933 | [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; | |
47964710 VS |
53934 | *) # Relative name. |
53935 | ac_sub_cache_file=$ac_top_build_prefix$cache_file ;; | |
a848cd7e SC |
53936 | esac |
53937 | ||
d589327a VZ |
53938 | { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 |
53939 | echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} | |
a848cd7e | 53940 | # The eval makes quoting arguments work. |
47964710 VS |
53941 | eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \ |
53942 | --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" || | |
d589327a VZ |
53943 | { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5 |
53944 | echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;} | |
a848cd7e SC |
53945 | { (exit 1); exit 1; }; } |
53946 | fi | |
53947 | ||
47964710 | 53948 | cd "$ac_popdir" |
a848cd7e SC |
53949 | done |
53950 | fi | |
53951 | ||
53952 | ||
53953 | echo | |
77ffb593 | 53954 | echo "Configured wxWidgets ${WX_VERSION} for \`${host}'" |
a848cd7e | 53955 | echo "" |
c2e9ada4 | 53956 | echo " Which GUI toolkit should wxWidgets use? ${TOOLKIT_DESC}" |
77ffb593 | 53957 | echo " Should wxWidgets be compiled into single library? ${wxUSE_MONOLITHIC:-yes}" |
77ffb593 | 53958 | echo " Should wxWidgets be linked as a shared library? ${wxUSE_SHARED:-no}" |
141fad63 | 53959 | echo $ECHO_N " Should wxWidgets support Unicode? ${wxUSE_UNICODE:-no}$ECHO_C" |
ca4c9b7e | 53960 | if test "$wxUSE_UNICODE" = "yes"; then |
faa5c14f VZ |
53961 | if test "$wxUSE_UNICODE_UTF8" = "yes"; then |
53962 | echo " (using UTF-8)" | |
53963 | else | |
53964 | echo " (using wchar_t)" | |
53965 | fi | |
53966 | else | |
53967 | echo | |
ca4c9b7e | 53968 | fi |
a848cd7e | 53969 | |
77ffb593 | 53970 | echo " What level of wxWidgets compatibility should be enabled?" |
56b1244c | 53971 | echo " wxWidgets 2.6 ${WXWIN_COMPATIBILITY_2_6:-no}" |
abb6edd1 | 53972 | echo " wxWidgets 2.8 ${WXWIN_COMPATIBILITY_2_8:-yes}" |
a848cd7e | 53973 | |
77ffb593 | 53974 | echo " Which libraries should wxWidgets use?" |
8630a814 | 53975 | echo " STL ${wxUSE_STL}" |
a848cd7e SC |
53976 | echo " jpeg ${wxUSE_LIBJPEG-none}" |
53977 | echo " png ${wxUSE_LIBPNG-none}" | |
53978 | echo " regex ${wxUSE_REGEX}" | |
53979 | echo " tiff ${wxUSE_LIBTIFF-none}" | |
53980 | if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then | |
53981 | echo " xpm ${wxUSE_LIBXPM-none}" | |
53982 | fi | |
53983 | echo " zlib ${wxUSE_ZLIB}" | |
a848cd7e SC |
53984 | echo " expat ${wxUSE_EXPAT}" |
53985 | echo " libmspack ${wxUSE_LIBMSPACK}" | |
53986 | echo " sdl ${wxUSE_LIBSDL}" | |
53987 | ||
53988 | echo "" | |
53989 |